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 +1 @@
|
|
|
1
|
-
export { t as createProjectWithSlugRetry } from "./create-project-
|
|
1
|
+
export { t as createProjectWithSlugRetry } from "./create-project-T-9AIQDe.mjs";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as PlatformApiError } from "./client-
|
|
3
|
-
import { b as sanitizeTerminalText, h as import_picocolors } from "./output-
|
|
4
|
-
import { t as attachSelectedPlatform, u as writeProjectConfig } from "./project-
|
|
5
|
-
import { s as getSiteDomain } from "./auth-
|
|
1
|
+
import { L as log, O as cancel, tt as isCancel } from "./dist-BngS28id.mjs";
|
|
2
|
+
import { n as PlatformApiError } from "./client-BEHI4UWn.mjs";
|
|
3
|
+
import { b as sanitizeTerminalText, h as import_picocolors } from "./output-DhJgS6Ve.mjs";
|
|
4
|
+
import { t as attachSelectedPlatform, u as writeProjectConfig } from "./project-DC-BqHef.mjs";
|
|
5
|
+
import { s as getSiteDomain } from "./auth-CeBmolb-.mjs";
|
|
6
|
+
import { a as select, n as confirm, o as text } from "./interactive-prompts-EK0dilFu.mjs";
|
|
6
7
|
import { t as validateProjectSlug } from "./project-slug-CO6ci9XG.mjs";
|
|
7
|
-
import { n as inferDefaultSlug } from "./resolve-project-
|
|
8
|
+
import { n as inferDefaultSlug } from "./resolve-project-s_FGWyr-.mjs";
|
|
8
9
|
// src/cli/prompt.ts
|
|
9
10
|
async function promptProjectSetupAction(message = "Set up a Void project:", options = {}) {
|
|
10
11
|
const result = await select({
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { A as confirm, H as outro, L as log, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
1
|
import { a as join, c as resolve, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { t as resolveLocalD1Target } from "./local-d1-
|
|
5
|
-
import {
|
|
6
|
-
import { i as validateMigrations, t as assertJournalCoherence } from "./validate-
|
|
7
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
8
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
2
|
+
import { g as resolveBindingNames, h as readConfig, l as getDatabaseCasing, u as getDatabaseDialect } from "./config-KZAiI3gG.mjs";
|
|
3
|
+
import { t as resolveLocalD1Target } from "./local-d1-BtLCVC1p.mjs";
|
|
4
|
+
import { a as writeJournal, i as stripSqlExt, n as collectMigrations, r as readJournal, t as assertFlatMigrationLayout } from "./collect-KC4cizWM.mjs";
|
|
5
|
+
import { i as validateMigrations, t as assertJournalCoherence } from "./validate-B1PsQ_mt.mjs";
|
|
6
|
+
import { r as detectFramework } from "./plugin-inference-D5MjBVMB.mjs";
|
|
7
|
+
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
|
|
9
8
|
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { c as getToken, o as getProxyUrl } from "./auth-
|
|
12
|
-
import { n as ensurePlatformProxyAccess, r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-
|
|
13
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-
|
|
9
|
+
import { l as loadLocalEnv } from "./env-CU2tMDdO.mjs";
|
|
10
|
+
import { c as getToken, o as getProxyUrl } from "./auth-CeBmolb-.mjs";
|
|
11
|
+
import { n as ensurePlatformProxyAccess, r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
|
|
12
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-BEHI4UWn.mjs";
|
|
14
13
|
import { t as closeMySqlQuoted } from "./mysql-sql-BIE7bc4Z.mjs";
|
|
15
|
-
import {
|
|
14
|
+
import { H as outro, L as log, tt as isCancel } from "./dist-BngS28id.mjs";
|
|
15
|
+
import { n as formatTimestamp } from "./gen-BxuIN1bz.mjs";
|
|
16
|
+
import { n as confirm, o as text } from "./interactive-prompts-EK0dilFu.mjs";
|
|
16
17
|
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
17
|
-
import { c as formatCount, f as formatUrl, h as import_picocolors, o as dim, p as getErrorMessage, y as printSuccess } from "./output-
|
|
18
|
-
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-
|
|
18
|
+
import { c as formatCount, f as formatUrl, h as import_picocolors, o as dim, p as getErrorMessage, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
19
|
+
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-DC-BqHef.mjs";
|
|
19
20
|
import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
20
21
|
import { createRequire } from "node:module";
|
|
21
22
|
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1356,7 +1357,7 @@ function runDrizzleKit(root, args) {
|
|
|
1356
1357
|
* already printed its own error.
|
|
1357
1358
|
*/
|
|
1358
1359
|
async function runDrizzleKitWithDatabaseUrl(root, url, dialect, command) {
|
|
1359
|
-
const { withPrivateDrizzleConfig } = await import("./config-
|
|
1360
|
+
const { withPrivateDrizzleConfig } = await import("./config-Ge-MytMU.mjs");
|
|
1360
1361
|
if (!withPrivateDrizzleConfig(root, url, dialect, (configPath) => {
|
|
1361
1362
|
try {
|
|
1362
1363
|
runDrizzleKit(root, [
|
|
@@ -1387,7 +1388,7 @@ async function withPgClient(root, fn) {
|
|
|
1387
1388
|
}
|
|
1388
1389
|
}
|
|
1389
1390
|
async function withMySqlClient(root, fn, options = {}) {
|
|
1390
|
-
const { toMySqlClient } = await import("./runner-mysql-
|
|
1391
|
+
const { toMySqlClient } = await import("./runner-mysql-CW6bFa67.mjs");
|
|
1391
1392
|
const { createConnection } = await import("mysql2/promise");
|
|
1392
1393
|
const connection = await createConnection({
|
|
1393
1394
|
uri: getLocalDatabaseUrl(root, "mysql"),
|
|
@@ -1419,7 +1420,9 @@ async function runDbCommand(root, args, writeResults = (text) => process.stdout.
|
|
|
1419
1420
|
return;
|
|
1420
1421
|
}
|
|
1421
1422
|
if (!(args.action === "export" && !args.output)) console.log();
|
|
1422
|
-
const
|
|
1423
|
+
const config = readConfig(root);
|
|
1424
|
+
const dialect = getDatabaseDialect(config);
|
|
1425
|
+
if (args.action === "migrate" || args.action === "status" || args.action === "reset" || args.action === "seed") assertFlatMigrationLayout(resolveProjectPaths(root, config).migrationsDir);
|
|
1423
1426
|
if (args.action === "push") await runPush(root, dialect);
|
|
1424
1427
|
else if (args.action === "generate") await runGenerate(root, dialect);
|
|
1425
1428
|
else if (args.action === "status") await runStatus(root, dialect);
|
|
@@ -1519,7 +1522,7 @@ async function runPush(root, dialect) {
|
|
|
1519
1522
|
printSuccess("Database schema pushed.");
|
|
1520
1523
|
return;
|
|
1521
1524
|
}
|
|
1522
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
1525
|
+
const { writeDrizzleConfig } = await import("./config-Ge-MytMU.mjs");
|
|
1523
1526
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1524
1527
|
mkdirSync(dirname(dbPath), { recursive: true });
|
|
1525
1528
|
const configPath = writeDrizzleConfig(root, dbPath);
|
|
@@ -1535,15 +1538,15 @@ async function runPush(root, dialect) {
|
|
|
1535
1538
|
printSuccess("Database schema pushed.");
|
|
1536
1539
|
}
|
|
1537
1540
|
async function runGenerate(root, dialect) {
|
|
1538
|
-
const { prepareProject } = await import("./prepare-
|
|
1539
|
-
const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-
|
|
1541
|
+
const { prepareProject } = await import("./prepare-CLl_TA_r.mjs");
|
|
1542
|
+
const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-Ge-MytMU.mjs");
|
|
1540
1543
|
await prepareProject(root);
|
|
1541
1544
|
const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
|
|
1542
1545
|
const additionalSchemas = existsSync(authSchemaPath) ? [authSchemaPath] : void 0;
|
|
1543
1546
|
const configPath = writeDrizzleConfig(root, PLACEHOLDER_DB_URL[dialect], dialect, { additionalSchemas });
|
|
1544
1547
|
try {
|
|
1545
1548
|
if (dialect === "sqlite") {
|
|
1546
|
-
const { generateValidatedSqliteMigrations } = await import("./generate-
|
|
1549
|
+
const { generateValidatedSqliteMigrations } = await import("./generate-t1dDUYZZ.mjs");
|
|
1547
1550
|
await generateValidatedSqliteMigrations(readProjectPaths(root).migrationsDir, () => {
|
|
1548
1551
|
runDrizzleKit(root, [
|
|
1549
1552
|
"generate",
|
|
@@ -1579,19 +1582,19 @@ async function runStatus(root, dialect) {
|
|
|
1579
1582
|
let localApplied;
|
|
1580
1583
|
let localError;
|
|
1581
1584
|
if (dialect === "postgresql") try {
|
|
1582
|
-
const { readPgAppliedMigrations } = await import("./runner-pg-
|
|
1585
|
+
const { readPgAppliedMigrations } = await import("./runner-pg-OeP0JpEo.mjs");
|
|
1583
1586
|
localApplied = await withPgClient(root, readPgAppliedMigrations);
|
|
1584
1587
|
} catch (error) {
|
|
1585
1588
|
localError = error;
|
|
1586
1589
|
}
|
|
1587
1590
|
else if (dialect === "mysql") try {
|
|
1588
|
-
const { readMySqlAppliedMigrations } = await import("./runner-mysql-
|
|
1591
|
+
const { readMySqlAppliedMigrations } = await import("./runner-mysql-CW6bFa67.mjs");
|
|
1589
1592
|
localApplied = await withMySqlClient(root, readMySqlAppliedMigrations);
|
|
1590
1593
|
} catch (error) {
|
|
1591
1594
|
localError = error;
|
|
1592
1595
|
}
|
|
1593
1596
|
else {
|
|
1594
|
-
const { getAppliedMigrations } = await import("./runner-
|
|
1597
|
+
const { getAppliedMigrations } = await import("./runner-rnXCGa20.mjs");
|
|
1595
1598
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1596
1599
|
localApplied = (await getAppliedMigrations(dbPath)).map((m) => m.name);
|
|
1597
1600
|
}
|
|
@@ -1601,12 +1604,12 @@ async function runStatus(root, dialect) {
|
|
|
1601
1604
|
if (dialect !== "sqlite") {
|
|
1602
1605
|
const databaseUrl = process.env.DATABASE_URL;
|
|
1603
1606
|
if (!databaseUrl) throw new Error("DATABASE_URL is not available.");
|
|
1604
|
-
remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-
|
|
1607
|
+
remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-OeP0JpEo.mjs")).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-CW6bFa67.mjs")).getMySqlAppliedMigrations(databaseUrl)).map((name) => ({
|
|
1605
1608
|
name,
|
|
1606
1609
|
applied_at: ""
|
|
1607
1610
|
}));
|
|
1608
1611
|
} else {
|
|
1609
|
-
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
1612
|
+
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BmICrRnm.mjs");
|
|
1610
1613
|
remoteApplied = (await readCloudflareD1Migrations(resolveCloudflareD1Context(root, configuredD1Binding(root)))).map((name) => ({
|
|
1611
1614
|
name,
|
|
1612
1615
|
applied_at: ""
|
|
@@ -1756,7 +1759,7 @@ async function resetDatabase(root, dialect, yes) {
|
|
|
1756
1759
|
}
|
|
1757
1760
|
await confirmReset(root, dialect, yes);
|
|
1758
1761
|
if (dialect === "postgresql") {
|
|
1759
|
-
const { applyPgMigrations } = await import("./runner-pg-
|
|
1762
|
+
const { applyPgMigrations } = await import("./runner-pg-OeP0JpEo.mjs");
|
|
1760
1763
|
await withPgClient(root, async (client) => {
|
|
1761
1764
|
const objects = await client.query(PG_RESET_OBJECTS);
|
|
1762
1765
|
const names = (kind) => objects.rows.filter((row) => row.kind === kind).map((row) => row.name);
|
|
@@ -1774,7 +1777,7 @@ async function resetDatabase(root, dialect, yes) {
|
|
|
1774
1777
|
return migrations.length;
|
|
1775
1778
|
}
|
|
1776
1779
|
if (dialect === "mysql") {
|
|
1777
|
-
const { applyPendingMySqlMigrations, withMySqlMigrationLock } = await import("./runner-mysql-
|
|
1780
|
+
const { applyPendingMySqlMigrations, withMySqlMigrationLock } = await import("./runner-mysql-CW6bFa67.mjs");
|
|
1778
1781
|
await withMySqlClient(root, (client) => withMySqlMigrationLock(client, async () => {
|
|
1779
1782
|
const tables = await client.query("SELECT table_name AS table_name, table_type AS table_type FROM information_schema.tables WHERE table_schema = DATABASE() AND table_type IN ('BASE TABLE', 'VIEW')");
|
|
1780
1783
|
await client.query("SET FOREIGN_KEY_CHECKS = 0");
|
|
@@ -1792,7 +1795,7 @@ async function resetDatabase(root, dialect, yes) {
|
|
|
1792
1795
|
}));
|
|
1793
1796
|
return migrations.length;
|
|
1794
1797
|
}
|
|
1795
|
-
const { runMigrations } = await import("./runner-
|
|
1798
|
+
const { runMigrations } = await import("./runner-rnXCGa20.mjs");
|
|
1796
1799
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1797
1800
|
rmSync(dbPath, { force: true });
|
|
1798
1801
|
rmSync(dbPath + "-wal", { force: true });
|
|
@@ -1845,7 +1848,7 @@ async function runSqlSeed(root, dialect, sql) {
|
|
|
1845
1848
|
});
|
|
1846
1849
|
return;
|
|
1847
1850
|
}
|
|
1848
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
1851
|
+
const { openSqliteDatabase } = await import("./runner-rnXCGa20.mjs");
|
|
1849
1852
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1850
1853
|
const db = await openSqliteDatabase(dbPath);
|
|
1851
1854
|
try {
|
|
@@ -2032,7 +2035,7 @@ async function runExecute(root, { command, file, remote, yes }, dialect, printRe
|
|
|
2032
2035
|
process.exit(0);
|
|
2033
2036
|
}
|
|
2034
2037
|
if (dialect === "sqlite") {
|
|
2035
|
-
const { executeCloudflareD1Sql, executeCloudflareD1Statements, importCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
2038
|
+
const { executeCloudflareD1Sql, executeCloudflareD1Statements, importCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-BmICrRnm.mjs");
|
|
2036
2039
|
const context = resolveCloudflareD1Context(root, configuredD1Binding(root));
|
|
2037
2040
|
if (bulkImport) await importCloudflareD1Sql(context, sql);
|
|
2038
2041
|
else if (json) printResults(await executeCloudflareD1Statements(context, sql));
|
|
@@ -2136,7 +2139,7 @@ async function runExecute(root, { command, file, remote, yes }, dialect, printRe
|
|
|
2136
2139
|
finish();
|
|
2137
2140
|
return;
|
|
2138
2141
|
}
|
|
2139
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
2142
|
+
const { openSqliteDatabase } = await import("./runner-rnXCGa20.mjs");
|
|
2140
2143
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
2141
2144
|
if (!existsSync(dbPath)) {
|
|
2142
2145
|
log.error("No local database found. Start the dev server first.", messages);
|
|
@@ -2202,11 +2205,11 @@ async function runMigrate(root, dialect, remote) {
|
|
|
2202
2205
|
let appliedNames;
|
|
2203
2206
|
let applyMigrations;
|
|
2204
2207
|
if (dialect === "postgresql") {
|
|
2205
|
-
const { getPgAppliedMigrations, runPgMigrations } = await import("./runner-pg-
|
|
2208
|
+
const { getPgAppliedMigrations, runPgMigrations } = await import("./runner-pg-OeP0JpEo.mjs");
|
|
2206
2209
|
appliedNames = await getPgAppliedMigrations(databaseUrl);
|
|
2207
2210
|
applyMigrations = () => runPgMigrations(migrationsDir, databaseUrl);
|
|
2208
2211
|
} else {
|
|
2209
|
-
const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-
|
|
2212
|
+
const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-CW6bFa67.mjs");
|
|
2210
2213
|
appliedNames = await getMySqlAppliedMigrations(databaseUrl);
|
|
2211
2214
|
applyMigrations = () => runMySqlMigrations(migrationsDir, databaseUrl);
|
|
2212
2215
|
}
|
|
@@ -2231,7 +2234,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
2231
2234
|
log.info(`No migration files found in ${paths.sourceRelative("db/migrations")}/`);
|
|
2232
2235
|
return;
|
|
2233
2236
|
}
|
|
2234
|
-
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
2237
|
+
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BmICrRnm.mjs");
|
|
2235
2238
|
const binding = configuredD1Binding(root);
|
|
2236
2239
|
const context = resolveCloudflareD1Context(root, binding);
|
|
2237
2240
|
const remoteBefore = new Set(await readCloudflareD1Migrations(context));
|
|
@@ -2251,7 +2254,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
2251
2254
|
log.error(`db: D1 binding ${binding} has no "migrations_dir", so Cloudflare would apply ./migrations instead of ${dir}/. Add "migrations_dir": "./${dir}" to that D1 binding in your Cloudflare config, then run the command again.`);
|
|
2252
2255
|
process.exit(1);
|
|
2253
2256
|
}
|
|
2254
|
-
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-
|
|
2257
|
+
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-DZ9j7MC4.mjs");
|
|
2255
2258
|
const applySet = await checkWranglerMigrationApplySet(context.operation.configPath, parseRootWranglerConfig(context.operation.configPath), binding, context.migrationsDir, rawMigrations, paths.sourceRelative("db/migrations"));
|
|
2256
2259
|
if (!applySet.ok) {
|
|
2257
2260
|
log.error(applySet.reason);
|
|
@@ -2313,7 +2316,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
2313
2316
|
return;
|
|
2314
2317
|
}
|
|
2315
2318
|
if (dialect === "postgresql") {
|
|
2316
|
-
const { applyPgMigrations, readPgAppliedMigrations } = await import("./runner-pg-
|
|
2319
|
+
const { applyPgMigrations, readPgAppliedMigrations } = await import("./runner-pg-OeP0JpEo.mjs");
|
|
2317
2320
|
const applied = await withPgClient(root, async (client) => {
|
|
2318
2321
|
const appliedNames = await readPgAppliedMigrations(client).catch(() => []);
|
|
2319
2322
|
try {
|
|
@@ -2332,7 +2335,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
2332
2335
|
return;
|
|
2333
2336
|
}
|
|
2334
2337
|
if (dialect === "mysql") {
|
|
2335
|
-
const { applyMySqlMigrations, readMySqlAppliedMigrations } = await import("./runner-mysql-
|
|
2338
|
+
const { applyMySqlMigrations, readMySqlAppliedMigrations } = await import("./runner-mysql-CW6bFa67.mjs");
|
|
2336
2339
|
const applied = await withMySqlClient(root, async (client) => {
|
|
2337
2340
|
const appliedNames = await readMySqlAppliedMigrations(client).catch(() => []);
|
|
2338
2341
|
try {
|
|
@@ -2350,7 +2353,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
2350
2353
|
}
|
|
2351
2354
|
return;
|
|
2352
2355
|
}
|
|
2353
|
-
const { getAppliedMigrations, runMigrations } = await import("./runner-
|
|
2356
|
+
const { getAppliedMigrations, runMigrations } = await import("./runner-rnXCGa20.mjs");
|
|
2354
2357
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
2355
2358
|
try {
|
|
2356
2359
|
const existingRows = await getAppliedMigrations(dbPath);
|
|
@@ -2378,7 +2381,7 @@ async function runRestore(root, dialect, { target, platform: explicitPlatform, y
|
|
|
2378
2381
|
log.error("db: `void db restore` restores the D1 database of a direct Cloudflare deploy. After a one-off `void deploy --platform cloudflare`, run it with `--platform cloudflare`.");
|
|
2379
2382
|
process.exit(1);
|
|
2380
2383
|
}
|
|
2381
|
-
const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-
|
|
2384
|
+
const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-BmICrRnm.mjs");
|
|
2382
2385
|
const binding = configuredD1Binding(root);
|
|
2383
2386
|
const context = resolveCloudflareD1Context(root, binding);
|
|
2384
2387
|
const database = `D1 database ${context.migrateToken} (${binding})`;
|
|
@@ -2452,7 +2455,7 @@ async function runStudio(root, dialect, remote) {
|
|
|
2452
2455
|
await runDrizzleKitWithDatabaseUrl(root, url, dialect, "studio");
|
|
2453
2456
|
return;
|
|
2454
2457
|
}
|
|
2455
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
2458
|
+
const { writeDrizzleConfig } = await import("./config-Ge-MytMU.mjs");
|
|
2456
2459
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
2457
2460
|
if (!existsSync(dbPath)) {
|
|
2458
2461
|
log.error("No local database found. Start the dev server first.");
|
|
@@ -2472,8 +2475,8 @@ async function runStudio(root, dialect, remote) {
|
|
|
2472
2475
|
}
|
|
2473
2476
|
/** A direct Cloudflare deploy records its D1 or Hyperdrive id in the checked-in Cloudflare config. */
|
|
2474
2477
|
async function hasDeployedCloudflareDatabase(root) {
|
|
2475
|
-
const { readRootWranglerConfig } = await import("./wrangler-
|
|
2476
|
-
const { isRealD1Id, isRealHyperdriveId } = await import("./provision-
|
|
2478
|
+
const { readRootWranglerConfig } = await import("./wrangler-BT7qrzWc.mjs");
|
|
2479
|
+
const { isRealD1Id, isRealHyperdriveId } = await import("./provision-C04aXE3a.mjs");
|
|
2477
2480
|
const config = readRootWranglerConfig(root)?.config;
|
|
2478
2481
|
const entries = (key) => {
|
|
2479
2482
|
const value = config?.[key];
|
|
@@ -2684,7 +2687,7 @@ Regenerate it with \`void db generate\`, or restore it from version control.`);
|
|
|
2684
2687
|
await rollback("db: Failed to update MySQL tracking table. File renames have been reverted.\nFix the database connection and run `void db rename-migrations` again.", err);
|
|
2685
2688
|
}
|
|
2686
2689
|
else {
|
|
2687
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
2690
|
+
const { openSqliteDatabase } = await import("./runner-rnXCGa20.mjs");
|
|
2688
2691
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
2689
2692
|
if (existsSync(dbPath)) try {
|
|
2690
2693
|
const db = await openSqliteDatabase(dbPath);
|
|
@@ -2840,7 +2843,7 @@ async function runExport(root, args, dialect) {
|
|
|
2840
2843
|
} else process.stdout.write(output);
|
|
2841
2844
|
return;
|
|
2842
2845
|
}
|
|
2843
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
2846
|
+
const { openSqliteDatabase } = await import("./runner-rnXCGa20.mjs");
|
|
2844
2847
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
2845
2848
|
if (!existsSync(dbPath)) {
|
|
2846
2849
|
log.error("No local database found. Start the dev server first.", errOut);
|
|
@@ -3005,7 +3008,7 @@ async function runSeedModule(root, seed, dialect, importModule) {
|
|
|
3005
3008
|
return;
|
|
3006
3009
|
}
|
|
3007
3010
|
const { drizzle } = await import("drizzle-orm/better-sqlite3");
|
|
3008
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
3011
|
+
const { openSqliteDatabase } = await import("./runner-rnXCGa20.mjs");
|
|
3009
3012
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
3010
3013
|
const sqlite = await openSqliteDatabase(dbPath);
|
|
3011
3014
|
try {
|
|
@@ -3026,7 +3029,7 @@ async function loadSeedFunction(seedPath, importModule) {
|
|
|
3026
3029
|
return seed;
|
|
3027
3030
|
}
|
|
3028
3031
|
async function loadSeedSchema(root, importModule) {
|
|
3029
|
-
const { discoverSchema } = await import("./discover-
|
|
3032
|
+
const { discoverSchema } = await import("./discover-BZWVWeQs.mjs");
|
|
3030
3033
|
const location = discoverSchema(root, readProjectPaths(root));
|
|
3031
3034
|
if (!location) return {};
|
|
3032
3035
|
if (location.type === "file") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as parseDbArgs } from "./db-args-BcvTZ8KE.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { o as writeFileIfChanged } from "./project-tsconfig-
|
|
2
|
+
import { o as writeFileIfChanged } from "./project-tsconfig-LjgxDdj_.mjs";
|
|
3
3
|
// src/codegen/db-types.ts
|
|
4
4
|
const DRIZZLE_OPERATORS = "sql, eq, ne, gt, gte, lt, lte, and, or, not, desc, asc, like, ilike, notLike, inArray, notInArray, isNull, isNotNull, between, notBetween, exists, notExists, count, sum, avg, min, max";
|
|
5
5
|
const DRIZZLE_TYPES = "AnyColumn, SQL, SQLWrapper, BatchItem";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { c as getToken } from "./auth-CeBmolb-.mjs";
|
|
2
|
+
import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
|
|
3
|
+
import { L as log, O as cancel, tt as isCancel } from "./dist-BngS28id.mjs";
|
|
4
|
+
import { o as text } from "./interactive-prompts-EK0dilFu.mjs";
|
|
5
|
+
import { a as createSpinner, g as note, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
6
|
+
import { o as removeProjectConfig, r as readProjectConfig } from "./project-DC-BqHef.mjs";
|
|
7
|
+
import { a as resolveProjectBySlug } from "./resolve-project-s_FGWyr-.mjs";
|
|
7
8
|
// src/cli/delete.ts
|
|
8
9
|
async function runDeleteCommand(root, slug, options) {
|
|
9
10
|
console.log();
|