void 1.6.2 → 1.8.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 (361) hide show
  1. package/dist/{account-cmd-D903EEWQ.mjs → account-cmd-CZKntRH2.mjs} +6 -6
  2. package/dist/action-key-ByZ6DDld.mjs +64 -0
  3. package/dist/{application-analysis-DlUG-XNT.mjs → application-analysis-CyTagJQM.mjs} +31 -10
  4. package/dist/{application-routing-GCBSwXA9.mjs → application-routing-BLrMVpqi.mjs} +2 -1
  5. package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
  6. package/dist/{auth-CH4PLAX1.d.mts → auth-Bk9VGtQW.d.mts} +9 -2
  7. package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
  8. package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
  9. package/dist/{auth-link-g9J7MSmP.mjs → auth-link-BOaQWMKw.mjs} +6 -6
  10. package/dist/{auth-router-DMZbG9Qn.mjs → auth-router-D0-VcmDs.mjs} +3 -3
  11. package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-CQFdtguU.d.mts} +2 -2
  12. package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
  13. package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
  14. package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-JTsXXf2F.mjs} +5 -5
  15. package/dist/{cache-2khBO1MR.mjs → cache-D0m3Z_Xf.mjs} +5 -5
  16. package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-Ce6Os4fa.mjs} +4 -4
  17. package/dist/{cf-build-output-B1C8U83u.mjs → cf-build-output-CWNOH-KA.mjs} +2 -1
  18. package/dist/cf-build-output-DUZnAeZ1.mjs +1 -0
  19. package/dist/{cf-config-migrate-Dy8MrKgF.mjs → cf-config-migrate-Bb-EdAQq.mjs} +5 -1
  20. package/dist/cli/cli.mjs +68 -1868
  21. package/dist/cli/cloudflare-operation-process.mjs +101 -26
  22. package/dist/cli/env-schema-probe.d.mts +1 -1
  23. package/dist/cli/env-schema-probe.mjs +3 -3
  24. package/dist/cli-main-rkrJy2Ge.mjs +1889 -0
  25. package/dist/client-D1Vz1Zep.mjs +1 -0
  26. package/dist/{client-CoxPEhJq.mjs → client-SZPyj4X_.mjs} +10 -4
  27. package/dist/{cloudflare-auth-CuS42-9A.mjs → cloudflare-auth-7jTqy9Bx.mjs} +1 -1
  28. package/dist/{cloudflare-cmd-DTF19-j-.mjs → cloudflare-cmd-ChPLQcTP.mjs} +5 -5
  29. package/dist/{cloudflare-config-Ce8j5S7V.mjs → cloudflare-config-DtOGAbeB.mjs} +2 -2
  30. package/dist/{cloudflare-connect-BN4dHp8i.mjs → cloudflare-connect-Co93VYTo.mjs} +3 -3
  31. package/dist/{cloudflare-operations-DrZGzQap.mjs → cloudflare-operations-CXaDKYj2.mjs} +6 -6
  32. package/dist/{cloudflare-operations-laxRA8HN.mjs → cloudflare-operations-DATekLwI.mjs} +1 -1
  33. package/dist/{cloudflare-process-D9aC-jXr.mjs → cloudflare-process-DmTxZR-N.mjs} +2 -2
  34. package/dist/{config-hL-S-Y9D.mjs → config-5oSQhZNj.mjs} +3 -1
  35. package/dist/{config-CPxJmt4M.d.mts → config-CTlUaXWZ.d.mts} +3 -1
  36. package/dist/{config-CNDjO-15.mjs → config-DcqUBGCb.mjs} +1 -1
  37. package/dist/config-entry.d.mts +1 -1
  38. package/dist/{config-DMR0i3Z2.mjs → config-wo2EaH0X.mjs} +1 -1
  39. package/dist/{connect-DHepM7Xs.mjs → connect-DlvXt1JR.mjs} +7 -7
  40. package/dist/{create-project-Bq0M8MtO.mjs → create-project-CC_7hmYJ.mjs} +5 -5
  41. package/dist/{create-project-BiMmR5wA.mjs → create-project-DzY05xqC.mjs} +1 -1
  42. package/dist/{db-CqfT6lhV.mjs → db-FhyYGcJJ.mjs} +39 -39
  43. package/dist/{db-types-DRmxBJ2K.mjs → db-types-sVwEpyPR.mjs} +4 -2
  44. package/dist/{delete-CY4L8fi2.mjs → delete-CModjyOC.mjs} +5 -5
  45. package/dist/{deploy-La_Ly8g_.mjs → deploy-Cz9TEzZy.mjs} +502 -110
  46. package/dist/deploy-DMieisRu.mjs +2 -0
  47. package/dist/{deploy-managed-static-CESLfKHN.mjs → deploy-managed-static-DlxxXkAM.mjs} +16 -16
  48. package/dist/{deploy-transport-DcI6LXhY.mjs → deploy-transport-DUvm6-CR.mjs} +3 -3
  49. package/dist/deploy.mjs +8 -8
  50. package/dist/{dispatch-DM4Xdd2l.mjs → dispatch-CCiaAnSK.mjs} +7 -7
  51. package/dist/{dist-eV_Ep60B.mjs → dist-Cp4b1_T9.mjs} +1 -1
  52. package/dist/{dist-D23AAMxT.mjs → dist-STQXl8ck.mjs} +86 -138
  53. package/dist/{domain-BD1KOQL3.mjs → domain-DvdZPA50.mjs} +6 -6
  54. package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
  55. package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
  56. package/dist/{email-XAspopcj.mjs → email-ASpNrfLd.mjs} +10 -10
  57. package/dist/{email-cloudflare-RxIQoPc9.mjs → email-cloudflare-kqoN9jst.mjs} +25 -16
  58. package/dist/{entry-DFBca6aS.mjs → entry-BweGTCgj.mjs} +1 -1
  59. package/dist/{env-DrYUh55t.mjs → env-Bpkg3G5i.mjs} +7 -7
  60. package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
  61. package/dist/env-mask-D31Qztl9.mjs +46 -0
  62. package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
  63. package/dist/{env-validation-Del3C8AY.mjs → env-validation-BpCCQE_6.mjs} +6 -6
  64. package/dist/{env-validation-Bosj7EVg.mjs → env-validation-CN386Utu.mjs} +1 -1
  65. package/dist/{fetch-C8yhLoF3.mjs → fetch-CAIVkLvW.mjs} +1 -1
  66. package/dist/{fetch-B-gLGYVl.d.mts → fetch-CbI6lNnk.d.mts} +6 -4
  67. package/dist/{fetch-stream-DafNtVJC.mjs → fetch-stream-6Op0qlLd.mjs} +1 -1
  68. package/dist/{fetch-stream-DuwxWmBM.d.mts → fetch-stream-DoED9atq.d.mts} +1 -1
  69. package/dist/gen-M5fNQKfH.mjs +1 -0
  70. package/dist/{gen-DSkScMIz.mjs → gen-upKJChvd.mjs} +7 -7
  71. package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-BvMOlb8Z.mjs} +6 -6
  72. package/dist/{handler-BR6Tvjkp.d.mts → handler-BO7Od-z9.d.mts} +22 -8
  73. package/dist/{handler-DnI_au0K.mjs → handler-C9SnmeW1.mjs} +5 -4
  74. package/dist/{headers--cbz6iZ8.mjs → headers-COGEDoMN.mjs} +11 -2
  75. package/dist/help-CItQVDL4.mjs +1 -0
  76. package/dist/{help-1OCFDsRr.mjs → help-TPCjTu6e.mjs} +7 -3
  77. package/dist/index.d.mts +5 -5
  78. package/dist/index.mjs +379 -265
  79. package/dist/{info-BpxpsX0B.mjs → info-EsDyihwf.mjs} +4 -4
  80. package/dist/{init-DpVXO5S-.mjs → init-a4lVagrb.mjs} +33 -32
  81. package/dist/{link-DAXOT-G_.mjs → link-CE55DDzS.mjs} +6 -6
  82. package/dist/{list-BFQ0gcML.mjs → list-CxRthQks.mjs} +7 -7
  83. package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
  84. package/dist/{live-0xrcVpyq.d.mts → live-Kc55iuOQ.d.mts} +2 -2
  85. package/dist/{local-d1-CLVPP6v7.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
  86. package/dist/{login-RIw7ffPe.mjs → login-AfcSGSmE.mjs} +5 -5
  87. package/dist/login-ZHsAm-I6.mjs +1 -0
  88. package/dist/{logs-B2OeLS4X.mjs → logs-BgRJuvb1.mjs} +6 -6
  89. package/dist/{migrate-DiI50Chz.mjs → migrate-BNAh6m_C.mjs} +5 -5
  90. package/dist/migrate-BflbbZQK.mjs +1 -0
  91. package/dist/nitro.d.mts +5 -0
  92. package/dist/nitro.mjs +27 -8
  93. package/dist/{node-Bc-dBAGL.mjs → node-CXFUw0Uz.mjs} +5 -5
  94. package/dist/{operator-args-D79WQP70.mjs → operator-args-DGTuCdSE.mjs} +9 -1
  95. package/dist/{operator-auth-CfDcmzpo.mjs → operator-auth-CD3pap65.mjs} +1 -1
  96. package/dist/{operator-client-BIY4-N_6.mjs → operator-client-XvXTkea6.mjs} +2 -2
  97. package/dist/{operator-cmd-CEI5Aaza.mjs → operator-cmd-C-viB7Si.mjs} +7 -7
  98. package/dist/operator-cmd-D6qNuJ_z.mjs +1 -0
  99. package/dist/output-BsdnNpxa.mjs +1 -0
  100. package/dist/{output-BCdLioKP.mjs → output-DNVILSz2.mjs} +1 -1
  101. package/dist/pages/client.d.mts +43 -15
  102. package/dist/pages/client.mjs +165 -80
  103. package/dist/pages/index.d.mts +6 -4
  104. package/dist/pages/index.mjs +6 -6
  105. package/dist/pages/islands-plugin.d.mts +1 -1
  106. package/dist/pages/islands-plugin.mjs +13 -2
  107. package/dist/pages/protocol.d.mts +2 -2
  108. package/dist/pages/protocol.mjs +1 -1
  109. package/dist/pages/serialize.d.mts +2 -2
  110. package/dist/pages/serialize.mjs +1 -1
  111. package/dist/{platform-args-Cx1M-7bq.mjs → platform-args-CiYeZmc5.mjs} +1 -1
  112. package/dist/platform-args-DJvF1-kl.mjs +1 -0
  113. package/dist/{platform-auth-config-ZrYm8KVs.mjs → platform-auth-config-Dt2qEc2w.mjs} +10 -10
  114. package/dist/{platform-auth-protection-t6mdY4nn.mjs → platform-auth-protection-B7TaF-PZ.mjs} +8 -8
  115. package/dist/{platform-auth-recovery-XeBmPTXx.mjs → platform-auth-recovery-suXSteJ6.mjs} +7 -7
  116. package/dist/{platform-cmd-EXehmSYA.mjs → platform-cmd-9rvYBBtr.mjs} +9 -9
  117. package/dist/{platform-cmd-C7BevP9b.mjs → platform-cmd-DuAsIxbU.mjs} +1 -1
  118. package/dist/{platform-domain-DR263ObA.mjs → platform-domain-DhH_vDr6.mjs} +5 -5
  119. package/dist/{platform-lifecycle-CN4aXldN.mjs → platform-lifecycle-3uI-E2bF.mjs} +1 -1
  120. package/dist/{platform-lifecycle-BvU_TNji.mjs → platform-lifecycle-CXmXe2xt.mjs} +17 -17
  121. package/dist/{platform-management-_UE1_GM8.mjs → platform-management-BBCHfwji.mjs} +4 -4
  122. package/dist/{platform-management-yS2sve3V.mjs → platform-management-PdrgDQTe.mjs} +1 -1
  123. package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-BGwkXYDM.mjs} +5 -5
  124. package/dist/{platform-recovery-CPVk9-Q4.mjs → platform-recovery-C8NxXGRR.mjs} +3 -3
  125. package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-Casiffqj.mjs} +3 -3
  126. package/dist/{plugin-inference-bQ1Be840.mjs → plugin-inference-CErfTgEx.mjs} +4 -4
  127. package/dist/{prepare-D8L9AQbw.mjs → prepare-BDKWZgfL.mjs} +12 -9
  128. package/dist/{prepare-BkRhDnxw.mjs → prepare-BLrzXjIl.mjs} +3 -3
  129. package/dist/prepare-a1_5usAn.mjs +1 -0
  130. package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BAdYhivW.mjs} +44 -15
  131. package/dist/prerender-render.d.mts +12 -2
  132. package/dist/prerender-render.mjs +1 -1
  133. package/dist/{project-cmd-DH3CuFC6.mjs → project-cmd-DzGvxXKH.mjs} +18 -18
  134. package/dist/{project-team-MjT5K4rQ.mjs → project-team-C5XtHbZk.mjs} +5 -5
  135. package/dist/{project-token-BKHGwY3k.mjs → project-token-B4D5yhHQ.mjs} +5 -5
  136. package/dist/{project-tsconfig-BMveFb4b.mjs → project-tsconfig-nhnTWO_Y.mjs} +3 -1
  137. package/dist/{project-zero-trust-Bzdd05-h.mjs → project-zero-trust--0LvktDg.mjs} +5 -5
  138. package/dist/{protocol-COyySMki.mjs → protocol-B1Tvc9-x.mjs} +232 -74
  139. package/dist/{protocol-CkwjASep.d.mts → protocol-Cg2I81NA.d.mts} +13 -4
  140. package/dist/{provision-B0HqoRuI.mjs → provision-C3yiHdld.mjs} +2 -2
  141. package/dist/{provision-CYhZR_Mn.mjs → provision-CAcrauvr.mjs} +1 -1
  142. package/dist/{requests-daJmVpjk.mjs → requests-CrRiTgQA.mjs} +4 -4
  143. package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
  144. package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
  145. package/dist/{rollback-AVwiMAkk.mjs → rollback-BsmQyj-Q.mjs} +7 -7
  146. package/dist/{route-types-e69EqY88.mjs → route-types-CgtlFCDz.mjs} +268 -14
  147. package/dist/{route-url-C_YIH_zO.d.mts → route-url-C3JwYrER.d.mts} +8 -3
  148. package/dist/{route-url-CRDF-I0I.mjs → route-url-CfCR4oMj.mjs} +4 -3
  149. package/dist/routes-stub.d.mts +14 -4
  150. package/dist/routes-stub.mjs +1 -1
  151. package/dist/{runner-QMeOpScZ.mjs → runner-CTk21HrO.mjs} +1 -1
  152. package/dist/{runner-mysql-0zVmB1JW.mjs → runner-mysql-CHvEg_sy.mjs} +1 -1
  153. package/dist/runtime/ai.mjs +1 -1
  154. package/dist/runtime/auth.d.mts +2 -2
  155. package/dist/runtime/auth.mjs +1 -1
  156. package/dist/runtime/better-auth-mysql.d.mts +1 -1
  157. package/dist/runtime/better-auth-mysql.mjs +1 -1
  158. package/dist/runtime/better-auth-pg.d.mts +1 -1
  159. package/dist/runtime/better-auth-pg.mjs +1 -1
  160. package/dist/runtime/better-auth.d.mts +1 -1
  161. package/dist/runtime/better-auth.mjs +1 -1
  162. package/dist/runtime/client-react.d.mts +3 -3
  163. package/dist/runtime/client-react.mjs +2 -2
  164. package/dist/runtime/client-solid.d.mts +3 -3
  165. package/dist/runtime/client-solid.mjs +2 -2
  166. package/dist/runtime/client-svelte.d.mts +3 -3
  167. package/dist/runtime/client-svelte.mjs +2 -2
  168. package/dist/runtime/client-vue.d.mts +3 -3
  169. package/dist/runtime/client-vue.mjs +2 -2
  170. package/dist/runtime/client.d.mts +3 -3
  171. package/dist/runtime/client.mjs +2 -2
  172. package/dist/runtime/db.d.mts +6 -3
  173. package/dist/runtime/db.mjs +2 -2
  174. package/dist/runtime/email/testing.mjs +2 -2
  175. package/dist/runtime/email.mjs +3 -3
  176. package/dist/runtime/env-public.d.mts +1 -1
  177. package/dist/runtime/env-public.mjs +55 -85
  178. package/dist/runtime/fetch-server.d.mts +1 -1
  179. package/dist/runtime/fetch-server.mjs +1 -1
  180. package/dist/runtime/fetch-stream.d.mts +2 -2
  181. package/dist/runtime/fetch-stream.mjs +1 -1
  182. package/dist/runtime/fetch.d.mts +1 -1
  183. package/dist/runtime/fetch.mjs +1 -1
  184. package/dist/runtime/handler.d.mts +1 -1
  185. package/dist/runtime/handler.mjs +1 -1
  186. package/dist/runtime/isr.d.mts +3 -1
  187. package/dist/runtime/live-client.d.mts +11 -2
  188. package/dist/runtime/live-client.mjs +8 -0
  189. package/dist/runtime/live-server.mjs +1 -1
  190. package/dist/runtime/live.d.mts +1 -1
  191. package/dist/runtime/live.mjs +1 -1
  192. package/dist/runtime/log.mjs +1 -1
  193. package/dist/runtime/remote/index.mjs +1 -1
  194. package/dist/runtime/route-url.d.mts +2 -2
  195. package/dist/runtime/route-url.mjs +1 -1
  196. package/dist/runtime/routing.d.mts +21 -5
  197. package/dist/runtime/routing.mjs +251 -29
  198. package/dist/runtime/sandbox.mjs +1 -1
  199. package/dist/runtime/sse-client.d.mts +9 -1
  200. package/dist/runtime/sse-client.mjs +7 -0
  201. package/dist/runtime/validator.d.mts +1 -1
  202. package/dist/runtime/validator.mjs +1 -1
  203. package/dist/runtime/ws-server.d.mts +3 -3
  204. package/dist/runtime/ws-server.mjs +1 -1
  205. package/dist/runtime/ws.d.mts +1 -1
  206. package/dist/runtime/ws.mjs +1 -1
  207. package/dist/{scan-F0psanp7.mjs → scan-BJ3bj6aP.mjs} +236 -32
  208. package/dist/{secret-szNdoeKa.mjs → secret-D0g5oBsP.mjs} +7 -7
  209. package/dist/serialize-DN-envGQ.d.mts +18 -0
  210. package/dist/serialize-Pf-CIQK_.mjs +39 -0
  211. package/dist/{skills-D393E4lB.mjs → skills-CoBB9_Ao.mjs} +1 -1
  212. package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
  213. package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
  214. package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
  215. package/dist/url-CuoEn0o3.mjs +43 -0
  216. package/dist/validator-8-NZs2Xr.mjs +168 -0
  217. package/dist/{version-metadata-BC3LK7Y-.mjs → version-metadata-eUd6Ar_U.mjs} +1 -1
  218. package/dist/wrangler-R3kMdJfw.mjs +1 -0
  219. package/dist/{wrangler-Gn4EoY4-.mjs → wrangler-k40T7XTQ.mjs} +2 -2
  220. package/dist/{wrapper-B9W9RE8z.mjs → wrapper-CVMZarxf.mjs} +11 -8
  221. package/dist/{ws-Dmjg5NH2.d.mts → ws--U7QicYy.d.mts} +2 -2
  222. package/docs/guide/ai.md +3 -0
  223. package/docs/guide/app-types.md +1 -0
  224. package/docs/guide/auth.md +63 -0
  225. package/docs/guide/database/d1.md +16 -1
  226. package/docs/guide/database/mysql.md +1 -0
  227. package/docs/guide/database/postgresql.md +1 -0
  228. package/docs/guide/database.md +34 -0
  229. package/docs/guide/deployment.md +9 -0
  230. package/docs/guide/durable-state.md +1 -0
  231. package/docs/guide/edge/headers.md +1 -0
  232. package/docs/guide/edge/prerendering.md +10 -4
  233. package/docs/guide/edge/redirects.md +1 -0
  234. package/docs/guide/edge/revalidation.md +6 -0
  235. package/docs/guide/edge/rewrites.md +1 -0
  236. package/docs/guide/edge/static-assets.md +1 -0
  237. package/docs/guide/email/domains.md +1 -0
  238. package/docs/guide/email/receiving.md +3 -2
  239. package/docs/guide/email/sending.md +3 -2
  240. package/docs/guide/email.md +1 -0
  241. package/docs/guide/env-vars.md +4 -0
  242. package/docs/guide/index.md +1 -0
  243. package/docs/guide/jobs.md +1 -0
  244. package/docs/guide/kv.md +1 -0
  245. package/docs/guide/live.md +3 -0
  246. package/docs/guide/pages-routing/actions-and-forms.md +51 -28
  247. package/docs/guide/pages-routing/errors.md +101 -0
  248. package/docs/guide/pages-routing/head.md +4 -1
  249. package/docs/guide/pages-routing/islands.md +2 -1
  250. package/docs/guide/pages-routing/layouts.md +3 -0
  251. package/docs/guide/pages-routing/loaders.md +3 -0
  252. package/docs/guide/pages-routing/markdown.md +3 -3
  253. package/docs/guide/pages-routing/overview.md +142 -10
  254. package/docs/guide/pages-routing/view-transitions.md +1 -0
  255. package/docs/guide/platform/administration/access.md +1 -0
  256. package/docs/guide/platform/administration/connected-apps.md +4 -0
  257. package/docs/guide/platform/administration/email.md +1 -0
  258. package/docs/guide/platform/administration/operations.md +1 -0
  259. package/docs/guide/platform/administration/plans.md +1 -0
  260. package/docs/guide/platform/administration/projects.md +11 -0
  261. package/docs/guide/platform/administration/zero-trust.md +1 -0
  262. package/docs/guide/platform/development/local.md +1 -0
  263. package/docs/guide/platform/development/runtime.md +1 -0
  264. package/docs/guide/platform/development/schema-ci.md +1 -0
  265. package/docs/guide/platform/installation/ci.md +1 -0
  266. package/docs/guide/platform/installation/credentials.md +1 -0
  267. package/docs/guide/platform/installation/domains.md +1 -0
  268. package/docs/guide/platform/installation/first-deployment.md +1 -0
  269. package/docs/guide/platform/installation/maintenance.md +1 -0
  270. package/docs/guide/platform/installation/prerequisites.md +1 -0
  271. package/docs/guide/platform/installation/setup.md +1 -0
  272. package/docs/guide/platform/installation/uninstall.md +1 -0
  273. package/docs/guide/platform-administration.md +1 -0
  274. package/docs/guide/platform-development.md +1 -0
  275. package/docs/guide/project-collaboration.md +1 -0
  276. package/docs/guide/queues.md +3 -0
  277. package/docs/guide/quickstart.md +4 -2
  278. package/docs/guide/remote-dev.md +1 -0
  279. package/docs/guide/sandboxes.md +1 -0
  280. package/docs/guide/self-hosted-platform.md +1 -0
  281. package/docs/guide/server-routing.md +1 -0
  282. package/docs/guide/sse.md +3 -0
  283. package/docs/guide/ssg.md +24 -2
  284. package/docs/guide/ssr.md +1 -0
  285. package/docs/guide/storage.md +7 -2
  286. package/docs/guide/testing.md +62 -0
  287. package/docs/guide/type-safety.md +308 -26
  288. package/docs/guide/typed-fetch.md +8 -3
  289. package/docs/guide/websockets.md +6 -5
  290. package/docs/index.md +1 -0
  291. package/docs/integrations/agents.md +1 -0
  292. package/docs/integrations/cloudflare.md +11 -10
  293. package/docs/integrations/frameworks/analog.md +1 -0
  294. package/docs/integrations/frameworks/astro.md +1 -0
  295. package/docs/integrations/frameworks/nuxt.md +3 -0
  296. package/docs/integrations/frameworks/overview.md +3 -0
  297. package/docs/integrations/frameworks/react-router.md +1 -0
  298. package/docs/integrations/frameworks/sveltekit.md +1 -0
  299. package/docs/integrations/frameworks/tanstack-start.md +1 -0
  300. package/docs/integrations/hono.md +1 -0
  301. package/docs/integrations/nodejs-bun-deno.md +66 -0
  302. package/docs/reference/api/auth.md +20 -0
  303. package/docs/reference/api/client.md +7 -4
  304. package/docs/reference/api/database.md +24 -1
  305. package/docs/reference/api/deploy.md +4 -0
  306. package/docs/reference/api/durable.md +1 -0
  307. package/docs/reference/api/env.md +1 -0
  308. package/docs/reference/api/handlers.md +4 -1
  309. package/docs/reference/api/pages.md +30 -12
  310. package/docs/reference/api/plugin.md +1 -0
  311. package/docs/reference/api/resources.md +4 -1
  312. package/docs/reference/api/rewrites.md +18 -5
  313. package/docs/reference/api/types.md +10 -2
  314. package/docs/reference/api.md +1 -0
  315. package/docs/reference/cli/auth.md +1 -0
  316. package/docs/reference/cli/database.md +3 -0
  317. package/docs/reference/cli/deploy.md +18 -11
  318. package/docs/reference/cli/domains.md +1 -0
  319. package/docs/reference/cli/email.md +1 -0
  320. package/docs/reference/cli/generate.md +1 -0
  321. package/docs/reference/cli/github.md +1 -0
  322. package/docs/reference/cli/platform-config.md +1 -0
  323. package/docs/reference/cli/platform-email.md +1 -0
  324. package/docs/reference/cli/platform-installation.md +1 -0
  325. package/docs/reference/cli/platform-operations.md +1 -0
  326. package/docs/reference/cli/platform-users.md +23 -0
  327. package/docs/reference/cli/platform-zero-trust.md +1 -0
  328. package/docs/reference/cli/platform.md +1 -0
  329. package/docs/reference/cli/project.md +1 -0
  330. package/docs/reference/cli/secrets.md +1 -0
  331. package/docs/reference/cli/setup.md +1 -0
  332. package/docs/reference/cli.md +6 -0
  333. package/docs/reference/config.md +25 -2
  334. package/docs/reference/resource-inference.md +1 -0
  335. package/docs/reference/structure.md +1 -0
  336. package/package.json +27 -25
  337. package/schema.json +4 -0
  338. package/skills/void/SKILL.md +7 -0
  339. package/dist/action-key-XtKKbbsi.mjs +0 -25
  340. package/dist/cf-build-output-CmDOcA7K.mjs +0 -1
  341. package/dist/client-CEtr5UOR.mjs +0 -1
  342. package/dist/deploy-DMhOyebt.mjs +0 -2
  343. package/dist/gen-BbT1Ku1P.mjs +0 -1
  344. package/dist/help-Ba8Dq5-r.mjs +0 -1
  345. package/dist/login-BX2gzHUt.mjs +0 -1
  346. package/dist/migrate-CUGMGaIM.mjs +0 -1
  347. package/dist/operator-cmd-oTT2MA9G.mjs +0 -1
  348. package/dist/output-E6gecbbV.mjs +0 -1
  349. package/dist/platform-args-C7XUw9mw.mjs +0 -1
  350. package/dist/prepare-CZRVGNld.mjs +0 -1
  351. package/dist/resolve-project-CgfjtOwz.mjs +0 -1
  352. package/dist/serialize-DUuYuaY3.mjs +0 -29
  353. package/dist/serialize-I4EmS-Wf.d.mts +0 -16
  354. package/dist/validator-CTfmzZYb.mjs +0 -69
  355. package/dist/wrangler-CQ5c-MtJ.mjs +0 -1
  356. package/dist/{cf-access-BmBT2h8_.mjs → cf-access-Dnyw8KFY.mjs} +1 -1
  357. package/dist/{config-s6TkpSat.mjs → config-eeDzKBS9.mjs} +1 -1
  358. package/dist/{env-types-Bd8DkQhl.mjs → env-types-Dz9qkiOn.mjs} +1 -1
  359. package/dist/{inbound-CdO-qY0w.mjs → inbound-C2H6Dzz1.mjs} +2 -2
  360. package/dist/{runner-5MCSimKx.mjs → runner-CMZb7jNU.mjs} +1 -1
  361. package/dist/{runner-mysql-Bdmsp_x4.mjs → runner-mysql-BXfcQQj3.mjs} +1 -1
@@ -0,0 +1,2 @@
1
+ import "./deploy-transport-DUvm6-CR.mjs";
2
+ export { i as checkWranglerMigrationApplySet, t as parseRootWranglerConfig, r as runDeploy } from "./deploy-Cz9TEzZy.mjs";
@@ -1,29 +1,29 @@
1
1
  import { a as join, c as resolve, n as dirname, r as extname, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { h as needsApplicationDatabase } from "./plugin-inference-bQ1Be840.mjs";
2
+ import { h as needsApplicationDatabase } from "./plugin-inference-CErfTgEx.mjs";
3
3
  import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
4
4
  import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
5
- import { u as isNodeTarget } from "./config-hL-S-Y9D.mjs";
5
+ import { u as isNodeTarget } from "./config-5oSQhZNj.mjs";
6
6
  import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
7
- import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers--cbz6iZ8.mjs";
7
+ import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers-COGEDoMN.mjs";
8
8
  import { s as shouldLinkDeployProject, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
9
- import { E as resolveLiveBindingConfig, O as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, v as readExistingLiveBindingConfig } from "./wrangler-Gn4EoY4-.mjs";
9
+ import { E as resolveLiveBindingConfig, O as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, v as readExistingLiveBindingConfig } from "./wrangler-k40T7XTQ.mjs";
10
10
  import { n as buildMigrationPlanBundle } from "./plan-BOD70XGS.mjs";
11
- import { l as getTokenSource } from "./auth-Dy8svcqQ.mjs";
12
- import { t as findEnvFile } from "./env-types-Bd8DkQhl.mjs";
11
+ import { l as getTokenSource } from "./auth-CCk9Seol.mjs";
12
+ import { t as findEnvFile } from "./env-types-Dz9qkiOn.mjs";
13
13
  import { i as collectFiles, t as collectPages } from "./isr-config-Czzb4mIq.mjs";
14
- import { a as buildEnv } from "./version-metadata-BC3LK7Y-.mjs";
15
- import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-CNDjO-15.mjs";
14
+ import { a as buildEnv } from "./version-metadata-eUd6Ar_U.mjs";
15
+ import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DcqUBGCb.mjs";
16
16
  import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
17
- import { L as log$1, N as intro, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
17
+ import { L as log$1, N as intro, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
18
18
  import { t as formatCloudflareUserMessage } from "./cloudflare-user-output-zEwuGrEJ.mjs";
19
- import { c as platformErrorMessage, i as isCliOutdatedError, n as PlatformApiError, o as isHeadersTimeoutError, s as parsePlatformErrorBody } from "./client-CoxPEhJq.mjs";
20
- import { f as import_picocolors, h as sanitizeTerminalText, m as printSuccess, o as formatCount, p as note, r as createSpinner, u as getErrorMessage } from "./output-BCdLioKP.mjs";
21
- import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-Bq0M8MtO.mjs";
22
- import { o as detectPreset, s as formatProjectCommand, u as resolveProjectCommand } from "./cloudflare-process-D9aC-jXr.mjs";
23
- import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-Del3C8AY.mjs";
24
- import { a as needsWrapper, i as generateWrapper } from "./wrapper-B9W9RE8z.mjs";
19
+ import { c as platformErrorMessage, i as isCliOutdatedError, n as PlatformApiError, o as isHeadersTimeoutError, s as parsePlatformErrorBody } from "./client-SZPyj4X_.mjs";
20
+ import { f as import_picocolors, h as sanitizeTerminalText, m as printSuccess, o as formatCount, p as note, r as createSpinner, u as getErrorMessage } from "./output-DNVILSz2.mjs";
21
+ import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-CC_7hmYJ.mjs";
22
+ import { o as detectPreset, s as formatProjectCommand, u as resolveProjectCommand } from "./cloudflare-process-DmTxZR-N.mjs";
23
+ import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-BpCCQE_6.mjs";
24
+ import { a as needsWrapper, i as generateWrapper } from "./wrapper-CVMZarxf.mjs";
25
25
  import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
26
- import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-DcI6LXhY.mjs";
26
+ import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-DUvm6-CR.mjs";
27
27
  import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync } from "node:fs";
28
28
  import { createDeployArtifact, createDeployUploadPayload } from "@void/deploy-core";
29
29
  import { createHash } from "node:crypto";
@@ -1,8 +1,8 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
2
  import { n as scanWranglerDotenvKeys } from "./dotenv-CEI8hapP.mjs";
3
- import { t as CLOUDFLARE_DEPLOY_BUILD_ENV } from "./env-CuzZZyjB.mjs";
4
- import { i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-BC3LK7Y-.mjs";
5
- import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-B0HqoRuI.mjs";
3
+ import { t as CLOUDFLARE_DEPLOY_BUILD_ENV } from "./env-UqS-21xi.mjs";
4
+ import { i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-eUd6Ar_U.mjs";
5
+ import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-C3yiHdld.mjs";
6
6
  import { readWranglerTopLevelString } from "@void/deploy-cloudflare";
7
7
  // src/cli/deploy-transport.ts
8
8
  /**
package/dist/deploy.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as join, c as resolve } from "./dist-DMYe8CZJ.mjs";
2
- import { p as readConfig, u as isNodeTarget } from "./config-hL-S-Y9D.mjs";
3
- import { o as validateSsrEntry } from "./entry-DFBca6aS.mjs";
4
- import { r as hasEmailHandlers } from "./email-BHY72ixO.mjs";
5
- import { d as hasDocumentRoutes, f as resolveAssetConfig, u as hasApiRoutes } from "./headers--cbz6iZ8.mjs";
2
+ import { t as analyzeApplication } from "./application-routing-BLrMVpqi.mjs";
3
+ import { d as hasDocumentRoutes, f as resolveAssetConfig, u as hasApiRoutes } from "./headers-COGEDoMN.mjs";
6
4
  import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName } from "./isr-config-Czzb4mIq.mjs";
7
- import { t as analyzeApplication } from "./application-routing-GCBSwXA9.mjs";
8
- import { t as prepareCfBuildOutput$1 } from "./cf-build-output-B1C8U83u.mjs";
9
- import { o as detectPreset } from "./cloudflare-process-D9aC-jXr.mjs";
10
- import { I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, R as validateDeployMigrations, a as collectAndHashAssets, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, i as buildStaticManifest, o as collectWorkerFiles, t as assembleVoidManifest, x as assertWorkerMainUploaded } from "./deploy-managed-static-CESLfKHN.mjs";
5
+ import { t as prepareCfBuildOutput$1 } from "./cf-build-output-CWNOH-KA.mjs";
6
+ import { I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, R as validateDeployMigrations, a as collectAndHashAssets, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, i as buildStaticManifest, o as collectWorkerFiles, t as assembleVoidManifest, x as assertWorkerMainUploaded } from "./deploy-managed-static-DlxxXkAM.mjs";
7
+ import { o as detectPreset } from "./cloudflare-process-DmTxZR-N.mjs";
8
+ import { p as readConfig, u as isNodeTarget } from "./config-5oSQhZNj.mjs";
9
+ import { r as hasEmailHandlers } from "./email-BHY72ixO.mjs";
10
+ import { o as validateSsrEntry } from "./entry-BweGTCgj.mjs";
11
11
  import { existsSync } from "node:fs";
12
12
  import { createDeployArtifact } from "@void/deploy-core";
13
13
  // src/deploy.ts
@@ -1,11 +1,11 @@
1
1
  import { a as join, i as isAbsolute, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
2
2
  import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
3
3
  import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
4
- import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-hL-S-Y9D.mjs";
4
+ import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-5oSQhZNj.mjs";
5
5
  import { i as voidWarn } from "./log-D9hwSySP.mjs";
6
- import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV } from "./env-CuzZZyjB.mjs";
7
- import { n as ensureProjectTsconfig } from "./project-tsconfig-BMveFb4b.mjs";
8
- import { n as generateDbDts, t as DRIZZLE_OPERATORS } from "./db-types-DRmxBJ2K.mjs";
6
+ import { n as ensureProjectTsconfig } from "./project-tsconfig-nhnTWO_Y.mjs";
7
+ import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV } from "./env-UqS-21xi.mjs";
8
+ import { n as generateDbDts, t as DRIZZLE_OPERATORS } from "./db-types-sVwEpyPR.mjs";
9
9
  import { createRequire } from "node:module";
10
10
  import { existsSync, readFileSync, readdirSync } from "node:fs";
11
11
  import { normalizePath } from "vite";
@@ -229,8 +229,8 @@ export const db = new Proxy({}, {
229
229
  },
230
230
  });
231
231
 
232
- export function createDb(d1) {
233
- return drizzle(d1.withSession("first-unconstrained")${drizzleConfig});
232
+ export function createDb(d1, options) {
233
+ return drizzle(d1.withSession(options?.session ?? "first-unconstrained")${drizzleConfig});
234
234
  }
235
235
 
236
236
  function createPrimaryDb(d1) {
@@ -286,7 +286,7 @@ function drizzlePlugin(root, hasRouteTypes, dialect = "sqlite", options = {}) {
286
286
  const migrationsDir = paths.migrationsDir;
287
287
  if (!(existsSync(migrationsDir) && readdirSync(migrationsDir).some((f) => f.endsWith(".sql")))) {
288
288
  if (dialect === "sqlite") {
289
- const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-QMeOpScZ.mjs");
289
+ const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-CTk21HrO.mjs");
290
290
  if ((await getApplicationTables(getMiniflareDatabasePath(options.localD1PersistRoot ?? join(root, ".void"), options.localD1DatabaseId ?? "local")).catch(() => [])).length > 0) return;
291
291
  }
292
292
  voidWarn(`Schema found but no migrations in ${paths.sourceRelative("db/migrations")}/.\n \`void db push\` syncs the schema to your local DB without creating migration files.
@@ -1 +1 @@
1
- export { tt as isCancel, L as log, K as select, X as text } from "./dist-D23AAMxT.mjs";
1
+ export { tt as isCancel, L as log, K as select, X as text } from "./dist-STQXl8ck.mjs";
@@ -1,10 +1,10 @@
1
- import { n as __toESM, t as __commonJSMin } from "./rolldown-runtime-uD8oG6U2.mjs";
1
+ import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
2
2
  import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
3
3
  import "node:fs";
4
4
  import { randomBytes } from "node:crypto";
5
5
  import { stripVTControlCharacters, styleText } from "node:util";
6
6
  import process$1, { stdin, stdout } from "node:process";
7
- import l__default, * as l from "node:readline";
7
+ import f__default, * as f$1 from "node:readline";
8
8
  import { ReadStream } from "node:tty";
9
9
  // ../../node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js
10
10
  const getCodePointsLength$1 = (() => {
@@ -284,63 +284,53 @@ const CRLF_OR_LF$1 = /\r?\n/;
284
284
  function wrapAnsi$1(string, columns, options) {
285
285
  return String(string).normalize().split(CRLF_OR_LF$1).map((line) => exec$1(line, columns, options)).join("\n");
286
286
  }
287
- // ../../node_modules/.pnpm/@clack+core@1.5.1/node_modules/@clack/core/dist/index.mjs
288
- var import_src = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
289
- const ESC = "\x1B";
290
- const CSI = `${ESC}[`;
291
- const beep = "\x07";
292
- const cursor = {
293
- to(x, y) {
294
- if (!y) return `${CSI}${x + 1}G`;
295
- return `${CSI}${y + 1};${x + 1}H`;
296
- },
297
- move(x, y) {
298
- let ret = "";
299
- if (x < 0) ret += `${CSI}${-x}D`;
300
- else if (x > 0) ret += `${CSI}${x}C`;
301
- if (y < 0) ret += `${CSI}${-y}A`;
302
- else if (y > 0) ret += `${CSI}${y}B`;
303
- return ret;
304
- },
305
- up: (count = 1) => `${CSI}${count}A`,
306
- down: (count = 1) => `${CSI}${count}B`,
307
- forward: (count = 1) => `${CSI}${count}C`,
308
- backward: (count = 1) => `${CSI}${count}D`,
309
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
310
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
311
- left: `${CSI}G`,
312
- hide: `${CSI}?25l`,
313
- show: `${CSI}?25h`,
314
- save: `${ESC}7`,
315
- restore: `${ESC}8`
316
- };
317
- module.exports = {
318
- cursor,
319
- scroll: {
320
- up: (count = 1) => `${CSI}S`.repeat(count),
321
- down: (count = 1) => `${CSI}T`.repeat(count)
322
- },
323
- erase: {
324
- screen: `${CSI}2J`,
325
- up: (count = 1) => `${CSI}1J`.repeat(count),
326
- down: (count = 1) => `${CSI}J`.repeat(count),
327
- line: `${CSI}2K`,
328
- lineEnd: `${CSI}K`,
329
- lineStart: `${CSI}1K`,
330
- lines(count) {
331
- let clear = "";
332
- for (let i = 0; i < count; i++) clear += this.line + (i < count - 1 ? cursor.up() : "");
333
- if (count) clear += cursor.left;
334
- return clear;
335
- }
336
- },
337
- beep
338
- };
339
- })))();
340
- function findCursor(s, o, l) {
341
- if (!l.some((r) => !r.disabled)) return s;
342
- const t = s + o, n = Math.max(l.length - 1, 0), e = t < 0 ? n : t > n ? 0 : t;
343
- return l[e]?.disabled ? findCursor(e, o < 0 ? -1 : 1, l) : e;
287
+ // ../../node_modules/.pnpm/sisteransi@2.0.0/node_modules/sisteransi/dist/index.js
288
+ const ESC$1 = "\x1B";
289
+ const CSI$1 = `${ESC$1}[`;
290
+ const cursor = {
291
+ to(x, y) {
292
+ if (!y) return `${CSI$1}${x + 1}G`;
293
+ return `${CSI$1}${y + 1};${x + 1}H`;
294
+ },
295
+ move(x, y) {
296
+ let ret = "";
297
+ if (x < 0) ret += `${CSI$1}${-x}D`;
298
+ else if (x > 0) ret += `${CSI$1}${x}C`;
299
+ if (y < 0) ret += `${CSI$1}${-y}A`;
300
+ else if (y > 0) ret += `${CSI$1}${y}B`;
301
+ return ret;
302
+ },
303
+ up: (count = 1) => `${CSI$1}${count}A`,
304
+ down: (count = 1) => `${CSI$1}${count}B`,
305
+ forward: (count = 1) => `${CSI$1}${count}C`,
306
+ backward: (count = 1) => `${CSI$1}${count}D`,
307
+ nextLine: (count = 1) => `${CSI$1}E`.repeat(count),
308
+ prevLine: (count = 1) => `${CSI$1}F`.repeat(count),
309
+ left: `${CSI$1}G`,
310
+ hide: `${CSI$1}?25l`,
311
+ show: `${CSI$1}?25h`,
312
+ save: `${ESC$1}7`,
313
+ restore: `${ESC$1}8`
314
+ };
315
+ const erase = {
316
+ screen: `${CSI$1}2J`,
317
+ up: (count = 1) => `${CSI$1}1J`.repeat(count),
318
+ down: (count = 1) => `${CSI$1}J`.repeat(count),
319
+ line: `${CSI$1}2K`,
320
+ lineEnd: `${CSI$1}K`,
321
+ lineStart: `${CSI$1}1K`,
322
+ lines(count) {
323
+ let clear = "";
324
+ for (let i = 0; i < count; i++) clear += this.line + (i < count - 1 ? cursor.up() : "");
325
+ if (count) clear += cursor.left;
326
+ return clear;
327
+ }
328
+ };
329
+ // ../../node_modules/.pnpm/@clack+core@1.6.0/node_modules/@clack/core/dist/index.mjs
330
+ function findCursor(o, s, l) {
331
+ if (!l.some((r) => !r.disabled)) return o;
332
+ const t = o + s, n = Math.max(l.length - 1, 0), e = t < 0 ? n : t > n ? 0 : t;
333
+ return l[e]?.disabled ? findCursor(e, s < 0 ? -1 : 1, l) : e;
344
334
  }
345
335
  const settings = {
346
336
  actions: /* @__PURE__ */ new Set([
@@ -442,32 +432,32 @@ function setRawMode(e, r) {
442
432
  o.isTTY && o.setRawMode(r);
443
433
  }
444
434
  function block({ input: e = stdin, output: r = stdout, overwrite: o = true, hideCursor: n = true } = {}) {
445
- const s = l.createInterface({
435
+ const s = f$1.createInterface({
446
436
  input: e,
447
437
  output: r,
448
438
  prompt: "",
449
439
  tabSize: 1
450
440
  });
451
- l.emitKeypressEvents(e, s), e instanceof ReadStream && e.isTTY && e.setRawMode(true);
452
- const t = (f, { name: a, sequence: w }) => {
441
+ f$1.emitKeypressEvents(e, s), e instanceof ReadStream && e.isTTY && e.setRawMode(true);
442
+ const t = (l, { name: i, sequence: p }) => {
453
443
  if (isActionKey([
454
- String(f),
455
- a,
456
- w
444
+ String(l),
445
+ i,
446
+ p
457
447
  ], "cancel")) {
458
- n && r.write(import_src.cursor.show), process.exit(0);
448
+ n && r.write(cursor.show), process.exit(0);
459
449
  return;
460
450
  }
461
451
  if (!o) return;
462
- const i = a === "return" ? 0 : -1, m = a === "return" ? -1 : 0;
463
- l.moveCursor(r, i, m, () => {
464
- l.clearLine(r, 1, () => {
452
+ const c = i === "return" ? 0 : -1, a = i === "return" ? -1 : 0;
453
+ f$1.moveCursor(r, c, a, () => {
454
+ f$1.clearLine(r, 1, () => {
465
455
  e.once("keypress", t);
466
456
  });
467
457
  });
468
458
  };
469
- return n && r.write(import_src.cursor.hide), e.once("keypress", t), () => {
470
- e.off("keypress", t), n && r.write(import_src.cursor.show), e instanceof ReadStream && e.isTTY && !R && e.setRawMode(false), s.terminal = false, s.close();
459
+ return n && r.write(cursor.hide), e.once("keypress", t), () => {
460
+ e.off("keypress", t), n && r.write(cursor.show), e instanceof ReadStream && e.isTTY && !R && e.setRawMode(false), s.terminal = false, s.close();
471
461
  };
472
462
  }
473
463
  const getColumns = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80;
@@ -479,7 +469,7 @@ function runValidation(e, a) {
479
469
  }
480
470
  return e(a);
481
471
  }
482
- var y = class {
472
+ let C$1 = class C {
483
473
  input;
484
474
  output;
485
475
  _abortSignal;
@@ -557,16 +547,16 @@ var y = class {
557
547
  this.state = "cancel", this.close();
558
548
  }, { once: true });
559
549
  }
560
- this.rl = l__default.createInterface({
550
+ this.rl = f__default.createInterface({
561
551
  input: this.input,
562
552
  tabSize: 2,
563
553
  prompt: "",
564
554
  escapeCodeTimeout: 50,
565
555
  terminal: true
566
556
  }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), setRawMode(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
567
- this.output.write(import_src.cursor.show), this.output.off("resize", this.render), setRawMode(this.input, false), t(this.value);
557
+ this.output.write(cursor.show), this.output.off("resize", this.render), setRawMode(this.input, false), t(this.value);
568
558
  }), this.once("cancel", () => {
569
- this.output.write(import_src.cursor.show), this.output.off("resize", this.render), setRawMode(this.input, false), t(CANCEL_SYMBOL);
559
+ this.output.write(cursor.show), this.output.off("resize", this.render), setRawMode(this.input, false), t(CANCEL_SYMBOL);
570
560
  });
571
561
  });
572
562
  }
@@ -613,20 +603,20 @@ var y = class {
613
603
  `), setRawMode(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
614
604
  }
615
605
  restoreCursor() {
616
- const t = wrapAnsi$1(this._prevFrame, process.stdout.columns, {
606
+ const t = wrapAnsi$1(this._prevFrame, getColumns(this.output), {
617
607
  hard: true,
618
608
  trim: false
619
609
  }).split(`
620
610
  `).length - 1;
621
- this.output.write(import_src.cursor.move(-999, t * -1));
611
+ this.output.write(cursor.move(-999, t * -1));
622
612
  }
623
613
  render() {
624
- const t = wrapAnsi$1(this._render(this) ?? "", process.stdout.columns, {
614
+ const t = wrapAnsi$1(this._render(this) ?? "", getColumns(this.output), {
625
615
  hard: true,
626
616
  trim: false
627
617
  });
628
618
  if (t !== this._prevFrame) {
629
- if (this.state === "initial") this.output.write(import_src.cursor.hide);
619
+ if (this.state === "initial") this.output.write(cursor.hide);
630
620
  else {
631
621
  const e = diffLines(this._prevFrame, t), i = getRows(this.output);
632
622
  if (this.restoreCursor(), e) {
@@ -637,32 +627,32 @@ var y = class {
637
627
  return;
638
628
  }
639
629
  if (e.lines.length === 1) {
640
- this.output.write(import_src.cursor.move(0, n - r)), this.output.write(import_src.erase.lines(1));
630
+ this.output.write(cursor.move(0, n - r)), this.output.write(erase.lines(1));
641
631
  const o = t.split(`
642
632
  `);
643
- this.output.write(o[n]), this._prevFrame = t, this.output.write(import_src.cursor.move(0, o.length - n - 1));
633
+ this.output.write(o[n]), this._prevFrame = t, this.output.write(cursor.move(0, o.length - n - 1));
644
634
  return;
645
635
  } else if (e.lines.length > 1) {
646
636
  if (s < r) n = s;
647
637
  else {
648
638
  const h = n - r;
649
- h > 0 && this.output.write(import_src.cursor.move(0, h));
639
+ h > 0 && this.output.write(cursor.move(0, h));
650
640
  }
651
- this.output.write(import_src.erase.down());
652
- const f = t.split(`
641
+ this.output.write(erase.down());
642
+ const m = t.split(`
653
643
  `).slice(n);
654
- this.output.write(f.join(`
644
+ this.output.write(m.join(`
655
645
  `)), this._prevFrame = t;
656
646
  return;
657
647
  }
658
648
  }
659
- this.output.write(import_src.erase.down());
649
+ this.output.write(erase.down());
660
650
  }
661
651
  this.output.write(t), this.state === "initial" && (this.state = "active"), this._prevFrame = t;
662
652
  }
663
653
  }
664
654
  };
665
- var r = class extends y {
655
+ var r = class extends C$1 {
666
656
  get cursor() {
667
657
  return this.value ? 0 : 1;
668
658
  }
@@ -673,13 +663,13 @@ var r = class extends y {
673
663
  super(t, false), this.value = !!t.initialValue, this.on("userInput", () => {
674
664
  this.value = this._value;
675
665
  }), this.on("confirm", (i) => {
676
- this.output.write(import_src.cursor.move(0, -1)), this.value = i, this.state = "submit", this.close();
666
+ this.output.write(cursor.move(0, -1)), this.value = i, this.state = "submit", this.close();
677
667
  }), this.on("cursor", () => {
678
668
  this.value = !this.value;
679
669
  });
680
670
  }
681
671
  };
682
- var a = class extends y {
672
+ var a = class extends C$1 {
683
673
  options;
684
674
  cursor = 0;
685
675
  get _value() {
@@ -706,8 +696,8 @@ var a = class extends y {
706
696
  constructor(e) {
707
697
  super(e, false), this.options = e.options, this.value = [...e.initialValues ?? []];
708
698
  const i = Math.max(this.options.findIndex(({ value: t }) => t === e.cursorAt), 0);
709
- this.cursor = this.options[i]?.disabled ? findCursor(i, 1, this.options) : i, this.on("key", (t, l) => {
710
- l.name === "a" && this.toggleAll(), l.name === "i" && this.toggleInvert();
699
+ this.cursor = this.options[i]?.disabled ? findCursor(i, 1, this.options) : i, this.on("key", (t, s) => {
700
+ s.name === "a" && this.toggleAll(), s.name === "i" && this.toggleInvert(), s.name === void 0 && t === " " && this.toggleValue();
711
701
  }), this.on("cursor", (t) => {
712
702
  switch (t) {
713
703
  case "left":
@@ -723,7 +713,7 @@ var a = class extends y {
723
713
  });
724
714
  }
725
715
  };
726
- let u$1 = class u extends y {
716
+ var u = class extends C$1 {
727
717
  _mask = "•";
728
718
  get cursor() {
729
719
  return this._cursor;
@@ -749,7 +739,7 @@ let u$1 = class u extends y {
749
739
  });
750
740
  }
751
741
  };
752
- let n$1 = class n extends y {
742
+ let n$1 = class n extends C$1 {
753
743
  options;
754
744
  cursor = 0;
755
745
  get _selectedValue() {
@@ -775,7 +765,7 @@ let n$1 = class n extends y {
775
765
  });
776
766
  }
777
767
  };
778
- var n = class extends y {
768
+ var n = class extends C$1 {
779
769
  get userInputWithCursor() {
780
770
  if (this.state === "submit") return this.userInput;
781
771
  const t = this.userInput;
@@ -797,50 +787,8 @@ var n = class extends y {
797
787
  });
798
788
  }
799
789
  };
800
- // ../../node_modules/.pnpm/sisteransi@2.0.0/node_modules/sisteransi/dist/index.js
790
+ // ../../node_modules/.pnpm/@voidzero-dev+vite-plus-prompts@1.6.0/node_modules/@voidzero-dev/vite-plus-prompts/dist/index.mjs
801
791
  var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
802
- const ESC$1 = "\x1B";
803
- const CSI$1 = `${ESC$1}[`;
804
- const cursor = {
805
- to(x, y) {
806
- if (!y) return `${CSI$1}${x + 1}G`;
807
- return `${CSI$1}${y + 1};${x + 1}H`;
808
- },
809
- move(x, y) {
810
- let ret = "";
811
- if (x < 0) ret += `${CSI$1}${-x}D`;
812
- else if (x > 0) ret += `${CSI$1}${x}C`;
813
- if (y < 0) ret += `${CSI$1}${-y}A`;
814
- else if (y > 0) ret += `${CSI$1}${y}B`;
815
- return ret;
816
- },
817
- up: (count = 1) => `${CSI$1}${count}A`,
818
- down: (count = 1) => `${CSI$1}${count}B`,
819
- forward: (count = 1) => `${CSI$1}${count}C`,
820
- backward: (count = 1) => `${CSI$1}${count}D`,
821
- nextLine: (count = 1) => `${CSI$1}E`.repeat(count),
822
- prevLine: (count = 1) => `${CSI$1}F`.repeat(count),
823
- left: `${CSI$1}G`,
824
- hide: `${CSI$1}?25l`,
825
- show: `${CSI$1}?25h`,
826
- save: `${ESC$1}7`,
827
- restore: `${ESC$1}8`
828
- };
829
- const erase = {
830
- screen: `${CSI$1}2J`,
831
- up: (count = 1) => `${CSI$1}1J`.repeat(count),
832
- down: (count = 1) => `${CSI$1}J`.repeat(count),
833
- line: `${CSI$1}2K`,
834
- lineEnd: `${CSI$1}K`,
835
- lineStart: `${CSI$1}1K`,
836
- lines(count) {
837
- let clear = "";
838
- for (let i = 0; i < count; i++) clear += this.line + (i < count - 1 ? cursor.up() : "");
839
- if (count) clear += cursor.left;
840
- return clear;
841
- }
842
- };
843
- // ../../node_modules/.pnpm/@voidzero-dev+vite-plus-prompts@1.4.0/node_modules/@voidzero-dev/vite-plus-prompts/dist/index.mjs
844
792
  const getCodePointsLength = (() => {
845
793
  const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
846
794
  return (input) => {
@@ -1624,7 +1572,7 @@ const note = (message = "", title = "", opts) => {
1624
1572
  });
1625
1573
  };
1626
1574
  const password = (opts) => {
1627
- return new u$1({
1575
+ return new u({
1628
1576
  validate: opts.validate,
1629
1577
  mask: opts.mask ?? S_PASSWORD_MASK,
1630
1578
  signal: opts.signal,
@@ -1,9 +1,9 @@
1
+ import { L as log } from "./dist-STQXl8ck.mjs";
2
+ import { c as getToken } from "./auth-CCk9Seol.mjs";
3
+ import { r as PlatformClient } from "./client-SZPyj4X_.mjs";
4
+ import { f as import_picocolors, m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
1
5
  import { n as readDeploymentPlatform } from "./project-CLwxcEdq.mjs";
2
- import { c as getToken } from "./auth-Dy8svcqQ.mjs";
3
- import { L as log } from "./dist-D23AAMxT.mjs";
4
- import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
5
- import { f as import_picocolors, m as printSuccess, p as note } from "./output-BCdLioKP.mjs";
6
- import { i as resolveCommandProjectId } from "./resolve-project-D0YNnJfm.mjs";
6
+ import { i as resolveCommandProjectId } from "./resolve-project-Da3OgCU1.mjs";
7
7
  // src/cli/domain.ts
8
8
  async function runDomainCommand(root, args) {
9
9
  const platform = readDeploymentPlatform(root);
@@ -25,7 +25,7 @@ async function runDomainCommand(root, args) {
25
25
  }
26
26
  async function runCloudflareDomainCommand(root, args) {
27
27
  if (args.projectSlug) throw new Error("domain: --project selects a Void platform project and is not used for direct Cloudflare apps.");
28
- const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-laxRA8HN.mjs");
28
+ const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-DATekLwI.mjs");
29
29
  if (args.subcommand === "add") {
30
30
  const result = await changeCloudflareDomain(root, args.hostname, "add");
31
31
  note("Cloudflare Custom Domains manages the DNS record and TLS certificate in the zone on your account.", "Cloudflare Domain");
@@ -1 +1 @@
1
- export { t as generateVoidAuthDatabaseModule, n as generateVoidAuthDrizzleSchema } from "./drizzle-lFdzSEa9.mjs";
1
+ export { t as generateVoidAuthDatabaseModule, n as generateVoidAuthDrizzleSchema } from "./drizzle-DBSpPpU1.mjs";
@@ -76,13 +76,18 @@ function usesUnboundedMySqlText(defaultModelName, defaultFieldName, field) {
76
76
  return field.type === "string" && !field.unique && !field.index && !field.references && !field.sortable && UNBOUNDED_MYSQL_AUTH_FIELDS.has(`${defaultModelName}.${defaultFieldName}`);
77
77
  }
78
78
  /**
79
- * The default of a required field when the database can store it as a literal.
79
+ * The default of a field when it can be written as a literal.
80
80
  * Function, date and JSON defaults have none.
81
81
  */
82
- function resolveFixedDefault(field) {
83
- if (field.required === false || field.type === "date" || isJsonField(field)) return {};
82
+ function resolveLiteralDefault(field) {
83
+ if (field.type === "date" || isJsonField(field)) return;
84
84
  const value = field.defaultValue;
85
- return typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value) ? { defaultValue: value } : {};
85
+ return typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value) ? value : void 0;
86
+ }
87
+ /** The default of a required field when the database can store it as a literal. */
88
+ function resolveFixedDefault(field) {
89
+ const value = field.required === false ? void 0 : resolveLiteralDefault(field);
90
+ return value === void 0 ? {} : { defaultValue: value };
86
91
  }
87
92
  function resolveReferenceFieldName(schema, model, field) {
88
93
  if (field === "id") return "id";
@@ -130,7 +135,11 @@ function createColumnBuilder(dialect, idStrategy, defaultModelName, defaultField
130
135
  default: return `text(${JSON.stringify(fieldName)})`;
131
136
  }
132
137
  }
133
- function createColumnDefinition(dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field) {
138
+ function hasBuiltInUpdateHook(options, model, field) {
139
+ if (field !== "updatedAt" || model !== "user" && model !== "session" && model !== "account" && model !== "verification") return false;
140
+ return options[model]?.additionalFields?.updatedAt === void 0 && !options.plugins?.some((plugin) => plugin.schema?.[model]?.fields.updatedAt !== void 0);
141
+ }
142
+ function createColumnDefinition(options, dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field) {
134
143
  const actualFieldName = resolveFieldName(defaultFieldName, field);
135
144
  const parts = [createColumnBuilder(dialect, idStrategy, defaultModelName, defaultFieldName, actualFieldName, field)];
136
145
  if (actualFieldName === "id") {
@@ -149,6 +158,9 @@ function createColumnDefinition(dialect, schema, idStrategy, defaultToVariable,
149
158
  }
150
159
  }
151
160
  if (field.unique && actualFieldName !== "id") parts.push(".unique()");
161
+ const literalDefault = resolveLiteralDefault(field);
162
+ if (literalDefault !== void 0) parts.push(`.$defaultFn(() => ${JSON.stringify(literalDefault)})`);
163
+ if (field.onUpdate && field.type === "date" && hasBuiltInUpdateHook(options, defaultModelName, defaultFieldName)) parts.push(".$onUpdate(() => new Date())");
152
164
  return parts.join("");
153
165
  }
154
166
  function collectCoreImports(dialect, schema, idStrategy) {
@@ -202,12 +214,12 @@ function generateVoidAuthDrizzleSchema(runtime, env = {}) {
202
214
  for (const [defaultModelName, table] of entries) {
203
215
  const variableName = defaultToVariable.get(defaultModelName);
204
216
  const fieldEntries = Object.entries(table.fields);
205
- const renderedFields = [` "id": ${createColumnDefinition(runtime.dialect, schema, idStrategy, defaultToVariable, defaultModelName, "id", {
217
+ const renderedFields = [` "id": ${createColumnDefinition(options, runtime.dialect, schema, idStrategy, defaultToVariable, defaultModelName, "id", {
206
218
  type: idStrategy === "serial" ? "number" : "string",
207
219
  required: true
208
220
  })},`, ...fieldEntries.map(([defaultFieldName, field]) => {
209
221
  const actualFieldName = resolveFieldName(defaultFieldName, field);
210
- return ` ${JSON.stringify(actualFieldName)}: ${createColumnDefinition(runtime.dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field)},`;
222
+ return ` ${JSON.stringify(actualFieldName)}: ${createColumnDefinition(options, runtime.dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field)},`;
211
223
  })];
212
224
  const indexedFields = fieldEntries.filter(([, field]) => field.index && !field.unique);
213
225
  lines.push(`export const ${variableName} = ${tableFactory}(${JSON.stringify(table.modelName)}, {`, ...renderedFields, ...indexedFields.length > 0 ? [
@@ -260,10 +272,24 @@ function resolveVoidAuthMigrationSchema(runtime, env = {}) {
260
272
  function generateVoidAuthDatabaseModule(options) {
261
273
  const schemaImport = JSON.stringify(options.schemaImportPath);
262
274
  const provider = options.dialect === "postgresql" ? "pg" : options.dialect === "mysql" ? "mysql" : "sqlite";
275
+ const database = options.dialect === "sqlite" ? [
276
+ "import { createDb as __voidCreateDb } from \"void/db\";",
277
+ "import { getRuntimeRequestResource, requireRuntimeBinding } from \"void/_env\";",
278
+ "",
279
+ "// Keep auth reads fresh without sharing a D1 session across requests.",
280
+ "const __voidAuthDbKey = {};",
281
+ `const __voidCreateAuthDb = () => __voidCreateDb(requireRuntimeBinding<D1Database>(${JSON.stringify(options.d1BindingName ?? "DB")}), { session: "first-primary" });`,
282
+ "const __voidDb = new Proxy({} as ReturnType<typeof __voidCreateDb>, {",
283
+ " get(_, prop) {",
284
+ " const db = getRuntimeRequestResource(__voidAuthDbKey, __voidCreateAuthDb, __voidCreateAuthDb);",
285
+ " return Reflect.get(db, prop);",
286
+ " },",
287
+ "});"
288
+ ].join("\n") : "import { db as __voidDb } from \"void/db\";";
263
289
  return [
264
290
  "// Auto-generated by void — do not edit",
265
291
  `import { drizzleAdapter } from ${JSON.stringify(options.drizzleAdapterPath)};`,
266
- `import { db as __voidDb } from "void/db";`,
292
+ database,
267
293
  `import { schema as __voidAuthSchema } from ${schemaImport};`,
268
294
  "",
269
295
  "// Better Auth reads Drizzle metadata while creating the adapter.",