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,28 +1,28 @@
|
|
|
1
|
+
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
1
2
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-DtOGAbeB.mjs";
|
|
4
|
+
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-nhnTWO_Y.mjs";
|
|
5
|
+
import { n as readProjectPaths, o as TYPED_CONFIG_FILE } from "./project-paths-G0yut6Zz.mjs";
|
|
6
|
+
import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-k40T7XTQ.mjs";
|
|
7
|
+
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-5oSQhZNj.mjs";
|
|
8
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DcqUBGCb.mjs";
|
|
9
|
+
import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
|
|
10
|
+
import { r as detectFramework } from "./plugin-inference-g66Q1Mx9.mjs";
|
|
9
11
|
import { i as readPackageJson, n as hasPackageDependency } from "./package-json-DvS6IFRv.mjs";
|
|
10
|
-
import { c as getToken } from "./auth-Dy8svcqQ.mjs";
|
|
11
|
-
import { t as parseDotenvFile } from "./dotenv-CEI8hapP.mjs";
|
|
12
|
-
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-Cf2NFjlM.mjs";
|
|
13
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-BBlVXZCU.mjs";
|
|
14
|
-
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
15
12
|
import { n as getOwnVersion, r as getPackageDir, t as detectAgents } from "./agents-DRo8gzni.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
13
|
+
import { t as connectCloudflare } from "./cloudflare-connect-BjpWmglw.mjs";
|
|
14
|
+
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
15
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
16
|
+
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-CE3jOmd5.mjs";
|
|
17
|
+
import { t as promptForLoginToken } from "./login-TA51e5Fw.mjs";
|
|
18
|
+
import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
19
|
+
import { t as parseDotenvFile } from "./dotenv-CEI8hapP.mjs";
|
|
20
|
+
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-BH6LCr00.mjs";
|
|
21
|
+
import { l as formatUrl, m as printSuccess, p as note } from "./output-CXJTIAtF.mjs";
|
|
22
|
+
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-dlSxrcQ7.mjs";
|
|
23
|
+
import { s as formatProjectCommand } from "./cloudflare-process-BcPvlMFd.mjs";
|
|
24
|
+
import { t as MagicString } from "./dist-B6eN80gc.mjs";
|
|
20
25
|
import { i as hasLocalLockfile, n as drizzleKitBin, r as findInstalledYarnPnpRuntime, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
21
|
-
import { t as promptForLoginToken } from "./login-CJopTWX4.mjs";
|
|
22
|
-
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-Ds3EAV5t.mjs";
|
|
23
|
-
import { t as connectCloudflare } from "./cloudflare-connect-9OZe4XVQ.mjs";
|
|
24
|
-
import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
|
|
25
|
-
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-ChHHZBTi.mjs";
|
|
26
26
|
import { createRequire } from "node:module";
|
|
27
27
|
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
28
28
|
import { parseSync } from "vite";
|
|
@@ -110,7 +110,7 @@ function renderEnvTs(entries) {
|
|
|
110
110
|
if (entries.length === 0) return [
|
|
111
111
|
`import { defineEnv } from 'void/env';`,
|
|
112
112
|
``,
|
|
113
|
-
`// Define your environment variables here. See https://
|
|
113
|
+
`// Define your environment variables here. See https://void.cloud/guide/env-vars`,
|
|
114
114
|
`export default defineEnv({});`,
|
|
115
115
|
``
|
|
116
116
|
].join("\n");
|
|
@@ -230,8 +230,8 @@ const SCAFFOLD_BASE_DEV_DEPENDENCIES = {
|
|
|
230
230
|
typescript: "^7.0.2"
|
|
231
231
|
};
|
|
232
232
|
const SCAFFOLD_VITE_PLUS_DEV_DEPENDENCIES = {
|
|
233
|
-
vite: "npm:@voidzero-dev/vite-plus-core@^1.
|
|
234
|
-
"vite-plus": "^1.
|
|
233
|
+
vite: "npm:@voidzero-dev/vite-plus-core@^1.5.0",
|
|
234
|
+
"vite-plus": "^1.5.0"
|
|
235
235
|
};
|
|
236
236
|
const SCAFFOLD_TOOLCHAIN_OPTIONS = [{
|
|
237
237
|
value: "vite-plus",
|
|
@@ -242,7 +242,7 @@ const SCAFFOLD_TOOLCHAIN_OPTIONS = [{
|
|
|
242
242
|
label: "Vite",
|
|
243
243
|
hint: "Uses plain Vite commands without Vite+."
|
|
244
244
|
}];
|
|
245
|
-
const REACT_SCAFFOLD_COMPILER_DEV_DEPENDENCIES = { "oxc-transform-react": "
|
|
245
|
+
const REACT_SCAFFOLD_COMPILER_DEV_DEPENDENCIES = { "oxc-transform-react": ">=0.152.0 <0.157.0" };
|
|
246
246
|
const SCAFFOLD_FRAMEWORK_OPTIONS = [
|
|
247
247
|
{
|
|
248
248
|
value: "react",
|
|
@@ -1847,7 +1847,7 @@ async function ensureVoidPlatformConnection(root) {
|
|
|
1847
1847
|
let selectedApiUrl = null;
|
|
1848
1848
|
let promptedForPlatform = false;
|
|
1849
1849
|
try {
|
|
1850
|
-
const { getApiUrl, getSiteDomain } = await import("./auth-
|
|
1850
|
+
const { getApiUrl, getSiteDomain } = await import("./auth-BN0NU9dz.mjs");
|
|
1851
1851
|
selectedApiUrl = getApiUrl(root);
|
|
1852
1852
|
getSiteDomain(root);
|
|
1853
1853
|
} catch (error) {
|
|
@@ -1888,8 +1888,7 @@ function getDevCommand(root, framework) {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
1890
|
function getNodeVersionLine(root) {
|
|
1891
|
-
|
|
1892
|
-
return "node-version: lts/*";
|
|
1891
|
+
return `${existsSync(join(root, ".node-version")) ? "node-version-file: .node-version" : "node-version: lts/*"}\n check-latest: true`;
|
|
1893
1892
|
}
|
|
1894
1893
|
function getWorkflowSetupSteps(root, pm) {
|
|
1895
1894
|
const nodeVersion = getNodeVersionLine(root);
|
|
@@ -1912,7 +1911,10 @@ function getWorkflowSetupSteps(root, pm) {
|
|
|
1912
1911
|
runner: "yarn void"
|
|
1913
1912
|
};
|
|
1914
1913
|
case "bun": return {
|
|
1915
|
-
setup:
|
|
1914
|
+
setup: ` - uses: oven-sh/setup-bun@v2
|
|
1915
|
+
- uses: actions/setup-node@v6
|
|
1916
|
+
with:
|
|
1917
|
+
${nodeVersion}`,
|
|
1916
1918
|
install: " - run: bun install --frozen-lockfile",
|
|
1917
1919
|
runner: "bunx void"
|
|
1918
1920
|
};
|
|
@@ -1958,7 +1960,7 @@ ${install}
|
|
|
1958
1960
|
CLOUDFLARE_API_TOKEN: \${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
1959
1961
|
# Required only for PostgreSQL/MySQL provisioning and migrations.
|
|
1960
1962
|
DATABASE_URL: \${{ secrets.DATABASE_URL }}
|
|
1961
|
-
#
|
|
1963
|
+
# Account subdomain for workers.dev readiness when a version has no preview URL.
|
|
1962
1964
|
CLOUDFLARE_WORKERS_SUBDOMAIN: \${{ vars.CLOUDFLARE_WORKERS_SUBDOMAIN }}
|
|
1963
1965
|
# Required only when Cloudflare Access protects Worker readiness.
|
|
1964
1966
|
CF_ACCESS_CLIENT_ID: \${{ secrets.CF_ACCESS_CLIENT_ID }}
|
|
@@ -2580,7 +2582,7 @@ async function runInitCommand(root, initArgs) {
|
|
|
2580
2582
|
await injectAgentBlock(root, newProject);
|
|
2581
2583
|
const agents = detectAgents(root);
|
|
2582
2584
|
if (agents.length > 0) {
|
|
2583
|
-
const { linkSkillsForSpecificAgents } = await import("./skills-
|
|
2585
|
+
const { linkSkillsForSpecificAgents } = await import("./skills-BBO9wMjB.mjs");
|
|
2584
2586
|
linkSkillsForSpecificAgents(root, agents);
|
|
2585
2587
|
} else log.info("Bundled Void docs: node_modules/void/docs/");
|
|
2586
2588
|
if (!targeted && !framework) {
|
|
@@ -2616,7 +2618,7 @@ async function runInitCommand(root, initArgs) {
|
|
|
2616
2618
|
let shouldSetupGithub = targeted ? initArgs?.github === true : deploymentPlatform !== "none";
|
|
2617
2619
|
if (shouldSetupGithub && !workspaceSubpackage && deploymentPlatform !== "cloudflare" && deploymentPlatform !== "none") {
|
|
2618
2620
|
if (!voidPlatformDiscovery) {
|
|
2619
|
-
const { getApiUrl } = await import("./auth-
|
|
2621
|
+
const { getApiUrl } = await import("./auth-BN0NU9dz.mjs");
|
|
2620
2622
|
voidPlatformDiscovery = await discoverPlatform(getApiUrl(root));
|
|
2621
2623
|
}
|
|
2622
2624
|
if (!voidPlatformDiscovery.capabilities.githubActions) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { H as outro, L as log, O as cancel } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken, s as getSiteDomain } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-CE3jOmd5.mjs";
|
|
5
|
+
import { f as import_picocolors, m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
1
6
|
import { r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { H as outro, L as log, O as cancel } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { f as import_picocolors, m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-Bq0M8MtO.mjs";
|
|
7
|
-
import { a as resolveProjectBySlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
7
|
+
import { a as resolveProjectBySlug } from "./resolve-project-ClvLMTI9.mjs";
|
|
8
8
|
// src/cli/link.ts
|
|
9
9
|
function projectLabel(slug, root, url) {
|
|
10
10
|
if (url) return url;
|
|
@@ -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, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-CXJTIAtF.mjs";
|
|
1
5
|
import { n as readDeploymentPlatform, 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, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { a as resolveProjectBySlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
6
|
+
import { a as resolveProjectBySlug } from "./resolve-project-ClvLMTI9.mjs";
|
|
7
7
|
// src/cli/list.ts
|
|
8
8
|
async function runListCommand(root, slug) {
|
|
9
9
|
console.log();
|
|
@@ -42,7 +42,7 @@ async function runListCommand(root, slug) {
|
|
|
42
42
|
}
|
|
43
43
|
async function showCloudflareDeployments(root, slug) {
|
|
44
44
|
if (slug) throw new Error("project: A project name selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
45
|
-
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
45
|
+
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-CZkjFrzH.mjs");
|
|
46
46
|
const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
|
|
47
47
|
if (status.versions.length === 0) {
|
|
48
48
|
outro(`No deployments for ${status.workerName}.`);
|
|
@@ -51,7 +51,7 @@ async function showCloudflareDeployments(root, slug) {
|
|
|
51
51
|
const rows = [...status.versions].reverse().map((version) => ({
|
|
52
52
|
id: version.id,
|
|
53
53
|
status: version.id === status.activeVersionId ? "live" : "available",
|
|
54
|
-
migrations: version.metadata ? String(version.metadata.migrations.length) : "-",
|
|
54
|
+
migrations: version.metadata?.migrations ? String(version.metadata.migrations.length) : "-",
|
|
55
55
|
deployed: version.createdAt ? formatRelativeTime(version.createdAt) : "-"
|
|
56
56
|
}));
|
|
57
57
|
const idWidth = Math.max(2, ...rows.map((row) => row.id.length));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as getUser } from "./auth-DyWp-fSo.mjs";
|
|
2
2
|
import { a as getRawRuntimeEnv } from "./env-raw-e8qgqAzQ.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { n as bytesToBase64 } from "./base64-ikl9yBy3.mjs";
|
|
4
4
|
// src/runtime/live-names.ts
|
|
5
5
|
async function topicDigest(streamId, topic) {
|
|
6
6
|
const bytes = new TextEncoder().encode(`${streamId}\u0000${topic}`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as CloudEnv, r as CloudContext } from "./handler-
|
|
1
|
+
import { i as AuthUser } from "./auth-CZrthGxs.mjs";
|
|
2
|
+
import { a as CloudEnv, r as CloudContext } from "./handler-DjqciiDc.mjs";
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
4
|
type LiveControlRequest = {
|
|
5
5
|
connectionId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { b as readRootWranglerConfig } from "./wrangler-
|
|
3
|
-
import { r as getMiniflareDatabasePath } from "./runner-
|
|
2
|
+
import { b as readRootWranglerConfig } from "./wrangler-k40T7XTQ.mjs";
|
|
3
|
+
import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
// src/local-d1.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as selectPlatformLoginMethod } from "./login-TA51e5Fw.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as isExpiredTokenError, r as PlatformClient } from "./client-
|
|
4
|
-
import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-
|
|
1
|
+
import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { a as getApiUrl, c as getToken, f as removeToken, l as getTokenSource, m as savePlatformToken, p as runPlatformLogin } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { a as isExpiredTokenError, r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-CXJTIAtF.mjs";
|
|
5
5
|
// src/cli/login.ts
|
|
6
6
|
async function selectPlatformLoginMethod(platform, requestedId) {
|
|
7
7
|
const providers = platform.authenticationProviders;
|
|
@@ -30,7 +30,7 @@ async function selectPlatformLoginMethod(platform, requestedId) {
|
|
|
30
30
|
}
|
|
31
31
|
async function promptForLoginToken(root = process.cwd(), platform) {
|
|
32
32
|
const apiUrl = platform?.apiUrl ?? getApiUrl(root);
|
|
33
|
-
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-
|
|
33
|
+
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-BpUA19r_.mjs")).discoverPlatform(apiUrl));
|
|
34
34
|
const s = createSpinner();
|
|
35
35
|
s.start(`Opening browser for ${providerName} login...`);
|
|
36
36
|
try {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { $ as wrapTextWithPrefix, 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 { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-CXJTIAtF.mjs";
|
|
5
|
+
import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
1
6
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import { c as getToken } from "./auth-Dy8svcqQ.mjs";
|
|
3
|
-
import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-BCdLioKP.mjs";
|
|
6
7
|
import { t as sanitizeTerminalLogText } from "./terminal-log-text-DNsWJREL.mjs";
|
|
7
|
-
import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
8
8
|
// src/cli/logs.ts
|
|
9
9
|
async function runLogsCommand(root, filter, range, deployment, level) {
|
|
10
10
|
console.log();
|
|
11
11
|
const platform = readDeploymentPlatform(root);
|
|
12
12
|
if (platform === "cloudflare") {
|
|
13
|
-
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-
|
|
13
|
+
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-CZkjFrzH.mjs");
|
|
14
14
|
if (range !== "1h") log.warn("Cloudflare tail streams live logs; --range does not select historical entries.");
|
|
15
15
|
if (level && level !== "all" && level !== "error") log.warn("Cloudflare tail cannot filter individual console levels; showing all invocation logs.");
|
|
16
16
|
await tailCloudflareWorker(resolveCloudflareOperationContext(root), {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { L as log } from "./dist-BQdgCVQF.mjs";
|
|
1
2
|
import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-DtOGAbeB.mjs";
|
|
4
|
+
import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-G0yut6Zz.mjs";
|
|
5
|
+
import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-k40T7XTQ.mjs";
|
|
6
|
+
import { h as validateConfig } from "./config-5oSQhZNj.mjs";
|
|
4
7
|
import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-DESSbN8L.mjs";
|
|
7
|
-
import { L as log } from "./dist-D23AAMxT.mjs";
|
|
8
|
-
import { m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
8
|
+
import { m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
9
9
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { parseSync } from "vite";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runMigrateCommand } from "./migrate-BH6LCr00.mjs";
|
package/dist/nitro.d.mts
CHANGED
|
@@ -10,9 +10,14 @@ type NitroInstance = {
|
|
|
10
10
|
rollupConfig?: {
|
|
11
11
|
plugins?: unknown;
|
|
12
12
|
};
|
|
13
|
+
buildPlugins?: Array<unknown>;
|
|
14
|
+
noExternals?: boolean | Array<string | RegExp>;
|
|
13
15
|
cloudflare?: {
|
|
14
16
|
nodeCompat?: boolean;
|
|
15
17
|
};
|
|
18
|
+
devServer?: {
|
|
19
|
+
runner?: string;
|
|
20
|
+
};
|
|
16
21
|
};
|
|
17
22
|
};
|
|
18
23
|
/**
|
package/dist/nitro.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { n as bundleWorkerSqlDriver } from "./wrapper-BGsi_uHs.mjs";
|
|
3
|
+
import { l as getDatabaseDialect, p as readConfig } from "./config-5oSQhZNj.mjs";
|
|
4
|
+
import { c as voidDbBundlerPlugin } from "./dispatch-pYaww76u.mjs";
|
|
5
5
|
import { normalizePath } from "vite";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { resolve } from "node:path/win32";
|
|
@@ -25,14 +25,21 @@ function nitroModuleId(path) {
|
|
|
25
25
|
* does, so void/db keeps one PostgreSQL or MySQL client per request instead of one per query.
|
|
26
26
|
*/
|
|
27
27
|
function requestScopePluginSource() {
|
|
28
|
-
return `import { withRuntimeEnv } from ${JSON.stringify(envModuleFile)};
|
|
28
|
+
return `import { getRuntimeEnv, withRuntimeEnv } from ${JSON.stringify(envModuleFile)};
|
|
29
29
|
|
|
30
30
|
export default function voidRequestScope(nitroApp) {
|
|
31
|
-
const handler = nitroApp.h3App.handler;
|
|
32
31
|
// Nitro's Cloudflare entry and dev plugins keep the env here; a dev plugin may first set a
|
|
33
32
|
// promise of it.
|
|
34
|
-
nitroApp.h3App
|
|
35
|
-
|
|
33
|
+
if (nitroApp.h3App) {
|
|
34
|
+
const handler = nitroApp.h3App.handler;
|
|
35
|
+
nitroApp.h3App.handler = async (event) =>
|
|
36
|
+
withRuntimeEnv(await globalThis.__env__, () => handler.call(nitroApp.h3App, event));
|
|
37
|
+
} else {
|
|
38
|
+
// Nitro 3 exposes fetch directly instead of the H3 v1 handler.
|
|
39
|
+
const fetch = nitroApp.fetch;
|
|
40
|
+
nitroApp.fetch = async (...args) =>
|
|
41
|
+
withRuntimeEnv((await globalThis.__env__) ?? getRuntimeEnv(), () => fetch.apply(nitroApp, args));
|
|
42
|
+
}
|
|
36
43
|
}
|
|
37
44
|
`;
|
|
38
45
|
}
|
|
@@ -63,7 +70,7 @@ const voidNitroModule = {
|
|
|
63
70
|
const { options } = nitro;
|
|
64
71
|
const config = readConfig(options.rootDir);
|
|
65
72
|
const dialect = getDatabaseDialect(config);
|
|
66
|
-
const workerd = !options.dev && options.exportConditions?.includes("workerd") === true;
|
|
73
|
+
const workerd = options.devServer?.runner === "miniflare" || !options.dev && options.exportConditions?.includes("workerd") === true;
|
|
67
74
|
const plugins = [voidDbBundlerPlugin(options.rootDir, {
|
|
68
75
|
config,
|
|
69
76
|
...workerd && { sqlDriver: async (sqlDialect, entry) => nitroModuleId(await bundleWorkerSqlDriver(sqlDialect, entry, join(options.buildDir, "void"))) }
|
|
@@ -79,6 +86,18 @@ const voidNitroModule = {
|
|
|
79
86
|
options.plugins.push(REQUEST_SCOPE_PLUGIN);
|
|
80
87
|
if (workerd) plugins.push(nativeAsyncHooksPlugin);
|
|
81
88
|
}
|
|
89
|
+
if (options.buildPlugins) {
|
|
90
|
+
if (workerd && options.noExternals !== true) options.noExternals = [
|
|
91
|
+
...Array.isArray(options.noExternals) ? options.noExternals : [],
|
|
92
|
+
"drizzle-orm",
|
|
93
|
+
packageDistDir
|
|
94
|
+
];
|
|
95
|
+
options.buildPlugins.unshift(...plugins.map((plugin) => ({
|
|
96
|
+
...plugin,
|
|
97
|
+
enforce: "pre"
|
|
98
|
+
})));
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
82
101
|
const rollupConfig = options.rollupConfig ??= {};
|
|
83
102
|
const existing = rollupConfig.plugins;
|
|
84
103
|
rollupConfig.plugins = [...plugins, ...Array.isArray(existing) ? existing : existing ? [existing] : []];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { r as getMiniflareDatabasePath } from "./runner-5MCSimKx.mjs";
|
|
5
|
-
import { s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
|
|
2
|
+
import { p as readConfig } from "./config-5oSQhZNj.mjs";
|
|
3
|
+
import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
|
|
6
4
|
import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./auth-migrations-DDeifS3v.mjs";
|
|
5
|
+
import { s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
|
|
6
|
+
import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-eeDzKBS9.mjs";
|
|
7
7
|
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-lFdzSEa9.mjs";
|
|
8
8
|
import { mkdirSync } from "node:fs";
|
|
9
9
|
// src/auth/node.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as OPERATOR_MAX_TIMEOUT_MS } from "./operator-client-
|
|
1
|
+
import { t as OPERATOR_MAX_TIMEOUT_MS } from "./operator-client-XvXTkea6.mjs";
|
|
2
2
|
import { parsePlatformLoginId } from "@void/platform";
|
|
3
3
|
// src/cli/operator-args.ts
|
|
4
4
|
const operatorCommands = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as deleteKeyringPassword, T as writeKeyringPassword, c as normalizePlatformApiUrl, i as getActivePlatformConnection, r as findPlatformConnections, u as platformCredentialAccount, w as readKeyringPassword } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
2
|
-
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-
|
|
2
|
+
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
|
|
3
3
|
/** Operator authority never comes from repository-controlled metadata. */
|
|
4
4
|
function resolveOperatorOrigin(connection = "") {
|
|
5
5
|
if (connection) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as normalizePlatformApiUrl } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
2
1
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
|
-
import { t as ensurePlatformAccessToken } from "./cf-access-
|
|
2
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
3
|
+
import { c as normalizePlatformApiUrl } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
4
4
|
const OPERATOR_MAX_TIMEOUT_MS = 36e5;
|
|
5
5
|
var OperatorClientError = class extends Error {
|
|
6
6
|
code;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-
|
|
1
|
+
import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-CD3pap65.mjs";
|
|
2
|
+
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
|
|
3
|
+
import { h as sanitizeTerminalText, i as dim, m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
3
4
|
import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
4
|
-
import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-CfDcmzpo.mjs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { setTimeout } from "node:timers/promises";
|
|
7
7
|
import { createInterface } from "node:readline/promises";
|
|
@@ -180,9 +180,9 @@ async function runAuth(origin, args) {
|
|
|
180
180
|
if (args.action === "login" || args.action === "token" && args.tokenStdin) {
|
|
181
181
|
if (!args.tokenStdin && !process.stdin.isTTY) throw new OperatorClientError("Browser login requires an interactive terminal. Use --token-stdin to exchange an API session.", "interactive_login_required");
|
|
182
182
|
const apiToken = args.tokenStdin ? await readOperatorApiTokenStdin() : await (async () => {
|
|
183
|
-
const { discoverPlatform } = await import("./platform-cmd-
|
|
184
|
-
const { selectPlatformLoginMethod } = await import("./login-
|
|
185
|
-
const { runPlatformLogin } = await import("./auth-
|
|
183
|
+
const { discoverPlatform } = await import("./platform-cmd-BpUA19r_.mjs");
|
|
184
|
+
const { selectPlatformLoginMethod } = await import("./login-C4q1S-5b.mjs");
|
|
185
|
+
const { runPlatformLogin } = await import("./auth-BN0NU9dz.mjs");
|
|
186
186
|
return runPlatformLogin(origin, (await selectPlatformLoginMethod(await discoverPlatform(origin), args.provider)).id, (url) => process.stderr.write(`Sign in at ${url}\n`));
|
|
187
187
|
})();
|
|
188
188
|
const session = await exchangeOperatorSession(origin, apiToken);
|
|
@@ -362,7 +362,7 @@ async function migrateDeploymentAssets(client, origin, args) {
|
|
|
362
362
|
}
|
|
363
363
|
async function runOperatorCommand(args) {
|
|
364
364
|
if (!args.action) {
|
|
365
|
-
const { printHelpPage } = await import("./help-
|
|
365
|
+
const { printHelpPage } = await import("./help-C_cqTByy.mjs");
|
|
366
366
|
printHelpPage(["platform", args.group]);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as runOperatorCommand } from "./operator-cmd-CoHlJjcT.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
|
|
2
|
+
import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-BQdgCVQF.mjs";
|
|
2
3
|
import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
|
|
3
|
-
import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-D23AAMxT.mjs";
|
|
4
4
|
import { stripVTControlCharacters } from "node:util";
|
|
5
5
|
import terminalLink from "terminal-link";
|
|
6
6
|
// src/cli/output.ts
|
package/dist/pages/client.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as PageObject } from "../protocol-
|
|
1
|
+
import { d as interpolateRouteParams, p as toUrlString } from "../route-url-C3JwYrER.mjs";
|
|
2
|
+
import { t as PageObject } from "../protocol-xZMvWsrg.mjs";
|
|
3
3
|
import { a as LinkPrefetchValue, i as LinkPrefetchStrategy, n as CacheForInput, r as CacheForResult } from "../prefetch-NdNeubbH.mjs";
|
|
4
4
|
import { UsageLimitData } from "@void/edge";
|
|
5
|
-
import { ActionUrl, Href, ResolveActionBody, ResolveActionParams, RouteUrlInput } from "void/routes";
|
|
5
|
+
import { ActionUrl, Href, ResolveActionBody, ResolveActionParams, RouteUrl, RouteUrlInput } from "void/routes";
|
|
6
6
|
type ActionErrorHandlingScope = "callSite" | "boundary";
|
|
7
7
|
type ActionResult<T = PageObject | undefined> = {
|
|
8
8
|
ok: true;
|
|
@@ -26,6 +26,7 @@ export declare class VoidActionError extends Error {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
export declare function categorizeActionError(status: number): ActionErrorHandlingScope;
|
|
29
|
+
export declare function isVoidActionError(error: unknown): error is VoidActionError;
|
|
29
30
|
export declare function isCallSiteActionError(error: unknown): error is VoidActionError;
|
|
30
31
|
export declare function isAbortError(error: unknown): boolean;
|
|
31
32
|
type PageComponentModule = {
|
|
@@ -70,6 +71,7 @@ type PageNavigationEngineConfig = {
|
|
|
70
71
|
layoutTree: Record<string, Array<string>>;
|
|
71
72
|
routeMeta: Record<string, {
|
|
72
73
|
island?: boolean;
|
|
74
|
+
prerender?: boolean;
|
|
73
75
|
}>;
|
|
74
76
|
/** Page id for a decoded pathname (see `decodePagePath`). */
|
|
75
77
|
matchRoute(path: string): string | null;
|
|
@@ -171,16 +173,18 @@ export declare function linkPrefetchStrategies(props: Pick<BaseLinkProps, "prefe
|
|
|
171
173
|
/**
|
|
172
174
|
* Marks a GET link to the current page. Pathnames compare the way the server
|
|
173
175
|
* matches pages: case-sensitive, trailing slash significant, decoded like Hono's
|
|
174
|
-
* getPath.
|
|
175
|
-
*
|
|
176
|
-
*
|
|
176
|
+
* getPath. A link with a query also needs each of its params, with the same value,
|
|
177
|
+
* in the current URL, which may have more params in any order. GET data counts as
|
|
178
|
+
* query, and the hash is ignored. `prefix` also matches nested pages by whole
|
|
179
|
+
* segment, except for `/`, comparing only the path, but only an exact match is
|
|
180
|
+
* `aria-current`. Spread the result before the user's attributes so theirs win.
|
|
177
181
|
*/
|
|
178
182
|
export declare function linkActiveAttributes(router: VoidRouter | null | undefined, link: ResolvedLink, match?: LinkActiveMatch): LinkActiveAttributes;
|
|
179
183
|
/**
|
|
180
184
|
* Marks a link while a visit to its destination is loading: the visit uses the link's
|
|
181
|
-
* method and goes to its path, query and hash. Unlike active links, the query
|
|
182
|
-
* so `?
|
|
183
|
-
* is marked, not only the one that was clicked.
|
|
185
|
+
* method and goes to its path, query and hash. Unlike active links, the whole query and
|
|
186
|
+
* the hash count, so `?tab=open` isn't pending during a visit to `?tab=open&page=2`.
|
|
187
|
+
* Every link to the destination is marked, not only the one that was clicked.
|
|
184
188
|
* Spread the result before the user's attributes so theirs win.
|
|
185
189
|
*/
|
|
186
190
|
export declare function linkPendingAttributes(router: VoidRouter | null | undefined, navigation: NavigationState | null | undefined, link: ResolvedLink): LinkPendingAttributes;
|
|
@@ -266,15 +270,16 @@ type FormState<TData, TEditing extends FormEditing> = FormStatus & FormFields<TD
|
|
|
266
270
|
/**
|
|
267
271
|
* The `useIslandForm()` contract every adapter shares. Errors are keyed by whatever names the
|
|
268
272
|
* action returns, not only the default fields. Submit methods take the action URL.
|
|
273
|
+
* That URL is a `RouteUrl`: any string, unless `routing.typedRoutes` is on.
|
|
269
274
|
*/
|
|
270
275
|
type IslandFormState<TData, TEditing extends FormEditing> = FormStatus & FormFields<TData, Partial<Record<string, string>>, TEditing> & Readonly<{
|
|
271
276
|
reset(...fields: ReadonlyArray<keyof TData & string>): void;
|
|
272
277
|
clearErrors(...fields: ReadonlyArray<string>): void;
|
|
273
278
|
clearError(): void;
|
|
274
|
-
post(url:
|
|
275
|
-
put(url:
|
|
276
|
-
patch(url:
|
|
277
|
-
delete(url:
|
|
279
|
+
post(url: RouteUrl): Promise<void>;
|
|
280
|
+
put(url: RouteUrl): Promise<void>;
|
|
281
|
+
patch(url: RouteUrl): Promise<void>;
|
|
282
|
+
delete(url: RouteUrl): Promise<void>;
|
|
278
283
|
}>;
|
|
279
284
|
export declare function formErrorMessage(form: Pick<FormModel, "error" | "errors">): string | null;
|
|
280
285
|
export declare function formRetryMessage(error: VoidActionError | null): string | null;
|