Cleanup (part one) before release cut.#4
Merged
josealekhine merged 7 commits intomainfrom Feb 1, 2026
Merged
Conversation
Split the monolithic embed.go into cmd.go, hook.go, perm.go, script.go for better separation of concerns. Renamed functions to follow Go conventions (drop unnecessary Get/Create/List prefixes): - GetAutoSaveScript → AutoSaveScript - GetBlockNonPathCtxScript → BlockNonPathCtxScript - ListCommands → Commands - GetCommand → CommandByName - CreateDefaultHooks → DefaultHooks - CreateDefaultPermissions → DefaultPermissions - GetClaudeHook → ClaudeHookByFileName (in templates) Updated test function names to match the new API names. Refactored bootstrap.Initialize to use a loop for registering subcommands. Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
- Replace string literals with config.UpdateType* constants in append.go - Move addConfig struct from add.go to dedicated config.go file - Rename addFlags → addConfig to reflect it holds configuration, not a collection. Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
The header insertion logic (find header, skip comments, insert entry) was duplicated between prependAfterHeader and prependAfterSeparator. Extracted to a shared insertAfterHeader helper. Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
Add CommentOpen ("<!--") and CommentClose ("-->") constants to config
and use len() instead of hardcoded 4 and 3 in insertAfterHeader.
Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
Add helper functions for cross-platform newline handling: - findNewline: finds first CRLF or LF - skipNewline: advances past CRLF or LF - skipWhitespace: skips spaces, tabs, and newlines - endsWithNewline: checks for trailing CRLF or LF Add NewlineCRLF and NewlineLF constants. Check CRLF first to handle both Windows and Unix line endings without normalization. Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
…sh commands Recall improvements: - Fix CanParse to check 50 lines (was 5) - finds 57 vs 22 sessions - Add smart project matching: git remote → path relative to home → exact CWD - Add --all-projects flag to list/show/export commands - Label tool results as "Tool Output" instead of "User" New commands: - ctx recall export: Export sessions to .context/journal/ as Markdown - ctx journal site: Generate zensical static site from journal entries - ctx serve: Convenience wrapper for zensical serve New slash commands: - /ctx-journal-enrich: Add frontmatter, topics, tags to journal entries - /ctx-journal-summarize: Generate period summaries (weekly, monthly, feature) - /ctx-blog: Generate blog post from recent activity - /ctx-blog-changelog: Generate blog post from commit range with theme Documentation: - Add slash commands reference to integrations.md - Update TASKS.md with completed items Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
Code refactoring: - Split monolithic files into focused modules (add, compact, config, context) - Extract types, predicates, and helper functions - Rename decisions → decision, validation → validate for consistency - Move rc package, add field/pattern/regex modules to config Testing: - Add AST-based test to detect fmt.Print* in Cobra command functions - Ensure CLI functions use cmd.Print* for proper output handling Documentation: - Update cli-reference.md with current flags and commands - Update integrations.md with slash commands reference - Update blog index and various doc fixes - Remove deprecated ralph-loop.md (content moved to autonomous-loop.md) Site: - Rebuild static site with latest documentation - Update search index Misc: - Add .context/journal/ and .context/journal-site/ to .gitignore - Update AGENT_PLAYBOOK.md and LEARNINGS.md Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.