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,354 +0,0 @@
|
|
|
1
|
-
import { i as isLiteral, r as isIdentifier, s as moduleExportName, t as asAstProgram } from "./ast-BkPQu7A0.mjs";
|
|
2
|
-
import { parseSync } from "vite";
|
|
3
|
-
// ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
4
|
-
/**
|
|
5
|
-
* @typedef { import('estree').Node} Node
|
|
6
|
-
* @typedef {{
|
|
7
|
-
* skip: () => void;
|
|
8
|
-
* remove: () => void;
|
|
9
|
-
* replace: (node: Node) => void;
|
|
10
|
-
* }} WalkerContext
|
|
11
|
-
*/
|
|
12
|
-
var WalkerBase = class {
|
|
13
|
-
constructor() {
|
|
14
|
-
/** @type {boolean} */
|
|
15
|
-
this.should_skip = false;
|
|
16
|
-
/** @type {boolean} */
|
|
17
|
-
this.should_remove = false;
|
|
18
|
-
/** @type {Node | null} */
|
|
19
|
-
this.replacement = null;
|
|
20
|
-
/** @type {WalkerContext} */
|
|
21
|
-
this.context = {
|
|
22
|
-
skip: () => this.should_skip = true,
|
|
23
|
-
remove: () => this.should_remove = true,
|
|
24
|
-
replace: (node) => this.replacement = node
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @template {Node} Parent
|
|
29
|
-
* @param {Parent | null | undefined} parent
|
|
30
|
-
* @param {keyof Parent | null | undefined} prop
|
|
31
|
-
* @param {number | null | undefined} index
|
|
32
|
-
* @param {Node} node
|
|
33
|
-
*/
|
|
34
|
-
replace(parent, prop, index, node) {
|
|
35
|
-
if (parent && prop) {
|
|
36
|
-
if (index != null)
|
|
37
|
-
/** @type {Array<Node>} */ parent[prop][index] = node;
|
|
38
|
-
else
|
|
39
|
-
/** @type {Node} */ parent[prop] = node;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @template {Node} Parent
|
|
44
|
-
* @param {Parent | null | undefined} parent
|
|
45
|
-
* @param {keyof Parent | null | undefined} prop
|
|
46
|
-
* @param {number | null | undefined} index
|
|
47
|
-
*/
|
|
48
|
-
remove(parent, prop, index) {
|
|
49
|
-
if (parent && prop) {
|
|
50
|
-
if (index !== null && index !== void 0)
|
|
51
|
-
/** @type {Array<Node>} */ parent[prop].splice(index, 1);
|
|
52
|
-
else delete parent[prop];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
// ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
|
|
57
|
-
/**
|
|
58
|
-
* @typedef { import('estree').Node} Node
|
|
59
|
-
* @typedef { import('./walker.js').WalkerContext} WalkerContext
|
|
60
|
-
* @typedef {(
|
|
61
|
-
* this: WalkerContext,
|
|
62
|
-
* node: Node,
|
|
63
|
-
* parent: Node | null,
|
|
64
|
-
* key: string | number | symbol | null | undefined,
|
|
65
|
-
* index: number | null | undefined
|
|
66
|
-
* ) => void} SyncHandler
|
|
67
|
-
*/
|
|
68
|
-
var SyncWalker = class extends WalkerBase {
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @param {SyncHandler} [enter]
|
|
72
|
-
* @param {SyncHandler} [leave]
|
|
73
|
-
*/
|
|
74
|
-
constructor(enter, leave) {
|
|
75
|
-
super();
|
|
76
|
-
/** @type {boolean} */
|
|
77
|
-
this.should_skip = false;
|
|
78
|
-
/** @type {boolean} */
|
|
79
|
-
this.should_remove = false;
|
|
80
|
-
/** @type {Node | null} */
|
|
81
|
-
this.replacement = null;
|
|
82
|
-
/** @type {WalkerContext} */
|
|
83
|
-
this.context = {
|
|
84
|
-
skip: () => this.should_skip = true,
|
|
85
|
-
remove: () => this.should_remove = true,
|
|
86
|
-
replace: (node) => this.replacement = node
|
|
87
|
-
};
|
|
88
|
-
/** @type {SyncHandler | undefined} */
|
|
89
|
-
this.enter = enter;
|
|
90
|
-
/** @type {SyncHandler | undefined} */
|
|
91
|
-
this.leave = leave;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @template {Node} Parent
|
|
95
|
-
* @param {Node} node
|
|
96
|
-
* @param {Parent | null} parent
|
|
97
|
-
* @param {keyof Parent} [prop]
|
|
98
|
-
* @param {number | null} [index]
|
|
99
|
-
* @returns {Node | null}
|
|
100
|
-
*/
|
|
101
|
-
visit(node, parent, prop, index) {
|
|
102
|
-
if (node) {
|
|
103
|
-
if (this.enter) {
|
|
104
|
-
const _should_skip = this.should_skip;
|
|
105
|
-
const _should_remove = this.should_remove;
|
|
106
|
-
const _replacement = this.replacement;
|
|
107
|
-
this.should_skip = false;
|
|
108
|
-
this.should_remove = false;
|
|
109
|
-
this.replacement = null;
|
|
110
|
-
this.enter.call(this.context, node, parent, prop, index);
|
|
111
|
-
if (this.replacement) {
|
|
112
|
-
node = this.replacement;
|
|
113
|
-
this.replace(parent, prop, index, node);
|
|
114
|
-
}
|
|
115
|
-
if (this.should_remove) this.remove(parent, prop, index);
|
|
116
|
-
const skipped = this.should_skip;
|
|
117
|
-
const removed = this.should_remove;
|
|
118
|
-
this.should_skip = _should_skip;
|
|
119
|
-
this.should_remove = _should_remove;
|
|
120
|
-
this.replacement = _replacement;
|
|
121
|
-
if (skipped) return node;
|
|
122
|
-
if (removed) return null;
|
|
123
|
-
}
|
|
124
|
-
/** @type {keyof Node} */
|
|
125
|
-
let key;
|
|
126
|
-
for (key in node) {
|
|
127
|
-
/** @type {unknown} */
|
|
128
|
-
const value = node[key];
|
|
129
|
-
if (value && typeof value === "object") {
|
|
130
|
-
if (Array.isArray(value)) {
|
|
131
|
-
const nodes = value;
|
|
132
|
-
for (let i = 0; i < nodes.length; i += 1) {
|
|
133
|
-
const item = nodes[i];
|
|
134
|
-
if (isNode(item)) {
|
|
135
|
-
if (!this.visit(item, node, key, i)) i--;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
} else if (isNode(value)) this.visit(value, node, key, null);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
if (this.leave) {
|
|
142
|
-
const _replacement = this.replacement;
|
|
143
|
-
const _should_remove = this.should_remove;
|
|
144
|
-
this.replacement = null;
|
|
145
|
-
this.should_remove = false;
|
|
146
|
-
this.leave.call(this.context, node, parent, prop, index);
|
|
147
|
-
if (this.replacement) {
|
|
148
|
-
node = this.replacement;
|
|
149
|
-
this.replace(parent, prop, index, node);
|
|
150
|
-
}
|
|
151
|
-
if (this.should_remove) this.remove(parent, prop, index);
|
|
152
|
-
const removed = this.should_remove;
|
|
153
|
-
this.replacement = _replacement;
|
|
154
|
-
this.should_remove = _should_remove;
|
|
155
|
-
if (removed) return null;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return node;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Ducktype a node.
|
|
163
|
-
*
|
|
164
|
-
* @param {unknown} value
|
|
165
|
-
* @returns {value is Node}
|
|
166
|
-
*/
|
|
167
|
-
function isNode(value) {
|
|
168
|
-
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
169
|
-
}
|
|
170
|
-
// ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/index.js
|
|
171
|
-
/**
|
|
172
|
-
* @typedef {import('estree').Node} Node
|
|
173
|
-
* @typedef {import('./sync.js').SyncHandler} SyncHandler
|
|
174
|
-
* @typedef {import('./async.js').AsyncHandler} AsyncHandler
|
|
175
|
-
*/
|
|
176
|
-
/**
|
|
177
|
-
* @param {Node} ast
|
|
178
|
-
* @param {{
|
|
179
|
-
* enter?: SyncHandler
|
|
180
|
-
* leave?: SyncHandler
|
|
181
|
-
* }} walker
|
|
182
|
-
* @returns {Node | null}
|
|
183
|
-
*/
|
|
184
|
-
function walk(ast, { enter, leave }) {
|
|
185
|
-
return new SyncWalker(enter, leave).visit(ast, null);
|
|
186
|
-
}
|
|
187
|
-
// src/shared/ast-bindings.ts
|
|
188
|
-
/** Names introduced by a binding pattern, excluding keys and default expressions. */
|
|
189
|
-
function bindingNames(node) {
|
|
190
|
-
if (isIdentifier(node)) return [node.name];
|
|
191
|
-
if (node?.type === "ObjectPattern") return (node.properties ?? []).flatMap((property) => bindingNames(property.type === "RestElement" ? property.argument : property.value));
|
|
192
|
-
if (node?.type === "ArrayPattern") return (node.elements ?? []).flatMap(bindingNames);
|
|
193
|
-
if (node?.type === "AssignmentPattern" || node?.type === "RestElement") return bindingNames(node.left ?? node.argument);
|
|
194
|
-
if (node?.type === "TSParameterProperty") return bindingNames(node.parameter);
|
|
195
|
-
return [];
|
|
196
|
-
}
|
|
197
|
-
const FUNCTIONS = /* @__PURE__ */ new Set([
|
|
198
|
-
"FunctionDeclaration",
|
|
199
|
-
"FunctionExpression",
|
|
200
|
-
"ArrowFunctionExpression"
|
|
201
|
-
]);
|
|
202
|
-
/**
|
|
203
|
-
* Resolve lexical bindings after collecting declarations, including hoisted and later bindings.
|
|
204
|
-
* A visitor can collect references in the same pass; return true to retain a node's scope.
|
|
205
|
-
* Names can limit binding collection when only specific imports need resolution.
|
|
206
|
-
*/
|
|
207
|
-
function bindingResolver(program, options) {
|
|
208
|
-
const scopes = /* @__PURE__ */ new WeakMap();
|
|
209
|
-
const outerScopes = /* @__PURE__ */ new WeakMap();
|
|
210
|
-
let scope = { varScope: true };
|
|
211
|
-
const declare = (pattern, declaration, target = scope) => {
|
|
212
|
-
for (const name of bindingNames(pattern)) if (!options?.names || options.names.has(name)) (target.bindings ??= /* @__PURE__ */ new Map()).set(name, declaration);
|
|
213
|
-
};
|
|
214
|
-
walk(program, {
|
|
215
|
-
enter(raw, rawParent, key) {
|
|
216
|
-
const node = raw;
|
|
217
|
-
const parent = rawParent;
|
|
218
|
-
const outerScope = scope;
|
|
219
|
-
if (parent?.type === "SwitchStatement" && key === "discriminant") scope = scope.parent;
|
|
220
|
-
if ([
|
|
221
|
-
"FunctionDeclaration",
|
|
222
|
-
"ClassDeclaration",
|
|
223
|
-
"TSEnumDeclaration",
|
|
224
|
-
"TSModuleDeclaration"
|
|
225
|
-
].includes(node.type)) declare(node.id, node);
|
|
226
|
-
const isFunction = FUNCTIONS.has(node.type);
|
|
227
|
-
if (isFunction || node.type === "BlockStatement" || node.type === "StaticBlock" || node.type === "CatchClause" || node.type === "ForStatement" || node.type === "ForInStatement" || node.type === "ForOfStatement" || node.type === "SwitchStatement" || node.type === "ClassDeclaration" || node.type === "ClassExpression" || node.type === "TSModuleDeclaration") scope = {
|
|
228
|
-
parent: scope,
|
|
229
|
-
varScope: isFunction || node.type === "StaticBlock" || node.type === "TSModuleDeclaration" || node.type === "BlockStatement" && !!parent && FUNCTIONS.has(parent.type)
|
|
230
|
-
};
|
|
231
|
-
if (scope !== outerScope) outerScopes.set(node, outerScope);
|
|
232
|
-
if (!options?.visit || options.visit(node)) scopes.set(node, scope);
|
|
233
|
-
if (isFunction) {
|
|
234
|
-
if (node.type === "FunctionExpression") declare(node.id, node);
|
|
235
|
-
for (const parameter of node.params ?? []) declare(parameter, parameter);
|
|
236
|
-
} else if (node.type === "ClassDeclaration" || node.type === "ClassExpression") declare(node.id, node);
|
|
237
|
-
else if (node.type === "CatchClause") declare(node.param, node);
|
|
238
|
-
else if (node.type === "ImportDeclaration" && node.importKind !== "type") {
|
|
239
|
-
for (const specifier of node.specifiers ?? []) if (specifier.importKind !== "type") declare(specifier.local, specifier);
|
|
240
|
-
} else if (node.type === "VariableDeclaration") {
|
|
241
|
-
let target = scope;
|
|
242
|
-
if (node.kind === "var") while (!target.varScope && target.parent) target = target.parent;
|
|
243
|
-
for (const declaration of node.declarations ?? []) declare(declaration.id, declaration, target);
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
leave(raw) {
|
|
247
|
-
const outer = outerScopes.get(raw);
|
|
248
|
-
if (outer) scope = outer;
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
return (node, name) => {
|
|
252
|
-
let current = scopes.get(node);
|
|
253
|
-
while (current) {
|
|
254
|
-
const binding = current.bindings?.get(name);
|
|
255
|
-
if (binding) return binding;
|
|
256
|
-
current = current.parent;
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
// src/shared/static-exports.ts
|
|
261
|
-
const LINE_TERMINATORS = /* @__PURE__ */ new Set([
|
|
262
|
-
"\n",
|
|
263
|
-
"\r",
|
|
264
|
-
"\u2028",
|
|
265
|
-
"\u2029"
|
|
266
|
-
]);
|
|
267
|
-
/**
|
|
268
|
-
* Whether `export` is followed by `*` once whitespace and comments are skipped,
|
|
269
|
-
* so a comment between the two still counts. True only means the source needs
|
|
270
|
-
* parsing: the text may sit in a string or comment. This is a scan because a
|
|
271
|
-
* regular expression that skips repeated comments can backtrack exponentially.
|
|
272
|
-
*/
|
|
273
|
-
function mayExportAll(source) {
|
|
274
|
-
for (let index = source.indexOf("export"); index !== -1; index = source.indexOf("export", index + 1)) {
|
|
275
|
-
let cursor = index + 6;
|
|
276
|
-
while (cursor < source.length) if (/\s/.test(source[cursor])) cursor += 1;
|
|
277
|
-
else if (source.startsWith("/*", cursor)) {
|
|
278
|
-
const end = source.indexOf("*/", cursor + 2);
|
|
279
|
-
cursor = end === -1 ? source.length : end + 2;
|
|
280
|
-
} else if (source.startsWith("//", cursor)) {
|
|
281
|
-
cursor += 2;
|
|
282
|
-
while (cursor < source.length && !LINE_TERMINATORS.has(source[cursor])) cursor += 1;
|
|
283
|
-
} else break;
|
|
284
|
-
if (source[cursor] === "*") return true;
|
|
285
|
-
}
|
|
286
|
-
return false;
|
|
287
|
-
}
|
|
288
|
-
const VALUE_DECLARATIONS = /* @__PURE__ */ new Set([
|
|
289
|
-
"FunctionDeclaration",
|
|
290
|
-
"ClassDeclaration",
|
|
291
|
-
"TSEnumDeclaration"
|
|
292
|
-
]);
|
|
293
|
-
/** Read how a parsed module exports `names` without evaluating user code. Type-only exports are skipped. */
|
|
294
|
-
function staticExports(program, names) {
|
|
295
|
-
const result = {
|
|
296
|
-
initializers: /* @__PURE__ */ new Map(),
|
|
297
|
-
unreadable: /* @__PURE__ */ new Set(),
|
|
298
|
-
exportsAll: false
|
|
299
|
-
};
|
|
300
|
-
const markUnreadable = (name) => {
|
|
301
|
-
if (name !== void 0 && names.has(name)) result.unreadable.add(name);
|
|
302
|
-
};
|
|
303
|
-
for (const statement of program.body ?? []) {
|
|
304
|
-
if (statement.type === "ExportAllDeclaration") {
|
|
305
|
-
const exported = statement;
|
|
306
|
-
if (exported.exportKind === "type") continue;
|
|
307
|
-
if (exported.exported) markUnreadable(moduleExportName(exported.exported));
|
|
308
|
-
else result.exportsAll = true;
|
|
309
|
-
continue;
|
|
310
|
-
}
|
|
311
|
-
if (statement.type !== "ExportNamedDeclaration") continue;
|
|
312
|
-
const exported = statement;
|
|
313
|
-
if (exported.exportKind === "type") continue;
|
|
314
|
-
for (const specifier of exported.specifiers ?? []) if (specifier.exportKind !== "type") markUnreadable(moduleExportName(specifier.exported));
|
|
315
|
-
const declaration = exported.declaration;
|
|
316
|
-
if (declaration?.type === "VariableDeclaration") {
|
|
317
|
-
const variables = declaration;
|
|
318
|
-
for (const variable of variables.declarations ?? []) {
|
|
319
|
-
if (variables.kind === "const" && isIdentifier(variable.id) && variable.init) {
|
|
320
|
-
if (names.has(variable.id.name)) result.initializers.set(variable.id.name, variable.init);
|
|
321
|
-
continue;
|
|
322
|
-
}
|
|
323
|
-
for (const name of bindingNames(variable.id)) markUnreadable(name);
|
|
324
|
-
}
|
|
325
|
-
} else if (declaration && VALUE_DECLARATIONS.has(declaration.type)) {
|
|
326
|
-
const id = declaration.id;
|
|
327
|
-
markUnreadable(isIdentifier(id) ? id.name : void 0);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
return result;
|
|
331
|
-
}
|
|
332
|
-
/** Parse a module and read how it exports `names` without evaluating user code. */
|
|
333
|
-
function readStaticExports(filename, source, names) {
|
|
334
|
-
return staticExports(asAstProgram(parseSync(filename, source).program), names);
|
|
335
|
-
}
|
|
336
|
-
function unwrapStaticExpression(node) {
|
|
337
|
-
while (node && [
|
|
338
|
-
"ParenthesizedExpression",
|
|
339
|
-
"TSAsExpression",
|
|
340
|
-
"TSSatisfiesExpression",
|
|
341
|
-
"TSTypeAssertion"
|
|
342
|
-
].includes(node.type)) node = node.expression;
|
|
343
|
-
return node;
|
|
344
|
-
}
|
|
345
|
-
function staticLiteral(node) {
|
|
346
|
-
node = unwrapStaticExpression(node);
|
|
347
|
-
if (isLiteral(node)) return node.value;
|
|
348
|
-
if (node?.type === "TemplateLiteral") {
|
|
349
|
-
const expressions = node.expressions;
|
|
350
|
-
const quasis = node.quasis;
|
|
351
|
-
if (expressions?.length === 0 && quasis?.length === 1) return quasis[0]?.value?.cooked;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
export { unwrapStaticExpression as a, walk as c, staticLiteral as i, readStaticExports as n, bindingNames as o, staticExports as r, bindingResolver as s, mayExportAll as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { i as validateMigrations } from "./validate-CtBWCzez.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { b as readRootWranglerConfig } from "./wrangler-DVe5KV5G.mjs";
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 'Clone the repository, install workspace dependencies, and run the platform locally with Vite+.'
|
|
3
|
-
outline: deep
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Local Development
|
|
7
|
-
|
|
8
|
-
## Setting Up the Repository
|
|
9
|
-
|
|
10
|
-
Clone your fork and install the workspace dependencies with Vite+:
|
|
11
|
-
|
|
12
|
-
```sh
|
|
13
|
-
git clone https://github.com/your-org/void.git
|
|
14
|
-
cd void
|
|
15
|
-
vp install
|
|
16
|
-
vpr install:void-dev
|
|
17
|
-
void-dev --help
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Use the Node.js version recorded in `.node-version`.
|
|
21
|
-
|
|
22
|
-
`install:void-dev` builds the CLI, shared packages, and platform runtime, then makes this checkout's built CLI globally available as `void-dev`. Public packages export their built files, so run `vp run build:core` after later source changes to refresh the alias. The installer refuses to replace an unrelated global command. Remove only this checkout's alias with `vpr uninstall:void-dev`. The commands on these development pages run from the repository root.
|
|
23
|
-
|
|
24
|
-
## Finding the Implementation
|
|
25
|
-
|
|
26
|
-
| Directory | Purpose |
|
|
27
|
-
| ---------------------------------------------------- | -------------------------------------------------------------------- |
|
|
28
|
-
| `packages/void` | Framework, application runtime, and CLI |
|
|
29
|
-
| `packages/platform` | Installer contracts, packaged Workers, and platform migrations |
|
|
30
|
-
| `packages/deploy-core`, `packages/deploy-cloudflare` | Shared deployment contracts and Cloudflare upload code |
|
|
31
|
-
| `platform/packages/api` | Users, projects, deployments, provisioning, and administrator API/UI |
|
|
32
|
-
| `platform/packages/dispatch` | Application routing and static assets |
|
|
33
|
-
| `platform/packages/proxy` | AI, remote bindings, and revalidation |
|
|
34
|
-
| `platform/packages/email-gateway` | Inbound mail routing and tenant delivery |
|
|
35
|
-
| `platform/packages/tail` | Runtime log ingestion |
|
|
36
|
-
| `platform/packages/dashboard` | Dashboard source and local UI components in `ui/` |
|
|
37
|
-
|
|
38
|
-
The `@voidcloud/*` names identify workspace implementation packages. Their `private: true` flags prevent publishing those packages to npm. Deployable core Workers are bundled into the public `@void/platform` package.
|
|
39
|
-
|
|
40
|
-
The core installer creates the API, dispatch, proxy, tail, and email gateway Workers. The dashboard and managed GitHub build services are available in the source tree but are not included in that installation. Adding an optional service requires its infrastructure, bindings, authentication, and capability configuration together.
|
|
41
|
-
|
|
42
|
-
## Running the API Locally
|
|
43
|
-
|
|
44
|
-
Start a local PostgreSQL server and make `psql` and `pg_isready` available on your path. Then create the development database, apply its migrations, and seed an administrator:
|
|
45
|
-
|
|
46
|
-
```sh
|
|
47
|
-
vp run --filter @voidcloud/api setup --admin-email dev@example.com
|
|
48
|
-
vp run --filter @voidcloud/api dev:admin
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
The command disables the optional build containers, so basic API and admin work
|
|
52
|
-
does not require Docker. To develop managed builds, install Docker and run the
|
|
53
|
-
API with containers enabled.
|
|
54
|
-
|
|
55
|
-
Open `http://localhost:8787/admin/`. Setup writes the API's local database connection and development authentication bypass to `platform/packages/api/.dev.vars`. It configures `platform/packages/dashboard/.env` for the separate dashboard. Both files are ignored by Git. Production installations get separate credentials through the installer.
|
|
56
|
-
|
|
57
|
-
The API's development bypass lets you work on the browser admin UI without setting up OAuth. Operator CLI sessions still require administrator authentication; they do not use the browser bypass.
|
|
58
|
-
|
|
59
|
-
`dev:admin` watches source files and automatically reloads the browser after edits. Keep it running while working on the admin dashboard's React components and styles; no platform deployment is needed. The setup includes sample users, projects, and deployments for trying each view locally.
|
|
60
|
-
|
|
61
|
-
## Running the Dashboard Locally
|
|
62
|
-
|
|
63
|
-
The dashboard is a separate source app. After API setup, start it in another terminal:
|
|
64
|
-
|
|
65
|
-
```sh
|
|
66
|
-
vp run --filter @voidcloud/dashboard dev
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Setup points the dashboard's local `.env` at the API you started:
|
|
70
|
-
|
|
71
|
-
```dotenv
|
|
72
|
-
API_URL=http://localhost:8787
|
|
73
|
-
SITE_DOMAIN=apps.example.com
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Open the Vite URL and choose **Dev login (local API)**. That button appears for a localhost API and uses the local development sign-in endpoint.
|
|
77
|
-
|
|
78
|
-
You can also point the dashboard at an API that you operate. If Cloudflare Access protects that API, install `cloudflared` and opt into the dashboard's local token helper with matching origins:
|
|
79
|
-
|
|
80
|
-
```dotenv
|
|
81
|
-
API_URL=https://platform.example.com
|
|
82
|
-
CF_ACCESS_APP_URL=https://platform.example.com
|
|
83
|
-
SITE_DOMAIN=apps.example.com
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
The helper refreshes an Access session before the dev server starts. Human
|
|
87
|
-
dashboard requests require the user's Access session as well as their Void login;
|
|
88
|
-
a service token does not represent that user. Service-token pairs are for scoped
|
|
89
|
-
machine operations. This is dashboard development configuration; Access
|
|
90
|
-
credentials are separate from platform login credentials.
|
|
91
|
-
|
|
92
|
-
For a deployed dashboard, bind its `API` service to your platform API, configure
|
|
93
|
-
`DASHBOARD_URL` on both the dashboard and API, and include that exact dashboard origin in the
|
|
94
|
-
platform's Access protection application. The dashboard passes the browser's
|
|
95
|
-
company identity to the API using that service binding. Its login page shows
|
|
96
|
-
the platform's currently enabled methods, and **Account** supports adding an
|
|
97
|
-
additional login identity.
|
|
98
|
-
|
|
99
|
-
## Testing Changes
|
|
100
|
-
|
|
101
|
-
Run tests for the area you changed while developing:
|
|
102
|
-
|
|
103
|
-
```sh
|
|
104
|
-
vp test run platform/packages/api/test/integration/operator-auth.test.ts
|
|
105
|
-
vp check
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Before preparing a release, build the packages and run the complete checks:
|
|
109
|
-
|
|
110
|
-
```sh
|
|
111
|
-
vp run build:all
|
|
112
|
-
vp check
|
|
113
|
-
vp run check:types
|
|
114
|
-
vp test run
|
|
115
|
-
vp run build:docs
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
Platform integration tests use their local test database by default. To test against PostgreSQL, set `VOID_TEST_DATABASE_URL` to a disposable database: these tests clear tables between cases.
|
|
119
|
-
|
|
120
|
-
To exercise a deployed application, deploy a disposable copy of `playground/kitchen-sink` and pass its URL as `SMOKE_URL` to the smoke test described in `platform/scripts/kitchen-sink-smoke-test.md`. That test creates and removes application data.
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 'Build a platform runtime from your checkout and deploy that build into your Cloudflare account.'
|
|
3
|
-
outline: deep
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Runtime and Source Builds
|
|
7
|
-
|
|
8
|
-
## Deploying Your Runtime
|
|
9
|
-
|
|
10
|
-
Build the runtime. From a Git checkout, the build automatically records the current commit in the runtime manifest. An uncommitted checkout is recorded with a `-dirty` suffix:
|
|
11
|
-
|
|
12
|
-
```sh
|
|
13
|
-
vp run build:core
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Build systems may set `VOID_PLATFORM_SOURCE_REVISION` when they need to override automatic detection with another immutable revision. A source archive without Git metadata builds normally but leaves the revision unrecorded.
|
|
17
|
-
|
|
18
|
-
The runtime is written to `packages/platform/dist/runtime`. Use the built CLI to preview a new installation from those files:
|
|
19
|
-
|
|
20
|
-
```sh
|
|
21
|
-
void-dev platform install \
|
|
22
|
-
--name my-team \
|
|
23
|
-
--application-domain example.app \
|
|
24
|
-
--zone example.app \
|
|
25
|
-
--runtime packages/platform/dist/runtime \
|
|
26
|
-
--plan
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Before applying the plan, complete the [installation guides](/guide/self-hosted-platform). Run the command without `--plan` to install. For testing before your domain is ready, replace `--application-domain` and `--zone` with `--workers-dev`; PostgreSQL and the runtime, login-provider, and R2 credentials are still needed. Use `void-dev` in place of `void` and keep `--runtime packages/platform/dist/runtime` on install and resume commands. For an interrupted installation, keep that runtime build available until it completes.
|
|
30
|
-
|
|
31
|
-
Later, run `void-dev platform domain set example.app`. Domain setup uses the existing installed runtime and needs no `--runtime`, rebuild, or app redeploy. It keeps the platform API URL and original workers.dev app URLs available.
|
|
32
|
-
|
|
33
|
-
For an existing installation, preview an upgrade using its connection ID:
|
|
34
|
-
|
|
35
|
-
```sh
|
|
36
|
-
void-dev platform upgrade <installation-id> \
|
|
37
|
-
--runtime packages/platform/dist/runtime --plan
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Then run it without `--plan` to apply the upgrade. Source-built runtimes go through the same artifact, database, ownership, and health checks as released runtimes. The CLI preserves a disabled installation's state and records the source revision in its installation checkpoint.
|
|
41
|
-
|
|
42
|
-
## Optional GitHub Webhook Ingress for Access-Protected APIs
|
|
43
|
-
|
|
44
|
-
The core installer does not deploy the dashboard, GitHub App, build Containers,
|
|
45
|
-
or webhook ingress. Passing a source build with `--runtime` does not provision
|
|
46
|
-
their infrastructure, bindings, credentials, or platform capabilities. The
|
|
47
|
-
repository's hosted deployment scripts target Void Cloud; they are not a
|
|
48
|
-
general setup procedure for adding these services to a self-hosted platform.
|
|
49
|
-
Use the core CLI deployment workflow unless your fork supplies and maintains
|
|
50
|
-
that optional integration.
|
|
51
|
-
|
|
52
|
-
If your fork has added managed GitHub builds and Cloudflare Access protects its API hostname, GitHub cannot deliver directly
|
|
53
|
-
to `/webhooks/github`: GitHub does not present your Access credentials. Do not add
|
|
54
|
-
an Everyone or bypass policy to the API application.
|
|
55
|
-
|
|
56
|
-
Deploy the optional webhook ingress at a separate public hostname. It accepts signed GitHub deliveries at `POST /github` and forwards them to your API through a service binding. Without Access protection, use the API’s `/webhooks/github` endpoint directly.
|
|
57
|
-
|
|
58
|
-
To deploy the optional ingress:
|
|
59
|
-
|
|
60
|
-
1. Provision the GitHub App, build executors, API bindings, credentials, and
|
|
61
|
-
managed-build capability in your fork, then deploy its source API runtime
|
|
62
|
-
with the internal operation. A core install or upgrade alone does not add
|
|
63
|
-
managed builds.
|
|
64
|
-
2. Edit `platform/packages/api/wrangler.github-webhook-ingress.jsonc`. Give the
|
|
65
|
-
ingress a name unique to the installation and set its `API` service binding to
|
|
66
|
-
the exact installed API Worker name. Keep its public hostname separate from
|
|
67
|
-
every human/API hostname covered by Access.
|
|
68
|
-
3. Deploy it from the repository root:
|
|
69
|
-
|
|
70
|
-
```sh
|
|
71
|
-
vp run --filter @voidcloud/api deploy:github-webhook-ingress --env production
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Use `--env staging` for the staging entries in the same config.
|
|
75
|
-
|
|
76
|
-
4. In the Cloudflare dashboard, add encrypted Worker secrets. Set the GitHub
|
|
77
|
-
App's existing `GITHUB_WEBHOOK_SECRET` on both the API and ingress Workers.
|
|
78
|
-
Generate a separate high-entropy value, such as `openssl rand -base64 32`,
|
|
79
|
-
and set it as `GITHUB_WEBHOOK_INGRESS_SECRET` on both Workers. Do not reuse a
|
|
80
|
-
platform management, JWT, Access, or GitHub webhook credential for that value.
|
|
81
|
-
5. In the GitHub App settings, keep **Content type** set to `application/json`,
|
|
82
|
-
keep the same webhook secret, and change **Webhook URL** to the isolated
|
|
83
|
-
ingress URL ending in `/github`. Use GitHub's test delivery and confirm a 2xx
|
|
84
|
-
response before relying on push builds.
|
|
85
|
-
|
|
86
|
-
The ingress accepts payloads up to 25 MiB. See [GitHub’s payload limit](https://docs.github.com/en/webhooks/webhook-events-and-payloads#payload-cap).
|
|
87
|
-
|
|
88
|
-
## Deploying Source Builds from CI
|
|
89
|
-
|
|
90
|
-
Build `@void/platform` from your checkout and pass its runtime directory to `install`, `upgrade`, `repair`, `enable`, or `rollback` with `--runtime`. Custom runtimes get the same integrity, migration, health, and rollback checks as packaged releases.
|
|
91
|
-
|
|
92
|
-
Use a clean Git checkout or set `VOID_PLATFORM_SOURCE_REVISION` to identify the revision you deploy.
|
|
93
|
-
|
|
94
|
-
A fresh CI runner can discover the installation each time. Set `CLOUDFLARE_API_TOKEN` and `VOID_PLATFORM_DATABASE_URL` through its protected environment, then:
|
|
95
|
-
|
|
96
|
-
::: details CI commands and recovery inputs
|
|
97
|
-
|
|
98
|
-
```sh
|
|
99
|
-
vp run build:core
|
|
100
|
-
|
|
101
|
-
export VOID_PLATFORM_REGISTRY_DIR="$RUNNER_TEMP/void-platform-registry"
|
|
102
|
-
export VOID_PLATFORM_RECOVERY_KEY="$(openssl rand -base64 32)"
|
|
103
|
-
node packages/void/dist/cli/cli.mjs platform discover --account "$CLOUDFLARE_ACCOUNT_ID" \
|
|
104
|
-
--installation "$VOID_PLATFORM_INSTALLATION"
|
|
105
|
-
node packages/void/dist/cli/cli.mjs platform upgrade "$VOID_PLATFORM_INSTALLATION" \
|
|
106
|
-
--runtime packages/platform/dist/runtime --plan
|
|
107
|
-
node packages/void/dist/cli/cli.mjs platform upgrade "$VOID_PLATFORM_INSTALLATION" \
|
|
108
|
-
--runtime packages/platform/dist/runtime --yes
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Omit the installation selector only if the account has one discoverable installation. Run one deployment per installation at a time, and let it finish before starting the next. Cancelling during migrations or Worker rollout can leave an installation waiting for recovery.
|
|
112
|
-
|
|
113
|
-
Keep the management token, database URL, JWT signing secret, email signing secret for email-enabled installations, and complete project-encryption keyring in a protected CI environment. Upgrades inherit deployed Worker secrets. The original values are needed when recreating a missing Worker; configuration credentials are also needed when explicitly rotating them.
|
|
114
|
-
|
|
115
|
-
:::
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 'Change the platform database schema, generate a migration, and see how CI checks that schema.'
|
|
3
|
-
outline: deep
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Schema and CI
|
|
7
|
-
|
|
8
|
-
## Changing the Platform Schema
|
|
9
|
-
|
|
10
|
-
The schema lives in `platform/packages/api/src/schema.ts`. Generate a migration after changing it:
|
|
11
|
-
|
|
12
|
-
```sh
|
|
13
|
-
vp run --filter @voidcloud/api db:generate
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Review the generated SQL and migration journal before committing them. Released migrations are append-only. An upgrade applies new migrations while the previous Workers may still serve requests, so schema changes must remain compatible with that code.
|
|
17
|
-
|
|
18
|
-
`platform/packages/api/drizzle/compatibility.json` records which earlier runtimes have been verified against the new schema. Add an edge only after testing that compatibility. The runtime build checks that the migration files and recorded schema history agree.
|
|
19
|
-
|
|
20
|
-
## Runtime artifact contract
|
|
21
|
-
|
|
22
|
-
`@void/platform` contains installation manifests, resource naming, discovery contracts, Worker configuration, and deployable bundles under the `./installer` export. Platform source lives in `platform/packages/`.
|
|
23
|
-
|
|
24
|
-
Runtime artifacts include migration SQL, its journal, and a rollback compatibility manifest. Drizzle authoring snapshots remain in the source tree.
|
|
25
|
-
|
|
26
|
-
## CI in a Fork
|
|
27
|
-
|
|
28
|
-
The uncredentialed test workflows use GitHub-hosted runners in forks. They build and test the workspace without requiring Void Cloud accounts, tokens, or deployment access.
|
|
29
|
-
|
|
30
|
-
If your fork has a released platform version, set the repository variable
|
|
31
|
-
`VOID_PLATFORM_PRODUCTION_REF` to its immutable 40-character commit SHA. Platform
|
|
32
|
-
pull requests then create that version's database, seed representative user,
|
|
33
|
-
project, and encrypted-secret records, and apply the proposed migrations. The
|
|
34
|
-
check verifies existing data and runs the previous runtime against the upgraded
|
|
35
|
-
schema. Mutable branch or tag names are rejected.
|
|
36
|
-
|
|
37
|
-
Without an explicit SHA, required compatibility checks use the latest successful
|
|
38
|
-
GitHub deployment to `Prod` (or `VOID_PLATFORM_PRODUCTION_ENV`). They require
|
|
39
|
-
read access to deployment history and stop if no completed deployment is found.
|
|
40
|
-
Advancing the production branch does not change the selected baseline. Fork
|
|
41
|
-
workflows that call platform CI must grant `deployments: read` alongside
|
|
42
|
-
`contents: read`.
|
|
43
|
-
|
|
44
|
-
The upstream repository also contains workflows for deploying Void Cloud and publishing the official npm packages. Forks should configure their own release workflow around the built CLI and `platform upgrade --runtime`; the [source-build CI example](/guide/platform/development/runtime#deploying-source-builds-from-ci) shows the required inputs. Keep production credentials in protected environments restricted to the appropriate release refs.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 'Change the platform in this repository, test it locally, and deploy a runtime built from your fork.'
|
|
3
|
-
outline: deep
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Developing a Void Platform
|
|
7
|
-
|
|
8
|
-
The framework, CLI, and platform live in one repository. You can change the platform, test it locally, and deploy a runtime built from your fork into your own Cloudflare account.
|
|
9
|
-
|
|
10
|
-
If you want to run the released platform without changing its implementation, start with [Install a Void Platform](/guide/self-hosted-platform). Use [Platform Administration](/guide/platform-administration) for managing an installed platform.
|
|
11
|
-
|
|
12
|
-
## Development Guides
|
|
13
|
-
|
|
14
|
-
- [Local Development](/guide/platform/development/local)
|
|
15
|
-
- [Runtime and Source Builds](/guide/platform/development/runtime)
|
|
16
|
-
- [Schema and CI](/guide/platform/development/schema-ci)
|