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,13 +1,15 @@
|
|
|
1
|
-
import { L as log } from "./dist-
|
|
1
|
+
import { L as log } from "./dist-BngS28id.mjs";
|
|
2
2
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
3
3
|
import { n as getOwnVersion } from "./agents-64FnLwxP.mjs";
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { i as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { t as parseDeployArgs } from "./args-DrnTI35r.mjs";
|
|
5
|
+
import { n as logCloudflareUserError, t as formatCloudflareUserMessage } from "./cloudflare-user-output-DFbD0l4l.mjs";
|
|
6
|
+
import { n as parseDbArgs, t as dbSubcommands } from "./db-args-BcvTZ8KE.mjs";
|
|
7
|
+
import { i as printVoidHeader, n as printGlobalHelp, r as printHelpPage, t as getHelpPath } from "./help-Bgiu5PMX.mjs";
|
|
8
|
+
import { t as PromptInputClosedError } from "./interactive-prompts-EK0dilFu.mjs";
|
|
9
|
+
import { i as parseSecurityArgs, n as operatorGroups } from "./operator-args-DWvqq3Ws.mjs";
|
|
10
|
+
import { r as OperatorClientError } from "./operator-client-BG0VIMMM.mjs";
|
|
11
|
+
import { f as formatUrl, h as import_picocolors } from "./output-DhJgS6Ve.mjs";
|
|
12
|
+
import { n as platformSubcommands, t as parsePlatformArgs } from "./platform-args-BnocJDC_.mjs";
|
|
11
13
|
import { parseArgs } from "node:util";
|
|
12
14
|
// src/cli/account-args.ts
|
|
13
15
|
const accountSubcommands = [
|
|
@@ -50,73 +52,6 @@ function parseAccountArgs(args) {
|
|
|
50
52
|
if (extra) throw new Error(`account: Unexpected argument '${extra}'.`);
|
|
51
53
|
return { subcommand };
|
|
52
54
|
}
|
|
53
|
-
// src/cli/args.ts
|
|
54
|
-
function parseDeployArgs(args) {
|
|
55
|
-
let parsed;
|
|
56
|
-
try {
|
|
57
|
-
parsed = parseArgs({
|
|
58
|
-
args,
|
|
59
|
-
options: {
|
|
60
|
-
project: { type: "string" },
|
|
61
|
-
dir: { type: "string" },
|
|
62
|
-
spa: { type: "boolean" },
|
|
63
|
-
"skip-build": { type: "boolean" },
|
|
64
|
-
"skip-migrations": { type: "boolean" },
|
|
65
|
-
debug: { type: "boolean" },
|
|
66
|
-
platform: { type: "string" },
|
|
67
|
-
provision: { type: "boolean" },
|
|
68
|
-
"require-email": { type: "boolean" },
|
|
69
|
-
atomic: { type: "boolean" }
|
|
70
|
-
},
|
|
71
|
-
allowPositionals: true,
|
|
72
|
-
strict: true,
|
|
73
|
-
tokens: true
|
|
74
|
-
});
|
|
75
|
-
} catch (error) {
|
|
76
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
77
|
-
if (message.includes("argument missing") || message.includes("argument is ambiguous")) {
|
|
78
|
-
if (message.match(/Option '(--[a-z-]+)/)?.[1] === "--platform") throw new Error("deploy: --platform requires a value ('cloudflare' or 'void').", { cause: error });
|
|
79
|
-
throw new Error("deploy: --project requires a slug.", { cause: error });
|
|
80
|
-
}
|
|
81
|
-
const unknownOptionMatch = message.match(/Unknown option '([^']+)'/);
|
|
82
|
-
if (unknownOptionMatch) throw new Error(`deploy: Unknown option '${unknownOptionMatch[1]}'.`, { cause: error });
|
|
83
|
-
throw new Error(`deploy: ${message}.`, { cause: error });
|
|
84
|
-
}
|
|
85
|
-
const tokens = parsed.tokens ?? [];
|
|
86
|
-
if (tokens.filter((token) => token.kind === "option" && token.name === "project").length > 1) throw new Error("deploy: --project can only be specified once.");
|
|
87
|
-
if (tokens.filter((token) => token.kind === "option" && token.name === "platform").length > 1) throw new Error("deploy: --platform can only be specified once.");
|
|
88
|
-
if (parsed.positionals.length > 0) throw new Error(`deploy: Unexpected argument '${parsed.positionals[0]}'.`);
|
|
89
|
-
const projectValue = parsed.values.project;
|
|
90
|
-
const projectSlug = typeof projectValue === "string" ? projectValue : void 0;
|
|
91
|
-
if (typeof projectSlug === "string" && projectSlug.startsWith("-")) throw new Error("deploy: --project requires a slug.");
|
|
92
|
-
const dir = typeof parsed.values.dir === "string" ? parsed.values.dir : void 0;
|
|
93
|
-
const spa = parsed.values.spa === true ? true : void 0;
|
|
94
|
-
const skipBuild = parsed.values["skip-build"] === true ? true : void 0;
|
|
95
|
-
const debug = parsed.values.debug === true ? true : void 0;
|
|
96
|
-
const platformValue = typeof parsed.values.platform === "string" ? parsed.values.platform : void 0;
|
|
97
|
-
if (platformValue !== void 0 && platformValue !== "cloudflare" && platformValue !== "void") throw new Error("deploy: --platform must be 'cloudflare' or 'void'.");
|
|
98
|
-
const platform = platformValue;
|
|
99
|
-
const provision = parsed.values.provision === true ? true : void 0;
|
|
100
|
-
if (provision && platform !== "cloudflare") throw new Error("deploy: --provision requires --platform cloudflare.");
|
|
101
|
-
const requireEmail = parsed.values["require-email"] === true ? true : void 0;
|
|
102
|
-
const atomic = parsed.values.atomic === true ? true : void 0;
|
|
103
|
-
if (requireEmail && platform !== "cloudflare") throw new Error("deploy: --require-email requires --platform cloudflare.");
|
|
104
|
-
if (platform === "cloudflare") {
|
|
105
|
-
if (projectSlug !== void 0) throw new Error("deploy: --project is not supported with --platform cloudflare — this platform deploys to your own Cloudflare account and no Void project is involved.");
|
|
106
|
-
}
|
|
107
|
-
return {
|
|
108
|
-
projectSlug,
|
|
109
|
-
dir,
|
|
110
|
-
spa,
|
|
111
|
-
skipBuild,
|
|
112
|
-
skipMigrations: parsed.values["skip-migrations"] === true ? true : void 0,
|
|
113
|
-
debug,
|
|
114
|
-
platform,
|
|
115
|
-
provision,
|
|
116
|
-
requireEmail,
|
|
117
|
-
atomic
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
55
|
// src/cli/auth-args.ts
|
|
121
56
|
const authSubcommands = [
|
|
122
57
|
{
|
|
@@ -929,6 +864,11 @@ const projectSubcommands = [
|
|
|
929
864
|
description: "Roll back after a one-off deploy with --platform cloudflare"
|
|
930
865
|
}]
|
|
931
866
|
},
|
|
867
|
+
{
|
|
868
|
+
name: "preview",
|
|
869
|
+
hint: "delete <name>",
|
|
870
|
+
description: "Delete a Cloudflare Preview made by deploy --preview"
|
|
871
|
+
},
|
|
932
872
|
{
|
|
933
873
|
name: "cancel",
|
|
934
874
|
arg: "[deployId]",
|
|
@@ -1101,6 +1041,31 @@ function parseProjectArgs(args) {
|
|
|
1101
1041
|
...platform ? { platform } : {}
|
|
1102
1042
|
};
|
|
1103
1043
|
}
|
|
1044
|
+
if (subcommand === "preview") {
|
|
1045
|
+
if (rest.length === 0) return {
|
|
1046
|
+
subcommand,
|
|
1047
|
+
action: ""
|
|
1048
|
+
};
|
|
1049
|
+
const usage = "project: Usage: void project preview delete <name> [--platform cloudflare].";
|
|
1050
|
+
let platform;
|
|
1051
|
+
const positional = [];
|
|
1052
|
+
for (let i = 0; i < rest.length; i++) {
|
|
1053
|
+
const arg = rest[i];
|
|
1054
|
+
if (arg === "--platform" || arg.startsWith("--platform=")) {
|
|
1055
|
+
const value = arg === "--platform" ? rest[++i] : arg.slice(11);
|
|
1056
|
+
if (value !== "cloudflare") throw new Error(`project: \`preview --platform\` accepts only 'cloudflare', got '${value ?? ""}'.`);
|
|
1057
|
+
platform = "cloudflare";
|
|
1058
|
+
} else positional.push(arg);
|
|
1059
|
+
}
|
|
1060
|
+
const [action, name] = positional;
|
|
1061
|
+
if (positional.length !== 2 || action !== "delete" || !name || name.startsWith("-")) throw new Error(usage);
|
|
1062
|
+
return {
|
|
1063
|
+
subcommand,
|
|
1064
|
+
action,
|
|
1065
|
+
name,
|
|
1066
|
+
...platform ? { platform } : {}
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1104
1069
|
if (subcommand === "cancel") return {
|
|
1105
1070
|
subcommand,
|
|
1106
1071
|
deployId: parseOptionalPositional(rest)
|
|
@@ -1127,7 +1092,7 @@ function parseProjectArgs(args) {
|
|
|
1127
1092
|
projectSlug
|
|
1128
1093
|
};
|
|
1129
1094
|
}
|
|
1130
|
-
throw new Error("project: Usage: void project <status|link|list|team|token|zero-trust|security|logs|requests|rollback|cancel|delete|purge-cache>.");
|
|
1095
|
+
throw new Error("project: Usage: void project <status|link|list|team|token|zero-trust|security|logs|requests|rollback|preview|cancel|delete|purge-cache>.");
|
|
1131
1096
|
}
|
|
1132
1097
|
function parseOptionalPositional(rest) {
|
|
1133
1098
|
const [value, extra] = rest;
|
|
@@ -1340,7 +1305,7 @@ async function runSubcommandGroup(command, subcommands, parse, run) {
|
|
|
1340
1305
|
const hasNamedSubcommand = args.slice(1).some((arg) => subcommands.some(({ name }) => name === arg));
|
|
1341
1306
|
try {
|
|
1342
1307
|
if ((!sub || sub.startsWith("-") && !hasNamedSubcommand) && process.stdin.isTTY && !args.includes("--json")) {
|
|
1343
|
-
const { promptSubcommand } = await import("./subcommand-prompt-
|
|
1308
|
+
const { promptSubcommand } = await import("./subcommand-prompt-AFf2LcrC.mjs");
|
|
1344
1309
|
if (command === "platform" && !sub) log.info(`A Void platform lets a team deploy Void apps to a shared Cloudflare account.
|
|
1345
1310
|
This command sets up and manages platforms. Join with \`void connect <url>\`.
|
|
1346
1311
|
Docs: ${formatUrl("https://void.cloud/guide/self-hosted-platform")}`);
|
|
@@ -1349,7 +1314,7 @@ Docs: ${formatUrl("https://void.cloud/guide/self-hosted-platform")}`);
|
|
|
1349
1314
|
await run(root, parse(buildArgs(result, args.slice(1))));
|
|
1350
1315
|
} else await run(root, parse(args.slice(1)));
|
|
1351
1316
|
} catch (err) {
|
|
1352
|
-
if (command === "platform" && args.includes("--json")) {
|
|
1317
|
+
if ((command === "platform" || err instanceof PromptInputClosedError) && args.includes("--json")) {
|
|
1353
1318
|
console.error(JSON.stringify(err instanceof OperatorClientError ? err.toJSON() : {
|
|
1354
1319
|
error: "invalid_command",
|
|
1355
1320
|
message: err instanceof Error ? err.message : String(err)
|
|
@@ -1372,7 +1337,8 @@ Docs: ${formatUrl("https://void.cloud/guide/self-hosted-platform")}`);
|
|
|
1372
1337
|
if (command === "platform") {
|
|
1373
1338
|
const platformMessage = message.replace(/^platform:/, import_picocolors.default.bold(import_picocolors.default.red("platform:")));
|
|
1374
1339
|
console.error(err instanceof OperatorClientError && err.details !== void 0 ? `${platformMessage}\n${isPartialResult(err) ? "Partial result" : "Details"}:\n${JSON.stringify(err.details, null, 2)}` : platformMessage);
|
|
1375
|
-
} else
|
|
1340
|
+
} else if (err instanceof PromptInputClosedError) console.error(message);
|
|
1341
|
+
else log.error(message, args.includes("--json") ? { output: process.stderr } : void 0);
|
|
1376
1342
|
process.exit(1);
|
|
1377
1343
|
}
|
|
1378
1344
|
}
|
|
@@ -1383,27 +1349,27 @@ const args = process.argv.slice(2);
|
|
|
1383
1349
|
const command = args[0];
|
|
1384
1350
|
const helpPath = getHelpPath(args);
|
|
1385
1351
|
const subcommandGroups = {
|
|
1386
|
-
auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("./auth-router-
|
|
1387
|
-
account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("./account-cmd-
|
|
1388
|
-
platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("./platform-cmd-
|
|
1389
|
-
cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("./cloudflare-cmd-
|
|
1390
|
-
project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("./project-cmd-
|
|
1391
|
-
secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("./secret-
|
|
1392
|
-
domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("./domain-
|
|
1393
|
-
email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("./email-
|
|
1352
|
+
auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("./auth-router-CXq4q7bb.mjs").then(({ runAuthRouter }) => runAuthRouter(root, parsed))),
|
|
1353
|
+
account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("./account-cmd-4fQiXYX7.mjs").then(({ runAccountCommand }) => runAccountCommand(root, parsed))),
|
|
1354
|
+
platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("./platform-cmd-Cs2LkT5L.mjs").then(({ runPlatformCommand }) => runPlatformCommand(root, parsed))),
|
|
1355
|
+
cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("./cloudflare-cmd-DsSlXbNy.mjs").then(({ runCloudflareCommand }) => runCloudflareCommand(root, parsed))),
|
|
1356
|
+
project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("./project-cmd-BKN3qT4R.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed))),
|
|
1357
|
+
secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("./secret-Ck9N5xbU.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed))),
|
|
1358
|
+
domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("./domain-BK6NWkWK.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed))),
|
|
1359
|
+
email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("./email-BBSDV0J5.mjs").then(({ runEmailCommand }) => runEmailCommand(root, parsed))),
|
|
1394
1360
|
db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, async (root, parsed) => {
|
|
1395
1361
|
if (parsed.action === "execute" && parsed.json) {
|
|
1396
|
-
const {
|
|
1397
|
-
await
|
|
1362
|
+
const { runJsonCommandProcess } = await import("./cli/json-command-process.mjs");
|
|
1363
|
+
await runJsonCommandProcess(root, args);
|
|
1398
1364
|
} else {
|
|
1399
|
-
const { runDbCommand } = await import("./db-
|
|
1365
|
+
const { runDbCommand } = await import("./db-B3eoVDNA.mjs");
|
|
1400
1366
|
await runDbCommand(root, parsed);
|
|
1401
1367
|
}
|
|
1402
1368
|
}),
|
|
1403
|
-
env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("./env-
|
|
1404
|
-
gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("./gen-
|
|
1405
|
-
github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("./github-cmd-
|
|
1406
|
-
build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("./build-cmd-
|
|
1369
|
+
env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("./env-BVnKiGYJ.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed))),
|
|
1370
|
+
gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("./gen-DaayFP9v.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed))),
|
|
1371
|
+
github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("./github-cmd-B7U9Hjmi.mjs").then(({ runGithubCommand }) => runGithubCommand(root, parsed))),
|
|
1372
|
+
build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("./build-cmd-Biz6u4rn.mjs").then(({ runBuildCommand }) => runBuildCommand(root, parsed)))
|
|
1407
1373
|
};
|
|
1408
1374
|
if (helpPath) {
|
|
1409
1375
|
if (helpPath.length === 0) printGlobalHelp();
|
|
@@ -1419,24 +1385,29 @@ if (helpPath) {
|
|
|
1419
1385
|
try {
|
|
1420
1386
|
deployArgs = parseDeployArgs(args.slice(1));
|
|
1421
1387
|
} catch (err) {
|
|
1422
|
-
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1388
|
+
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)), args.includes("--json") ? { output: process.stderr } : void 0);
|
|
1423
1389
|
process.exit(1);
|
|
1424
1390
|
}
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1391
|
+
if (deployArgs.json) {
|
|
1392
|
+
const { runJsonCommandProcess } = await import("./cli/json-command-process.mjs");
|
|
1393
|
+
await runJsonCommandProcess(root, args);
|
|
1394
|
+
} else {
|
|
1395
|
+
const { runDeploy } = await import("./deploy-DZ9j7MC4.mjs");
|
|
1396
|
+
await runDeploy(root, deployArgs).catch((err) => {
|
|
1397
|
+
logCloudflareUserError(err instanceof Error ? err.message : String(err));
|
|
1398
|
+
process.exit(1);
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1430
1401
|
} else if (command === "connect") await (async () => {
|
|
1431
1402
|
const parsed = parseConnectArgs(args.slice(1));
|
|
1432
|
-
const { runConnectCommand } = await import("./connect-
|
|
1403
|
+
const { runConnectCommand } = await import("./connect-Bqq3b9sX.mjs");
|
|
1433
1404
|
await runConnectCommand(process.cwd(), parsed);
|
|
1434
1405
|
})().catch((err) => {
|
|
1435
1406
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1436
1407
|
process.exit(1);
|
|
1437
1408
|
});
|
|
1438
1409
|
else if (command && hasOwnKey(subcommandGroups, command)) subcommandGroups[command]();
|
|
1439
|
-
else if (command === "info") await import("./info-
|
|
1410
|
+
else if (command === "info") await import("./info-7COlpAfY.mjs").then(async ({ runInfoCommand }) => {
|
|
1440
1411
|
try {
|
|
1441
1412
|
await runInfoCommand(process.cwd(), parseInfoArgs(args.slice(1)));
|
|
1442
1413
|
} catch (err) {
|
|
@@ -1457,14 +1428,14 @@ else if (command === "prepare") {
|
|
|
1457
1428
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1458
1429
|
process.exit(1);
|
|
1459
1430
|
}
|
|
1460
|
-
const { runPrepareCommand } = await import("./prepare-
|
|
1431
|
+
const { runPrepareCommand } = await import("./prepare-DZEs5AGr.mjs");
|
|
1461
1432
|
await runPrepareCommand(root).catch((err) => {
|
|
1462
1433
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1463
1434
|
process.exit(1);
|
|
1464
1435
|
});
|
|
1465
1436
|
} else if (command === "init") {
|
|
1466
1437
|
const root = process.cwd();
|
|
1467
|
-
await import("./init-
|
|
1438
|
+
await import("./init-DftAx3L4.mjs").then(async ({ runInitCommand, parseInitArgs }) => {
|
|
1468
1439
|
let initArgs;
|
|
1469
1440
|
try {
|
|
1470
1441
|
initArgs = parseInitArgs(args.slice(1));
|
|
@@ -1482,7 +1453,7 @@ else if (command === "prepare") {
|
|
|
1482
1453
|
log.error("migrate: This command takes no arguments.");
|
|
1483
1454
|
process.exit(1);
|
|
1484
1455
|
}
|
|
1485
|
-
const { runMigrateCommand } = await import("./migrate-
|
|
1456
|
+
const { runMigrateCommand } = await import("./migrate-BHD46A31.mjs");
|
|
1486
1457
|
await runMigrateCommand(process.cwd()).catch((err) => {
|
|
1487
1458
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1488
1459
|
process.exit(1);
|
|
@@ -1541,7 +1512,7 @@ else if (command) {
|
|
|
1541
1512
|
},
|
|
1542
1513
|
{
|
|
1543
1514
|
name: "project",
|
|
1544
|
-
hint: "status | link | list | team | token | zero-trust | security | logs | requests | rollback | cancel | delete | purge-cache",
|
|
1515
|
+
hint: "status | link | list | team | token | zero-trust | security | logs | requests | rollback | preview | cancel | delete | purge-cache",
|
|
1545
1516
|
description: "Manage projects, teams, deployments, and scoped CI credentials"
|
|
1546
1517
|
},
|
|
1547
1518
|
{
|
|
@@ -1595,7 +1566,7 @@ else if (command) {
|
|
|
1595
1566
|
];
|
|
1596
1567
|
await (async () => {
|
|
1597
1568
|
printVoidHeader();
|
|
1598
|
-
const { promptSubcommand } = await import("./subcommand-prompt-
|
|
1569
|
+
const { promptSubcommand } = await import("./subcommand-prompt-AFf2LcrC.mjs");
|
|
1599
1570
|
const result = await promptSubcommand("", topLevelCommands);
|
|
1600
1571
|
if (!result) process.exit(0);
|
|
1601
1572
|
const cmd = result.subcommand;
|
|
@@ -1603,32 +1574,32 @@ else if (command) {
|
|
|
1603
1574
|
if (hasOwnKey(subcommandGroups, cmd)) return subcommandGroups[cmd]();
|
|
1604
1575
|
switch (cmd) {
|
|
1605
1576
|
case "connect": {
|
|
1606
|
-
const { runConnectCommand } = await import("./connect-
|
|
1577
|
+
const { runConnectCommand } = await import("./connect-Bqq3b9sX.mjs");
|
|
1607
1578
|
await runConnectCommand(root, parseConnectArgs([]));
|
|
1608
1579
|
return;
|
|
1609
1580
|
}
|
|
1610
1581
|
case "init": {
|
|
1611
|
-
const { runInitCommand, parseInitArgs } = await import("./init-
|
|
1582
|
+
const { runInitCommand, parseInitArgs } = await import("./init-DftAx3L4.mjs");
|
|
1612
1583
|
await runInitCommand(root, parseInitArgs([]));
|
|
1613
1584
|
return;
|
|
1614
1585
|
}
|
|
1615
1586
|
case "migrate": {
|
|
1616
|
-
const { runMigrateCommand } = await import("./migrate-
|
|
1587
|
+
const { runMigrateCommand } = await import("./migrate-BHD46A31.mjs");
|
|
1617
1588
|
await runMigrateCommand(root);
|
|
1618
1589
|
return;
|
|
1619
1590
|
}
|
|
1620
1591
|
case "deploy": {
|
|
1621
|
-
const { runDeploy } = await import("./deploy-
|
|
1592
|
+
const { runDeploy } = await import("./deploy-DZ9j7MC4.mjs");
|
|
1622
1593
|
await runDeploy(root);
|
|
1623
1594
|
return;
|
|
1624
1595
|
}
|
|
1625
1596
|
case "info": {
|
|
1626
|
-
const { runInfoCommand } = await import("./info-
|
|
1597
|
+
const { runInfoCommand } = await import("./info-7COlpAfY.mjs");
|
|
1627
1598
|
await runInfoCommand(root, parseInfoArgs([]));
|
|
1628
1599
|
return;
|
|
1629
1600
|
}
|
|
1630
1601
|
case "prepare": {
|
|
1631
|
-
const { runPrepareCommand } = await import("./prepare-
|
|
1602
|
+
const { runPrepareCommand } = await import("./prepare-DZEs5AGr.mjs");
|
|
1632
1603
|
await runPrepareCommand(root);
|
|
1633
1604
|
return;
|
|
1634
1605
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as PlatformClient, s as isOlderPlatformVersion } from "./client-
|
|
1
|
+
export { r as PlatformClient, s as isOlderPlatformVersion } from "./client-BEHI4UWn.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
3
3
|
import { r as getPackageDir } from "./agents-64FnLwxP.mjs";
|
|
4
|
-
import { a as getApiUrl } from "./auth-
|
|
5
|
-
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-
|
|
4
|
+
import { a as getApiUrl } from "./auth-CeBmolb-.mjs";
|
|
5
|
+
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
|
|
6
6
|
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
7
|
-
import { n as readPlatformDiscoveryResponse } from "./platform-discovery-
|
|
7
|
+
import { n as readPlatformDiscoveryResponse } from "./platform-discovery-CKeeeD82.mjs";
|
|
8
8
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
9
|
-
import { c as normalizePlatformApiUrl } from "./platform-registry-
|
|
9
|
+
import { c as normalizePlatformApiUrl } from "./platform-registry-zHH3RiIm.mjs";
|
|
10
10
|
import { readFileSync } from "node:fs";
|
|
11
11
|
import { stripVTControlCharacters } from "node:util";
|
|
12
12
|
// src/cli/platform-errors.ts
|
|
@@ -95,8 +95,8 @@ function readCliVersion() {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
const VOID_CLI_VERSION = readCliVersion();
|
|
98
|
-
/** The oldest Void platform release this CLI supports
|
|
99
|
-
const MIN_PLATFORM_VERSION = "1.
|
|
98
|
+
/** The oldest Void platform release this CLI supports. */
|
|
99
|
+
const MIN_PLATFORM_VERSION = "1.13.0";
|
|
100
100
|
const RELEASE_VERSION = /^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$/;
|
|
101
101
|
/**
|
|
102
102
|
* Discovery probes keyed by platform base URL. Every outcome (pass,
|
|
@@ -128,7 +128,7 @@ function assertSupportedPlatform(apiUrl, probe) {
|
|
|
128
128
|
if (probe.kind === "unknown") return;
|
|
129
129
|
if (probe.kind === "missing") throw new Error(`The Void platform at ${apiUrl} does not report its version, but this CLI requires ${MIN_PLATFORM_VERSION} or later. ${UPGRADE_PLATFORM_ACTION}`);
|
|
130
130
|
const { version } = probe;
|
|
131
|
-
if (version === "hosted" || isOlderPlatformVersion(version, "1.
|
|
131
|
+
if (version === "hosted" || isOlderPlatformVersion(version, "1.13.0") !== true) return;
|
|
132
132
|
throw new Error(`The Void platform at ${apiUrl} runs version ${version}, but this CLI requires ${MIN_PLATFORM_VERSION} or later. ${UPGRADE_PLATFORM_ACTION}`);
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
@@ -295,6 +295,12 @@ var PlatformClient = class {
|
|
|
295
295
|
if (!response.ok && response.status !== 404) await throwPlatformApiError("Failed to check D1 read replication support", response, "deploy");
|
|
296
296
|
if ((response.ok ? await response.json() : null)?.d1ReadReplication !== true) throw new Error("deploy: This Void platform cannot apply `database.readReplication` from void.config.ts. Ask its administrator to upgrade with `void platform upgrade`.");
|
|
297
297
|
}
|
|
298
|
+
/** Older platforms reject the manifest of an app with a Browser Run binding after the upload starts. */
|
|
299
|
+
async requireBrowserRunSupport() {
|
|
300
|
+
const response = await this.request(`${this.baseUrl}/capabilities`, { signal: AbortSignal.timeout(15e3) });
|
|
301
|
+
if (!response.ok && response.status !== 404) await throwPlatformApiError("Failed to check Browser Run support", response, "deploy");
|
|
302
|
+
if ((response.ok ? await response.json() : null)?.browserRun !== true) throw new Error("deploy: This Void platform does not support Browser Run, which void/image renders with. Ask its administrator to upgrade with `void platform upgrade`, or set `inference.bindings.browser: false` in void.config.ts if the app renders only with a third-party renderer.");
|
|
303
|
+
}
|
|
298
304
|
/** Reads the platform version from public discovery, without credentials. */
|
|
299
305
|
async probePlatformVersion() {
|
|
300
306
|
let response;
|
|
@@ -496,7 +502,7 @@ var PlatformClient = class {
|
|
|
496
502
|
tooOld: "cannot run local security checks"
|
|
497
503
|
});
|
|
498
504
|
}
|
|
499
|
-
/** What a local check would run (model, provider notice,
|
|
505
|
+
/** What a local check would run (model, provider notice, estimated cost). Sends no code. */
|
|
500
506
|
async previewProjectSecurityCheck(projectId, tree) {
|
|
501
507
|
const body = {
|
|
502
508
|
dryRun: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as resolveCloudflareOperationArgv, i as isCleanCloudflareExit, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation, t as createCloudflareProcessRunner } from "./cloudflare-process-DFNpqV_m.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
// src/cli/cloudflare-auth.ts
|
|
4
4
|
var CloudflareAuthenticationError = class extends Error {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { L as log } from "./dist-
|
|
1
|
+
import { L as log } from "./dist-BngS28id.mjs";
|
|
2
2
|
import { t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-
|
|
4
|
-
import { i as isCleanCloudflareExit } from "./cloudflare-process-
|
|
5
|
-
import { y as printSuccess } from "./output-
|
|
6
|
-
import {
|
|
3
|
+
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-iOgRurWm.mjs";
|
|
4
|
+
import { i as isCleanCloudflareExit } from "./cloudflare-process-DFNpqV_m.mjs";
|
|
5
|
+
import { y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
6
|
+
import { y as readRootWranglerConfig } from "./wrangler-AyMfdVJK.mjs";
|
|
7
7
|
// src/cli/cloudflare-cmd.ts
|
|
8
8
|
async function runCloudflareCommand(root, args) {
|
|
9
9
|
const runWrangler = createBundledCloudflareAuthRunner(root);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
2
|
import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
3
|
-
import "./project-paths-
|
|
4
|
-
import {
|
|
3
|
+
import "./project-paths-BeAxxqGh.mjs";
|
|
4
|
+
import { h as readConfig } from "./config-KZAiI3gG.mjs";
|
|
5
5
|
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
6
6
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
|
|
7
7
|
import { isRecord } from "@void/deploy-core";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { K as select, L as log, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
1
|
import { a as join, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-
|
|
4
|
-
import {
|
|
2
|
+
import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-iOgRurWm.mjs";
|
|
3
|
+
import { L as log, tt as isCancel } from "./dist-BngS28id.mjs";
|
|
4
|
+
import { a as select } from "./interactive-prompts-EK0dilFu.mjs";
|
|
5
|
+
import { N as DEFAULT_WORKER_COMPAT_DATE, j as writeProvisionedWranglerConfig, y as readRootWranglerConfig } from "./wrangler-AyMfdVJK.mjs";
|
|
5
6
|
import { existsSync } from "node:fs";
|
|
6
7
|
// src/cli/cloudflare-connect.ts
|
|
7
8
|
async function connectCloudflare(root, interactive = Boolean(process.stdin.isTTY)) {
|
|
@@ -18,7 +19,7 @@ async function connectCloudflare(root, interactive = Boolean(process.stdin.isTTY
|
|
|
18
19
|
const configuredAccount = typeof config.account_id === "string" ? config.account_id : void 0;
|
|
19
20
|
if (envAccount && configuredAccount && envAccount !== configuredAccount) throw new Error("connect: The environment account differs from account_id in the Cloudflare config.");
|
|
20
21
|
const pinnedAccount = configuredAccount || envAccount;
|
|
21
|
-
const compatibilityDate = typeof config.compatibility_date === "string" ? config.compatibility_date :
|
|
22
|
+
const compatibilityDate = typeof config.compatibility_date === "string" ? config.compatibility_date : DEFAULT_WORKER_COMPAT_DATE;
|
|
22
23
|
if (existsSync(join(root, "wrangler.toml"))) throw new Error("connect: Found wrangler.toml. Convert it to wrangler.jsonc with the same settings before connecting to Cloudflare.");
|
|
23
24
|
const { accounts } = await ensureCloudflareAuthentication({
|
|
24
25
|
interactive,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as executeCloudflareD1Statements, l as importCloudflareD1Sql, u as listCloudflareDomains, d as listCloudflareSecrets, g as putCloudflareSecret, _ as readCloudflareD1Migrations, v as readCloudflareWorkerStatus, y as resolveCloudflareD1Context, b as resolveCloudflareOperationContext, x as
|
|
1
|
+
export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as executeCloudflareD1Statements, l as importCloudflareD1Sql, u as listCloudflareDomains, d as listCloudflareSecrets, g as putCloudflareSecret, _ as readCloudflareD1Migrations, v as readCloudflareWorkerStatus, y as resolveCloudflareD1Context, b as resolveCloudflareOperationContext, x as resolveCloudflareWorkerVersion, S as restoreCloudflareD1Database, C as syncCloudflareSecrets, w as tailCloudflareWorker } from "./cloudflare-operations-D-9psgPQ.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-
|
|
3
|
-
import { t as createCloudflareProcessRunner } from "./cloudflare-process-
|
|
4
|
-
import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-
|
|
2
|
+
import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-KPHKf57C.mjs";
|
|
3
|
+
import { t as createCloudflareProcessRunner } from "./cloudflare-process-DFNpqV_m.mjs";
|
|
4
|
+
import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-4ISWxx8n.mjs";
|
|
5
5
|
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
6
|
-
import { p as getErrorMessage } from "./output-
|
|
7
|
-
import { _ as resolvePinnedApiBaseUrl, g as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware } from "./provision-
|
|
8
|
-
import {
|
|
6
|
+
import { p as getErrorMessage } from "./output-DhJgS6Ve.mjs";
|
|
7
|
+
import { _ as resolvePinnedApiBaseUrl, g as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware } from "./provision-CQykn8gu.mjs";
|
|
8
|
+
import { A as updateWranglerCustomDomain, C as readWranglerPublishedTrafficSnapshot, M as writeWranglerPublishedTrafficSnapshot, x as readWranglerCustomDomains } from "./wrangler-AyMfdVJK.mjs";
|
|
9
9
|
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { tmpdir } from "node:os";
|
|
11
|
-
import { deployCloudflareVersionTraffic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, parseRootWranglerConfig, readBindingFieldPresence, readCloudflareTriggerConfig, readWranglerTopLevelString, resolveD1MigrateTarget, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
|
|
11
|
+
import { cloudflareVersionAnnotation, deployCloudflareVersionTraffic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, parseRootWranglerConfig, readBindingFieldPresence, readCloudflareTriggerConfig, readWranglerTopLevelString, resolveCloudflareVersionMessage, resolveD1MigrateTarget, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
|
|
12
12
|
// src/cli/cloudflare-operations.ts
|
|
13
13
|
function resolveCloudflareOperationContext(root, runner) {
|
|
14
14
|
const configPath = materializeCloudflareConfig(root);
|
|
@@ -203,8 +203,7 @@ function parseCloudflareVersions(value) {
|
|
|
203
203
|
return parsed.map((entry, index) => {
|
|
204
204
|
if (typeof entry !== "object" || entry === null || !("id" in entry) || typeof entry.id !== "string") throw new Error(`Cloudflare version list entry ${index + 1} is malformed.`);
|
|
205
205
|
const metadata = "metadata" in entry && typeof entry.metadata === "object" && entry.metadata !== null ? entry.metadata : void 0;
|
|
206
|
-
const
|
|
207
|
-
const message = typeof annotations?.["workers/message"] === "string" ? annotations["workers/message"] : null;
|
|
206
|
+
const message = cloudflareVersionAnnotation(entry);
|
|
208
207
|
return {
|
|
209
208
|
id: entry.id,
|
|
210
209
|
createdAt: typeof metadata?.created_on === "string" ? metadata.created_on : null,
|
|
@@ -213,6 +212,15 @@ function parseCloudflareVersions(value) {
|
|
|
213
212
|
};
|
|
214
213
|
});
|
|
215
214
|
}
|
|
215
|
+
/** Read a large rollback snapshot only for the selected versions. */
|
|
216
|
+
async function resolveCloudflareWorkerVersion(context, version) {
|
|
217
|
+
const message = await resolveCloudflareVersionMessage(version.message, version.id, context);
|
|
218
|
+
return message === version.message ? version : {
|
|
219
|
+
...version,
|
|
220
|
+
message,
|
|
221
|
+
metadata: parseCloudflareVersionMessage(message)
|
|
222
|
+
};
|
|
223
|
+
}
|
|
216
224
|
function parseActiveVersionId(value) {
|
|
217
225
|
const parsed = requireData(value, "Cloudflare deployment status");
|
|
218
226
|
if (typeof parsed !== "object" || parsed === null) throw new Error("Cloudflare deployment status returned an unexpected response.");
|
|
@@ -242,7 +250,7 @@ async function activateCloudflareExistingVersion(context, target, current) {
|
|
|
242
250
|
...current.metadata.triggerConfig,
|
|
243
251
|
...publishedTraffic
|
|
244
252
|
} : current.metadata.triggerConfig;
|
|
245
|
-
const message = encodeCloudflareVersionMessage(target.metadata.migrations, targetTriggerConfig);
|
|
253
|
+
const message = encodeCloudflareVersionMessage(target.metadata.migrations ?? target.metadata.migrationSummary ?? null, targetTriggerConfig);
|
|
246
254
|
const ownerBeforeActivation = await readActiveCloudflareVersionId(context);
|
|
247
255
|
if (ownerBeforeActivation !== current.id) throw new Error(`Cloudflare production changed from ${current.id} to ${ownerBeforeActivation ?? "no active version"} before rollback activation. Retry from fresh deployment status.`);
|
|
248
256
|
await run(context, {
|
|
@@ -470,4 +478,4 @@ function failedOperationResult(error) {
|
|
|
470
478
|
error: getErrorMessage(error)
|
|
471
479
|
};
|
|
472
480
|
}
|
|
473
|
-
export {
|
|
481
|
+
export { syncCloudflareSecrets as C, restoreCloudflareD1Database as S, readCloudflareD1Migrations as _, createCloudflareEmptyDomainPublisher as a, resolveCloudflareOperationContext as b, executeCloudflareD1Statements as c, listCloudflareSecrets as d, parseActiveVersionId as f, putCloudflareSecret as g, publishEmptyCloudflareCustomDomainSet as h, createCloudflareEmptyCronPublisher as i, importCloudflareD1Sql as l, parseCloudflareVersions as m, applyCloudflareD1Migrations as n, deleteCloudflareSecret as o, parseCloudflareDeployedVersionIds as p, changeCloudflareDomain as r, executeCloudflareD1Sql as s, activateCloudflareExistingVersion as t, listCloudflareDomains as u, readCloudflareWorkerStatus as v, tailCloudflareWorker as w, resolveCloudflareWorkerVersion as x, resolveCloudflareD1Context as y };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runCloudflarePreviewDelete } from "./cloudflare-preview-BaeU-m74.mjs";
|