René's URL Explorer Experiment


Title: feat(file): add Manage Sharing operation to the File block by TheodoreSpeaks · Pull Request #5177 · simstudioai/sim · GitHub

Open Graph Title: feat(file): add Manage Sharing operation to the File block by TheodoreSpeaks · Pull Request #5177 · simstudioai/sim

X Title: feat(file): add Manage Sharing operation to the File block by TheodoreSpeaks · Pull Request #5177 · simstudioai/sim

Description: Summary Add a Manage Sharing operation (file_manage_sharing) to the File block (file_v5) so a workflow/agent can enable, disable, or reconfigure a file's public share link as a step. Idempotent: reuses the existing upsertFileShare domain logic, so the public link (token) stays stable across enable/disable/reconfigure. Full access-mode parity with the UI via a single Visibility dropdown: private (disable), public, password, email, sso — with conditional password / allowed-emails fields. New manage_sharing case on /api/tools/file/manage, a file_manage_sharing tool, and a contract schema (fileId or fileInput, mirroring read/get-content). No existing operations changed. Behavior & security Requires workspace write/admin (publishing is more sensitive than the other mutating ops), checked before the file lookup so a read-only caller can't probe file existence via 404-vs-403. Enabling is gated by the org's EE public-sharing policy; the gate resolves authType from the existing share (authType ?? existing ?? 'public') so a restricted share can't be re-enabled under a public-only policy without an explicit type. Disabling is never gated. isActive is explicit/required (no silent enable on a bare call). isActive/authType/allowedEmails are agent-controllable (user-or-llm); password stays user-only. Resolves the target file from a canonical id, an upstream file reference, or the basic file picker's object (maps its storage key → canonical id via getFileMetadataByKey). Rejects multiple files. Setting a file private returns an empty url (no dead link). Type of Change New feature Testing Unit tests for the operation's param mapping: public / private / password / email visibility, canonical-id and file-object resolution, basic-picker (key-only) → fileInput, multiple-file rejection, missing-file error. tsc --noEmit, bun run lint, bun run check:api-validation:strict, and the block-registry invariant check all pass. 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)

Open Graph Description: Summary Add a Manage Sharing operation (file_manage_sharing) to the File block (file_v5) so a workflow/agent can enable, disable, or reconfigure a file's public share link as a step. Idempoten...

X Description: Summary Add a Manage Sharing operation (file_manage_sharing) to the File block (file_v5) so a workflow/agent can enable, disable, or reconfigure a file's public share link as a step. Idemp...

Opengraph URL: https://github.com/simstudioai/sim/pull/5177

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:1f6565dd-d8fd-0a7d-a01c-0e2ab1f70737
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8264:5728A:B8D7A:106D1A:6AFB4616
html-safe-noncec515a6ea0929c558b19141e1076052bab3ee6c0312895b52b915332f709ed812
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjY0OjU3MjhBOkI4RDdBOjEwNkQxQTo2QUZCNDYxNiIsInZpc2l0b3JfaWQiOiI3NDc0MjM4Mjc5NDEyMDQxMjM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7bca23e943da1fd3a332ffddbecd6de8422cb744b85cb129925679d740740ee4
hovercard-subject-tagpull_request:3916639478
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5177/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary Add a Manage Sharing operation (file_manage_sharing) to the File block (file_v5) so a workflow/agent can enable, disable, or reconfigure a file's public share link as a step. Idempoten...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea6c2f87cbcb6414452377b4967858ed6a66f1109
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5177/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5177%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5177%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5177/files
Reloadhttps://github.com/simstudioai/sim/pull/5177/files
Reloadhttps://github.com/simstudioai/sim/pull/5177/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/file-permission-blockhttps://github.com/simstudioai/sim/tree/feat/file-permission-block
Conversation 20 https://github.com/simstudioai/sim/pull/5177
Commits 6 https://github.com/simstudioai/sim/pull/5177/commits
Checks 15 https://github.com/simstudioai/sim/pull/5177/checks
Files changed https://github.com/simstudioai/sim/pull/5177/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5177/files
feat(file): add Manage Sharing operation to the File block https://github.com/simstudioai/sim/pull/5177/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/5177/files
0d59177 feat(file): add Set File Sharing operation to the File block TheodoreSpeaks Jun 23, 2026 https://github.com/simstudioai/sim/pull/5177/commits/0d59177030e605bee6ac2fa7debc00851bda1933
75f229f fix(file): harden set_sharing — explicit isActive, agent-controllable… TheodoreSpeaks Jun 23, 2026 https://github.com/simstudioai/sim/pull/5177/commits/75f229f259d374dedf1e90558a020378d9594ca3
e175b6d refactor(file): rename file operation to Manage Sharing TheodoreSpeaks Jun 23, 2026 https://github.com/simstudioai/sim/pull/5177/commits/e175b6dca832ca001da36962fb806b99272749d3
e9e8839 fix(file): complete Manage Sharing rename in tools barrel TheodoreSpeaks Jun 23, 2026 https://github.com/simstudioai/sim/pull/5177/commits/e9e8839e58de83d2161729ce565ac57f41545943
80bb8ed fix(file): require isActive in tool params type, reject multiple file… TheodoreSpeaks Jun 23, 2026 https://github.com/simstudioai/sim/pull/5177/commits/80bb8edf6110e72d6331efdd2ab6d47b3d2598d3
8c2750d fix(file): resolve basic-picker files for manage sharing TheodoreSpeaks Jun 24, 2026 https://github.com/simstudioai/sim/pull/5177/commits/8c2750d64d2820ee0679365f9aad99f641eb74aa
Clear filters https://github.com/simstudioai/sim/pull/5177/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5177/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5177/files
route.ts https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
blocks.test.ts https://github.com/simstudioai/sim/pull/5177/files#diff-b6d848fc5f16236ed95dcc6fbeaea370a16b9095dce67613bfc4d25c8da532f9
file.test.ts https://github.com/simstudioai/sim/pull/5177/files#diff-4b534a1498798935f80824d4f76d3fe11066bccc3e2dcc1bdbc42463c411f6c9
file.ts https://github.com/simstudioai/sim/pull/5177/files#diff-9b42548aa30ce9a74dfede994f6a2bbcf873c4a1c323f30ca693b4b2494ea79d
file.ts https://github.com/simstudioai/sim/pull/5177/files#diff-ec1001c1d9c13d466d00f98de32771c5591193b97771342a1254a5a203257047
index.ts https://github.com/simstudioai/sim/pull/5177/files#diff-b50f54784f67062d0bef1bae7ac062b3f0157e4a578f46a832fb5e80662209b5
manage-sharing.ts https://github.com/simstudioai/sim/pull/5177/files#diff-3e483f6b588473be3a52d2af7c86adcc797a315dc4410bf58cf715a1136ee81c
registry.ts https://github.com/simstudioai/sim/pull/5177/files#diff-a05e54887bf05477726b00df4183dd4a3fa0fd1f82b867bbf156e1b6a6d7e3fa
apps/sim/app/api/tools/file/manage/route.tshttps://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
View file https://github.com/simstudioai/sim/blob/8c2750d64d2820ee0679365f9aad99f641eb74aa/apps/sim/app/api/tools/file/manage/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5177/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
Please reload this pagehttps://github.com/simstudioai/sim/pull/5177/files
https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
https://github.com/simstudioai/sim/pull/5177/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376
apps/sim/blocks/blocks.test.tshttps://github.com/simstudioai/sim/pull/5177/files#diff-b6d848fc5f16236ed95dcc6fbeaea370a16b9095dce67613bfc4d25c8da532f9
View file https://github.com/simstudioai/sim/blob/8c2750d64d2820ee0679365f9aad99f641eb74aa/apps/sim/blocks/blocks.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5177/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5177/files#diff-b6d848fc5f16236ed95dcc6fbeaea370a16b9095dce67613bfc4d25c8da532f9
https://github.com/simstudioai/sim/pull/5177/files#diff-b6d848fc5f16236ed95dcc6fbeaea370a16b9095dce67613bfc4d25c8da532f9
apps/sim/blocks/blocks/file.test.tshttps://github.com/simstudioai/sim/pull/5177/files#diff-4b534a1498798935f80824d4f76d3fe11066bccc3e2dcc1bdbc42463c411f6c9
View file https://github.com/simstudioai/sim/blob/8c2750d64d2820ee0679365f9aad99f641eb74aa/apps/sim/blocks/blocks/file.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5177/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5177/files#diff-4b534a1498798935f80824d4f76d3fe11066bccc3e2dcc1bdbc42463c411f6c9
Please reload this pagehttps://github.com/simstudioai/sim/pull/5177/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5177/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.