feat: add library init and config inspection commands (#61 #68)#71
Merged
Conversation
Library init: - core/library.ts: initLibrary() creates directory + marker, idempotent - core/orchestrator-config.ts: writeLibraryConfig() writes library block - Pi: /codecarto-library-init <path> [--namespace <name>] - MCP: codecarto_library_init tool Config inspection: - Pi: /codecarto-config shows merged config + marker status - MCP: codecarto_config tool Both commands close the first-publish dead end where users had to manually create the marker file and config with no guidance.
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.
What changed
Library init (#61)
initLibrary()incore/library.ts— creates directory, writes.codecarto-librarymarker, idempotentwriteLibraryConfig()incore/orchestrator-config.ts— writes thelibrary:block into config, preserves existingorchestrator:block/codecarto-library-init <path> [--namespace <name>]codecarto_library_inittoolConfig inspection (#68)
/codecarto-config— shows effective merged config (library.path, namespace, publish_confirm, llm_steer_next_phase) plus library marker statuscodecarto_configtool — same output, accepts optional cwd for workspace-level mergeWhy
These close the first-publish dead end where users had to manually create the marker file and config with no guidance, and the config visibility gap where users debugging library.path issues had to read two files and merge mentally.
Validation
npm run build— cleannpm test— 264/264 passnpx tsc --noEmit— no errorsCloses #61, closes #68