Skip to content

Resolve multi-word CLI verb dispatch#6

Open
kriptoburak wants to merge 1 commit into
bounded-systems:mainfrom
kriptoburak:codex/dispatch-multi-word-ids
Open

Resolve multi-word CLI verb dispatch#6
kriptoburak wants to merge 1 commit into
bounded-systems:mainfrom
kriptoburak:codex/dispatch-multi-word-ids

Conversation

@kriptoburak

Copy link
Copy Markdown

Summary

  • Resolve CLI dispatch by the longest matching verb id prefix.
  • Keep exact one-token commands working.
  • Add tests for multi-word ids and longest-match precedence.

Why

JSON-RPC already resolves tokenized multi-word ids, but CLI dispatch only looked up the first argv token. A registry verb such as plan session could not be run as separate shell words.

Validation

  • bun test
  • bun run build
  • bunx jsr publish dry run with slow-type allowance
  • npm pack dry run
  • git diff check

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