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,12 +1,46 @@
|
|
|
1
1
|
import { isRecord } from "@void/deploy-core";
|
|
2
2
|
import { isDeepStrictEqual } from "node:util";
|
|
3
3
|
import { CloudflareConfigSchema, bindings, exports, triggers } from "@cloudflare/config";
|
|
4
|
-
//
|
|
4
|
+
// ../../node_modules/.pnpm/@cloudflare+autoconfig@0.14.0_@vitest+browser-preview@5.1.1_@vitest+ui@5.1.1_@voidzero-_dad671aa0b8264f6e8e4355cdacacef6/node_modules/@cloudflare/autoconfig/dist/convert-xe_dcoPY.js
|
|
5
|
+
const CONFIGURATION_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/`;
|
|
6
|
+
const DURABLE_OBJECT_EXPORTS_DOCS_URL = `https://developers.cloudflare.com/workers/runtime-apis/context/#exports`;
|
|
7
|
+
const ENVIRONMENTS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/environments/`;
|
|
8
|
+
const PREVIEWS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/#previews`;
|
|
9
|
+
const SECRETS_DOCS_URL = `https://developers.cloudflare.com/workers/configuration/secrets/`;
|
|
10
|
+
const SOURCE_MAPS_DOCS_URL = `https://developers.cloudflare.com/workers/observability/source-maps/`;
|
|
11
|
+
function createFollowUp(code, message, options = {}) {
|
|
12
|
+
return {
|
|
13
|
+
blocking: options.blocking ?? true,
|
|
14
|
+
code,
|
|
15
|
+
docsUrl: options.docsUrl,
|
|
16
|
+
message,
|
|
17
|
+
sourcePath: options.sourcePath
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function followUpToComment(followUp) {
|
|
21
|
+
return {
|
|
22
|
+
docsUrl: followUp.docsUrl,
|
|
23
|
+
message: followUp.message
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function deduplicateFollowUps(followUps) {
|
|
27
|
+
const seen = /* @__PURE__ */ new Set();
|
|
28
|
+
return followUps.filter((followUp) => {
|
|
29
|
+
const key = [
|
|
30
|
+
followUp.code,
|
|
31
|
+
followUp.sourcePath,
|
|
32
|
+
followUp.message
|
|
33
|
+
].join("\0");
|
|
34
|
+
if (seen.has(key)) return false;
|
|
35
|
+
seen.add(key);
|
|
36
|
+
return true;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
5
39
|
function isRecord$1(value) {
|
|
6
40
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
7
41
|
}
|
|
8
42
|
function hasOwn(record, key) {
|
|
9
|
-
return Object.
|
|
43
|
+
return Object.prototype.hasOwnProperty.call(record, key);
|
|
10
44
|
}
|
|
11
45
|
function getRecord(record, key) {
|
|
12
46
|
const value = record[key];
|
|
@@ -47,7 +81,7 @@ function objectFromRecord(record, transformKey = (key) => key) {
|
|
|
47
81
|
};
|
|
48
82
|
}
|
|
49
83
|
function snakeToCamel(value) {
|
|
50
|
-
return value.
|
|
84
|
+
return value.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
51
85
|
}
|
|
52
86
|
function toCamelOutputValue(value) {
|
|
53
87
|
if (isRecord$1(value)) return camelObject(value);
|
|
@@ -107,42 +141,6 @@ function addProperty(properties, source, sourceKey, targetKey = sourceKey, trans
|
|
|
107
141
|
value
|
|
108
142
|
});
|
|
109
143
|
}
|
|
110
|
-
// src/cli/cf-config-convert/follow-ups.ts
|
|
111
|
-
const CONFIGURATION_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/`;
|
|
112
|
-
const DURABLE_OBJECT_EXPORTS_DOCS_URL = `https://developers.cloudflare.com/workers/runtime-apis/context/#exports`;
|
|
113
|
-
const ENVIRONMENTS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/environments/`;
|
|
114
|
-
const PREVIEWS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/#previews`;
|
|
115
|
-
const SECRETS_DOCS_URL = `https://developers.cloudflare.com/workers/configuration/secrets/`;
|
|
116
|
-
const SOURCE_MAPS_DOCS_URL = `https://developers.cloudflare.com/workers/observability/source-maps/`;
|
|
117
|
-
function createFollowUp(code, message, options = {}) {
|
|
118
|
-
return {
|
|
119
|
-
blocking: options.blocking ?? true,
|
|
120
|
-
code,
|
|
121
|
-
docsUrl: options.docsUrl,
|
|
122
|
-
message,
|
|
123
|
-
sourcePath: options.sourcePath
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function followUpToComment(followUp) {
|
|
127
|
-
return {
|
|
128
|
-
docsUrl: followUp.docsUrl,
|
|
129
|
-
message: followUp.message
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
function deduplicateFollowUps(followUps) {
|
|
133
|
-
const seen = /* @__PURE__ */ new Set();
|
|
134
|
-
return followUps.filter((followUp) => {
|
|
135
|
-
const key = [
|
|
136
|
-
followUp.code,
|
|
137
|
-
followUp.sourcePath,
|
|
138
|
-
followUp.message
|
|
139
|
-
].join("\0");
|
|
140
|
-
if (seen.has(key)) return false;
|
|
141
|
-
seen.add(key);
|
|
142
|
-
return true;
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
// src/cli/cf-config-convert/durable-object-exports.ts
|
|
146
144
|
/**
|
|
147
145
|
* Replays Wrangler migration history into declarative Durable Object exports.
|
|
148
146
|
* Explicit exports take precedence, and bindings to other Workers do not
|
|
@@ -264,7 +262,6 @@ function reportMissingLocalExports(source, exports, prefix, report) {
|
|
|
264
262
|
}));
|
|
265
263
|
}
|
|
266
264
|
}
|
|
267
|
-
// src/cli/cf-config-convert/exports.ts
|
|
268
265
|
const WORKFLOW_SETTINGS = [
|
|
269
266
|
"limits",
|
|
270
267
|
"concurrency",
|
|
@@ -430,7 +427,6 @@ function convertExports(source, sourcePrefix, imports, report) {
|
|
|
430
427
|
properties
|
|
431
428
|
} : void 0;
|
|
432
429
|
}
|
|
433
|
-
// src/cli/cf-config-convert/bindings.ts
|
|
434
430
|
/** Written in place of a legacy pipeline name, which isn't a stream ID. */
|
|
435
431
|
const LEGACY_PIPELINE_STREAM_ID_PLACEHOLDER = "STREAM_ID";
|
|
436
432
|
function addBinding(bindings, name, value, sourcePath, report) {
|
|
@@ -490,6 +486,7 @@ function convertBindings(source, sourcePrefix, imports, report) {
|
|
|
490
486
|
]
|
|
491
487
|
});
|
|
492
488
|
convertArrayBindings("flagship", "binding", "bindings.flagship", [["app_id", "id"]], { remote: true });
|
|
489
|
+
convertArrayBindings("realtimekit", "binding", "bindings.realtimeKit", [["app_id", "id"]], { remote: true });
|
|
493
490
|
for (const [index, entry] of getRecords(source, "hyperdrive").entries()) {
|
|
494
491
|
const options = optionsFromRecord(entry, [["id", "id"]]);
|
|
495
492
|
const sourcePath = pathFor("hyperdrive", index);
|
|
@@ -548,6 +545,7 @@ function convertBindings(source, sourcePrefix, imports, report) {
|
|
|
548
545
|
}
|
|
549
546
|
convertArrayBindings("secrets_store_secrets", "binding", "bindings.secretsStoreSecret", [["store_id", "storeId"], ["secret_name", "secretName"]]);
|
|
550
547
|
convertArrayBindings("vectorize", "binding", "bindings.vectorize", [["index_name", "name"]], { remote: true });
|
|
548
|
+
convertArrayBindings("oidc_tokens", "binding", "bindings.oidcToken", [["audience", "audience"], ["alg", "alg"]]);
|
|
551
549
|
convertArrayBindings("vpc_services", "binding", "bindings.vpcService", [["service_id", "id"]], { remote: true });
|
|
552
550
|
convertArrayBindings("vpc_networks", "binding", "bindings.vpcNetwork", [["tunnel_id", "tunnelId"], ["network_id", "networkId"]], { remote: true });
|
|
553
551
|
for (const [index, entry] of getRecords(source, "dispatch_namespaces").entries()) {
|
|
@@ -645,7 +643,8 @@ function convertBindings(source, sourcePrefix, imports, report) {
|
|
|
645
643
|
convertSingletonBinding("ai", "binding", "bindings.ai", ["staging"]);
|
|
646
644
|
convertSingletonBinding("analytics", "binding", "bindings.analyticsSql");
|
|
647
645
|
convertSingletonBinding("browser", "binding", "bindings.browser");
|
|
648
|
-
|
|
646
|
+
const images = getRecord(source, "images");
|
|
647
|
+
if (!images || hasOwn(images, "binding") || !hasOwn(images, "url_transformations")) convertSingletonBinding("images", "binding", "bindings.images");
|
|
649
648
|
convertSingletonBinding("media", "binding", "bindings.media");
|
|
650
649
|
convertSingletonBinding("stream", "binding", "bindings.stream");
|
|
651
650
|
const versionMetadata = getRecord(source, "version_metadata");
|
|
@@ -690,7 +689,6 @@ function convertBindings(source, sourcePrefix, imports, report) {
|
|
|
690
689
|
}))
|
|
691
690
|
};
|
|
692
691
|
}
|
|
693
|
-
// src/cli/cf-config-convert/triggers.ts
|
|
694
692
|
function convertTriggers(source, sourcePrefix, imports, report) {
|
|
695
693
|
const domains = [];
|
|
696
694
|
const converted = [];
|
|
@@ -782,7 +780,6 @@ function convertTriggers(source, sourcePrefix, imports, report) {
|
|
|
782
780
|
triggers: converted.length > 0 ? converted : void 0
|
|
783
781
|
};
|
|
784
782
|
}
|
|
785
|
-
// src/cli/cf-config-convert/worker-config.ts
|
|
786
783
|
const DEPENDENCIES_INSTRUMENTATION_ENV_VAR = "CLOUDFLARE_DEPENDENCIES_INSTRUMENTATION";
|
|
787
784
|
function isDependenciesInstrumentationConfig(value) {
|
|
788
785
|
if (!isRecord$1(value)) return false;
|
|
@@ -797,7 +794,7 @@ function createDependenciesInstrumentationFollowUp(source, sourcePrefix) {
|
|
|
797
794
|
if (instrumentation.enabled === false) return createFollowUp("dependencies-instrumentation-opt-out", `Set ${DEPENDENCIES_INSTRUMENTATION_ENV_VAR}=false before deploying to keep package dependency metadata disabled.${hasExcludedPackages ? " The package exclusion list was not migrated; if dependency metadata is later enabled, those packages will be included." : ""}`, { sourcePath });
|
|
798
795
|
if (hasExcludedPackages) return createFollowUp("dependencies-instrumentation-exclusions", `Package dependency exclusions cannot be migrated. ${DEPENDENCIES_INSTRUMENTATION_ENV_VAR} only enables or disables dependency metadata as a whole.`, { sourcePath });
|
|
799
796
|
}
|
|
800
|
-
function convertWorkerConfig(source, sourcePrefix,
|
|
797
|
+
function convertWorkerConfig(source, sourcePrefix, imports, followUps) {
|
|
801
798
|
const properties = [];
|
|
802
799
|
const comments = [];
|
|
803
800
|
const report = (followUp, options = {}) => {
|
|
@@ -840,6 +837,18 @@ function convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps)
|
|
|
840
837
|
addProperty(properties, source, "cache", "cache", (value) => isRecord$1(value) ? camelObject(value) : void 0);
|
|
841
838
|
addProperty(properties, source, "observability", "observability", (value) => isRecord$1(value) ? camelObject(value) : void 0);
|
|
842
839
|
addProperty(properties, source, "access");
|
|
840
|
+
const images = getRecord(source, "images");
|
|
841
|
+
const urlTransformations = images ? getRecord(images, "url_transformations") : void 0;
|
|
842
|
+
if (urlTransformations) properties.push({
|
|
843
|
+
key: "images",
|
|
844
|
+
value: {
|
|
845
|
+
kind: "object",
|
|
846
|
+
properties: [{
|
|
847
|
+
key: "urlTransformations",
|
|
848
|
+
value: camelObject(urlTransformations)
|
|
849
|
+
}]
|
|
850
|
+
}
|
|
851
|
+
});
|
|
843
852
|
const assets = getRecord(source, "assets");
|
|
844
853
|
if (assets) {
|
|
845
854
|
const runtimeAssets = optionsFromRecord(assets, [
|
|
@@ -851,10 +860,6 @@ function convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps)
|
|
|
851
860
|
key: "assets",
|
|
852
861
|
value: runtimeAssets
|
|
853
862
|
});
|
|
854
|
-
if (bundler === "vite" && hasOwn(assets, "directory")) report(createFollowUp("vite-assets-directory", "The Wrangler assets directory was not migrated. Configure static assets in the Vite project.", {
|
|
855
|
-
docsUrl: CONFIGURATION_DOCS_URL,
|
|
856
|
-
sourcePath: `${sourcePrefix ? `${sourcePrefix}.` : ""}assets.directory`
|
|
857
|
-
}));
|
|
858
863
|
}
|
|
859
864
|
const convertedTriggers = convertTriggers(source, sourcePrefix, imports, report);
|
|
860
865
|
if (convertedTriggers.domains) properties.push({
|
|
@@ -956,7 +961,7 @@ function convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps)
|
|
|
956
961
|
trailingComments: comments.length > 0 ? comments : void 0
|
|
957
962
|
};
|
|
958
963
|
}
|
|
959
|
-
function convertRootConfig(source, sourcePrefix,
|
|
964
|
+
function convertRootConfig(source, sourcePrefix, imports, followUps) {
|
|
960
965
|
const properties = [];
|
|
961
966
|
if (typeof source.account_id === "string") properties.push({
|
|
962
967
|
key: "accountId",
|
|
@@ -972,14 +977,13 @@ function convertRootConfig(source, sourcePrefix, bundler, imports, followUps) {
|
|
|
972
977
|
});
|
|
973
978
|
properties.push({
|
|
974
979
|
key: "worker",
|
|
975
|
-
value: convertWorkerConfig(source, sourcePrefix,
|
|
980
|
+
value: convertWorkerConfig(source, sourcePrefix, imports, followUps)
|
|
976
981
|
});
|
|
977
982
|
return {
|
|
978
983
|
kind: "object",
|
|
979
984
|
properties
|
|
980
985
|
};
|
|
981
986
|
}
|
|
982
|
-
// src/cli/cf-config-convert/config-converter.ts
|
|
983
987
|
const VITE_DEFAULT_MODES = /* @__PURE__ */ new Set(["development", "production"]);
|
|
984
988
|
const NON_INHERITABLE_FIELDS = /* @__PURE__ */ new Set([
|
|
985
989
|
"agent_memory",
|
|
@@ -1004,10 +1008,12 @@ const NON_INHERITABLE_FIELDS = /* @__PURE__ */ new Set([
|
|
|
1004
1008
|
"kv_namespaces",
|
|
1005
1009
|
"media",
|
|
1006
1010
|
"mtls_certificates",
|
|
1011
|
+
"oidc_tokens",
|
|
1007
1012
|
"pipelines",
|
|
1008
1013
|
"queues",
|
|
1009
1014
|
"r2_buckets",
|
|
1010
1015
|
"ratelimits",
|
|
1016
|
+
"realtimekit",
|
|
1011
1017
|
"secrets_store_secrets",
|
|
1012
1018
|
"secrets",
|
|
1013
1019
|
"send_email",
|
|
@@ -1109,6 +1115,7 @@ const KNOWN_FIELDS = /* @__PURE__ */ new Set([
|
|
|
1109
1115
|
"name",
|
|
1110
1116
|
"no_bundle",
|
|
1111
1117
|
"observability",
|
|
1118
|
+
"oidc_tokens",
|
|
1112
1119
|
"pages_build_output_dir",
|
|
1113
1120
|
"pipelines",
|
|
1114
1121
|
"placement",
|
|
@@ -1119,6 +1126,7 @@ const KNOWN_FIELDS = /* @__PURE__ */ new Set([
|
|
|
1119
1126
|
"queues",
|
|
1120
1127
|
"r2_buckets",
|
|
1121
1128
|
"ratelimits",
|
|
1129
|
+
"realtimekit",
|
|
1122
1130
|
"route",
|
|
1123
1131
|
"routes",
|
|
1124
1132
|
"rules",
|
|
@@ -1257,8 +1265,34 @@ function addViteToolingFollowUp(source, location, sourcePrefix, followUps) {
|
|
|
1257
1265
|
}));
|
|
1258
1266
|
}
|
|
1259
1267
|
}
|
|
1260
|
-
|
|
1261
|
-
|
|
1268
|
+
/**
|
|
1269
|
+
* Reports a Wrangler assets directory, which the Vite build provides instead.
|
|
1270
|
+
*
|
|
1271
|
+
* @param source The branch's settings
|
|
1272
|
+
* @param sourcePrefix Where the branch is in the Wrangler config
|
|
1273
|
+
* @param followUps The follow-ups to add to
|
|
1274
|
+
*/
|
|
1275
|
+
function addViteAssetsDirectoryFollowUp(source, sourcePrefix, followUps) {
|
|
1276
|
+
const assets = getRecord(source, "assets");
|
|
1277
|
+
if (assets && hasOwn(assets, "directory")) followUps.push(createFollowUp("vite-assets-directory", "The Wrangler assets directory was not migrated. Configure static assets in the Vite project.", {
|
|
1278
|
+
docsUrl: CONFIGURATION_DOCS_URL,
|
|
1279
|
+
sourcePath: `${sourcePrefix ? `${sourcePrefix}.` : ""}assets.directory`
|
|
1280
|
+
}));
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Reports a branch's assets directory, and its previews', for a Vite build.
|
|
1284
|
+
*
|
|
1285
|
+
* @param source The branch's settings
|
|
1286
|
+
* @param sourcePrefix Where the branch is in the Wrangler config
|
|
1287
|
+
* @param followUps The follow-ups to add to
|
|
1288
|
+
*/
|
|
1289
|
+
function addViteBranchFollowUps(source, sourcePrefix, followUps) {
|
|
1290
|
+
addViteAssetsDirectoryFollowUp(source, sourcePrefix, followUps);
|
|
1291
|
+
const previews = getRecord(source, "previews");
|
|
1292
|
+
if (previews) addViteAssetsDirectoryFollowUp(createPreviewSource(source, previews), `${sourcePrefix ? `${sourcePrefix}.` : ""}previews`, followUps);
|
|
1293
|
+
}
|
|
1294
|
+
function convertBranch(source, sourcePrefix, imports, followUps) {
|
|
1295
|
+
const config = convertRootConfig(source, sourcePrefix, imports, followUps);
|
|
1262
1296
|
const previews = getRecord(source, "previews");
|
|
1263
1297
|
if (!previews) return { config };
|
|
1264
1298
|
const previewPath = `${sourcePrefix ? `${sourcePrefix}.` : ""}previews`;
|
|
@@ -1271,7 +1305,7 @@ function convertBranch(source, sourcePrefix, bundler, imports, followUps) {
|
|
|
1271
1305
|
if (worker && !Array.isArray(worker) && typeof worker === "object" && worker.kind === "object") worker.trailingComments = [...worker.trailingComments ?? [], followUpToComment(followUp)];
|
|
1272
1306
|
return {
|
|
1273
1307
|
config,
|
|
1274
|
-
previewConfig: convertRootConfig(createPreviewSource(source, previews), previewPath,
|
|
1308
|
+
previewConfig: convertRootConfig(createPreviewSource(source, previews), previewPath, imports, followUps)
|
|
1275
1309
|
};
|
|
1276
1310
|
}
|
|
1277
1311
|
function convertToolingBranch(source) {
|
|
@@ -1284,7 +1318,17 @@ function convertToolingBranch(source) {
|
|
|
1284
1318
|
previewConfig
|
|
1285
1319
|
};
|
|
1286
1320
|
}
|
|
1287
|
-
|
|
1321
|
+
/**
|
|
1322
|
+
* Converts a Wrangler config's Worker settings, for every branch: the top level, each environment
|
|
1323
|
+
* and their previews. Build settings are left to {@link convertWranglerBuild}, because they
|
|
1324
|
+
* depend on the bundler.
|
|
1325
|
+
*
|
|
1326
|
+
* @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
|
|
1327
|
+
* @param secretFiles Secret-like files found next to it, which aren't read.
|
|
1328
|
+
*
|
|
1329
|
+
* @returns The converted settings, as trees of values and `cf/config` helper calls, with follow-ups.
|
|
1330
|
+
*/
|
|
1331
|
+
function convertWranglerSettings(rawConfig, secretFiles) {
|
|
1288
1332
|
const source = rawConfig;
|
|
1289
1333
|
const imports = /* @__PURE__ */ new Set();
|
|
1290
1334
|
const followUps = [];
|
|
@@ -1297,10 +1341,6 @@ function convertWranglerConfig(rawConfig, bundler, secretFiles) {
|
|
|
1297
1341
|
addUnknownFieldFollowUps(environment, `env.${name}`, followUps);
|
|
1298
1342
|
const environmentPreviews = getRecord(environment, "previews");
|
|
1299
1343
|
if (environmentPreviews) addUnknownFieldFollowUps(environmentPreviews, `env.${name}.previews`, followUps);
|
|
1300
|
-
if (bundler === "vite" && VITE_DEFAULT_MODES.has(name)) followUps.push(createFollowUp("vite-mode-environment-conflict", `The Wrangler environment \`${name}\` conflicts with Vite's default \`${name}\` mode. Rename or remap this environment before using the generated config so Vite does not select it implicitly.`, {
|
|
1301
|
-
docsUrl: ENVIRONMENTS_DOCS_URL,
|
|
1302
|
-
sourcePath: `env.${name}`
|
|
1303
|
-
}));
|
|
1304
1344
|
continue;
|
|
1305
1345
|
}
|
|
1306
1346
|
followUps.push(createFollowUp("invalid-environment", `The Wrangler environment \`${name}\` is not an object and was not migrated.`, { sourcePath: `env.${name}` }));
|
|
@@ -1309,37 +1349,12 @@ function convertWranglerConfig(rawConfig, bundler, secretFiles) {
|
|
|
1309
1349
|
blocking: false,
|
|
1310
1350
|
docsUrl: SECRETS_DOCS_URL
|
|
1311
1351
|
}));
|
|
1312
|
-
|
|
1313
|
-
addViteToolingFollowUp(source, "", "", followUps);
|
|
1314
|
-
if (sourcePreviews) addViteToolingFollowUp(sourcePreviews, "previews", "previews", followUps);
|
|
1315
|
-
}
|
|
1316
|
-
const isWranglerBundle = bundler === "wrangler";
|
|
1317
|
-
if (isWranglerBundle) {
|
|
1318
|
-
const dev = getRecord(source, "dev");
|
|
1319
|
-
if (dev && isRecord$1(dev.container_engine)) followUps.push(createFollowUp("container-engine-config", "The structured Wrangler container engine setting is not supported by wrangler.config.ts and was not migrated.", { sourcePath: "dev.container_engine" }));
|
|
1320
|
-
}
|
|
1321
|
-
if (bundler === "vite") for (const [name, environment] of Object.entries(environments)) {
|
|
1322
|
-
if (!isRecord$1(environment)) continue;
|
|
1323
|
-
addViteToolingFollowUp(environment, `environment \`${name}\``, `env.${name}`, followUps);
|
|
1324
|
-
const environmentPreviews = getRecord(environment, "previews");
|
|
1325
|
-
if (environmentPreviews) addViteToolingFollowUp(environmentPreviews, `environment \`${name}\` previews`, `env.${name}.previews`, followUps);
|
|
1326
|
-
}
|
|
1327
|
-
const baseSource = createBranchSource(source, {});
|
|
1328
|
-
const base = convertBranch(baseSource, "", bundler, imports, followUps);
|
|
1329
|
-
const toolingBase = isWranglerBundle ? convertToolingBranch(baseSource) : void 0;
|
|
1352
|
+
const base = convertBranch(createBranchSource(source, {}), "", imports, followUps);
|
|
1330
1353
|
const convertedEnvironments = /* @__PURE__ */ new Map();
|
|
1331
|
-
const toolingEnvironments = /* @__PURE__ */ new Map();
|
|
1332
1354
|
for (const [name, value] of Object.entries(environments)) {
|
|
1333
1355
|
if (!isRecord$1(value)) continue;
|
|
1334
1356
|
const environmentSource = createBranchSource(source, value, name);
|
|
1335
|
-
convertedEnvironments.set(name, convertBranch(environmentSource, `env.${name}`,
|
|
1336
|
-
if (isWranglerBundle) {
|
|
1337
|
-
const tooling = convertToolingBranch(createToolingEnvironmentSource(source, value, name));
|
|
1338
|
-
if (tooling || toolingBase) toolingEnvironments.set(name, tooling ?? { config: {
|
|
1339
|
-
kind: "object",
|
|
1340
|
-
properties: []
|
|
1341
|
-
} });
|
|
1342
|
-
}
|
|
1357
|
+
convertedEnvironments.set(name, convertBranch(environmentSource, `env.${name}`, imports, followUps));
|
|
1343
1358
|
}
|
|
1344
1359
|
if (convertedEnvironments.size > 0) followUps.push(createFollowUp("environments-migrated", "Wrangler environments were migrated to a `switch (ctx.mode)` statement. Select one with the `--mode` flag.", {
|
|
1345
1360
|
blocking: false,
|
|
@@ -1350,11 +1365,93 @@ function convertWranglerConfig(rawConfig, bundler, secretFiles) {
|
|
|
1350
1365
|
base,
|
|
1351
1366
|
environments: convertedEnvironments,
|
|
1352
1367
|
followUps: deduplicateFollowUps(followUps),
|
|
1353
|
-
imports
|
|
1368
|
+
imports
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Converts a Wrangler config's build settings for a bundler. With Wrangler, they become the
|
|
1373
|
+
* branches of `wrangler.config.ts`. With Vite, which builds the Worker itself, they become
|
|
1374
|
+
* follow-ups for the settings that don't carry over.
|
|
1375
|
+
*
|
|
1376
|
+
* @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
|
|
1377
|
+
* @param bundler The bundler the project builds with.
|
|
1378
|
+
*
|
|
1379
|
+
* @returns The `wrangler.config.ts` branches, and follow-ups for the build settings left out.
|
|
1380
|
+
*/
|
|
1381
|
+
function convertWranglerBuild(rawConfig, bundler) {
|
|
1382
|
+
const source = rawConfig;
|
|
1383
|
+
const followUps = [];
|
|
1384
|
+
const environments = Object.entries(getRecord(source, "env") ?? {}).filter((entry) => isRecord$1(entry[1]));
|
|
1385
|
+
const baseSource = createBranchSource(source, {});
|
|
1386
|
+
if (bundler === "vite") {
|
|
1387
|
+
for (const [name] of environments) if (VITE_DEFAULT_MODES.has(name)) followUps.push(createFollowUp("vite-mode-environment-conflict", `The Wrangler environment \`${name}\` conflicts with Vite's default \`${name}\` mode. Rename or remap this environment before using the generated config so Vite does not select it implicitly.`, {
|
|
1388
|
+
docsUrl: ENVIRONMENTS_DOCS_URL,
|
|
1389
|
+
sourcePath: `env.${name}`
|
|
1390
|
+
}));
|
|
1391
|
+
addViteToolingFollowUp(source, "", "", followUps);
|
|
1392
|
+
const sourcePreviews = getRecord(source, "previews");
|
|
1393
|
+
if (sourcePreviews) addViteToolingFollowUp(sourcePreviews, "previews", "previews", followUps);
|
|
1394
|
+
for (const [name, environment] of environments) {
|
|
1395
|
+
addViteToolingFollowUp(environment, `environment \`${name}\``, `env.${name}`, followUps);
|
|
1396
|
+
const environmentPreviews = getRecord(environment, "previews");
|
|
1397
|
+
if (environmentPreviews) addViteToolingFollowUp(environmentPreviews, `environment \`${name}\` previews`, `env.${name}.previews`, followUps);
|
|
1398
|
+
}
|
|
1399
|
+
addViteBranchFollowUps(baseSource, "", followUps);
|
|
1400
|
+
for (const [name, environment] of environments) addViteBranchFollowUps(createBranchSource(source, environment, name), `env.${name}`, followUps);
|
|
1401
|
+
return {
|
|
1402
|
+
followUps: deduplicateFollowUps(followUps),
|
|
1403
|
+
toolingEnvironments: /* @__PURE__ */ new Map()
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
const dev = getRecord(source, "dev");
|
|
1407
|
+
if (dev && isRecord$1(dev.container_engine)) followUps.push(createFollowUp("container-engine-config", "The structured Wrangler container engine setting is not supported by wrangler.config.ts and was not migrated.", { sourcePath: "dev.container_engine" }));
|
|
1408
|
+
const toolingBase = convertToolingBranch(baseSource);
|
|
1409
|
+
const toolingEnvironments = /* @__PURE__ */ new Map();
|
|
1410
|
+
for (const [name, environment] of environments) {
|
|
1411
|
+
const tooling = convertToolingBranch(createToolingEnvironmentSource(source, environment, name));
|
|
1412
|
+
if (tooling || toolingBase) toolingEnvironments.set(name, tooling ?? { config: {
|
|
1413
|
+
kind: "object",
|
|
1414
|
+
properties: []
|
|
1415
|
+
} });
|
|
1416
|
+
}
|
|
1417
|
+
return {
|
|
1418
|
+
followUps: deduplicateFollowUps(followUps),
|
|
1354
1419
|
toolingBase,
|
|
1355
1420
|
toolingEnvironments
|
|
1356
1421
|
};
|
|
1357
1422
|
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Converts a Wrangler config's Worker settings and its build settings for a bundler.
|
|
1425
|
+
*
|
|
1426
|
+
* @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
|
|
1427
|
+
* @param bundler The bundler the project builds with.
|
|
1428
|
+
* @param secretFiles Secret-like files found next to it, which aren't read.
|
|
1429
|
+
*
|
|
1430
|
+
* @returns Both halves, with their follow-ups together.
|
|
1431
|
+
*/
|
|
1432
|
+
function convertWranglerConfig$1(rawConfig, bundler, secretFiles) {
|
|
1433
|
+
const settings = convertWranglerSettings(rawConfig, secretFiles);
|
|
1434
|
+
const build = convertWranglerBuild(rawConfig, bundler);
|
|
1435
|
+
return {
|
|
1436
|
+
...settings,
|
|
1437
|
+
followUps: deduplicateFollowUps([...settings.followUps, ...build.followUps]),
|
|
1438
|
+
toolingBase: build.toolingBase,
|
|
1439
|
+
toolingEnvironments: build.toolingEnvironments
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
// ../../node_modules/.pnpm/@cloudflare+autoconfig@0.14.0_@vitest+browser-preview@5.1.1_@vitest+ui@5.1.1_@voidzero-_dad671aa0b8264f6e8e4355cdacacef6/node_modules/@cloudflare/autoconfig/dist/wrangler-to-cf.js
|
|
1443
|
+
/**
|
|
1444
|
+
* Converts a parsed Wrangler configuration to the new cf configuration in memory.
|
|
1445
|
+
* It reads and writes no files and does not inspect the project's dependencies.
|
|
1446
|
+
*
|
|
1447
|
+
* @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
|
|
1448
|
+
* @param options Optional bundler selection. Defaults to Vite.
|
|
1449
|
+
*
|
|
1450
|
+
* @returns The converted configuration for the top level and for each Wrangler environment, as a tree of values and `cf/config` helper calls, with any follow-up work left for the caller.
|
|
1451
|
+
*/
|
|
1452
|
+
function convertWranglerConfig(rawConfig, options = {}) {
|
|
1453
|
+
return convertWranglerConfig$1(rawConfig, options.bundler ?? "vite", []);
|
|
1454
|
+
}
|
|
1358
1455
|
// src/cli/cf-config-migrate.ts
|
|
1359
1456
|
function record(value) {
|
|
1360
1457
|
return isRecord(value) ? value : null;
|
|
@@ -1443,7 +1540,8 @@ function applyWorkflows(raw, worker) {
|
|
|
1443
1540
|
"limits",
|
|
1444
1541
|
"concurrency",
|
|
1445
1542
|
"schedules",
|
|
1446
|
-
"default_retention"
|
|
1543
|
+
"default_retention",
|
|
1544
|
+
"jurisdiction"
|
|
1447
1545
|
]);
|
|
1448
1546
|
for (const key of Object.keys(workflow)) if (!allowed.has(key)) throw new Error(`cf cannot migrate Workflow setting ${key}.`);
|
|
1449
1547
|
if (Object.hasOwn(env, workflow.binding)) throw new Error(`Duplicate Worker binding ${workflow.binding}.`);
|
|
@@ -1453,13 +1551,16 @@ function applyWorkflows(raw, worker) {
|
|
|
1453
1551
|
worker: workflow.script_name ?? worker.name,
|
|
1454
1552
|
exportName: workflow.class_name
|
|
1455
1553
|
};
|
|
1456
|
-
if (workflow.script_name !== void 0 && workflow.script_name !== worker.name)
|
|
1554
|
+
if (workflow.script_name !== void 0 && workflow.script_name !== worker.name) {
|
|
1555
|
+
if (Object.values(exports).some((value) => isRecord(value) && value.type === "workflow" && value.name === workflow.name)) throw new Error(`External Workflow ${workflow.name} conflicts with a local Workflow export.`);
|
|
1556
|
+
continue;
|
|
1557
|
+
}
|
|
1457
1558
|
const retention = record(workflow.default_retention);
|
|
1458
|
-
if (Object.hasOwn(exports, workflow.class_name)) throw new Error(`Duplicate Worker export ${workflow.class_name}.`);
|
|
1459
1559
|
const schedules = Array.isArray(workflow.schedules) && workflow.schedules.length === 0 ? void 0 : workflow.schedules;
|
|
1460
|
-
|
|
1560
|
+
const declaration = {
|
|
1461
1561
|
type: "workflow",
|
|
1462
1562
|
name: workflow.name,
|
|
1563
|
+
...workflow.jurisdiction !== void 0 ? { jurisdiction: workflow.jurisdiction } : {},
|
|
1463
1564
|
...workflow.limits !== void 0 ? { limits: workflow.limits } : {},
|
|
1464
1565
|
...workflow.concurrency !== void 0 ? { concurrency: workflow.concurrency } : {},
|
|
1465
1566
|
...schedules !== void 0 ? { schedules } : {},
|
|
@@ -1468,6 +1569,12 @@ function applyWorkflows(raw, worker) {
|
|
|
1468
1569
|
...retention.error_retention !== void 0 ? { errorRetention: retention.error_retention } : {}
|
|
1469
1570
|
} } : {}
|
|
1470
1571
|
};
|
|
1572
|
+
const existing = record(exports[workflow.class_name]);
|
|
1573
|
+
if (existing && Object.entries(declaration).some(([key, value]) => Object.hasOwn(existing, key) && !isDeepStrictEqual(existing[key], value))) throw new Error(`Conflicting Worker export ${workflow.class_name} for Workflow ${workflow.name}.`);
|
|
1574
|
+
exports[workflow.class_name] = {
|
|
1575
|
+
...existing,
|
|
1576
|
+
...declaration
|
|
1577
|
+
};
|
|
1471
1578
|
}
|
|
1472
1579
|
worker.env = env;
|
|
1473
1580
|
worker.exports = exports;
|
|
@@ -1475,7 +1582,6 @@ function applyWorkflows(raw, worker) {
|
|
|
1475
1582
|
function assertHandledFollowUps(followUps) {
|
|
1476
1583
|
for (const item of followUps) {
|
|
1477
1584
|
if (!item.blocking) continue;
|
|
1478
|
-
if (item.code === "vite-plugin-install-disabled" && item.sourcePath === void 0) continue;
|
|
1479
1585
|
const path = item.sourcePath ?? item.code;
|
|
1480
1586
|
if (!((path === "assets.directory" || /^env\.[^.]+\.assets\.directory$/.test(path)) && item.message.includes("assets directory") || /^d1_databases\.\d+$/.test(path) && /`migrations_(?:dir|table)`/.test(item.message) || /^durable_objects\.bindings\.\d+$/.test(path) || path === "migrations" || path === "containers")) throw new Error(`cf cannot migrate Cloudflare setting ${path}: ${item.message}`);
|
|
1481
1587
|
}
|
|
@@ -1603,7 +1709,7 @@ function outputValue(value) {
|
|
|
1603
1709
|
* converter could not translate. `mode` selects a Wrangler environment by name.
|
|
1604
1710
|
*/
|
|
1605
1711
|
function translateWranglerConfig(raw, mode) {
|
|
1606
|
-
const converted = convertWranglerConfig(JSON.parse(JSON.stringify(raw)), "vite"
|
|
1712
|
+
const converted = convertWranglerConfig(JSON.parse(JSON.stringify(raw)), { bundler: "vite" });
|
|
1607
1713
|
const input = record(outputValue((converted.environments.get(mode) ?? converted.base).config));
|
|
1608
1714
|
const worker = record(input?.worker);
|
|
1609
1715
|
const env = record(worker?.env);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { n as getOwnVersion } from "./agents-64FnLwxP.mjs";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
// src/cli/cf-user-agent.ts
|
|
4
|
+
let voidUserAgent;
|
|
5
|
+
let cfCliVersion;
|
|
6
|
+
function getVoidUserAgent() {
|
|
7
|
+
if (voidUserAgent === void 0) voidUserAgent = `void/${getOwnVersion()}`;
|
|
8
|
+
return voidUserAgent;
|
|
9
|
+
}
|
|
10
|
+
/** cf prepends `cf-cli/` to CLI_VERSION for both API requests and uploads. */
|
|
11
|
+
function getCfCliVersion(attribution) {
|
|
12
|
+
if (cfCliVersion === void 0) cfCliVersion = `${JSON.parse(readFileSync(new URL(import.meta.resolve("cf/package.json")), "utf8")).version} ${getVoidUserAgent()}`;
|
|
13
|
+
return attribution ? `${cfCliVersion} ${attribution}` : cfCliVersion;
|
|
14
|
+
}
|
|
15
|
+
export { getVoidUserAgent as n, getCfCliVersion as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as exportsFromOutput } from "./cf-version-api-XEEK2B9A.mjs";
|