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
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
|
|
3
|
+
import { a as isMemberExpression, n as isCallExpression, o as isObjectExpression, r as isIdentifier, s as moduleExportName, t as asAstProgram } from "./ast-BkPQu7A0.mjs";
|
|
4
|
+
import { c as bindingNames, l as bindingResolver, o as staticLiteral, p as globSync, s as unwrapStaticExpression, t as deriveFromSource } from "./source-analysis-cache-Ccm_JSOl.mjs";
|
|
5
|
+
import { n as isWorkflowName, r as resourceNameWords, t as isResourceName } from "./resource-name-D_gw36kh.mjs";
|
|
6
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
7
|
+
import { parseSync } from "vite";
|
|
8
|
+
// src/shared/resource-definition.ts
|
|
9
|
+
/** Inspect default helper definitions without running application code. */
|
|
10
|
+
function readResourceDefinition(filename, source, module, helpers) {
|
|
11
|
+
const isWorkflow = module === "void/workflows";
|
|
12
|
+
let parsed;
|
|
13
|
+
try {
|
|
14
|
+
parsed = parseSync(filename, source);
|
|
15
|
+
} catch (error) {
|
|
16
|
+
if (isWorkflow && source.includes("void/workflows")) throw new Error(`workflows: could not parse ${filename}`, { cause: error });
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
if (isWorkflow && parsed.errors.length > 0 && (parsed.module.staticImports.some(({ moduleRequest }) => moduleRequest.value === "void/workflows") || /\bfrom\s*['"]void\/workflows['"]/.test(source))) {
|
|
20
|
+
const hint = filename.endsWith(".cjs") ? " Use .mjs for ES module syntax." : "";
|
|
21
|
+
throw new SyntaxError(`workflows: could not parse ${filename}.${hint}\n${parsed.errors[0].codeframe}`);
|
|
22
|
+
}
|
|
23
|
+
const program = asAstProgram(parsed.program);
|
|
24
|
+
const constants = /* @__PURE__ */ new Map();
|
|
25
|
+
const definitions = /* @__PURE__ */ new Map();
|
|
26
|
+
const importedHelpers = /* @__PURE__ */ new Map();
|
|
27
|
+
const namespaces = /* @__PURE__ */ new Set();
|
|
28
|
+
const destructured = [];
|
|
29
|
+
const bindings = /* @__PURE__ */ new Set();
|
|
30
|
+
let defaultExport;
|
|
31
|
+
let commonJsExport;
|
|
32
|
+
const isWorkflowRequire = (node) => isWorkflow && isCallExpression(node) && isIdentifier(node.callee) && node.callee.name === "require" && staticLiteral(node.arguments?.[0]) === "void/workflows";
|
|
33
|
+
for (const { moduleRequest, entries } of parsed.module.staticImports) for (const { importName, localName } of entries) {
|
|
34
|
+
bindings.add(localName.value);
|
|
35
|
+
if (moduleRequest.value !== module) continue;
|
|
36
|
+
if (importName.kind === "NamespaceObject") namespaces.add(localName.value);
|
|
37
|
+
const helper = helpers.find((name) => name === importName.name);
|
|
38
|
+
if (helper) importedHelpers.set(localName.value, helper);
|
|
39
|
+
}
|
|
40
|
+
for (const statement of program.body ?? []) {
|
|
41
|
+
if (isWorkflow && statement.type === "ExpressionStatement") {
|
|
42
|
+
const assignment = statement.expression;
|
|
43
|
+
const left = assignment.left;
|
|
44
|
+
if (assignment.type === "AssignmentExpression" && assignment.operator === "=" && isMemberExpression(left) && isIdentifier(left.object) && (left.object.name === "module" && moduleExportName(left.property) === "exports" || left.object.name === "exports" && moduleExportName(left.property) === "default")) commonJsExport = assignment.right;
|
|
45
|
+
}
|
|
46
|
+
if (statement.type === "ExportDefaultDeclaration") defaultExport = statement.declaration;
|
|
47
|
+
const declaration = statement.type === "ExportNamedDeclaration" ? statement.declaration : statement;
|
|
48
|
+
for (const name of bindingNames(declaration?.id)) bindings.add(name);
|
|
49
|
+
if (declaration?.type !== "VariableDeclaration") continue;
|
|
50
|
+
for (const variable of declaration.declarations ?? []) {
|
|
51
|
+
for (const name of bindingNames(variable.id)) bindings.add(name);
|
|
52
|
+
if (isWorkflow && variable.init && variable.id?.type === "ObjectPattern") destructured.push({
|
|
53
|
+
pattern: variable.id,
|
|
54
|
+
source: variable.init
|
|
55
|
+
});
|
|
56
|
+
if (isIdentifier(variable.id) && variable.init) {
|
|
57
|
+
definitions.set(variable.id.name, variable.init);
|
|
58
|
+
if (declaration.kind === "const") constants.set(variable.id.name, variable.init);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function resolve(node, seen = /* @__PURE__ */ new Set()) {
|
|
63
|
+
node = unwrapStaticExpression(node);
|
|
64
|
+
if (!isIdentifier(node) || !constants.has(node.name) || seen.has(node.name)) return node;
|
|
65
|
+
seen.add(node.name);
|
|
66
|
+
return resolve(constants.get(node.name), seen);
|
|
67
|
+
}
|
|
68
|
+
function memberHelper(object, key) {
|
|
69
|
+
const namespace = resolve(object);
|
|
70
|
+
if (isIdentifier(namespace) && namespaces.has(namespace.name) || isWorkflowRequire(namespace)) return helpers.find((name) => name === key);
|
|
71
|
+
}
|
|
72
|
+
for (const { pattern, source } of destructured) for (const property of pattern.properties) {
|
|
73
|
+
const key = property.key;
|
|
74
|
+
const helper = memberHelper(source, property.computed ? staticLiteral(resolve(key)) : moduleExportName(key));
|
|
75
|
+
const local = property.value;
|
|
76
|
+
if (helper && isIdentifier(local)) importedHelpers.set(local.name, helper);
|
|
77
|
+
}
|
|
78
|
+
function isStaticUndefined(node) {
|
|
79
|
+
node = resolve(node);
|
|
80
|
+
return isIdentifier(node) && node.name === "undefined" && !bindings.has(node.name);
|
|
81
|
+
}
|
|
82
|
+
function readName(options, seen = /* @__PURE__ */ new Set()) {
|
|
83
|
+
options = resolve(options);
|
|
84
|
+
if (!isObjectExpression(options) || seen.has(options)) return { present: false };
|
|
85
|
+
seen.add(options);
|
|
86
|
+
let name = { present: false };
|
|
87
|
+
for (const property of options.properties ?? []) {
|
|
88
|
+
if (property.type === "SpreadElement") {
|
|
89
|
+
const spread = resolve(property.argument);
|
|
90
|
+
if (isObjectExpression(spread)) {
|
|
91
|
+
const spreadName = readName(spread, seen);
|
|
92
|
+
if (spreadName.present) name = spreadName;
|
|
93
|
+
} else if (name.value !== void 0) throw new Error(`${filename}: resource name cannot be overridden by a dynamic spread.`);
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if (property.type !== "Property") continue;
|
|
97
|
+
const key = property.key;
|
|
98
|
+
const keyName = !property.computed && isIdentifier(key) ? key.name : staticLiteral(key);
|
|
99
|
+
if (keyName !== "name") {
|
|
100
|
+
if (property.computed && keyName === void 0 && name.value !== void 0) throw new Error(`${filename}: resource name cannot be overridden by a dynamic key.`);
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
const valueNode = property.value;
|
|
104
|
+
if (isStaticUndefined(valueNode)) {
|
|
105
|
+
name = { present: true };
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
const value = staticLiteral(resolve(valueNode));
|
|
109
|
+
if (!(isWorkflow ? isWorkflowName : isResourceName)(value)) throw new Error(`${filename}: resource name must be a static string containing ${isWorkflow ? "a letter or digit" : "a word starting with a letter"}.`);
|
|
110
|
+
name = {
|
|
111
|
+
present: true,
|
|
112
|
+
value
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
seen.delete(options);
|
|
116
|
+
return name;
|
|
117
|
+
}
|
|
118
|
+
function resourceCall(node) {
|
|
119
|
+
const call = resolve(node);
|
|
120
|
+
if (!isCallExpression(call)) return null;
|
|
121
|
+
const callee = resolve(call.callee);
|
|
122
|
+
let helper;
|
|
123
|
+
if (isIdentifier(callee)) helper = importedHelpers.get(callee.name) ?? (!isWorkflow ? helpers.find((name) => name === callee.name) : void 0);
|
|
124
|
+
else if (isMemberExpression(callee)) {
|
|
125
|
+
const key = callee.computed ? staticLiteral(callee.property) : moduleExportName(callee.property);
|
|
126
|
+
helper = memberHelper(callee.object, key);
|
|
127
|
+
}
|
|
128
|
+
if (!helper) return null;
|
|
129
|
+
return {
|
|
130
|
+
helper,
|
|
131
|
+
options: resolve(call.arguments?.[0])
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
const alias = isWorkflow && parsed.module.staticExports.flatMap(({ entries }) => entries).find((entry) => !entry.isType && !entry.moduleRequest && entry.exportName.name === "default")?.localName.name;
|
|
135
|
+
const declaration = unwrapStaticExpression(defaultExport);
|
|
136
|
+
const nameOfExport = isIdentifier(declaration) ? declaration.name : alias;
|
|
137
|
+
const definition = resourceCall(nameOfExport ? definitions.get(nameOfExport) : declaration);
|
|
138
|
+
if (!definition) {
|
|
139
|
+
if (isWorkflow) {
|
|
140
|
+
if (resourceCall(commonJsExport)) throw new Error(`workflows: ${filename} uses CommonJS. Use an ES module such as .mjs with import and export default for this Workflow definition.`);
|
|
141
|
+
if ([...definitions.values()].some(resourceCall) || program.body?.some((node) => node.type === "ExpressionStatement" && resourceCall(node.expression))) throw new Error(`workflows: ${filename} must default-export its Workflow definition.`);
|
|
142
|
+
}
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
const name = readName(definition.options).value;
|
|
146
|
+
return {
|
|
147
|
+
...definition,
|
|
148
|
+
...name === void 0 ? {} : { name }
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
// src/ssr/entry.ts
|
|
152
|
+
const SSR_SERVER_ENTRY_NAMES = ["main.ssr.ts", "main.ssr.tsx"];
|
|
153
|
+
const SSR_CLIENT_ENTRY_NAMES = ["main.client.ts", "main.client.tsx"];
|
|
154
|
+
const SSR_SERVER_ENTRY_RELATIVE_PATHS = SSR_SERVER_ENTRY_NAMES.map((name) => `src/${name}`);
|
|
155
|
+
const SSR_CLIENT_ENTRY_RELATIVE_PATHS = SSR_CLIENT_ENTRY_NAMES.map((name) => `src/${name}`);
|
|
156
|
+
function resolveSingleEntry(root, entries, label, paths = readProjectPaths(root)) {
|
|
157
|
+
const matches = entries.flatMap((entryName) => {
|
|
158
|
+
const entry = {
|
|
159
|
+
relativePath: relative(root, join(paths.ssrDir, entryName)),
|
|
160
|
+
absolutePath: join(paths.ssrDir, entryName)
|
|
161
|
+
};
|
|
162
|
+
return existsSync(entry.absolutePath) ? [entry] : [];
|
|
163
|
+
});
|
|
164
|
+
if (matches.length === 0) return null;
|
|
165
|
+
if (matches.length > 1) {
|
|
166
|
+
const names = matches.map((entry) => entry.relativePath).join(", ");
|
|
167
|
+
throw new Error(`ssr: Multiple ${label} entry files found: ${names}. Keep only one.`);
|
|
168
|
+
}
|
|
169
|
+
return matches[0];
|
|
170
|
+
}
|
|
171
|
+
function getSsrServerEntryPath(root, paths = readProjectPaths(root)) {
|
|
172
|
+
return resolveSingleEntry(root, SSR_SERVER_ENTRY_NAMES, "SSR", paths)?.absolutePath ?? null;
|
|
173
|
+
}
|
|
174
|
+
function validateServerRenderExport(entry) {
|
|
175
|
+
const { absolutePath, relativePath } = entry;
|
|
176
|
+
const source = readFileSync(absolutePath, "utf8");
|
|
177
|
+
let parsed;
|
|
178
|
+
try {
|
|
179
|
+
parsed = parseSync(relativePath, source);
|
|
180
|
+
} catch (err) {
|
|
181
|
+
throw new Error(`ssr: Invalid entry '${relativePath}'. Could not parse source: '${err instanceof Error ? err.message : String(err)}'.`, { cause: err });
|
|
182
|
+
}
|
|
183
|
+
const program = asAstProgram(parsed.program);
|
|
184
|
+
const body = program.body ?? [];
|
|
185
|
+
let resolve;
|
|
186
|
+
const binding = (node, name) => (resolve ??= bindingResolver(program))(node, name);
|
|
187
|
+
function isRenderer(node) {
|
|
188
|
+
const seen = /* @__PURE__ */ new Set();
|
|
189
|
+
while (node = unwrapStaticExpression(node)) {
|
|
190
|
+
if (seen.has(node)) return false;
|
|
191
|
+
seen.add(node);
|
|
192
|
+
if (isIdentifier(node)) {
|
|
193
|
+
node = binding(node, node.name);
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
if (node.type === "VariableDeclarator") {
|
|
197
|
+
if (!isIdentifier(node.id)) return true;
|
|
198
|
+
node = node.init;
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
if (node.type === "CallExpression") {
|
|
202
|
+
const call = node;
|
|
203
|
+
if (!isIdentifier(call.callee)) return false;
|
|
204
|
+
if (call.callee.name === "defineRender") return true;
|
|
205
|
+
const imported = binding(call, call.callee.name)?.imported;
|
|
206
|
+
return isIdentifier(imported) && imported.name === "defineRender";
|
|
207
|
+
}
|
|
208
|
+
return [
|
|
209
|
+
"FunctionDeclaration",
|
|
210
|
+
"FunctionExpression",
|
|
211
|
+
"ArrowFunctionExpression",
|
|
212
|
+
"ImportSpecifier",
|
|
213
|
+
"ImportDefaultSpecifier"
|
|
214
|
+
].includes(node.type);
|
|
215
|
+
}
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
if (!body.some((node) => {
|
|
219
|
+
if (node.type === "ExportDefaultDeclaration") return isRenderer(node.declaration);
|
|
220
|
+
if (node.type !== "ExportNamedDeclaration") return false;
|
|
221
|
+
if (node.exportKind === "type") return false;
|
|
222
|
+
const declaration = node.declaration;
|
|
223
|
+
if (declaration?.type === "FunctionDeclaration") {
|
|
224
|
+
const fn = declaration;
|
|
225
|
+
return isIdentifier(fn.id) && fn.id.name === "render";
|
|
226
|
+
}
|
|
227
|
+
if (declaration?.type === "VariableDeclaration") return (declaration.declarations ?? []).some((decl) => bindingNames(decl.id).includes("render"));
|
|
228
|
+
return (node.specifiers ?? []).some((specifier) => {
|
|
229
|
+
if (specifier.exportKind === "type") return false;
|
|
230
|
+
const exported = moduleExportName(specifier.exported);
|
|
231
|
+
return exported === "render" || exported === "default" && (!!node.source || isRenderer(specifier.local));
|
|
232
|
+
});
|
|
233
|
+
})) throw new Error(`ssr: Invalid entry '${relativePath}'. Export \`render(c, assetTags)\` or \`export default defineRender(...)\`.`);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Validate SSR mode entry conventions.
|
|
237
|
+
* Returns null when SSR mode is not used.
|
|
238
|
+
*/
|
|
239
|
+
function validateSsrEntries(root, paths = readProjectPaths(root)) {
|
|
240
|
+
const server = resolveSingleEntry(root, SSR_SERVER_ENTRY_NAMES, "SSR", paths);
|
|
241
|
+
const client = resolveSingleEntry(root, SSR_CLIENT_ENTRY_NAMES, "SSR client", paths);
|
|
242
|
+
if (!server && !client) return null;
|
|
243
|
+
if (!client) throw new Error(`ssr: Missing client entry. Add one of: ${SSR_CLIENT_ENTRY_RELATIVE_PATHS.join(", ")}.`);
|
|
244
|
+
if (!server) throw new Error(`ssr: Missing server entry. Add one of: ${SSR_SERVER_ENTRY_RELATIVE_PATHS.join(", ")}.`);
|
|
245
|
+
validateServerRenderExport(server);
|
|
246
|
+
return {
|
|
247
|
+
server,
|
|
248
|
+
client
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
function validateSsrEntry(root, paths = readProjectPaths(root)) {
|
|
252
|
+
return validateSsrEntries(root, paths)?.server.absolutePath ?? null;
|
|
253
|
+
}
|
|
254
|
+
// src/workflows/scan.ts
|
|
255
|
+
const MODULE_PATTERN = /\.(?:[cm]?[jt]s|[jt]sx)$/;
|
|
256
|
+
const MODULE_GLOB = "**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}";
|
|
257
|
+
const WORKFLOW_HELPERS = ["defineWorkflow", "defineWorkflowEntrypoint"];
|
|
258
|
+
function inferWorkflowResourceName(relativePath) {
|
|
259
|
+
return relativePath.replaceAll("\\", "/").replace(MODULE_PATTERN, "").replaceAll("/", "-");
|
|
260
|
+
}
|
|
261
|
+
function deriveWorkflowResourceIdentity(name) {
|
|
262
|
+
const parts = resourceNameWords(name);
|
|
263
|
+
const classBase = parts.map((part) => part[0].toUpperCase() + part.slice(1)).join("");
|
|
264
|
+
return {
|
|
265
|
+
bindingName: `WORKFLOW_${parts.join("_").toUpperCase()}`,
|
|
266
|
+
className: /^\d/.test(classBase) ? `Workflow${classBase}` : `${classBase}Workflow`,
|
|
267
|
+
resourceName: parts.join("-").toLowerCase()
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
function cloudflareWorkflowName(resourceName, workerName) {
|
|
271
|
+
const name = workerName ? `${workerName}_${resourceName}` : resourceName;
|
|
272
|
+
if (name.length > 64) throw new Error(`workflows: generated Workflow name '${name}' exceeds Cloudflare's limit of 64 characters. Choose a shorter name in cloudflare.workflows.`);
|
|
273
|
+
return name;
|
|
274
|
+
}
|
|
275
|
+
function scanWorkflowModules(root) {
|
|
276
|
+
const directory = join(root, "workflows");
|
|
277
|
+
const files = globSync(MODULE_GLOB, {
|
|
278
|
+
cwd: directory,
|
|
279
|
+
ignore: [
|
|
280
|
+
"**/_*",
|
|
281
|
+
"**/_*/**",
|
|
282
|
+
"**/node_modules/**",
|
|
283
|
+
"**/*.d.{ts,mts,cts}"
|
|
284
|
+
]
|
|
285
|
+
}).sort((a, b) => a.localeCompare(b));
|
|
286
|
+
const modules = [];
|
|
287
|
+
const seen = /* @__PURE__ */ new Set();
|
|
288
|
+
for (const relativePath of files) {
|
|
289
|
+
const filePath = join(directory, relativePath);
|
|
290
|
+
const definition = deriveFromSource(filePath, "workflow-definition", (source) => readResourceDefinition(filePath, source, "void/workflows", WORKFLOW_HELPERS));
|
|
291
|
+
if (!definition) continue;
|
|
292
|
+
const { name } = definition;
|
|
293
|
+
const identity = deriveWorkflowResourceIdentity(name ?? inferWorkflowResourceName(relativePath));
|
|
294
|
+
if (!identity.resourceName) throw new Error(`workflows: cannot derive a name from workflows/${relativePath}.`);
|
|
295
|
+
if (seen.has(identity.bindingName) || seen.has(identity.className)) throw new Error(`workflows: duplicate generated name for 'workflows/${relativePath}'. Choose a different resource name or rename one of the workflows files.`);
|
|
296
|
+
seen.add(identity.bindingName);
|
|
297
|
+
seen.add(identity.className);
|
|
298
|
+
modules.push({
|
|
299
|
+
filePath,
|
|
300
|
+
relativePath,
|
|
301
|
+
definition: definition.helper,
|
|
302
|
+
...identity,
|
|
303
|
+
...name === void 0 ? {} : { name }
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return modules;
|
|
307
|
+
}
|
|
308
|
+
export { SSR_SERVER_ENTRY_RELATIVE_PATHS as a, validateSsrEntry as c, SSR_CLIENT_ENTRY_RELATIVE_PATHS as i, readResourceDefinition as l, inferWorkflowResourceName as n, getSsrServerEntryPath as o, scanWorkflowModules as r, validateSsrEntries as s, cloudflareWorkflowName as t };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { c as getToken } from "./auth-CeBmolb-.mjs";
|
|
2
|
+
import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
|
|
3
|
+
import { _ as validateSecretValues } from "./env-validation-SXsjd6-Z.mjs";
|
|
4
|
+
import { H as outro, L as log, O as cancel, tt as isCancel } from "./dist-BngS28id.mjs";
|
|
5
|
+
import { i as password, n as confirm } from "./interactive-prompts-EK0dilFu.mjs";
|
|
5
6
|
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
6
|
-
import { c as formatCount, g as note, y as printSuccess } from "./output-
|
|
7
|
-
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-
|
|
8
|
-
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-
|
|
7
|
+
import { c as formatCount, g as note, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
8
|
+
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-DC-BqHef.mjs";
|
|
9
|
+
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-s_FGWyr-.mjs";
|
|
9
10
|
import { readFileSync } from "node:fs";
|
|
10
11
|
import { parseEnv } from "node:util";
|
|
11
12
|
// src/cli/secret.ts
|
|
@@ -98,7 +99,7 @@ async function resolveSecretBackend(root, args) {
|
|
|
98
99
|
}
|
|
99
100
|
async function resolveCloudflareSecretBackend(root, args) {
|
|
100
101
|
if (args.projectName) throw new Error("secret: --project selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
101
|
-
const { deleteCloudflareSecret, listCloudflareSecrets, putCloudflareSecret, resolveCloudflareOperationContext, syncCloudflareSecrets } = await import("./cloudflare-operations-
|
|
102
|
+
const { deleteCloudflareSecret, listCloudflareSecrets, putCloudflareSecret, resolveCloudflareOperationContext, syncCloudflareSecrets } = await import("./cloudflare-operations-BmICrRnm.mjs");
|
|
102
103
|
const context = resolveCloudflareOperationContext(root);
|
|
103
104
|
return {
|
|
104
105
|
target: "Cloudflare Worker",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
2
2
|
import { n as getOwnVersion } from "./agents-64FnLwxP.mjs";
|
|
3
|
-
import { r as cleanLine } from "./output-
|
|
3
|
+
import { r as cleanLine } from "./output-DhJgS6Ve.mjs";
|
|
4
4
|
// src/cli/security-sarif.ts
|
|
5
5
|
/**
|
|
6
6
|
* SARIF 2.1.0 export of security audit findings (design doc 0095, M31). Paths are as the
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
type AppRequest = Context["req"];
|
|
3
|
+
declare function requestAppSetup<T>(setup: () => T, request: AppRequest): Promise<T>;
|
|
1
4
|
/**
|
|
2
5
|
* Serialize Pages data without losing supported JavaScript values. The envelope
|
|
3
6
|
* keeps deferred metadata visible to existing ISR caches, which must not cache
|
|
@@ -7,6 +10,12 @@ declare function serializePageData(pageObj: unknown): string;
|
|
|
7
10
|
/** Decode a parsed Pages payload, also accepting cached pre-devalue JSON. */
|
|
8
11
|
declare function decodePageData<T = unknown>(value: unknown): T;
|
|
9
12
|
declare function deserializePageData<T = unknown>(text: string): T;
|
|
13
|
+
declare function appStateScript(hooks?: {
|
|
14
|
+
dehydrate?: () => unknown;
|
|
15
|
+
}): string;
|
|
16
|
+
declare function hydrateAppState(hooks?: {
|
|
17
|
+
hydrate?: (state: unknown) => void;
|
|
18
|
+
}): void;
|
|
10
19
|
/** Element id of the Markdown page frontmatter that islands read when they hydrate. */
|
|
11
20
|
declare const ISLAND_FRONTMATTER_ID = "__void_frontmatter";
|
|
12
21
|
/**
|
|
@@ -15,4 +24,4 @@ declare const ISLAND_FRONTMATTER_ID = "__void_frontmatter";
|
|
|
15
24
|
* Empty when the page has no frontmatter.
|
|
16
25
|
*/
|
|
17
26
|
declare function islandFrontmatterScript(frontmatter: Record<string, unknown> | undefined): string;
|
|
18
|
-
export {
|
|
27
|
+
export { hydrateAppState as a, serializePageData as c, deserializePageData as i, appStateScript as n, islandFrontmatterScript as o, decodePageData as r, requestAppSetup as s, ISLAND_FRONTMATTER_ID as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify, unflatten } from "devalue";
|
|
1
|
+
import { parse, stringify, unflatten } from "devalue";
|
|
2
2
|
// src/pages/script-json.ts
|
|
3
3
|
const UNSAFE_SCRIPT_CHARS = /[<>&\u2028\u2029]/g;
|
|
4
4
|
function escapeScriptJson(json) {
|
|
@@ -7,6 +7,16 @@ function escapeScriptJson(json) {
|
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
// src/pages/serialize.ts
|
|
10
|
+
let appSetups;
|
|
11
|
+
function requestAppSetup(setup, request) {
|
|
12
|
+
const cache = appSetups ??= /* @__PURE__ */ new WeakMap();
|
|
13
|
+
let pending = cache.get(request);
|
|
14
|
+
if (!pending) {
|
|
15
|
+
pending = Promise.resolve().then(setup);
|
|
16
|
+
cache.set(request, pending);
|
|
17
|
+
}
|
|
18
|
+
return pending;
|
|
19
|
+
}
|
|
10
20
|
/**
|
|
11
21
|
* Serialize Pages data without losing supported JavaScript values. The envelope
|
|
12
22
|
* keeps deferred metadata visible to existing ISR caches, which must not cache
|
|
@@ -25,6 +35,17 @@ function decodePageData(value) {
|
|
|
25
35
|
function deserializePageData(text) {
|
|
26
36
|
return decodePageData(JSON.parse(text));
|
|
27
37
|
}
|
|
38
|
+
const APP_STATE_ID = "__VOID_APP_STATE__";
|
|
39
|
+
function appStateScript(hooks) {
|
|
40
|
+
const state = hooks?.dehydrate ? hooks.dehydrate() : void 0;
|
|
41
|
+
return state === void 0 ? "" : `\n <script type="application/json" id="${APP_STATE_ID}">${escapeScriptJson(stringify(state))}<\/script>`;
|
|
42
|
+
}
|
|
43
|
+
function hydrateAppState(hooks) {
|
|
44
|
+
if (typeof hooks?.hydrate === "function") {
|
|
45
|
+
const state = document.getElementById(APP_STATE_ID)?.textContent;
|
|
46
|
+
if (state) hooks.hydrate(parse(state));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
28
49
|
/** Element id of the Markdown page frontmatter that islands read when they hydrate. */
|
|
29
50
|
const ISLAND_FRONTMATTER_ID = "__void_frontmatter";
|
|
30
51
|
/**
|
|
@@ -36,4 +57,4 @@ function islandFrontmatterScript(frontmatter) {
|
|
|
36
57
|
if (!frontmatter || Object.keys(frontmatter).length === 0) return "";
|
|
37
58
|
return `<script type="application/json" id="${ISLAND_FRONTMATTER_ID}">${serializePageData(frontmatter)}<\/script>`;
|
|
38
59
|
}
|
|
39
|
-
export {
|
|
60
|
+
export { hydrateAppState as a, serializePageData as c, deserializePageData as i, escapeScriptJson as l, appStateScript as n, islandFrontmatterScript as o, decodePageData as r, requestAppSetup as s, ISLAND_FRONTMATTER_ID as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as log } from "./dist-
|
|
1
|
+
import { L as log } from "./dist-BngS28id.mjs";
|
|
2
2
|
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { r as getPackageDir } from "./agents-64FnLwxP.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, readlinkSync, symlinkSync } from "node:fs";
|