void 1.12.2 → 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-CdJQba_Q.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-D9MWA_dj.mjs → auth-link-I4omV0pL.mjs} +6 -6
- package/dist/{auth-router-FskgTU3B.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-DaLrQfPS.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-WG4TcR_d.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-BSuWV1PI.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-DtJeunLF.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-DoDqRH6i.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-B2VZ2Hut.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-jUBgfvzk.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-wML5HNfS.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-Bv3oQ2gE.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
- package/dist/{platform-auth-protection-OqzfhXwx.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
- package/dist/{platform-auth-recovery-rmIYjXST.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
- package/dist/{platform-cmd-D_4z2Ijv.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
- package/dist/{platform-cmd-B3rO4RhU.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
- package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
- package/dist/{platform-domain-CUq9odbd.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
- package/dist/{platform-lifecycle-DOSYo0UI.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
- package/dist/{platform-lifecycle-DuoVruij.mjs → platform-lifecycle-CKwOg8wz.mjs} +164 -72
- package/dist/{platform-management-D_gt3qLb.mjs → platform-management-CaSdFthX.mjs} +1 -1
- package/dist/{platform-management-MmO9IubR.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-P_FVslfd.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 +10 -10
- 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-GT4CW5fs.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-BbSQTZ6d.mjs +0 -1
- package/dist/migrate-C9aoWLvY.mjs +0 -1
- package/dist/operator-cmd-jnjzuJKX.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
|
@@ -1,371 +1,32 @@
|
|
|
1
|
-
import { a as join,
|
|
2
|
-
import {
|
|
3
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
4
|
-
import { t as discoverSchema } from "./discover-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as collectMigrations } from "./collect-rNLybAnF.mjs";
|
|
8
|
-
import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers-DqBsjDxg.mjs";
|
|
1
|
+
import { a as join, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { p as needsApplicationDatabase } from "./plugin-inference-D5MjBVMB.mjs";
|
|
3
|
+
import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
|
|
4
|
+
import { t as discoverSchema } from "./discover-BeFs7OPS.mjs";
|
|
5
|
+
import { n as collectMigrations } from "./collect-KC4cizWM.mjs";
|
|
6
|
+
import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers-DPI4MDGC.mjs";
|
|
9
7
|
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { E as resolveLiveBindingConfig, O as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, v as readExistingLiveBindingConfig } from "./wrangler-DVe5KV5G.mjs";
|
|
8
|
+
import { i as LIVE_MIGRATION_TAG } from "./wrangler-AyMfdVJK.mjs";
|
|
12
9
|
import { n as buildMigrationPlanBundle } from "./plan-BOD70XGS.mjs";
|
|
13
|
-
import { l as getTokenSource } from "./auth-
|
|
14
|
-
import { i as
|
|
15
|
-
import {
|
|
16
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { a as createSpinner, b as sanitizeTerminalText, c as formatCount, g as note, h as import_picocolors, p as getErrorMessage, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
22
|
-
import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-8FdN6D2i.mjs";
|
|
23
|
-
import { o as detectPreset, s as formatProjectCommand, u as resolveProjectCommand } from "./cloudflare-process-60r4Z2Zf.mjs";
|
|
24
|
-
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-D-v5_CWL.mjs";
|
|
25
|
-
import { a as needsWrapper, i as generateWrapper } from "./wrapper-CcMYpOS8.mjs";
|
|
10
|
+
import { l as getTokenSource } from "./auth-CeBmolb-.mjs";
|
|
11
|
+
import { i as collectPages, s as collectFiles } from "./platform-C3Q44RJ8.mjs";
|
|
12
|
+
import { n as buildEnv } from "./untrusted-env-4oW0TdBP.mjs";
|
|
13
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-C_UjzkVS.mjs";
|
|
14
|
+
import { r as listDrizzleArtifacts } from "./validate-B1PsQ_mt.mjs";
|
|
15
|
+
import { a as createSpinner, c as formatCount, g as note, p as getErrorMessage } from "./output-DhJgS6Ve.mjs";
|
|
16
|
+
import { c as parsePlatformErrorBody, i as isCliOutdatedError, l as platformErrorMessage, n as PlatformApiError, o as isHeadersTimeoutError } from "./client-BEHI4UWn.mjs";
|
|
17
|
+
import { h as log, i as DeployEventError, r as printDeploySuccess, t as formatDeploySummary } from "./deploy-summary-Dkl0zvQy.mjs";
|
|
26
18
|
import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
27
19
|
import { o as uploadAssetsToR2 } from "./direct-r2-upload-DFXLWfXV.mjs";
|
|
28
|
-
import { n as printDeploySecurityNotice } from "./deploy-security-notice-
|
|
29
|
-
import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-
|
|
20
|
+
import { n as printDeploySecurityNotice } from "./deploy-security-notice-3jX71IeP.mjs";
|
|
21
|
+
import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-4ISWxx8n.mjs";
|
|
30
22
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync } from "node:fs";
|
|
31
|
-
import { createDeployArtifact, createDeployUploadPayload } from "@void/deploy-core";
|
|
23
|
+
import { BROWSER_MANIFEST_VERSION, DURABLE_OBJECTS_MANIFEST_VERSION, STORAGE_MANIFEST_VERSION, WORKFLOWS_MANIFEST_VERSION, createDeployArtifact, createDeployUploadPayload, isRecord } from "@void/deploy-core";
|
|
32
24
|
import { createHash } from "node:crypto";
|
|
33
25
|
import { execSync, spawnSync } from "node:child_process";
|
|
34
26
|
import { getContentType } from "@void/edge";
|
|
35
27
|
import ignore from "ignore";
|
|
36
28
|
import { SECURITY_LOCKFILE_NAMES, SECURITY_PACKAGE_CLAIMS_MAX, packageNameOfPath, parseSecurityLockfile, securityPackageClaims } from "@void/platform/security-lockfile";
|
|
37
29
|
import { hash } from "blake3-jit";
|
|
38
|
-
// src/cli/deploy-helpers.ts
|
|
39
|
-
const log = {
|
|
40
|
-
error: (message) => log$1.error(formatCloudflareUserMessage(message)),
|
|
41
|
-
info: (message) => log$1.info(formatCloudflareUserMessage(message)),
|
|
42
|
-
message: (message) => log$1.message(formatCloudflareUserMessage(message)),
|
|
43
|
-
step: (message) => log$1.step(formatCloudflareUserMessage(message)),
|
|
44
|
-
warn: (message) => log$1.warn(formatCloudflareUserMessage(message))
|
|
45
|
-
};
|
|
46
|
-
var DeployEventError = class extends Error {};
|
|
47
|
-
async function generateDeployWrapperIfNeeded(root, workerDir, workerMain, features) {
|
|
48
|
-
if (!needsWrapper(features)) return false;
|
|
49
|
-
await generateWrapper(workerDir, workerMain, root, features);
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
const EMPTY_BINDINGS = {
|
|
53
|
-
needsD1: false,
|
|
54
|
-
needsKV: false,
|
|
55
|
-
needsR2: false,
|
|
56
|
-
needsAuth: false,
|
|
57
|
-
needsQueues: false,
|
|
58
|
-
needsAI: false,
|
|
59
|
-
needsSandbox: false
|
|
60
|
-
};
|
|
61
|
-
function readLiveBindingConfigFromDeployment(deployment) {
|
|
62
|
-
if (!deployment?.manifest) return;
|
|
63
|
-
let manifest;
|
|
64
|
-
try {
|
|
65
|
-
manifest = JSON.parse(deployment.manifest);
|
|
66
|
-
} catch {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (typeof manifest.live?.bindingName !== "string" || typeof manifest.live.className !== "string") return;
|
|
70
|
-
return {
|
|
71
|
-
bindingName: manifest.live.bindingName,
|
|
72
|
-
className: manifest.live.className
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
async function ensurePreviouslyDeployedLiveBindingConfig(root, client, projectId, cliLog) {
|
|
76
|
-
if (readExistingLiveBindingConfig(root)) return false;
|
|
77
|
-
const { deployments, activeDeploymentId } = await client.listDeployments(projectId);
|
|
78
|
-
const live = readLiveBindingConfigFromDeployment(deployments.find((deployment) => deployment.id === activeDeploymentId));
|
|
79
|
-
if (!live) return false;
|
|
80
|
-
const synced = syncWranglerBindings(root, {
|
|
81
|
-
...EMPTY_BINDINGS,
|
|
82
|
-
needsLive: true
|
|
83
|
-
}, { live });
|
|
84
|
-
if (synced) cliLog?.info("live_binding_restored", {
|
|
85
|
-
bindingName: live.bindingName,
|
|
86
|
-
className: live.className
|
|
87
|
-
});
|
|
88
|
-
return synced;
|
|
89
|
-
}
|
|
90
|
-
async function resolveDeployLiveBindingConfig(root, client, projectId, opts) {
|
|
91
|
-
if (opts.isFrameworkMode || !opts.needsLive) return;
|
|
92
|
-
await ensurePreviouslyDeployedLiveBindingConfig(root, client, projectId, opts.cliLog);
|
|
93
|
-
return resolveLiveBindingConfig(root, {
|
|
94
|
-
reservedBindings: opts.webSockets.map((route) => route.bindingName),
|
|
95
|
-
reservedClasses: [...opts.webSockets.map((route) => route.className), opts.sandboxClassName]
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
function getExitCode(error) {
|
|
99
|
-
if (typeof error === "object" && error !== null && "status" in error && typeof error.status === "number") return error.status;
|
|
100
|
-
return 1;
|
|
101
|
-
}
|
|
102
|
-
function resolveDeployWranglerCompat(root, config, buildOutputDir, requirements) {
|
|
103
|
-
if (isNodeTarget(config.target)) return;
|
|
104
|
-
const compat = ensureWranglerCompat(root, config, buildOutputDir);
|
|
105
|
-
const compatibilityFlags = normalizeWranglerCompatibilityFlags(compat.compatibilityFlags, { needsNodejsCompat: requirements?.authEnabled === true || requirements?.dialect !== void 0 && requirements.dialect !== "sqlite" || requirements?.needsSandbox === true });
|
|
106
|
-
return compatibilityFlags === compat.compatibilityFlags ? compat : {
|
|
107
|
-
...compat,
|
|
108
|
-
compatibilityFlags
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function resolveDeployWorkerMain(config, buildOutputDir) {
|
|
112
|
-
if (isNodeTarget(config.target)) return;
|
|
113
|
-
try {
|
|
114
|
-
const wrangler = JSON.parse(readFileSync(join(buildOutputDir, "wrangler.json"), "utf8"));
|
|
115
|
-
return typeof wrangler.main === "string" && wrangler.main.length > 0 ? wrangler.main : void 0;
|
|
116
|
-
} catch {
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function assertWorkerMainUploaded(workerFiles, workerMain) {
|
|
121
|
-
if (!workerMain || workerFiles.size === 0) return;
|
|
122
|
-
if (!workerFiles.has(workerMain)) throw new Error(`deploy: Worker entry '${workerMain}' from wrangler.json was not found in uploaded worker modules.`);
|
|
123
|
-
}
|
|
124
|
-
function assertProjectDeployAccess(project) {
|
|
125
|
-
if (project?.role === "reader") throw new Error(`deploy: You have reader access to "${project.slug}" and cannot deploy. Ask a project admin or owner to grant collaborator access, or choose another project with \`--project <slug>\`.`);
|
|
126
|
-
}
|
|
127
|
-
async function promptDeployProjectConfig(root, client, cliLog) {
|
|
128
|
-
const projects = await client.listProjectChoices();
|
|
129
|
-
const link = shouldLinkDeployProject(root, client.apiUrl);
|
|
130
|
-
const deployableProjects = projects.filter((project) => project.role !== "reader");
|
|
131
|
-
if (deployableProjects.length !== projects.length) log.warn("Projects with reader access are hidden from deploy selection. Ask a project admin or owner to grant collaborator access to deploy to them.");
|
|
132
|
-
if (await promptProjectSetupAction("Set up a Void project for deploy:", {
|
|
133
|
-
includeLink: deployableProjects.length > 0,
|
|
134
|
-
...link ? {} : { link: false }
|
|
135
|
-
}) === "create") return promptAndCreateProject(root, client, { link });
|
|
136
|
-
const result = await promptProjectSelection(deployableProjects, "Select a project to deploy to:", root, {
|
|
137
|
-
confirmExisting: true,
|
|
138
|
-
includeCreate: false,
|
|
139
|
-
...link ? {} : { link: false }
|
|
140
|
-
});
|
|
141
|
-
if (result.action === "create") throw new Error("Unexpected project selection result.");
|
|
142
|
-
const config = {
|
|
143
|
-
projectId: result.project.id,
|
|
144
|
-
slug: result.project.slug
|
|
145
|
-
};
|
|
146
|
-
if (link) {
|
|
147
|
-
writeProjectConfig(root, attachSelectedPlatform(config, client.apiUrl));
|
|
148
|
-
log.step(`Linked to ${import_picocolors.default.blue(config.slug)}`);
|
|
149
|
-
cliLog?.info("project_linked", {
|
|
150
|
-
projectId: config.projectId,
|
|
151
|
-
slug: config.slug
|
|
152
|
-
});
|
|
153
|
-
} else log.step(`Using ${import_picocolors.default.blue(config.slug)} for this deployment. Saved destination unchanged.`);
|
|
154
|
-
return config;
|
|
155
|
-
}
|
|
156
|
-
function resolveStaticBuildCommand(preset, buildOverride, hasExplicitDir = false) {
|
|
157
|
-
if (hasExplicitDir) return null;
|
|
158
|
-
return buildOverride ?? preset.buildCommand;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Resolve the build command for a FULL (Class A / Void app) deploy.
|
|
162
|
-
*
|
|
163
|
-
* `inference.build` wins when set, matching `runFrameworkDeploy` and the static
|
|
164
|
-
* path's `resolveStaticBuildCommand`, so an app that needs more than one build
|
|
165
|
-
* step (an SSG that emits the site, then Void's build packaging it via
|
|
166
|
-
* `publicDir` alongside the worker) can express it.
|
|
167
|
-
*
|
|
168
|
-
* The two returned strings are deliberately different for the FALLBACK: `label`
|
|
169
|
-
* goes to the user (`formatProjectCommand` rewrites `vite` → `vp` without
|
|
170
|
-
* expanding an absolute bin path), `command` is what actually runs
|
|
171
|
-
* (`resolveProjectCommand` expands to the local bin). A configured command is
|
|
172
|
-
* the user's own text and is used verbatim for both, so what is printed is
|
|
173
|
-
* exactly what is executed.
|
|
174
|
-
*/
|
|
175
|
-
function resolveFullDeployBuildCommand(root, buildOverride, fallbackBuildCommand = "vite build") {
|
|
176
|
-
if (buildOverride) return {
|
|
177
|
-
label: buildOverride,
|
|
178
|
-
command: buildOverride
|
|
179
|
-
};
|
|
180
|
-
return {
|
|
181
|
-
label: formatProjectCommand(root, fallbackBuildCommand),
|
|
182
|
-
command: resolveProjectCommand(root, fallbackBuildCommand)
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Whether the built worker's `__voidCollectPrerenderPaths` can return anything
|
|
187
|
-
* at all. When it cannot, booting it is pure cost and the deploy skips it.
|
|
188
|
-
*
|
|
189
|
-
* These three are exactly — and only — the sources `compilePrerenderCollector`
|
|
190
|
-
* (`router/compile.ts`) emits a `paths.push(...)` for:
|
|
191
|
-
* 1. `scan.pages.pages` — static patterns + dynamic pages' `getPrerenderPaths()`
|
|
192
|
-
* 2. the custom SSR entry's top-level `getPrerenderPaths()` (`ssr` argument)
|
|
193
|
-
* 3. `options.explicitPrerenderPaths` — void.config.ts `routing.prerender`
|
|
194
|
-
* With none of them present the collector is a generated function whose body
|
|
195
|
-
* returns `[...new Set([])]`, so skipping is result-identical.
|
|
196
|
-
*
|
|
197
|
-
* Skipping matters beyond speed. `collectPrerenderPaths` boots the worker in
|
|
198
|
-
* Miniflare without remote production secrets, and the generated fetch handler
|
|
199
|
-
* validates `env.ts` at boot. An app with nothing to prerender should not fail
|
|
200
|
-
* merely because that unnecessary worker boot cannot access the remote store.
|
|
201
|
-
*/
|
|
202
|
-
function hasPrerenderSources(inputs) {
|
|
203
|
-
return inputs.hasPages || inputs.hasSsrEntry || (inputs.explicitPrerenderPaths?.length ?? 0) > 0;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Whether the project needs a worker for something other than its pages.
|
|
207
|
-
*
|
|
208
|
-
* An `output: "static"` project whose pages all prerender takes the static-site
|
|
209
|
-
* path, which uploads assets and NO worker script. Every worker surface that is
|
|
210
|
-
* not a page has to be listed here, because a missing one is not a failed
|
|
211
|
-
* deploy — it is a successful deploy with that feature silently absent.
|
|
212
|
-
*
|
|
213
|
-
* `email` belongs here for the same reason `hasRoutes` does: an `email/`
|
|
214
|
-
* handler compiles to the worker's `email()` export (`router/compile.ts`), and
|
|
215
|
-
* the platform dispatches inbound mail through that export. With no worker, the
|
|
216
|
-
* mail bounces at the proxy with `project has no email handler`.
|
|
217
|
-
*
|
|
218
|
-
* Schedules and queues are deliberately NOT folded in. They are checked at the
|
|
219
|
-
* call site against their own resolved lists, not against a scan flag.
|
|
220
|
-
*/
|
|
221
|
-
function hasNonPageBackend(inputs) {
|
|
222
|
-
return inputs.hasRoutes || inputs.hasMiddleware || inputs.hasWebSockets || inputs.hasEmail || inputs.authEnabled || inputs.hasLive;
|
|
223
|
-
}
|
|
224
|
-
function resolveStaticDeployPreset(root, voidConfig, options) {
|
|
225
|
-
if (options?.dir) return detectPreset(root, {
|
|
226
|
-
dir: options.dir,
|
|
227
|
-
spa: options.spa
|
|
228
|
-
});
|
|
229
|
-
const appType = voidConfig.inference?.appType;
|
|
230
|
-
if (appType === "static" || appType === "spa") {
|
|
231
|
-
const outputDir = voidConfig.inference?.outputDir;
|
|
232
|
-
const preset = {
|
|
233
|
-
buildCommand: null,
|
|
234
|
-
outputDir: outputDir ? resolve(root, outputDir) : join(root, "dist"),
|
|
235
|
-
appType
|
|
236
|
-
};
|
|
237
|
-
const detectedPreset = detectPreset(root, { spa: options?.spa });
|
|
238
|
-
if (detectedPreset) {
|
|
239
|
-
preset.buildCommand = detectedPreset.buildCommand;
|
|
240
|
-
if (!outputDir) preset.outputDir = detectedPreset.outputDir;
|
|
241
|
-
}
|
|
242
|
-
return preset;
|
|
243
|
-
}
|
|
244
|
-
return null;
|
|
245
|
-
}
|
|
246
|
-
async function createProjectFromSlug(root, client, slug, cliLog) {
|
|
247
|
-
log.step(`Creating project ${import_picocolors.default.blue(slug)}...`);
|
|
248
|
-
cliLog?.info("project_create_start", { slug });
|
|
249
|
-
const project = await client.createProject(slug);
|
|
250
|
-
const config = {
|
|
251
|
-
projectId: project.id,
|
|
252
|
-
slug: project.slug
|
|
253
|
-
};
|
|
254
|
-
if (shouldLinkDeployProject(root, client.apiUrl)) writeProjectConfig(root, attachSelectedPlatform(config, client.apiUrl));
|
|
255
|
-
log.step(`Project created: ${import_picocolors.default.blue(config.slug)}`);
|
|
256
|
-
reportProjectCreationWarnings(project);
|
|
257
|
-
cliLog?.info("project_create_success", {
|
|
258
|
-
projectId: config.projectId,
|
|
259
|
-
slug: config.slug
|
|
260
|
-
});
|
|
261
|
-
return config;
|
|
262
|
-
}
|
|
263
|
-
function getGitCommit(root) {
|
|
264
|
-
try {
|
|
265
|
-
const githubSha = process.env.GITHUB_SHA?.trim();
|
|
266
|
-
if (githubSha && /^[0-9a-f]{7,64}$/i.test(githubSha)) return githubSha;
|
|
267
|
-
const gitEnv = buildEnv();
|
|
268
|
-
execSync("git rev-parse --is-inside-work-tree", {
|
|
269
|
-
cwd: root,
|
|
270
|
-
stdio: "ignore",
|
|
271
|
-
env: gitEnv
|
|
272
|
-
});
|
|
273
|
-
if (execSync("git status --porcelain", {
|
|
274
|
-
cwd: root,
|
|
275
|
-
encoding: "utf8",
|
|
276
|
-
env: gitEnv
|
|
277
|
-
}).trim() !== "") return null;
|
|
278
|
-
return execSync("git rev-parse HEAD", {
|
|
279
|
-
cwd: root,
|
|
280
|
-
encoding: "utf8",
|
|
281
|
-
env: gitEnv
|
|
282
|
-
}).trim();
|
|
283
|
-
} catch {
|
|
284
|
-
return null;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Check journal coherence and validate the checked-in migrations of a managed
|
|
289
|
-
* deploy. Logs and exits on failure; returns `undefined` when there are none.
|
|
290
|
-
*/
|
|
291
|
-
function validateDeployMigrations(migrationsDir, rawMigrations, sourceRelative) {
|
|
292
|
-
try {
|
|
293
|
-
assertJournalCoherence(migrationsDir, rawMigrations, sourceRelative);
|
|
294
|
-
} catch (err) {
|
|
295
|
-
log.error(getErrorMessage(err));
|
|
296
|
-
process.exit(1);
|
|
297
|
-
}
|
|
298
|
-
if (rawMigrations.length === 0) return;
|
|
299
|
-
try {
|
|
300
|
-
const validated = validateMigrations(rawMigrations);
|
|
301
|
-
log.info(`Found ${formatCount(validated.length, "migration")}`);
|
|
302
|
-
return validated;
|
|
303
|
-
} catch (err) {
|
|
304
|
-
log.error(getErrorMessage(err));
|
|
305
|
-
process.exit(1);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Ensure a managed external SQL project has Hyperdrive, prompting for the
|
|
310
|
-
* connection string when it is missing.
|
|
311
|
-
*/
|
|
312
|
-
async function ensureManagedHyperdrive(client, projectId, dialect) {
|
|
313
|
-
let resources = null;
|
|
314
|
-
try {
|
|
315
|
-
resources = await client.getResources(projectId);
|
|
316
|
-
} catch {}
|
|
317
|
-
if (!resources || resources.some((resource) => resource.type === "hyperdrive")) return;
|
|
318
|
-
const connectionString = await text({
|
|
319
|
-
message: `Your project uses ${dialect === "mysql" ? "MySQL" : "PostgreSQL"}. Enter your connection string:`,
|
|
320
|
-
placeholder: dialect === "mysql" ? "mysql://user:pass@host:3306/dbname" : "postgresql://user:pass@host:5432/dbname",
|
|
321
|
-
validate(value) {
|
|
322
|
-
if (!(dialect === "mysql" ? value?.startsWith("mysql://") : value?.startsWith("postgres://") || value?.startsWith("postgresql://"))) return dialect === "mysql" ? "Must start with \"mysql://\"" : "Must start with \"postgres://\" or \"postgresql://\"";
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
if (isCancel(connectionString)) {
|
|
326
|
-
log.info("Deploy cancelled.");
|
|
327
|
-
process.exit(0);
|
|
328
|
-
}
|
|
329
|
-
await client.provisionDatabase(projectId, connectionString);
|
|
330
|
-
log.step("Hyperdrive provisioned.");
|
|
331
|
-
}
|
|
332
|
-
/** Convert scanned cron jobs and queues into deploy-manifest entries. */
|
|
333
|
-
function toManifestSchedulesAndQueues(jobs, queues) {
|
|
334
|
-
return {
|
|
335
|
-
schedules: jobs.flatMap((job) => job.crons.map((cron) => ({
|
|
336
|
-
name: job.name,
|
|
337
|
-
cron
|
|
338
|
-
}))),
|
|
339
|
-
queues: queues.map((q) => ({
|
|
340
|
-
name: q.name,
|
|
341
|
-
bindingName: q.bindingName,
|
|
342
|
-
...q.maxBatchSize !== null && q.maxBatchSize !== void 0 && { maxBatchSize: q.maxBatchSize },
|
|
343
|
-
...q.maxBatchTimeout !== null && q.maxBatchTimeout !== void 0 && { maxBatchTimeout: q.maxBatchTimeout },
|
|
344
|
-
...q.maxConcurrency !== null && q.maxConcurrency !== void 0 && { maxConcurrency: q.maxConcurrency },
|
|
345
|
-
...q.maxRetries !== null && q.maxRetries !== void 0 && { maxRetries: q.maxRetries },
|
|
346
|
-
...q.retryDelay !== null && q.retryDelay !== void 0 && { retryDelay: q.retryDelay }
|
|
347
|
-
}))
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* If the project has an `env.ts`, validate its schema against the union of
|
|
352
|
-
* build-shell public values and remote secret names. Hard-error before upload so
|
|
353
|
-
* deploys never ship missing required env vars.
|
|
354
|
-
*/
|
|
355
|
-
async function assertEnvSchemaValid(root, client, projectId, workerVars) {
|
|
356
|
-
if (findEnvFile(root) === null) return;
|
|
357
|
-
const remoteSecrets = await fetchRemoteSecretNames(client, projectId);
|
|
358
|
-
const { hasSchema, report } = await validateProdEnv(root, {
|
|
359
|
-
productionOnly: true,
|
|
360
|
-
remoteSecrets,
|
|
361
|
-
workerVars
|
|
362
|
-
});
|
|
363
|
-
if (!hasSchema || report.valid) return;
|
|
364
|
-
const formatted = formatEnvReport(report);
|
|
365
|
-
log.error(`Env validation failed:\n${formatted}`);
|
|
366
|
-
if (report.missing.length > 0) log.info("Upload missing server values with `void secret put <NAME>`; set VITE_* values in the build shell or schema defaults.");
|
|
367
|
-
throw new DeployEventError("deploy: Aborting because env.ts schema is not satisfied.");
|
|
368
|
-
}
|
|
369
30
|
// src/cli/deploy-drift.ts
|
|
370
31
|
const deployDriftCheckDir = join(".void", "deploy-drift-check");
|
|
371
32
|
/** Top-level entries never copied into the isolated drift-check project. */
|
|
@@ -992,36 +653,6 @@ function warnIgnoredNotFoundForFramework(notFound, frameworkName) {
|
|
|
992
653
|
if (notFound === void 0) return;
|
|
993
654
|
log.warn(`"routing.notFound" in void.config.ts is ignored for ${frameworkName} deploys (not_found_handling is pinned to "none" — the framework's own worker owns unmatched HTML).`);
|
|
994
655
|
}
|
|
995
|
-
// src/cli/deploy-summary.ts
|
|
996
|
-
function printDeployContext(project, destination) {
|
|
997
|
-
intro(`${import_picocolors.default.dim(sanitizeTerminalText(project))} ${import_picocolors.default.dim("→")} ${import_picocolors.default.blue(sanitizeTerminalText(destination))}`);
|
|
998
|
-
}
|
|
999
|
-
function printDeploySuccess(published = true) {
|
|
1000
|
-
if (published) printSuccess("Successfully deployed!");
|
|
1001
|
-
}
|
|
1002
|
-
/** Only include counts confirmed by the deployment target. */
|
|
1003
|
-
function formatDeploySummary(details) {
|
|
1004
|
-
const lines = [];
|
|
1005
|
-
if (details.workerName) lines.push(`Worker: ${details.workerName}`);
|
|
1006
|
-
const output = [];
|
|
1007
|
-
if (details.workers !== void 0) output.push(formatCount(details.workers, "worker module"));
|
|
1008
|
-
if (details.assets !== void 0) {
|
|
1009
|
-
let assets = formatCount(details.assets, "static asset");
|
|
1010
|
-
if (details.unchangedAssets) assets += ` (${details.unchangedAssets} unchanged, ${details.assets - details.unchangedAssets} uploaded)`;
|
|
1011
|
-
output.push(assets);
|
|
1012
|
-
}
|
|
1013
|
-
if (details.typeLabel) lines.push([details.typeLabel, output.join(", ")].filter(Boolean).join(" — "));
|
|
1014
|
-
else if (output.length) lines.push(output.join(", "));
|
|
1015
|
-
if (details.migrations) lines.push(`${formatCount(details.migrations, "migration")} applied`);
|
|
1016
|
-
if (details.d1MigrationsCurrent) lines.push("D1 migrations up to date");
|
|
1017
|
-
if (details.cronJobs) lines.push(`${formatCount(details.cronJobs, "cron job")} scheduled`);
|
|
1018
|
-
if (details.queues) lines.push(`${formatCount(details.queues, "queue")} configured`);
|
|
1019
|
-
if (details.prerenderedPages) lines.push(`${formatCount(details.prerenderedPages, "page")} prerendered`);
|
|
1020
|
-
if (details.ssr) lines.push("SSR enabled");
|
|
1021
|
-
if (details.revalidate) lines.push(typeof details.revalidate === "number" ? `ISR revalidate: ${details.revalidate}s` : `ISR revalidate: ${formatCount(Object.keys(details.revalidate).length, "path rule")}`);
|
|
1022
|
-
if (details.framework) lines.push(details.framework === true ? "Framework mode" : `Framework: ${details.framework}`);
|
|
1023
|
-
return lines.join("\n");
|
|
1024
|
-
}
|
|
1025
656
|
// src/cli/package.ts
|
|
1026
657
|
const textEncoder = new TextEncoder();
|
|
1027
658
|
/**
|
|
@@ -1269,6 +900,30 @@ function applyResourceBindings(manifest, bindings, migrationCount, dialect, bind
|
|
|
1269
900
|
if (bindings.needsR2) manifest.bindings.r2 = [bindingNames?.r2 ?? "STORAGE"];
|
|
1270
901
|
if (bindings.needsAI) manifest.bindings.ai = true;
|
|
1271
902
|
}
|
|
903
|
+
/**
|
|
904
|
+
* The Browser Run binding name: `cloudflare.browser` when configured, otherwise the
|
|
905
|
+
* `inference.bindings.browser` name or `BROWSER` for an app that imports `void/image`.
|
|
906
|
+
*/
|
|
907
|
+
function resolveBrowserBinding(config, bindings) {
|
|
908
|
+
const browser = config.cloudflare?.browser;
|
|
909
|
+
if (isRecord(browser) && typeof browser.binding === "string") return browser.binding;
|
|
910
|
+
if (!bindings.needsBrowser) return;
|
|
911
|
+
const name = config.inference?.bindings?.browser;
|
|
912
|
+
return typeof name === "string" ? name : "BROWSER";
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Raise the manifest version to the one a feature needs, so platforms without
|
|
916
|
+
* the feature refuse the deployment. Never lowers it: features apply in any order.
|
|
917
|
+
*/
|
|
918
|
+
function requireManifestVersion(manifest, version) {
|
|
919
|
+
manifest.version = Math.max(manifest.version, version);
|
|
920
|
+
}
|
|
921
|
+
function applyBrowserBinding(manifest, browser) {
|
|
922
|
+
if (browser) {
|
|
923
|
+
manifest.bindings.browser = browser;
|
|
924
|
+
requireManifestVersion(manifest, BROWSER_MANIFEST_VERSION);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
1272
927
|
/** Describe bundled migrations; SQLite migrations also carry their plan bundle. */
|
|
1273
928
|
function toMigrationsManifest(migrations, dialect) {
|
|
1274
929
|
const planBundle = dialect === "sqlite" ? buildMigrationPlanBundle(migrations) : void 0;
|
|
@@ -1300,8 +955,12 @@ function buildVoidManifest(opts) {
|
|
|
1300
955
|
bindings: {}
|
|
1301
956
|
};
|
|
1302
957
|
if (opts.alwaysUseHttps !== void 0) manifest.alwaysUseHttps = opts.alwaysUseHttps;
|
|
958
|
+
if (opts.workflows?.length) {
|
|
959
|
+
requireManifestVersion(manifest, WORKFLOWS_MANIFEST_VERSION);
|
|
960
|
+
manifest.workflows = [...opts.workflows];
|
|
961
|
+
}
|
|
1303
962
|
if (opts.durableObjects?.length) {
|
|
1304
|
-
manifest
|
|
963
|
+
requireManifestVersion(manifest, DURABLE_OBJECTS_MANIFEST_VERSION);
|
|
1305
964
|
manifest.durableObjects = { bindings: opts.durableObjects.map(({ bindingName, className }) => ({
|
|
1306
965
|
bindingName,
|
|
1307
966
|
className,
|
|
@@ -1312,9 +971,10 @@ function buildVoidManifest(opts) {
|
|
|
1312
971
|
if (bindings.needsAuth) manifest.auth = true;
|
|
1313
972
|
if (opts.bindings.needsR2 && opts.storage?.locationHint) {
|
|
1314
973
|
manifest.storage = opts.storage;
|
|
1315
|
-
manifest
|
|
974
|
+
requireManifestVersion(manifest, STORAGE_MANIFEST_VERSION);
|
|
1316
975
|
}
|
|
1317
976
|
applyResourceBindings(manifest, bindings, migrations?.length ?? 0, resolvedDialect, options?.bindingNames, opts.database);
|
|
977
|
+
applyBrowserBinding(manifest, opts.browser);
|
|
1318
978
|
if (bindings.needsSandbox) {
|
|
1319
979
|
if (!options?.sandbox) throw new Error("deploy: Sandbox bindings require sandbox package options.");
|
|
1320
980
|
manifest.sandbox = toSandboxManifest({
|
|
@@ -1365,7 +1025,7 @@ function buildVoidManifest(opts) {
|
|
|
1365
1025
|
* file from disk exactly once — buffer threading downstream is the caller's
|
|
1366
1026
|
* responsibility.
|
|
1367
1027
|
*/
|
|
1368
|
-
function collectWorkerFiles(workerDir) {
|
|
1028
|
+
function collectWorkerFiles(workerDir, { excludePrecompressed = false } = {}) {
|
|
1369
1029
|
const out = /* @__PURE__ */ new Map();
|
|
1370
1030
|
let workerPaths;
|
|
1371
1031
|
try {
|
|
@@ -1376,7 +1036,7 @@ function collectWorkerFiles(workerDir) {
|
|
|
1376
1036
|
}
|
|
1377
1037
|
for (const filePath of workerPaths) {
|
|
1378
1038
|
const relativePath = relative(workerDir, filePath);
|
|
1379
|
-
if (!isWorkerModule(relativePath)) continue;
|
|
1039
|
+
if (excludePrecompressed && relativePath.startsWith(`.void-precompressed/`) || !isWorkerModule(relativePath)) continue;
|
|
1380
1040
|
out.set(relativePath, readFileSync(filePath));
|
|
1381
1041
|
}
|
|
1382
1042
|
return out;
|
|
@@ -1432,9 +1092,10 @@ function buildFrameworkManifest(opts) {
|
|
|
1432
1092
|
if (opts.alwaysUseHttps !== void 0) manifest.alwaysUseHttps = opts.alwaysUseHttps;
|
|
1433
1093
|
if (opts.bindings.needsR2 && opts.storage?.locationHint) {
|
|
1434
1094
|
manifest.storage = opts.storage;
|
|
1435
|
-
manifest
|
|
1095
|
+
requireManifestVersion(manifest, STORAGE_MANIFEST_VERSION);
|
|
1436
1096
|
}
|
|
1437
1097
|
applyResourceBindings(manifest, opts.bindings, opts.migrations?.length ?? 0, dialect, po?.bindingNames, opts.database);
|
|
1098
|
+
applyBrowserBinding(manifest, opts.browser);
|
|
1438
1099
|
if (opts.migrations && opts.migrations.length > 0) manifest.migrations = toMigrationsManifest(opts.migrations, dialect);
|
|
1439
1100
|
if (opts.schedules && opts.schedules.length > 0) manifest.schedules = opts.schedules;
|
|
1440
1101
|
if (opts.queues && opts.queues.length > 0) manifest.queues = opts.queues;
|
|
@@ -1588,4 +1249,4 @@ async function runStaticDeploy(root, config, client, preset, skipBuild, gitMetad
|
|
|
1588
1249
|
cliLog
|
|
1589
1250
|
});
|
|
1590
1251
|
}
|
|
1591
|
-
export {
|
|
1252
|
+
export { collectAndHashAssets as a, readWranglerHtmlHandling as c, streamDirectR2Deploy as d, warnIgnoredNotFoundForFramework as f, hasDeploySchemaDrift as g, getDeploySchemaDriftMessage as h, buildStaticManifest as i, resolveBrowserBinding as l, assertDeploySchemaDriftFree as m, runStaticDeploy as n, collectWorkerFiles as o, warnUnpublishedRouting as p, buildFrameworkManifest as r, detectNonSpaFallbackWarning as s, assembleVoidManifest as t, mergeAndLintRoutingRules as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
2
|
-
import { n as PlatformApiError } from "./client-
|
|
3
|
-
import { r as cleanLine } from "./output-
|
|
4
|
-
import { g as urgentCounts, i as budgetSkipCopy, n as budgetAhead, r as budgetCause } from "./project-security-
|
|
2
|
+
import { n as PlatformApiError } from "./client-BEHI4UWn.mjs";
|
|
3
|
+
import { r as cleanLine } from "./output-DhJgS6Ve.mjs";
|
|
4
|
+
import { g as urgentCounts, i as budgetSkipCopy, n as budgetAhead, r as budgetCause } from "./project-security-BWTd6cTU.mjs";
|
|
5
5
|
import { SECURITY_PROVIDER_NAMES } from "@void/platform/security-models";
|
|
6
6
|
// src/cli/deploy-security-notice.ts
|
|
7
7
|
/** The read is best-effort: it may add this long to CLI exit, never to the deploy. */
|
|
@@ -72,7 +72,9 @@ function failureWhy(scan) {
|
|
|
72
72
|
case "refused": return "refused by model";
|
|
73
73
|
case "timed_out": return "timed out";
|
|
74
74
|
case "failed": return scan.failureCause === "installation" ? "a platform problem" : cleanLine(scan.statusReason ?? "failed");
|
|
75
|
-
case "incomplete":
|
|
75
|
+
case "incomplete":
|
|
76
|
+
if (scan.statusReason === "spend_cap") return "the scan reached its spend limit";
|
|
77
|
+
return (scan.statusReason ?? "").startsWith("budget") ? "the monthly scan budget ran out" : `partial: ${cleanLine(scan.statusReason ?? "stopped early")}`;
|
|
76
78
|
default: return null;
|
|
77
79
|
}
|
|
78
80
|
}
|