Title: feat(sim-cli): publish which CLI commands Mothership is refused, from the route admission rule by waleedlatif1 · Pull Request #8838 · simstudioai/sim · GitHub
Open Graph Title: feat(sim-cli): publish which CLI commands Mothership is refused, from the route admission rule by waleedlatif1 · Pull Request #8838 · simstudioai/sim
X Title: feat(sim-cli): publish which CLI commands Mothership is refused, from the route admission rule by waleedlatif1 · Pull Request #8838 · simstudioai/sim
Description: Summary The CLI command inventory (the JSON the Mothership worker builds its agent grammar from) now marks each command Mothership cannot run with mothershipUnavailable: true. The worker hides those commands instead of keeping its own hand-written list, which had already drifted: whoami and meta status were shown in chat and then refused on every call. The flag comes from the same rule admission runs. copilotRouteAudience is pulled out of copilotRequestPrincipal. The copilot route inventory test evaluates it for every v2 route and also invokes each raw route handler once (chat, workflow execute, resume) with admission recorded, and writes the refused routes to copilot-refused-routes.json as a file snapshot, which replaces the inline snapshot. print-command-inventory.ts reads that file. Hand-written commands now declare the v2 operations they call with callsOperations, so the inventory can judge them as well. whoami declares getMeta and getWorkspace, files versions download declares downloadFileVersion, and sim chat declares chat. Generated commands still map to their operation by path. Backward-compatible. The field is optional, and it is absent when every call is admitted or the command calls no known operation. A consumer that ignores it behaves as before. When a change to a use case's delegation changes the refused set, refresh the snapshot with vitest run -u lib/api/server/routes/copilot-route-inventory.test.ts. That is the same workflow the inline snapshot needed. Type of Change New feature Testing packages/sim-cli/src/contract/reference.test.ts runs the real inventory producer: meta status, whoami, files versions download and chat are flagged; workspaces get, workspaces invitations create, files get and workflows run are not; it fails without the generator change. apps/sim/lib/api/server/routes/ (12 files, 325 tests). packages/sim-cli (52 files, 475 tests). bun run lint, bun run check:audits (58 audits) and bun run type-check. Root bun run test: everything passed except 3 @sim/app tests that hit the 10s timeout under a concurrent load. Each of the three passes when rerun on its own. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary The CLI command inventory (the JSON the Mothership worker builds its agent grammar from) now marks each command Mothership cannot run with mothershipUnavailable: true. The worker hides tho...
X Description: Summary The CLI command inventory (the JSON the Mothership worker builds its agent grammar from) now marks each command Mothership cannot run with mothershipUnavailable: true. The worker hides tho...
Opengraph URL: https://github.com/simstudioai/sim/pull/8838
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0643f63c-9f69-d829-b212-b1be89cf5415 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C74C:1C8E04:DEADD7:131DE99:6AFB5E97 |
| html-safe-nonce | f3c0df5b068a0ad923fb9e56edac6f558151f0f9560809ee1152e11ffe9420f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzRDOjFDOEUwNDpERUFERDc6MTMxREU5OTo2QUZCNUU5NyIsInZpc2l0b3JfaWQiOiI4NjgwMjg3NTc1OTg3Njc0Nzc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ae3eca3f97139107b2db944ab6bd54254db5c090313e0fa1a70ee8ec42f6ecdd |
| hovercard-subject-tag | pull_request:4796373631 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8838/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary The CLI command inventory (the JSON the Mothership worker builds its agent grammar from) now marks each command Mothership cannot run with mothershipUnavailable: true. The worker hides tho... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width