Title: feat(copilot): add share_file tool + surface file share state to the agent by TheodoreSpeaks · Pull Request #5656 · simstudioai/sim · GitHub
Open Graph Title: feat(copilot): add share_file tool + surface file share state to the agent by TheodoreSpeaks · Pull Request #5656 · simstudioai/sim
X Title: feat(copilot): add share_file tool + surface file share state to the agent by TheodoreSpeaks · Pull Request #5656 · simstudioai/sim
Description: Summary Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and the FILE_SHARED/FILE_SHARE_DISABLED audit), then delegates to the shared upsertFileShare — same path the files UI uses Register it in the server tool router (+ generated catalog entries) Surface an ambient shared/shareAuthType flag on each file's metadata via one batched share lookup (no N+1), so the agent can see and grep what's shared — mirrors how workflows expose isDeployed Pairs with Copilot: simstudioai/mothership#353 (tool definition + agent routing). That must merge first — mship-tools:check regenerates the catalog from the copilot repo's tool-catalog-v1.json, so this PR's check stays red until #353 lands. Type of Change New feature Testing tsc --noEmit 0 errors; bun run lint:check and check:api-validation:strict pass; biome clean Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Companion: simstudioai/mothership#353
Open Graph Description: Summary Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and th...
X Description: Summary Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and th...
Opengraph URL: https://github.com/simstudioai/sim/pull/5656
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9fb30b0e-8b9a-7f72-bb11-6d03765a44bb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C03A:143213:98E68F:DB0E68:6A637FC8 |
| html-safe-nonce | c0006bc67129b5af400634dcd167aa53f7ba39ea532d2d4350584447a859cf56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDNBOjE0MzIxMzo5OEU2OEY6REIwRTY4OjZBNjM3RkM4IiwidmlzaXRvcl9pZCI6IjczNjg1MjQ4NjYzNjYxNzcyMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eaa50cc00794bfe1d0c8b2b9ce63d2f86bdc67dcebfefa96d4e312e8fc2f0ef0 |
| hovercard-subject-tag | pull_request:4048747219 |
| 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/5656/files |
| twitter:image | https://avatars.githubusercontent.com/u/19564703?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/19564703?s=400&v=4 |
| og:image:alt | Summary Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e4fb64aef87da454ec25b158147f7f5f14aef29216e5ca1612c2e48faa599d1f |
| 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 | e839936ba5faffb9c836dda1cf4729d50c88a32e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width