void 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-cmd-DRhmCWcm.mjs → account-cmd-BfkJ_1PC.mjs} +6 -6
- package/dist/{application-analysis-HRFsZOv3.mjs → application-analysis-OV0CBJ80.mjs} +8 -19
- package/dist/{application-routing-P4TggvWp.mjs → application-routing-QpyC5G8z.mjs} +2 -1
- package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
- package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
- package/dist/{auth-CH4PLAX1.d.mts → auth-CZrthGxs.d.mts} +8 -1
- package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
- package/dist/{auth-link-CVXP1G6G.mjs → auth-link-CW1Zh6FM.mjs} +6 -6
- package/dist/{auth-router-D1pGdbvB.mjs → auth-router-CNBKnEZi.mjs} +3 -3
- package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-C-0uZg8-.d.mts} +1 -1
- package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
- package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-C9qOKW9W.mjs} +5 -5
- package/dist/{cache-2khBO1MR.mjs → cache-DVBBbWQL.mjs} +5 -5
- package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-COavnjud.mjs} +4 -4
- package/dist/{cf-build-output-B1C8U83u.mjs → cf-build-output-CWNOH-KA.mjs} +2 -1
- package/dist/cf-build-output-DUZnAeZ1.mjs +1 -0
- package/dist/{cf-config-migrate-Dy8MrKgF.mjs → cf-config-migrate-Bb-EdAQq.mjs} +5 -1
- package/dist/cli/cli.mjs +68 -1868
- package/dist/cli/cloudflare-operation-process.mjs +10 -8
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli-main-DFteHrJI.mjs +1889 -0
- package/dist/client-BAxLpSKv.mjs +1 -0
- package/dist/{client-CoxPEhJq.mjs → client-BEZmTP6p.mjs} +10 -4
- package/dist/{cloudflare-auth-CEu-1Ps_.mjs → cloudflare-auth-DGIivpTb.mjs} +1 -1
- package/dist/{cloudflare-cmd-fZ6AMSWk.mjs → cloudflare-cmd-DJaxC-bc.mjs} +5 -5
- package/dist/{cloudflare-config-eQunqX6A.mjs → cloudflare-config-DtOGAbeB.mjs} +3 -3
- package/dist/{cloudflare-connect-9OZe4XVQ.mjs → cloudflare-connect-BjpWmglw.mjs} +3 -3
- package/dist/{cloudflare-operations-oLvAd9Nd.mjs → cloudflare-operations-CZkjFrzH.mjs} +1 -1
- package/dist/{cloudflare-operations-CrskD4_O.mjs → cloudflare-operations-k7wYUv56.mjs} +6 -6
- package/dist/{cloudflare-process-DjJ638A-.mjs → cloudflare-process-BcPvlMFd.mjs} +3 -3
- package/dist/{config-BITKQ3O6.mjs → config-5oSQhZNj.mjs} +7 -5
- package/dist/{config-CPxJmt4M.d.mts → config-CTlUaXWZ.d.mts} +3 -1
- package/dist/{config-BBlVXZCU.mjs → config-DcqUBGCb.mjs} +3 -3
- package/dist/{config-WlvEcL82.mjs → config-eeDzKBS9.mjs} +2 -2
- package/dist/config-entry.d.mts +1 -1
- package/dist/{config-BgysUhnm.mjs → config-wo2EaH0X.mjs} +1 -1
- package/dist/{connect-CKvmkl2R.mjs → connect-j1F1C_rW.mjs} +7 -7
- package/dist/{create-project-Bq0M8MtO.mjs → create-project-CE3jOmd5.mjs} +5 -5
- package/dist/{create-project-BiMmR5wA.mjs → create-project-DZH3aYGQ.mjs} +1 -1
- package/dist/{db-DjtGAcOz.mjs → db-DyLzzxvM.mjs} +39 -39
- package/dist/{db-types-C_8amnB0.mjs → db-types-DdHHUVPy.mjs} +1 -1
- package/dist/{delete-CY4L8fi2.mjs → delete-Dey6YoMA.mjs} +5 -5
- package/dist/{deploy-D_gEojD2.mjs → deploy-Ccw2D2lw.mjs} +507 -122
- package/dist/deploy-DEZkUS77.mjs +2 -0
- package/dist/{deploy-managed-static-BHVbB_-A.mjs → deploy-managed-static-BBVtpuGv.mjs} +18 -18
- package/dist/{deploy-transport-DEyOUfac.mjs → deploy-transport-Dt0IvSVW.mjs} +2 -2
- package/dist/deploy.mjs +8 -8
- package/dist/discover-1DJD4YXD.mjs +1 -0
- package/dist/{discover-Dhkzxgdt.mjs → discover-CVFCWU7W.mjs} +1 -1
- package/dist/{dispatch-BNLB5_Gm.mjs → dispatch-pYaww76u.mjs} +6 -6
- package/dist/{dist-D23AAMxT.mjs → dist-BQdgCVQF.mjs} +1 -1
- package/dist/{dist-eV_Ep60B.mjs → dist-DeTdhbZc.mjs} +1 -1
- package/dist/{domain-BlH90Ods.mjs → domain-Dh3mG8Vs.mjs} +6 -6
- package/dist/{email-Bkq8ZL1p.mjs → email-DKyMjOYM.mjs} +11 -11
- package/dist/{email-cloudflare-MvJIxrwx.mjs → email-cloudflare-CTt2n_W2.mjs} +13 -9
- package/dist/{entry-CBZsCy3O.mjs → entry-Bw-G1VVx.mjs} +2 -2
- package/dist/{env-AvuCSeCH.mjs → env-DkZzh_Dd.mjs} +7 -7
- package/dist/env-mask-D31Qztl9.mjs +46 -0
- package/dist/{env-types-DqzVBKnS.mjs → env-types-Dz9qkiOn.mjs} +1 -1
- package/dist/{env-validation-GV1oD4EV.mjs → env-validation-1snjKtDX.mjs} +4 -4
- package/dist/{env-validation-C8Cmvas0.mjs → env-validation-C8NL3lEH.mjs} +1 -1
- package/dist/{fetch-C8yhLoF3.mjs → fetch-CAIVkLvW.mjs} +1 -1
- package/dist/{fetch-B-gLGYVl.d.mts → fetch-CbI6lNnk.d.mts} +6 -4
- package/dist/{fetch-stream-DafNtVJC.mjs → fetch-stream-6Op0qlLd.mjs} +1 -1
- package/dist/{fetch-stream-DuwxWmBM.d.mts → fetch-stream-DoED9atq.d.mts} +1 -1
- package/dist/{gen-B9bCV5qu.mjs → gen-BZmFOGDQ.mjs} +7 -7
- package/dist/gen-C6iknRdI.mjs +1 -0
- package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-7Oky9qgH.mjs} +6 -6
- package/dist/{handler-CKeTtYID.mjs → handler-C9SnmeW1.mjs} +6 -5
- package/dist/{handler-BR6Tvjkp.d.mts → handler-DjqciiDc.d.mts} +20 -7
- package/dist/{headers-CuTEdP9C.mjs → headers-CimYIfQI.mjs} +1 -1
- package/dist/{help-1OCFDsRr.mjs → help-CNuUb47C.mjs} +7 -3
- package/dist/help-C_cqTByy.mjs +1 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +155 -110
- package/dist/{info-CJxua_db.mjs → info-DwB8IWIx.mjs} +4 -4
- package/dist/{init-B-4CluYx.mjs → init-CUGSmcED.mjs} +34 -32
- package/dist/{link-DAXOT-G_.mjs → link-BlRTGHan.mjs} +6 -6
- package/dist/{list-BYSOo9fm.mjs → list-iCg7d5Pa.mjs} +7 -7
- package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
- package/dist/{live-0xrcVpyq.d.mts → live-zKGbRT4h.d.mts} +2 -2
- package/dist/{local-d1-BLgsNUj9.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
- package/dist/login-C4q1S-5b.mjs +1 -0
- package/dist/{login-CJopTWX4.mjs → login-TA51e5Fw.mjs} +5 -5
- package/dist/{logs-DE0weBsR.mjs → logs-BlyAxlvx.mjs} +6 -6
- package/dist/{migrate-ChHHZBTi.mjs → migrate-BH6LCr00.mjs} +6 -6
- package/dist/migrate-CVBsSFhC.mjs +1 -0
- package/dist/nitro.d.mts +5 -0
- package/dist/nitro.mjs +27 -8
- package/dist/{node-CZ6lGNLn.mjs → node-B0otYjDv.mjs} +4 -4
- package/dist/{operator-args-D79WQP70.mjs → operator-args-DuKAQ3Ks.mjs} +1 -1
- package/dist/{operator-auth-CfDcmzpo.mjs → operator-auth-CD3pap65.mjs} +1 -1
- package/dist/{operator-client-BIY4-N_6.mjs → operator-client-XvXTkea6.mjs} +2 -2
- package/dist/{operator-cmd-BUqsdk2K.mjs → operator-cmd-CoHlJjcT.mjs} +7 -7
- package/dist/operator-cmd-DnaCnCSP.mjs +1 -0
- package/dist/output-CNsMDEd2.mjs +1 -0
- package/dist/{output-BCdLioKP.mjs → output-CXJTIAtF.mjs} +1 -1
- package/dist/pages/client.d.mts +18 -13
- package/dist/pages/client.mjs +40 -69
- package/dist/pages/index.d.mts +4 -3
- package/dist/pages/index.mjs +11 -7
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/platform-args-B7-wQ0_B.mjs +1 -0
- package/dist/{platform-args-Cx1M-7bq.mjs → platform-args-DfT8yQBF.mjs} +1 -1
- package/dist/{platform-auth-config-K4m_LE8b.mjs → platform-auth-config-MO0VdVs9.mjs} +10 -10
- package/dist/{platform-auth-protection-KF5Vo-1I.mjs → platform-auth-protection-Dv208eyL.mjs} +8 -8
- package/dist/{platform-auth-recovery-BOdFrl7R.mjs → platform-auth-recovery-DvAQ674F.mjs} +7 -7
- package/dist/{platform-cmd-DpCHawGF.mjs → platform-cmd-BpUA19r_.mjs} +1 -1
- package/dist/{platform-cmd-Ds3EAV5t.mjs → platform-cmd-dlSxrcQ7.mjs} +9 -9
- package/dist/{platform-domain-rWJshybd.mjs → platform-domain-DSO4eUEw.mjs} +5 -5
- package/dist/{platform-lifecycle-D9RdGub1.mjs → platform-lifecycle-BSvsyB_x.mjs} +17 -17
- package/dist/{platform-lifecycle-BH34I0rh.mjs → platform-lifecycle-CfcFygHb.mjs} +1 -1
- package/dist/{platform-management-BfLW0Zlo.mjs → platform-management-BMdyt667.mjs} +1 -1
- package/dist/{platform-management-BRefdHGD.mjs → platform-management-CrP1XhVd.mjs} +4 -4
- package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-CgDiwflR.mjs} +5 -5
- package/dist/{platform-recovery-DZuZGJtt.mjs → platform-recovery-CHWwXVZ6.mjs} +3 -3
- package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-BTQVbnTC.mjs} +3 -3
- package/dist/{plugin-inference-CdLbxZL_.mjs → plugin-inference-g66Q1Mx9.mjs} +5 -8
- package/dist/prepare-Bx4a8cb1.mjs +1 -0
- package/dist/{prepare-BuNbuFlA.mjs → prepare-DJYHjpzq.mjs} +3 -3
- package/dist/{prepare-BerOZiD4.mjs → prepare-DXduEwQp.mjs} +12 -9
- package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BN9Lmebs.mjs} +29 -13
- package/dist/prerender-render.d.mts +10 -2
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-B_bUyZ3J.mjs → project-cmd-Dfb1Sg8w.mjs} +18 -18
- package/dist/{project-paths-CdGv9Tmi.mjs → project-paths-G0yut6Zz.mjs} +12 -8
- package/dist/{project-team-MjT5K4rQ.mjs → project-team-BO2dyc7S.mjs} +5 -5
- package/dist/{project-token-BKHGwY3k.mjs → project-token-ByO2mEI2.mjs} +5 -5
- package/dist/{project-tsconfig-Cf2NFjlM.mjs → project-tsconfig-nhnTWO_Y.mjs} +4 -2
- package/dist/{project-zero-trust-Bzdd05-h.mjs → project-zero-trust-CoQfwRBR.mjs} +5 -5
- package/dist/{protocol-CkwjASep.d.mts → protocol-xZMvWsrg.d.mts} +5 -3
- package/dist/{protocol-COyySMki.mjs → protocol-yxdHxFLN.mjs} +47 -11
- package/dist/{provision-DQF6Kw-6.mjs → provision-CMH4-8ri.mjs} +1 -1
- package/dist/{provision-BbCzpbXs.mjs → provision-D5q-ptD3.mjs} +2 -2
- package/dist/{requests-daJmVpjk.mjs → requests-CPOiDkjh.mjs} +4 -4
- package/dist/resolve-project-BALVa9q0.mjs +1 -0
- package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-ClvLMTI9.mjs} +1 -1
- package/dist/{rollback-BgL0wY1J.mjs → rollback-BfCs2la4.mjs} +7 -7
- package/dist/{route-types-CZc1YXjF.mjs → route-types-Cl3x0Q8B.mjs} +265 -12
- package/dist/{route-url-C_YIH_zO.d.mts → route-url-C3JwYrER.d.mts} +8 -3
- package/dist/{route-url-CRDF-I0I.mjs → route-url-CfCR4oMj.mjs} +4 -3
- package/dist/routes-stub.d.mts +10 -1
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-QMeOpScZ.mjs → runner-CTk21HrO.mjs} +1 -1
- package/dist/{runner-mysql-0zVmB1JW.mjs → runner-mysql-CHvEg_sy.mjs} +1 -1
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/auth.d.mts +2 -2
- package/dist/runtime/auth.mjs +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.mjs +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/client-react.d.mts +3 -3
- package/dist/runtime/client-react.mjs +2 -2
- package/dist/runtime/client-solid.d.mts +3 -3
- package/dist/runtime/client-solid.mjs +2 -2
- package/dist/runtime/client-svelte.d.mts +3 -3
- package/dist/runtime/client-svelte.mjs +2 -2
- package/dist/runtime/client-vue.d.mts +3 -3
- package/dist/runtime/client-vue.mjs +2 -2
- package/dist/runtime/client.d.mts +3 -3
- package/dist/runtime/client.mjs +2 -2
- package/dist/runtime/email/testing.mjs +2 -2
- package/dist/runtime/email.mjs +3 -3
- package/dist/runtime/env-public.mjs +2 -46
- package/dist/runtime/fetch-server.d.mts +1 -1
- package/dist/runtime/fetch-server.mjs +1 -1
- package/dist/runtime/fetch-stream.d.mts +2 -2
- package/dist/runtime/fetch-stream.mjs +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.d.mts +3 -1
- package/dist/runtime/live-client.d.mts +11 -2
- package/dist/runtime/live-client.mjs +8 -0
- package/dist/runtime/live-server.mjs +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/log.mjs +1 -1
- package/dist/runtime/remote/index.mjs +1 -1
- package/dist/runtime/route-url.d.mts +2 -2
- package/dist/runtime/route-url.mjs +1 -1
- package/dist/runtime/routing.d.mts +15 -4
- package/dist/runtime/routing.mjs +94 -12
- package/dist/runtime/sandbox.mjs +1 -1
- package/dist/runtime/sse-client.d.mts +9 -1
- package/dist/runtime/sse-client.mjs +7 -0
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/validator.mjs +1 -1
- package/dist/runtime/ws-server.d.mts +3 -3
- package/dist/runtime/ws-server.mjs +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/runtime/ws.mjs +1 -1
- package/dist/{scan-X2rDDRNa.mjs → scan-L8OSv1f7.mjs} +68 -19
- package/dist/{secret-CPq-B_vp.mjs → secret-CuI6LTpD.mjs} +7 -7
- package/dist/serialize-DN-envGQ.d.mts +18 -0
- package/dist/serialize-Pf-CIQK_.mjs +39 -0
- package/dist/{skills-D393E4lB.mjs → skills-BBO9wMjB.mjs} +1 -1
- package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-BZMnCA8T.mjs} +2 -2
- package/dist/url-CuoEn0o3.mjs +43 -0
- package/dist/validator-8-NZs2Xr.mjs +168 -0
- package/dist/{version-metadata-C8hLzQkv.mjs → version-metadata-eUd6Ar_U.mjs} +1 -1
- package/dist/wrangler-R3kMdJfw.mjs +1 -0
- package/dist/{wrangler-DESSbN8L.mjs → wrangler-k40T7XTQ.mjs} +3 -3
- package/dist/{wrapper-C9SUxoj7.mjs → wrapper-BGsi_uHs.mjs} +12 -9
- package/dist/{ws-Dmjg5NH2.d.mts → ws-DB8Feytg.d.mts} +2 -2
- package/docs/guide/ai.md +2 -0
- package/docs/guide/auth.md +62 -0
- package/docs/guide/database.md +33 -0
- package/docs/guide/deployment.md +8 -0
- package/docs/guide/edge/headers.md +3 -1
- package/docs/guide/edge/prerendering.md +9 -4
- package/docs/guide/edge/redirects.md +1 -0
- package/docs/guide/edge/revalidation.md +3 -0
- package/docs/guide/edge/static-assets.md +1 -1
- package/docs/guide/live.md +2 -0
- package/docs/guide/pages-routing/actions-and-forms.md +29 -10
- package/docs/guide/pages-routing/head.md +3 -1
- package/docs/guide/pages-routing/islands.md +1 -1
- package/docs/guide/pages-routing/loaders.md +2 -0
- package/docs/guide/pages-routing/markdown.md +2 -2
- package/docs/guide/pages-routing/overview.md +139 -10
- package/docs/guide/quickstart.md +1 -0
- package/docs/guide/server-routing.md +14 -0
- package/docs/guide/sse.md +2 -0
- package/docs/guide/ssg.md +23 -2
- package/docs/guide/storage.md +6 -2
- package/docs/guide/type-safety.md +307 -26
- package/docs/guide/typed-fetch.md +7 -3
- package/docs/guide/websockets.md +5 -5
- package/docs/integrations/cloudflare.md +10 -10
- package/docs/integrations/frameworks/nuxt.md +2 -0
- package/docs/integrations/frameworks/overview.md +2 -0
- package/docs/integrations/nodejs-bun-deno.md +65 -0
- package/docs/reference/api/auth.md +19 -0
- package/docs/reference/api/client.md +6 -4
- package/docs/reference/api/handlers.md +3 -1
- package/docs/reference/api/pages.md +16 -8
- package/docs/reference/api/resources.md +3 -1
- package/docs/reference/api/rewrites.md +19 -5
- package/docs/reference/api/types.md +9 -2
- package/docs/reference/cli/database.md +2 -0
- package/docs/reference/cli/deploy.md +17 -11
- package/docs/reference/cli.md +3 -0
- package/docs/reference/config.md +24 -2
- package/package.json +25 -23
- package/schema.json +4 -0
- package/skills/void/SKILL.md +5 -0
- package/dist/cf-build-output-CmDOcA7K.mjs +0 -1
- package/dist/client-CEtr5UOR.mjs +0 -1
- package/dist/deploy-B029oHlE.mjs +0 -2
- package/dist/discover-D4mQthao.mjs +0 -1
- package/dist/gen-cCxrFp9L.mjs +0 -1
- package/dist/help-Ba8Dq5-r.mjs +0 -1
- package/dist/login-BpbYeu-n.mjs +0 -1
- package/dist/migrate-HdA6Kh2p.mjs +0 -1
- package/dist/operator-cmd-wBYyp8iQ.mjs +0 -1
- package/dist/output-E6gecbbV.mjs +0 -1
- package/dist/platform-args-C7XUw9mw.mjs +0 -1
- package/dist/prepare-Cz18kLkF.mjs +0 -1
- package/dist/resolve-project-CgfjtOwz.mjs +0 -1
- package/dist/serialize-DUuYuaY3.mjs +0 -29
- package/dist/serialize-I4EmS-Wf.d.mts +0 -16
- package/dist/validator-CTfmzZYb.mjs +0 -69
- package/dist/wrangler-DUB3MGHV.mjs +0 -1
- package/dist/{cf-access-BmBT2h8_.mjs → cf-access-Dnyw8KFY.mjs} +1 -1
- package/dist/{inbound-CdO-qY0w.mjs → inbound-C2H6Dzz1.mjs} +2 -2
- package/dist/{runner-5MCSimKx.mjs → runner-CMZb7jNU.mjs} +1 -1
- package/dist/{runner-mysql-Bdmsp_x4.mjs → runner-mysql-BXfcQQj3.mjs} +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as runInstalledPlatformCommand, l as selectAuthoritativePlatformManifest, d as verifyPlatformInstallationOwnership } from "./platform-management-
|
|
1
|
+
export { c as runInstalledPlatformCommand, l as selectAuthoritativePlatformManifest, d as verifyPlatformInstallationOwnership } from "./platform-management-CrP1XhVd.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { A as confirm, H as outro, K as select, L as log, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
3
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess, p as note, r as createSpinner } from "./output-CXJTIAtF.mjs";
|
|
4
|
+
import { $ as hyperdriveOriginMatches, A as dnsRecordConfigHash, B as turnOffInstalledProjectZeroTrust, C as createPlatformHealthProbeToken, D as platformTrafficAttachmentWorker, F as platformAdoptionIntentHash, H as resolvePlatformCloudflareCredential, I as r2BucketConfigHash, J as PlatformCloudflareApiError, L as resourceMarkerProblem, M as hasProvisionIntentStep, N as legacyResourceConfigHash, P as matchesRecordedR2Fingerprint, Q as hyperdriveOriginFromConnectionString, R as revalidatePlatformInstallAction, S as loadPlatformRuntime, T as resolveBootstrapGitHubId, U as verifyPlatformCloudflareCredential, V as assertPlatformOperatorCredentialCanApplyPlan, W as activatePlatformAccessCredentials, X as PlatformRuntimeTokenEmailPermissionError, Y as PlatformCloudflareClient, Z as hyperdriveOriginConfigHash, _ as readPlatformProjectSlugs, a as findPlatformWorkerOutsideChanges, b as formatZeroTrustApplications, c as uploadPlatformWorkerOutsideChanges, d as replacePendingInstallationAuthentication, et as verifyPlatformRuntimeTokenEmailPermissions, f as REMOTE_INSTALLATION_MANIFEST_KEY, j as formatPlatformInstallPlan, k as createPlatformInstallPlan, l as authenticationSetupRequestHash, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, o as formatPlatformWorkerOutsideChanges, p as installPlatform, s as reviewPlatformWorkerOutsideChanges, t as assertNoninteractivePlatformMutationAcknowledged, tt as verifyPlatformRuntimeTokenPermissions, u as readLoginReplacementFile, v as readPlatformProjectZeroTrustState, w as createPlatformInstallationSecrets, x as readPlatformDatabase, y as assertProjectZeroTrustAllowsUninstall, z as platformDatabaseNameFromOwnerUrl } from "./platform-lifecycle-BSvsyB_x.mjs";
|
|
1
5
|
import { S as writePendingInstallationSecrets, _ as removePlatformConnectionForInstallation, g as removeInstallationRecoverySecrets, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, o as listInstallationManifests, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
2
|
-
import { t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
|
|
3
|
-
import { A as confirm, H as outro, K as select, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { f as import_picocolors, l as formatUrl, m as printSuccess, p as note, r as createSpinner } from "./output-BCdLioKP.mjs";
|
|
5
6
|
import { i as updateProjectWorkerRuntimeLogs, n as assertPlatformRuntimeLogsSupported, r as shouldUpdateProjectWorkerRuntimeLogs } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
6
|
-
import { $ as hyperdriveOriginMatches, A as dnsRecordConfigHash, B as turnOffInstalledProjectZeroTrust, C as createPlatformHealthProbeToken, D as platformTrafficAttachmentWorker, F as platformAdoptionIntentHash, H as resolvePlatformCloudflareCredential, I as r2BucketConfigHash, J as PlatformCloudflareApiError, L as resourceMarkerProblem, M as hasProvisionIntentStep, N as legacyResourceConfigHash, P as matchesRecordedR2Fingerprint, Q as hyperdriveOriginFromConnectionString, R as revalidatePlatformInstallAction, S as loadPlatformRuntime, T as resolveBootstrapGitHubId, U as verifyPlatformCloudflareCredential, V as assertPlatformOperatorCredentialCanApplyPlan, W as activatePlatformAccessCredentials, X as PlatformRuntimeTokenEmailPermissionError, Y as PlatformCloudflareClient, Z as hyperdriveOriginConfigHash, _ as readPlatformProjectSlugs, a as findPlatformWorkerOutsideChanges, b as formatZeroTrustApplications, c as uploadPlatformWorkerOutsideChanges, d as replacePendingInstallationAuthentication, et as verifyPlatformRuntimeTokenEmailPermissions, f as REMOTE_INSTALLATION_MANIFEST_KEY, j as formatPlatformInstallPlan, k as createPlatformInstallPlan, l as authenticationSetupRequestHash, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, o as formatPlatformWorkerOutsideChanges, p as installPlatform, s as reviewPlatformWorkerOutsideChanges, t as assertNoninteractivePlatformMutationAcknowledged, tt as verifyPlatformRuntimeTokenPermissions, u as readLoginReplacementFile, v as readPlatformProjectZeroTrustState, w as createPlatformInstallationSecrets, x as readPlatformDatabase, y as assertProjectZeroTrustAllowsUninstall, z as platformDatabaseNameFromOwnerUrl } from "./platform-lifecycle-D9RdGub1.mjs";
|
|
7
7
|
import { PLATFORM_DISABLED_KEY, PLATFORM_DISABLED_VALUE, PLATFORM_R2_OWNERSHIP_MARKER_KEY, parsePlatformInstallationManifest, recordInstallationResource, recordInstallationStep, setInstallationDesiredState, transitionInstallation } from "@void/platform";
|
|
8
8
|
import { setTimeout } from "node:timers/promises";
|
|
9
9
|
// src/cli/platform-teardown.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as confirm, K as select, X as text, tt as isCancel } from "./dist-
|
|
2
|
-
import {
|
|
3
|
-
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-
|
|
4
|
-
import {
|
|
1
|
+
import { A as confirm, K as select, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
|
|
3
|
+
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
|
|
4
|
+
import { m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
5
5
|
import { stripVTControlCharacters } from "node:util";
|
|
6
|
-
import { PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanId } from "@void/platform/plans";
|
|
7
6
|
import { readFile } from "node:fs/promises";
|
|
7
|
+
import { PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanId } from "@void/platform/plans";
|
|
8
8
|
// src/cli/platform-plans-config.ts
|
|
9
9
|
const limitLabels = {
|
|
10
10
|
requestsPerMonth: "Requests per billing month",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as listInstallationManifests, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
2
1
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
|
-
import { f as REMOTE_INSTALLATION_MANIFEST_KEY, k as createPlatformInstallPlan } from "./platform-lifecycle-
|
|
4
|
-
import { a as recoverDurablyMarkedProvisionIntents, d as verifyPlatformInstallationOwnership, r as isPlatformManifestMonotonicExtension } from "./platform-management-
|
|
2
|
+
import { f as REMOTE_INSTALLATION_MANIFEST_KEY, k as createPlatformInstallPlan } from "./platform-lifecycle-BSvsyB_x.mjs";
|
|
3
|
+
import { a as recoverDurablyMarkedProvisionIntents, d as verifyPlatformInstallationOwnership, r as isPlatformManifestMonotonicExtension } from "./platform-management-CrP1XhVd.mjs";
|
|
4
|
+
import { o as listInstallationManifests, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
5
5
|
import { parsePlatformInstallationManifest, setInstallationEndpoints } from "@void/platform";
|
|
6
6
|
// src/cli/platform-recovery.ts
|
|
7
7
|
async function recoverPlatformInstallations(client, accountId, verifyEndpoint = verifyInstallationEndpoint, selector = "") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { f as import_picocolors, s as formatLink } from "./output-
|
|
1
|
+
import { L as log, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { u as openBrowser } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { f as import_picocolors, s as formatLink } from "./output-CXJTIAtF.mjs";
|
|
4
4
|
// src/cli/platform-plan-writes.ts
|
|
5
5
|
function planCreatesZone(plan) {
|
|
6
6
|
return plan.actions.some((action) => action.kind === "zone" && action.action === "create");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as join, l as toSlash, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
|
|
3
2
|
import { n as globSync } from "./dist-BWNkVq50.mjs";
|
|
4
|
-
import { d as deriveFromSource, g as ROUTE_EXTENSIONS, h as parseWebSocketFilename, m as parseRouteFilename, p as isRouteEnabledForEnvironment, t as pageFileEnvironment } from "./scan-X2rDDRNa.mjs";
|
|
5
|
-
import { a as isObjectExpression, i as isMemberExpression, n as isIdentifier, r as isLiteral, t as isCallExpression } from "./ast-Cv0JwXqb.mjs";
|
|
6
3
|
import { a as staticLiteral, n as bindingResolver, o as unwrapStaticExpression, r as walk } from "./ast-bindings-BkivMJIo.mjs";
|
|
4
|
+
import { a as isObjectExpression, i as isMemberExpression, n as isIdentifier, r as isLiteral, t as isCallExpression } from "./ast-Cv0JwXqb.mjs";
|
|
5
|
+
import { _ as parseWebSocketFilename, f as deriveFromSource, g as parseRouteFilename, h as isRouteEnabledForEnvironment, m as compareRouteSpecificity, t as pageFileEnvironment, v as ROUTE_EXTENSIONS } from "./scan-L8OSv1f7.mjs";
|
|
6
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
7
7
|
import { n as resourceNameWords, t as isResourceName } from "./resource-name-DlJ9QXzg.mjs";
|
|
8
|
-
import { r as getSsrServerEntryPath } from "./entry-
|
|
8
|
+
import { r as getSsrServerEntryPath } from "./entry-Bw-G1VVx.mjs";
|
|
9
9
|
import { existsSync, readFileSync } from "node:fs";
|
|
10
10
|
import { parseSync } from "vite";
|
|
11
11
|
// src/application-features.ts
|
|
@@ -483,10 +483,7 @@ function buildWebSocketRoute(root, filePath, paths = readProjectPaths(root)) {
|
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
485
|
function parseWebSocketFiles(root, files, paths = readProjectPaths(root), environment) {
|
|
486
|
-
const routes = files.filter((f) => isWebSocketRouteFile(f)).filter((filePath) => isRouteEnabledForEnvironment(parseWebSocketFilename(filePath), environment)).map((filePath) => buildWebSocketRoute(root, filePath, paths)).sort(
|
|
487
|
-
if (a.catchAll !== b.catchAll) return a.catchAll ? 1 : -1;
|
|
488
|
-
return a.pattern.localeCompare(b.pattern);
|
|
489
|
-
});
|
|
486
|
+
const routes = files.filter((f) => isWebSocketRouteFile(f)).filter((filePath) => isRouteEnabledForEnvironment(parseWebSocketFilename(filePath), environment)).map((filePath) => buildWebSocketRoute(root, filePath, paths)).sort(compareRouteSpecificity);
|
|
490
487
|
const byClass = /* @__PURE__ */ new Map();
|
|
491
488
|
for (const route of routes) {
|
|
492
489
|
const previous = byClass.get(route.className) ?? [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as prepareProject } from "./prepare-DXduEwQp.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as log } from "./dist-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { t as prepareProject } from "./prepare-DXduEwQp.mjs";
|
|
3
|
+
import { m as printSuccess, p as note } from "./output-CXJTIAtF.mjs";
|
|
4
4
|
// src/cli/prepare.ts
|
|
5
5
|
async function runPrepareCommand(root) {
|
|
6
6
|
console.log();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as projectAuthConfigImporter, i as loadVoidAuthConfig } from "./config-
|
|
4
|
-
import { c as getDatabaseCasing, p as readConfig } from "./config-BITKQ3O6.mjs";
|
|
5
|
-
import { s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
|
|
6
|
-
import { i as writeFileIfChanged, n as ensureProjectTsconfig } from "./project-tsconfig-Cf2NFjlM.mjs";
|
|
7
|
-
import { n as generateDbDts } from "./db-types-C_8amnB0.mjs";
|
|
8
|
-
import { n as findEnvFileForPaths, r as generateEnvTypes } from "./env-types-DqzVBKnS.mjs";
|
|
9
|
-
import { t as analyzeApplication } from "./application-routing-P4TggvWp.mjs";
|
|
10
|
-
import { n as generateQueueTypes, r as generateAuthTypes, t as generateRouteTypes } from "./route-types-CZc1YXjF.mjs";
|
|
2
|
+
import { t as analyzeApplication } from "./application-routing-QpyC5G8z.mjs";
|
|
3
|
+
import { a as projectAuthConfigImporter, i as loadVoidAuthConfig } from "./config-eeDzKBS9.mjs";
|
|
11
4
|
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-lFdzSEa9.mjs";
|
|
5
|
+
import { c as getDatabaseCasing, p as readConfig } from "./config-5oSQhZNj.mjs";
|
|
6
|
+
import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
|
|
7
|
+
import { s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
|
|
8
|
+
import { n as generateQueueTypes, o as generateBindingTypes, r as generateAuthTypes, t as generateRouteTypes } from "./route-types-Cl3x0Q8B.mjs";
|
|
9
|
+
import { n as generateDbDts } from "./db-types-DdHHUVPy.mjs";
|
|
10
|
+
import { n as findEnvFileForPaths, r as generateEnvTypes } from "./env-types-Dz9qkiOn.mjs";
|
|
11
|
+
import { i as writeFileIfChanged, n as ensureProjectTsconfig } from "./project-tsconfig-nhnTWO_Y.mjs";
|
|
12
12
|
import { existsSync, rmSync } from "node:fs";
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
14
|
// src/codegen/prepare.ts
|
|
@@ -27,6 +27,9 @@ async function prepareProject(root) {
|
|
|
27
27
|
const outDir = join(root, ".void");
|
|
28
28
|
const written = [];
|
|
29
29
|
const removed = [];
|
|
30
|
+
const bindingTypes = generateBindingTypes(config);
|
|
31
|
+
if (bindingTypes) writeGeneratedFile(outDir, "bindings.d.ts", bindingTypes, written);
|
|
32
|
+
else removeGeneratedFile(outDir, "bindings.d.ts", removed);
|
|
30
33
|
const envFile = findEnvFileForPaths(root, paths);
|
|
31
34
|
if (envFile) {
|
|
32
35
|
const { dts } = generateEnvTypes(envFile, outDir);
|
|
@@ -8,17 +8,33 @@ function assertNoPrerenderFailures(failed) {
|
|
|
8
8
|
const details = failed.map(({ path, error }) => ` ${path}: ${error}`).join("\n");
|
|
9
9
|
throw new Error(`${failed.length} page(s) failed to prerender:\n${details}`);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
11
|
+
function tryDecode(value, decode) {
|
|
12
|
+
try {
|
|
13
|
+
return decode(value);
|
|
14
|
+
} catch {
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function filePathForPath(path, host) {
|
|
19
|
+
return host === "node" ? tryDecode(path, decodeURI) : path.split("/").map((segment) => tryDecode(segment, decodeURIComponent)).join("/");
|
|
20
|
+
}
|
|
21
|
+
function outputFileForPath(path, host = "cloudflare") {
|
|
22
|
+
if (path === "/404/") return "404.html";
|
|
23
|
+
if (path.endsWith("/")) return `${filePathForPath(path, host).slice(1)}index.html`;
|
|
24
|
+
return path === "/" ? "index.html" : `${filePathForPath(path, host).slice(1)}.html`;
|
|
13
25
|
}
|
|
14
26
|
async function readPrerenderPathsResponse(response) {
|
|
15
|
-
if (!response.ok)
|
|
27
|
+
if (!response.ok) {
|
|
28
|
+
const body = await response.json().catch(() => null);
|
|
29
|
+
const detail = typeof body?.error === "string" ? body.error : `HTTP ${response.status}.`;
|
|
30
|
+
throw new Error(`prerender: Failed to collect prerender paths. ${detail}`);
|
|
31
|
+
}
|
|
16
32
|
const payload = await response.json();
|
|
17
33
|
if (!payload || !Array.isArray(payload.paths) || !payload.paths.every((path) => typeof path === "string")) throw new Error("prerender: Failed to collect prerender paths. Response payload is invalid.");
|
|
18
34
|
return payload.paths;
|
|
19
35
|
}
|
|
20
|
-
function pageDataFileForPath(path) {
|
|
21
|
-
return path === "/" ? "_void/pages/index.json" : `_void/pages/${path.slice(1)}.json`;
|
|
36
|
+
function pageDataFileForPath(path, host) {
|
|
37
|
+
return path === "/" ? "_void/pages/index.json" : `_void/pages/${filePathForPath(path, host).slice(1)}${path.endsWith("/") ? "index" : ""}.json`;
|
|
22
38
|
}
|
|
23
39
|
/** Whether `path` resolves strictly inside `directory`. */
|
|
24
40
|
function isInside(directory, path) {
|
|
@@ -28,8 +44,8 @@ function isInside(directory, path) {
|
|
|
28
44
|
function normalizedFile(clientDir, path) {
|
|
29
45
|
return join(clientDir, path).normalize("NFC").toLowerCase();
|
|
30
46
|
}
|
|
31
|
-
function generatedFiles(path, clientDir) {
|
|
32
|
-
return [outputFileForPath(path), pageDataFileForPath(path)].map((file) => normalizedFile(clientDir, file));
|
|
47
|
+
function generatedFiles(path, clientDir, host) {
|
|
48
|
+
return [outputFileForPath(path, host), pageDataFileForPath(path, host)].map((file) => normalizedFile(clientDir, file));
|
|
33
49
|
}
|
|
34
50
|
function requestAssetCandidates(path, clientDir) {
|
|
35
51
|
const relativePath = path === "/" ? "" : path.slice(1);
|
|
@@ -51,8 +67,8 @@ function requestAssetCandidates(path, clientDir) {
|
|
|
51
67
|
} catch {}
|
|
52
68
|
return new Set([...candidates].map((file) => normalizedFile(clientDir, file)));
|
|
53
69
|
}
|
|
54
|
-
function renderConcurrency(paths, clientDir) {
|
|
55
|
-
const outputs = paths.map((path) => generatedFiles(path, clientDir));
|
|
70
|
+
function renderConcurrency(paths, clientDir, host) {
|
|
71
|
+
const outputs = paths.map((path) => generatedFiles(path, clientDir, host));
|
|
56
72
|
const ownerByOutput = /* @__PURE__ */ new Map();
|
|
57
73
|
for (let index = 0; index < outputs.length; index++) for (const output of outputs[index]) {
|
|
58
74
|
if (ownerByOutput.has(output)) return 1;
|
|
@@ -72,20 +88,20 @@ function renderConcurrency(paths, clientDir) {
|
|
|
72
88
|
return 4;
|
|
73
89
|
}
|
|
74
90
|
/** Shared renderer for local Workers and the isolated Node prerender child. */
|
|
75
|
-
async function renderPrerenderPaths(paths, clientDir, fetchPath, fetchPageData, onResult) {
|
|
91
|
+
async function renderPrerenderPaths(paths, clientDir, fetchPath, fetchPageData, onResult, host = "cloudflare") {
|
|
76
92
|
const results = paths.map(() => ({
|
|
77
93
|
rendered: [],
|
|
78
94
|
failed: []
|
|
79
95
|
}));
|
|
80
96
|
let next = 0;
|
|
81
|
-
await Promise.all(Array.from({ length: Math.min(paths.length, renderConcurrency(paths, clientDir)) }, async () => {
|
|
97
|
+
await Promise.all(Array.from({ length: Math.min(paths.length, renderConcurrency(paths, clientDir, host)) }, async () => {
|
|
82
98
|
while (next < paths.length) {
|
|
83
99
|
const index = next++;
|
|
84
100
|
const path = paths[index];
|
|
85
101
|
const result = results[index];
|
|
86
|
-
const outputFile = outputFileForPath(path);
|
|
102
|
+
const outputFile = outputFileForPath(path, host);
|
|
87
103
|
const outputPath = join(clientDir, outputFile);
|
|
88
|
-
const pageDataPath = join(clientDir, pageDataFileForPath(path));
|
|
104
|
+
const pageDataPath = join(clientDir, pageDataFileForPath(path, host));
|
|
89
105
|
if (!isInside(clientDir, outputPath) || !isInside(join(clientDir, "_void/pages"), pageDataPath)) {
|
|
90
106
|
const error = "prerender path resolves outside the output directory";
|
|
91
107
|
result.failed.push({
|
|
@@ -6,7 +6,15 @@ export type PrerenderResult = {
|
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
8
8
|
export declare function assertNoPrerenderFailures(failed: PrerenderResult["failed"]): void;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Static file server that will serve the prerendered files. Hosts decode the
|
|
11
|
+
* request path before the file lookup, so files are written decoded:
|
|
12
|
+
* Cloudflare assets decode each segment with decodeURIComponent, and Hono's
|
|
13
|
+
* serveStatic (Node, Bun, Deno) uses decodeURI, which keeps reserved
|
|
14
|
+
* characters such as %23 and %3F encoded.
|
|
15
|
+
*/
|
|
16
|
+
export type PrerenderHost = "cloudflare" | "node";
|
|
17
|
+
export declare function outputFileForPath(path: string, host?: PrerenderHost): string;
|
|
10
18
|
export declare function readPrerenderPathsResponse(response: Response): Promise<Array<string>>;
|
|
11
19
|
/** Shared renderer for local Workers and the isolated Node prerender child. */
|
|
12
|
-
export declare function renderPrerenderPaths(paths: Array<string>, clientDir: string, fetchPath: (path: string) => Promise<Response>, fetchPageData?: (path: string) => Promise<Response>, onResult?: (path: string, outputFile: string, error?: string) => void): Promise<PrerenderResult>;
|
|
20
|
+
export declare function renderPrerenderPaths(paths: Array<string>, clientDir: string, fetchPath: (path: string) => Promise<Response>, fetchPageData?: (path: string) => Promise<Response>, onResult?: (path: string, outputFile: string, error?: string) => void, host?: PrerenderHost): Promise<PrerenderResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as assertNoPrerenderFailures, n as outputFileForPath, r as readPrerenderPathsResponse, i as renderPrerenderPaths } from "./prerender-render-
|
|
1
|
+
export { t as assertNoPrerenderFailures, n as outputFileForPath, r as readPrerenderPathsResponse, i as renderPrerenderPaths } from "./prerender-render-BN9Lmebs.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as readDeploymentPlatform } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { r as PlatformClient } from "./client-
|
|
5
|
-
import { _ as tablePrefix, f as import_picocolors, i as dim, l as formatUrl, o as formatCount } from "./output-
|
|
2
|
+
import { H as outro, L as log } from "./dist-BQdgCVQF.mjs";
|
|
3
|
+
import { c as getToken, s as getSiteDomain } from "./auth-CCk9Seol.mjs";
|
|
4
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
5
|
+
import { _ as tablePrefix, f as import_picocolors, i as dim, l as formatUrl, o as formatCount } from "./output-CXJTIAtF.mjs";
|
|
6
6
|
// src/cli/projects.ts
|
|
7
7
|
async function runProjectsCommand(root) {
|
|
8
8
|
console.log();
|
|
@@ -37,77 +37,77 @@ async function runProjectsCommand(root) {
|
|
|
37
37
|
async function runProjectCommand(root, args) {
|
|
38
38
|
const cloudflare = readDeploymentPlatform(root) === "cloudflare";
|
|
39
39
|
if (args.subcommand === "status") {
|
|
40
|
-
const { runListCommand } = await import("./list-
|
|
40
|
+
const { runListCommand } = await import("./list-iCg7d5Pa.mjs");
|
|
41
41
|
return runListCommand(root, args.name || void 0);
|
|
42
42
|
}
|
|
43
43
|
if (args.subcommand === "link") {
|
|
44
44
|
if (cloudflare) throw new Error("project: Direct Cloudflare apps are identified by cloudflare.name in void.config.ts and do not need linking.");
|
|
45
|
-
const { runLink } = await import("./link-
|
|
45
|
+
const { runLink } = await import("./link-BlRTGHan.mjs");
|
|
46
46
|
return runLink(root, args.name || void 0);
|
|
47
47
|
}
|
|
48
48
|
if (args.subcommand === "list") {
|
|
49
49
|
if (cloudflare) {
|
|
50
|
-
const { runListCommand } = await import("./list-
|
|
50
|
+
const { runListCommand } = await import("./list-iCg7d5Pa.mjs");
|
|
51
51
|
return runListCommand(root);
|
|
52
52
|
}
|
|
53
53
|
return runProjectsCommand(root);
|
|
54
54
|
}
|
|
55
55
|
if (args.subcommand === "token") {
|
|
56
56
|
if (cloudflare) throw new Error("project: CI deploy credentials are available only for Void platform projects.");
|
|
57
|
-
const { runProjectTokenCommand } = await import("./project-token-
|
|
57
|
+
const { runProjectTokenCommand } = await import("./project-token-ByO2mEI2.mjs");
|
|
58
58
|
return runProjectTokenCommand(root, args);
|
|
59
59
|
}
|
|
60
60
|
if (args.subcommand === "team") {
|
|
61
61
|
if (args.action === "") {
|
|
62
|
-
const { printHelpPage } = await import("./help-
|
|
62
|
+
const { printHelpPage } = await import("./help-C_cqTByy.mjs");
|
|
63
63
|
printHelpPage(["project", "team"]);
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
const accountInvitationAction = args.action === "pending" || args.action === "accept" || args.action === "decline";
|
|
67
67
|
if (cloudflare && !accountInvitationAction) throw new Error("project: Teams are available only for projects hosted on a Void platform, not direct Cloudflare deployments.");
|
|
68
|
-
const { runProjectTeamCommand } = await import("./project-team-
|
|
68
|
+
const { runProjectTeamCommand } = await import("./project-team-BO2dyc7S.mjs");
|
|
69
69
|
return runProjectTeamCommand(root, args);
|
|
70
70
|
}
|
|
71
71
|
if (args.subcommand === "zero-trust") {
|
|
72
72
|
if (cloudflare) throw new Error("project: Zero Trust overrides are available only for projects hosted on a Void platform.");
|
|
73
73
|
if (args.action === "") {
|
|
74
|
-
const { printHelpPage } = await import("./help-
|
|
74
|
+
const { printHelpPage } = await import("./help-C_cqTByy.mjs");
|
|
75
75
|
printHelpPage(["project", "zero-trust"]);
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
const action = args.action;
|
|
79
|
-
const { runProjectZeroTrustCommand } = await import("./project-zero-trust-
|
|
79
|
+
const { runProjectZeroTrustCommand } = await import("./project-zero-trust-CoQfwRBR.mjs");
|
|
80
80
|
return runProjectZeroTrustCommand(root, {
|
|
81
81
|
...args,
|
|
82
82
|
action
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
if (args.subcommand === "logs") {
|
|
86
|
-
const { runLogsCommand } = await import("./logs-
|
|
86
|
+
const { runLogsCommand } = await import("./logs-BlyAxlvx.mjs");
|
|
87
87
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
88
88
|
}
|
|
89
89
|
if (args.subcommand === "requests") {
|
|
90
90
|
if (cloudflare) throw new Error("project: Historical request analytics require the Void platform. Use `void project logs` for a live Cloudflare tail.");
|
|
91
|
-
const { runRequestsCommand } = await import("./requests-
|
|
91
|
+
const { runRequestsCommand } = await import("./requests-CPOiDkjh.mjs");
|
|
92
92
|
return runRequestsCommand(root, args.range, args.status || void 0);
|
|
93
93
|
}
|
|
94
94
|
if (args.subcommand === "rollback") {
|
|
95
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
95
|
+
const { runRollbackCommand } = await import("./rollback-BfCs2la4.mjs");
|
|
96
96
|
return runRollbackCommand(root, args.deployId || void 0, args.platform);
|
|
97
97
|
}
|
|
98
98
|
if (args.subcommand === "cancel") {
|
|
99
99
|
if (cloudflare) throw new Error("project: Direct Cloudflare deploys activate only after readiness succeeds, so there is no remote build to cancel.");
|
|
100
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
100
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-COavnjud.mjs");
|
|
101
101
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
102
102
|
}
|
|
103
103
|
if (args.subcommand === "delete") {
|
|
104
104
|
if (cloudflare) throw new Error("project: Refusing to delete Cloudflare resources through this command. Direct deployments are additive and existing resources may be shared.");
|
|
105
|
-
const { runDeleteCommand } = await import("./delete-
|
|
105
|
+
const { runDeleteCommand } = await import("./delete-Dey6YoMA.mjs");
|
|
106
106
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
107
107
|
}
|
|
108
108
|
if (args.subcommand === "purge-cache") {
|
|
109
109
|
if (cloudflare) throw new Error("project: `void project purge-cache` is available only for projects hosted on a Void platform. For a direct Cloudflare deploy, redeploy or purge the configured ISR KV namespace.");
|
|
110
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
110
|
+
const { runPurgeCacheCommand } = await import("./cache-DVBBbWQL.mjs");
|
|
111
111
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -5,6 +5,10 @@ import { createJiti } from "jiti";
|
|
|
5
5
|
// src/config-loader.ts
|
|
6
6
|
const LEGACY_CONFIG_FILE = "void.json";
|
|
7
7
|
const TYPED_CONFIG_FILE = "void.config.ts";
|
|
8
|
+
/** The file to name in messages about a project's settings. Only legacy projects use JSON. */
|
|
9
|
+
function getConfigFileName(root) {
|
|
10
|
+
return existsSync(join(root, "void.json")) ? LEGACY_CONFIG_FILE : TYPED_CONFIG_FILE;
|
|
11
|
+
}
|
|
8
12
|
/** Evaluate a TypeScript config without requiring Void to be installed in the target project. */
|
|
9
13
|
function loadTypedVoidConfigFile(path) {
|
|
10
14
|
const sourceEntry = fileURLToPath(new URL("./config-entry.ts", import.meta.url));
|
|
@@ -72,18 +76,18 @@ const SOURCE_CONVENTIONS = /* @__PURE__ */ new Set([
|
|
|
72
76
|
...AUTH_CONFIG_FILES,
|
|
73
77
|
...ENV_CONFIG_FILES
|
|
74
78
|
]);
|
|
75
|
-
function validateSourceDir(value) {
|
|
76
|
-
if (value.trim() !== value || value.length === 0) throw new Error(
|
|
77
|
-
if (value === "." || value === ".." || value.startsWith("../") || value.includes("/../") || value.endsWith("/..") || isAbsolute(value)) throw new Error(`config: "sourceDir" path '${value}' in
|
|
79
|
+
function validateSourceDir(value, configFile = TYPED_CONFIG_FILE) {
|
|
80
|
+
if (value.trim() !== value || value.length === 0) throw new Error(`config: "sourceDir" in ${configFile} must be a non-empty relative directory.`);
|
|
81
|
+
if (value === "." || value === ".." || value.startsWith("../") || value.includes("/../") || value.endsWith("/..") || isAbsolute(value)) throw new Error(`config: "sourceDir" path '${value}' in ${configFile} must be a relative directory.`);
|
|
78
82
|
const normalized = normalize(value).replace(/\/+$/, "");
|
|
79
|
-
if (normalized === "" || normalized === ".") throw new Error(`config: "sourceDir" path '${value}' in
|
|
83
|
+
if (normalized === "" || normalized === ".") throw new Error(`config: "sourceDir" path '${value}' in ${configFile} must be a relative directory.`);
|
|
80
84
|
return normalized;
|
|
81
85
|
}
|
|
82
|
-
function getSourceDir(config) {
|
|
83
|
-
return config?.sourceDir ? validateSourceDir(config.sourceDir) : "";
|
|
86
|
+
function getSourceDir(root, config) {
|
|
87
|
+
return config?.sourceDir ? validateSourceDir(config.sourceDir, getConfigFileName(root)) : "";
|
|
84
88
|
}
|
|
85
89
|
function resolveProjectPaths(root, config) {
|
|
86
|
-
const sourceDir = getSourceDir(config);
|
|
90
|
+
const sourceDir = getSourceDir(root, config);
|
|
87
91
|
const sourceRoot = sourceDir ? join(root, sourceDir) : root;
|
|
88
92
|
const sourceRelative = (path) => sourceDir ? `${sourceDir}/${path}` : path;
|
|
89
93
|
const envFileCandidates = sourceDir ? ENV_CONFIG_FILES.map((file) => join(sourceRoot, file)) : [...ENV_CONFIG_FILES.map((file) => join(root, file)), ...ENV_CONFIG_FILES.map((file) => join(root, "src", file))];
|
|
@@ -123,6 +127,6 @@ function assertNoRootSourceConventionConflicts(paths) {
|
|
|
123
127
|
if (!paths.sourceDir) return;
|
|
124
128
|
const conflicts = Array.from(SOURCE_CONVENTIONS).filter((convention) => existsSync(join(paths.root, convention)) && existsSync(join(paths.sourceRoot, convention)));
|
|
125
129
|
if (conflicts.length === 0) return;
|
|
126
|
-
throw new Error(`sourceDir:
|
|
130
|
+
throw new Error(`sourceDir: ${getConfigFileName(paths.root)} sets "sourceDir": "${paths.sourceDir}", but convention path(s) also exist at the project root: ${conflicts.join(", ")}. Move them under "${paths.sourceDir}" or remove the root copy.`);
|
|
127
131
|
}
|
|
128
132
|
export { validateSourceDir as a, loadVoidConfig as c, resolveProjectPaths as i, readProjectPaths as n, TYPED_CONFIG_FILE as o, resolvePagesDir as r, loadTypedVoidConfigFile as s, assertNoRootSourceConventionConflicts as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { H as outro, L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken, i as getAccountCredential } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { c as platformErrorMessage, n as PlatformApiError, r as PlatformClient, s as parsePlatformErrorBody } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { h as sanitizeTerminalText, l as formatUrl, m as printSuccess, o as formatCount, p as note } from "./output-CXJTIAtF.mjs";
|
|
1
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { H as outro, L as log } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { c as platformErrorMessage, n as PlatformApiError, r as PlatformClient, s as parsePlatformErrorBody } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { h as sanitizeTerminalText, l as formatUrl, m as printSuccess, o as formatCount, p as note } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
6
|
+
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-ClvLMTI9.mjs";
|
|
7
7
|
// src/cli/project-team.ts
|
|
8
8
|
function clean(value) {
|
|
9
9
|
return (value ?? "—").replace(/[\u0000-\u001f\u007f]/g, " ");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { H as outro, L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { _ as tablePrefix, i as dim, m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
1
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { H as outro, L as log } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { _ as tablePrefix, i as dim, m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { r as requireProjectBySlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
6
|
+
import { r as requireProjectBySlug } from "./resolve-project-ClvLMTI9.mjs";
|
|
7
7
|
// src/cli/project-token.ts
|
|
8
8
|
async function resolveTarget(root, args) {
|
|
9
9
|
const humanToken = getToken(root);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
// src/codegen/write-if-changed.ts
|
|
5
5
|
function writeFileIfChanged(path, content) {
|
|
@@ -34,13 +34,15 @@ function createProjectTsconfig(root, hasRouteTypes, hasDb, hasSchema, options =
|
|
|
34
34
|
const includeMd = existsSync(join(outDir, "md.d.ts"));
|
|
35
35
|
const includeEnv = existsSync(join(outDir, "env.d.ts"));
|
|
36
36
|
const includeAuth = existsSync(join(outDir, "auth.d.ts"));
|
|
37
|
+
const includeBindings = existsSync(join(outDir, "bindings.d.ts"));
|
|
37
38
|
const tsconfig = { files: [
|
|
38
39
|
...includeRoutes ? ["routes.d.ts"] : [],
|
|
39
40
|
...hasDb ? ["db.d.ts"] : [],
|
|
40
41
|
...includeQueues ? ["queues.d.ts"] : [],
|
|
41
42
|
...includeMd ? ["md.d.ts"] : [],
|
|
42
43
|
...includeEnv ? ["env.d.ts"] : [],
|
|
43
|
-
...includeAuth ? ["auth.d.ts"] : []
|
|
44
|
+
...includeAuth ? ["auth.d.ts"] : [],
|
|
45
|
+
...includeBindings ? ["bindings.d.ts"] : []
|
|
44
46
|
] };
|
|
45
47
|
if (hasDb) {
|
|
46
48
|
const paths = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { H as outro, L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { h as sanitizeTerminalText, m as printSuccess, p as note } from "./output-CXJTIAtF.mjs";
|
|
1
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { H as outro, L as log } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { h as sanitizeTerminalText, m as printSuccess, p as note } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
6
|
+
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-ClvLMTI9.mjs";
|
|
7
7
|
// src/cli/project-zero-trust.ts
|
|
8
8
|
async function resolveTarget(root, args) {
|
|
9
9
|
const token = getToken(root);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { n as CloudBindings, r as CloudContext } from "./handler-DjqciiDc.mjs";
|
|
1
2
|
import { n as HeadDescriptor, t as HeadConfig } from "./head-MeF_5M_3.mjs";
|
|
2
3
|
import { a as PageRenderMode, t as DevCssAsset } from "./types-agfx0alu.mjs";
|
|
3
|
-
import {
|
|
4
|
+
import { Context } from "hono";
|
|
4
5
|
/** Escape characters that are unsafe inside inline <script> tags to prevent XSS. */
|
|
5
6
|
declare function safeJsonStringify(value: unknown): string;
|
|
6
7
|
type PageObject = {
|
|
@@ -19,6 +20,7 @@ type PageObject = {
|
|
|
19
20
|
type PageRenderResult = string | ReadableStream<Uint8Array>;
|
|
20
21
|
type PageHandler = ((c: CloudContext) => unknown | Promise<unknown>) | undefined;
|
|
21
22
|
type PageHeadHandler = ((c: CloudContext, props: Record<string, unknown>) => HeadDescriptor | undefined) | undefined;
|
|
23
|
+
type PageRequestContext = Context | CloudContext;
|
|
22
24
|
type PageRenderOptions = {
|
|
23
25
|
renderMode?: PageRenderMode;
|
|
24
26
|
/** Dev server build: rejected deferred props keep their raw error message. */
|
|
@@ -36,7 +38,7 @@ type GetAssetTags = (req: Request, env: CloudBindings, componentId: string) => P
|
|
|
36
38
|
/** Flatten withValidator's { issues: [{ slot, issues: [{ message, path }] }] } into { field: message } */
|
|
37
39
|
declare function flattenValidationErrors(body: unknown): Record<string, string>;
|
|
38
40
|
/** Handle GET page request — run handler, return page object or SSR HTML */
|
|
39
|
-
declare function handlePageGet(handler: PageHandler, headFn: PageHeadHandler, c:
|
|
41
|
+
declare function handlePageGet(handler: PageHandler, headFn: PageHeadHandler, c: PageRequestContext, componentId: string, renderFn: RenderPage, getAssetTags: GetAssetTags, configHead?: HeadConfig, options?: PageRenderOptions): Promise<Response>;
|
|
40
42
|
/** Handle POST/PUT/PATCH/DELETE page request — run mutation, then re-run GET or redirect */
|
|
41
|
-
declare function handlePageMutation(mutationHandler: PageHandler, getHandler: PageHandler, headFn: PageHeadHandler, c:
|
|
43
|
+
declare function handlePageMutation(mutationHandler: PageHandler, getHandler: PageHandler, headFn: PageHeadHandler, c: PageRequestContext, componentId: string, renderFn: RenderPage, getAssetTags: GetAssetTags, configHead?: HeadConfig, options?: PageRenderOptions): Promise<Response>;
|
|
42
44
|
export { handlePageMutation as a, handlePageGet as i, PageRenderResult as n, safeJsonStringify as o, flattenValidationErrors as r, PageObject as t };
|