void 1.12.1 → 1.13.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/README.md +1 -0
- package/dist/{account-cmd-BU1Fy_Bf.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
- package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
- package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
- package/dist/args-DrnTI35r.mjs +88 -0
- package/dist/args-MnQnqypt.mjs +1 -0
- package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
- package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
- package/dist/{auth-link-Duu2NvN5.mjs → auth-link-I4omV0pL.mjs} +6 -6
- package/dist/{auth-router-vgtOdb9j.mjs → auth-router-CXq4q7bb.mjs} +6 -5
- package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
- package/dist/bindings-C7zOgxT3.d.mts +28 -0
- package/dist/browser-run-BKgZVwLk.mjs +124 -0
- package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
- package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
- package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
- package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
- package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
- package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
- package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
- package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
- package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
- package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
- package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
- package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +111 -47
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli/json-command-process.d.mts +6 -0
- package/dist/cli/json-command-process.mjs +91 -0
- package/dist/{cli-main-BrChcpE3.mjs → cli-main-CJTGhcYN.mjs} +84 -113
- package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
- package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
- package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
- package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
- package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
- package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
- package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
- package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
- package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
- package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
- package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
- package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
- package/dist/collect-Aam0GwAU.mjs +1 -0
- package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
- package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
- package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
- package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
- package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
- package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
- package/dist/config-entry.d.mts +1 -1
- package/dist/config-write-dKLINlm2.mjs +80 -0
- package/dist/{connect-D0V0o40j.mjs → connect-Bqq3b9sX.mjs} +10 -9
- package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
- package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
- package/dist/{db-BNPIjLkK.mjs → db-B3eoVDNA.mjs} +50 -47
- package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
- package/dist/db-args-Cx1y4vZn.mjs +1 -0
- package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
- package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
- package/dist/deploy-DZ9j7MC4.mjs +2 -0
- package/dist/{deploy-BgSbagIP.mjs → deploy-UojYUEWr.mjs} +803 -1415
- package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
- package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
- package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
- package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
- package/dist/deploy.mjs +14 -10
- package/dist/discover-BZWVWeQs.mjs +1 -0
- package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
- package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
- package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
- package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
- package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
- package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
- package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
- package/dist/{email-DcQNP40O.mjs → email-BBSDV0J5.mjs} +13 -12
- package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
- package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
- package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
- package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
- package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
- package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
- package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
- package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
- package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
- package/dist/gen-DaayFP9v.mjs +1 -0
- package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
- package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
- package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
- package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
- package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
- package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
- package/dist/help-DWGHmt_n.mjs +1 -0
- package/dist/html-5sfGLjiI.d.mts +3 -0
- package/dist/html-DPSOBDCh.mjs +1 -0
- package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
- package/dist/index-Cvqotnhc.d.mts +91 -0
- package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
- package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +536 -170
- package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
- package/dist/{init-C8YpkGIP.mjs → init-DftAx3L4.mjs} +237 -88
- package/dist/input-jcps6lAn.mjs +64 -0
- package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
- package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
- package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
- package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
- package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
- package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
- package/dist/login-BJwPhV_S.mjs +1 -0
- package/dist/{login-CWFr-G2I.mjs → login-DaugBfBG.mjs} +6 -5
- package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
- package/dist/migrate-BHD46A31.mjs +1 -0
- package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
- package/dist/nitro.mjs +3 -3
- package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
- package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
- package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
- package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
- package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
- package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
- package/dist/{operator-cmd-a7yOf2tH.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
- package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
- package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
- package/dist/output-OYwcEwok.mjs +1 -0
- package/dist/pages/client.d.mts +34 -20
- package/dist/pages/client.mjs +172 -74
- package/dist/pages/index.d.mts +11 -4
- package/dist/pages/index.mjs +5 -5
- package/dist/pages/islands-plugin.d.mts +2 -2
- package/dist/pages/islands-plugin.mjs +5 -3
- package/dist/pages/protocol.d.mts +3 -3
- package/dist/pages/protocol.mjs +3 -3
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
- package/dist/platform-C3Q44RJ8.mjs +250 -0
- package/dist/platform-args-BSyVZESg.mjs +1 -0
- package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
- package/dist/{platform-auth-config-CpszX-Ne.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
- package/dist/{platform-auth-protection-DA6Tw8Og.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
- package/dist/{platform-auth-recovery-Cztrb1JC.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
- package/dist/{platform-cmd-m6Asj6nO.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
- package/dist/{platform-cmd-u1j88ggF.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
- package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
- package/dist/{platform-domain-DJSznNTA.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
- package/dist/{platform-lifecycle-BC-9p58d.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
- package/dist/{platform-lifecycle-GFeXv3NC.mjs → platform-lifecycle-CKwOg8wz.mjs} +244 -104
- package/dist/{platform-management-BwHkz46V.mjs → platform-management-CaSdFthX.mjs} +1 -1
- package/dist/{platform-management-DX1zINou.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
- package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
- package/dist/{platform-recovery-CnzBbudV.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
- package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
- package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
- package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
- package/dist/prepare-CLl_TA_r.mjs +1 -0
- package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
- package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
- package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
- package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
- package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
- package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
- package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
- package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
- package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
- package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
- package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
- package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
- package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
- package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
- package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
- package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
- package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
- package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
- package/dist/resolve-project-Bob_rEi2.mjs +1 -0
- package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
- package/dist/resource-binding-5nI30acw.mjs +20 -0
- package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
- package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
- package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
- package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
- package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
- package/dist/routes-stub.d.mts +18 -2
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
- package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
- package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
- package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
- package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
- package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
- package/dist/runtime/ai/index.mjs +1 -1
- package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
- package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
- package/dist/runtime/client/fetch-server.mjs +1 -1
- package/dist/runtime/client/fetch-stream.mjs +1 -1
- package/dist/runtime/client/fetch.mjs +1 -1
- package/dist/runtime/client/index.mjs +2 -2
- package/dist/runtime/client/react.mjs +2 -2
- package/dist/runtime/client/solid.mjs +2 -2
- package/dist/runtime/client/svelte.mjs +2 -2
- package/dist/runtime/client/vue.mjs +2 -2
- package/dist/runtime/durable/index.mjs +11 -26
- package/dist/runtime/env/runtime.d.mts +2 -10
- package/dist/runtime/handler/index.d.mts +3 -2
- package/dist/runtime/handler/index.mjs +2 -2
- package/dist/runtime/handler/validator.d.mts +1 -1
- package/dist/runtime/handler/validator.mjs +1 -1
- package/dist/runtime/html.d.mts +2 -0
- package/dist/runtime/html.mjs +1 -0
- package/dist/runtime/image/index.d.mts +103 -0
- package/dist/runtime/image/index.mjs +89 -0
- package/dist/runtime/jsx/index.d.mts +3 -0
- package/dist/runtime/jsx/index.mjs +2 -0
- package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
- package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
- package/dist/runtime/limits/index.mjs +1 -1
- package/dist/runtime/live/client.d.mts +2 -2
- package/dist/runtime/live/index.d.mts +1 -1
- package/dist/runtime/routing/index.d.mts +87 -4
- package/dist/runtime/routing/index.mjs +59 -20
- package/dist/runtime/routing/route-url.d.mts +2 -2
- package/dist/runtime/routing/route-url.mjs +1 -1
- package/dist/runtime/sandbox/index.mjs +1 -1
- package/dist/runtime/sse/client.d.mts +1 -1
- package/dist/runtime/workflows/entry.d.mts +8 -0
- package/dist/runtime/workflows/entry.mjs +49 -0
- package/dist/runtime/workflows/index.d.mts +3 -0
- package/dist/runtime/workflows/index.mjs +77 -0
- package/dist/runtime/ws/index.d.mts +1 -1
- package/dist/runtime/ws/index.mjs +2 -2
- package/dist/runtime/ws/room.d.mts +1 -1
- package/dist/runtime/ws/server.d.mts +2 -2
- package/dist/runtime-Db72hLY-.d.mts +11 -0
- package/dist/scan-BxhB4BA-.mjs +946 -0
- package/dist/scan-D2ISAobj.mjs +308 -0
- package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
- package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
- package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
- package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
- package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
- package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
- package/dist/standard-schema-DvMcZGMK.mjs +8 -0
- package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
- package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
- package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
- package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
- package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
- package/dist/validate-p9b3r1k4.mjs +1 -0
- package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
- package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
- package/dist/version-metadata-CEla0kgi.mjs +23 -0
- package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
- package/dist/wrangler-BT7qrzWc.mjs +1 -0
- package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
- package/docs/guide/ai.md +1 -1
- package/docs/guide/app-types.md +6 -23
- package/docs/guide/auth.md +2 -4
- package/docs/guide/database/d1.md +21 -67
- package/docs/guide/database/mysql.md +8 -0
- package/docs/guide/database/postgresql.md +2 -2
- package/docs/guide/database.md +1 -1
- package/docs/guide/deployment.md +18 -0
- package/docs/guide/edge/prerendering.md +3 -7
- package/docs/guide/edge/redirects.md +1 -1
- package/docs/guide/edge/revalidation.md +8 -17
- package/docs/guide/edge/rewrites.md +1 -1
- package/docs/guide/edge/static-assets.md +10 -22
- package/docs/guide/email/domains.md +3 -1
- package/docs/guide/email/receiving.md +2 -2
- package/docs/guide/email/sending.md +3 -1
- package/docs/guide/env-vars.md +2 -0
- package/docs/guide/image-generation.md +142 -0
- package/docs/guide/index.md +17 -15
- package/docs/guide/jobs.md +2 -4
- package/docs/guide/kv.md +1 -1
- package/docs/guide/og-images.md +83 -0
- package/docs/guide/pages-routing/actions-and-forms.md +6 -4
- package/docs/guide/pages-routing/errors.md +20 -4
- package/docs/guide/pages-routing/head.md +5 -5
- package/docs/guide/pages-routing/islands.md +4 -14
- package/docs/guide/pages-routing/markdown.md +2 -2
- package/docs/guide/pages-routing/overview.md +129 -15
- package/docs/guide/platform/administration/plans.md +47 -16
- package/docs/guide/platform/administration/projects.md +10 -0
- package/docs/guide/platform/administration/security-audits.md +76 -30
- package/docs/guide/platform/administration/zero-trust.md +1 -1
- package/docs/guide/platform/installation/ci.md +0 -4
- package/docs/guide/platform/installation/credentials.md +1 -1
- package/docs/guide/platform/installation/maintenance.md +11 -9
- package/docs/guide/platform/installation/prerequisites.md +3 -1
- package/docs/guide/platform/installation/setup.md +7 -15
- package/docs/guide/platform/installation/uninstall.md +6 -12
- package/docs/guide/project-collaboration.md +1 -4
- package/docs/guide/queues.md +6 -8
- package/docs/guide/quickstart.md +6 -8
- package/docs/guide/sandboxes.md +1 -1
- package/docs/guide/self-hosted-platform.md +4 -7
- package/docs/guide/server-routing.md +5 -3
- package/docs/guide/ssg.md +1 -1
- package/docs/guide/type-safety.md +74 -10
- package/docs/guide/websockets.md +5 -7
- package/docs/guide/workflows.md +122 -0
- package/docs/index.md +2 -3
- package/docs/integrations/agents.md +3 -16
- package/docs/integrations/cloudflare.md +98 -2
- package/docs/integrations/frameworks/analog.md +9 -11
- package/docs/integrations/frameworks/astro.md +16 -17
- package/docs/integrations/frameworks/nuxt.md +11 -13
- package/docs/integrations/frameworks/overview.md +18 -20
- package/docs/integrations/frameworks/react-router.md +55 -6
- package/docs/integrations/frameworks/sveltekit.md +8 -6
- package/docs/integrations/frameworks/tanstack-start.md +10 -6
- package/docs/integrations/hono.md +27 -12
- package/docs/integrations/nodejs-bun-deno.md +10 -2
- package/docs/reference/api/database.md +8 -10
- package/docs/reference/api/env.md +2 -2
- package/docs/reference/api/handlers.md +1 -1
- package/docs/reference/api/html.md +45 -0
- package/docs/reference/api/pages.md +118 -167
- package/docs/reference/api/rewrites.md +5 -5
- package/docs/reference/api/types.md +13 -6
- package/docs/reference/api/workflows.md +48 -0
- package/docs/reference/api.md +7 -1
- package/docs/reference/cli/database.md +22 -10
- package/docs/reference/cli/deploy.md +49 -4
- package/docs/reference/cli/domains.md +7 -3
- package/docs/reference/cli/email.md +3 -1
- package/docs/reference/cli/platform-installation.md +9 -53
- package/docs/reference/cli/platform-security.md +36 -8
- package/docs/reference/cli/platform-users.md +11 -1
- package/docs/reference/cli/platform-zero-trust.md +1 -1
- package/docs/reference/cli/project.md +52 -11
- package/docs/reference/cli/setup.md +8 -10
- package/docs/reference/cli.md +49 -47
- package/docs/reference/config.md +22 -8
- package/docs/reference/resource-inference.md +8 -1
- package/docs/reference/structure.md +5 -0
- package/package.json +52 -25
- package/schema.json +20 -1
- package/skills/void/SKILL.md +60 -54
- package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
- package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
- package/dist/cli/db-execute-process.d.mts +0 -2
- package/dist/cli/db-execute-process.mjs +0 -57
- package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
- package/dist/collect-B6nlSnsb.mjs +0 -1
- package/dist/db-args-BvMwAber.mjs +0 -1
- package/dist/deploy-Do6FWqon.mjs +0 -2
- package/dist/discover-D2KGP3cR.mjs +0 -1
- package/dist/entry-Bwb9ev8K.mjs +0 -113
- package/dist/gen-vhBDHs3q.mjs +0 -1
- package/dist/help-fKPzcTJv.mjs +0 -1
- package/dist/isr-config-DiTnL9Tb.mjs +0 -115
- package/dist/login-DECm3e9b.mjs +0 -1
- package/dist/migrate-C9aoWLvY.mjs +0 -1
- package/dist/operator-cmd-CVfK5U0B.mjs +0 -1
- package/dist/output-D7K9TWIA.mjs +0 -1
- package/dist/platform-args-CMwMoiLp.mjs +0 -1
- package/dist/prepare-DcwigRUS.mjs +0 -1
- package/dist/providers-D5P8j_8D.d.mts +0 -5
- package/dist/resolve-project-YsTH-U9I.mjs +0 -1
- package/dist/static-exports-s7P86Ngp.mjs +0 -354
- package/dist/validate-CZYUIfR-.mjs +0 -1
- package/dist/wrangler-Dq269bjx.mjs +0 -1
- package/docs/guide/platform/development/local.md +0 -120
- package/docs/guide/platform/development/runtime.md +0 -115
- package/docs/guide/platform/development/schema-ci.md +0 -44
- package/docs/guide/platform-development.md +0 -16
package/schema.json
CHANGED
|
@@ -290,6 +290,10 @@
|
|
|
290
290
|
"email": {
|
|
291
291
|
"type": "boolean",
|
|
292
292
|
"description": "Enable email support (used by void/email)."
|
|
293
|
+
},
|
|
294
|
+
"browser": {
|
|
295
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string" }],
|
|
296
|
+
"description": "Enable the Browser Run binding used by void/image. `true` uses default name \"BROWSER\", a string sets a custom binding name, `false` disables it for apps that use only a third-party renderer."
|
|
293
297
|
}
|
|
294
298
|
},
|
|
295
299
|
"additionalProperties": false
|
|
@@ -315,6 +319,10 @@
|
|
|
315
319
|
},
|
|
316
320
|
"additionalProperties": false
|
|
317
321
|
},
|
|
322
|
+
"precompress": {
|
|
323
|
+
"type": "boolean",
|
|
324
|
+
"description": "Write Brotli and gzip copies of built client assets and serve them to browsers that accept them. Applies to targets node and bun, where it defaults to true. Set to false to turn it off."
|
|
325
|
+
},
|
|
318
326
|
"remote": {
|
|
319
327
|
"type": "boolean",
|
|
320
328
|
"description": "Connect to remote D1/KV/R2 bindings during local development. Can also be set via VOID_REMOTE=1 environment variable."
|
|
@@ -406,7 +414,7 @@
|
|
|
406
414
|
"mode": {
|
|
407
415
|
"type": "string",
|
|
408
416
|
"enum": ["staged", "atomic"],
|
|
409
|
-
"description": "Staged is the default and verifies readiness before traffic. Atomic publishes a Durable
|
|
417
|
+
"description": "Staged is the default and verifies readiness before traffic. Atomic publishes a Worker with Durable Objects or Workflows directly and verifies readiness afterward."
|
|
410
418
|
}
|
|
411
419
|
},
|
|
412
420
|
"additionalProperties": false
|
|
@@ -437,10 +445,21 @@
|
|
|
437
445
|
"readReplication": {
|
|
438
446
|
"type": "boolean",
|
|
439
447
|
"description": "Enable or disable D1 read replication during deployment. Omit to preserve existing settings; new databases default to replication off."
|
|
448
|
+
},
|
|
449
|
+
"authDateType": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": ["timestamp", "datetime"],
|
|
452
|
+
"description": "MySQL column type for generated auth dates. Defaults to timestamp when omitted."
|
|
440
453
|
}
|
|
441
454
|
},
|
|
442
455
|
"if": { "required": ["readReplication"] },
|
|
443
456
|
"then": { "properties": { "dialect": { "const": "sqlite" } } },
|
|
457
|
+
"allOf": [
|
|
458
|
+
{
|
|
459
|
+
"if": { "required": ["authDateType"] },
|
|
460
|
+
"then": { "required": ["dialect"], "properties": { "dialect": { "const": "mysql" } } }
|
|
461
|
+
}
|
|
462
|
+
],
|
|
444
463
|
"additionalProperties": false
|
|
445
464
|
}
|
|
446
465
|
]
|
package/skills/void/SKILL.md
CHANGED
|
@@ -32,59 +32,65 @@ For a one-time deployment elsewhere, connect to that platform, then set
|
|
|
32
32
|
`VOID_API_URL` for the deploy command and pass `--project <slug>`. This preserves
|
|
33
33
|
the app's existing saved destination, including when the target project is new.
|
|
34
34
|
|
|
35
|
+
Static PR previews: `void deploy --platform cloudflare --preview pr-<n> --json` (deploy production first); remove with `void project preview delete pr-<n> --platform cloudflare`.
|
|
36
|
+
|
|
35
37
|
Use `void deploy --skip-migrations` when database migrations run separately; it skips application and authentication SQL for that invocation. Ensure the code supports the current database schema and follow `docs/guide/deployment.md` for the release workflow.
|
|
36
38
|
|
|
37
39
|
## Task Routing
|
|
38
40
|
|
|
39
|
-
| User intent
|
|
40
|
-
|
|
|
41
|
-
| CLI command syntax, flags, env vars
|
|
42
|
-
| Initial setup, onboarding, first app
|
|
43
|
-
| App type detection and mode behavior
|
|
44
|
-
| Server/API routing and middleware
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
| Platform
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
41
|
+
| User intent | Docs file(s) |
|
|
42
|
+
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
43
|
+
| CLI command syntax, flags, env vars | `docs/reference/cli.md` |
|
|
44
|
+
| Initial setup, onboarding, first app | `docs/guide/quickstart.md`, `docs/reference/cli/setup.md` |
|
|
45
|
+
| App type detection and mode behavior | `docs/guide/app-types.md`, `docs/reference/config.md` |
|
|
46
|
+
| Server/API routing and middleware | `docs/guide/server-routing.md`, `docs/integrations/hono.md` |
|
|
47
|
+
| HTML templates (`void/html`) | `docs/reference/api/html.md` |
|
|
48
|
+
| JSX route handlers (`void/jsx`) | `docs/guide/server-routing.md#jsx-handlers` |
|
|
49
|
+
| Pages mode, loader/action, forms, layouts | `docs/guide/pages-routing/*.md`, `docs/guide/type-safety.md` |
|
|
50
|
+
| Database and migrations | `docs/guide/database.md`, `docs/guide/type-safety.md` |
|
|
51
|
+
| D1 replicas, bookmarks, read-after-write | `docs/guide/database/d1.md`, `docs/reference/api/database.md` |
|
|
52
|
+
| Typed fetch and end-to-end typing | `docs/guide/typed-fetch.md`, `docs/guide/type-safety.md` |
|
|
53
|
+
| Authentication | `docs/guide/auth.md`, `docs/reference/api/auth.md`, `docs/guide/env-vars.md` |
|
|
54
|
+
| Cloudflare runtime bindings and config | `docs/integrations/cloudflare.md`, `docs/reference/config.md`, `docs/guide/env-vars.md` |
|
|
55
|
+
| AI inference (Workers AI, providers) | `docs/guide/ai.md` |
|
|
56
|
+
| Platform AI logging policy | `docs/reference/cli/platform-users.md#ai-gateway-logging` |
|
|
57
|
+
| Durable State and WebSockets | `docs/guide/durable-state.md`, `docs/guide/websockets.md` |
|
|
58
|
+
| Define, start, or deploy a Workflow | `docs/guide/workflows.md`, `docs/reference/api/workflows.md` |
|
|
59
|
+
| Server-sent events and live streams | `docs/guide/sse.md`, `docs/guide/live.md` |
|
|
60
|
+
| Open Graph and social images (`void/image`) | `docs/guide/og-images.md`, `docs/guide/edge/revalidation.md` |
|
|
61
|
+
| Image generation (`void/image`, Cloudflare Browser Run) | `docs/guide/image-generation.md`, `docs/guide/edge/revalidation.md` |
|
|
62
|
+
| Sandboxes | `docs/guide/sandboxes.md` |
|
|
63
|
+
| Email | `docs/guide/email.md`, then the matching guide under `docs/guide/email/` |
|
|
64
|
+
| KV / storage / queues / cron jobs | `docs/guide/kv.md`, `docs/guide/storage.md`, `docs/guide/queues.md`, `docs/guide/jobs.md` |
|
|
65
|
+
| SSR and caching | `docs/guide/ssr.md`, `docs/guide/edge/*.md` |
|
|
66
|
+
| HTTPS, rewrites, redirects, fallbacks | `docs/guide/edge/rewrites.md`, `docs/guide/edge/redirects.md`, `docs/reference/config.md` |
|
|
67
|
+
| Static site generation | `docs/guide/ssg.md` |
|
|
68
|
+
| Testing an app with Vitest (`vp test`) | `docs/guide/testing.md` |
|
|
69
|
+
| Connected apps and artifact preparation | `docs/guide/platform/administration/connected-apps.md`, `docs/reference/api/deploy.md` |
|
|
70
|
+
| Deployment and CI | `docs/guide/deployment.md`, `docs/reference/cli/deploy.md` |
|
|
71
|
+
| Install or maintain a company platform | `docs/guide/self-hosted-platform.md`, `docs/reference/cli/platform-installation.md` |
|
|
72
|
+
| Platform administration | `docs/guide/platform-administration.md`, `docs/reference/cli/platform.md` |
|
|
73
|
+
| Security audits, scan before public | `docs/guide/platform/administration/security-audits.md` |
|
|
74
|
+
| Security audit admin commands | `docs/reference/cli/platform-security.md` |
|
|
75
|
+
| Security findings, check before deploy | `docs/reference/cli/project.md` |
|
|
76
|
+
| Platform plans and account limits | `docs/guide/platform/administration/plans.md`, `docs/reference/cli/platform-config.md` |
|
|
77
|
+
| Self-host deploy to own Cloudflare account | `docs/integrations/cloudflare.md`, `docs/reference/cli/deploy.md` |
|
|
78
|
+
| Project status, deployment history | `docs/reference/cli/project.md` |
|
|
79
|
+
| Cache purging | `docs/reference/cli/project.md` |
|
|
80
|
+
| Project logs, runtime errors | `docs/reference/cli/project.md` |
|
|
81
|
+
| Secrets management (put/sync/delete) | `docs/reference/cli/secrets.md`, `docs/guide/env-vars.md` |
|
|
82
|
+
| Typed env vars (`defineEnv`, `env.ts`) | `docs/guide/env-vars.md` |
|
|
83
|
+
| Custom domain setup | `docs/reference/cli/domains.md` |
|
|
84
|
+
| Database status, reset, seed, export | `docs/reference/cli/database.md`, `docs/guide/database.md` |
|
|
85
|
+
| Auth login/logout/whoami | `docs/reference/cli/auth.md` |
|
|
86
|
+
| Overview / introduction | `docs/guide/index.md` |
|
|
87
|
+
| API surface details | `docs/reference/api.md` |
|
|
88
|
+
| Meta framework integration | `docs/integrations/frameworks/*.md` |
|
|
89
|
+
| Coding agent setup | `docs/integrations/agents.md` |
|
|
90
|
+
| Node.js / Bun / Deno targets | `docs/integrations/nodejs-bun-deno.md` |
|
|
91
|
+
| ORMs and external databases | `docs/guide/database.md` |
|
|
92
|
+
| Project structure and conventions | `docs/reference/structure.md` |
|
|
93
|
+
| Resource/binding inference | `docs/reference/resource-inference.md` |
|
|
88
94
|
|
|
89
95
|
## Working rules
|
|
90
96
|
|
|
@@ -95,11 +101,11 @@ Use `void deploy --skip-migrations` when database migrations run separately; it
|
|
|
95
101
|
guides and use `void info` to preserve resource names and instance keys.
|
|
96
102
|
- Declare application environment keys in `env.ts` and access them through
|
|
97
103
|
`void/env`; follow `docs/guide/env-vars.md` for local and production values.
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
`
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
- For Pages navigation, style links with `aria-current`, `data-void-active`
|
|
105
|
+
(`activeMatch="prefix"` for sections), and `data-void-pending`. For other UI, read
|
|
106
|
+
`useLinkStatus()`, `Link` children, or `isLinkActive()`/`isLinkPending()` for lists
|
|
107
|
+
instead of comparing `useRouter().path` or `useNavigation().location` yourself. See
|
|
108
|
+
`docs/guide/pages-routing/overview.md#reading-link-status`.
|
|
103
109
|
- For platform setup, follow the pages linked from
|
|
104
110
|
`docs/guide/self-hosted-platform.md`. Use `void platform list` to find the
|
|
105
111
|
installation slug for maintenance. For recovery, use its documented resume
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as prepareCfBuildOutput } from "./cf-build-output-Cso7Vh-t.mjs";
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { n as getOwnVersion } from "./agents-64FnLwxP.mjs";
|
|
2
|
-
import { readFileSync } from "node:fs";
|
|
3
|
-
import { isRecord } from "@void/deploy-core";
|
|
4
|
-
// src/cli/cf-user-agent.ts
|
|
5
|
-
let voidUserAgent;
|
|
6
|
-
let cfCliVersion;
|
|
7
|
-
function getVoidUserAgent() {
|
|
8
|
-
if (voidUserAgent === void 0) voidUserAgent = `void/${getOwnVersion()}`;
|
|
9
|
-
return voidUserAgent;
|
|
10
|
-
}
|
|
11
|
-
/** cf prepends `cf-cli/` to CLI_VERSION for both API requests and uploads. */
|
|
12
|
-
function getCfCliVersion(attribution) {
|
|
13
|
-
if (cfCliVersion === void 0) cfCliVersion = `${JSON.parse(readFileSync(new URL(import.meta.resolve("cf/package.json")), "utf8")).version} ${getVoidUserAgent()}`;
|
|
14
|
-
return attribution ? `${cfCliVersion} ${attribution}` : cfCliVersion;
|
|
15
|
-
}
|
|
16
|
-
// src/cli/cf-worker-settings.ts
|
|
17
|
-
/** Version uploads leave Worker-wide settings untouched; publish only explicit configuration. */
|
|
18
|
-
async function publishCloudflareWorkerSettings(options) {
|
|
19
|
-
if (options.observability !== void 0 && !isRecord(options.observability)) throw new Error("The Cloudflare Worker observability settings were not readable.");
|
|
20
|
-
if (options.logpush !== void 0 && typeof options.logpush !== "boolean") throw new Error("The Cloudflare Worker Logpush setting was not readable.");
|
|
21
|
-
const settings = {
|
|
22
|
-
...options.observability === void 0 ? {} : { observability: options.observability },
|
|
23
|
-
...options.logpush === void 0 ? {} : { logpush: options.logpush }
|
|
24
|
-
};
|
|
25
|
-
if (Object.keys(settings).length === 0) return;
|
|
26
|
-
const endpoint = `${options.apiBaseUrl.replace(/\/$/, "")}/accounts/${encodeURIComponent(options.accountId)}/workers/scripts/${encodeURIComponent(options.workerName)}/script-settings`;
|
|
27
|
-
const response = await fetch(endpoint, {
|
|
28
|
-
method: "PATCH",
|
|
29
|
-
headers: {
|
|
30
|
-
"User-Agent": getVoidUserAgent(),
|
|
31
|
-
...options.headers,
|
|
32
|
-
"Content-Type": "application/json"
|
|
33
|
-
},
|
|
34
|
-
body: JSON.stringify(settings),
|
|
35
|
-
redirect: "error",
|
|
36
|
-
signal: AbortSignal.timeout(3e4)
|
|
37
|
-
});
|
|
38
|
-
const body = await response.json();
|
|
39
|
-
if (!response.ok || !isRecord(body) || body.success !== true) throw new Error(`Cloudflare did not update Worker settings (HTTP ${response.status}).`);
|
|
40
|
-
}
|
|
41
|
-
export { getCfCliVersion as n, getVoidUserAgent as r, publishCloudflareWorkerSettings as t };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { L as log } from "../dist-Cr_xGE_K.mjs";
|
|
2
|
-
import { t as formatCloudflareUserMessage } from "../cloudflare-user-output-CCR99eQY.mjs";
|
|
3
|
-
import { t as Buffer } from "../node-buffer-D7kgjaDs.mjs";
|
|
4
|
-
import { writeFileSync } from "node:fs";
|
|
5
|
-
import { constants } from "node:os";
|
|
6
|
-
import { spawn } from "node:child_process";
|
|
7
|
-
// src/cli/db-execute-process.ts
|
|
8
|
-
const CHILD_COMMAND = "__void-db-execute-json__";
|
|
9
|
-
const RESULT_FD = 3;
|
|
10
|
-
/** Keep config output on stderr, including writes to fd 1 and output from its children. */
|
|
11
|
-
async function runDbExecuteProcess(root, args) {
|
|
12
|
-
const child = spawn(process.execPath, [
|
|
13
|
-
...process.execArgv,
|
|
14
|
-
import.meta.filename,
|
|
15
|
-
CHILD_COMMAND,
|
|
16
|
-
process.argv[1],
|
|
17
|
-
...args
|
|
18
|
-
], {
|
|
19
|
-
cwd: root,
|
|
20
|
-
stdio: [
|
|
21
|
-
"inherit",
|
|
22
|
-
2,
|
|
23
|
-
"inherit",
|
|
24
|
-
"pipe"
|
|
25
|
-
]
|
|
26
|
-
});
|
|
27
|
-
const chunks = [];
|
|
28
|
-
child.stdio[RESULT_FD]?.on("data", (chunk) => chunks.push(chunk));
|
|
29
|
-
const interrupt = () => child.kill("SIGINT");
|
|
30
|
-
const terminate = () => child.kill("SIGTERM");
|
|
31
|
-
process.on("SIGINT", interrupt);
|
|
32
|
-
process.on("SIGTERM", terminate);
|
|
33
|
-
try {
|
|
34
|
-
const code = await new Promise((resolve, reject) => {
|
|
35
|
-
child.once("error", reject);
|
|
36
|
-
child.once("close", (status, signal) => {
|
|
37
|
-
resolve(signal ? 128 + constants.signals[signal] : status ?? 1);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
if (code !== 0) process.exitCode = code;
|
|
41
|
-
else if (chunks.length > 0) process.stdout.write(Buffer.concat(chunks));
|
|
42
|
-
} finally {
|
|
43
|
-
process.off("SIGINT", interrupt);
|
|
44
|
-
process.off("SIGTERM", terminate);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (process.argv[2] === CHILD_COMMAND) try {
|
|
48
|
-
process.argv.splice(1, 2);
|
|
49
|
-
const { parseDbArgs } = await import("../db-args-BvMwAber.mjs");
|
|
50
|
-
const args = parseDbArgs(process.argv.slice(3));
|
|
51
|
-
const { runDbCommand } = await import("../db-BNPIjLkK.mjs");
|
|
52
|
-
await runDbCommand(process.cwd(), args, (text) => writeFileSync(RESULT_FD, text));
|
|
53
|
-
} catch (error) {
|
|
54
|
-
log.error(formatCloudflareUserMessage(error instanceof Error ? error.message : String(error)), { output: process.stderr });
|
|
55
|
-
process.exitCode = 1;
|
|
56
|
-
}
|
|
57
|
-
export { runDbExecuteProcess };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/cli/cloudflare-user-output.ts
|
|
2
|
-
/**
|
|
3
|
-
* Keep Void's public CLI vocabulary at the product level while preserving real
|
|
4
|
-
* Cloudflare config filenames and environment variables that users may need to
|
|
5
|
-
* inspect. The underlying implementation remains available in source and deploy
|
|
6
|
-
* diagnostics, but normal remediation always points back to Void commands.
|
|
7
|
-
*/
|
|
8
|
-
function formatCloudflareUserMessage(message) {
|
|
9
|
-
const preserved = [];
|
|
10
|
-
const protect = (value) => {
|
|
11
|
-
return `\uE000VOID_CF_TERM_${preserved.push(value) - 1}\uE001`;
|
|
12
|
-
};
|
|
13
|
-
let result = message.replaceAll(/(?:[A-Za-z]:)?[^\s`"']*wrangler\.jsonc?/gi, protect).replaceAll(/\bWRANGLER_[A-Z0-9_]+\b/g, protect).replaceAll(/\.wrangler\b/gi, protect).replaceAll(/`wrangler deploy`/gi, "`void deploy --platform cloudflare`").replaceAll(/`wrangler secret list[^`]*`/gi, "`void secret list`").replaceAll(/`wrangler secret put\s+([^`]*)`/gi, "`void secret put $1`").replaceAll(/`wrangler d1 migrations apply[^`]*`/gi, "`void db migrate --remote`").replaceAll(/`wrangler d1 migrations list[^`]*`/gi, "`void db status`").replaceAll(/`wrangler[^`]*`/gi, "the underlying Cloudflare operation").replaceAll(/"wrangler[^"\n]*"/gi, "\"Cloudflare operation\"").replaceAll(/\bwrangler uploader\b/gi, "Cloudflare deployment tool").replaceAll(/\bwrangler (?:CLI|binary|process|child)\b/gi, "Cloudflare deployment tool").replaceAll(/\bwrangler config\b/gi, "Cloudflare config").replaceAll(/\bwrangler\b/gi, "Cloudflare tooling");
|
|
14
|
-
result = result.replaceAll(/\uE000VOID_CF_TERM_(\d+)\uE001/g, (_match, index) => {
|
|
15
|
-
return preserved[Number(index)] ?? "";
|
|
16
|
-
});
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
export { formatCloudflareUserMessage as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as collectMigrations } from "./collect-rNLybAnF.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as parseDbArgs } from "./db-args-CiQVg8SJ.mjs";
|
package/dist/deploy-Do6FWqon.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as discoverSchema } from "./discover-IcspacCg.mjs";
|
package/dist/entry-Bwb9ev8K.mjs
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
|
|
3
|
-
import { a as unwrapStaticExpression, o as bindingNames, s as bindingResolver } from "./static-exports-s7P86Ngp.mjs";
|
|
4
|
-
import { r as isIdentifier, s as moduleExportName, t as asAstProgram } from "./ast-BkPQu7A0.mjs";
|
|
5
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
6
|
-
import { parseSync } from "vite";
|
|
7
|
-
// src/ssr/entry.ts
|
|
8
|
-
const SSR_SERVER_ENTRY_NAMES = ["main.ssr.ts", "main.ssr.tsx"];
|
|
9
|
-
const SSR_CLIENT_ENTRY_NAMES = ["main.client.ts", "main.client.tsx"];
|
|
10
|
-
const SSR_SERVER_ENTRY_RELATIVE_PATHS = SSR_SERVER_ENTRY_NAMES.map((name) => `src/${name}`);
|
|
11
|
-
const SSR_CLIENT_ENTRY_RELATIVE_PATHS = SSR_CLIENT_ENTRY_NAMES.map((name) => `src/${name}`);
|
|
12
|
-
function resolveSingleEntry(root, entries, label, paths = readProjectPaths(root)) {
|
|
13
|
-
const matches = entries.flatMap((entryName) => {
|
|
14
|
-
const entry = {
|
|
15
|
-
relativePath: relative(root, join(paths.ssrDir, entryName)),
|
|
16
|
-
absolutePath: join(paths.ssrDir, entryName)
|
|
17
|
-
};
|
|
18
|
-
return existsSync(entry.absolutePath) ? [entry] : [];
|
|
19
|
-
});
|
|
20
|
-
if (matches.length === 0) return null;
|
|
21
|
-
if (matches.length > 1) {
|
|
22
|
-
const names = matches.map((entry) => entry.relativePath).join(", ");
|
|
23
|
-
throw new Error(`ssr: Multiple ${label} entry files found: ${names}. Keep only one.`);
|
|
24
|
-
}
|
|
25
|
-
return matches[0];
|
|
26
|
-
}
|
|
27
|
-
function getSsrServerEntryPath(root, paths = readProjectPaths(root)) {
|
|
28
|
-
return resolveSingleEntry(root, SSR_SERVER_ENTRY_NAMES, "SSR", paths)?.absolutePath ?? null;
|
|
29
|
-
}
|
|
30
|
-
function hasSsrEntry(root, paths = readProjectPaths(root)) {
|
|
31
|
-
return getSsrServerEntryPath(root, paths) !== null;
|
|
32
|
-
}
|
|
33
|
-
function validateServerRenderExport(entry) {
|
|
34
|
-
const { absolutePath, relativePath } = entry;
|
|
35
|
-
const source = readFileSync(absolutePath, "utf8");
|
|
36
|
-
let parsed;
|
|
37
|
-
try {
|
|
38
|
-
parsed = parseSync(relativePath, source);
|
|
39
|
-
} catch (err) {
|
|
40
|
-
throw new Error(`ssr: Invalid entry '${relativePath}'. Could not parse source: '${err instanceof Error ? err.message : String(err)}'.`, { cause: err });
|
|
41
|
-
}
|
|
42
|
-
const program = asAstProgram(parsed.program);
|
|
43
|
-
const body = program.body ?? [];
|
|
44
|
-
let resolve;
|
|
45
|
-
const binding = (node, name) => (resolve ??= bindingResolver(program))(node, name);
|
|
46
|
-
function isRenderer(node) {
|
|
47
|
-
const seen = /* @__PURE__ */ new Set();
|
|
48
|
-
while (node = unwrapStaticExpression(node)) {
|
|
49
|
-
if (seen.has(node)) return false;
|
|
50
|
-
seen.add(node);
|
|
51
|
-
if (isIdentifier(node)) {
|
|
52
|
-
node = binding(node, node.name);
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
if (node.type === "VariableDeclarator") {
|
|
56
|
-
if (!isIdentifier(node.id)) return true;
|
|
57
|
-
node = node.init;
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
if (node.type === "CallExpression") {
|
|
61
|
-
const call = node;
|
|
62
|
-
if (!isIdentifier(call.callee)) return false;
|
|
63
|
-
if (call.callee.name === "defineRender") return true;
|
|
64
|
-
const imported = binding(call, call.callee.name)?.imported;
|
|
65
|
-
return isIdentifier(imported) && imported.name === "defineRender";
|
|
66
|
-
}
|
|
67
|
-
return [
|
|
68
|
-
"FunctionDeclaration",
|
|
69
|
-
"FunctionExpression",
|
|
70
|
-
"ArrowFunctionExpression",
|
|
71
|
-
"ImportSpecifier",
|
|
72
|
-
"ImportDefaultSpecifier"
|
|
73
|
-
].includes(node.type);
|
|
74
|
-
}
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
if (!body.some((node) => {
|
|
78
|
-
if (node.type === "ExportDefaultDeclaration") return isRenderer(node.declaration);
|
|
79
|
-
if (node.type !== "ExportNamedDeclaration") return false;
|
|
80
|
-
if (node.exportKind === "type") return false;
|
|
81
|
-
const declaration = node.declaration;
|
|
82
|
-
if (declaration?.type === "FunctionDeclaration") {
|
|
83
|
-
const fn = declaration;
|
|
84
|
-
return isIdentifier(fn.id) && fn.id.name === "render";
|
|
85
|
-
}
|
|
86
|
-
if (declaration?.type === "VariableDeclaration") return (declaration.declarations ?? []).some((decl) => bindingNames(decl.id).includes("render"));
|
|
87
|
-
return (node.specifiers ?? []).some((specifier) => {
|
|
88
|
-
if (specifier.exportKind === "type") return false;
|
|
89
|
-
const exported = moduleExportName(specifier.exported);
|
|
90
|
-
return exported === "render" || exported === "default" && (!!node.source || isRenderer(specifier.local));
|
|
91
|
-
});
|
|
92
|
-
})) throw new Error(`ssr: Invalid entry '${relativePath}'. Export \`render(c, assetTags)\` or \`export default defineRender(...)\`.`);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Validate SSR mode entry conventions.
|
|
96
|
-
* Returns null when SSR mode is not used.
|
|
97
|
-
*/
|
|
98
|
-
function validateSsrEntries(root, paths = readProjectPaths(root)) {
|
|
99
|
-
const server = resolveSingleEntry(root, SSR_SERVER_ENTRY_NAMES, "SSR", paths);
|
|
100
|
-
const client = resolveSingleEntry(root, SSR_CLIENT_ENTRY_NAMES, "SSR client", paths);
|
|
101
|
-
if (!server && !client) return null;
|
|
102
|
-
if (!client) throw new Error(`ssr: Missing client entry. Add one of: ${SSR_CLIENT_ENTRY_RELATIVE_PATHS.join(", ")}.`);
|
|
103
|
-
if (!server) throw new Error(`ssr: Missing server entry. Add one of: ${SSR_SERVER_ENTRY_RELATIVE_PATHS.join(", ")}.`);
|
|
104
|
-
validateServerRenderExport(server);
|
|
105
|
-
return {
|
|
106
|
-
server,
|
|
107
|
-
client
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function validateSsrEntry(root, paths = readProjectPaths(root)) {
|
|
111
|
-
return validateSsrEntries(root, paths)?.server.absolutePath ?? null;
|
|
112
|
-
}
|
|
113
|
-
export { validateSsrEntries as a, hasSsrEntry as i, SSR_SERVER_ENTRY_RELATIVE_PATHS as n, validateSsrEntry as o, getSsrServerEntryPath as r, SSR_CLIENT_ENTRY_RELATIVE_PATHS as t };
|
package/dist/gen-vhBDHs3q.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as runGenCommand } from "./gen-aOtHhZLD.mjs";
|
package/dist/help-fKPzcTJv.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as printHelpPage } from "./help-DvClCzqL.mjs";
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { existsSync, readdirSync } from "node:fs";
|
|
3
|
-
// src/cli/build-output-dir.ts
|
|
4
|
-
/**
|
|
5
|
-
* Resolve the top-level build output directory: the first segment of a
|
|
6
|
-
* framework preset's `workerDir`, or `dist` for a Void app.
|
|
7
|
-
*/
|
|
8
|
-
function resolveDistDir(root, fwPreset, buildCommand) {
|
|
9
|
-
if (fwPreset) {
|
|
10
|
-
const topDir = fwPreset.workerDir.split("/")[0];
|
|
11
|
-
const distDir = join(root, topDir);
|
|
12
|
-
if (!existsSync(distDir)) throw new Error(`deploy: Build output directory '${topDir}' not found. Run '${buildCommand ?? fwPreset.buildCommand}' first.`);
|
|
13
|
-
return distDir;
|
|
14
|
-
}
|
|
15
|
-
return join(root, "dist");
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Resolve the worker output subdirectory within the build dir: the rest of a
|
|
19
|
-
* framework preset's `workerDir`, or the first known Void output that exists.
|
|
20
|
-
*/
|
|
21
|
-
function resolveWorkerDirName(distDir, fwPreset, buildCommand) {
|
|
22
|
-
if (fwPreset) {
|
|
23
|
-
const subDir = fwPreset.workerDir.split("/").slice(1).join("/");
|
|
24
|
-
if (!existsSync(join(distDir, subDir))) throw new Error(`deploy: Worker output '${fwPreset.workerDir}' not found. Run '${buildCommand ?? fwPreset.buildCommand}' first.`);
|
|
25
|
-
return subDir;
|
|
26
|
-
}
|
|
27
|
-
for (const name of [
|
|
28
|
-
"ssr",
|
|
29
|
-
"rsc",
|
|
30
|
-
"server"
|
|
31
|
-
]) if (existsSync(join(distDir, name))) return name;
|
|
32
|
-
throw new Error("deploy: Worker output not found. Expected dist/ssr/ or dist/rsc/.");
|
|
33
|
-
}
|
|
34
|
-
// src/shared/collect-files.ts
|
|
35
|
-
/**
|
|
36
|
-
* Every non-directory path under `dir`, depth first. Unlike
|
|
37
|
-
* `readdirSync(dir, { recursive: true })`, it does not descend into
|
|
38
|
-
* symlinked directories.
|
|
39
|
-
*/
|
|
40
|
-
function collectFiles(dir) {
|
|
41
|
-
const files = [];
|
|
42
|
-
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
43
|
-
const fullPath = join(dir, entry.name);
|
|
44
|
-
if (entry.isDirectory()) files.push(...collectFiles(fullPath));
|
|
45
|
-
else files.push(fullPath);
|
|
46
|
-
}
|
|
47
|
-
return files;
|
|
48
|
-
}
|
|
49
|
-
// src/isr-config.ts
|
|
50
|
-
/**
|
|
51
|
-
* Whether a resolved `revalidate` value represents an active ISR configuration.
|
|
52
|
-
* `null`/`undefined`/`0`/`{}` are treated as "no ISR", a positive number or a
|
|
53
|
-
* non-empty path map is treated as "ISR on".
|
|
54
|
-
*/
|
|
55
|
-
function hasRevalidate(r) {
|
|
56
|
-
if (r === null || r === void 0) return false;
|
|
57
|
-
if (typeof r === "number") return r > 0;
|
|
58
|
-
if (typeof r === "object") return Object.keys(r).length > 0;
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Merge `routing.revalidate` with per-page `export const revalidate` rules into
|
|
63
|
-
* the flat fallback map baked into managed and native builds. With page rules,
|
|
64
|
-
* page entries come first and a number config becomes the `*` fallback. At
|
|
65
|
-
* runtime, page requests use the `collectPages()` table instead.
|
|
66
|
-
*/
|
|
67
|
-
function collectRevalidate(config, pageScan) {
|
|
68
|
-
if (config.routing?.isr === false) return;
|
|
69
|
-
const vcRevalidate = config.routing?.revalidate;
|
|
70
|
-
let revalidate;
|
|
71
|
-
if (vcRevalidate !== null && vcRevalidate !== void 0) revalidate = vcRevalidate;
|
|
72
|
-
if (pageScan) {
|
|
73
|
-
const perPageRules = {};
|
|
74
|
-
for (const page of pageScan.pages) if (page.revalidate !== null && page.revalidate !== void 0) {
|
|
75
|
-
const key = page.pattern.replaceAll(/:[A-Za-z0-9_]+\{[^}]*\}/g, "*");
|
|
76
|
-
perPageRules[key] = page.revalidate;
|
|
77
|
-
}
|
|
78
|
-
if (Object.keys(perPageRules).length > 0) {
|
|
79
|
-
if (typeof revalidate === "number") {
|
|
80
|
-
if (!Object.hasOwn(perPageRules, "*")) perPageRules["*"] = revalidate;
|
|
81
|
-
revalidate = perPageRules;
|
|
82
|
-
} else if (typeof revalidate === "object") revalidate = Object.fromEntries([...Object.entries(perPageRules), ...Object.entries(revalidate).filter(([pattern]) => !Object.hasOwn(perPageRules, pattern))]);
|
|
83
|
-
else revalidate = perPageRules;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return revalidate;
|
|
87
|
-
}
|
|
88
|
-
/** A page export wins, then a number config; an object config (or none) gives `undefined`. */
|
|
89
|
-
function resolvePageBuildTtl(page, revalidateConfig) {
|
|
90
|
-
if (page.revalidate !== null && page.revalidate !== void 0) return page.revalidate > 0 ? page.revalidate : 0;
|
|
91
|
-
if (typeof revalidateConfig === "number") return revalidateConfig > 0 ? revalidateConfig : 0;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Build the ordered page table shipped in the deploy manifest as `pages`, in
|
|
95
|
-
* `pageScan.pages` order with raw patterns (catch-alls are not collapsed).
|
|
96
|
-
*
|
|
97
|
-
* Each entry's `revalidate` has three states: N > 0 turns ISR on, 0 is an
|
|
98
|
-
* explicit opt-out, and absent lets dispatch resolve the per-path object config
|
|
99
|
-
* (`manifest.pathRevalidate`) against the request path. Object configs are not
|
|
100
|
-
* baked because one dynamic page can span several entries, including a 0.
|
|
101
|
-
*
|
|
102
|
-
* Built from pages only, so a catch-all page TTL can also cache a non-`/api`
|
|
103
|
-
* `routes/` handler at dispatch (bounded by `shouldBypassIsr` and `isApiPath`).
|
|
104
|
-
*/
|
|
105
|
-
function collectPages(pageScan, revalidateConfig, isrEnabled = true) {
|
|
106
|
-
if (!pageScan || pageScan.pages.length === 0) return;
|
|
107
|
-
return pageScan.pages.map((page) => {
|
|
108
|
-
const ttl = isrEnabled ? resolvePageBuildTtl(page, revalidateConfig) : void 0;
|
|
109
|
-
return ttl === void 0 ? { pattern: page.pattern } : {
|
|
110
|
-
pattern: page.pattern,
|
|
111
|
-
revalidate: ttl
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
export { resolveDistDir as a, collectFiles as i, collectRevalidate as n, resolveWorkerDirName as o, hasRevalidate as r, collectPages as t };
|
package/dist/login-DECm3e9b.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as selectPlatformLoginMethod } from "./login-CWFr-G2I.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runMigrateCommand } from "./migrate-BNZL1hee.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { s as runOperatorCommand } from "./operator-cmd-a7yOf2tH.mjs";
|
package/dist/output-D7K9TWIA.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as parsePlatformArgs } from "./platform-args-CvZSuhYS.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as prepareProject } from "./prepare-co1o1FFd.mjs";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const VOID_SOCIAL_AUTH_PROVIDERS: readonly ["apple", "atlassian", "cognito", "discord", "dropbox", "facebook", "figma", "github", "gitlab", "google", "huggingface", "kakao", "kick", "line", "linear", "linkedin", "microsoft", "naver", "notion", "paybin", "paypal", "polar", "railway", "reddit", "roblox", "salesforce", "slack", "spotify", "tiktok", "twitch", "twitter", "vercel", "vk", "zoom"];
|
|
2
|
-
declare const VOID_EMAIL_AUTH_PROVIDER = "email";
|
|
3
|
-
declare const VOID_AUTH_PROVIDERS: readonly [typeof VOID_EMAIL_AUTH_PROVIDER, ...typeof VOID_SOCIAL_AUTH_PROVIDERS];
|
|
4
|
-
type VoidAuthProvider = (typeof VOID_AUTH_PROVIDERS)[number];
|
|
5
|
-
export { VoidAuthProvider as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as inferDefaultSlug } from "./resolve-project-8WZ3iVmr.mjs";
|