void 0.20.2 → 0.21.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 +2 -2
- package/dist/agents-gni4eqBu.mjs +111 -0
- package/dist/auth-3sGB0zJ1.mjs +22 -0
- package/dist/{auth-DPl6kck4.mjs → auth-B9_D6ygs.mjs} +6 -241
- package/dist/auth-CAw7zHqj.mjs +2 -0
- package/dist/auth-client-BWBT8HLp.mjs +6 -0
- package/dist/auth-client-Bawdj38n.d.mts +7 -0
- package/dist/auth-client-react-7GFffu8R.d.mts +7 -0
- package/dist/auth-client-react-CMLwT2xI.mjs +6 -0
- package/dist/auth-client-solid-DyTFL4cq.d.mts +7 -0
- package/dist/auth-client-solid-UoreJWZG.mjs +6 -0
- package/dist/auth-client-svelte-Cv_WvrRk.mjs +6 -0
- package/dist/auth-client-svelte-zetW0KIH.d.mts +7 -0
- package/dist/auth-client-vue-CFk7Xbv3.mjs +6 -0
- package/dist/auth-client-vue-bChShbQP.d.mts +7 -0
- package/dist/{auth-cmd-gniL2fNt.mjs → auth-cmd-MkBG2u1f.mjs} +5 -5
- package/dist/{auth-link-NZdjCmSc.mjs → auth-link-Devmv96E.mjs} +5 -5
- package/dist/{better-auth-shared-DSCeohOK.d.mts → better-auth-shared-BoVwA5Vm.d.mts} +1 -6
- package/dist/{better-auth-shared-CYw1T3k4.mjs → better-auth-shared-syGYYmnY.mjs} +1 -1
- package/dist/{build-cmd-sI18tX_O.mjs → build-cmd-DsBGwtfs.mjs} +6 -4
- package/dist/{cache-IHn5MwBC.mjs → cache-BMw8eMyF.mjs} +6 -4
- package/dist/{cancel-deploy-C5qTOdLi.mjs → cancel-deploy-B3_s9NIN.mjs} +5 -3
- package/dist/cf-access-rAZxzMkL.mjs +181 -0
- package/dist/cf-build-output-CTdlo6Rt.mjs +520 -0
- package/dist/cli/cf-compat.d.mts +1 -0
- package/dist/cli/cf-compat.mjs +934 -0
- package/dist/cli/cli.mjs +61 -38
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/client-DAAivdid.mjs +2 -0
- package/dist/{client-dHfSJvAN.mjs → client-PdAJ-F0t.mjs} +148 -89
- package/dist/{cloudflare-auth-6M5llVPC.mjs → cloudflare-auth-BCmTc1X_.mjs} +13 -44
- package/dist/{cloudflare-cmd-4RPGN3KB.mjs → cloudflare-cmd-D6PrKn7o.mjs} +4 -7
- package/dist/{cloudflare-connect-t1UU5svD.mjs → cloudflare-connect-DloREDlc.mjs} +6 -6
- package/dist/cloudflare-operations-BHNJVDbN.mjs +2 -0
- package/dist/{cloudflare-operations-BzWnlC1_.mjs → cloudflare-operations-CPEdHYhM.mjs} +37 -39
- package/dist/cloudflare-user-output-Q-k0QoNQ.mjs +20 -0
- package/dist/collect-DAUItMDS.mjs +2 -0
- package/dist/collect-DXHNWHcT.mjs +48 -0
- package/dist/config--T87TD8T.mjs +2 -0
- package/dist/{config-NOG_U1aK.mjs → config-BSe70f4T.mjs} +4 -6
- package/dist/config-DDIFxQYx.mjs +2 -0
- package/dist/{config-uNGuFsI2.mjs → config-Dxr6cTXn.mjs} +22 -37
- package/dist/config-DywxBLQC.d.mts +185 -0
- package/dist/config-entry.d.mts +6 -0
- package/dist/config-entry.mjs +7 -0
- package/dist/config-uP7ZDtVZ.mjs +21 -0
- package/dist/config-write-y3CBI_ux.mjs +60 -0
- package/dist/{connect-Bfk31O_8.mjs → connect-BvC9kolB.mjs} +8 -6
- package/dist/{create-project-Bk9Z0-Jg.mjs → create-project-C9lQhRzj.mjs} +9 -25
- package/dist/create-project-CI-17RVJ.mjs +2 -0
- package/dist/database-provider-Cx525bwX.mjs +6 -0
- package/dist/database-provider.mjs +1 -5
- package/dist/{db-BkRoptAt.mjs → db-R7IQgOv5.mjs} +48 -44
- package/dist/{delete-DouASY9P.mjs → delete-CghI_NXn.mjs} +6 -4
- package/dist/deploy-CYPymbtG.mjs +2 -0
- package/dist/{deploy-DTaWUS1S.mjs → deploy-H968Lo4T.mjs} +765 -197
- package/dist/discover-BBzDZe_o.mjs +2 -0
- package/dist/{discover-xvfrgJeo.mjs → discover-C4O6YxVS.mjs} +3 -8
- package/dist/{dist-BrsS7cai.mjs → dist-4WkAWhWx.mjs} +1 -15
- package/dist/{dist-m40_XgNh.mjs → dist-Bn8Kodjp.mjs} +1 -1
- package/dist/dist-C5fND3R0.mjs +2 -0
- package/dist/dist-D7-nEOXi.mjs +2 -0
- package/dist/{output-B0cfNSx5.mjs → dist-Dn6nn2IU.mjs} +3 -926
- package/dist/{domain-1RhhOVrC.mjs → domain-CITt8lC-.mjs} +7 -5
- package/dist/{route-types-Da-DpyUp.mjs → drizzle-Beb2Am5S.mjs} +1 -280
- package/dist/{email-Ce6SQq-i.mjs → email-C5kaZXzJ.mjs} +2 -2
- package/dist/{email-C-lGh51B.mjs → email-_8VmyX7V.mjs} +14 -12
- package/dist/{entry-DU3oDoQ3.mjs → entry-DdRFGK0y.mjs} +2 -2
- package/dist/{env-DJHsPE7Z.mjs → env-DV4r3nHz.mjs} +9 -7
- package/dist/{env-DBKmK4vc.mjs → env-DX_v-Q-v.mjs} +1 -1
- package/dist/env-Yz4HcvHs.mjs +78 -0
- package/dist/env-helpers--wFmQ_5Q.mjs +136 -0
- package/dist/{env-types-BNPhro-M.mjs → env-types-CWDtqHgw.mjs} +6 -2
- package/dist/{env-validation-CF6KvTRf.mjs → env-validation-BsFEXps5.mjs} +19 -28
- package/dist/env-validation-DIDGM7h4.mjs +2 -0
- package/dist/fetch-CXDChK7B.mjs +18 -0
- package/dist/fetch-_SeGZao9.d.mts +57 -0
- package/dist/fetch-stream-AOByI7Ki.mjs +81 -0
- package/dist/fetch-stream-Bjf0hoZb.d.mts +49 -0
- package/dist/gen-BBiIZw6g.mjs +2 -0
- package/dist/{gen-B_wPnVTK.mjs → gen-CFOEEc-t.mjs} +13 -11
- package/dist/{generate-RTK8_kK1.mjs → generate-C0VY6RVf.mjs} +2 -2
- package/dist/{github-cmd-PW7ZnWTp.mjs → github-cmd-jYjha2LO.mjs} +18 -22
- package/dist/{handler-D1hLsObx.d.mts → handler-BXJTXd02.d.mts} +6 -1
- package/dist/handler-DghKr6dU.mjs +150 -0
- package/dist/head-D_QRR5Yd.mjs +112 -0
- package/dist/head-client-DzmJGN4C.mjs +90 -0
- package/dist/{headers-BAHwgHdW.mjs → headers-B_HBMgi0.mjs} +2 -2
- package/dist/{help-CwOX-zmI.mjs → help-C46mnlUS.mjs} +17 -12
- package/dist/help-CS_nAsWu.mjs +2 -0
- package/dist/index.d.mts +2 -20
- package/dist/index.mjs +116 -60
- package/dist/{init-BWZ7q5Z4.mjs → init-CSXmvxKu.mjs} +49 -50
- package/dist/{link-Rmvu2Wl_.mjs → link-DxMOALXk.mjs} +7 -5
- package/dist/{list-DEE2S6mY.mjs → list-0wQs0oYg.mjs} +7 -5
- package/dist/live-CB1y5IuC.mjs +411 -0
- package/dist/live-CKiJilLr.d.mts +105 -0
- package/dist/local-d1-DzykTWY8.mjs +104 -0
- package/dist/{login-Uvferzmm.mjs → login-CKk5NX4d.mjs} +6 -11
- package/dist/login-Ch9cgWRF.mjs +2 -0
- package/dist/{logs-27FenuiC.mjs → logs-hxWBSoej.mjs} +6 -4
- package/dist/migrate-CLty4mZR.mjs +2 -0
- package/dist/migrate-DcW8F2W8.mjs +285 -0
- package/dist/migration-handler-DM4clYj5.d.mts +51 -0
- package/dist/{neon-DHwd2zvC.mjs → neon-n74ta1Pr.mjs} +1 -1
- package/dist/{node-Ez5KW5rn.mjs → node-Cupyf7-s.mjs} +6 -6
- package/dist/{operator-auth-B3e08unv.mjs → operator-auth-BkVgJqv-.mjs} +2 -2
- package/dist/{operator-client-LUZnlnYk.mjs → operator-client-A0iex2yi.mjs} +2 -1
- package/dist/{operator-cmd-CjOTmAYE.mjs → operator-cmd-BEUYhaHB.mjs} +6 -6
- package/dist/output-urU86XeT.mjs +146 -0
- package/dist/{package-json-CPoWX79C.mjs → package-json-iCbMg5XF.mjs} +1 -1
- package/dist/pages/client.d.mts +5 -2
- package/dist/pages/client.mjs +5 -3
- package/dist/pages/head-client.mjs +1 -89
- package/dist/pages/head.mjs +1 -111
- package/dist/pages/index.d.mts +2 -3
- package/dist/pages/index.mjs +7 -7
- package/dist/pages/islands-plugin.mjs +2 -2
- package/dist/pages/prefetch.d.mts +2 -30
- package/dist/pages/prefetch.mjs +1 -89
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +3 -3
- package/dist/pages/serialize.d.mts +2 -9
- package/dist/pages/serialize.mjs +1 -13
- package/dist/plan-BEZ8VJW0.mjs +256 -0
- package/dist/plan-DpuOr14e.mjs +2 -0
- package/dist/{platform-auth-config-DrbQXXiW.mjs → platform-auth-config-Df6yVw-e.mjs} +6 -6
- package/dist/{platform-auth-protection-Bhtvp0B_.mjs → platform-auth-protection-Jb0yftay.mjs} +7 -5
- package/dist/{platform-auth-recovery-CeOKGVeJ.mjs → platform-auth-recovery-DmRyIfW0.mjs} +6 -5
- package/dist/platform-cmd-C9Vt7m-d.mjs +2 -0
- package/dist/{platform-cmd-BFhieCdV.mjs → platform-cmd-DRxCOTwy.mjs} +8 -5
- package/dist/{platform-domain-C74PULqV.mjs → platform-domain-IjiXgrXJ.mjs} +4 -3
- package/dist/{platform-lifecycle-BwAIgz-t.mjs → platform-lifecycle-BquAaU-5.mjs} +263 -56
- package/dist/platform-lifecycle-CuJIZNvA.mjs +2 -0
- package/dist/{platform-management-COogu_Se.mjs → platform-management-CCQKGsq4.mjs} +12 -7
- package/dist/platform-management-Cgyed0WY.mjs +2 -0
- package/dist/{platform-recovery-ewqLefp1.mjs → platform-recovery-DS8ih1SW.mjs} +3 -3
- package/dist/platform-registry-BJbgZLS1.mjs +431 -0
- package/dist/{plugin-inference-BDRfZngg.mjs → plugin-inference-DsvtJLll.mjs} +4 -4
- package/dist/prefetch-Bsc_Pb6c.mjs +90 -0
- package/dist/prefetch-Ce6la4EI.d.mts +31 -0
- package/dist/{prepare-blNRQvQl.mjs → prepare-CaUxODOU.mjs} +3 -2
- package/dist/prepare-D4CkM3_v.mjs +2 -0
- package/dist/{prepare-CtDJjoOj.mjs → prepare-pcWcxSCh.mjs} +13 -11
- package/dist/prerender-render-Cf_WDE9W.mjs +111 -0
- package/dist/prerender-render.mjs +1 -110
- package/dist/{preset-lAy0B0BQ.mjs → preset-Dowh9tTt.mjs} +16 -118
- package/dist/project-BEBFDFLz.mjs +2 -0
- package/dist/project-CWNIPoXc.mjs +209 -0
- package/dist/{project-cmd-DmZK9Hxf.mjs → project-cmd-2lN--YAX.mjs} +18 -16
- package/dist/{project-paths-SK8nMHPp.mjs → project-paths-CKQ-Q5JS.mjs} +47 -14
- package/dist/project-slug-23TpquG4.mjs +8 -0
- package/dist/project-slug-DofjTFd-.mjs +2 -0
- package/dist/{project-team-D8jOJMUJ.mjs → project-team-Dapn9HZn.mjs} +9 -5
- package/dist/{project-token-DA34bf-C.mjs → project-token-C90v9SJK.mjs} +6 -4
- package/dist/{project-tsconfig-Ql2XsSQp.mjs → project-tsconfig-CwfqUnVp.mjs} +2 -2
- package/dist/{protocol-C-pqYJjE.d.mts → protocol-ZH3jP4a7.d.mts} +1 -1
- package/dist/providers-BNKRacMr.d.mts +7 -0
- package/dist/provision-CNgEBkVA.mjs +3 -0
- package/dist/{provision-CSJOjjQk.mjs → provision-Cck2m3jJ.mjs} +11 -25
- package/dist/queues-BWKt1Xo4.d.mts +7 -0
- package/dist/{requests-CUExwGQQ.mjs → requests-CzX46I0i.mjs} +5 -3
- package/dist/resolve-project-BTotl8Nn.mjs +2 -0
- package/dist/{resolve-project--Vxawf7z.mjs → resolve-project-Xvis70DG.mjs} +2 -8
- package/dist/response-Tn7rU0MV.mjs +30 -0
- package/dist/{rollback-CDNGU1gr.mjs → rollback-BEeyc73H.mjs} +6 -4
- package/dist/{rolldown-runtime-rQ84J-ij.mjs → rolldown-runtime-DXIUcv95.mjs} +1 -10
- package/dist/route-types-Id82-veQ.mjs +280 -0
- package/dist/{local-d1-D2I6Ox5F.mjs → runner-BGVsGgkb.mjs} +6 -114
- package/dist/runner-CQs_cDSG.mjs +2 -0
- package/dist/runner-mysql-1o47achK.mjs +2 -0
- package/dist/{runner-mysql-7BPUNGmL.mjs → runner-mysql-BhwMk2Bm.mjs} +2 -9
- package/dist/{runner-pg-BkEza-dX.mjs → runner-pg-CJ_JeGF6.mjs} +2 -9
- package/dist/runner-pg-D7z01mQS.mjs +2 -0
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/auth-client-react.d.mts +2 -6
- package/dist/runtime/auth-client-react.mjs +1 -5
- package/dist/runtime/auth-client-solid.d.mts +2 -6
- package/dist/runtime/auth-client-solid.mjs +1 -5
- package/dist/runtime/auth-client-svelte.d.mts +2 -6
- package/dist/runtime/auth-client-svelte.mjs +1 -5
- package/dist/runtime/auth-client-vue.d.mts +2 -6
- package/dist/runtime/auth-client-vue.mjs +1 -5
- package/dist/runtime/auth-client.d.mts +2 -6
- package/dist/runtime/auth-client.mjs +1 -5
- package/dist/runtime/auth.mjs +1 -21
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.mjs +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/client-react.d.mts +3 -3
- package/dist/runtime/client-react.mjs +3 -3
- package/dist/runtime/client-solid.d.mts +3 -3
- package/dist/runtime/client-solid.mjs +3 -3
- package/dist/runtime/client-svelte.d.mts +3 -3
- package/dist/runtime/client-svelte.mjs +3 -3
- package/dist/runtime/client-vue.d.mts +3 -3
- package/dist/runtime/client-vue.mjs +3 -3
- package/dist/runtime/client.d.mts +3 -3
- package/dist/runtime/client.mjs +3 -3
- package/dist/runtime/db.mjs +1 -1
- package/dist/runtime/durable.mjs +1 -1
- package/dist/runtime/email/testing.mjs +1 -1
- package/dist/runtime/env-helpers.mjs +1 -135
- package/dist/runtime/env-public-client.mjs +1 -1
- package/dist/runtime/env-public.mjs +2 -2
- package/dist/runtime/env.mjs +1 -77
- package/dist/runtime/fetch-stream.d.mts +2 -49
- package/dist/runtime/fetch-stream.mjs +2 -80
- package/dist/runtime/fetch.d.mts +2 -57
- package/dist/runtime/fetch.mjs +2 -17
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -149
- package/dist/runtime/kv.mjs +1 -1
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live-server.mjs +2 -2
- package/dist/runtime/live.d.mts +2 -104
- package/dist/runtime/live.mjs +1 -410
- package/dist/runtime/migration-handler-mysql.d.mts +1 -1
- package/dist/runtime/migration-handler-pg.d.mts +1 -1
- package/dist/runtime/migration-handler.d.mts +2 -50
- package/dist/runtime/queues.d.mts +2 -6
- package/dist/runtime/queues.mjs +1 -1
- package/dist/runtime/remote/index.mjs +49 -8
- package/dist/runtime/response.mjs +1 -29
- package/dist/runtime/sandbox.d.mts +4 -56
- package/dist/runtime/sandbox.mjs +82 -221
- package/dist/runtime/sse.mjs +1 -171
- package/dist/runtime/storage.mjs +1 -1
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/validator.mjs +1 -71
- package/dist/runtime/ws-server.d.mts +2 -2
- package/dist/runtime/ws-server.mjs +2 -2
- package/dist/runtime/ws.d.mts +2 -121
- package/dist/{scan-CpK-57ug.mjs → scan-DJbooZm2.mjs} +3 -3
- package/dist/{scan-BMH4rzlv.mjs → scan-DdDvRCU1.mjs} +8 -26
- package/dist/{secret-Bzzi2e9E.mjs → secret-wnTel5Yw.mjs} +8 -6
- package/dist/serialize-BPvnNQuA.mjs +14 -0
- package/dist/serialize-CfSwWfF2.d.mts +10 -0
- package/dist/{skills-C0RvGjeE.mjs → skills-B-690E7h.mjs} +3 -2
- package/dist/sse-BaC1jXko.mjs +172 -0
- package/dist/{subcommand-prompt-Bmyn5Rlc.mjs → subcommand-prompt-Gj3VzLIh.mjs} +2 -1
- package/dist/sveltekit.d.mts +2 -1
- package/dist/sveltekit.mjs +3 -2
- package/dist/validate-DqJ33oHj.mjs +2 -0
- package/dist/validate-qNhV00PD.mjs +180 -0
- package/dist/validator-BTOu0fB0.mjs +72 -0
- package/dist/{wrangler--imS8n0d.mjs → wrangler-D01qs6VB.mjs} +259 -71
- package/dist/ws-BwcqizuH.d.mts +122 -0
- package/dist/{yarn-pnp-DxSInkzL.mjs → yarn-pnp-CVEc3gE7.mjs} +1 -1
- package/package.json +19 -8
- package/skills/void/SKILL.md +7 -5
- package/skills/void/docs/guide/ai.md +3 -3
- package/skills/void/docs/guide/app-types.md +12 -11
- package/skills/void/docs/guide/auth.md +2 -2
- package/skills/void/docs/guide/database/d1.md +1 -1
- package/skills/void/docs/guide/database/mysql.md +1 -1
- package/skills/void/docs/guide/database/postgresql.md +3 -3
- package/skills/void/docs/guide/deployment.md +16 -16
- package/skills/void/docs/guide/durable-state.md +2 -2
- package/skills/void/docs/guide/edge/headers.md +3 -3
- package/skills/void/docs/guide/edge/prerendering.md +1 -1
- package/skills/void/docs/guide/edge/redirects.md +4 -4
- package/skills/void/docs/guide/edge/revalidation.md +6 -6
- package/skills/void/docs/guide/edge/rewrites.md +28 -27
- package/skills/void/docs/guide/edge/static-assets.md +1 -1
- package/skills/void/docs/guide/email.md +27 -25
- package/skills/void/docs/guide/env-migration.md +1 -1
- package/skills/void/docs/guide/index.md +1 -1
- package/skills/void/docs/guide/pages-routing/head.md +1 -1
- package/skills/void/docs/guide/platform/administration/access.md +171 -0
- package/skills/void/docs/guide/platform/administration/email.md +121 -0
- package/skills/void/docs/guide/platform/administration/operations.md +97 -0
- package/skills/void/docs/guide/platform/administration/projects.md +56 -0
- package/skills/void/docs/guide/platform/development/local.md +119 -0
- package/skills/void/docs/guide/platform/development/runtime.md +124 -0
- package/skills/void/docs/guide/platform/development/schema-ci.md +95 -0
- package/skills/void/docs/guide/platform/installation/ci.md +58 -0
- package/skills/void/docs/guide/platform/installation/credentials.md +90 -0
- package/skills/void/docs/guide/platform/installation/domains.md +68 -0
- package/skills/void/docs/guide/platform/installation/first-deployment.md +82 -0
- package/skills/void/docs/guide/platform/installation/maintenance.md +137 -0
- package/skills/void/docs/guide/platform/installation/prerequisites.md +88 -0
- package/skills/void/docs/guide/platform/installation/setup.md +169 -0
- package/skills/void/docs/guide/platform/installation/uninstall.md +54 -0
- package/skills/void/docs/guide/platform-administration.md +6 -414
- package/skills/void/docs/guide/platform-development.md +5 -316
- package/skills/void/docs/guide/project-collaboration.md +1 -1
- package/skills/void/docs/guide/remote-dev.md +2 -2
- package/skills/void/docs/guide/sandboxes.md +10 -25
- package/skills/void/docs/guide/self-hosted-platform.md +11 -694
- package/skills/void/docs/guide/ssg.md +1 -1
- package/skills/void/docs/guide/websockets.md +1 -1
- package/skills/void/docs/integrations/cloudflare.md +86 -84
- package/skills/void/docs/integrations/frameworks/analog.md +14 -9
- package/skills/void/docs/integrations/frameworks/astro.md +14 -10
- package/skills/void/docs/integrations/frameworks/nuxt.md +14 -9
- package/skills/void/docs/integrations/frameworks/overview.md +35 -29
- package/skills/void/docs/integrations/frameworks/react-router.md +1 -1
- package/skills/void/docs/integrations/frameworks/sveltekit.md +33 -30
- package/skills/void/docs/integrations/frameworks/tanstack-start.md +1 -1
- package/skills/void/docs/integrations/nodejs-bun-deno.md +5 -5
- package/skills/void/docs/reference/api.md +55 -38
- package/skills/void/docs/reference/cli.md +60 -34
- package/skills/void/docs/reference/config.md +57 -34
- package/skills/void/docs/reference/resource-inference.md +10 -10
- package/skills/void/docs/reference/structure.md +2 -2
- package/dist/validate-tBBN_dXH.mjs +0 -505
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
1
|
+
import { a as join, l as relative, r as extname, t as basename, u as resolve } from "./dist-4WkAWhWx.mjs";
|
|
2
|
+
import { a as dim, c as import_picocolors, r as cliTitle } from "./output-urU86XeT.mjs";
|
|
3
|
+
import { n as readProjectPaths } from "./project-paths-CKQ-Q5JS.mjs";
|
|
4
4
|
import { t as cfAccessHeaders } from "./cf-access-DRsQRe6k.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
5
|
+
import { c as getToken, o as getProxyUrl } from "./auth-B9_D6ygs.mjs";
|
|
6
|
+
import { i as isCloudflareAccessChallenge, n as ensurePlatformAccessToken, r as ensurePlatformProxyAccess } from "./cf-access-rAZxzMkL.mjs";
|
|
7
|
+
import { i as readDeploymentPlatform, o as readProjectConfig } from "./project-CWNIPoXc.mjs";
|
|
8
|
+
import { h as resolveBindingNames, m as readConfig, u as getDatabaseDialect } from "./config-Dxr6cTXn.mjs";
|
|
9
|
+
import { r as detectFramework } from "./plugin-inference-DsvtJLll.mjs";
|
|
10
|
+
import { i as writeJournal, n as readJournal, r as stripSqlExt, t as collectMigrations } from "./collect-DXHNWHcT.mjs";
|
|
11
|
+
import { t as resolveLocalD1Target } from "./local-d1-DzykTWY8.mjs";
|
|
12
|
+
import { a as loadLocalEnv } from "./env-DX_v-Q-v.mjs";
|
|
13
|
+
import { E as confirm, O as intro, P as outro, W as isCancel, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
14
|
+
import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-qNhV00PD.mjs";
|
|
15
|
+
import { n as PlatformClient, t as PlatformApiError } from "./client-PdAJ-F0t.mjs";
|
|
16
|
+
import { n as formatTimestamp } from "./gen-CFOEEc-t.mjs";
|
|
13
17
|
import { createRequire } from "node:module";
|
|
14
18
|
import { existsSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
15
19
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -200,7 +204,7 @@ function assertDatabaseProvider(value, source) {
|
|
|
200
204
|
}
|
|
201
205
|
async function loadDatabaseProvider(root, provider) {
|
|
202
206
|
if (provider === "neon") {
|
|
203
|
-
const { createNeonDatabaseProvider } = await import("./neon-
|
|
207
|
+
const { createNeonDatabaseProvider } = await import("./neon-n74ta1Pr.mjs");
|
|
204
208
|
return createNeonDatabaseProvider();
|
|
205
209
|
}
|
|
206
210
|
const requireFromProject = createRequire(join(root, "package.json"));
|
|
@@ -215,7 +219,7 @@ async function loadDatabaseProvider(root, provider) {
|
|
|
215
219
|
}
|
|
216
220
|
async function runConnect(root, dialect, args) {
|
|
217
221
|
if (dialect === "sqlite") {
|
|
218
|
-
log.error("db: `void db connect` requires an external database. Set \"database\" to \"pg\" or \"mysql\" in void.
|
|
222
|
+
log.error("db: `void db connect` requires an external database. Set \"database\" to \"pg\" or \"mysql\" in void.config.ts first.");
|
|
219
223
|
process.exit(1);
|
|
220
224
|
}
|
|
221
225
|
let connectionString = args.url;
|
|
@@ -233,7 +237,7 @@ async function runConnect(root, dialect, args) {
|
|
|
233
237
|
if (result.dashboardUrl) log.info(`Dashboard: ${result.dashboardUrl}`);
|
|
234
238
|
}
|
|
235
239
|
if (!connectionString) {
|
|
236
|
-
const { text: promptText, isCancel: isCancelCheck } = await import("./
|
|
240
|
+
const { text: promptText, isCancel: isCancelCheck } = await import("./dist-C5fND3R0.mjs");
|
|
237
241
|
const answer = await promptText({
|
|
238
242
|
message: `Enter your ${dialect === "mysql" ? "MySQL" : "PostgreSQL"} connection string:`,
|
|
239
243
|
placeholder: dialect === "mysql" ? "mysql://user:pass@host:3306/database" : "postgresql://user:pass@host:5432/database"
|
|
@@ -256,12 +260,12 @@ async function runConnect(root, dialect, args) {
|
|
|
256
260
|
outro("Database connected.");
|
|
257
261
|
}
|
|
258
262
|
async function runPush(root, dialect) {
|
|
259
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
263
|
+
const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
|
|
260
264
|
let configPath;
|
|
261
265
|
if (dialect !== "sqlite") configPath = writeDrizzleConfig(root, dialect === "mysql" ? getMySqlUrl(root) : getPgUrl(root), dialect);
|
|
262
266
|
else {
|
|
263
267
|
const { mkdirSync } = await import("node:fs");
|
|
264
|
-
const { dirname } = await import("./dist-
|
|
268
|
+
const { dirname } = await import("./dist-D7-nEOXi.mjs");
|
|
265
269
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
266
270
|
mkdirSync(dirname(dbPath), { recursive: true });
|
|
267
271
|
configPath = writeDrizzleConfig(root, dbPath);
|
|
@@ -278,15 +282,15 @@ async function runPush(root, dialect) {
|
|
|
278
282
|
outro("Done.");
|
|
279
283
|
}
|
|
280
284
|
async function runGenerate(root, dialect) {
|
|
281
|
-
const { prepareProject } = await import("./prepare-
|
|
282
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
285
|
+
const { prepareProject } = await import("./prepare-D4CkM3_v.mjs");
|
|
286
|
+
const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
|
|
283
287
|
await prepareProject(root);
|
|
284
288
|
const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
|
|
285
289
|
const additionalSchemas = existsSync(authSchemaPath) ? [authSchemaPath] : void 0;
|
|
286
290
|
const configPath = writeDrizzleConfig(root, dialect === "postgresql" ? "postgresql://dummy" : dialect === "mysql" ? "mysql://dummy" : ":memory:", dialect, { additionalSchemas });
|
|
287
291
|
try {
|
|
288
292
|
if (dialect === "sqlite") {
|
|
289
|
-
const { generateValidatedSqliteMigrations } = await import("./generate-
|
|
293
|
+
const { generateValidatedSqliteMigrations } = await import("./generate-C0VY6RVf.mjs");
|
|
290
294
|
await generateValidatedSqliteMigrations(readProjectPaths(root).migrationsDir, () => {
|
|
291
295
|
runDrizzleKit(root, [
|
|
292
296
|
"generate",
|
|
@@ -344,7 +348,7 @@ async function runStatus(root, dialect) {
|
|
|
344
348
|
localApplied = [];
|
|
345
349
|
}
|
|
346
350
|
else {
|
|
347
|
-
const { getAppliedMigrations } = await import("./
|
|
351
|
+
const { getAppliedMigrations } = await import("./runner-CQs_cDSG.mjs");
|
|
348
352
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
349
353
|
localApplied = await getAppliedMigrations(dbPath);
|
|
350
354
|
}
|
|
@@ -354,12 +358,12 @@ async function runStatus(root, dialect) {
|
|
|
354
358
|
if (dialect !== "sqlite") {
|
|
355
359
|
const databaseUrl = process.env.DATABASE_URL;
|
|
356
360
|
if (!databaseUrl) throw new Error("DATABASE_URL is not available.");
|
|
357
|
-
remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-
|
|
361
|
+
remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-D7z01mQS.mjs")).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-1o47achK.mjs")).getMySqlAppliedMigrations(databaseUrl)).map((name) => ({
|
|
358
362
|
name,
|
|
359
363
|
applied_at: ""
|
|
360
364
|
}));
|
|
361
365
|
} else {
|
|
362
|
-
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
366
|
+
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BHNJVDbN.mjs");
|
|
363
367
|
remoteApplied = (await readCloudflareD1Migrations(resolveCloudflareD1Context(root, resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB"))).map((name) => ({
|
|
364
368
|
name,
|
|
365
369
|
applied_at: ""
|
|
@@ -435,12 +439,12 @@ async function resetDatabase(root, dialect) {
|
|
|
435
439
|
}
|
|
436
440
|
});
|
|
437
441
|
if (migrations.length > 0) {
|
|
438
|
-
const { applyMySqlMigrations } = await import("./runner-mysql-
|
|
442
|
+
const { applyMySqlMigrations } = await import("./runner-mysql-1o47achK.mjs");
|
|
439
443
|
await withMySqlClient(root, (client) => applyMySqlMigrations(client, migrations));
|
|
440
444
|
}
|
|
441
445
|
return migrations.length;
|
|
442
446
|
}
|
|
443
|
-
const { runMigrations } = await import("./
|
|
447
|
+
const { runMigrations } = await import("./runner-CQs_cDSG.mjs");
|
|
444
448
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
445
449
|
rmSync(dbPath, { force: true });
|
|
446
450
|
rmSync(dbPath + "-wal", { force: true });
|
|
@@ -475,7 +479,7 @@ async function runSeed(root, file, dialect) {
|
|
|
475
479
|
outro("Done.");
|
|
476
480
|
return;
|
|
477
481
|
}
|
|
478
|
-
const { openSqliteDatabase } = await import("./
|
|
482
|
+
const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
|
|
479
483
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
480
484
|
const db = await openSqliteDatabase(dbPath);
|
|
481
485
|
try {
|
|
@@ -601,7 +605,7 @@ async function runExecute(root, command, file, dialect, remote) {
|
|
|
601
605
|
process.exit(0);
|
|
602
606
|
}
|
|
603
607
|
if (dialect === "sqlite") {
|
|
604
|
-
const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
608
|
+
const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-BHNJVDbN.mjs");
|
|
605
609
|
const rows = await executeCloudflareD1Sql(resolveCloudflareD1Context(root, resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB"), sql);
|
|
606
610
|
if (rows.length > 0) printTable(rows);
|
|
607
611
|
else log.success("Executed successfully.");
|
|
@@ -706,7 +710,7 @@ async function runExecute(root, command, file, dialect, remote) {
|
|
|
706
710
|
outro("Done.");
|
|
707
711
|
return;
|
|
708
712
|
}
|
|
709
|
-
const { openSqliteDatabase } = await import("./
|
|
713
|
+
const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
|
|
710
714
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
711
715
|
if (!existsSync(dbPath)) {
|
|
712
716
|
log.error("No local database found. Run `void dev` first.");
|
|
@@ -774,11 +778,11 @@ async function runMigrate(root, dialect, remote) {
|
|
|
774
778
|
let appliedNames;
|
|
775
779
|
let applyMigrations;
|
|
776
780
|
if (dialect === "postgresql") {
|
|
777
|
-
const { getPgAppliedMigrations, runPgMigrations } = await import("./runner-pg-
|
|
781
|
+
const { getPgAppliedMigrations, runPgMigrations } = await import("./runner-pg-D7z01mQS.mjs");
|
|
778
782
|
appliedNames = await getPgAppliedMigrations(databaseUrl);
|
|
779
783
|
applyMigrations = () => runPgMigrations(migrationsDir, databaseUrl);
|
|
780
784
|
} else {
|
|
781
|
-
const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-
|
|
785
|
+
const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-1o47achK.mjs");
|
|
782
786
|
appliedNames = await getMySqlAppliedMigrations(databaseUrl);
|
|
783
787
|
applyMigrations = () => runMySqlMigrations(migrationsDir, databaseUrl);
|
|
784
788
|
}
|
|
@@ -806,7 +810,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
806
810
|
outro("Done.");
|
|
807
811
|
return;
|
|
808
812
|
}
|
|
809
|
-
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
813
|
+
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BHNJVDbN.mjs");
|
|
810
814
|
const binding = resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB";
|
|
811
815
|
const context = resolveCloudflareD1Context(root, binding);
|
|
812
816
|
const remoteBefore = new Set(await readCloudflareD1Migrations(context));
|
|
@@ -822,7 +826,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
822
826
|
log.error(getErrorMessage(error));
|
|
823
827
|
process.exit(1);
|
|
824
828
|
}
|
|
825
|
-
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-
|
|
829
|
+
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-CYPymbtG.mjs");
|
|
826
830
|
const applySet = await checkWranglerMigrationApplySet(context.operation.configPath, parseRootWranglerConfig(context.operation.configPath), binding, context.migrationsDir, rawMigrations);
|
|
827
831
|
if (!applySet.ok) {
|
|
828
832
|
log.error(applySet.reason);
|
|
@@ -891,7 +895,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
891
895
|
return;
|
|
892
896
|
}
|
|
893
897
|
if (dialect === "postgresql") {
|
|
894
|
-
const { applyPgMigrations } = await import("./runner-pg-
|
|
898
|
+
const { applyPgMigrations } = await import("./runner-pg-D7z01mQS.mjs");
|
|
895
899
|
const applied = await withPgClient(root, async (client) => {
|
|
896
900
|
let existingRows = [];
|
|
897
901
|
try {
|
|
@@ -916,7 +920,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
916
920
|
return;
|
|
917
921
|
}
|
|
918
922
|
if (dialect === "mysql") {
|
|
919
|
-
const { applyMySqlMigrations } = await import("./runner-mysql-
|
|
923
|
+
const { applyMySqlMigrations } = await import("./runner-mysql-1o47achK.mjs");
|
|
920
924
|
const applied = await withMySqlClient(root, async (client) => {
|
|
921
925
|
let existingRows = [];
|
|
922
926
|
try {
|
|
@@ -940,7 +944,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
940
944
|
outro("Done.");
|
|
941
945
|
return;
|
|
942
946
|
}
|
|
943
|
-
const { getAppliedMigrations, runMigrations } = await import("./
|
|
947
|
+
const { getAppliedMigrations, runMigrations } = await import("./runner-CQs_cDSG.mjs");
|
|
944
948
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
945
949
|
try {
|
|
946
950
|
const existingRows = await getAppliedMigrations(dbPath);
|
|
@@ -984,7 +988,7 @@ async function runStudio(root, dialect, remote) {
|
|
|
984
988
|
}
|
|
985
989
|
dbUrl = await fetchRemoteDatabaseUrl(new PlatformClient(token, { root }), projectConfig.projectId);
|
|
986
990
|
}
|
|
987
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
991
|
+
const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
|
|
988
992
|
const configPath = writeDrizzleConfig(root, dbUrl, dialect);
|
|
989
993
|
log.info("Opening Drizzle Studio (remote)...");
|
|
990
994
|
try {
|
|
@@ -999,7 +1003,7 @@ async function runStudio(root, dialect, remote) {
|
|
|
999
1003
|
return;
|
|
1000
1004
|
}
|
|
1001
1005
|
if (dialect !== "sqlite") {
|
|
1002
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
1006
|
+
const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
|
|
1003
1007
|
const configPath = writeDrizzleConfig(root, dialect === "mysql" ? getMySqlUrl(root) : getPgUrl(root), dialect);
|
|
1004
1008
|
log.info("Opening Drizzle Studio...");
|
|
1005
1009
|
try {
|
|
@@ -1013,7 +1017,7 @@ async function runStudio(root, dialect, remote) {
|
|
|
1013
1017
|
}
|
|
1014
1018
|
return;
|
|
1015
1019
|
}
|
|
1016
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
1020
|
+
const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
|
|
1017
1021
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1018
1022
|
if (!existsSync(dbPath)) {
|
|
1019
1023
|
log.error("No local database found. Run `void dev` first.");
|
|
@@ -1250,7 +1254,7 @@ async function runRenameMigrations(root, dialect) {
|
|
|
1250
1254
|
process.exit(1);
|
|
1251
1255
|
}
|
|
1252
1256
|
else {
|
|
1253
|
-
const { openSqliteDatabase } = await import("./
|
|
1257
|
+
const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
|
|
1254
1258
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1255
1259
|
if (existsSync(dbPath)) try {
|
|
1256
1260
|
const db = await openSqliteDatabase(dbPath);
|
|
@@ -1380,7 +1384,7 @@ async function runExport(root, args, dialect) {
|
|
|
1380
1384
|
} else process.stdout.write(output);
|
|
1381
1385
|
return;
|
|
1382
1386
|
}
|
|
1383
|
-
const { openSqliteDatabase } = await import("./
|
|
1387
|
+
const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
|
|
1384
1388
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1385
1389
|
if (!existsSync(dbPath)) {
|
|
1386
1390
|
log.error("No local database found. Run `void dev` first.", errOut);
|
|
@@ -1436,10 +1440,10 @@ async function runExport(root, args, dialect) {
|
|
|
1436
1440
|
}
|
|
1437
1441
|
}
|
|
1438
1442
|
async function runSetUrl(root) {
|
|
1439
|
-
const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config
|
|
1443
|
+
const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config--T87TD8T.mjs");
|
|
1440
1444
|
const dialect = getDialect(readVoidConfig(root));
|
|
1441
1445
|
if (dialect === "sqlite") {
|
|
1442
|
-
log.error("db: This command is only for PostgreSQL and MySQL projects. Set \"database\" to \"pg\" or \"mysql\" in void.
|
|
1446
|
+
log.error("db: This command is only for PostgreSQL and MySQL projects. Set \"database\" to \"pg\" or \"mysql\" in void.config.ts.");
|
|
1443
1447
|
process.exit(1);
|
|
1444
1448
|
}
|
|
1445
1449
|
const token = getToken(root);
|
|
@@ -1452,7 +1456,7 @@ async function runSetUrl(root) {
|
|
|
1452
1456
|
log.error("No project linked. Run `void deploy` first or link a project.");
|
|
1453
1457
|
process.exit(1);
|
|
1454
1458
|
}
|
|
1455
|
-
const { text: promptText, isCancel: isCancelCheck } = await import("./
|
|
1459
|
+
const { text: promptText, isCancel: isCancelCheck } = await import("./dist-C5fND3R0.mjs");
|
|
1456
1460
|
const connectionString = await promptText({
|
|
1457
1461
|
message: `Enter your ${dialect === "mysql" ? "MySQL" : "PostgreSQL"} connection string:`,
|
|
1458
1462
|
placeholder: dialect === "mysql" ? "mysql://user:pass@host:3306/dbname" : "postgresql://user:pass@host:5432/dbname",
|
|
@@ -1539,7 +1543,7 @@ async function runSeedModule(root, seedPath, dialect) {
|
|
|
1539
1543
|
return;
|
|
1540
1544
|
}
|
|
1541
1545
|
const { drizzle } = await import("drizzle-orm/better-sqlite3");
|
|
1542
|
-
const { openSqliteDatabase } = await import("./
|
|
1546
|
+
const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
|
|
1543
1547
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1544
1548
|
const sqlite = await openSqliteDatabase(dbPath);
|
|
1545
1549
|
try {
|
|
@@ -1560,7 +1564,7 @@ async function loadSeedFunction(seedPath) {
|
|
|
1560
1564
|
return seed;
|
|
1561
1565
|
}
|
|
1562
1566
|
async function loadSeedSchema(root) {
|
|
1563
|
-
const { discoverSchema } = await import("./discover-
|
|
1567
|
+
const { discoverSchema } = await import("./discover-BBzDZe_o.mjs");
|
|
1564
1568
|
const location = discoverSchema(root, readProjectPaths(root));
|
|
1565
1569
|
if (!location) return {};
|
|
1566
1570
|
if (location.type === "file") {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { i as createSpinner, r as cliTitle } from "./output-urU86XeT.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-B9_D6ygs.mjs";
|
|
3
|
+
import { c as removeProjectConfig, o as readProjectConfig } from "./project-CWNIPoXc.mjs";
|
|
4
|
+
import { B as text, N as note, O as intro, P as outro, T as cancel, W as isCancel, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
5
|
+
import { n as PlatformClient } from "./client-PdAJ-F0t.mjs";
|
|
6
|
+
import { r as resolveProjectBySlug } from "./resolve-project-Xvis70DG.mjs";
|
|
5
7
|
//#region src/cli/delete.ts
|
|
6
8
|
async function runDeleteCommand(root, slug, options) {
|
|
7
9
|
console.log();
|