René's URL Explorer Experiment


Title: feat(hub): buildHub accpets already-mounted context by antfubot · Pull Request #349 · devframes/devframe · GitHub

Open Graph Title: feat(hub): buildHub accpets already-mounted context by antfubot · Pull Request #349 · devframes/devframe

X Title: feat(hub): buildHub accpets already-mounted context by antfubot · Pull Request #349 · devframes/devframe

Description: Closes #347. Lets buildHub reuse its baking pipeline for a context a host assembled and mounted itself (Vite DevTools' kit-augmented context, devframes mounted from Vite plugins), so downstreams stop shadowing the baker and inherit format/behaviour fixes for free. Rather than introduce a new bakeHubStatic verb/concept, this mirrors initHub's existing context option. What buildHub({ context }) — pass an already-mounted DevframeHubContext instead of devframes; buildHub bakes it, reading ctx.frames and ctx.views.buildStaticDirs for what to emit. Mutually exclusive with devframes (throws DF8002, same as initHub). configure/ui.setup still run against it. ctx.frames (HubMountedFrame[], exported from @devframes/hub/node) is populated in prepareDevframe, so ctx.install, initHub, and buildHub all record frames uniformly and the baker can emit __index.json + per-frame metas for a context it did not mount itself. Statics copied from ctx.views.buildStaticDirs (local dir cp, remote source materialize), so a caller-mounted context whose host copied nothing live still gets its assets in. Page scripts route through views.hostStatic so they land there too. clean?: boolean (default true) — set false to bake beside an app's own build output. The public surface stays just buildHub; the baking helpers are module-private in build.ts. Notes The downstream deletion of vitejs/devtools' hand-rolled packages/core/src/node/build-static.ts lives in that separate repo; this is the upstream half that unblocks it. The change is confined to @devframes/hub (+ docs). Existing buildHub/initHub behaviour is unchanged; added tests cover baking a context, the clean: false flag, and ctx.frames. This PR was created with the help of an agent.

Open Graph Description: Closes #347. Lets buildHub reuse its baking pipeline for a context a host assembled and mounted itself (Vite DevTools' kit-augmented context, devframes mounted from Vite plugins), so downstream...

X Description: Closes #347. Lets buildHub reuse its baking pipeline for a context a host assembled and mounted itself (Vite DevTools' kit-augmented context, devframes mounted from Vite plugins), so downst...

Opengraph URL: https://github.com/devframes/devframe/pull/349

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:fb3582bf-15ca-3b01-a6d3-268c9a198809
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9186:1863E2:1656C5:1E5CC1:6AFB8BF5
html-safe-noncec195a20d9f35a76b914ffe3e3af644da1b623327da8e8a3b9d093326afae6cfb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTg2OjE4NjNFMjoxNjU2QzU6MUU1Q0MxOjZBRkI4QkY1IiwidmlzaXRvcl9pZCI6IjIxOTE2ODAxNDc0NjU5MzE3NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacccd4f12ce1b337fc521d5c1542c133a46089a9c52602bad64ca81417b25fc9d9
hovercard-subject-tagpull_request:4433155251
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/devframes/devframe/pull/349/files
twitter:imagehttps://avatars.githubusercontent.com/u/291667613?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/291667613?s=400&v=4
og:image:altCloses #347. Lets buildHub reuse its baking pipeline for a context a host assembled and mounted itself (Vite DevTools' kit-augmented context, devframes mounted from Vite plugins), so downstream...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9694464143465782ecae2a97650b2a2b0708d5c31c74f41ee86da57e315e2735
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/devframes/devframe git https://github.com/devframes/devframe.git
octolytics-dimension-user_id279879373
octolytics-dimension-user_logindevframes
octolytics-dimension-repository_id1231722386
octolytics-dimension-repository_nwodevframes/devframe
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1231722386
octolytics-dimension-repository_network_root_nwodevframes/devframe
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
release05d967182208691fc7f2e6af52e82fa7fabf6bd5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/devframes/devframe/pull/349/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F349%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%2Fdevframes%2Fdevframe%2Fpull%2F349%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=devframes%2Fdevframe
Reloadhttps://github.com/devframes/devframe/pull/349/files
Reloadhttps://github.com/devframes/devframe/pull/349/files
Reloadhttps://github.com/devframes/devframe/pull/349/files
devframeshttps://github.com/devframes
devframehttps://github.com/devframes/devframe
Codehttps://github.com/devframes/devframe
Issues12 (12)https://github.com/devframes/devframe/issues
Pull requests13 (13)https://github.com/devframes/devframe/pulls
Actionshttps://github.com/devframes/devframe/actions
Security and qualityhttps://github.com/devframes/devframe/security
Insightshttps://github.com/devframes/devframe/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
antfuhttps://github.com/antfu
mainhttps://github.com/devframes/devframe/tree/main
feat/hub-bake-statichttps://github.com/devframes/devframe/tree/feat/hub-bake-static
Conversation 2 https://github.com/devframes/devframe/pull/349
Commits 6 https://github.com/devframes/devframe/pull/349/commits
Checks 13 https://github.com/devframes/devframe/pull/349/checks
Files changed https://github.com/devframes/devframe/pull/349/files
Please reload this pagehttps://github.com/devframes/devframe/pull/349/files
feat(hub): buildHub accpets already-mounted context https://github.com/devframes/devframe/pull/349/files#top
Show all changes 6 commits https://github.com/devframes/devframe/pull/349/files
5bafc33 feat(hub): expose bakeHubStatic to bake an already-mounted context antfubot Sep 3, 2026 https://github.com/devframes/devframe/pull/349/commits/5bafc33f46e9624411e791f230beff51f879fb37
c3a954f refactor(hub): minimize bakeHubStatic change surface antfubot Sep 3, 2026 https://github.com/devframes/devframe/pull/349/commits/c3a954f32dfbe9da5cf8015397231f660af78d56
0aaabab refactor(hub): reuse buildHub({ context }) instead of a bakeHubStatic… antfubot Sep 4, 2026 https://github.com/devframes/devframe/pull/349/commits/0aaabab1b88ad9c2ea59ee050263ca8ab72795b1
f944e0f test(hub): update tsnapi API snapshots for buildHub context/clean and… antfubot Sep 4, 2026 https://github.com/devframes/devframe/pull/349/commits/f944e0ff7b389d0d378508daa5f9c41efc53bfb0
e140c7a Merge remote-tracking branch 'origin/main' into feat/hub-bake-static antfubot Sep 4, 2026 https://github.com/devframes/devframe/pull/349/commits/e140c7a421f01232c6665dbde7b6368393842288
ae096b1 fix(hub): resolve baked statics with their mount resolveFrom antfubot Sep 4, 2026 https://github.com/devframes/devframe/pull/349/commits/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a
Clear filters https://github.com/devframes/devframe/pull/349/files
Please reload this pagehttps://github.com/devframes/devframe/pull/349/files
Please reload this pagehttps://github.com/devframes/devframe/pull/349/files
18.hub-initiate.md https://github.com/devframes/devframe/pull/349/files#diff-c911ddd426817578cc6655c6ada19630b98f84f60f947704c3fc5cd2ba08c1bb
DF8002.md https://github.com/devframes/devframe/pull/349/files#diff-8a07eb601dfb507853801275144c6e7b6d7e59061c9aa486e808afa50af1f013
6.hub-api.md https://github.com/devframes/devframe/pull/349/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
host-views.ts https://github.com/devframes/devframe/pull/349/files#diff-d712725f6436b729c799e30bf36aace0ee4269b18da7820db691dd6fc6c3c263
views.ts https://github.com/devframes/devframe/pull/349/files#diff-a8133c67a4be4cf1e7b637aa8a2b75206b1671075b7b6b96404ef3622ae927a8
build.test.ts https://github.com/devframes/devframe/pull/349/files#diff-a43522af96fe43c37f7d0f44dfeb665873ddbf6a36ee1d913e6c3a8a215ca443
install-devframe.test.ts https://github.com/devframes/devframe/pull/349/files#diff-5e9f0cf3522b148e16221a44a6a7fcac93159f39ac8844a2b2447206fc9f3007
assemble.ts https://github.com/devframes/devframe/pull/349/files#diff-b1f9ddd42485b8164049a9c8696c0a3ca29b3707d402593ed053bae3f307c7ad
build.ts https://github.com/devframes/devframe/pull/349/files#diff-51b174b6e2bda0bd8cc46d234f788727b8b446d6cd94a3501b23d1b9f9cfc31d
context.ts https://github.com/devframes/devframe/pull/349/files#diff-cf945f98fa959569a126f5688ba2be0464ce5c819a1fd802d6fcc18048216cdf
diagnostics.ts https://github.com/devframes/devframe/pull/349/files#diff-af191f0c764e8fd01fadfd30052ac72acb89c1026fd45ac8d12c0ff95506b51d
initiate.ts https://github.com/devframes/devframe/pull/349/files#diff-500061a187e404009222ccd84a3d851545df0a3826241909a3b3b3d9580a4b02
install-devframe.ts https://github.com/devframes/devframe/pull/349/files#diff-2784c8b5ff8e7880575a8ce0583f3e35864b069806fc806acdd8f12fc968ea6f
build.snapshot.d.ts https://github.com/devframes/devframe/pull/349/files#diff-b91278963464272a3ccde5ca874b07304431ad91fa0b93165c59d85a7093d9d6
index.snapshot.d.ts https://github.com/devframes/devframe/pull/349/files#diff-db64e389f351b7be6e78012df747772ce10c467c799d8e47a05290539673b278
node.snapshot.d.ts https://github.com/devframes/devframe/pull/349/files#diff-75e0ffc0919ffd1238e0892aa80a9bca51b8d344ddbad7302d571c385d05486e
index.snapshot.d.ts https://github.com/devframes/devframe/pull/349/files#diff-e36c6d402239a03e9a6e3a7c285d18780f3584e9dd275c7e5220a6fc41fb160d
docs/content/1.guide/18.hub-initiate.mdhttps://github.com/devframes/devframe/pull/349/files#diff-c911ddd426817578cc6655c6ada19630b98f84f60f947704c3fc5cd2ba08c1bb
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/docs/content/1.guide/18.hub-initiate.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-c911ddd426817578cc6655c6ada19630b98f84f60f947704c3fc5cd2ba08c1bb
docs/content/6.errors/DF8002.mdhttps://github.com/devframes/devframe/pull/349/files#diff-8a07eb601dfb507853801275144c6e7b6d7e59061c9aa486e808afa50af1f013
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/docs/content/6.errors/DF8002.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-8a07eb601dfb507853801275144c6e7b6d7e59061c9aa486e808afa50af1f013
docs/content/8.references/6.hub-api.mdhttps://github.com/devframes/devframe/pull/349/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/docs/content/8.references/6.hub-api.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
https://github.com/devframes/devframe/pull/349/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
packages/devframe/src/node/host-views.tshttps://github.com/devframes/devframe/pull/349/files#diff-d712725f6436b729c799e30bf36aace0ee4269b18da7820db691dd6fc6c3c263
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/packages/devframe/src/node/host-views.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-d712725f6436b729c799e30bf36aace0ee4269b18da7820db691dd6fc6c3c263
https://github.com/devframes/devframe/pull/349/files#diff-d712725f6436b729c799e30bf36aace0ee4269b18da7820db691dd6fc6c3c263
packages/devframe/src/types/views.tshttps://github.com/devframes/devframe/pull/349/files#diff-a8133c67a4be4cf1e7b637aa8a2b75206b1671075b7b6b96404ef3622ae927a8
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/packages/devframe/src/types/views.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-a8133c67a4be4cf1e7b637aa8a2b75206b1671075b7b6b96404ef3622ae927a8
https://github.com/devframes/devframe/pull/349/files#diff-a8133c67a4be4cf1e7b637aa8a2b75206b1671075b7b6b96404ef3622ae927a8
packages/hub/src/node/__tests__/build.test.tshttps://github.com/devframes/devframe/pull/349/files#diff-a43522af96fe43c37f7d0f44dfeb665873ddbf6a36ee1d913e6c3a8a215ca443
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/packages/hub/src/node/__tests__/build.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-a43522af96fe43c37f7d0f44dfeb665873ddbf6a36ee1d913e6c3a8a215ca443
https://github.com/devframes/devframe/pull/349/files#diff-a43522af96fe43c37f7d0f44dfeb665873ddbf6a36ee1d913e6c3a8a215ca443
https://github.com/devframes/devframe/pull/349/files#diff-a43522af96fe43c37f7d0f44dfeb665873ddbf6a36ee1d913e6c3a8a215ca443
https://github.com/devframes/devframe/pull/349/files#diff-a43522af96fe43c37f7d0f44dfeb665873ddbf6a36ee1d913e6c3a8a215ca443
packages/hub/src/node/__tests__/install-devframe.test.tshttps://github.com/devframes/devframe/pull/349/files#diff-5e9f0cf3522b148e16221a44a6a7fcac93159f39ac8844a2b2447206fc9f3007
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/packages/hub/src/node/__tests__/install-devframe.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-5e9f0cf3522b148e16221a44a6a7fcac93159f39ac8844a2b2447206fc9f3007
https://github.com/devframes/devframe/pull/349/files#diff-5e9f0cf3522b148e16221a44a6a7fcac93159f39ac8844a2b2447206fc9f3007
packages/hub/src/node/assemble.tshttps://github.com/devframes/devframe/pull/349/files#diff-b1f9ddd42485b8164049a9c8696c0a3ca29b3707d402593ed053bae3f307c7ad
View file https://github.com/devframes/devframe/blob/ae096b16ae10ccc9b2e2b8f8061ab5583f92019a/packages/hub/src/node/assemble.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/349/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/349/files#diff-b1f9ddd42485b8164049a9c8696c0a3ca29b3707d402593ed053bae3f307c7ad
https://github.com/devframes/devframe/pull/349/files#diff-b1f9ddd42485b8164049a9c8696c0a3ca29b3707d402593ed053bae3f307c7ad
https://github.com/devframes/devframe/pull/349/files#diff-b1f9ddd42485b8164049a9c8696c0a3ca29b3707d402593ed053bae3f307c7ad
https://github.com/devframes/devframe/pull/349/files#diff-b1f9ddd42485b8164049a9c8696c0a3ca29b3707d402593ed053bae3f307c7ad
Please reload this pagehttps://github.com/devframes/devframe/pull/349/files
Please reload this pagehttps://github.com/devframes/devframe/pull/349/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.