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
package/docs/reference/api.md
CHANGED
|
@@ -20,10 +20,12 @@ Use this reference to find public imports, signatures, and return types. For set
|
|
|
20
20
|
| -------------------------------------------------- | --------------------------------------------------------------- |
|
|
21
21
|
| [Plugin and configuration](./api/plugin.md) | Add Void to Vite and configure your app. |
|
|
22
22
|
| [Handlers and middleware](./api/handlers.md) | HTTP routes, validation, scheduled jobs, queues, and rendering. |
|
|
23
|
+
| [HTML templates](./api/html.md) | Escape dynamic text in HTML responses and generated images. |
|
|
23
24
|
| [Rewrites](./api/rewrites.md) | Serve another route while keeping the requested URL. |
|
|
24
25
|
| [Authentication](./api/auth.md) | Sessions, users, and the auth client. |
|
|
25
26
|
| [Fetch client](./api/client.md) | Typed requests and errors. |
|
|
26
27
|
| [Durable State and WebSockets](./api/durable.md) | Persistent objects and typed connections. |
|
|
28
|
+
| [Workflows](./api/workflows.md) | Define jobs that can sleep and resume. |
|
|
27
29
|
| [Database and seeding](./api/database.md) | Queries, operators, and seed scripts. |
|
|
28
30
|
| [KV, storage, AI, and logging](./api/resources.md) | Resource clients, cache revalidation, and logs. |
|
|
29
31
|
| [Deployment artifacts](./api/deploy.md) | Package built apps for managed deployment. |
|
|
@@ -45,11 +47,14 @@ Import Void's app-facing APIs from these paths:
|
|
|
45
47
|
| `void/ws` | `defineRoom`, `defineWebSocket`, `connect`, WebSocket context, connection and action types |
|
|
46
48
|
| `void/ws/server` | `getRoom`, `RoomHandle`, `RoomOptions`, `RoomPath`. Server-only: call room actions from routes, auth hooks, queues and cron jobs. |
|
|
47
49
|
| `void/durable` | `defineDurableState`, `defineDurableObject`, typed state/RPC/context/migration types |
|
|
50
|
+
| `void/workflows` | Define and start Workflows in server code with `defineWorkflow` and `defineWorkflowEntrypoint`. Includes `WorkflowParamsError` and the Workflow types. |
|
|
48
51
|
| `void/sse` | `eventStream`, `formatSse`, `formatSseText`, `getLastEventId`, `SseStreamClosedError`, SSE message and stream types |
|
|
49
52
|
| `void/sse/client` | `connectEventStream`, browser `EventSource` wrapper types |
|
|
50
53
|
| `void/live` | `defineLiveStream`, SSE topic fanout runtime types. Server-only. |
|
|
51
54
|
| `void/live/client` | `connectLiveStream`, browser helper for one SSE connection plus POST subscribe/unsubscribe control. |
|
|
52
55
|
| `void/response` | `convertReturnValue` |
|
|
56
|
+
| `void/html` | `html` template tag, `raw` helper for trusted markup, and `HtmlEscapedString` type. See [HTML Templates](./api/html.md). |
|
|
57
|
+
| `void/jsx` | Hono JSX components, helpers, types, and automatic JSX runtimes. See [JSX handlers](../guide/server-routing.md#jsx-handlers). |
|
|
53
58
|
| `void/validator` | `runValidation`, `ValidatorSlots`, `HandlerInput` |
|
|
54
59
|
| `void/drizzle-zod` | Re-exports [`drizzle-zod`](https://orm.drizzle.team/docs/zod) for schema-derived Zod validators for Drizzle tables |
|
|
55
60
|
| `void/drizzle-valibot` | Re-exports [`drizzle-valibot`](https://orm.drizzle.team/docs/valibot) for schema-derived Valibot validators for Drizzle tables |
|
|
@@ -63,7 +68,7 @@ Import Void's app-facing APIs from these paths:
|
|
|
63
68
|
| `void/kv` | `kv`, `createKV`, typed KV client/map types |
|
|
64
69
|
| `void/storage` | `storage`, `createStorage` for the inferred R2 binding or a specific `R2Bucket` |
|
|
65
70
|
| `void/ai` | `ai`, `VoidAi`, model input and response types |
|
|
66
|
-
| `void/limits` | `UsageLimit`, `UsageLimitData`, and `readUsageLimit`. AI and Sandbox limits reject with `UsageLimit`; uncaught limits in Void routes and Pages actions return structured HTTP 429 responses.
|
|
71
|
+
| `void/limits` | `UsageLimit`, `UsageLimitData`, and `readUsageLimit`. AI, Browser Run, and Sandbox limits reject with `UsageLimit`; uncaught limits in Void routes and Pages actions return structured HTTP 429 responses. |
|
|
67
72
|
| `void/isr` | `revalidate(options)` for on-demand ISR cache invalidation |
|
|
68
73
|
| `void/log` | `logger` structured logging helper |
|
|
69
74
|
| `void/routes` | [`routeUrl()`](./api/types.md#routeurl-path-options), `RouteDestination`, `RoutePath`, `RouteOptions`, `RouteUrl`, `Href`, `RouteUrlInput`, and generated route maps |
|
|
@@ -74,3 +79,4 @@ Import Void's app-facing APIs from these paths:
|
|
|
74
79
|
| `void/env` | `defineEnv`, `env`, schema helpers (`string`, `number`, `boolean`, `url`, `email`, `oneOf`, `json`), and global Cloudflare env types |
|
|
75
80
|
| `void/nitro` | Nitro module for Nuxt and Analog. Add `'void/nitro'` to the Nitro `modules` so server routes get the app's `void/db` and `@schema` |
|
|
76
81
|
| `void/sveltekit` | SvelteKit integration helpers: `withVoidTSConfig()` and `mergeVoidSvelteKitTsconfig()` |
|
|
82
|
+
| `void/image` | `renderImage`, `renderOgImage`, `ImageResponse`, `OgImageResponse`, `ImageInput`, `ImageFont`, and rendering and response option types. See [Image Generation](../guide/image-generation.md) and [Open Graph Images](../guide/og-images.md). |
|
|
@@ -71,7 +71,7 @@ For destructive statements (`DELETE`, `UPDATE`, `DROP`, etc.) when running in a
|
|
|
71
71
|
|
|
72
72
|
### JSON output {#void-db-execute-json}
|
|
73
73
|
|
|
74
|
-
Pass `--json` to
|
|
74
|
+
Pass `--json` to write one JSON array to stdout, with an entry per SQL statement. Diagnostics go to stderr. On failure the command exits with a nonzero status and leaves stdout empty.
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
77
|
void db execute --json "select count(*) as total from users; select id from users limit 1"
|
|
@@ -92,18 +92,30 @@ void db execute --json "select count(*) as total from users; select id from user
|
|
|
92
92
|
]
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
Each entry has the same
|
|
95
|
+
In the example above, the first entry contains the count and the second contains the selected ID. Each entry has the same fields as a D1 result or `wrangler d1 execute --json`:
|
|
96
96
|
|
|
97
|
-
- `results
|
|
98
|
-
- `success
|
|
99
|
-
- `meta
|
|
97
|
+
- `results` contains the rows, or an empty array if the statement returned none.
|
|
98
|
+
- `success` is `true` for a statement that ran.
|
|
99
|
+
- `meta` contains the database’s statement metadata. Local D1 reports `changes`, `last_row_id`, and `duration`. Remote D1 returns the D1 API’s values. PostgreSQL reports `command` and `rowCount`. MySQL reports `affectedRows` and `insertId` for writes.
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
When reading results from a script, use these representations:
|
|
102
|
+
|
|
103
|
+
| Database value | JSON output |
|
|
104
|
+
| --------------------------------------------------- | --------------------------------------------------- |
|
|
105
|
+
| SQL `NULL`, text, ordinary numbers | `null`, strings, and numbers |
|
|
106
|
+
| Binary data | An array of bytes |
|
|
107
|
+
| Integers outside the safe range (±9007199254740991) | A string containing the digits |
|
|
108
|
+
| Non-finite numbers | `"Infinity"`, `"-Infinity"`, or `"NaN"` |
|
|
109
|
+
| PostgreSQL `bigint` and `numeric` | Strings, including inside arrays |
|
|
110
|
+
| Numbers inside PostgreSQL `json` or `jsonb` | JSON numbers with the digits returned by PostgreSQL |
|
|
111
|
+
| MySQL dates and times | Strings such as `"2024-01-02 03:04:05.123456"` |
|
|
112
|
+
|
|
113
|
+
A MySQL `CALL` can return several result sets. Their rows appear together in one entry. This also applies to a prepared `CALL` and to MariaDB compound statements such as `BEGIN NOT ATOMIC … END` or `IF … END IF` run outside a stored program.
|
|
102
114
|
|
|
103
115
|
`--json` is not available for a direct Cloudflare D1 import of a file larger than 100 KB, which returns no rows. On a Void platform D1 database, `--remote --json` runs one statement per command; a `CREATE TRIGGER` counts as one statement. On MySQL, `--json` stops without running anything when it cannot tell which results belong to which statement:
|
|
104
116
|
|
|
105
|
-
-
|
|
106
|
-
-
|
|
117
|
+
- Prepare statements from quoted SQL before executing them. After a `CALL`, prepare the statement again. Omit `--json` when preparing from a variable such as `@sql`.
|
|
118
|
+
- Set `sql_mode` to a quoted list such as `'ANSI_QUOTES'` or change it in a separate command if ambiguous backslash escaping prevents JSON output.
|
|
107
119
|
|
|
108
120
|
## `void db migrate` {#void-db-migrate}
|
|
109
121
|
|
|
@@ -111,7 +123,7 @@ If a statement fails, stdout stays empty.
|
|
|
111
123
|
void db migrate [--remote]
|
|
112
124
|
```
|
|
113
125
|
|
|
114
|
-
Apply pending migrations to the local database
|
|
126
|
+
Apply pending migrations to the local database. To allow a destructive migration, add `-- void:allow-destructive` on its own line in the SQL file.
|
|
115
127
|
|
|
116
128
|
Pass `--remote` to apply pending migrations to the saved target. Hosted projects require a Void login and link. Direct Cloudflare D1 projects use the binding's configured migration directory, table, and pattern. The D1 binding must set `migrations_dir`. Direct PostgreSQL and MySQL projects use the shell `DATABASE_URL`.
|
|
117
129
|
|
|
@@ -121,7 +133,7 @@ Pass `--remote` to apply pending migrations to the saved target. Hosted projects
|
|
|
121
133
|
void db studio [--remote]
|
|
122
134
|
```
|
|
123
135
|
|
|
124
|
-
|
|
136
|
+
Browse and edit your data in [Drizzle Studio](https://orm.drizzle.team/docs/drizzle-kit-studio).
|
|
125
137
|
|
|
126
138
|
By default, targets the local database. Pass `--remote` to open Studio against the deployed database:
|
|
127
139
|
|
|
@@ -12,6 +12,7 @@ void deploy [--project <name>] [--dir <path>] [--spa] [--skip-build] [--skip-mig
|
|
|
12
12
|
void deploy [--platform <cloudflare|void>] [--require-email]
|
|
13
13
|
void deploy --platform cloudflare --atomic
|
|
14
14
|
void deploy --platform cloudflare --provision
|
|
15
|
+
void deploy --platform cloudflare --preview <name> [--json]
|
|
15
16
|
```
|
|
16
17
|
|
|
17
18
|
Auto-detects your project type and chooses the right pipeline. See [Supported App Types](../../guide/app-types.md) and [Deployment](../../guide/deployment.md) for details.
|
|
@@ -38,10 +39,12 @@ For Drizzle projects, deploy performs a read-only schema drift check. If a new m
|
|
|
38
39
|
| `--skip-migrations` | Deploy without applying application or authentication SQL migrations; supported on Cloudflare and Void platforms |
|
|
39
40
|
| `--require-email` | Fail when email cannot be set up instead of deploying without it; requires `--platform cloudflare` |
|
|
40
41
|
| `--provision` | Run resource provisioning again even when every resource exists; requires `--platform cloudflare` |
|
|
41
|
-
| `--atomic` |
|
|
42
|
+
| `--atomic` | Send traffic before checking readiness on an existing Worker with Durable Objects or Workflows |
|
|
43
|
+
| `--preview <name>` | Deploy a static site or SPA to a Cloudflare Preview; production is unchanged ([more](#void-deploy-preview)) |
|
|
44
|
+
| `--json` | With `--preview`, print one JSON object on stdout; everything else goes to stderr |
|
|
42
45
|
| `--debug` | Mirror the structured deploy log to stderr (also written to `~/.void/logs/`) |
|
|
43
46
|
|
|
44
|
-
`--atomic`
|
|
47
|
+
Void stages Cloudflare deployments by default. Use `--atomic` for a single deployment when Cloudflare cannot stage a class change. If this Worker needs an atomic deploy every time, set `deploy: { cloudflare: { mode: 'atomic' } }` in `void.config.ts`.
|
|
45
48
|
|
|
46
49
|
Use `--skip-migrations` when you run migrations separately or share a database with a preview. The code must work with the database's current schema. The next deploy without this flag applies pending migrations.
|
|
47
50
|
|
|
@@ -83,7 +86,9 @@ is configured. See [Deploy to another Void platform](../../guide/deployment.md#d
|
|
|
83
86
|
|
|
84
87
|
### Security notice
|
|
85
88
|
|
|
86
|
-
|
|
89
|
+
On a platform with [security audits](../../guide/platform/administration/security-audits.md), the output includes the scan state and open urgent findings. Your deployment is already live. The audit notice leaves the exit code unchanged.
|
|
90
|
+
|
|
91
|
+
A signed-in developer sees titles and files. In CI or with reader access, the notice shows counts and finding IDs. To inspect the findings, run `void project security list --urgent`.
|
|
87
92
|
|
|
88
93
|
## `void deploy --platform cloudflare` {#void-deploy-platform-cloudflare}
|
|
89
94
|
|
|
@@ -110,7 +115,7 @@ Void signs you in through your browser when needed and saves the selected accoun
|
|
|
110
115
|
|
|
111
116
|
After `--skip-migrations`, direct Cloudflare deployment history shows the applied migration state as unknown. Rolling back code doesn't reverse database changes.
|
|
112
117
|
|
|
113
|
-
When using an API token, grant **Workers Admin** to create the Worker or **Workers Editor** to update it. See [Cloudflare CI credentials](../../integrations/cloudflare.md#deploying-from-ci) for zone and resource permissions. Commit `void.lock.json` after the first deploy before using other machines or CI.
|
|
118
|
+
When using an API token, grant **Workers Admin** to create the Worker or **Workers Editor** to update it. See [Cloudflare CI credentials](../../integrations/cloudflare.md#deploying-from-ci) for zone and resource permissions. Commit `void.lock.json` after the first deploy before using other machines or CI. If the deploy creates `void.config.ts`, commit it and any `.gitignore` changes too.
|
|
114
119
|
|
|
115
120
|
Use `void secret put <NAME>` for production server values. Local `.env` values are never deployed. Run `void db generate` and commit schema changes before deploying.
|
|
116
121
|
|
|
@@ -119,3 +124,43 @@ Sandbox requires [Workers Paid](https://dash.cloudflare.com/?to=/:account/worker
|
|
|
119
124
|
For email, set `email.from` and run `void email setup --platform cloudflare` locally. Commit the lock file and pass `--require-email` in CI. See [Email setup](../../guide/email/domains.md#your-own-cloudflare-account).
|
|
120
125
|
|
|
121
126
|
For Access credentials, Hyperdrive permissions, readiness, and rollback, see [Cloudflare deployment](../../integrations/cloudflare.md#deploy-to-your-own-cloudflare-account).
|
|
127
|
+
|
|
128
|
+
## `void deploy --platform cloudflare --preview <name>` {#void-deploy-preview}
|
|
129
|
+
|
|
130
|
+
Deploy a static site or SPA to a separate URL on its existing Worker. You can share the preview without changing production traffic, routes, or schedules:
|
|
131
|
+
|
|
132
|
+
```sh
|
|
133
|
+
void deploy --platform cloudflare --preview pr-64
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Use the same `--dir` and `--spa` settings you use for production. To reuse build output, pass `--skip-build` or point `--dir` at the built site.
|
|
137
|
+
|
|
138
|
+
Before the first preview:
|
|
139
|
+
|
|
140
|
+
- Deploy the Worker to production once with `void deploy --platform cloudflare`. A preview never creates the Worker.
|
|
141
|
+
- Set the Worker name: `cloudflare.name` in `void.config.ts`, or `name` in `wrangler.jsonc`.
|
|
142
|
+
- Pin the account with `cloudflare.account_id` (`account_id` in `wrangler.jsonc`) or `CLOUDFLARE_ACCOUNT_ID`.
|
|
143
|
+
- Workers that serve only routes or custom domains need `preview_urls: true`.
|
|
144
|
+
|
|
145
|
+
Static previews have no access to the Worker’s bindings, variables, or secrets.
|
|
146
|
+
|
|
147
|
+
Use lowercase letters, digits and single hyphens, starting with a letter. `<name>-<worker>` must fit in 63 characters. Name previews after the pull request, such as `pr-64`.
|
|
148
|
+
|
|
149
|
+
Use `--json` in CI to get the preview URL:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"type": "preview",
|
|
154
|
+
"workerName": "my-app",
|
|
155
|
+
"previewName": "pr-64",
|
|
156
|
+
"previewUrl": "https://pr-64-my-app.my-team.workers.dev",
|
|
157
|
+
"deploymentId": "…",
|
|
158
|
+
"deploymentUrl": "https://…-my-app.my-team.workers.dev"
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Share `previewUrl` with reviewers. It stays the same for a given name and can take a few seconds to serve the latest deploy. Use `deploymentUrl` in the same CI job when available: it points directly to that deployment and can be `null`. On failure the command exits nonzero, writes the error to stderr, and leaves stdout empty.
|
|
163
|
+
|
|
164
|
+
Preview URLs are public. Protect them with [Cloudflare Access](https://developers.cloudflare.com/workers/configuration/cloudflare-access/) when needed. Workers Free allows 100 previews per Worker and Workers Paid 500; beyond that, Cloudflare deletes the one deployed to least recently.
|
|
165
|
+
|
|
166
|
+
Remove a preview with [`void project preview delete`](./project.md#void-project-preview-delete-name). See [Pull request previews](../../integrations/cloudflare.md#pull-request-previews) for a GitHub Actions workflow.
|
|
@@ -11,9 +11,13 @@ outline: deep
|
|
|
11
11
|
void domain add <hostname> [--project <name>]
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
To serve your app at `shop.example.com`, run:
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
```sh
|
|
17
|
+
void domain add shop.example.com
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
For a hosted project, add the DNS records printed by the CLI. For a direct Cloudflare deployment, Void adds the domain route immediately and Cloudflare manages DNS and TLS in the selected account’s zone. If your config has a legacy `route` field, convert it to a `routes` array first. Register each subdomain individually.
|
|
17
21
|
|
|
18
22
|
## `void domain delete` {#void-domain-delete}
|
|
19
23
|
|
|
@@ -39,4 +43,4 @@ void domain status <hostname> [--project <name>] [--verbose]
|
|
|
39
43
|
|
|
40
44
|
Show domain verification and TLS certificate status, including DNS records to configure and any required action. Domains activate automatically once verification and certificate issuance finish.
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
On direct Cloudflare, status shows whether the route is configured in `void.config.ts`. Check certificate issuance in the Cloudflare dashboard. The `--project` option applies to hosted projects.
|
|
@@ -128,7 +128,9 @@ Disable the domain assignment and record cleanup. Zone resources used by another
|
|
|
128
128
|
void email status --platform cloudflare
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
Use this command to check whether the domain in `email.from` is ready to send. It checks your permissions and email binding. If the app has `email/` handlers, it also checks routing and handler addresses. An incomplete or unverifiable setup gives a nonzero exit status.
|
|
132
|
+
|
|
133
|
+
On Workers Free, an app with inbound handlers can be ready to send to verified recipients. A sending-only app needs a domain onboarded for Email Sending. After upgrading to Workers Paid, run `void email setup --platform cloudflare`.
|
|
132
134
|
|
|
133
135
|
`void email status` reads only your own Cloudflare account, so `--platform cloudflare` is required. On the Void platform, use `void email usage` and `void email destinations`.
|
|
134
136
|
|
|
@@ -37,58 +37,20 @@ void platform install [options] [--yes]
|
|
|
37
37
|
| `--runtime <path>` | Deploy a locally built, integrity-checked runtime directory |
|
|
38
38
|
| `--yes` | Acknowledge Cloudflare changes in non-interactive use |
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Follow [Install a Void Platform](../../guide/self-hosted-platform.md) for prerequisites and guided setup. Use a dedicated empty PostgreSQL database and choose a login method. Unattended installs default to GitHub.
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Use `--workers-dev` to try the platform before setting up a domain. Omit `--application-domain`, `--zone`, and `--dedicated-zone` in this mode. For a separately deployed dashboard, pass its HTTPS origin with `--dashboard-url` to allow login callbacks.
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Cloudflare browser login works for read-only plans and workers.dev installs with the default API hostname. To create a zone or write DNS, supply a management token interactively or through `CLOUDFLARE_API_TOKEN` or `CF_API_TOKEN`. The installed platform needs its own runtime token. See [Credentials](../../guide/platform/installation/credentials.md) and [Install from CI](../../guide/platform/installation/ci.md) for the required permissions and variables.
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
For login configuration, use `--auth-config` or `--login-methods` with the Access protection flags. Set the default access for new apps with [`--app-access`](../../guide/platform/installation/setup.md#choose-who-can-access-apps). To enable email, set both `VOID_EMAIL_SENDER_DOMAIN` and `VOID_EMAIL_SHARED_ZONE_ID`.
|
|
47
47
|
|
|
48
|
-
Use `--
|
|
49
|
-
dashboard separately. The URL must be an HTTPS origin without credentials, a
|
|
50
|
-
path, query, or fragment. Void permits that origin's login callbacks and saves
|
|
51
|
-
it for later maintenance; it does not deploy a dashboard Worker. Omission keeps
|
|
52
|
-
an existing installation's saved dashboard origin.
|
|
53
|
-
|
|
54
|
-
`--plan` previews resource names, login methods, default app access, the login callback URL, database configuration, and credential requirements. An existing Hyperdrive shows its database and configuration name. Setup links are shown during guided credential setup. Completed previews save nonsecret installation choices locally. Rerun `void platform install` to choose a saved plan and review a fresh check of Cloudflare state, or run the install or resume command printed at the end. Started installations use their saved checkpoints; completed installations are excluded from the chooser. For login configuration, use either `--auth-config` or `--login-methods` with the Access protection flags.
|
|
55
|
-
|
|
56
|
-
App access is configured before traffic opens. With platform protection enabled,
|
|
57
|
-
the installer recommends reusing its company policy; otherwise it defaults to
|
|
58
|
-
public apps. Use `--app-access custom` to select separate hosting-account policies.
|
|
59
|
-
Public apps in a Default-Deny account receive scoped public Access rules. The
|
|
60
|
-
installer explains and collects the encrypted management credential when needed;
|
|
61
|
-
scripts supply `VOID_PLATFORM_APP_ACCESS_TOKEN` or `appAccess.tokenEnv` in the
|
|
62
|
-
authentication file. Upgrades preserve administrator settings.
|
|
63
|
-
|
|
64
|
-
New resources use `void-<name>-<role>` names; choose an unused installation name. The installer opens setup pages for missing credentials and reuses values already supplied.
|
|
65
|
-
|
|
66
|
-
During Access setup, choose existing company policies or **Create in Cloudflare**
|
|
67
|
-
for manual setup instructions and an account dashboard link. After you save the
|
|
68
|
-
policy and confirm completion, Void reloads the list so you can select it and
|
|
69
|
-
continue in the same run. When Void creates the Access applications, **Allow my
|
|
70
|
-
company’s email domain** creates an Allow policy for the domains you enter and
|
|
71
|
-
selects it. **Refresh list** reloads policies created in another window. Your
|
|
72
|
-
identity-provider choice and still-available policy selections are retained. If a
|
|
73
|
-
selected policy does not restrict sign-in to company identities, Void explains why
|
|
74
|
-
and asks again.
|
|
75
|
-
|
|
76
|
-
Installation progress and partial credentials are saved encrypted locally. Rerun the installer to continue unfinished setup, or pass `--resume --name <id>`. Use lifecycle commands for completed installations.
|
|
77
|
-
|
|
78
|
-
Use an empty PostgreSQL database dedicated to the installation. You can correct a failed initial connection, but after the database is claimed or Hyperdrive is provisioned, commands reject a different URL.
|
|
79
|
-
|
|
80
|
-
Choose whether Void creates Hyperdrive or uses an existing configuration. An existing Hyperdrive must point to the platform database with SQL result caching disabled. Supply a database owner URL for migrations. See [Use an existing Hyperdrive](../../guide/platform/installation/prerequisites.md#use-an-existing-hyperdrive) for setup and [Install from CI](../../guide/platform/installation/ci.md) for unattended inputs.
|
|
81
|
-
|
|
82
|
-
Recovery secrets are encrypted using your system keychain. Without one, supply a base64-encoded 32-byte `VOID_PLATFORM_RECOVERY_KEY`. Keep the original credentials in protected CI secrets for recovery.
|
|
83
|
-
|
|
84
|
-
If a newly created zone is waiting for registrar delegation, resume after it becomes active:
|
|
48
|
+
Use `--plan` to preview resources and credentials. Run `void platform install` to select a saved plan. To continue an interrupted installation, including one waiting for DNS delegation, run:
|
|
85
49
|
|
|
86
50
|
```sh
|
|
87
51
|
void platform install --resume --name <installation-id>
|
|
88
52
|
```
|
|
89
53
|
|
|
90
|
-
See [Self-host a Void platform](../../guide/self-hosted-platform.md) for prerequisites, token scope, exact footprint, domain behavior, and an end-to-end walkthrough.
|
|
91
|
-
|
|
92
54
|
## `void platform domain set` {#void-platform-domain-set}
|
|
93
55
|
|
|
94
56
|
```sh
|
|
@@ -144,24 +106,18 @@ After discovery on another machine, set `VOID_PLATFORM_DATABASE_URL`. See [Manag
|
|
|
144
106
|
| `enable` | Redeploys and verifies the platform Workers, then restores traffic |
|
|
145
107
|
| `uninstall` | Blocks traffic and removes eligible resources, retaining data by default |
|
|
146
108
|
|
|
147
|
-
Repair and upgrade
|
|
109
|
+
Repair and upgrade keep a disabled platform paused.
|
|
148
110
|
|
|
149
111
|
Replacing platform Worker configuration changed outside Void requires interactive approval. Follow [Platform Workers changed outside Void](../../guide/platform/installation/maintenance.md#workers-changed-outside-void) if maintenance asks for it.
|
|
150
112
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
Without `--runtime`, the CLI uses its packaged platform version.
|
|
113
|
+
The CLI uses its packaged runtime by default. To select a [custom build](https://github.com/voidzero-dev/void/blob/main/platform/meta/development/runtime.md#deploying-your-runtime), pass its directory with `--runtime`. Relative paths resolve from your current directory.
|
|
154
114
|
|
|
155
115
|
Platform migrations only move forward. Void checks compatibility before updating the database and tells you if an intermediate release is needed.
|
|
156
116
|
|
|
157
117
|
An upgrade completes after the new Workers pass health checks. If rollout fails, Void attempts to restore the previous Workers. Retrying does not repeat completed migrations.
|
|
158
118
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
If project Zero Trust is on and no platform user exists yet, uninstall turns it off and deletes its Access applications first. Run it on the computer that installed the platform.
|
|
162
|
-
|
|
163
|
-
Uninstall verifies remote ownership before removing anything. Data resources are retained unless you pass `--purge-data`. Workers, the Queues they use, R2, AI Gateway, DNS records, routes, custom domains, adopted resources, external PostgreSQL, and zones are retained for manual review. `--keep-zone` is deprecated and has no effect; uninstall always keeps zones.
|
|
119
|
+
For rollback, pass the earlier runtime directory with `--runtime`. If the installed version is a custom build, also supply its files with `--from-runtime`.
|
|
164
120
|
|
|
165
|
-
|
|
121
|
+
Preview uninstall with `--plan`. By default, uninstall retains data. Use `--purge-data` to remove eligible data resources, or `--purge-resources` to remove installer-owned infrastructure as well. Zones, adopted resources, and external PostgreSQL are retained. The legacy `--keep-zone` flag has no effect.
|
|
166
122
|
|
|
167
123
|
See [Disable and Uninstall](../../guide/platform/installation/uninstall.md#remove-retained-resources) for the full removal policy and the cleanup order.
|
|
@@ -17,7 +17,7 @@ void platform upgrade [id] --security-audits
|
|
|
17
17
|
void platform repair [id] --security-audits
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Install with a runtime token that has the [Containers permissions](../../guide/platform/installation/credentials.md) listed for security audits. Once the scanner is installed, choose which projects to scan. Uninstall removes the scanner, container applications, scan copies, and copied scanner images.
|
|
21
21
|
|
|
22
22
|
Then check the account and choose a mode:
|
|
23
23
|
|
|
@@ -30,20 +30,38 @@ void platform security status
|
|
|
30
30
|
|
|
31
31
|
`probe` checks that the account can run scans and reports each missing requirement. `policy` selects which projects are scanned, and `--plan` shows how many projects the change reaches. Turning the mode on runs the probe first and refuses when it fails.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
To scan a protected project on every deployment while the rest of your platform scans public projects, set its rule to `always`. To use the platform mode again, set it to `inherit`.
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
void platform security policy --project <project-id> always
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The `never` rule skips deploy scans, rescans, sweeps, backfill, and local checks. A [scan before going public](/guide/platform/administration/security-audits#scan-before-public) still applies. Project rules take effect while the platform scan mode is on. Use `status` to see overrides or `rescan` to scan a project immediately.
|
|
34
40
|
|
|
35
41
|
## Models, limits, and spending {#models-limits-budget}
|
|
36
42
|
|
|
37
43
|
```sh
|
|
38
44
|
void platform security models [--default <id>] [--block <id,...>] [--unblock <id,...>] [--accept-provider-notice] [--plan] [--yes]
|
|
39
45
|
void platform security models --provider <openai|anthropic> (--key-stdin | --remove-key) [--plan] [--yes]
|
|
40
|
-
void platform security limits [--concurrency <n>] [--scan-timeout <minutes>] [--plan] [--yes]
|
|
46
|
+
void platform security limits [--concurrency <n>] [--scan-timeout <minutes>] [--scan-input-tokens <n>] [--scan-calls <n>] [--scan-usd <usd|auto>] [--plan] [--yes]
|
|
41
47
|
void platform security budget [--platform-usd <n> | --platform-off] [--project-default-usd <n> | --project-caps <on|off>] [--plan] [--yes]
|
|
42
48
|
void platform security budget --project <project-id> (--usd <n> | --clear) [--plan] [--yes]
|
|
43
49
|
void platform security model <project-id> <model-id|--default> [--accept-provider-notice] [--plan] [--yes]
|
|
44
50
|
```
|
|
45
51
|
|
|
46
|
-
|
|
52
|
+
**Models.** Accept the provider notice with `--accept-provider-notice` when choosing a third-party model. To bill your own OpenAI or Anthropic account, pipe the key from your password manager to `models --provider <name> --key-stdin --yes`. Void saves it after a successful test call. Use `--remove-key` to switch back. See [Use your own provider key](/guide/platform/administration/security-audits#own-provider-key).
|
|
53
|
+
|
|
54
|
+
| Scan limit | What it controls |
|
|
55
|
+
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
56
|
+
| `--concurrency` | Scans running at once. Each Cloudflare model runs one at a time. |
|
|
57
|
+
| `--scan-timeout` | Minutes per scan: 5–60 (default 60). |
|
|
58
|
+
| `--scan-input-tokens` | Input tokens per scan, including cached tokens. |
|
|
59
|
+
| `--scan-calls` | Model calls per scan: 10–500 (default 500). |
|
|
60
|
+
| `--scan-usd` | [Spend limit per scan](/guide/platform/administration/security-audits#scan-spend-limit). Use `auto` for model-based pricing. |
|
|
61
|
+
|
|
62
|
+
**Budget.** Run `void platform security budget` to see this month’s spend and caps. Use `--platform-usd` to enable a platform cap or `--project-default-usd` to enable default project caps. Turn off the default with `--project-caps off`.
|
|
63
|
+
|
|
64
|
+
To set the most a project admin can budget for one project, pass `--project <id> --usd <n>`. A lower cap chosen by the project admin still applies. Use `--clear` to remove the project-specific limit. Void then uses the [owner’s plan cap](./platform-config.md#plans), followed by the platform’s default project cap.
|
|
47
65
|
|
|
48
66
|
## Findings and scans {#findings-scans}
|
|
49
67
|
|
|
@@ -61,11 +79,13 @@ void platform security fallback <on|off> [--plan] [--yes]
|
|
|
61
79
|
void platform security cancel <scan-id> [--yes]
|
|
62
80
|
```
|
|
63
81
|
|
|
64
|
-
|
|
82
|
+
Use `--page` and `--limit` (up to 100) to page through findings, oldest first. For code scanning tools, `findings --format sarif` exports up to 10,000 matching findings across projects in a single SARIF 2.1.0 file. Omit pagination flags for this export.
|
|
83
|
+
|
|
84
|
+
To update several findings together, separate their IDs with commas. Void checks every ID before applying the change.
|
|
65
85
|
|
|
66
|
-
`rescan`
|
|
86
|
+
`rescan` reviews the full live deployment and shows the model and [spend limit](/guide/platform/administration/security-audits#scan-spend-limit) before starting. Add `--client-assets` to review client code from deployed source maps. Project admins can run the same scan with `void project security scan`. Monthly caps apply.
|
|
67
87
|
|
|
68
|
-
|
|
88
|
+
Use `backfill --plan` to see how many existing deployments need a first scan and the total of their spend limits. Run `backfill` for up to 50 projects at a time. If the platform no longer has the code, it reports that deployment and scans the project on its next deploy.
|
|
69
89
|
|
|
70
90
|
`sweeps on` reviews every live app in full on a schedule, with a deeper review than a deploy scan: a project is swept when it has had no full scan for `--every-days` days (7 to 90, default 30). A few sweeps start each hour, so deploy scans keep moving. Projects whose live code is no longer stored are not swept until they deploy again. Sweeps are off by default; each one costs more than a deploy scan, and the monthly caps apply.
|
|
71
91
|
|
|
@@ -82,7 +102,15 @@ When three scans of a project in a row do not succeed for a project reason (refu
|
|
|
82
102
|
|
|
83
103
|
`digest on` sends installation admins a weekly email each Monday with the counts for the week before: scans, new and resolved findings, urgent findings still open, and public requests. It is off by default.
|
|
84
104
|
|
|
85
|
-
|
|
105
|
+
Register an HTTPS endpoint with `webhook` and save the signing secret printed by the CLI. Setting the URL again rotates the secret. Each event has a JSON body with IDs and counts. Void delivers webhooks even if platform email is off.
|
|
106
|
+
|
|
107
|
+
| Header | How to use it |
|
|
108
|
+
| ------------------ | ------------------------------------------------------------------------------------------ |
|
|
109
|
+
| `X-Void-Event` | Identify the event, such as `security.findings`. |
|
|
110
|
+
| `X-Void-Delivery` | Recognize a retry of the same delivery. |
|
|
111
|
+
| `X-Void-Signature` | Verify `t=<seconds>,v1=<hex>` using HMAC-SHA256 over `<t>.<body>` with the signing secret. |
|
|
112
|
+
|
|
113
|
+
Return a 2xx response within 10 seconds. Void retries a failed delivery twice.
|
|
86
114
|
|
|
87
115
|
## Scan before a project goes public {#public-gate}
|
|
88
116
|
|
|
@@ -45,14 +45,24 @@ void platform project normalize <id> [--plan | --yes]
|
|
|
45
45
|
void platform project delete <id>
|
|
46
46
|
void platform project owner <project-id> <user-id>
|
|
47
47
|
void platform project ai-logging <project-id> <inherit|off|metadata|full> [--plan | --yes]
|
|
48
|
+
void platform project browser-rate <project-id> <inherit|0|1|300> [--plan | --yes]
|
|
48
49
|
```
|
|
49
50
|
|
|
50
51
|
Search matches a project's slug, ID, or owner's login. `show` includes resources, domains, the latest 10 deployments, and the latest 20 builds. `delete` removes the project and its resources.
|
|
51
52
|
|
|
52
|
-
If
|
|
53
|
+
If a deployment asks you to normalize the project, finish any active deployment or recovery first. Then preview the repair and apply it:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
void platform project normalize <id> --plan
|
|
57
|
+
void platform project normalize <id> --yes
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The project keeps serving traffic with its existing Cloudflare resources. If verification fails, check the route or queue name in the error before retrying. If the active deployment is missing, finish recovery on the previous compatible runtime before you upgrade.
|
|
53
61
|
|
|
54
62
|
`owner` transfers a project to another registered user. Preview it with `--plan`; apply it interactively or with `--yes`. The preview reports active-work blockers and the account plan that will apply. The former owner becomes a project administrator, existing project-scoped CI deploy credentials are revoked, and usage already incurred remains with the former owner.
|
|
55
63
|
|
|
64
|
+
Use `browser-rate` to override the owner’s plan for one project: `1` or `300` requests per 10 seconds, `0` for unlimited, or `inherit` to return to the plan rate. See [Browser Run rate](../../guide/platform/administration/projects.md#browser-run-rate).
|
|
65
|
+
|
|
56
66
|
### AI Gateway Logging
|
|
57
67
|
|
|
58
68
|
Choose what AI Gateway records for a project. For example, keep request metadata without storing prompts or responses:
|
|
@@ -41,7 +41,7 @@ Public-only rules cannot be combined with protected project choices. To switch a
|
|
|
41
41
|
already protected configuration to public-only rules, first disable it; Access may
|
|
42
42
|
block traffic during that transition in a Default-Deny account.
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
When [scan before public](./platform-security.md#public-gate) is on, `project-public` reports a pending request. The project stays protected while the scan runs. Use `void platform security bypass` for an eligible request. To disable Zero Trust or switch to public-only configuration, turn off the scan requirement first with `void platform security public-gate off`.
|
|
45
45
|
|
|
46
46
|
Mutations support `--plan`, `--yes`, and `--timeout`; use `--plan` instead of
|
|
47
47
|
`--yes` to inspect this change without applying it. The Access management token
|