Repository navigation
improvement(sim-cli): publish each command's path aliases and renamed paths in the command inventory - #9251
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryThe CLI inventory now publishes alternate command spellings for the worker.
No actionable issues found. The full PR diff was reviewed because the current head does not build on the previous review commit. No previous review threads were supplied. Tests were inspected, not run. Reviews (2) · Last reviewed commit: "improvement(sim-cli): publish each comma..." · Reviewed by Greptile |
|
… paths in the command inventory The worker builds its agent grammar from this inventory and did not know that sim runs files mv, workflows folders ls or kb as their commands, or still runs retired paths such as tables count create and workflows deployment list as the commands they were renamed to, so it refused or misread them. Each command now carries the commander aliases of its path segments (pathAliases, aligned with path) and the paths it was renamed from (renamedFrom).
7264686 to
c5aaf7d
Compare
|
@greptile |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
packages/sim-cli/scripts/print-command-inventory.ts), which the mothership worker builds its agent grammar from, now publishes each command's commander aliases per path segment (pathAliases, aligned withpath) and the retired paths the CLI still runs as that command (renamedFrom)files mv,workflows folders ls,kb …, and renamed paths such astables count createandworkflows deployment listCompanion: simstudioai/mothership#767
Type of Change
Testing
reference.test.ts: the published aliases match the real CLI, andfile mv …sends the same requests asfiles move …through the embedded CLIreference.test.ts: each published renamed path resolves inbuildProgram()to a hidden command running the same operation, andtables count create t1sends the same requests astables rows count t1check:comment-hygieneandcheck:cli-docspasscheck:cli-inventoryandcheck:contract-syncpass against this branch (344 commands)Checklist