void 0.20.3 → 0.21.1

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.
Files changed (296) hide show
  1. package/README.md +2 -2
  2. package/dist/agents-gni4eqBu.mjs +111 -0
  3. package/dist/auth-3sGB0zJ1.mjs +22 -0
  4. package/dist/{auth-DPl6kck4.mjs → auth-B9_D6ygs.mjs} +6 -241
  5. package/dist/auth-CAw7zHqj.mjs +2 -0
  6. package/dist/auth-client-BWBT8HLp.mjs +6 -0
  7. package/dist/auth-client-Bawdj38n.d.mts +7 -0
  8. package/dist/auth-client-react-7GFffu8R.d.mts +7 -0
  9. package/dist/auth-client-react-CMLwT2xI.mjs +6 -0
  10. package/dist/auth-client-solid-DyTFL4cq.d.mts +7 -0
  11. package/dist/auth-client-solid-UoreJWZG.mjs +6 -0
  12. package/dist/auth-client-svelte-Cv_WvrRk.mjs +6 -0
  13. package/dist/auth-client-svelte-zetW0KIH.d.mts +7 -0
  14. package/dist/auth-client-vue-CFk7Xbv3.mjs +6 -0
  15. package/dist/auth-client-vue-bChShbQP.d.mts +7 -0
  16. package/dist/{auth-cmd-CzwquNiP.mjs → auth-cmd-g_ymMkUe.mjs} +5 -5
  17. package/dist/{auth-link-ElDTgF7j.mjs → auth-link-DFvxIyZi.mjs} +5 -5
  18. package/dist/{better-auth-shared-DSCeohOK.d.mts → better-auth-shared-BoVwA5Vm.d.mts} +1 -6
  19. package/dist/{better-auth-shared-CYw1T3k4.mjs → better-auth-shared-syGYYmnY.mjs} +1 -1
  20. package/dist/{build-cmd-BpJe6boP.mjs → build-cmd-wJAv808h.mjs} +6 -4
  21. package/dist/{cache-D98YTqeE.mjs → cache-Be0Fu5Ka.mjs} +6 -4
  22. package/dist/{cancel-deploy-CPbEQLMG.mjs → cancel-deploy-BgmyOwhe.mjs} +5 -3
  23. package/dist/cf-access-rAZxzMkL.mjs +181 -0
  24. package/dist/cf-build-output-CTdlo6Rt.mjs +520 -0
  25. package/dist/cli/cf-compat.d.mts +1 -0
  26. package/dist/cli/cf-compat.mjs +944 -0
  27. package/dist/cli/cli.mjs +60 -38
  28. package/dist/cli/env-schema-probe.mjs +3 -3
  29. package/dist/client-DAAivdid.mjs +2 -0
  30. package/dist/{client-BQBrZoCX.mjs → client-PdAJ-F0t.mjs} +6 -12
  31. package/dist/{cloudflare-auth-6M5llVPC.mjs → cloudflare-auth-BCmTc1X_.mjs} +13 -44
  32. package/dist/{cloudflare-cmd-4RPGN3KB.mjs → cloudflare-cmd-D6PrKn7o.mjs} +4 -7
  33. package/dist/{cloudflare-connect-t1UU5svD.mjs → cloudflare-connect-DloREDlc.mjs} +6 -6
  34. package/dist/cloudflare-operations-BHNJVDbN.mjs +2 -0
  35. package/dist/{cloudflare-operations-BzWnlC1_.mjs → cloudflare-operations-CPEdHYhM.mjs} +37 -39
  36. package/dist/cloudflare-user-output-Q-k0QoNQ.mjs +20 -0
  37. package/dist/collect-DAUItMDS.mjs +2 -0
  38. package/dist/collect-DXHNWHcT.mjs +48 -0
  39. package/dist/config--T87TD8T.mjs +2 -0
  40. package/dist/{config-NOG_U1aK.mjs → config-BSe70f4T.mjs} +4 -6
  41. package/dist/config-DDIFxQYx.mjs +2 -0
  42. package/dist/{config-uNGuFsI2.mjs → config-Dxr6cTXn.mjs} +22 -37
  43. package/dist/config-DywxBLQC.d.mts +185 -0
  44. package/dist/config-entry.d.mts +6 -0
  45. package/dist/config-entry.mjs +7 -0
  46. package/dist/config-uP7ZDtVZ.mjs +21 -0
  47. package/dist/config-write-y3CBI_ux.mjs +60 -0
  48. package/dist/{connect-WCQZ_u3m.mjs → connect-LnvW4HKx.mjs} +8 -6
  49. package/dist/{create-project-D0oXA090.mjs → create-project-BZBl_gQ0.mjs} +8 -23
  50. package/dist/create-project-JV9-6ICF.mjs +2 -0
  51. package/dist/database-provider-Cx525bwX.mjs +6 -0
  52. package/dist/database-provider.mjs +1 -5
  53. package/dist/{db-DJ-9qs3S.mjs → db-Mzv88E1C.mjs} +48 -44
  54. package/dist/{delete-BZ4-WaGm.mjs → delete-Ri6JemSU.mjs} +6 -4
  55. package/dist/deploy-DAH2-m_-.mjs +2 -0
  56. package/dist/{deploy-BAhhcg5q.mjs → deploy-DEsMVrCY.mjs} +796 -198
  57. package/dist/discover-BBzDZe_o.mjs +2 -0
  58. package/dist/{discover-xvfrgJeo.mjs → discover-C4O6YxVS.mjs} +3 -8
  59. package/dist/{dist-BrsS7cai.mjs → dist-4WkAWhWx.mjs} +1 -15
  60. package/dist/{dist-m40_XgNh.mjs → dist-Bn8Kodjp.mjs} +1 -1
  61. package/dist/dist-C5fND3R0.mjs +2 -0
  62. package/dist/dist-D7-nEOXi.mjs +2 -0
  63. package/dist/{output-B0cfNSx5.mjs → dist-Dn6nn2IU.mjs} +3 -926
  64. package/dist/{domain-BxAyhxXN.mjs → domain-BA37Ye7T.mjs} +7 -5
  65. package/dist/{route-types-Da-DpyUp.mjs → drizzle-Beb2Am5S.mjs} +1 -280
  66. package/dist/{email-Bj7Cvdwp.mjs → email-C5NsxrQG.mjs} +14 -12
  67. package/dist/{email-Ce6SQq-i.mjs → email-C5kaZXzJ.mjs} +2 -2
  68. package/dist/{entry-DU3oDoQ3.mjs → entry-DdRFGK0y.mjs} +2 -2
  69. package/dist/{env-DBKmK4vc.mjs → env-DX_v-Q-v.mjs} +1 -1
  70. package/dist/{env-DP_EErve.mjs → env-U_ohASB0.mjs} +9 -7
  71. package/dist/env-Yz4HcvHs.mjs +78 -0
  72. package/dist/env-helpers--wFmQ_5Q.mjs +136 -0
  73. package/dist/{env-types-BNPhro-M.mjs → env-types-CWDtqHgw.mjs} +6 -2
  74. package/dist/{env-validation-CF6KvTRf.mjs → env-validation-BsFEXps5.mjs} +19 -28
  75. package/dist/env-validation-DIDGM7h4.mjs +2 -0
  76. package/dist/fetch-CXDChK7B.mjs +18 -0
  77. package/dist/fetch-_SeGZao9.d.mts +57 -0
  78. package/dist/fetch-stream-AOByI7Ki.mjs +81 -0
  79. package/dist/fetch-stream-Bjf0hoZb.d.mts +49 -0
  80. package/dist/gen-B87rlalt.mjs +2 -0
  81. package/dist/{gen-B_wPnVTK.mjs → gen-pg-Ojg8Y.mjs} +13 -11
  82. package/dist/{generate-RTK8_kK1.mjs → generate-C0VY6RVf.mjs} +2 -2
  83. package/dist/{github-cmd-C-z_xRrQ.mjs → github-cmd-DsrkweIl.mjs} +6 -4
  84. package/dist/{handler-D1hLsObx.d.mts → handler-BXJTXd02.d.mts} +6 -1
  85. package/dist/handler-DghKr6dU.mjs +150 -0
  86. package/dist/head-D_QRR5Yd.mjs +112 -0
  87. package/dist/head-client-DzmJGN4C.mjs +90 -0
  88. package/dist/{headers-BAHwgHdW.mjs → headers-B_HBMgi0.mjs} +2 -2
  89. package/dist/help-B403BLBB.mjs +2 -0
  90. package/dist/{help-CwOX-zmI.mjs → help-sBhFH6pi.mjs} +17 -12
  91. package/dist/index.d.mts +2 -20
  92. package/dist/index.mjs +116 -60
  93. package/dist/{init-BGktCXgA.mjs → init-C--Yyj1b.mjs} +49 -50
  94. package/dist/{link-D2kbqhWb.mjs → link-BC-mNG9-.mjs} +7 -5
  95. package/dist/{list-CvkK_G7k.mjs → list-DHU1Wj6c.mjs} +7 -5
  96. package/dist/live-CB1y5IuC.mjs +411 -0
  97. package/dist/live-CKiJilLr.d.mts +105 -0
  98. package/dist/local-d1-DzykTWY8.mjs +104 -0
  99. package/dist/login-BwiopVdg.mjs +2 -0
  100. package/dist/{login-WIjNc77c.mjs → login-jKe_0QZL.mjs} +6 -11
  101. package/dist/{logs-dLUFCapG.mjs → logs-BG11f5PR.mjs} +6 -4
  102. package/dist/migrate-BV8qHiCb.mjs +285 -0
  103. package/dist/migrate-BXY3B3m7.mjs +2 -0
  104. package/dist/migration-handler-DM4clYj5.d.mts +51 -0
  105. package/dist/{neon-DHwd2zvC.mjs → neon-n74ta1Pr.mjs} +1 -1
  106. package/dist/{node-Ez5KW5rn.mjs → node-Cupyf7-s.mjs} +6 -6
  107. package/dist/{operator-auth-B3e08unv.mjs → operator-auth-BkVgJqv-.mjs} +2 -2
  108. package/dist/{operator-client-LUZnlnYk.mjs → operator-client-A0iex2yi.mjs} +2 -1
  109. package/dist/{operator-cmd-CKJ7xIRs.mjs → operator-cmd-BwAS2XZt.mjs} +6 -6
  110. package/dist/output-CCH48AMM.mjs +146 -0
  111. package/dist/{package-json-CPoWX79C.mjs → package-json-iCbMg5XF.mjs} +1 -1
  112. package/dist/pages/client.d.mts +5 -2
  113. package/dist/pages/client.mjs +5 -3
  114. package/dist/pages/head-client.mjs +1 -89
  115. package/dist/pages/head.mjs +1 -111
  116. package/dist/pages/index.d.mts +2 -3
  117. package/dist/pages/index.mjs +7 -7
  118. package/dist/pages/islands-plugin.mjs +2 -2
  119. package/dist/pages/prefetch.d.mts +2 -30
  120. package/dist/pages/prefetch.mjs +1 -89
  121. package/dist/pages/protocol.d.mts +2 -2
  122. package/dist/pages/protocol.mjs +3 -3
  123. package/dist/pages/serialize.d.mts +2 -9
  124. package/dist/pages/serialize.mjs +1 -13
  125. package/dist/plan-BEZ8VJW0.mjs +256 -0
  126. package/dist/plan-DpuOr14e.mjs +2 -0
  127. package/dist/{platform-auth-config-CdVWRRJr.mjs → platform-auth-config-C-hv-_Ok.mjs} +6 -6
  128. package/dist/{platform-auth-protection-Drl0qhrn.mjs → platform-auth-protection-DjTE5Hj-.mjs} +7 -5
  129. package/dist/{platform-auth-recovery-CmKEWpDo.mjs → platform-auth-recovery-Cr0r8TEb.mjs} +6 -5
  130. package/dist/{platform-cmd-5q_k56xS.mjs → platform-cmd-0tEh2ZtA.mjs} +8 -5
  131. package/dist/platform-cmd-DE6dw45v.mjs +2 -0
  132. package/dist/{platform-domain-4GiDlcqx.mjs → platform-domain-B_7x6Iqx.mjs} +4 -3
  133. package/dist/platform-lifecycle-Dhx9Pnub.mjs +2 -0
  134. package/dist/{platform-lifecycle-R9xAxvtG.mjs → platform-lifecycle-Di0LbhPM.mjs} +208 -37
  135. package/dist/platform-management-B9LUtMt9.mjs +2 -0
  136. package/dist/{platform-management-BfWsXHEW.mjs → platform-management-eaiaU3uM.mjs} +8 -5
  137. package/dist/{platform-recovery-CbK-I1FB.mjs → platform-recovery-BxfA8E5C.mjs} +3 -3
  138. package/dist/platform-registry-BJbgZLS1.mjs +431 -0
  139. package/dist/{plugin-inference-BDRfZngg.mjs → plugin-inference-DsvtJLll.mjs} +4 -4
  140. package/dist/prefetch-Bsc_Pb6c.mjs +90 -0
  141. package/dist/prefetch-Ce6la4EI.d.mts +31 -0
  142. package/dist/prepare-D4CkM3_v.mjs +2 -0
  143. package/dist/{prepare-blNRQvQl.mjs → prepare-_T-Haxrr.mjs} +3 -2
  144. package/dist/{prepare-CtDJjoOj.mjs → prepare-pcWcxSCh.mjs} +13 -11
  145. package/dist/prerender-render-Cf_WDE9W.mjs +111 -0
  146. package/dist/prerender-render.mjs +1 -110
  147. package/dist/{preset-lAy0B0BQ.mjs → preset-Dowh9tTt.mjs} +16 -118
  148. package/dist/project-BEBFDFLz.mjs +2 -0
  149. package/dist/project-CWNIPoXc.mjs +209 -0
  150. package/dist/{project-cmd-CTdmnzvc.mjs → project-cmd-DrnRJdep.mjs} +18 -16
  151. package/dist/{project-paths-SK8nMHPp.mjs → project-paths-CKQ-Q5JS.mjs} +47 -14
  152. package/dist/project-slug-23TpquG4.mjs +8 -0
  153. package/dist/project-slug-DofjTFd-.mjs +2 -0
  154. package/dist/{project-team-CGxsQe3_.mjs → project-team-CzRbO_kA.mjs} +6 -4
  155. package/dist/{project-token-Cirx7uwZ.mjs → project-token-Bwxjf4y6.mjs} +6 -4
  156. package/dist/{project-tsconfig-Ql2XsSQp.mjs → project-tsconfig-CwfqUnVp.mjs} +2 -2
  157. package/dist/{protocol-C-pqYJjE.d.mts → protocol-ZH3jP4a7.d.mts} +1 -1
  158. package/dist/providers-BNKRacMr.d.mts +7 -0
  159. package/dist/provision-CNgEBkVA.mjs +3 -0
  160. package/dist/{provision-CSJOjjQk.mjs → provision-Cck2m3jJ.mjs} +11 -25
  161. package/dist/queues-BWKt1Xo4.d.mts +7 -0
  162. package/dist/{requests-4Nq59hOr.mjs → requests-DwrqUQZ8.mjs} +5 -3
  163. package/dist/resolve-project-BTotl8Nn.mjs +2 -0
  164. package/dist/{resolve-project--Vxawf7z.mjs → resolve-project-Xvis70DG.mjs} +2 -8
  165. package/dist/response-Tn7rU0MV.mjs +30 -0
  166. package/dist/{rollback-Dr7u0Ljx.mjs → rollback-B4tFWmkN.mjs} +6 -4
  167. package/dist/{rolldown-runtime-rQ84J-ij.mjs → rolldown-runtime-DXIUcv95.mjs} +1 -10
  168. package/dist/route-types-Id82-veQ.mjs +280 -0
  169. package/dist/{local-d1-D2I6Ox5F.mjs → runner-BGVsGgkb.mjs} +6 -114
  170. package/dist/runner-CQs_cDSG.mjs +2 -0
  171. package/dist/runner-mysql-1o47achK.mjs +2 -0
  172. package/dist/{runner-mysql-7BPUNGmL.mjs → runner-mysql-BhwMk2Bm.mjs} +2 -9
  173. package/dist/{runner-pg-BkEza-dX.mjs → runner-pg-CJ_JeGF6.mjs} +2 -9
  174. package/dist/runner-pg-D7z01mQS.mjs +2 -0
  175. package/dist/runtime/ai.mjs +1 -1
  176. package/dist/runtime/auth-client-react.d.mts +2 -6
  177. package/dist/runtime/auth-client-react.mjs +1 -5
  178. package/dist/runtime/auth-client-solid.d.mts +2 -6
  179. package/dist/runtime/auth-client-solid.mjs +1 -5
  180. package/dist/runtime/auth-client-svelte.d.mts +2 -6
  181. package/dist/runtime/auth-client-svelte.mjs +1 -5
  182. package/dist/runtime/auth-client-vue.d.mts +2 -6
  183. package/dist/runtime/auth-client-vue.mjs +1 -5
  184. package/dist/runtime/auth-client.d.mts +2 -6
  185. package/dist/runtime/auth-client.mjs +1 -5
  186. package/dist/runtime/auth.mjs +1 -21
  187. package/dist/runtime/better-auth-mysql.d.mts +1 -1
  188. package/dist/runtime/better-auth-mysql.mjs +1 -1
  189. package/dist/runtime/better-auth-pg.d.mts +1 -1
  190. package/dist/runtime/better-auth-pg.mjs +1 -1
  191. package/dist/runtime/better-auth.d.mts +1 -1
  192. package/dist/runtime/better-auth.mjs +1 -1
  193. package/dist/runtime/client-react.d.mts +3 -3
  194. package/dist/runtime/client-react.mjs +3 -3
  195. package/dist/runtime/client-solid.d.mts +3 -3
  196. package/dist/runtime/client-solid.mjs +3 -3
  197. package/dist/runtime/client-svelte.d.mts +3 -3
  198. package/dist/runtime/client-svelte.mjs +3 -3
  199. package/dist/runtime/client-vue.d.mts +3 -3
  200. package/dist/runtime/client-vue.mjs +3 -3
  201. package/dist/runtime/client.d.mts +3 -3
  202. package/dist/runtime/client.mjs +3 -3
  203. package/dist/runtime/db.mjs +1 -1
  204. package/dist/runtime/durable.mjs +1 -1
  205. package/dist/runtime/email/testing.mjs +1 -1
  206. package/dist/runtime/env-helpers.mjs +1 -135
  207. package/dist/runtime/env-public-client.mjs +1 -1
  208. package/dist/runtime/env-public.mjs +2 -2
  209. package/dist/runtime/env.mjs +1 -77
  210. package/dist/runtime/fetch-stream.d.mts +2 -49
  211. package/dist/runtime/fetch-stream.mjs +2 -80
  212. package/dist/runtime/fetch.d.mts +2 -57
  213. package/dist/runtime/fetch.mjs +2 -17
  214. package/dist/runtime/handler.d.mts +1 -1
  215. package/dist/runtime/handler.mjs +1 -149
  216. package/dist/runtime/kv.mjs +1 -1
  217. package/dist/runtime/live-client.d.mts +1 -1
  218. package/dist/runtime/live-server.mjs +2 -2
  219. package/dist/runtime/live.d.mts +2 -104
  220. package/dist/runtime/live.mjs +1 -410
  221. package/dist/runtime/migration-handler-mysql.d.mts +1 -1
  222. package/dist/runtime/migration-handler-pg.d.mts +1 -1
  223. package/dist/runtime/migration-handler.d.mts +2 -50
  224. package/dist/runtime/queues.d.mts +2 -6
  225. package/dist/runtime/queues.mjs +1 -1
  226. package/dist/runtime/response.mjs +1 -29
  227. package/dist/runtime/sandbox.mjs +1 -1
  228. package/dist/runtime/sse.mjs +1 -171
  229. package/dist/runtime/storage.mjs +1 -1
  230. package/dist/runtime/validator.d.mts +1 -1
  231. package/dist/runtime/validator.mjs +1 -71
  232. package/dist/runtime/ws-server.d.mts +2 -2
  233. package/dist/runtime/ws-server.mjs +2 -2
  234. package/dist/runtime/ws.d.mts +2 -121
  235. package/dist/{scan-CpK-57ug.mjs → scan-DJbooZm2.mjs} +3 -3
  236. package/dist/{scan-BMH4rzlv.mjs → scan-DdDvRCU1.mjs} +8 -26
  237. package/dist/{secret-AcPi-FoA.mjs → secret-UtrRjhEO.mjs} +8 -6
  238. package/dist/serialize-BPvnNQuA.mjs +14 -0
  239. package/dist/serialize-CfSwWfF2.d.mts +10 -0
  240. package/dist/{skills-C0RvGjeE.mjs → skills-B-690E7h.mjs} +3 -2
  241. package/dist/sse-BaC1jXko.mjs +172 -0
  242. package/dist/{subcommand-prompt-Bmyn5Rlc.mjs → subcommand-prompt-BuGYkAkC.mjs} +2 -1
  243. package/dist/sveltekit.d.mts +2 -1
  244. package/dist/sveltekit.mjs +3 -2
  245. package/dist/validate-DqJ33oHj.mjs +2 -0
  246. package/dist/validate-qNhV00PD.mjs +180 -0
  247. package/dist/validator-BTOu0fB0.mjs +72 -0
  248. package/dist/{wrangler--imS8n0d.mjs → wrangler-D01qs6VB.mjs} +259 -71
  249. package/dist/ws-BwcqizuH.d.mts +122 -0
  250. package/dist/{yarn-pnp-DxSInkzL.mjs → yarn-pnp-CVEc3gE7.mjs} +1 -1
  251. package/package.json +19 -8
  252. package/skills/void/SKILL.md +6 -4
  253. package/skills/void/docs/guide/ai.md +3 -3
  254. package/skills/void/docs/guide/app-types.md +12 -11
  255. package/skills/void/docs/guide/auth.md +2 -2
  256. package/skills/void/docs/guide/database/d1.md +1 -1
  257. package/skills/void/docs/guide/database/mysql.md +1 -1
  258. package/skills/void/docs/guide/database/postgresql.md +3 -3
  259. package/skills/void/docs/guide/deployment.md +8 -15
  260. package/skills/void/docs/guide/durable-state.md +2 -2
  261. package/skills/void/docs/guide/edge/headers.md +3 -3
  262. package/skills/void/docs/guide/edge/prerendering.md +1 -1
  263. package/skills/void/docs/guide/edge/redirects.md +4 -4
  264. package/skills/void/docs/guide/edge/revalidation.md +6 -6
  265. package/skills/void/docs/guide/edge/rewrites.md +28 -27
  266. package/skills/void/docs/guide/edge/static-assets.md +1 -1
  267. package/skills/void/docs/guide/email.md +60 -66
  268. package/skills/void/docs/guide/env-migration.md +1 -1
  269. package/skills/void/docs/guide/index.md +15 -41
  270. package/skills/void/docs/guide/pages-routing/head.md +1 -1
  271. package/skills/void/docs/guide/platform/administration/access.md +13 -5
  272. package/skills/void/docs/guide/platform/administration/projects.md +3 -1
  273. package/skills/void/docs/guide/platform/installation/ci.md +3 -0
  274. package/skills/void/docs/guide/platform/installation/credentials.md +15 -5
  275. package/skills/void/docs/guide/platform/installation/prerequisites.md +2 -0
  276. package/skills/void/docs/guide/platform/installation/setup.md +1 -1
  277. package/skills/void/docs/guide/quickstart.md +11 -78
  278. package/skills/void/docs/guide/remote-dev.md +2 -2
  279. package/skills/void/docs/guide/sandboxes.md +1 -1
  280. package/skills/void/docs/guide/ssg.md +1 -1
  281. package/skills/void/docs/guide/websockets.md +1 -1
  282. package/skills/void/docs/index.md +17 -17
  283. package/skills/void/docs/integrations/cloudflare.md +91 -96
  284. package/skills/void/docs/integrations/frameworks/analog.md +14 -9
  285. package/skills/void/docs/integrations/frameworks/astro.md +14 -10
  286. package/skills/void/docs/integrations/frameworks/nuxt.md +14 -9
  287. package/skills/void/docs/integrations/frameworks/overview.md +35 -29
  288. package/skills/void/docs/integrations/frameworks/react-router.md +1 -1
  289. package/skills/void/docs/integrations/frameworks/sveltekit.md +33 -30
  290. package/skills/void/docs/integrations/frameworks/tanstack-start.md +1 -1
  291. package/skills/void/docs/integrations/nodejs-bun-deno.md +5 -5
  292. package/skills/void/docs/reference/api.md +21 -4
  293. package/skills/void/docs/reference/cli.md +40 -25
  294. package/skills/void/docs/reference/config.md +58 -35
  295. package/skills/void/docs/reference/structure.md +2 -2
  296. package/dist/validate-tBBN_dXH.mjs +0 -505
@@ -1,6 +1,8 @@
1
- import { A as outro, D as log, E as intro, a as dim, c as import_picocolors, r as cliTitle, u as tablePrefix } from "./output-B0cfNSx5.mjs";
2
- import { c as getSiteDomain, l as getToken, x as readDeploymentPlatform } from "./auth-DPl6kck4.mjs";
3
- import { n as PlatformClient } from "./client-BQBrZoCX.mjs";
1
+ import { a as dim, c as import_picocolors, r as cliTitle, u as tablePrefix } from "./output-CCH48AMM.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-CvkK_G7k.mjs");
42
+ const { runListCommand } = await import("./list-DHU1Wj6c.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 the name in wrangler.jsonc and do not need linking.");
45
- const { runLink } = await import("./link-D2kbqhWb.mjs");
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-BC-mNG9-.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-CvkK_G7k.mjs");
52
+ const { runListCommand } = await import("./list-DHU1Wj6c.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-Cirx7uwZ.mjs");
59
+ const { runProjectTokenCommand } = await import("./project-token-Bwxjf4y6.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-CwOX-zmI.mjs").then((n) => n.n);
64
+ const { printHelpPage } = await import("./help-B403BLBB.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-CGxsQe3_.mjs");
70
+ const { runProjectTeamCommand } = await import("./project-team-CzRbO_kA.mjs");
69
71
  return runProjectTeamCommand(root, args);
70
72
  }
71
73
  if (args.subcommand === "logs") {
72
- const { runLogsCommand } = await import("./logs-dLUFCapG.mjs");
74
+ const { runLogsCommand } = await import("./logs-BG11f5PR.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-4Nq59hOr.mjs");
79
+ const { runRequestsCommand } = await import("./requests-DwrqUQZ8.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-Dr7u0Ljx.mjs");
83
+ const { runRollbackCommand } = await import("./rollback-B4tFWmkN.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-CPbEQLMG.mjs");
88
+ const { runCancelDeployCommand } = await import("./cancel-deploy-BgmyOwhe.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-BZ4-WaGm.mjs");
93
+ const { runDeleteCommand } = await import("./delete-Ri6JemSU.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-D98YTqeE.mjs");
98
+ const { runPurgeCacheCommand } = await import("./cache-Be0Fu5Ka.mjs");
97
99
  return runPurgeCacheCommand(root, args.projectSlug || void 0);
98
100
  }
99
101
  }
@@ -1,5 +1,49 @@
1
- import { a as isAbsolute, c as relative, o as join, s as normalize } from "./dist-BrsS7cai.mjs";
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
- let raw;
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 };
@@ -0,0 +1,2 @@
1
+ import { t as validateProjectSlug } from "./project-slug-23TpquG4.mjs";
2
+ export { validateProjectSlug };
@@ -1,7 +1,9 @@
1
- import { A as outro, D as log, E as intro, k as note, r as cliTitle } from "./output-B0cfNSx5.mjs";
2
- import { S as readProjectConfig, a as getAccountCredential, l as getToken } from "./auth-DPl6kck4.mjs";
3
- import { n as PlatformClient, o as parsePlatformErrorBody, s as platformErrorMessage, t as PlatformApiError } from "./client-BQBrZoCX.mjs";
4
- import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project--Vxawf7z.mjs";
1
+ import { r as cliTitle } from "./output-CCH48AMM.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, " ");
@@ -1,7 +1,9 @@
1
- import { A as outro, D as log, E as intro, a as dim, r as cliTitle, u as tablePrefix } from "./output-B0cfNSx5.mjs";
2
- import { S as readProjectConfig, l as getToken } from "./auth-DPl6kck4.mjs";
3
- import { n as PlatformClient } from "./client-BQBrZoCX.mjs";
4
- import { r as resolveProjectBySlug } from "./resolve-project--Vxawf7z.mjs";
1
+ import { a as dim, r as cliTitle, u as tablePrefix } from "./output-CCH48AMM.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 { c as relative, n as dirname, o as join } from "./dist-BrsS7cai.mjs";
2
- import { n as readProjectPaths } from "./project-paths-SK8nMHPp.mjs";
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-D1hLsObx.mjs";
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 __exportAll } from "./rolldown-runtime-rQ84J-ij.mjs";
2
- import { l as resolve$2, n as dirname, o as join, s as normalize, t as basename } from "./dist-BrsS7cai.mjs";
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-lAy0B0BQ.mjs";
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 { provision_exports as a, provisionEnv as i, createDefaultRunWrangler as n, resolvePinnedApiBaseUrl as o, deleteEnvVarCaseAware as r, assertNoTransportRedirectInProjectDotenv as t };
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 { A as outro, D as log, E as intro, a as dim, c as import_picocolors, r as cliTitle } from "./output-B0cfNSx5.mjs";
2
- import { S as readProjectConfig, l as getToken } from "./auth-DPl6kck4.mjs";
3
- import { n as PlatformClient } from "./client-BQBrZoCX.mjs";
1
+ import { a as dim, c as import_picocolors, r as cliTitle } from "./output-CCH48AMM.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();
@@ -0,0 +1,2 @@
1
+ import { n as inferDefaultSlug } from "./resolve-project-Xvis70DG.mjs";
2
+ export { inferDefaultSlug };
@@ -1,12 +1,6 @@
1
- import { n as __exportAll } from "./rolldown-runtime-rQ84J-ij.mjs";
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 { resolve_project_exports as i, inferDefaultSlug as n, resolveProjectBySlug as r, getRequestedProjectSlug as t };
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 { A as outro, C as cancel, D as log, E as intro, I as isCancel, M as select, a as dim, c as import_picocolors, i as createSpinner, o as ensureUtc, r as cliTitle, w as confirm } from "./output-B0cfNSx5.mjs";
2
- import { S as readProjectConfig, l as getToken, x as readDeploymentPlatform } from "./auth-DPl6kck4.mjs";
3
- import { n as PlatformClient } from "./client-BQBrZoCX.mjs";
1
+ import { a as dim, c as import_picocolors, i as createSpinner, o as ensureUtc, r as cliTitle } from "./output-CCH48AMM.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-BzWnlC1_.mjs").then((n) => n.t);
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 { __exportAll as n, __toESM as r, __commonJSMin as t };
25
+ export { __toESM as n, __commonJSMin as t };