Skip to content

feat: add library init and config inspection commands (#61 #68)#71

Merged
TheAmericanMaker merged 1 commit into
mainfrom
feat/library-init-and-config
Jul 23, 2026
Merged

feat: add library init and config inspection commands (#61 #68)#71
TheAmericanMaker merged 1 commit into
mainfrom
feat/library-init-and-config

Conversation

@TheAmericanMaker

Copy link
Copy Markdown
Member

What changed

Library init (#61)

  • initLibrary() in core/library.ts — creates directory, writes .codecarto-library marker, idempotent
  • writeLibraryConfig() in core/orchestrator-config.ts — writes the library: block into config, preserves existing orchestrator: block
  • Pi: /codecarto-library-init <path> [--namespace <name>]
  • MCP: codecarto_library_init tool

Config inspection (#68)

  • Pi: /codecarto-config — shows effective merged config (library.path, namespace, publish_confirm, llm_steer_next_phase) plus library marker status
  • MCP: codecarto_config tool — same output, accepts optional cwd for workspace-level merge

Why

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 — clean
  • npm test — 264/264 pass
  • npx tsc --noEmit — no errors

Closes #61, closes #68

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.
@TheAmericanMaker
TheAmericanMaker merged commit 66ebc32 into main Jul 23, 2026
5 checks passed
@TheAmericanMaker
TheAmericanMaker deleted the feat/library-init-and-config branch July 23, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No command to inspect merged orchestrator config Library setup has no init command — users hit a dead end on first publish

1 participant