void 1.6.1 → 1.7.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.
Files changed (276) hide show
  1. package/dist/{account-cmd-DRhmCWcm.mjs → account-cmd-BfkJ_1PC.mjs} +6 -6
  2. package/dist/{application-analysis-HRFsZOv3.mjs → application-analysis-OV0CBJ80.mjs} +8 -19
  3. package/dist/{application-routing-P4TggvWp.mjs → application-routing-QpyC5G8z.mjs} +2 -1
  4. package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
  5. package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
  6. package/dist/{auth-CH4PLAX1.d.mts → auth-CZrthGxs.d.mts} +8 -1
  7. package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
  8. package/dist/{auth-link-CVXP1G6G.mjs → auth-link-CW1Zh6FM.mjs} +6 -6
  9. package/dist/{auth-router-D1pGdbvB.mjs → auth-router-CNBKnEZi.mjs} +3 -3
  10. package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-C-0uZg8-.d.mts} +1 -1
  11. package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
  12. package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-C9qOKW9W.mjs} +5 -5
  13. package/dist/{cache-2khBO1MR.mjs → cache-DVBBbWQL.mjs} +5 -5
  14. package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-COavnjud.mjs} +4 -4
  15. package/dist/{cf-build-output-B1C8U83u.mjs → cf-build-output-CWNOH-KA.mjs} +2 -1
  16. package/dist/cf-build-output-DUZnAeZ1.mjs +1 -0
  17. package/dist/{cf-config-migrate-Dy8MrKgF.mjs → cf-config-migrate-Bb-EdAQq.mjs} +5 -1
  18. package/dist/cli/cli.mjs +68 -1868
  19. package/dist/cli/cloudflare-operation-process.mjs +10 -8
  20. package/dist/cli/env-schema-probe.mjs +3 -3
  21. package/dist/cli-main-DFteHrJI.mjs +1889 -0
  22. package/dist/client-BAxLpSKv.mjs +1 -0
  23. package/dist/{client-CoxPEhJq.mjs → client-BEZmTP6p.mjs} +10 -4
  24. package/dist/{cloudflare-auth-CEu-1Ps_.mjs → cloudflare-auth-DGIivpTb.mjs} +1 -1
  25. package/dist/{cloudflare-cmd-fZ6AMSWk.mjs → cloudflare-cmd-DJaxC-bc.mjs} +5 -5
  26. package/dist/{cloudflare-config-eQunqX6A.mjs → cloudflare-config-DtOGAbeB.mjs} +3 -3
  27. package/dist/{cloudflare-connect-9OZe4XVQ.mjs → cloudflare-connect-BjpWmglw.mjs} +3 -3
  28. package/dist/{cloudflare-operations-oLvAd9Nd.mjs → cloudflare-operations-CZkjFrzH.mjs} +1 -1
  29. package/dist/{cloudflare-operations-CrskD4_O.mjs → cloudflare-operations-k7wYUv56.mjs} +6 -6
  30. package/dist/{cloudflare-process-DjJ638A-.mjs → cloudflare-process-BcPvlMFd.mjs} +3 -3
  31. package/dist/{config-BITKQ3O6.mjs → config-5oSQhZNj.mjs} +7 -5
  32. package/dist/{config-CPxJmt4M.d.mts → config-CTlUaXWZ.d.mts} +3 -1
  33. package/dist/{config-BBlVXZCU.mjs → config-DcqUBGCb.mjs} +3 -3
  34. package/dist/{config-WlvEcL82.mjs → config-eeDzKBS9.mjs} +2 -2
  35. package/dist/config-entry.d.mts +1 -1
  36. package/dist/{config-BgysUhnm.mjs → config-wo2EaH0X.mjs} +1 -1
  37. package/dist/{connect-CKvmkl2R.mjs → connect-j1F1C_rW.mjs} +7 -7
  38. package/dist/{create-project-Bq0M8MtO.mjs → create-project-CE3jOmd5.mjs} +5 -5
  39. package/dist/{create-project-BiMmR5wA.mjs → create-project-DZH3aYGQ.mjs} +1 -1
  40. package/dist/{db-DjtGAcOz.mjs → db-DyLzzxvM.mjs} +39 -39
  41. package/dist/{db-types-C_8amnB0.mjs → db-types-DdHHUVPy.mjs} +1 -1
  42. package/dist/{delete-CY4L8fi2.mjs → delete-Dey6YoMA.mjs} +5 -5
  43. package/dist/{deploy-D_gEojD2.mjs → deploy-Ccw2D2lw.mjs} +507 -122
  44. package/dist/deploy-DEZkUS77.mjs +2 -0
  45. package/dist/{deploy-managed-static-BHVbB_-A.mjs → deploy-managed-static-BBVtpuGv.mjs} +18 -18
  46. package/dist/{deploy-transport-DEyOUfac.mjs → deploy-transport-Dt0IvSVW.mjs} +2 -2
  47. package/dist/deploy.mjs +8 -8
  48. package/dist/discover-1DJD4YXD.mjs +1 -0
  49. package/dist/{discover-Dhkzxgdt.mjs → discover-CVFCWU7W.mjs} +1 -1
  50. package/dist/{dispatch-BNLB5_Gm.mjs → dispatch-pYaww76u.mjs} +6 -6
  51. package/dist/{dist-D23AAMxT.mjs → dist-BQdgCVQF.mjs} +1 -1
  52. package/dist/{dist-eV_Ep60B.mjs → dist-DeTdhbZc.mjs} +1 -1
  53. package/dist/{domain-BlH90Ods.mjs → domain-Dh3mG8Vs.mjs} +6 -6
  54. package/dist/{email-Bkq8ZL1p.mjs → email-DKyMjOYM.mjs} +11 -11
  55. package/dist/{email-cloudflare-MvJIxrwx.mjs → email-cloudflare-CTt2n_W2.mjs} +13 -9
  56. package/dist/{entry-CBZsCy3O.mjs → entry-Bw-G1VVx.mjs} +2 -2
  57. package/dist/{env-AvuCSeCH.mjs → env-DkZzh_Dd.mjs} +7 -7
  58. package/dist/env-mask-D31Qztl9.mjs +46 -0
  59. package/dist/{env-types-DqzVBKnS.mjs → env-types-Dz9qkiOn.mjs} +1 -1
  60. package/dist/{env-validation-GV1oD4EV.mjs → env-validation-1snjKtDX.mjs} +4 -4
  61. package/dist/{env-validation-C8Cmvas0.mjs → env-validation-C8NL3lEH.mjs} +1 -1
  62. package/dist/{fetch-C8yhLoF3.mjs → fetch-CAIVkLvW.mjs} +1 -1
  63. package/dist/{fetch-B-gLGYVl.d.mts → fetch-CbI6lNnk.d.mts} +6 -4
  64. package/dist/{fetch-stream-DafNtVJC.mjs → fetch-stream-6Op0qlLd.mjs} +1 -1
  65. package/dist/{fetch-stream-DuwxWmBM.d.mts → fetch-stream-DoED9atq.d.mts} +1 -1
  66. package/dist/{gen-B9bCV5qu.mjs → gen-BZmFOGDQ.mjs} +7 -7
  67. package/dist/gen-C6iknRdI.mjs +1 -0
  68. package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-7Oky9qgH.mjs} +6 -6
  69. package/dist/{handler-CKeTtYID.mjs → handler-C9SnmeW1.mjs} +6 -5
  70. package/dist/{handler-BR6Tvjkp.d.mts → handler-DjqciiDc.d.mts} +20 -7
  71. package/dist/{headers-CuTEdP9C.mjs → headers-CimYIfQI.mjs} +1 -1
  72. package/dist/{help-1OCFDsRr.mjs → help-CNuUb47C.mjs} +7 -3
  73. package/dist/help-C_cqTByy.mjs +1 -0
  74. package/dist/index.d.mts +4 -4
  75. package/dist/index.mjs +155 -110
  76. package/dist/{info-CJxua_db.mjs → info-DwB8IWIx.mjs} +4 -4
  77. package/dist/{init-B-4CluYx.mjs → init-CUGSmcED.mjs} +34 -32
  78. package/dist/{link-DAXOT-G_.mjs → link-BlRTGHan.mjs} +6 -6
  79. package/dist/{list-BYSOo9fm.mjs → list-iCg7d5Pa.mjs} +7 -7
  80. package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
  81. package/dist/{live-0xrcVpyq.d.mts → live-zKGbRT4h.d.mts} +2 -2
  82. package/dist/{local-d1-BLgsNUj9.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
  83. package/dist/login-C4q1S-5b.mjs +1 -0
  84. package/dist/{login-CJopTWX4.mjs → login-TA51e5Fw.mjs} +5 -5
  85. package/dist/{logs-DE0weBsR.mjs → logs-BlyAxlvx.mjs} +6 -6
  86. package/dist/{migrate-ChHHZBTi.mjs → migrate-BH6LCr00.mjs} +6 -6
  87. package/dist/migrate-CVBsSFhC.mjs +1 -0
  88. package/dist/nitro.d.mts +5 -0
  89. package/dist/nitro.mjs +27 -8
  90. package/dist/{node-CZ6lGNLn.mjs → node-B0otYjDv.mjs} +4 -4
  91. package/dist/{operator-args-D79WQP70.mjs → operator-args-DuKAQ3Ks.mjs} +1 -1
  92. package/dist/{operator-auth-CfDcmzpo.mjs → operator-auth-CD3pap65.mjs} +1 -1
  93. package/dist/{operator-client-BIY4-N_6.mjs → operator-client-XvXTkea6.mjs} +2 -2
  94. package/dist/{operator-cmd-BUqsdk2K.mjs → operator-cmd-CoHlJjcT.mjs} +7 -7
  95. package/dist/operator-cmd-DnaCnCSP.mjs +1 -0
  96. package/dist/output-CNsMDEd2.mjs +1 -0
  97. package/dist/{output-BCdLioKP.mjs → output-CXJTIAtF.mjs} +1 -1
  98. package/dist/pages/client.d.mts +18 -13
  99. package/dist/pages/client.mjs +40 -69
  100. package/dist/pages/index.d.mts +4 -3
  101. package/dist/pages/index.mjs +11 -7
  102. package/dist/pages/islands-plugin.mjs +1 -1
  103. package/dist/pages/protocol.d.mts +2 -2
  104. package/dist/pages/protocol.mjs +1 -1
  105. package/dist/pages/serialize.d.mts +2 -2
  106. package/dist/pages/serialize.mjs +1 -1
  107. package/dist/platform-args-B7-wQ0_B.mjs +1 -0
  108. package/dist/{platform-args-Cx1M-7bq.mjs → platform-args-DfT8yQBF.mjs} +1 -1
  109. package/dist/{platform-auth-config-K4m_LE8b.mjs → platform-auth-config-MO0VdVs9.mjs} +10 -10
  110. package/dist/{platform-auth-protection-KF5Vo-1I.mjs → platform-auth-protection-Dv208eyL.mjs} +8 -8
  111. package/dist/{platform-auth-recovery-BOdFrl7R.mjs → platform-auth-recovery-DvAQ674F.mjs} +7 -7
  112. package/dist/{platform-cmd-DpCHawGF.mjs → platform-cmd-BpUA19r_.mjs} +1 -1
  113. package/dist/{platform-cmd-Ds3EAV5t.mjs → platform-cmd-dlSxrcQ7.mjs} +9 -9
  114. package/dist/{platform-domain-rWJshybd.mjs → platform-domain-DSO4eUEw.mjs} +5 -5
  115. package/dist/{platform-lifecycle-D9RdGub1.mjs → platform-lifecycle-BSvsyB_x.mjs} +17 -17
  116. package/dist/{platform-lifecycle-BH34I0rh.mjs → platform-lifecycle-CfcFygHb.mjs} +1 -1
  117. package/dist/{platform-management-BfLW0Zlo.mjs → platform-management-BMdyt667.mjs} +1 -1
  118. package/dist/{platform-management-BRefdHGD.mjs → platform-management-CrP1XhVd.mjs} +4 -4
  119. package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-CgDiwflR.mjs} +5 -5
  120. package/dist/{platform-recovery-DZuZGJtt.mjs → platform-recovery-CHWwXVZ6.mjs} +3 -3
  121. package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-BTQVbnTC.mjs} +3 -3
  122. package/dist/{plugin-inference-CdLbxZL_.mjs → plugin-inference-g66Q1Mx9.mjs} +5 -8
  123. package/dist/prepare-Bx4a8cb1.mjs +1 -0
  124. package/dist/{prepare-BuNbuFlA.mjs → prepare-DJYHjpzq.mjs} +3 -3
  125. package/dist/{prepare-BerOZiD4.mjs → prepare-DXduEwQp.mjs} +12 -9
  126. package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BN9Lmebs.mjs} +29 -13
  127. package/dist/prerender-render.d.mts +10 -2
  128. package/dist/prerender-render.mjs +1 -1
  129. package/dist/{project-cmd-B_bUyZ3J.mjs → project-cmd-Dfb1Sg8w.mjs} +18 -18
  130. package/dist/{project-paths-CdGv9Tmi.mjs → project-paths-G0yut6Zz.mjs} +12 -8
  131. package/dist/{project-team-MjT5K4rQ.mjs → project-team-BO2dyc7S.mjs} +5 -5
  132. package/dist/{project-token-BKHGwY3k.mjs → project-token-ByO2mEI2.mjs} +5 -5
  133. package/dist/{project-tsconfig-Cf2NFjlM.mjs → project-tsconfig-nhnTWO_Y.mjs} +4 -2
  134. package/dist/{project-zero-trust-Bzdd05-h.mjs → project-zero-trust-CoQfwRBR.mjs} +5 -5
  135. package/dist/{protocol-CkwjASep.d.mts → protocol-xZMvWsrg.d.mts} +5 -3
  136. package/dist/{protocol-COyySMki.mjs → protocol-yxdHxFLN.mjs} +47 -11
  137. package/dist/{provision-DQF6Kw-6.mjs → provision-CMH4-8ri.mjs} +1 -1
  138. package/dist/{provision-BbCzpbXs.mjs → provision-D5q-ptD3.mjs} +2 -2
  139. package/dist/{requests-daJmVpjk.mjs → requests-CPOiDkjh.mjs} +4 -4
  140. package/dist/resolve-project-BALVa9q0.mjs +1 -0
  141. package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-ClvLMTI9.mjs} +1 -1
  142. package/dist/{rollback-BgL0wY1J.mjs → rollback-BfCs2la4.mjs} +7 -7
  143. package/dist/{route-types-CZc1YXjF.mjs → route-types-Cl3x0Q8B.mjs} +265 -12
  144. package/dist/{route-url-C_YIH_zO.d.mts → route-url-C3JwYrER.d.mts} +8 -3
  145. package/dist/{route-url-CRDF-I0I.mjs → route-url-CfCR4oMj.mjs} +4 -3
  146. package/dist/routes-stub.d.mts +10 -1
  147. package/dist/routes-stub.mjs +1 -1
  148. package/dist/{runner-QMeOpScZ.mjs → runner-CTk21HrO.mjs} +1 -1
  149. package/dist/{runner-mysql-0zVmB1JW.mjs → runner-mysql-CHvEg_sy.mjs} +1 -1
  150. package/dist/runtime/ai.mjs +1 -1
  151. package/dist/runtime/auth.d.mts +2 -2
  152. package/dist/runtime/auth.mjs +1 -1
  153. package/dist/runtime/better-auth-mysql.d.mts +1 -1
  154. package/dist/runtime/better-auth-mysql.mjs +1 -1
  155. package/dist/runtime/better-auth-pg.d.mts +1 -1
  156. package/dist/runtime/better-auth-pg.mjs +1 -1
  157. package/dist/runtime/better-auth.d.mts +1 -1
  158. package/dist/runtime/better-auth.mjs +1 -1
  159. package/dist/runtime/client-react.d.mts +3 -3
  160. package/dist/runtime/client-react.mjs +2 -2
  161. package/dist/runtime/client-solid.d.mts +3 -3
  162. package/dist/runtime/client-solid.mjs +2 -2
  163. package/dist/runtime/client-svelte.d.mts +3 -3
  164. package/dist/runtime/client-svelte.mjs +2 -2
  165. package/dist/runtime/client-vue.d.mts +3 -3
  166. package/dist/runtime/client-vue.mjs +2 -2
  167. package/dist/runtime/client.d.mts +3 -3
  168. package/dist/runtime/client.mjs +2 -2
  169. package/dist/runtime/email/testing.mjs +2 -2
  170. package/dist/runtime/email.mjs +3 -3
  171. package/dist/runtime/env-public.mjs +2 -46
  172. package/dist/runtime/fetch-server.d.mts +1 -1
  173. package/dist/runtime/fetch-server.mjs +1 -1
  174. package/dist/runtime/fetch-stream.d.mts +2 -2
  175. package/dist/runtime/fetch-stream.mjs +1 -1
  176. package/dist/runtime/fetch.d.mts +1 -1
  177. package/dist/runtime/fetch.mjs +1 -1
  178. package/dist/runtime/handler.d.mts +1 -1
  179. package/dist/runtime/handler.mjs +1 -1
  180. package/dist/runtime/isr.d.mts +3 -1
  181. package/dist/runtime/live-client.d.mts +11 -2
  182. package/dist/runtime/live-client.mjs +8 -0
  183. package/dist/runtime/live-server.mjs +1 -1
  184. package/dist/runtime/live.d.mts +1 -1
  185. package/dist/runtime/live.mjs +1 -1
  186. package/dist/runtime/log.mjs +1 -1
  187. package/dist/runtime/remote/index.mjs +1 -1
  188. package/dist/runtime/route-url.d.mts +2 -2
  189. package/dist/runtime/route-url.mjs +1 -1
  190. package/dist/runtime/routing.d.mts +15 -4
  191. package/dist/runtime/routing.mjs +94 -12
  192. package/dist/runtime/sandbox.mjs +1 -1
  193. package/dist/runtime/sse-client.d.mts +9 -1
  194. package/dist/runtime/sse-client.mjs +7 -0
  195. package/dist/runtime/validator.d.mts +1 -1
  196. package/dist/runtime/validator.mjs +1 -1
  197. package/dist/runtime/ws-server.d.mts +3 -3
  198. package/dist/runtime/ws-server.mjs +1 -1
  199. package/dist/runtime/ws.d.mts +1 -1
  200. package/dist/runtime/ws.mjs +1 -1
  201. package/dist/{scan-X2rDDRNa.mjs → scan-L8OSv1f7.mjs} +68 -19
  202. package/dist/{secret-CPq-B_vp.mjs → secret-CuI6LTpD.mjs} +7 -7
  203. package/dist/serialize-DN-envGQ.d.mts +18 -0
  204. package/dist/serialize-Pf-CIQK_.mjs +39 -0
  205. package/dist/{skills-D393E4lB.mjs → skills-BBO9wMjB.mjs} +1 -1
  206. package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-BZMnCA8T.mjs} +2 -2
  207. package/dist/url-CuoEn0o3.mjs +43 -0
  208. package/dist/validator-8-NZs2Xr.mjs +168 -0
  209. package/dist/{version-metadata-C8hLzQkv.mjs → version-metadata-eUd6Ar_U.mjs} +1 -1
  210. package/dist/wrangler-R3kMdJfw.mjs +1 -0
  211. package/dist/{wrangler-DESSbN8L.mjs → wrangler-k40T7XTQ.mjs} +3 -3
  212. package/dist/{wrapper-C9SUxoj7.mjs → wrapper-BGsi_uHs.mjs} +12 -9
  213. package/dist/{ws-Dmjg5NH2.d.mts → ws-DB8Feytg.d.mts} +2 -2
  214. package/docs/guide/ai.md +2 -0
  215. package/docs/guide/auth.md +62 -0
  216. package/docs/guide/database.md +33 -0
  217. package/docs/guide/deployment.md +8 -0
  218. package/docs/guide/edge/headers.md +3 -1
  219. package/docs/guide/edge/prerendering.md +9 -4
  220. package/docs/guide/edge/redirects.md +1 -0
  221. package/docs/guide/edge/revalidation.md +3 -0
  222. package/docs/guide/edge/static-assets.md +1 -1
  223. package/docs/guide/live.md +2 -0
  224. package/docs/guide/pages-routing/actions-and-forms.md +29 -10
  225. package/docs/guide/pages-routing/head.md +3 -1
  226. package/docs/guide/pages-routing/islands.md +1 -1
  227. package/docs/guide/pages-routing/loaders.md +2 -0
  228. package/docs/guide/pages-routing/markdown.md +2 -2
  229. package/docs/guide/pages-routing/overview.md +139 -10
  230. package/docs/guide/quickstart.md +1 -0
  231. package/docs/guide/server-routing.md +14 -0
  232. package/docs/guide/sse.md +2 -0
  233. package/docs/guide/ssg.md +23 -2
  234. package/docs/guide/storage.md +6 -2
  235. package/docs/guide/type-safety.md +307 -26
  236. package/docs/guide/typed-fetch.md +7 -3
  237. package/docs/guide/websockets.md +5 -5
  238. package/docs/integrations/cloudflare.md +10 -10
  239. package/docs/integrations/frameworks/nuxt.md +2 -0
  240. package/docs/integrations/frameworks/overview.md +2 -0
  241. package/docs/integrations/nodejs-bun-deno.md +65 -0
  242. package/docs/reference/api/auth.md +19 -0
  243. package/docs/reference/api/client.md +6 -4
  244. package/docs/reference/api/handlers.md +3 -1
  245. package/docs/reference/api/pages.md +16 -8
  246. package/docs/reference/api/resources.md +3 -1
  247. package/docs/reference/api/rewrites.md +19 -5
  248. package/docs/reference/api/types.md +9 -2
  249. package/docs/reference/cli/database.md +2 -0
  250. package/docs/reference/cli/deploy.md +17 -11
  251. package/docs/reference/cli.md +3 -0
  252. package/docs/reference/config.md +24 -2
  253. package/package.json +25 -23
  254. package/schema.json +4 -0
  255. package/skills/void/SKILL.md +5 -0
  256. package/dist/cf-build-output-CmDOcA7K.mjs +0 -1
  257. package/dist/client-CEtr5UOR.mjs +0 -1
  258. package/dist/deploy-B029oHlE.mjs +0 -2
  259. package/dist/discover-D4mQthao.mjs +0 -1
  260. package/dist/gen-cCxrFp9L.mjs +0 -1
  261. package/dist/help-Ba8Dq5-r.mjs +0 -1
  262. package/dist/login-BpbYeu-n.mjs +0 -1
  263. package/dist/migrate-HdA6Kh2p.mjs +0 -1
  264. package/dist/operator-cmd-wBYyp8iQ.mjs +0 -1
  265. package/dist/output-E6gecbbV.mjs +0 -1
  266. package/dist/platform-args-C7XUw9mw.mjs +0 -1
  267. package/dist/prepare-Cz18kLkF.mjs +0 -1
  268. package/dist/resolve-project-CgfjtOwz.mjs +0 -1
  269. package/dist/serialize-DUuYuaY3.mjs +0 -29
  270. package/dist/serialize-I4EmS-Wf.d.mts +0 -16
  271. package/dist/validator-CTfmzZYb.mjs +0 -69
  272. package/dist/wrangler-DUB3MGHV.mjs +0 -1
  273. package/dist/{cf-access-BmBT2h8_.mjs → cf-access-Dnyw8KFY.mjs} +1 -1
  274. package/dist/{inbound-CdO-qY0w.mjs → inbound-C2H6Dzz1.mjs} +2 -2
  275. package/dist/{runner-5MCSimKx.mjs → runner-CMZb7jNU.mjs} +1 -1
  276. package/dist/{runner-mysql-Bdmsp_x4.mjs → runner-mysql-BXfcQQj3.mjs} +1 -1
@@ -0,0 +1 @@
1
+ export { r as PlatformClient } from "./client-BEZmTP6p.mjs";
@@ -1,10 +1,10 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { c as normalizePlatformApiUrl } from "./platform-registry-DZ_2Xuqd.mjs";
3
2
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
4
- import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
5
- import { a as getApiUrl } from "./auth-Dy8svcqQ.mjs";
6
3
  import { r as getPackageDir } from "./agents-DRo8gzni.mjs";
4
+ import { a as getApiUrl } from "./auth-CCk9Seol.mjs";
5
+ import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
7
6
  import { n as readPlatformDiscoveryResponse } from "./platform-discovery-B0eZjZ3B.mjs";
7
+ import { c as normalizePlatformApiUrl } from "./platform-registry-DZ_2Xuqd.mjs";
8
8
  import { readFileSync } from "node:fs";
9
9
  import { stripVTControlCharacters } from "node:util";
10
10
  // src/cli/platform-errors.ts
@@ -94,7 +94,7 @@ function readCliVersion() {
94
94
  }
95
95
  const VOID_CLI_VERSION = readCliVersion();
96
96
  /** The oldest Void platform release this CLI supports. */
97
- const MIN_PLATFORM_VERSION = "1.6.0";
97
+ const MIN_PLATFORM_VERSION = "1.7.0";
98
98
  const RELEASE_VERSION = /^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$/;
99
99
  /**
100
100
  * Discovery probes keyed by platform base URL. Every outcome (pass,
@@ -264,6 +264,12 @@ var PlatformClient = class {
264
264
  if (probe.kind === "unknown") probe = await this.probePlatformVersion();
265
265
  return probe.kind === "version" && probe.directWorkerUpload;
266
266
  }
267
+ /** Older servers otherwise ignore the execution mode and apply SQL anyway. */
268
+ async requireMigrationSkipSupport() {
269
+ const response = await this.request(`${this.baseUrl}/capabilities`, { signal: AbortSignal.timeout(15e3) });
270
+ if (!response.ok && response.status !== 404) await throwPlatformApiError("Failed to check migration capabilities", response, "deploy");
271
+ if ((response.ok ? await response.json() : null)?.skipMigrations !== true) throw new Error("deploy: This Void platform does not support --skip-migrations. Ask its administrator to upgrade with `void platform upgrade`.");
272
+ }
267
273
  /** Reads the platform version from public discovery, without credentials. */
268
274
  async probePlatformVersion() {
269
275
  let response;
@@ -1,4 +1,4 @@
1
- import { i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation, t as createCloudflareProcessRunner } from "./cloudflare-process-DjJ638A-.mjs";
1
+ import { i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation, t as createCloudflareProcessRunner } from "./cloudflare-process-BcPvlMFd.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  // src/cli/cloudflare-auth.ts
4
4
  var CloudflareAuthenticationError = class extends Error {
@@ -1,9 +1,9 @@
1
+ import { L as log } from "./dist-BQdgCVQF.mjs";
1
2
  import { t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { b as readRootWranglerConfig } from "./wrangler-DESSbN8L.mjs";
3
- import { L as log } from "./dist-D23AAMxT.mjs";
4
- import { m as printSuccess } from "./output-BCdLioKP.mjs";
5
- import { i as isCleanCloudflareExit } from "./cloudflare-process-DjJ638A-.mjs";
6
- import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-CEu-1Ps_.mjs";
3
+ import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-DGIivpTb.mjs";
4
+ import { i as isCleanCloudflareExit } from "./cloudflare-process-BcPvlMFd.mjs";
5
+ import { m as printSuccess } from "./output-CXJTIAtF.mjs";
6
+ import { b as readRootWranglerConfig } from "./wrangler-k40T7XTQ.mjs";
7
7
  // src/cli/cloudflare-cmd.ts
8
8
  async function runCloudflareCommand(root, args) {
9
9
  const runWrangler = createBundledCloudflareAuthRunner(root);
@@ -1,8 +1,8 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import "./project-paths-CdGv9Tmi.mjs";
3
- import { p as readConfig } from "./config-BITKQ3O6.mjs";
4
- import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
5
2
  import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
3
+ import "./project-paths-G0yut6Zz.mjs";
4
+ import { p as readConfig } from "./config-5oSQhZNj.mjs";
5
+ import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
7
7
  import { isRecord } from "@void/deploy-core";
8
8
  import { isDeepStrictEqual } from "node:util";
@@ -1,7 +1,7 @@
1
+ import { K as select, L as log, tt as isCancel } from "./dist-BQdgCVQF.mjs";
1
2
  import { a as join, t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-DESSbN8L.mjs";
3
- import { K as select, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
4
- import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-CEu-1Ps_.mjs";
3
+ import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-DGIivpTb.mjs";
4
+ import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-k40T7XTQ.mjs";
5
5
  import { existsSync } from "node:fs";
6
6
  // src/cli/cloudflare-connect.ts
7
7
  async function connectCloudflare(root, interactive = Boolean(process.stdin.isTTY)) {
@@ -1 +1 @@
1
- export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-CrskD4_O.mjs";
1
+ export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-k7wYUv56.mjs";
@@ -1,10 +1,10 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-eQunqX6A.mjs";
3
- import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-DESSbN8L.mjs";
4
- import { u as getErrorMessage } from "./output-BCdLioKP.mjs";
5
- import { t as createCloudflareProcessRunner } from "./cloudflare-process-DjJ638A-.mjs";
6
- import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-BbCzpbXs.mjs";
7
- import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-DEyOUfac.mjs";
2
+ import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-DtOGAbeB.mjs";
3
+ import { t as createCloudflareProcessRunner } from "./cloudflare-process-BcPvlMFd.mjs";
4
+ import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-Dt0IvSVW.mjs";
5
+ import { u as getErrorMessage } from "./output-CXJTIAtF.mjs";
6
+ import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-D5q-ptD3.mjs";
7
+ import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-k40T7XTQ.mjs";
8
8
  import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
9
9
  import { tmpdir } from "node:os";
10
10
  import { deployCloudflareVersionTraffic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, parseRootWranglerConfig, readBindingFieldPresence, readCloudflareTriggerConfig, readWranglerTopLevelString, resolveD1MigrateTarget, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
@@ -1,8 +1,8 @@
1
+ import { t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-Ccl-zRhl.mjs";
1
2
  import { a as join, c as resolve, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
3
- import { i as hasSsrEntry, r as getSsrServerEntryPath } from "./entry-CBZsCy3O.mjs";
3
+ import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
4
4
  import { i as readPackageJson, n as hasPackageDependency, t as getPackageDependencies } from "./package-json-DvS6IFRv.mjs";
5
- import { t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-Ccl-zRhl.mjs";
5
+ import { i as hasSsrEntry, r as getSsrServerEntryPath } from "./entry-Bw-G1VVx.mjs";
6
6
  import { existsSync } from "node:fs";
7
7
  import { fileURLToPath } from "node:url";
8
8
  import { spawnSync } from "node:child_process";
@@ -1,5 +1,5 @@
1
- import { a as validateSourceDir, c as loadVoidConfig } from "./project-paths-CdGv9Tmi.mjs";
2
1
  import { a as isVoidAuthProvider, t as VOID_AUTH_PROVIDERS } from "./providers-ZARwX2cL.mjs";
2
+ import { a as validateSourceDir, c as loadVoidConfig } from "./project-paths-G0yut6Zz.mjs";
3
3
  import { n as MimeError, o as parseAddress } from "./mime-CtP6-qAF.mjs";
4
4
  import { isRecord } from "@void/deploy-core";
5
5
  // src/config.ts
@@ -181,7 +181,7 @@ function validateConfig(config, source = CONFIG_FILE) {
181
181
  try {
182
182
  return validateConfigObject(config);
183
183
  } catch (error) {
184
- if (source !== CONFIG_FILE && error instanceof Error) throw new Error(error.message.replaceAll(CONFIG_FILE, source), { cause: error });
184
+ if (source !== CONFIG_FILE && error instanceof Error) throw new Error(error.message.replaceAll(CONFIG_FILE, source));
185
185
  throw error;
186
186
  }
187
187
  }
@@ -190,7 +190,7 @@ function validateConfigObject(obj) {
190
190
  for (const [key, message] of Object.entries(MIGRATION_ERRORS)) if (obj[key] !== void 0) throw new Error(`config: ${message} in ${CONFIG_FILE}.`);
191
191
  if (obj.sourceDir !== void 0) {
192
192
  if (typeof obj.sourceDir !== "string") throw new Error(`config: "sourceDir" in ${CONFIG_FILE} must be a string.`);
193
- validateSourceDir(obj.sourceDir);
193
+ validateSourceDir(obj.sourceDir, CONFIG_FILE);
194
194
  }
195
195
  if (obj.target !== void 0) {
196
196
  if (typeof obj.target !== "string" || !VALID_TARGETS.has(obj.target)) throw new Error(`config: "target" in ${CONFIG_FILE} must be one of: cloudflare, node, bun, deno.`);
@@ -239,6 +239,8 @@ function validateConfigObject(obj) {
239
239
  if (obj.routing !== void 0) {
240
240
  if (!isRecord(obj.routing)) throw new Error(`config: "routing" in ${CONFIG_FILE} must be an object.`);
241
241
  const routing = obj.routing;
242
+ if (routing.trailingSlash !== void 0 && typeof routing.trailingSlash !== "boolean") throw new Error(`config: "routing.trailingSlash" in ${CONFIG_FILE} must be a boolean.`);
243
+ if (routing.trailingSlash === true && isRecord(obj.cloudflare) && isRecord(obj.cloudflare.assets) && obj.cloudflare.assets.html_handling === "drop-trailing-slash") throw new Error(`config: "routing.trailingSlash" conflicts with cloudflare.assets.html_handling: "drop-trailing-slash".`);
242
244
  if (routing.alwaysUseHttps !== void 0 && typeof routing.alwaysUseHttps !== "boolean") throw new Error(`config: "routing.alwaysUseHttps" in ${CONFIG_FILE} must be a boolean.`);
243
245
  if (routing.alwaysUseHttps === true && isNodeTarget(obj.target)) throw new Error(`config: "routing.alwaysUseHttps" in ${CONFIG_FILE} requires target: "cloudflare". It is not available with target: "${obj.target}".`);
244
246
  if (routing.typedRoutes !== void 0 && typeof routing.typedRoutes !== "boolean") throw new Error(`config: "routing.typedRoutes" in ${CONFIG_FILE} must be a boolean.`);
@@ -505,7 +507,7 @@ function convertHeadersConfig(headers) {
505
507
  */
506
508
  function convertRedirectsConfig(redirects) {
507
509
  if (!redirects) return;
508
- const origin = "void.json#routing.redirects";
510
+ const origin = "void.config.ts#routing.redirects";
509
511
  const rules = [];
510
512
  for (const [rawSource, dest] of Object.entries(redirects)) {
511
513
  const parsed = parseHostPrefixedSource(rawSource);
@@ -555,7 +557,7 @@ function convertFallbacksConfig(fallbacks) {
555
557
  }
556
558
  function convertRewriteRules(caller, entries, field, force) {
557
559
  if (!entries) return;
558
- const origin = `void.json#routing.${field}`;
560
+ const origin = `void.config.ts#routing.${field}`;
559
561
  const rules = [];
560
562
  for (const [rawSource, destination] of Object.entries(entries)) {
561
563
  const parsed = parseHostPrefixedSource(rawSource);
@@ -1,5 +1,5 @@
1
- import "./types-CKWnYgfy.mjs";
2
1
  import { t as VoidAuthProvider } from "./providers-D5P8j_8D.mjs";
2
+ import "./types-CKWnYgfy.mjs";
3
3
  import { t as HeadConfig } from "./head-MeF_5M_3.mjs";
4
4
  import { AssetConfig } from "@void/deploy-core";
5
5
  import { RewriteDestination } from "void/routes";
@@ -43,6 +43,8 @@ type WranglerConfig = {
43
43
  type NotFoundHandling = "single-page-application" | "404-page" | "none";
44
44
  /** Routing configuration — headers, redirects, rewrites, fallbacks, revalidation, prerendering. */
45
45
  type RoutingConfig = {
46
+ /** Use trailing-slash Pages URLs and directory indexes for prerendered HTML. */
47
+ trailingSlash?: boolean;
46
48
  /** Redirect HTTP to HTTPS with a 308. Requires the Cloudflare target. Omitted means off. */
47
49
  alwaysUseHttps?: boolean;
48
50
  /** Disable ISR and edge prerendering, including per-page policies. Static output is unaffected. */
@@ -1,7 +1,7 @@
1
1
  import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { i as resolveProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
3
- import { n as schemaSpecifier, t as discoverSchema } from "./discover-Dhkzxgdt.mjs";
4
- import { c as getDatabaseCasing, p as readConfig } from "./config-BITKQ3O6.mjs";
2
+ import { c as getDatabaseCasing, p as readConfig } from "./config-5oSQhZNj.mjs";
3
+ import { i as resolveProjectPaths } from "./project-paths-G0yut6Zz.mjs";
4
+ import { n as schemaSpecifier, t as discoverSchema } from "./discover-CVFCWU7W.mjs";
5
5
  import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
6
6
  import { tmpdir } from "node:os";
7
7
  // src/drizzle/config.ts
@@ -1,5 +1,5 @@
1
- import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
2
- import { t as discoverSchema } from "./discover-Dhkzxgdt.mjs";
1
+ import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
2
+ import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { isRunnableDevEnvironment, parseSync, runnerImport } from "vite";
5
5
  // src/auth/config.ts
@@ -1,4 +1,4 @@
1
- import { t as VoidConfig } from "./config-CPxJmt4M.mjs";
1
+ import { t as VoidConfig } from "./config-CTlUaXWZ.mjs";
2
2
  /** Define a typed Void project configuration without loading the Vite plugin. */
3
3
  export declare function defineConfig<const T extends VoidConfig>(config: T): T;
4
4
  export type { VoidConfig };
@@ -1 +1 @@
1
- export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-BBlVXZCU.mjs";
1
+ export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-DcqUBGCb.mjs";
@@ -1,12 +1,12 @@
1
+ import { K as select, L as log, tt as isCancel } from "./dist-BQdgCVQF.mjs";
2
+ import { d as readPlatformToken } from "./auth-CCk9Seol.mjs";
3
+ import { a as isExpiredTokenError, r as PlatformClient } from "./client-BEZmTP6p.mjs";
4
+ import { t as connectCloudflare } from "./cloudflare-connect-BjpWmglw.mjs";
5
+ import { t as promptForLoginToken } from "./login-TA51e5Fw.mjs";
6
+ import { m as printSuccess } from "./output-CXJTIAtF.mjs";
7
+ import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-dlSxrcQ7.mjs";
1
8
  import { c as normalizePlatformApiUrl, s as listPlatformConnections } from "./platform-registry-DZ_2Xuqd.mjs";
2
9
  import { c as writeDeploymentPlatform, l as writePlatformSelection, n as readDeploymentPlatform } from "./project-CLwxcEdq.mjs";
3
- import { d as readPlatformToken } from "./auth-Dy8svcqQ.mjs";
4
- import { K as select, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
5
- import { a as isExpiredTokenError, r as PlatformClient } from "./client-CoxPEhJq.mjs";
6
- import { m as printSuccess } from "./output-BCdLioKP.mjs";
7
- import { t as promptForLoginToken } from "./login-CJopTWX4.mjs";
8
- import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-Ds3EAV5t.mjs";
9
- import { t as connectCloudflare } from "./cloudflare-connect-9OZe4XVQ.mjs";
10
10
  // src/cli/connect.ts
11
11
  async function selectVoidPlatform(interactive) {
12
12
  if (!interactive) throw new Error("connect: Supply a Void platform URL in non-interactive mode.");
@@ -1,10 +1,10 @@
1
+ import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
2
+ import { n as PlatformApiError } from "./client-BEZmTP6p.mjs";
3
+ import { f as import_picocolors, h as sanitizeTerminalText } from "./output-CXJTIAtF.mjs";
1
4
  import { t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
2
- import { s as getSiteDomain } from "./auth-Dy8svcqQ.mjs";
3
- import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
4
- import { n as PlatformApiError } from "./client-CoxPEhJq.mjs";
5
- import { f as import_picocolors, h as sanitizeTerminalText } from "./output-BCdLioKP.mjs";
5
+ import { s as getSiteDomain } from "./auth-CCk9Seol.mjs";
6
6
  import { t as validateProjectSlug } from "./project-slug-CO6ci9XG.mjs";
7
- import { n as inferDefaultSlug } from "./resolve-project-D0YNnJfm.mjs";
7
+ import { n as inferDefaultSlug } from "./resolve-project-ClvLMTI9.mjs";
8
8
  // src/cli/prompt.ts
9
9
  async function promptProjectSetupAction(message = "Set up a Void project:", options = {}) {
10
10
  const result = await select({
@@ -1 +1 @@
1
- export { t as createProjectWithSlugRetry } from "./create-project-Bq0M8MtO.mjs";
1
+ export { t as createProjectWithSlugRetry } from "./create-project-CE3jOmd5.mjs";
@@ -1,20 +1,20 @@
1
+ import { A as confirm, H as outro, L as log, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
1
2
  import { a as join, c as resolve, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { r as detectFramework } from "./plugin-inference-CdLbxZL_.mjs";
3
- import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
4
- import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-BITKQ3O6.mjs";
3
+ import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-5oSQhZNj.mjs";
4
+ import { t as resolveLocalD1Target } from "./local-d1-CFcH9Bx3.mjs";
5
5
  import { i as writeJournal, n as readJournal, r as stripSqlExt, t as collectMigrations } from "./collect-C6Blu9yw.mjs";
6
- import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
7
- import { t as resolveLocalD1Target } from "./local-d1-BLgsNUj9.mjs";
6
+ import { i as validateMigrations, t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
7
+ import { r as detectFramework } from "./plugin-inference-g66Q1Mx9.mjs";
8
+ import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
8
9
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
9
- import { n as ensurePlatformProxyAccess, r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
10
- import { c as getToken, o as getProxyUrl } from "./auth-Dy8svcqQ.mjs";
11
10
  import { s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
12
- import { i as validateMigrations, t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
13
- import { A as confirm, H as outro, L as log, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
14
- import { n as PlatformApiError, r as PlatformClient } from "./client-CoxPEhJq.mjs";
15
- import { f as import_picocolors, i as dim, l as formatUrl, m as printSuccess, o as formatCount, u as getErrorMessage } from "./output-BCdLioKP.mjs";
11
+ import { c as getToken, o as getProxyUrl } from "./auth-CCk9Seol.mjs";
12
+ import { n as ensurePlatformProxyAccess, r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
13
+ import { n as PlatformApiError, r as PlatformClient } from "./client-BEZmTP6p.mjs";
14
+ import { n as formatTimestamp } from "./gen-BZmFOGDQ.mjs";
15
+ import { f as import_picocolors, i as dim, l as formatUrl, m as printSuccess, o as formatCount, u as getErrorMessage } from "./output-CXJTIAtF.mjs";
16
+ import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
16
17
  import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
17
- import { n as formatTimestamp } from "./gen-B9bCV5qu.mjs";
18
18
  import { createRequire } from "node:module";
19
19
  import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
20
20
  import { pathToFileURL } from "node:url";
@@ -155,7 +155,7 @@ function runDrizzleKit(root, args) {
155
155
  * already printed its own error.
156
156
  */
157
157
  async function runDrizzleKitWithDatabaseUrl(root, url, dialect, command) {
158
- const { withPrivateDrizzleConfig } = await import("./config-BgysUhnm.mjs");
158
+ const { withPrivateDrizzleConfig } = await import("./config-wo2EaH0X.mjs");
159
159
  if (!withPrivateDrizzleConfig(root, url, dialect, (configPath) => {
160
160
  try {
161
161
  runDrizzleKit(root, [
@@ -186,7 +186,7 @@ async function withPgClient(root, fn) {
186
186
  }
187
187
  }
188
188
  async function withMySqlClient(root, fn, options = {}) {
189
- const { toMySqlClient } = await import("./runner-mysql-0zVmB1JW.mjs");
189
+ const { toMySqlClient } = await import("./runner-mysql-CHvEg_sy.mjs");
190
190
  const { createConnection } = await import("mysql2/promise");
191
191
  const connection = await createConnection({
192
192
  uri: getLocalDatabaseUrl(root, "mysql"),
@@ -311,7 +311,7 @@ async function runPush(root, dialect) {
311
311
  printSuccess("Database schema pushed.");
312
312
  return;
313
313
  }
314
- const { writeDrizzleConfig } = await import("./config-BgysUhnm.mjs");
314
+ const { writeDrizzleConfig } = await import("./config-wo2EaH0X.mjs");
315
315
  const { databasePath: dbPath } = getLocalD1Target(root);
316
316
  mkdirSync(dirname(dbPath), { recursive: true });
317
317
  const configPath = writeDrizzleConfig(root, dbPath);
@@ -327,8 +327,8 @@ async function runPush(root, dialect) {
327
327
  printSuccess("Database schema pushed.");
328
328
  }
329
329
  async function runGenerate(root, dialect) {
330
- const { prepareProject } = await import("./prepare-Cz18kLkF.mjs");
331
- const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-BgysUhnm.mjs");
330
+ const { prepareProject } = await import("./prepare-Bx4a8cb1.mjs");
331
+ const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-wo2EaH0X.mjs");
332
332
  await prepareProject(root);
333
333
  const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
334
334
  const additionalSchemas = existsSync(authSchemaPath) ? [authSchemaPath] : void 0;
@@ -377,13 +377,13 @@ async function runStatus(root, dialect) {
377
377
  localError = error;
378
378
  }
379
379
  else if (dialect === "mysql") try {
380
- const { readMySqlAppliedMigrations } = await import("./runner-mysql-0zVmB1JW.mjs");
380
+ const { readMySqlAppliedMigrations } = await import("./runner-mysql-CHvEg_sy.mjs");
381
381
  localApplied = await withMySqlClient(root, readMySqlAppliedMigrations);
382
382
  } catch (error) {
383
383
  localError = error;
384
384
  }
385
385
  else {
386
- const { getAppliedMigrations } = await import("./runner-QMeOpScZ.mjs");
386
+ const { getAppliedMigrations } = await import("./runner-CTk21HrO.mjs");
387
387
  const { databasePath: dbPath } = getLocalD1Target(root);
388
388
  localApplied = (await getAppliedMigrations(dbPath)).map((m) => m.name);
389
389
  }
@@ -393,12 +393,12 @@ async function runStatus(root, dialect) {
393
393
  if (dialect !== "sqlite") {
394
394
  const databaseUrl = process.env.DATABASE_URL;
395
395
  if (!databaseUrl) throw new Error("DATABASE_URL is not available.");
396
- remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-2pjltt0t.mjs")).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-0zVmB1JW.mjs")).getMySqlAppliedMigrations(databaseUrl)).map((name) => ({
396
+ remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-2pjltt0t.mjs")).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-CHvEg_sy.mjs")).getMySqlAppliedMigrations(databaseUrl)).map((name) => ({
397
397
  name,
398
398
  applied_at: ""
399
399
  }));
400
400
  } else {
401
- const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
401
+ const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-CZkjFrzH.mjs");
402
402
  remoteApplied = (await readCloudflareD1Migrations(resolveCloudflareD1Context(root, configuredD1Binding(root)))).map((name) => ({
403
403
  name,
404
404
  applied_at: ""
@@ -566,7 +566,7 @@ async function resetDatabase(root, dialect, yes) {
566
566
  return migrations.length;
567
567
  }
568
568
  if (dialect === "mysql") {
569
- const { applyPendingMySqlMigrations, withMySqlMigrationLock } = await import("./runner-mysql-0zVmB1JW.mjs");
569
+ const { applyPendingMySqlMigrations, withMySqlMigrationLock } = await import("./runner-mysql-CHvEg_sy.mjs");
570
570
  await withMySqlClient(root, (client) => withMySqlMigrationLock(client, async () => {
571
571
  const tables = await client.query("SELECT table_name AS table_name, table_type AS table_type FROM information_schema.tables WHERE table_schema = DATABASE() AND table_type IN ('BASE TABLE', 'VIEW')");
572
572
  await client.query("SET FOREIGN_KEY_CHECKS = 0");
@@ -584,7 +584,7 @@ async function resetDatabase(root, dialect, yes) {
584
584
  }));
585
585
  return migrations.length;
586
586
  }
587
- const { runMigrations } = await import("./runner-QMeOpScZ.mjs");
587
+ const { runMigrations } = await import("./runner-CTk21HrO.mjs");
588
588
  const { databasePath: dbPath } = getLocalD1Target(root);
589
589
  rmSync(dbPath, { force: true });
590
590
  rmSync(dbPath + "-wal", { force: true });
@@ -618,7 +618,7 @@ async function runSeed(root, file, dialect, yes) {
618
618
  printSuccess(`Seeded from ${seed.displayPath}.`);
619
619
  return;
620
620
  }
621
- const { openSqliteDatabase } = await import("./runner-QMeOpScZ.mjs");
621
+ const { openSqliteDatabase } = await import("./runner-CTk21HrO.mjs");
622
622
  const { databasePath: dbPath } = getLocalD1Target(root);
623
623
  const db = await openSqliteDatabase(dbPath);
624
624
  try {
@@ -710,7 +710,7 @@ async function runExecute(root, command, file, dialect, remote) {
710
710
  process.exit(0);
711
711
  }
712
712
  if (dialect === "sqlite") {
713
- const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
713
+ const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-CZkjFrzH.mjs");
714
714
  const rows = await executeCloudflareD1Sql(resolveCloudflareD1Context(root, configuredD1Binding(root)), sql);
715
715
  if (rows.length > 0) printTable(rows);
716
716
  } else {
@@ -811,7 +811,7 @@ async function runExecute(root, command, file, dialect, remote) {
811
811
  printSuccess("SQL executed successfully.");
812
812
  return;
813
813
  }
814
- const { openSqliteDatabase } = await import("./runner-QMeOpScZ.mjs");
814
+ const { openSqliteDatabase } = await import("./runner-CTk21HrO.mjs");
815
815
  const { databasePath: dbPath } = getLocalD1Target(root);
816
816
  if (!existsSync(dbPath)) {
817
817
  log.error("No local database found. Start the dev server first.");
@@ -879,7 +879,7 @@ async function runMigrate(root, dialect, remote) {
879
879
  appliedNames = await getPgAppliedMigrations(databaseUrl);
880
880
  applyMigrations = () => runPgMigrations(migrationsDir, databaseUrl);
881
881
  } else {
882
- const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-0zVmB1JW.mjs");
882
+ const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-CHvEg_sy.mjs");
883
883
  appliedNames = await getMySqlAppliedMigrations(databaseUrl);
884
884
  applyMigrations = () => runMySqlMigrations(migrationsDir, databaseUrl);
885
885
  }
@@ -904,7 +904,7 @@ async function runMigrate(root, dialect, remote) {
904
904
  log.info(`No migration files found in ${paths.sourceRelative("db/migrations")}/`);
905
905
  return;
906
906
  }
907
- const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
907
+ const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-CZkjFrzH.mjs");
908
908
  const binding = configuredD1Binding(root);
909
909
  const context = resolveCloudflareD1Context(root, binding);
910
910
  const remoteBefore = new Set(await readCloudflareD1Migrations(context));
@@ -924,7 +924,7 @@ async function runMigrate(root, dialect, remote) {
924
924
  log.error(`db: D1 binding ${binding} has no "migrations_dir", so Cloudflare would apply ./migrations instead of ${dir}/. Add "migrations_dir": "./${dir}" to that D1 binding in your Cloudflare config, then run the command again.`);
925
925
  process.exit(1);
926
926
  }
927
- const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-B029oHlE.mjs");
927
+ const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-DEZkUS77.mjs");
928
928
  const applySet = await checkWranglerMigrationApplySet(context.operation.configPath, parseRootWranglerConfig(context.operation.configPath), binding, context.migrationsDir, rawMigrations, paths.sourceRelative("db/migrations"));
929
929
  if (!applySet.ok) {
930
930
  log.error(applySet.reason);
@@ -1005,7 +1005,7 @@ async function runMigrate(root, dialect, remote) {
1005
1005
  return;
1006
1006
  }
1007
1007
  if (dialect === "mysql") {
1008
- const { applyMySqlMigrations, readMySqlAppliedMigrations } = await import("./runner-mysql-0zVmB1JW.mjs");
1008
+ const { applyMySqlMigrations, readMySqlAppliedMigrations } = await import("./runner-mysql-CHvEg_sy.mjs");
1009
1009
  const applied = await withMySqlClient(root, async (client) => {
1010
1010
  const appliedNames = await readMySqlAppliedMigrations(client).catch(() => []);
1011
1011
  try {
@@ -1023,7 +1023,7 @@ async function runMigrate(root, dialect, remote) {
1023
1023
  }
1024
1024
  return;
1025
1025
  }
1026
- const { getAppliedMigrations, runMigrations } = await import("./runner-QMeOpScZ.mjs");
1026
+ const { getAppliedMigrations, runMigrations } = await import("./runner-CTk21HrO.mjs");
1027
1027
  const { databasePath: dbPath } = getLocalD1Target(root);
1028
1028
  try {
1029
1029
  const existingRows = await getAppliedMigrations(dbPath);
@@ -1051,7 +1051,7 @@ async function runRestore(root, dialect, { target, platform: explicitPlatform, y
1051
1051
  log.error("db: `void db restore` restores the D1 database of a direct Cloudflare deploy. After a one-off `void deploy --platform cloudflare`, run it with `--platform cloudflare`.");
1052
1052
  process.exit(1);
1053
1053
  }
1054
- const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-oLvAd9Nd.mjs");
1054
+ const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-CZkjFrzH.mjs");
1055
1055
  const binding = configuredD1Binding(root);
1056
1056
  const context = resolveCloudflareD1Context(root, binding);
1057
1057
  const database = `D1 database ${context.migrateToken} (${binding})`;
@@ -1125,7 +1125,7 @@ async function runStudio(root, dialect, remote) {
1125
1125
  await runDrizzleKitWithDatabaseUrl(root, url, dialect, "studio");
1126
1126
  return;
1127
1127
  }
1128
- const { writeDrizzleConfig } = await import("./config-BgysUhnm.mjs");
1128
+ const { writeDrizzleConfig } = await import("./config-wo2EaH0X.mjs");
1129
1129
  const { databasePath: dbPath } = getLocalD1Target(root);
1130
1130
  if (!existsSync(dbPath)) {
1131
1131
  log.error("No local database found. Start the dev server first.");
@@ -1145,8 +1145,8 @@ async function runStudio(root, dialect, remote) {
1145
1145
  }
1146
1146
  /** A direct Cloudflare deploy records its D1 or Hyperdrive id in the checked-in Cloudflare config. */
1147
1147
  async function hasDeployedCloudflareDatabase(root) {
1148
- const { readRootWranglerConfig } = await import("./wrangler-DUB3MGHV.mjs");
1149
- const { isRealD1Id, isRealHyperdriveId } = await import("./provision-DQF6Kw-6.mjs");
1148
+ const { readRootWranglerConfig } = await import("./wrangler-R3kMdJfw.mjs");
1149
+ const { isRealD1Id, isRealHyperdriveId } = await import("./provision-CMH4-8ri.mjs");
1150
1150
  const config = readRootWranglerConfig(root)?.config;
1151
1151
  const entries = (key) => {
1152
1152
  const value = config?.[key];
@@ -1357,7 +1357,7 @@ Regenerate it with \`void db generate\`, or restore it from version control.`);
1357
1357
  await rollback("db: Failed to update MySQL tracking table. File renames have been reverted.\nFix the database connection and run `void db rename-migrations` again.", err);
1358
1358
  }
1359
1359
  else {
1360
- const { openSqliteDatabase } = await import("./runner-QMeOpScZ.mjs");
1360
+ const { openSqliteDatabase } = await import("./runner-CTk21HrO.mjs");
1361
1361
  const { databasePath: dbPath } = getLocalD1Target(root);
1362
1362
  if (existsSync(dbPath)) try {
1363
1363
  const db = await openSqliteDatabase(dbPath);
@@ -1513,7 +1513,7 @@ async function runExport(root, args, dialect) {
1513
1513
  } else process.stdout.write(output);
1514
1514
  return;
1515
1515
  }
1516
- const { openSqliteDatabase } = await import("./runner-QMeOpScZ.mjs");
1516
+ const { openSqliteDatabase } = await import("./runner-CTk21HrO.mjs");
1517
1517
  const { databasePath: dbPath } = getLocalD1Target(root);
1518
1518
  if (!existsSync(dbPath)) {
1519
1519
  log.error("No local database found. Start the dev server first.", errOut);
@@ -1676,7 +1676,7 @@ async function runSeedModule(root, seed, dialect) {
1676
1676
  return;
1677
1677
  }
1678
1678
  const { drizzle } = await import("drizzle-orm/better-sqlite3");
1679
- const { openSqliteDatabase } = await import("./runner-QMeOpScZ.mjs");
1679
+ const { openSqliteDatabase } = await import("./runner-CTk21HrO.mjs");
1680
1680
  const { databasePath: dbPath } = getLocalD1Target(root);
1681
1681
  const sqlite = await openSqliteDatabase(dbPath);
1682
1682
  try {
@@ -1697,7 +1697,7 @@ async function loadSeedFunction(seedPath) {
1697
1697
  return seed;
1698
1698
  }
1699
1699
  async function loadSeedSchema(root) {
1700
- const { discoverSchema } = await import("./discover-D4mQthao.mjs");
1700
+ const { discoverSchema } = await import("./discover-1DJD4YXD.mjs");
1701
1701
  const location = discoverSchema(root, readProjectPaths(root));
1702
1702
  if (!location) return {};
1703
1703
  if (location.type === "file") {
@@ -1,5 +1,5 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { i as writeFileIfChanged } from "./project-tsconfig-Cf2NFjlM.mjs";
2
+ import { i as writeFileIfChanged } from "./project-tsconfig-nhnTWO_Y.mjs";
3
3
  // src/codegen/db-types.ts
4
4
  const DRIZZLE_OPERATORS = "sql, eq, ne, gt, gte, lt, lte, and, or, not, desc, asc, like, ilike, notLike, inArray, notInArray, isNull, isNotNull, between, notBetween, exists, notExists, count, sum, avg, min, max";
5
5
  const DIALECT_DB_TYPES = {
@@ -1,9 +1,9 @@
1
+ import { L as log, O as cancel, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
2
+ import { c as getToken } from "./auth-CCk9Seol.mjs";
3
+ import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
4
+ import { m as printSuccess, p as note, r as createSpinner } from "./output-CXJTIAtF.mjs";
1
5
  import { o as removeProjectConfig, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
2
- import { c as getToken } from "./auth-Dy8svcqQ.mjs";
3
- import { L as log, O as cancel, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
4
- import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
5
- import { m as printSuccess, p as note, r as createSpinner } from "./output-BCdLioKP.mjs";
6
- import { a as resolveProjectBySlug } from "./resolve-project-D0YNnJfm.mjs";
6
+ import { a as resolveProjectBySlug } from "./resolve-project-ClvLMTI9.mjs";
7
7
  // src/cli/delete.ts
8
8
  async function runDeleteCommand(root, slug, options) {
9
9
  console.log();