void 1.12.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{account-cmd-BU1Fy_Bf.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
- package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
- package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
- package/dist/args-DrnTI35r.mjs +88 -0
- package/dist/args-MnQnqypt.mjs +1 -0
- package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
- package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
- package/dist/{auth-link-Duu2NvN5.mjs → auth-link-I4omV0pL.mjs} +6 -6
- package/dist/{auth-router-vgtOdb9j.mjs → auth-router-CXq4q7bb.mjs} +6 -5
- package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
- package/dist/bindings-C7zOgxT3.d.mts +28 -0
- package/dist/browser-run-BKgZVwLk.mjs +124 -0
- package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
- package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
- package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
- package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
- package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
- package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
- package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
- package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
- package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
- package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
- package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
- package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +111 -47
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli/json-command-process.d.mts +6 -0
- package/dist/cli/json-command-process.mjs +91 -0
- package/dist/{cli-main-BrChcpE3.mjs → cli-main-CJTGhcYN.mjs} +84 -113
- package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
- package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
- package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
- package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
- package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
- package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
- package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
- package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
- package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
- package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
- package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
- package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
- package/dist/collect-Aam0GwAU.mjs +1 -0
- package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
- package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
- package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
- package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
- package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
- package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
- package/dist/config-entry.d.mts +1 -1
- package/dist/config-write-dKLINlm2.mjs +80 -0
- package/dist/{connect-D0V0o40j.mjs → connect-Bqq3b9sX.mjs} +10 -9
- package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
- package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
- package/dist/{db-BNPIjLkK.mjs → db-B3eoVDNA.mjs} +50 -47
- package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
- package/dist/db-args-Cx1y4vZn.mjs +1 -0
- package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
- package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
- package/dist/deploy-DZ9j7MC4.mjs +2 -0
- package/dist/{deploy-BgSbagIP.mjs → deploy-UojYUEWr.mjs} +803 -1415
- package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
- package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
- package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
- package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
- package/dist/deploy.mjs +14 -10
- package/dist/discover-BZWVWeQs.mjs +1 -0
- package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
- package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
- package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
- package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
- package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
- package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
- package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
- package/dist/{email-DcQNP40O.mjs → email-BBSDV0J5.mjs} +13 -12
- package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
- package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
- package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
- package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
- package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
- package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
- package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
- package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
- package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
- package/dist/gen-DaayFP9v.mjs +1 -0
- package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
- package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
- package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
- package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
- package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
- package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
- package/dist/help-DWGHmt_n.mjs +1 -0
- package/dist/html-5sfGLjiI.d.mts +3 -0
- package/dist/html-DPSOBDCh.mjs +1 -0
- package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
- package/dist/index-Cvqotnhc.d.mts +91 -0
- package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
- package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +536 -170
- package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
- package/dist/{init-C8YpkGIP.mjs → init-DftAx3L4.mjs} +237 -88
- package/dist/input-jcps6lAn.mjs +64 -0
- package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
- package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
- package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
- package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
- package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
- package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
- package/dist/login-BJwPhV_S.mjs +1 -0
- package/dist/{login-CWFr-G2I.mjs → login-DaugBfBG.mjs} +6 -5
- package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
- package/dist/migrate-BHD46A31.mjs +1 -0
- package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
- package/dist/nitro.mjs +3 -3
- package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
- package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
- package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
- package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
- package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
- package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
- package/dist/{operator-cmd-a7yOf2tH.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
- package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
- package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
- package/dist/output-OYwcEwok.mjs +1 -0
- package/dist/pages/client.d.mts +34 -20
- package/dist/pages/client.mjs +172 -74
- package/dist/pages/index.d.mts +11 -4
- package/dist/pages/index.mjs +5 -5
- package/dist/pages/islands-plugin.d.mts +2 -2
- package/dist/pages/islands-plugin.mjs +5 -3
- package/dist/pages/protocol.d.mts +3 -3
- package/dist/pages/protocol.mjs +3 -3
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
- package/dist/platform-C3Q44RJ8.mjs +250 -0
- package/dist/platform-args-BSyVZESg.mjs +1 -0
- package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
- package/dist/{platform-auth-config-CpszX-Ne.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
- package/dist/{platform-auth-protection-DA6Tw8Og.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
- package/dist/{platform-auth-recovery-Cztrb1JC.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
- package/dist/{platform-cmd-m6Asj6nO.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
- package/dist/{platform-cmd-u1j88ggF.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
- package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
- package/dist/{platform-domain-DJSznNTA.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
- package/dist/{platform-lifecycle-BC-9p58d.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
- package/dist/{platform-lifecycle-GFeXv3NC.mjs → platform-lifecycle-CKwOg8wz.mjs} +244 -104
- package/dist/{platform-management-BwHkz46V.mjs → platform-management-CaSdFthX.mjs} +1 -1
- package/dist/{platform-management-DX1zINou.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
- package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
- package/dist/{platform-recovery-CnzBbudV.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
- package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
- package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
- package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
- package/dist/prepare-CLl_TA_r.mjs +1 -0
- package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
- package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
- package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
- package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
- package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
- package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
- package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
- package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
- package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
- package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
- package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
- package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
- package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
- package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
- package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
- package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
- package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
- package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
- package/dist/resolve-project-Bob_rEi2.mjs +1 -0
- package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
- package/dist/resource-binding-5nI30acw.mjs +20 -0
- package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
- package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
- package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
- package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
- package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
- package/dist/routes-stub.d.mts +18 -2
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
- package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
- package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
- package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
- package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
- package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
- package/dist/runtime/ai/index.mjs +1 -1
- package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
- package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
- package/dist/runtime/client/fetch-server.mjs +1 -1
- package/dist/runtime/client/fetch-stream.mjs +1 -1
- package/dist/runtime/client/fetch.mjs +1 -1
- package/dist/runtime/client/index.mjs +2 -2
- package/dist/runtime/client/react.mjs +2 -2
- package/dist/runtime/client/solid.mjs +2 -2
- package/dist/runtime/client/svelte.mjs +2 -2
- package/dist/runtime/client/vue.mjs +2 -2
- package/dist/runtime/durable/index.mjs +11 -26
- package/dist/runtime/env/runtime.d.mts +2 -10
- package/dist/runtime/handler/index.d.mts +3 -2
- package/dist/runtime/handler/index.mjs +2 -2
- package/dist/runtime/handler/validator.d.mts +1 -1
- package/dist/runtime/handler/validator.mjs +1 -1
- package/dist/runtime/html.d.mts +2 -0
- package/dist/runtime/html.mjs +1 -0
- package/dist/runtime/image/index.d.mts +103 -0
- package/dist/runtime/image/index.mjs +89 -0
- package/dist/runtime/jsx/index.d.mts +3 -0
- package/dist/runtime/jsx/index.mjs +2 -0
- package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
- package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
- package/dist/runtime/limits/index.mjs +1 -1
- package/dist/runtime/live/client.d.mts +2 -2
- package/dist/runtime/live/index.d.mts +1 -1
- package/dist/runtime/routing/index.d.mts +87 -4
- package/dist/runtime/routing/index.mjs +59 -20
- package/dist/runtime/routing/route-url.d.mts +2 -2
- package/dist/runtime/routing/route-url.mjs +1 -1
- package/dist/runtime/sandbox/index.mjs +1 -1
- package/dist/runtime/sse/client.d.mts +1 -1
- package/dist/runtime/workflows/entry.d.mts +8 -0
- package/dist/runtime/workflows/entry.mjs +49 -0
- package/dist/runtime/workflows/index.d.mts +3 -0
- package/dist/runtime/workflows/index.mjs +77 -0
- package/dist/runtime/ws/index.d.mts +1 -1
- package/dist/runtime/ws/index.mjs +2 -2
- package/dist/runtime/ws/room.d.mts +1 -1
- package/dist/runtime/ws/server.d.mts +2 -2
- package/dist/runtime-Db72hLY-.d.mts +11 -0
- package/dist/scan-BxhB4BA-.mjs +946 -0
- package/dist/scan-D2ISAobj.mjs +308 -0
- package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
- package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
- package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
- package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
- package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
- package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
- package/dist/standard-schema-DvMcZGMK.mjs +8 -0
- package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
- package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
- package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
- package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
- package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
- package/dist/validate-p9b3r1k4.mjs +1 -0
- package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
- package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
- package/dist/version-metadata-CEla0kgi.mjs +23 -0
- package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
- package/dist/wrangler-BT7qrzWc.mjs +1 -0
- package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
- package/docs/guide/ai.md +1 -1
- package/docs/guide/app-types.md +6 -23
- package/docs/guide/auth.md +2 -4
- package/docs/guide/database/d1.md +21 -67
- package/docs/guide/database/mysql.md +8 -0
- package/docs/guide/database/postgresql.md +2 -2
- package/docs/guide/database.md +1 -1
- package/docs/guide/deployment.md +18 -0
- package/docs/guide/edge/prerendering.md +3 -7
- package/docs/guide/edge/redirects.md +1 -1
- package/docs/guide/edge/revalidation.md +8 -17
- package/docs/guide/edge/rewrites.md +1 -1
- package/docs/guide/edge/static-assets.md +10 -22
- package/docs/guide/email/domains.md +3 -1
- package/docs/guide/email/receiving.md +2 -2
- package/docs/guide/email/sending.md +3 -1
- package/docs/guide/env-vars.md +2 -0
- package/docs/guide/image-generation.md +142 -0
- package/docs/guide/index.md +17 -15
- package/docs/guide/jobs.md +2 -4
- package/docs/guide/kv.md +1 -1
- package/docs/guide/og-images.md +83 -0
- package/docs/guide/pages-routing/actions-and-forms.md +6 -4
- package/docs/guide/pages-routing/errors.md +20 -4
- package/docs/guide/pages-routing/head.md +5 -5
- package/docs/guide/pages-routing/islands.md +4 -14
- package/docs/guide/pages-routing/markdown.md +2 -2
- package/docs/guide/pages-routing/overview.md +129 -15
- package/docs/guide/platform/administration/plans.md +47 -16
- package/docs/guide/platform/administration/projects.md +10 -0
- package/docs/guide/platform/administration/security-audits.md +76 -30
- package/docs/guide/platform/administration/zero-trust.md +1 -1
- package/docs/guide/platform/installation/ci.md +0 -4
- package/docs/guide/platform/installation/credentials.md +1 -1
- package/docs/guide/platform/installation/maintenance.md +11 -9
- package/docs/guide/platform/installation/prerequisites.md +3 -1
- package/docs/guide/platform/installation/setup.md +7 -15
- package/docs/guide/platform/installation/uninstall.md +6 -12
- package/docs/guide/project-collaboration.md +1 -4
- package/docs/guide/queues.md +6 -8
- package/docs/guide/quickstart.md +6 -8
- package/docs/guide/sandboxes.md +1 -1
- package/docs/guide/self-hosted-platform.md +4 -7
- package/docs/guide/server-routing.md +5 -3
- package/docs/guide/ssg.md +1 -1
- package/docs/guide/type-safety.md +74 -10
- package/docs/guide/websockets.md +5 -7
- package/docs/guide/workflows.md +122 -0
- package/docs/index.md +2 -3
- package/docs/integrations/agents.md +3 -16
- package/docs/integrations/cloudflare.md +98 -2
- package/docs/integrations/frameworks/analog.md +9 -11
- package/docs/integrations/frameworks/astro.md +16 -17
- package/docs/integrations/frameworks/nuxt.md +11 -13
- package/docs/integrations/frameworks/overview.md +18 -20
- package/docs/integrations/frameworks/react-router.md +55 -6
- package/docs/integrations/frameworks/sveltekit.md +8 -6
- package/docs/integrations/frameworks/tanstack-start.md +10 -6
- package/docs/integrations/hono.md +27 -12
- package/docs/integrations/nodejs-bun-deno.md +10 -2
- package/docs/reference/api/database.md +8 -10
- package/docs/reference/api/env.md +2 -2
- package/docs/reference/api/handlers.md +1 -1
- package/docs/reference/api/html.md +45 -0
- package/docs/reference/api/pages.md +118 -167
- package/docs/reference/api/rewrites.md +5 -5
- package/docs/reference/api/types.md +13 -6
- package/docs/reference/api/workflows.md +48 -0
- package/docs/reference/api.md +7 -1
- package/docs/reference/cli/database.md +22 -10
- package/docs/reference/cli/deploy.md +49 -4
- package/docs/reference/cli/domains.md +7 -3
- package/docs/reference/cli/email.md +3 -1
- package/docs/reference/cli/platform-installation.md +9 -53
- package/docs/reference/cli/platform-security.md +36 -8
- package/docs/reference/cli/platform-users.md +11 -1
- package/docs/reference/cli/platform-zero-trust.md +1 -1
- package/docs/reference/cli/project.md +52 -11
- package/docs/reference/cli/setup.md +8 -10
- package/docs/reference/cli.md +49 -47
- package/docs/reference/config.md +22 -8
- package/docs/reference/resource-inference.md +8 -1
- package/docs/reference/structure.md +5 -0
- package/package.json +52 -25
- package/schema.json +20 -1
- package/skills/void/SKILL.md +60 -54
- package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
- package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
- package/dist/cli/db-execute-process.d.mts +0 -2
- package/dist/cli/db-execute-process.mjs +0 -57
- package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
- package/dist/collect-B6nlSnsb.mjs +0 -1
- package/dist/db-args-BvMwAber.mjs +0 -1
- package/dist/deploy-Do6FWqon.mjs +0 -2
- package/dist/discover-D2KGP3cR.mjs +0 -1
- package/dist/entry-Bwb9ev8K.mjs +0 -113
- package/dist/gen-vhBDHs3q.mjs +0 -1
- package/dist/help-fKPzcTJv.mjs +0 -1
- package/dist/isr-config-DiTnL9Tb.mjs +0 -115
- package/dist/login-DECm3e9b.mjs +0 -1
- package/dist/migrate-C9aoWLvY.mjs +0 -1
- package/dist/operator-cmd-CVfK5U0B.mjs +0 -1
- package/dist/output-D7K9TWIA.mjs +0 -1
- package/dist/platform-args-CMwMoiLp.mjs +0 -1
- package/dist/prepare-DcwigRUS.mjs +0 -1
- package/dist/providers-D5P8j_8D.d.mts +0 -5
- package/dist/resolve-project-YsTH-U9I.mjs +0 -1
- package/dist/static-exports-s7P86Ngp.mjs +0 -354
- package/dist/validate-CZYUIfR-.mjs +0 -1
- package/dist/wrangler-Dq269bjx.mjs +0 -1
- package/docs/guide/platform/development/local.md +0 -120
- package/docs/guide/platform/development/runtime.md +0 -115
- package/docs/guide/platform/development/schema-ci.md +0 -44
- package/docs/guide/platform-development.md +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as PageScanResult } from "../types-
|
|
1
|
+
import { c as PageScanResult } from "../types-RYVujNS6.mjs";
|
|
2
2
|
import { Plugin, ResolvedConfig, UserConfig, ViteDevServer } from "vite";
|
|
3
3
|
//#region src/SourceMap.d.ts
|
|
4
4
|
interface SourceMapOptions {
|
|
@@ -388,7 +388,7 @@ type IslandBuildContext = {
|
|
|
388
388
|
* blocks) and the client build has not. Records the stylesheets of island pages
|
|
389
389
|
* and their layouts for the islands client entry, which builds after it.
|
|
390
390
|
*/
|
|
391
|
-
export declare function recordIslandStyles(context: IslandBuildContext, pageScan: PageScanResult | null, pagesDir: string): void;
|
|
391
|
+
export declare function recordIslandStyles(context: IslandBuildContext, pageScan: PageScanResult | null, pagesDir: string, setupModule?: string): void;
|
|
392
392
|
/** The stylesheets that the server build recorded, or null without a server build. */
|
|
393
393
|
export declare function recordedIslandStyles(pagesDir: string): ReadonlyArray<string> | null;
|
|
394
394
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-
|
|
2
|
+
import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-BxhB4BA-.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { isCSSRequest, normalizePath } from "vite";
|
|
5
5
|
// src/pages/islands-plugin.ts
|
|
@@ -191,9 +191,11 @@ const islandStylesByPagesDir = /* @__PURE__ */ new Map();
|
|
|
191
191
|
* blocks) and the client build has not. Records the stylesheets of island pages
|
|
192
192
|
* and their layouts for the islands client entry, which builds after it.
|
|
193
193
|
*/
|
|
194
|
-
function recordIslandStyles(context, pageScan, pagesDir) {
|
|
194
|
+
function recordIslandStyles(context, pageScan, pagesDir, setupModule) {
|
|
195
195
|
if (!pageScan || context.environment?.config.consumer !== "server") return;
|
|
196
|
-
const
|
|
196
|
+
const roots = islandStyleRoots(pageScan, pagesDir);
|
|
197
|
+
if (setupModule) roots.unshift(setupModule);
|
|
198
|
+
const styles = collectIslandStyles((id) => context.getModuleInfo(id), roots);
|
|
197
199
|
if (styles) islandStylesByPagesDir.set(normalizePath(pagesDir), styles);
|
|
198
200
|
}
|
|
199
201
|
/** The stylesheets that the server build recorded, or null without a server build. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as
|
|
3
|
-
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
|
|
1
|
+
import { C as ValidationError } from "../index-CqF8_p9C.mjs";
|
|
2
|
+
import { a as handlePageMutation, c as safeJsonStringify, i as handlePageGet, n as PageRenderResult, o as isPageResponseError, r as flattenValidationErrors, s as recoverPageHttpException, t as PageObject } from "../protocol-wG7JP5Mm.mjs";
|
|
3
|
+
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, isPageResponseError, recoverPageHttpException, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as ValidationError } from "../validation-error-
|
|
2
|
-
import { a as
|
|
3
|
-
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
|
|
1
|
+
import { t as ValidationError } from "../validation-error-EKI0wMWX.mjs";
|
|
2
|
+
import { a as recoverPageHttpException, i as isPageResponseError, n as handlePageGet, o as safeJsonStringify, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-DhMbnxzy.mjs";
|
|
3
|
+
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, isPageResponseError, recoverPageHttpException, safeJsonStringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as serializePageData, i as
|
|
2
|
-
export { ISLAND_FRONTMATTER_ID, decodePageData, deserializePageData, islandFrontmatterScript, serializePageData };
|
|
1
|
+
import { a as hydrateAppState, c as serializePageData, i as deserializePageData, n as appStateScript, o as islandFrontmatterScript, r as decodePageData, s as requestAppSetup, t as ISLAND_FRONTMATTER_ID } from "../serialize-Dr9B-0yV.mjs";
|
|
2
|
+
export { ISLAND_FRONTMATTER_ID, appStateScript, decodePageData, deserializePageData, hydrateAppState, islandFrontmatterScript, requestAppSetup, serializePageData };
|
package/dist/pages/serialize.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ISLAND_FRONTMATTER_ID, n as
|
|
1
|
+
export { t as ISLAND_FRONTMATTER_ID, n as appStateScript, r as decodePageData, i as deserializePageData, a as hydrateAppState, o as islandFrontmatterScript, s as requestAppSetup, c as serializePageData } from "../serialize-nW4IeEBI.mjs";
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { a as join, n as dirname, r as extname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { t as cloudflareWorkflowName } from "./scan-D2ISAobj.mjs";
|
|
3
|
+
import { s as bindingEntriesForField } from "./wrangler-AyMfdVJK.mjs";
|
|
4
|
+
import { existsSync, readdirSync } from "node:fs";
|
|
5
|
+
import { isWorkflowSettings } from "@void/deploy-core";
|
|
6
|
+
import { availableParallelism } from "node:os";
|
|
7
|
+
import { promisify } from "node:util";
|
|
8
|
+
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
9
|
+
import { brotliCompress, constants as constants$2, gzip } from "node:zlib";
|
|
10
|
+
import { isLocalWorkflow, readWorkflowDeclarations, workflowExports } from "@void/deploy-cloudflare";
|
|
11
|
+
// src/precompress-assets.ts
|
|
12
|
+
const PRECOMPRESSED_ASSET_DIR = ".void-precompressed";
|
|
13
|
+
const brotli = promisify(brotliCompress);
|
|
14
|
+
const gzipAsync = promisify(gzip);
|
|
15
|
+
const COMPRESSIBLE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
16
|
+
".css",
|
|
17
|
+
".html",
|
|
18
|
+
".js",
|
|
19
|
+
".json",
|
|
20
|
+
".mjs",
|
|
21
|
+
".svg",
|
|
22
|
+
".txt",
|
|
23
|
+
".wasm",
|
|
24
|
+
".xml"
|
|
25
|
+
]);
|
|
26
|
+
const MIN_SIZE = 1024;
|
|
27
|
+
const ENCODINGS = [{
|
|
28
|
+
name: "br",
|
|
29
|
+
encode: (source) => brotli(source, { params: {
|
|
30
|
+
[constants$2.BROTLI_PARAM_QUALITY]: 10,
|
|
31
|
+
[constants$2.BROTLI_PARAM_SIZE_HINT]: source.byteLength
|
|
32
|
+
} })
|
|
33
|
+
}, {
|
|
34
|
+
name: "gzip",
|
|
35
|
+
encode: (source) => gzipAsync(source, { level: constants$2.Z_BEST_COMPRESSION })
|
|
36
|
+
}];
|
|
37
|
+
/**
|
|
38
|
+
* Keeps generated variants in the server output. The originals and the platform's
|
|
39
|
+
* deployable client assets stay untouched, including any authored .br and .gz files.
|
|
40
|
+
*/
|
|
41
|
+
async function precompressAssets(dir, output) {
|
|
42
|
+
await rm(output, {
|
|
43
|
+
recursive: true,
|
|
44
|
+
force: true
|
|
45
|
+
});
|
|
46
|
+
let entries;
|
|
47
|
+
try {
|
|
48
|
+
entries = await readdir(dir, {
|
|
49
|
+
recursive: true,
|
|
50
|
+
withFileTypes: true
|
|
51
|
+
});
|
|
52
|
+
} catch (error) {
|
|
53
|
+
if (error.code === "ENOENT") return;
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
const files = entries.filter((entry) => entry.isFile() && COMPRESSIBLE_EXTENSIONS.has(extname(entry.name))).map((entry) => join(entry.parentPath, entry.name));
|
|
57
|
+
let next = 0;
|
|
58
|
+
const work = async () => {
|
|
59
|
+
while (next < files.length) {
|
|
60
|
+
const file = files[next++];
|
|
61
|
+
if (file !== void 0) await precompressFile(file, output, relative(dir, file));
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
await Promise.all(Array.from({ length: Math.min(files.length, availableParallelism()) }, work));
|
|
65
|
+
}
|
|
66
|
+
async function precompressFile(file, output, assetPath) {
|
|
67
|
+
const source = await readFile(file);
|
|
68
|
+
if (source.byteLength < MIN_SIZE) return;
|
|
69
|
+
await Promise.all(ENCODINGS.map(async ({ name, encode }) => {
|
|
70
|
+
const encoded = await encode(source);
|
|
71
|
+
if (encoded.byteLength < source.byteLength) {
|
|
72
|
+
const target = join(output, name, "assets", assetPath);
|
|
73
|
+
await mkdir(dirname(target), { recursive: true });
|
|
74
|
+
await writeFile(target, encoded);
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
// src/cli/build-output-dir.ts
|
|
79
|
+
/**
|
|
80
|
+
* Resolve the top-level build output directory: the first segment of a
|
|
81
|
+
* framework preset's `workerDir`, or `dist` for a Void app.
|
|
82
|
+
*/
|
|
83
|
+
function resolveDistDir(root, fwPreset, buildCommand) {
|
|
84
|
+
if (fwPreset) {
|
|
85
|
+
const topDir = fwPreset.workerDir.split("/")[0];
|
|
86
|
+
const distDir = join(root, topDir);
|
|
87
|
+
if (!existsSync(distDir)) throw new Error(`deploy: Build output directory '${topDir}' not found. Run '${buildCommand ?? fwPreset.buildCommand}' first.`);
|
|
88
|
+
return distDir;
|
|
89
|
+
}
|
|
90
|
+
return join(root, "dist");
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Resolve the worker output subdirectory within the build dir: the rest of a
|
|
94
|
+
* framework preset's `workerDir`, or the first known Void output that exists.
|
|
95
|
+
*/
|
|
96
|
+
function resolveWorkerDirName(distDir, fwPreset, buildCommand) {
|
|
97
|
+
if (fwPreset) {
|
|
98
|
+
const subDir = fwPreset.workerDir.split("/").slice(1).join("/");
|
|
99
|
+
if (!existsSync(join(distDir, subDir))) throw new Error(`deploy: Worker output '${fwPreset.workerDir}' not found. Run '${buildCommand ?? fwPreset.buildCommand}' first.`);
|
|
100
|
+
return subDir;
|
|
101
|
+
}
|
|
102
|
+
for (const name of [
|
|
103
|
+
"ssr",
|
|
104
|
+
"rsc",
|
|
105
|
+
"server"
|
|
106
|
+
]) if (existsSync(join(distDir, name))) return name;
|
|
107
|
+
throw new Error("deploy: Worker output not found. Expected dist/ssr/ or dist/rsc/.");
|
|
108
|
+
}
|
|
109
|
+
// src/shared/collect-files.ts
|
|
110
|
+
/**
|
|
111
|
+
* Every non-directory path under `dir`, depth first. Unlike
|
|
112
|
+
* `readdirSync(dir, { recursive: true })`, it does not descend into
|
|
113
|
+
* symlinked directories.
|
|
114
|
+
*/
|
|
115
|
+
function collectFiles(dir) {
|
|
116
|
+
const files = [];
|
|
117
|
+
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
118
|
+
const fullPath = join(dir, entry.name);
|
|
119
|
+
if (entry.isDirectory()) files.push(...collectFiles(fullPath));
|
|
120
|
+
else files.push(fullPath);
|
|
121
|
+
}
|
|
122
|
+
return files;
|
|
123
|
+
}
|
|
124
|
+
// src/isr-config.ts
|
|
125
|
+
/**
|
|
126
|
+
* Whether a resolved `revalidate` value represents an active ISR configuration.
|
|
127
|
+
* `null`/`undefined`/`0`/`{}` are treated as "no ISR", a positive number or a
|
|
128
|
+
* non-empty path map is treated as "ISR on".
|
|
129
|
+
*/
|
|
130
|
+
function hasRevalidate(r) {
|
|
131
|
+
if (r === null || r === void 0) return false;
|
|
132
|
+
if (typeof r === "number") return r > 0;
|
|
133
|
+
if (typeof r === "object") return Object.keys(r).length > 0;
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Merge `routing.revalidate` with per-page `export const revalidate` rules into
|
|
138
|
+
* the flat fallback map baked into managed and native builds. With page rules,
|
|
139
|
+
* page entries come first and a number config becomes the `*` fallback. At
|
|
140
|
+
* runtime, page requests use the `collectPages()` table instead.
|
|
141
|
+
*/
|
|
142
|
+
function collectRevalidate(config, pageScan) {
|
|
143
|
+
if (config.routing?.isr === false) return;
|
|
144
|
+
const vcRevalidate = config.routing?.revalidate;
|
|
145
|
+
let revalidate;
|
|
146
|
+
if (vcRevalidate !== null && vcRevalidate !== void 0) revalidate = vcRevalidate;
|
|
147
|
+
if (pageScan) {
|
|
148
|
+
const perPageRules = {};
|
|
149
|
+
for (const page of pageScan.pages) if (page.revalidate !== null && page.revalidate !== void 0) {
|
|
150
|
+
const key = page.pattern.replaceAll(/:[A-Za-z0-9_]+\{[^}]*\}/g, "*");
|
|
151
|
+
perPageRules[key] = page.revalidate;
|
|
152
|
+
}
|
|
153
|
+
if (Object.keys(perPageRules).length > 0) {
|
|
154
|
+
if (typeof revalidate === "number") {
|
|
155
|
+
if (!Object.hasOwn(perPageRules, "*")) perPageRules["*"] = revalidate;
|
|
156
|
+
revalidate = perPageRules;
|
|
157
|
+
} else if (typeof revalidate === "object") revalidate = Object.fromEntries([...Object.entries(perPageRules), ...Object.entries(revalidate).filter(([pattern]) => !Object.hasOwn(perPageRules, pattern))]);
|
|
158
|
+
else revalidate = perPageRules;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return revalidate;
|
|
162
|
+
}
|
|
163
|
+
/** A page export wins, then a number config; an object config (or none) gives `undefined`. */
|
|
164
|
+
function resolvePageBuildTtl(page, revalidateConfig) {
|
|
165
|
+
if (page.revalidate !== null && page.revalidate !== void 0) return page.revalidate > 0 ? page.revalidate : 0;
|
|
166
|
+
if (typeof revalidateConfig === "number") return revalidateConfig > 0 ? revalidateConfig : 0;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Build the ordered page table shipped in the deploy manifest as `pages`, in
|
|
170
|
+
* `pageScan.pages` order with raw patterns (catch-alls are not collapsed).
|
|
171
|
+
*
|
|
172
|
+
* Each entry's `revalidate` has three states: N > 0 turns ISR on, 0 is an
|
|
173
|
+
* explicit opt-out, and absent lets dispatch resolve the per-path object config
|
|
174
|
+
* (`manifest.pathRevalidate`) against the request path. Object configs are not
|
|
175
|
+
* baked because one dynamic page can span several entries, including a 0.
|
|
176
|
+
*
|
|
177
|
+
* Built from pages only, so a catch-all page TTL can also cache a non-`/api`
|
|
178
|
+
* `routes/` handler at dispatch (bounded by `shouldBypassIsr` and `isApiPath`).
|
|
179
|
+
*/
|
|
180
|
+
function collectPages(pageScan, revalidateConfig, isrEnabled = true) {
|
|
181
|
+
if (!pageScan || pageScan.pages.length === 0) return;
|
|
182
|
+
return pageScan.pages.map((page) => {
|
|
183
|
+
const ttl = isrEnabled ? resolvePageBuildTtl(page, revalidateConfig) : void 0;
|
|
184
|
+
return ttl === void 0 ? { pattern: page.pattern } : {
|
|
185
|
+
pattern: page.pattern,
|
|
186
|
+
revalidate: ttl
|
|
187
|
+
};
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
// src/workflows/config.ts
|
|
191
|
+
/** Keep authored bindings and add only the missing local definitions. */
|
|
192
|
+
function planWorkflows(config, modules, workerName) {
|
|
193
|
+
const existing = bindingEntriesForField("workflows", config.workflows).map(({ entry }) => entry);
|
|
194
|
+
const byBinding = new Map(existing.map((entry) => [entry.binding, entry]));
|
|
195
|
+
if (byBinding.size !== existing.length) throw new Error("workflows: each configured Workflow needs a unique binding.");
|
|
196
|
+
const declarations = workflowExports(config.exports);
|
|
197
|
+
const bindingByName = new Map(existing.map(({ name, binding }) => [name, binding]));
|
|
198
|
+
const additions = [];
|
|
199
|
+
for (const module of modules) {
|
|
200
|
+
const configured = byBinding.get(module.bindingName);
|
|
201
|
+
if (configured) {
|
|
202
|
+
if (configured.class_name !== module.className || !isLocalWorkflow(configured, workerName)) throw new Error(`workflows: binding '${module.bindingName}' is already configured for another Workflow, but workflows/ requires class '${module.className}'.`);
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
const declaredName = declarations[module.className]?.name;
|
|
206
|
+
const name = typeof declaredName === "string" ? declaredName : cloudflareWorkflowName(module.resourceName, workerName);
|
|
207
|
+
if (bindingByName.has(name)) throw new Error(`workflows: Workflow name '${name}' is already configured for binding '${String(bindingByName.get(name))}'.`);
|
|
208
|
+
bindingByName.set(name, module.bindingName);
|
|
209
|
+
additions.push({
|
|
210
|
+
name,
|
|
211
|
+
binding: module.bindingName,
|
|
212
|
+
class_name: module.className
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
return {
|
|
216
|
+
additions,
|
|
217
|
+
entries: [...existing, ...additions]
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
/** Keep project-local class settings; the platform allocates the account-scoped names. */
|
|
221
|
+
function managedWorkflowDefinitions(config = {}, modules) {
|
|
222
|
+
if (!modules.length && !config.workflows && !config.exports) return [];
|
|
223
|
+
const workerName = typeof config.name === "string" ? config.name : "";
|
|
224
|
+
const { entries } = planWorkflows(config, modules, workerName);
|
|
225
|
+
const definitions = readWorkflowDeclarations({
|
|
226
|
+
...config,
|
|
227
|
+
name: workerName,
|
|
228
|
+
workflows: entries
|
|
229
|
+
});
|
|
230
|
+
const byClass = new Map(modules.map((module) => [module.className, module]));
|
|
231
|
+
return definitions.map((entry) => {
|
|
232
|
+
if (!isLocalWorkflow(entry, workerName) || typeof entry.class_name !== "string") throw new Error("workflows: Void platforms require a local definition in workflows/.");
|
|
233
|
+
const module = byClass.get(entry.class_name);
|
|
234
|
+
if (!module || entry.binding !== module.bindingName) throw new Error("workflows: a managed Workflow binding must match its definition in workflows/.");
|
|
235
|
+
const { class_name: className, binding: bindingName, name: _name, type: _type, script_name: _scriptName, schedules, ...settings } = entry;
|
|
236
|
+
if (schedules !== void 0) settings.schedules = (Array.isArray(schedules) ? schedules : [schedules]).map((cron) => typeof cron === "string" ? { cron } : cron);
|
|
237
|
+
if (!isWorkflowSettings(settings)) throw new Error("workflows: invalid settings for " + className + ".");
|
|
238
|
+
return Object.keys(settings).length ? {
|
|
239
|
+
className,
|
|
240
|
+
bindingName,
|
|
241
|
+
settings
|
|
242
|
+
} : {
|
|
243
|
+
className,
|
|
244
|
+
bindingName
|
|
245
|
+
};
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
// src/workflows/platform.ts
|
|
249
|
+
const FRAMEWORK_WORKFLOWS_ERROR = "workflows: workflows/ is currently supported in Void apps only, not framework adapter mode.";
|
|
250
|
+
export { collectRevalidate as a, resolveDistDir as c, precompressAssets as d, collectPages as i, resolveWorkerDirName as l, managedWorkflowDefinitions as n, hasRevalidate as o, planWorkflows as r, collectFiles as s, FRAMEWORK_WORKFLOWS_ERROR as t, PRECOMPRESSED_ASSET_DIR as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as parsePlatformArgs } from "./platform-args-BnocJDC_.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-
|
|
1
|
+
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-DWvqq3Ws.mjs";
|
|
2
2
|
import { R2_LOCATION_HINTS, isR2LocationHint } from "@void/deploy-core";
|
|
3
3
|
import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@void/platform";
|
|
4
4
|
import { parsePlanSecurityCapInput } from "@void/platform/security-policy";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-
|
|
4
|
-
import { n as OperatorClient } from "./operator-client-
|
|
5
|
-
import { i as humanLines } from "./operator-cmd-
|
|
6
|
-
import { f as formatUrl, y as printSuccess } from "./output-
|
|
7
|
-
import { o as platformPromptAnswer } from "./platform-setup-
|
|
1
|
+
import { u as openBrowser } from "./auth-CeBmolb-.mjs";
|
|
2
|
+
import { a as select, i as password, n as confirm, o as text, r as multiselect } from "./interactive-prompts-EK0dilFu.mjs";
|
|
3
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DtRMGXYY.mjs";
|
|
4
|
+
import { n as OperatorClient } from "./operator-client-BG0VIMMM.mjs";
|
|
5
|
+
import { i as humanLines } from "./operator-cmd-D4YcMKO-.mjs";
|
|
6
|
+
import { f as formatUrl, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
7
|
+
import { o as platformPromptAnswer } from "./platform-setup-DwYITHfY.mjs";
|
|
8
8
|
import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@void/platform";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
@@ -142,11 +142,11 @@ async function configurationInput(args, existing) {
|
|
|
142
142
|
}
|
|
143
143
|
async function runPlatformAuthConfig(args) {
|
|
144
144
|
if (args.action === "recover") {
|
|
145
|
-
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-
|
|
145
|
+
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-DE0nArYy.mjs");
|
|
146
146
|
return runPlatformAuthRecovery(args);
|
|
147
147
|
}
|
|
148
148
|
if (args.action === "protection") {
|
|
149
|
-
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-
|
|
149
|
+
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-BHPV4MUf.mjs");
|
|
150
150
|
return runPlatformProtectionConfig(args);
|
|
151
151
|
}
|
|
152
152
|
const origin = resolveOperatorOrigin(args.connection);
|
package/dist/{platform-auth-protection-DA6Tw8Og.mjs → platform-auth-protection-BHPV4MUf.mjs}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { A as confirm, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
1
|
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
3
|
-
import { t as ensurePlatformAccessToken } from "./cf-access-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
|
|
3
|
+
import { n as confirm } from "./interactive-prompts-EK0dilFu.mjs";
|
|
4
|
+
import { tt as isCancel } from "./dist-BngS28id.mjs";
|
|
5
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DtRMGXYY.mjs";
|
|
6
|
+
import { n as OperatorClient } from "./operator-client-BG0VIMMM.mjs";
|
|
7
|
+
import { y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
8
|
+
import { K as platformOperatorCredentialLabel, Q as preparePlatformAccessSetup, X as checkpointPlatformAccessResources, Z as parsePlatformAccessSetupSpec, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-CKwOg8wz.mjs";
|
|
9
|
+
import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-fyrsq2Ra.mjs";
|
|
10
|
+
import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-zHH3RiIm.mjs";
|
|
10
11
|
import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@void/platform";
|
|
11
12
|
import { createHmac } from "node:crypto";
|
|
12
13
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as resolveOperatorOrigin } from "./operator-auth-
|
|
4
|
-
import {
|
|
1
|
+
import { u as openBrowser } from "./auth-CeBmolb-.mjs";
|
|
2
|
+
import { n as confirm } from "./interactive-prompts-EK0dilFu.mjs";
|
|
3
|
+
import { a as resolveOperatorOrigin } from "./operator-auth-DtRMGXYY.mjs";
|
|
4
|
+
import { tt as isCancel } from "./dist-BngS28id.mjs";
|
|
5
|
+
import { f as formatUrl, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
5
6
|
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
6
|
-
import { K as platformOperatorCredentialLabel, b as platformDatabaseClientUrl, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, y as acquirePlatformDatabaseLifecycleLockConnection } from "./platform-lifecycle-
|
|
7
|
-
import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-
|
|
8
|
-
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-
|
|
7
|
+
import { K as platformOperatorCredentialLabel, b as platformDatabaseClientUrl, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, y as acquirePlatformDatabaseLifecycleLockConnection } from "./platform-lifecycle-CKwOg8wz.mjs";
|
|
8
|
+
import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-fyrsq2Ra.mjs";
|
|
9
|
+
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-zHH3RiIm.mjs";
|
|
9
10
|
import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@void/platform";
|
|
10
11
|
import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
|
|
11
12
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { K as select, L as log, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
1
|
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
3
|
-
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
|
|
3
|
+
import { a as select, o as text } from "./interactive-prompts-EK0dilFu.mjs";
|
|
4
|
+
import { L as log, tt as isCancel } from "./dist-BngS28id.mjs";
|
|
5
|
+
import { f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
6
|
+
import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-CKeeeD82.mjs";
|
|
7
|
+
import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-zHH3RiIm.mjs";
|
|
7
8
|
// src/cli/platform-cmd.ts
|
|
8
9
|
function normalizePlatformInputUrl(input) {
|
|
9
10
|
const value = input.trim();
|
|
@@ -96,19 +97,19 @@ async function runPlatformCommand(_root, args) {
|
|
|
96
97
|
}]
|
|
97
98
|
});
|
|
98
99
|
if (isCancel(group)) return;
|
|
99
|
-
const { parsePlatformArgs } = await import("./platform-args-
|
|
100
|
+
const { parsePlatformArgs } = await import("./platform-args-BSyVZESg.mjs");
|
|
100
101
|
return runPlatformCommand(_root, parsePlatformArgs(["config", group]));
|
|
101
102
|
}
|
|
102
|
-
const { runPlatformPlansConfig } = await import("./platform-plans-config-
|
|
103
|
+
const { runPlatformPlansConfig } = await import("./platform-plans-config-BSI-6Inu.mjs");
|
|
103
104
|
await runPlatformPlansConfig(args);
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
106
|
-
const { runPlatformAuthConfig } = await import("./platform-auth-config-
|
|
107
|
+
const { runPlatformAuthConfig } = await import("./platform-auth-config-BbfNhjBc.mjs");
|
|
107
108
|
await runPlatformAuthConfig(args);
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
111
|
if (args.subcommand === "operator") {
|
|
111
|
-
const { runOperatorCommand } = await import("./operator-cmd-
|
|
112
|
+
const { runOperatorCommand } = await import("./operator-cmd-CR3Q9k4c.mjs");
|
|
112
113
|
await runOperatorCommand(args);
|
|
113
114
|
return;
|
|
114
115
|
}
|
|
@@ -176,7 +177,7 @@ async function runPlatformCommand(_root, args) {
|
|
|
176
177
|
console.log(`Capabilities: ${Object.entries(discovery.capabilities).filter(([, enabled]) => enabled).map(([name]) => name).join(", ")}`);
|
|
177
178
|
return;
|
|
178
179
|
}
|
|
179
|
-
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-
|
|
180
|
+
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-BoCEYy2w.mjs");
|
|
180
181
|
await runPlatformLifecycleCommand(args);
|
|
181
182
|
}
|
|
182
183
|
function showSavedInstallationStatus(manifest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-
|
|
1
|
+
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-CLRU3BRb.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as normalizePlatformApiUrl } from "./platform-registry-
|
|
1
|
+
import { c as normalizePlatformApiUrl } from "./platform-registry-zHH3RiIm.mjs";
|
|
2
2
|
import { parsePlatformDiscoveryDocument } from "@void/platform";
|
|
3
3
|
// src/cli/platform-discovery.ts
|
|
4
4
|
/** Discovery was refused because the platform traffic gate is closed. */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { A as confirm, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
1
|
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { n as confirm, o as text } from "./interactive-prompts-EK0dilFu.mjs";
|
|
3
|
+
import { tt as isCancel } from "./dist-BngS28id.mjs";
|
|
4
|
+
import { g as note, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
5
|
+
import { A as recordResource, D as createPlatformHealthProbeToken, G as assertPlatformOperatorCredentialCanApplyPlan, K as platformOperatorCredentialLabel, M as recordPlatformWorkerTraffic, N as createPlatformInstallPlan, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, t as assertNoninteractivePlatformMutationAcknowledged, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-CKwOg8wz.mjs";
|
|
6
|
+
import { f as verifyPlatformInstallationOwnership, o as resolveInstalledPlatformManifest, u as selectAuthoritativePlatformManifest } from "./platform-management-fyrsq2Ra.mjs";
|
|
7
|
+
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-zHH3RiIm.mjs";
|
|
7
8
|
import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@void/platform";
|
|
8
9
|
// src/cli/platform-domain.ts
|
|
9
10
|
function platformDomainTarget(manifest, domain, zone, dedicatedZone) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-
|
|
1
|
+
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-CKwOg8wz.mjs";
|