Repository navigation
fix(cli): improve schema discovery - #1658
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
74c333a to
c500f15
Compare
c500f15 to
b1bb28d
Compare
b1bb28d to
4f38e78
Compare
BYK
left a comment
There was a problem hiding this comment.
This is pretty great! Pushing back for even more automation to prevent drift.
4f38e78 to
090085f
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 090085f. Configure here.
| | Argument | Description | | ||
| |----------|-------------| | ||
| | `<resource...>` | Resource, exact operation ID, or METHOD /path | | ||
| | `<resource...>` | API concept, CLI command path, exact operation ID, or METHOD /path | |
There was a problem hiding this comment.
| | `<resource...>` | API concept, CLI command path, exact operation ID, or METHOD /path | | |
| | `<query...>` | API concept, CLI command path, exact operation ID, or METHOD /path | |
This is no longer a resource so we should rename it appropriately.
There was a problem hiding this comment.
Wowza, this is pretty cool. I'd argue this script should be part of @sentry/api packaging process so it does it once and distributes to everyone?

sentry schemadiscovers API capabilities from metadata and real CLI command paths, includinglog,trace, andalert metrics. Ambiguous queries return candidates with context; exact lookups keep their JSON shape. Search and resource globs reuse the shared helpers.Uses the published
@sentry/api@0.425.0operation catalog and source analyzer (SDK #110, SDK #115). Generation runs offline against the CLI source. A small adapter supplies CLI conventions; routes, aliases, ranking and destructive-command policy stay in Toolkit. Adding commands requires no separate vocabulary map.Validated generation, all 92 schema tests, workspace typecheck/lint, DELETE checks, and MCP suites. The SDK analyzer preserves the 138 existing command exports across 548 source files. The full CLI suite passes 11,809 tests but fails locally on missing
actooland the musl installer case; those test files and runtime paths are unchanged frommain.