Skip to content

Extract CLI command router#371

Merged
chubes4 merged 1 commit into
mainfrom
refactor/cli-command-router
May 31, 2026
Merged

Extract CLI command router#371
chubes4 merged 1 commit into
mainfrom
refactor/cli-command-router

Conversation

@chubes4
Copy link
Copy Markdown
Collaborator

@chubes4 chubes4 commented May 31, 2026

Summary

  • Extract CLI argv command and subcommand dispatch into packages/cli/src/command-router.ts.
  • Keep command parsing, output formatting, runtime execution, and public command behavior in place while index.ts now wires handlers through runCli(argv).
  • Move JSPI respawn handling with the router because it depends on the selected top-level command.

Tests

  • npm run build
  • npm run command-registry-smoke
  • npm run discovery-command-smoke
  • npm run workspace-policy-smoke
  • npm run recipe-dry-run-smoke
  • npm run wp-codebox -- commands --json
  • npm run wp-codebox -- schema recipe --json
  • npm run wp-codebox -- help

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the focused CLI router extraction, ran build/smoke verification, and prepared the PR summary for Chris to review.

@chubes4 chubes4 merged commit 168dbfa into main May 31, 2026
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.

1 participant