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,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
1
|
+
import { a as dim, c as import_picocolors, r as cliTitle, u as tablePrefix } from "./output-urU86XeT.mjs";
|
|
2
|
+
import { c as getToken, s as getSiteDomain } from "./auth-B9_D6ygs.mjs";
|
|
3
|
+
import { i as readDeploymentPlatform } from "./project-CWNIPoXc.mjs";
|
|
4
|
+
import { O as intro, P as outro, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
5
|
+
import { n as PlatformClient } from "./client-PdAJ-F0t.mjs";
|
|
4
6
|
//#region src/cli/projects.ts
|
|
5
7
|
async function runProjectsCommand(root) {
|
|
6
8
|
console.log();
|
|
@@ -37,63 +39,63 @@ async function runProjectsCommand(root) {
|
|
|
37
39
|
async function runProjectCommand(root, args) {
|
|
38
40
|
const cloudflare = readDeploymentPlatform(root) === "cloudflare";
|
|
39
41
|
if (args.subcommand === "status") {
|
|
40
|
-
const { runListCommand } = await import("./list-
|
|
42
|
+
const { runListCommand } = await import("./list-0wQs0oYg.mjs");
|
|
41
43
|
return runListCommand(root, args.name || void 0);
|
|
42
44
|
}
|
|
43
45
|
if (args.subcommand === "link") {
|
|
44
|
-
if (cloudflare) throw new Error("project: Direct Cloudflare apps are identified by
|
|
45
|
-
const { runLink } = await import("./link-
|
|
46
|
+
if (cloudflare) throw new Error("project: Direct Cloudflare apps are identified by cloudflare.name in void.config.ts and do not need linking.");
|
|
47
|
+
const { runLink } = await import("./link-DxMOALXk.mjs");
|
|
46
48
|
return runLink(root, args.name || void 0);
|
|
47
49
|
}
|
|
48
50
|
if (args.subcommand === "list") {
|
|
49
51
|
if (cloudflare) {
|
|
50
|
-
const { runListCommand } = await import("./list-
|
|
52
|
+
const { runListCommand } = await import("./list-0wQs0oYg.mjs");
|
|
51
53
|
return runListCommand(root);
|
|
52
54
|
}
|
|
53
55
|
return runProjectsCommand(root);
|
|
54
56
|
}
|
|
55
57
|
if (args.subcommand === "token") {
|
|
56
58
|
if (cloudflare) throw new Error("project: CI deploy credentials are available only for Void platform projects.");
|
|
57
|
-
const { runProjectTokenCommand } = await import("./project-token-
|
|
59
|
+
const { runProjectTokenCommand } = await import("./project-token-C90v9SJK.mjs");
|
|
58
60
|
return runProjectTokenCommand(root, args);
|
|
59
61
|
}
|
|
60
62
|
if (args.subcommand === "team") {
|
|
61
63
|
if (args.action === "") {
|
|
62
|
-
const { printHelpPage } = await import("./help-
|
|
64
|
+
const { printHelpPage } = await import("./help-CS_nAsWu.mjs");
|
|
63
65
|
printHelpPage(["project", "team"]);
|
|
64
66
|
return;
|
|
65
67
|
}
|
|
66
68
|
const accountInvitationAction = args.action === "pending" || args.action === "accept" || args.action === "decline";
|
|
67
69
|
if (cloudflare && !accountInvitationAction) throw new Error("project: Teams are available only for projects hosted on a Void platform, not direct Cloudflare deployments.");
|
|
68
|
-
const { runProjectTeamCommand } = await import("./project-team-
|
|
70
|
+
const { runProjectTeamCommand } = await import("./project-team-Dapn9HZn.mjs");
|
|
69
71
|
return runProjectTeamCommand(root, args);
|
|
70
72
|
}
|
|
71
73
|
if (args.subcommand === "logs") {
|
|
72
|
-
const { runLogsCommand } = await import("./logs-
|
|
74
|
+
const { runLogsCommand } = await import("./logs-hxWBSoej.mjs");
|
|
73
75
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
74
76
|
}
|
|
75
77
|
if (args.subcommand === "requests") {
|
|
76
78
|
if (cloudflare) throw new Error("project: Historical request analytics require the Void platform. Use `void project logs` for a live Cloudflare tail.");
|
|
77
|
-
const { runRequestsCommand } = await import("./requests-
|
|
79
|
+
const { runRequestsCommand } = await import("./requests-CzX46I0i.mjs");
|
|
78
80
|
return runRequestsCommand(root, args.range, args.status || void 0);
|
|
79
81
|
}
|
|
80
82
|
if (args.subcommand === "rollback") {
|
|
81
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
83
|
+
const { runRollbackCommand } = await import("./rollback-BEeyc73H.mjs");
|
|
82
84
|
return runRollbackCommand(root, args.deployId || void 0);
|
|
83
85
|
}
|
|
84
86
|
if (args.subcommand === "cancel") {
|
|
85
87
|
if (cloudflare) throw new Error("project: Direct Cloudflare deploys activate only after readiness succeeds, so there is no remote build to cancel.");
|
|
86
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
88
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-B3_s9NIN.mjs");
|
|
87
89
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
88
90
|
}
|
|
89
91
|
if (args.subcommand === "delete") {
|
|
90
92
|
if (cloudflare) throw new Error("project: Refusing to delete Cloudflare resources through this command. Direct deployments are additive and existing resources may be shared.");
|
|
91
|
-
const { runDeleteCommand } = await import("./delete-
|
|
93
|
+
const { runDeleteCommand } = await import("./delete-CghI_NXn.mjs");
|
|
92
94
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
93
95
|
}
|
|
94
96
|
if (args.subcommand === "purge-cache") {
|
|
95
97
|
if (cloudflare) throw new Error("project: Direct Cloudflare ISR cache purge is not available yet; redeploy or purge the configured KV namespace explicitly.");
|
|
96
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
98
|
+
const { runPurgeCacheCommand } = await import("./cache-BMw8eMyF.mjs");
|
|
97
99
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
98
100
|
}
|
|
99
101
|
}
|
|
@@ -1,5 +1,49 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as join, i as isAbsolute, l as relative, o as normalize } from "./dist-4WkAWhWx.mjs";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { createJiti } from "jiti";
|
|
5
|
+
//#region src/config-loader.ts
|
|
6
|
+
const LEGACY_CONFIG_FILE = "void.json";
|
|
7
|
+
const TYPED_CONFIG_FILE = "void.config.ts";
|
|
8
|
+
/** Evaluate a TypeScript config without requiring Void to be installed in the target project. */
|
|
9
|
+
function loadTypedVoidConfigFile(path) {
|
|
10
|
+
const sourceEntry = fileURLToPath(new URL("./config-entry.ts", import.meta.url));
|
|
11
|
+
const configEntry = existsSync(sourceEntry) ? sourceEntry : fileURLToPath(import.meta.resolve("void/config"));
|
|
12
|
+
const module = createJiti(import.meta.url, {
|
|
13
|
+
fsCache: false,
|
|
14
|
+
moduleCache: false,
|
|
15
|
+
interopDefault: false,
|
|
16
|
+
alias: { "void/config": configEntry }
|
|
17
|
+
})(path);
|
|
18
|
+
if (!Object.hasOwn(module, "default")) throw new Error("expected a default export");
|
|
19
|
+
return module.default;
|
|
20
|
+
}
|
|
21
|
+
/** Load project-authored configuration before runtime validation. */
|
|
22
|
+
function loadVoidConfig(root) {
|
|
23
|
+
const typedPath = join(root, TYPED_CONFIG_FILE);
|
|
24
|
+
const jsonPath = join(root, LEGACY_CONFIG_FILE);
|
|
25
|
+
const hasTyped = existsSync(typedPath);
|
|
26
|
+
const hasJson = existsSync(jsonPath);
|
|
27
|
+
if (hasTyped && hasJson) throw new Error(`config: Found both ${TYPED_CONFIG_FILE} and ${LEGACY_CONFIG_FILE}. Keep one source of truth.`);
|
|
28
|
+
if (!hasTyped && !hasJson) return null;
|
|
29
|
+
if (hasTyped) try {
|
|
30
|
+
return {
|
|
31
|
+
source: TYPED_CONFIG_FILE,
|
|
32
|
+
value: loadTypedVoidConfigFile(typedPath)
|
|
33
|
+
};
|
|
34
|
+
} catch (error) {
|
|
35
|
+
throw new Error(`config: Could not load ${TYPED_CONFIG_FILE}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
36
|
+
}
|
|
37
|
+
try {
|
|
38
|
+
return {
|
|
39
|
+
source: LEGACY_CONFIG_FILE,
|
|
40
|
+
value: JSON.parse(readFileSync(jsonPath, "utf-8"))
|
|
41
|
+
};
|
|
42
|
+
} catch {
|
|
43
|
+
throw new Error(`config: Invalid JSON in ${LEGACY_CONFIG_FILE}.`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
3
47
|
//#region src/project-paths.ts
|
|
4
48
|
const SOURCE_CONVENTION_DIRECTORIES = [
|
|
5
49
|
"routes",
|
|
@@ -72,18 +116,7 @@ function readProjectPaths(root) {
|
|
|
72
116
|
return resolveProjectPaths(root, readSourceDirConfig(root));
|
|
73
117
|
}
|
|
74
118
|
function readSourceDirConfig(root) {
|
|
75
|
-
|
|
76
|
-
try {
|
|
77
|
-
raw = readFileSync(join(root, "void.json"), "utf-8");
|
|
78
|
-
} catch {
|
|
79
|
-
return {};
|
|
80
|
-
}
|
|
81
|
-
let config;
|
|
82
|
-
try {
|
|
83
|
-
config = JSON.parse(raw);
|
|
84
|
-
} catch {
|
|
85
|
-
return {};
|
|
86
|
-
}
|
|
119
|
+
const config = loadVoidConfig(root)?.value;
|
|
87
120
|
if (typeof config !== "object" || config === null || Array.isArray(config)) return {};
|
|
88
121
|
const sourceDir = config.sourceDir;
|
|
89
122
|
return typeof sourceDir === "string" ? { sourceDir } : {};
|
|
@@ -99,4 +132,4 @@ function assertNoRootSourceConventionConflicts(paths) {
|
|
|
99
132
|
throw new Error(`sourceDir: void.json sets "sourceDir": "${paths.sourceDir}", but convention path(s) also exist at the project root: ${conflicts.join(", ")}. Move them under "${relSource}" or remove the root copy.`);
|
|
100
133
|
}
|
|
101
134
|
//#endregion
|
|
102
|
-
export { validateSourceDir as a, resolveProjectPaths as i, readProjectPaths as n, resolvePagesDir as r, assertNoRootSourceConventionConflicts as t };
|
|
135
|
+
export { validateSourceDir as a, loadVoidConfig as c, resolveProjectPaths as i, readProjectPaths as n, TYPED_CONFIG_FILE as o, resolvePagesDir as r, loadTypedVoidConfigFile as s, assertNoRootSourceConventionConflicts as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
function validateProjectSlug(value) {
|
|
2
|
+
const slug = (value ?? "").trim();
|
|
3
|
+
if (slug.length === 0) return "Project slug is required.";
|
|
4
|
+
if (!(slug.length === 1 ? /^[a-z0-9]$/.test(slug) : /^[a-z0-9][a-z0-9-]*[a-z0-9]$/.test(slug))) return "Slug must be lowercase alphanumeric with dashes.";
|
|
5
|
+
if (slug.length > 56) return `Slug must be at most 56 characters (it forms the email sender <slug>+noreply@).`;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { validateProjectSlug as t };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { r as cliTitle } from "./output-urU86XeT.mjs";
|
|
2
|
+
import { c as getToken, i as getAccountCredential } from "./auth-B9_D6ygs.mjs";
|
|
3
|
+
import { o as readProjectConfig } from "./project-CWNIPoXc.mjs";
|
|
4
|
+
import { N as note, O as intro, P as outro, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
5
|
+
import { n as PlatformClient, o as parsePlatformErrorBody, s as platformErrorMessage, t as PlatformApiError } from "./client-PdAJ-F0t.mjs";
|
|
6
|
+
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-Xvis70DG.mjs";
|
|
5
7
|
//#region src/cli/project-team.ts
|
|
6
8
|
function clean(value) {
|
|
7
9
|
return (value ?? "—").replace(/[\u0000-\u001f\u007f]/g, " ");
|
|
@@ -42,13 +44,15 @@ async function resolveProjectId(root, client, projectSlug) {
|
|
|
42
44
|
}
|
|
43
45
|
function invitationResponseError(error, apiUrl) {
|
|
44
46
|
if (!(error instanceof PlatformApiError)) return error;
|
|
47
|
+
if (platformErrorMessage(parsePlatformErrorBody(error.body))) return error;
|
|
45
48
|
let message;
|
|
46
49
|
if (error.code === "project invitation not found") message = `Invitation not found on ${apiUrl}. Check VOID_API_URL if set, connect to the platform in your invitation with \`void connect <url>\`, then run \`void project team pending\` to check the invitation ID. If it is missing, ask a project administrator for a new invitation.`;
|
|
47
50
|
else if (error.code === "forbidden") message = `Your account cannot respond to this invitation on ${apiUrl}. Sign in with the account whose registered email received the invitation. To switch accounts, set VOID_API_URL to ${apiUrl}, unset VOID_TOKEN if present, then run \`void auth logout\` and \`void auth login\`. Run \`void project team pending\` to see that account's invitations.`;
|
|
48
51
|
else if (error.code === "project invitation has expired") message = "This invitation has expired. Ask a project administrator to invite you again, then run `void project team pending`.";
|
|
49
52
|
else if (error.code === "project invitation is no longer pending") message = "This invitation has already been answered or revoked. Run `void project team pending` to see invitations awaiting your response, or ask a project administrator to check your access.";
|
|
50
53
|
else return error;
|
|
51
|
-
|
|
54
|
+
error.message = message;
|
|
55
|
+
return error;
|
|
52
56
|
}
|
|
53
57
|
async function runProjectTeamCommand(root, args) {
|
|
54
58
|
console.log();
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { a as dim, r as cliTitle, u as tablePrefix } from "./output-urU86XeT.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-B9_D6ygs.mjs";
|
|
3
|
+
import { o as readProjectConfig } from "./project-CWNIPoXc.mjs";
|
|
4
|
+
import { O as intro, P as outro, 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/project-token.ts
|
|
6
8
|
async function resolveTarget(root, args) {
|
|
7
9
|
const humanToken = getToken(root);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
1
|
+
import { a as join, l as relative, n as dirname } from "./dist-4WkAWhWx.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-CKQ-Q5JS.mjs";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
//#region src/codegen/write-if-changed.ts
|
|
5
5
|
function writeFileIfChanged(path, content) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HeadDescriptor, t as HeadConfig } from "./head-Do8P4puT.mjs";
|
|
2
|
-
import { n as CloudBindings, r as CloudContext } from "./handler-
|
|
2
|
+
import { n as CloudBindings, r as CloudContext } from "./handler-BXJTXd02.mjs";
|
|
3
3
|
import { a as PageRenderMode, t as DevCssAsset } from "./types-BAp5AEBU.mjs";
|
|
4
4
|
//#region src/pages/protocol.d.ts
|
|
5
5
|
/** Escape characters that are unsafe inside inline <script> tags to prevent XSS. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/auth/providers.d.ts
|
|
2
|
+
declare const VOID_SOCIAL_AUTH_PROVIDERS: readonly ["apple", "atlassian", "cognito", "discord", "dropbox", "facebook", "figma", "github", "gitlab", "google", "huggingface", "kakao", "kick", "line", "linear", "linkedin", "microsoft", "naver", "notion", "paybin", "paypal", "polar", "railway", "reddit", "roblox", "salesforce", "slack", "spotify", "tiktok", "twitch", "twitter", "vercel", "vk", "zoom"];
|
|
3
|
+
declare const VOID_EMAIL_AUTH_PROVIDER = "email";
|
|
4
|
+
declare const VOID_AUTH_PROVIDERS: readonly [typeof VOID_EMAIL_AUTH_PROVIDER, ...typeof VOID_SOCIAL_AUTH_PROVIDERS];
|
|
5
|
+
type VoidAuthProvider = (typeof VOID_AUTH_PROVIDERS)[number];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { VoidAuthProvider as t };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { r as scanWranglerDotenvKeys } from "./dotenv-VQxupEUv.mjs";
|
|
2
|
+
import { _ as resolveProperLockfileKey, a as checkCloudflareProvisionDrift, c as isAlreadyGoneKillError, d as isRealD1Id, f as isRealKvId, g as resolvePinnedApiBaseUrl, h as provisionEnv, i as assertValidResourceName, l as isQuarantineError, m as provisionCloudflareResources, n as acquireProvisionLock, o as createDefaultRunWrangler, p as normalizeRunWranglerResult, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, t as WranglerQuarantineError, u as isQueueConfirmedAbsent } from "./provision-Cck2m3jJ.mjs";
|
|
3
|
+
export { WranglerQuarantineError, acquireProvisionLock, assertNoTransportRedirectInProjectDotenv, assertValidResourceName, checkCloudflareProvisionDrift, createDefaultRunWrangler, deleteEnvVarCaseAware, isAlreadyGoneKillError, isQuarantineError, isQueueConfirmedAbsent, isRealD1Id, isRealKvId, normalizeRunWranglerResult, provisionCloudflareResources, provisionEnv, resolvePinnedApiBaseUrl, resolveProperLockfileKey, scanWranglerDotenvKeys };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as readProvisionedBindingEntry, k as writeProvisionedWranglerConfig, s as assertNoDuplicateMembers } from "./wrangler--imS8n0d.mjs";
|
|
1
|
+
import { a as join, n as dirname, o as normalize, t as basename, u as resolve$2 } from "./dist-4WkAWhWx.mjs";
|
|
2
|
+
import { R as persistCloudflareConfig, _ as readProvisionedBindingEntry, k as writeProvisionedWranglerConfig, s as assertNoDuplicateMembers } from "./wrangler-D01qs6VB.mjs";
|
|
4
3
|
import { i as voidWarn, r as voidLog } from "./log-ChfPKsVd.mjs";
|
|
5
4
|
import { r as scanWranglerDotenvKeys } from "./dotenv-VQxupEUv.mjs";
|
|
6
|
-
import { o as resolveWranglerArgv } from "./preset-
|
|
5
|
+
import { o as resolveWranglerArgv } from "./preset-Dowh9tTt.mjs";
|
|
7
6
|
import { createRequire } from "node:module";
|
|
8
7
|
import { closeSync, existsSync, fsyncSync, lstatSync, openSync, readFileSync, readlinkSync, realpathSync, renameSync, unlinkSync, writeSync } from "node:fs";
|
|
9
8
|
import { randomUUID } from "node:crypto";
|
|
@@ -14,26 +13,6 @@ import { resolve } from "node:path/posix";
|
|
|
14
13
|
import { resolve as resolve$1 } from "node:path/win32";
|
|
15
14
|
import lockfile from "proper-lockfile";
|
|
16
15
|
//#region src/cli/provision.ts
|
|
17
|
-
var provision_exports = /* @__PURE__ */ __exportAll({
|
|
18
|
-
WranglerQuarantineError: () => WranglerQuarantineError,
|
|
19
|
-
acquireProvisionLock: () => acquireProvisionLock,
|
|
20
|
-
assertNoTransportRedirectInProjectDotenv: () => assertNoTransportRedirectInProjectDotenv,
|
|
21
|
-
assertValidResourceName: () => assertValidResourceName,
|
|
22
|
-
checkCloudflareProvisionDrift: () => checkCloudflareProvisionDrift,
|
|
23
|
-
createDefaultRunWrangler: () => createDefaultRunWrangler,
|
|
24
|
-
deleteEnvVarCaseAware: () => deleteEnvVarCaseAware,
|
|
25
|
-
isAlreadyGoneKillError: () => isAlreadyGoneKillError,
|
|
26
|
-
isQuarantineError: () => isQuarantineError,
|
|
27
|
-
isQueueConfirmedAbsent: () => isQueueConfirmedAbsent,
|
|
28
|
-
isRealD1Id: () => isRealD1Id,
|
|
29
|
-
isRealKvId: () => isRealKvId,
|
|
30
|
-
normalizeRunWranglerResult: () => normalizeRunWranglerResult,
|
|
31
|
-
provisionCloudflareResources: () => provisionCloudflareResources,
|
|
32
|
-
provisionEnv: () => provisionEnv,
|
|
33
|
-
resolvePinnedApiBaseUrl: () => resolvePinnedApiBaseUrl,
|
|
34
|
-
resolveProperLockfileKey: () => resolveProperLockfileKey,
|
|
35
|
-
scanWranglerDotenvKeys: () => scanWranglerDotenvKeys
|
|
36
|
-
});
|
|
37
16
|
/**
|
|
38
17
|
* Diff the DESIRED id-bearing resources against the ACTUAL bindings in the root
|
|
39
18
|
* wrangler config, WITHOUT any remote/wrangler call. A resource counts as
|
|
@@ -2164,6 +2143,9 @@ async function provisionCloudflareResourcesLocked(root, configPath, desired, opt
|
|
|
2164
2143
|
const log = opts?.log ?? defaultLogger;
|
|
2165
2144
|
const resources = [];
|
|
2166
2145
|
const write = (patch) => writeProvisionedWranglerConfig(root, patch, { configPath });
|
|
2146
|
+
const persistCreatedConfig = () => {
|
|
2147
|
+
if (basename(configPath) === ".void-wrangler.jsonc") persistCloudflareConfig(dirname(configPath));
|
|
2148
|
+
};
|
|
2167
2149
|
const hasRemoteWork = !!desired.d1 || desired.kvNamespaces.length > 0 || !!desired.r2 || !!desired.hyperdrive || desired.queues.length > 0;
|
|
2168
2150
|
if (hasRemoteWork && !effectiveAccountId) throw new Error("provision: no Cloudflare account is resolvable — set \"account_id\" in your root wrangler config or export CLOUDFLARE_ACCOUNT_ID before deploying. Refusing to provision resources without a pinned account (wrangler would otherwise fall back to an ambient/interactive account that is never persisted, so a later retry could rebind them elsewhere).");
|
|
2169
2151
|
if (hasRemoteWork) assertNoTransportRedirectInProjectDotenv(root);
|
|
@@ -2275,6 +2257,7 @@ async function provisionCloudflareResourcesLocked(root, configPath, desired, opt
|
|
|
2275
2257
|
resource: "D1 database",
|
|
2276
2258
|
command: "wrangler d1 create"
|
|
2277
2259
|
}, binding, name);
|
|
2260
|
+
persistCreatedConfig();
|
|
2278
2261
|
assertD1MigrationsDirApplied(write({ d1MigrationsDir: {
|
|
2279
2262
|
binding,
|
|
2280
2263
|
dir: migrationsDir
|
|
@@ -2382,6 +2365,7 @@ async function provisionCloudflareResourcesLocked(root, configPath, desired, opt
|
|
|
2382
2365
|
resource: "KV namespace",
|
|
2383
2366
|
command: "wrangler kv namespace create"
|
|
2384
2367
|
}, binding, title);
|
|
2368
|
+
persistCreatedConfig();
|
|
2385
2369
|
resources.push({
|
|
2386
2370
|
kind: "kv",
|
|
2387
2371
|
binding,
|
|
@@ -2457,6 +2441,7 @@ async function provisionCloudflareResourcesLocked(root, configPath, desired, opt
|
|
|
2457
2441
|
const payload = isCleanSuccess(verify) ? parseJsonObject(verify.stdout) : void 0;
|
|
2458
2442
|
if (!payload || payload.name !== bucketName) throw new Error(`provision: "wrangler r2 bucket create ${bucketName}" reported success but a follow-up "wrangler r2 bucket info ${bucketName}" did not confirm the bucket exists. The create may have been interrupted — wrangler's launcher can mask a signal-killed child as exit 0, and the config entry is indistinguishable from the local-dev placeholder for this name. Refusing to record an unprovisioned bucket; inspect the account and retry.`);
|
|
2459
2443
|
}
|
|
2444
|
+
persistCreatedConfig();
|
|
2460
2445
|
resources.push({
|
|
2461
2446
|
kind: "r2",
|
|
2462
2447
|
binding,
|
|
@@ -2538,6 +2523,7 @@ async function provisionCloudflareResourcesLocked(root, configPath, desired, opt
|
|
|
2538
2523
|
resource: "Hyperdrive config",
|
|
2539
2524
|
command: "wrangler hyperdrive create"
|
|
2540
2525
|
}, binding, name);
|
|
2526
|
+
persistCreatedConfig();
|
|
2541
2527
|
resources.push({
|
|
2542
2528
|
kind: "hyperdrive",
|
|
2543
2529
|
binding,
|
|
@@ -2589,4 +2575,4 @@ async function provisionCloudflareResourcesLocked(root, configPath, desired, opt
|
|
|
2589
2575
|
};
|
|
2590
2576
|
}
|
|
2591
2577
|
//#endregion
|
|
2592
|
-
export {
|
|
2578
|
+
export { resolveProperLockfileKey as _, checkCloudflareProvisionDrift as a, isAlreadyGoneKillError as c, isRealD1Id as d, isRealKvId as f, resolvePinnedApiBaseUrl as g, provisionEnv as h, assertValidResourceName as i, isQuarantineError as l, provisionCloudflareResources as m, acquireProvisionLock as n, createDefaultRunWrangler as o, normalizeRunWranglerResult as p, assertNoTransportRedirectInProjectDotenv as r, deleteEnvVarCaseAware as s, WranglerQuarantineError as t, isQueueConfirmedAbsent as u };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/runtime/queues.d.ts
|
|
2
|
+
/** Stub interface augmented by generated .void/queues.d.ts */
|
|
3
|
+
interface QueueMap {}
|
|
4
|
+
/** Typed queue producers — resolves `QUEUE_*` bindings from the active runtime environment. */
|
|
5
|
+
declare const queues: QueueMap;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { queues as n, QueueMap as t };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as dim, c as import_picocolors, r as cliTitle } from "./output-urU86XeT.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-B9_D6ygs.mjs";
|
|
3
|
+
import { o as readProjectConfig } from "./project-CWNIPoXc.mjs";
|
|
4
|
+
import { O as intro, P as outro, j as log } from "./dist-Dn6nn2IU.mjs";
|
|
5
|
+
import { n as PlatformClient } from "./client-PdAJ-F0t.mjs";
|
|
4
6
|
//#region src/cli/requests.ts
|
|
5
7
|
async function runRequestsCommand(root, range, status) {
|
|
6
8
|
console.log();
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as join } from "./dist-BrsS7cai.mjs";
|
|
1
|
+
import { a as join } from "./dist-4WkAWhWx.mjs";
|
|
3
2
|
import { readFileSync } from "node:fs";
|
|
4
3
|
//#region src/cli/resolve-project.ts
|
|
5
|
-
var resolve_project_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
-
getRequestedProjectSlug: () => getRequestedProjectSlug,
|
|
7
|
-
inferDefaultSlug: () => inferDefaultSlug,
|
|
8
|
-
resolveProjectBySlug: () => resolveProjectBySlug
|
|
9
|
-
});
|
|
10
4
|
function getRequestedProjectSlug(options) {
|
|
11
5
|
const cliSlug = options?.projectSlug?.trim();
|
|
12
6
|
if (cliSlug) return cliSlug;
|
|
@@ -26,4 +20,4 @@ function inferDefaultSlug(root) {
|
|
|
26
20
|
return (JSON.parse(readFileSync(pkgPath, "utf-8")).name ?? "my-app").replace(/^@[^/]+\//, "").replace(/[^a-z0-9-]/g, "-");
|
|
27
21
|
}
|
|
28
22
|
//#endregion
|
|
29
|
-
export {
|
|
23
|
+
export { inferDefaultSlug as n, resolveProjectBySlug as r, getRequestedProjectSlug as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/runtime/response.ts
|
|
2
|
+
/**
|
|
3
|
+
* Tracks responses created by convertReturnValue (as opposed to responses
|
|
4
|
+
* explicitly constructed by user code). Used by handlePageGet to decide
|
|
5
|
+
* whether a Response should be passed through or unwrapped as page props.
|
|
6
|
+
*/
|
|
7
|
+
const convertedResponses = /* @__PURE__ */ new WeakSet();
|
|
8
|
+
/** Returns true if the value is a Response that was created by convertReturnValue. */
|
|
9
|
+
function isConvertedResponse(value) {
|
|
10
|
+
return value instanceof Response && convertedResponses.has(value);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Convert a handler's return value to a Web Response.
|
|
14
|
+
*
|
|
15
|
+
* - Response → passthrough
|
|
16
|
+
* - null/undefined → 204 No Content
|
|
17
|
+
* - string → text/html
|
|
18
|
+
* - object/array → JSON
|
|
19
|
+
*/
|
|
20
|
+
function convertReturnValue(value) {
|
|
21
|
+
if (value instanceof Response) return value;
|
|
22
|
+
let response;
|
|
23
|
+
if (value === null || value === void 0) response = new Response(null, { status: 204 });
|
|
24
|
+
else if (typeof value === "string") response = new Response(value, { headers: { "Content-Type": "text/html; charset=utf-8" } });
|
|
25
|
+
else response = Response.json(value);
|
|
26
|
+
convertedResponses.add(response);
|
|
27
|
+
return response;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { isConvertedResponse as n, convertReturnValue as t };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as dim, c as import_picocolors, i as createSpinner, o as ensureUtc, r as cliTitle } from "./output-urU86XeT.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-B9_D6ygs.mjs";
|
|
3
|
+
import { i as readDeploymentPlatform, o as readProjectConfig } from "./project-CWNIPoXc.mjs";
|
|
4
|
+
import { E as confirm, I as select, 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";
|
|
4
6
|
//#region src/cli/rollback.ts
|
|
5
7
|
async function runRollbackCommand(root, deployId) {
|
|
6
8
|
console.log();
|
|
@@ -81,7 +83,7 @@ async function runRollbackCommand(root, deployId) {
|
|
|
81
83
|
outro(dim("Traffic is now serving the rolled-back deployment."));
|
|
82
84
|
}
|
|
83
85
|
async function runCloudflareRollback(root, deployId) {
|
|
84
|
-
const { activateCloudflareExistingVersion, readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
86
|
+
const { activateCloudflareExistingVersion, readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-BHNJVDbN.mjs");
|
|
85
87
|
const context = resolveCloudflareOperationContext(root);
|
|
86
88
|
const status = await readCloudflareWorkerStatus(context);
|
|
87
89
|
const deployedVersionIds = new Set(status.deployedVersionIds);
|
|
@@ -7,15 +7,6 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
-
var __exportAll = (all, no_symbols) => {
|
|
11
|
-
let target = {};
|
|
12
|
-
for (var name in all) __defProp(target, name, {
|
|
13
|
-
get: all[name],
|
|
14
|
-
enumerable: true
|
|
15
|
-
});
|
|
16
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
-
return target;
|
|
18
|
-
};
|
|
19
10
|
var __copyProps = (to, from, except, desc) => {
|
|
20
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
21
12
|
key = keys[i];
|
|
@@ -31,4 +22,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
22
|
enumerable: true
|
|
32
23
|
}) : target, mod));
|
|
33
24
|
//#endregion
|
|
34
|
-
export {
|
|
25
|
+
export { __toESM as n, __commonJSMin as t };
|