Conversation
c841a6a to
685874a
Compare
ffddafb to
19ef5b5
Compare
685874a to
9402298
Compare
19ef5b5 to
6f5faf8
Compare
|
src/commands/build-prompt.ts:90 - The |
08e5371 to
f5a54d9
Compare
Good catch, this is addressed now! |
Move command-specific CLI definitions (flags, help text, examples, parser helpers, option defaults) out of src/index.ts into their respective src/commands/* modules. Each command module now exports a register*() function that takes the Commander program and registers itself, following the same pattern already used by @chunk/hook's registerHookCommands(). This keeps index.ts limited to program creation, command registration calls, and top-level error handling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Drop explicit ParsedBuildPromptFlags annotation on .action() callback, letting Commander infer the type (consistent with task.ts) - Un-export ParsedBuildPromptFlags, runAuthStatus, runAuthLogout since they are now only used within their own modules - Remove duplicate -h/--help line from build-prompt addHelpText Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove unnecessary exports from runConfigShow, runConfigSet, and runTaskConfig now that registration functions are the public API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39868c6 to
c59951b
Compare
Move sandbox command registration out of index.ts and into a registerSandboxCommands() function in commands/sandbox.ts, matching the pattern used by all other command modules. Handler functions are made private; validatePublicKey and resolvePublicKeyFile remain exported for unit tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Summary
src/index.tsinto correspondingsrc/commands/*modulesregister*Command(program)functionsrc/index.tsreduced to ~50 lines: program creation, registration calls, and error handlingWill wait until #74 is merged and rebase this branch so we don't have to move things around twice.
Test plan
bun run typecheckpasses--help, etc.)🤖 Generated with Claude Code