René's URL Explorer Experiment


Title: refactor(providers,executor): deepen three shallow modules by waleedlatif1 · Pull Request #5052 · simstudioai/sim · GitHub

Open Graph Title: refactor(providers,executor): deepen three shallow modules by waleedlatif1 · Pull Request #5052 · simstudioai/sim

X Title: refactor(providers,executor): deepen three shallow modules by waleedlatif1 · Pull Request #5052 · simstudioai/sim

Description: Summary executor: collapse ~20 scattered subflow node-ID parsing/building helpers and their regex patterns behind a single SubflowNodeIdCodec; subflow-utils and execution state delegate to it. providers: extract the near-identical StreamingExecution assembly (timing segments, cost, tokens, onComplete wiring, envelope) copy-pasted across ~16 providers into one createStreamingExecution factory; providers inject only their stream iterable + delta extractors. Gemini left as-is (structurally divergent). providers: dedupe the identical inline tool-schema literals across ~16 providers into shared adaptOpenAIChatToolSchema / adaptAnthropicToolSchema helpers; content building reverts to calling the attachments builders directly (the per-provider content seam was pure pass-through indirection). One commit per refactor. No dead code left behind. Type of Change Refactor (no functional change) Testing New unit tests: subflow codec, streaming-execution factory, tool-schema adapters (all pass). Full provider + executor suites pass (987 tests); typecheck clean; check:api-validation passes. Behavior audited line-by-line by independent reviewers against HEAD — byte-identical output, ordering, cost/token/timing, and error modes. Zero behavior change. 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 executor: collapse ~20 scattered subflow node-ID parsing/building helpers and their regex patterns behind a single SubflowNodeIdCodec; subflow-utils and execution state delegate to it. pro...

X Description: Summary executor: collapse ~20 scattered subflow node-ID parsing/building helpers and their regex patterns behind a single SubflowNodeIdCodec; subflow-utils and execution state delegate to it. pro...

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

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:f53b87bb-6d7d-d798-ea15-30ced1c6bac8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE006:18732E:FC56FF:159790C:6AFB6428
html-safe-nonce9cd4b4a0d0c510d1b5cfd59d3240a0aaeb352728adc4a89f6df86b222a11c18f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDA2OjE4NzMyRTpGQzU2RkY6MTU5NzkwQzo2QUZCNjQyOCIsInZpc2l0b3JfaWQiOiI3NDQ4NzYyOTU5MDQyNTcwNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7a57c7229b9c8412bebc73db3293ec5507814b30bc94f653eef094f5c34f6dcd
hovercard-subject-tagpull_request:3865491777
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/5052/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary executor: collapse ~20 scattered subflow node-ID parsing/building helpers and their regex patterns behind a single SubflowNodeIdCodec; subflow-utils and execution state delegate to it. pro...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
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
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5052/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5052%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%2F5052%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/5052/files
Reloadhttps://github.com/simstudioai/sim/pull/5052/files
Reloadhttps://github.com/simstudioai/sim/pull/5052/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
refactor/architecture-deepeninghttps://github.com/simstudioai/sim/tree/refactor/architecture-deepening
Conversation 6 https://github.com/simstudioai/sim/pull/5052
Commits 5 https://github.com/simstudioai/sim/pull/5052/commits
Checks 14 https://github.com/simstudioai/sim/pull/5052/checks
Files changed https://github.com/simstudioai/sim/pull/5052/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5052/files
refactor(providers,executor): deepen three shallow modules https://github.com/simstudioai/sim/pull/5052/files#top
Show all changes 5 commits https://github.com/simstudioai/sim/pull/5052/files
33fb5d9 refactor(executor): collapse subflow node-ID logic behind a codec waleedlatif1 Jun 15, 2026 https://github.com/simstudioai/sim/pull/5052/commits/33fb5d904392c60d0dac794402d3541a6972ef59
12bbc06 refactor(providers): extract StreamingExecution assembly into a factory waleedlatif1 Jun 15, 2026 https://github.com/simstudioai/sim/pull/5052/commits/12bbc06f1ee510435865ed08aaa6a39985d9a15f
5baec54 refactor(providers): dedupe tool-schema wrapping into adapters waleedlatif1 Jun 15, 2026 https://github.com/simstudioai/sim/pull/5052/commits/5baec54b03ce52377c0673965e50e04036913268
c616bea chore(skills): point add-model provider edits at shared response/tool… waleedlatif1 Jun 15, 2026 https://github.com/simstudioai/sim/pull/5052/commits/c616bead49613b9afe6b1e347f5f19f384892ba4
7454b84 refactor(providers): drop placeholder stream double-cast in streaming… waleedlatif1 Jun 15, 2026 https://github.com/simstudioai/sim/pull/5052/commits/7454b841fd65f1b881b6c05d9fadbd1d973598f3
Clear filters https://github.com/simstudioai/sim/pull/5052/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5052/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5052/files
SKILL.md https://github.com/simstudioai/sim/pull/5052/files#diff-3baa95407bb899ad00ebbd878ab74eceae28336cafd24dd0f3a9659403e58b93
state.ts https://github.com/simstudioai/sim/pull/5052/files#diff-faf6864efdd66bd215787fa17b5ab586fed16f5e79eb8c8c1020bc4c037e4408
subflow-node-id-codec.test.ts https://github.com/simstudioai/sim/pull/5052/files#diff-a7662ec3cac800d7ca532eb4cbd41a29a2cf65bb062c198f0a1d465f2b13720b
subflow-node-id-codec.ts https://github.com/simstudioai/sim/pull/5052/files#diff-b24f973abb09fb3d43252ed738e4c7e5802771cd50a878cd15550ceff42c7493
subflow-utils.ts https://github.com/simstudioai/sim/pull/5052/files#diff-44ae2e49993b02e2101d1f02703adb1693df56b286d126b9d35f45c054eba42a
core.ts https://github.com/simstudioai/sim/pull/5052/files#diff-5e8b122a2de550ace8e7ebc210af52308877b441b8fab3735bad2c0f0fd1a464
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-16321ba301b4b37e6ec0f1c8c23c7c44ec94c64c8fe182853cb0e6cbb0afb28a
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-103dad285850be2cc0a1db06ee831fe38d7cef8d29b3706ddb7351b75d13550d
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-430edca940fea52c2016798b697ebf99e67d20319f3f4ae0badc79a78db9b4a1
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-fac352c14773e8e24fcc0ea45e0643de8dcabbedf7da0e1006617f27bc1fa889
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-e7b802431ef34f879444e897665789401f6e32e0fd34b6a1b3255035fa7cefdf
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-e6da61831a3c1618e6e24172225c2751847cfa734527f7f13d60cbef34cfaad9
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-0a8b21f6aefdc86996f781432a69907c949627b765058ceaa8457a95aaaca5ac
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-d630c240ddcd03fc91feb9d689a6682ed7b1f46c1509af39d2062c797ca3f381
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-2764bb65fb46d0b7df70f131f540b1d50cbc86932c85163c9cae302f6fa41dd0
core.ts https://github.com/simstudioai/sim/pull/5052/files#diff-c9d67cab22514b5b80053abf6b14d7f6d4c67dd8f8f661331fb49544b7caffb5
core.ts https://github.com/simstudioai/sim/pull/5052/files#diff-08a8d94bfd29c80408e6c52311d64c5f906c60d0e7a2144ec632f75d271e3492
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-1b6d05aaa057bb7cc18dcf51b651ef4d12677ebad456c29b73ee536c2cf2063a
streaming-execution.test.ts https://github.com/simstudioai/sim/pull/5052/files#diff-1dd84d799b13023151dc429604c2324ea8d19838f20866e23c2fc8601ba02642
streaming-execution.ts https://github.com/simstudioai/sim/pull/5052/files#diff-802feca10aa669118d60ec7832cf715987356e20d8e7a3c975d7a0b80d97a2a0
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-7c162b0b47195501848697e705a9b7f65f1c0495b39857bce2cd0e576e630aee
tool-schema-adapter.test.ts https://github.com/simstudioai/sim/pull/5052/files#diff-e5cc94fdd43ceedae2f46d56c4d9402031dafea84776c497c2c9a241faacbe43
tool-schema-adapter.ts https://github.com/simstudioai/sim/pull/5052/files#diff-107174bc6b8004adf3f0615db1f8f8c6ad37bbc3c15cd4417d15fc57ac85a019
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-5dc87b21d7216b477b0ffc10118f46d099ae9416e6ab03f01cf478263f2ec3fa
index.ts https://github.com/simstudioai/sim/pull/5052/files#diff-6a25345dd21f13435ed78bfd600452bd2118638cabe5e77266bc3dc22c9d8b16
.agents/skills/add-model/SKILL.mdhttps://github.com/simstudioai/sim/pull/5052/files#diff-3baa95407bb899ad00ebbd878ab74eceae28336cafd24dd0f3a9659403e58b93
View file https://github.com/simstudioai/sim/blob/7454b841fd65f1b881b6c05d9fadbd1d973598f3/.agents/skills/add-model/SKILL.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5052/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5052/files#diff-3baa95407bb899ad00ebbd878ab74eceae28336cafd24dd0f3a9659403e58b93
https://github.com/simstudioai/sim/pull/5052/files#diff-3baa95407bb899ad00ebbd878ab74eceae28336cafd24dd0f3a9659403e58b93
apps/sim/executor/execution/state.tshttps://github.com/simstudioai/sim/pull/5052/files#diff-faf6864efdd66bd215787fa17b5ab586fed16f5e79eb8c8c1020bc4c037e4408
View file https://github.com/simstudioai/sim/blob/7454b841fd65f1b881b6c05d9fadbd1d973598f3/apps/sim/executor/execution/state.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5052/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5052/files#diff-faf6864efdd66bd215787fa17b5ab586fed16f5e79eb8c8c1020bc4c037e4408
apps/sim/executor/utils/subflow-node-id-codec.test.tshttps://github.com/simstudioai/sim/pull/5052/files#diff-a7662ec3cac800d7ca532eb4cbd41a29a2cf65bb062c198f0a1d465f2b13720b
View file https://github.com/simstudioai/sim/blob/7454b841fd65f1b881b6c05d9fadbd1d973598f3/apps/sim/executor/utils/subflow-node-id-codec.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5052/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/5052/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5052/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.