Skip to content

fix(cli): resolve deprecated 'workspace status' alias in --agent-help#416

Merged
christso merged 1 commit into
mainfrom
fix/416-agent-help-workspace-status-alias
May 30, 2026
Merged

fix(cli): resolve deprecated 'workspace status' alias in --agent-help#416
christso merged 1 commit into
mainfrom
fix/416-agent-help-workspace-status-alias

Conversation

@christso
Copy link
Copy Markdown
Contributor

Summary

  • --agent-help workspace status errored with "Unknown command" after statusMeta.command was renamed from workspace status to status in feat(status): distinguish skills vs plugins, hoist status to root #415
  • Adds a commandAliases map and resolveAlias() helper in src/cli/agent-help.ts so both findMetaByCommand and printAgentHelp transparently redirect the old path to the new canonical one
  • Adds 4 unit tests in tests/unit/cli/agent-help.test.ts covering status, workspace status, unknown command, and empty string

Test plan

  • bun run typecheck passes
  • bun run lint passes
  • bun test — 1310 pass, 0 fail
  • E2E: ./dist/index.js --agent-help workspace status returns the status meta JSON (previously exited 1 with "Unknown command")
  • E2E: ./dist/index.js --agent-help status continues to work

🤖 Generated with Claude Code

--agent-help workspace status errored with "Unknown command" after
statusMeta.command was renamed from 'workspace status' to 'status'
in PR #415. Add a commandAliases map and resolveAlias() helper so
both findMetaByCommand and printAgentHelp transparently redirect the
old path to the new canonical one.

Adds unit tests covering both invocation forms and the unknown-command
and empty-string edge cases.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: df0dfb1
Status: ✅  Deploy successful!
Preview URL: https://c896de5a.allagents.pages.dev
Branch Preview URL: https://fix-416-agent-help-workspace.allagents.pages.dev

View logs

@christso christso merged commit de8dedc into main May 30, 2026
1 check passed
@christso christso deleted the fix/416-agent-help-workspace-status-alias branch May 30, 2026 08:57
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