void 0.20.3 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/README.md +2 -2
  2. package/dist/agents-gni4eqBu.mjs +111 -0
  3. package/dist/auth-3sGB0zJ1.mjs +22 -0
  4. package/dist/{auth-DPl6kck4.mjs → auth-B9_D6ygs.mjs} +6 -241
  5. package/dist/auth-CAw7zHqj.mjs +2 -0
  6. package/dist/auth-client-BWBT8HLp.mjs +6 -0
  7. package/dist/auth-client-Bawdj38n.d.mts +7 -0
  8. package/dist/auth-client-react-7GFffu8R.d.mts +7 -0
  9. package/dist/auth-client-react-CMLwT2xI.mjs +6 -0
  10. package/dist/auth-client-solid-DyTFL4cq.d.mts +7 -0
  11. package/dist/auth-client-solid-UoreJWZG.mjs +6 -0
  12. package/dist/auth-client-svelte-Cv_WvrRk.mjs +6 -0
  13. package/dist/auth-client-svelte-zetW0KIH.d.mts +7 -0
  14. package/dist/auth-client-vue-CFk7Xbv3.mjs +6 -0
  15. package/dist/auth-client-vue-bChShbQP.d.mts +7 -0
  16. package/dist/{auth-cmd-CzwquNiP.mjs → auth-cmd-g_ymMkUe.mjs} +5 -5
  17. package/dist/{auth-link-ElDTgF7j.mjs → auth-link-DFvxIyZi.mjs} +5 -5
  18. package/dist/{better-auth-shared-DSCeohOK.d.mts → better-auth-shared-BoVwA5Vm.d.mts} +1 -6
  19. package/dist/{better-auth-shared-CYw1T3k4.mjs → better-auth-shared-syGYYmnY.mjs} +1 -1
  20. package/dist/{build-cmd-BpJe6boP.mjs → build-cmd-wJAv808h.mjs} +6 -4
  21. package/dist/{cache-D98YTqeE.mjs → cache-Be0Fu5Ka.mjs} +6 -4
  22. package/dist/{cancel-deploy-CPbEQLMG.mjs → cancel-deploy-BgmyOwhe.mjs} +5 -3
  23. package/dist/cf-access-rAZxzMkL.mjs +181 -0
  24. package/dist/cf-build-output-CTdlo6Rt.mjs +520 -0
  25. package/dist/cli/cf-compat.d.mts +1 -0
  26. package/dist/cli/cf-compat.mjs +944 -0
  27. package/dist/cli/cli.mjs +60 -38
  28. package/dist/cli/env-schema-probe.mjs +3 -3
  29. package/dist/client-DAAivdid.mjs +2 -0
  30. package/dist/{client-BQBrZoCX.mjs → client-PdAJ-F0t.mjs} +6 -12
  31. package/dist/{cloudflare-auth-6M5llVPC.mjs → cloudflare-auth-BCmTc1X_.mjs} +13 -44
  32. package/dist/{cloudflare-cmd-4RPGN3KB.mjs → cloudflare-cmd-D6PrKn7o.mjs} +4 -7
  33. package/dist/{cloudflare-connect-t1UU5svD.mjs → cloudflare-connect-DloREDlc.mjs} +6 -6
  34. package/dist/cloudflare-operations-BHNJVDbN.mjs +2 -0
  35. package/dist/{cloudflare-operations-BzWnlC1_.mjs → cloudflare-operations-CPEdHYhM.mjs} +37 -39
  36. package/dist/cloudflare-user-output-Q-k0QoNQ.mjs +20 -0
  37. package/dist/collect-DAUItMDS.mjs +2 -0
  38. package/dist/collect-DXHNWHcT.mjs +48 -0
  39. package/dist/config--T87TD8T.mjs +2 -0
  40. package/dist/{config-NOG_U1aK.mjs → config-BSe70f4T.mjs} +4 -6
  41. package/dist/config-DDIFxQYx.mjs +2 -0
  42. package/dist/{config-uNGuFsI2.mjs → config-Dxr6cTXn.mjs} +22 -37
  43. package/dist/config-DywxBLQC.d.mts +185 -0
  44. package/dist/config-entry.d.mts +6 -0
  45. package/dist/config-entry.mjs +7 -0
  46. package/dist/config-uP7ZDtVZ.mjs +21 -0
  47. package/dist/config-write-y3CBI_ux.mjs +60 -0
  48. package/dist/{connect-WCQZ_u3m.mjs → connect-LnvW4HKx.mjs} +8 -6
  49. package/dist/{create-project-D0oXA090.mjs → create-project-BZBl_gQ0.mjs} +8 -23
  50. package/dist/create-project-JV9-6ICF.mjs +2 -0
  51. package/dist/database-provider-Cx525bwX.mjs +6 -0
  52. package/dist/database-provider.mjs +1 -5
  53. package/dist/{db-DJ-9qs3S.mjs → db-Mzv88E1C.mjs} +48 -44
  54. package/dist/{delete-BZ4-WaGm.mjs → delete-Ri6JemSU.mjs} +6 -4
  55. package/dist/deploy-DAH2-m_-.mjs +2 -0
  56. package/dist/{deploy-BAhhcg5q.mjs → deploy-DEsMVrCY.mjs} +796 -198
  57. package/dist/discover-BBzDZe_o.mjs +2 -0
  58. package/dist/{discover-xvfrgJeo.mjs → discover-C4O6YxVS.mjs} +3 -8
  59. package/dist/{dist-BrsS7cai.mjs → dist-4WkAWhWx.mjs} +1 -15
  60. package/dist/{dist-m40_XgNh.mjs → dist-Bn8Kodjp.mjs} +1 -1
  61. package/dist/dist-C5fND3R0.mjs +2 -0
  62. package/dist/dist-D7-nEOXi.mjs +2 -0
  63. package/dist/{output-B0cfNSx5.mjs → dist-Dn6nn2IU.mjs} +3 -926
  64. package/dist/{domain-BxAyhxXN.mjs → domain-BA37Ye7T.mjs} +7 -5
  65. package/dist/{route-types-Da-DpyUp.mjs → drizzle-Beb2Am5S.mjs} +1 -280
  66. package/dist/{email-Bj7Cvdwp.mjs → email-C5NsxrQG.mjs} +14 -12
  67. package/dist/{email-Ce6SQq-i.mjs → email-C5kaZXzJ.mjs} +2 -2
  68. package/dist/{entry-DU3oDoQ3.mjs → entry-DdRFGK0y.mjs} +2 -2
  69. package/dist/{env-DBKmK4vc.mjs → env-DX_v-Q-v.mjs} +1 -1
  70. package/dist/{env-DP_EErve.mjs → env-U_ohASB0.mjs} +9 -7
  71. package/dist/env-Yz4HcvHs.mjs +78 -0
  72. package/dist/env-helpers--wFmQ_5Q.mjs +136 -0
  73. package/dist/{env-types-BNPhro-M.mjs → env-types-CWDtqHgw.mjs} +6 -2
  74. package/dist/{env-validation-CF6KvTRf.mjs → env-validation-BsFEXps5.mjs} +19 -28
  75. package/dist/env-validation-DIDGM7h4.mjs +2 -0
  76. package/dist/fetch-CXDChK7B.mjs +18 -0
  77. package/dist/fetch-_SeGZao9.d.mts +57 -0
  78. package/dist/fetch-stream-AOByI7Ki.mjs +81 -0
  79. package/dist/fetch-stream-Bjf0hoZb.d.mts +49 -0
  80. package/dist/gen-B87rlalt.mjs +2 -0
  81. package/dist/{gen-B_wPnVTK.mjs → gen-pg-Ojg8Y.mjs} +13 -11
  82. package/dist/{generate-RTK8_kK1.mjs → generate-C0VY6RVf.mjs} +2 -2
  83. package/dist/{github-cmd-C-z_xRrQ.mjs → github-cmd-DsrkweIl.mjs} +6 -4
  84. package/dist/{handler-D1hLsObx.d.mts → handler-BXJTXd02.d.mts} +6 -1
  85. package/dist/handler-DghKr6dU.mjs +150 -0
  86. package/dist/head-D_QRR5Yd.mjs +112 -0
  87. package/dist/head-client-DzmJGN4C.mjs +90 -0
  88. package/dist/{headers-BAHwgHdW.mjs → headers-B_HBMgi0.mjs} +2 -2
  89. package/dist/help-B403BLBB.mjs +2 -0
  90. package/dist/{help-CwOX-zmI.mjs → help-sBhFH6pi.mjs} +17 -12
  91. package/dist/index.d.mts +2 -20
  92. package/dist/index.mjs +116 -60
  93. package/dist/{init-BGktCXgA.mjs → init-C--Yyj1b.mjs} +49 -50
  94. package/dist/{link-D2kbqhWb.mjs → link-BC-mNG9-.mjs} +7 -5
  95. package/dist/{list-CvkK_G7k.mjs → list-DHU1Wj6c.mjs} +7 -5
  96. package/dist/live-CB1y5IuC.mjs +411 -0
  97. package/dist/live-CKiJilLr.d.mts +105 -0
  98. package/dist/local-d1-DzykTWY8.mjs +104 -0
  99. package/dist/login-BwiopVdg.mjs +2 -0
  100. package/dist/{login-WIjNc77c.mjs → login-jKe_0QZL.mjs} +6 -11
  101. package/dist/{logs-dLUFCapG.mjs → logs-BG11f5PR.mjs} +6 -4
  102. package/dist/migrate-BV8qHiCb.mjs +285 -0
  103. package/dist/migrate-BXY3B3m7.mjs +2 -0
  104. package/dist/migration-handler-DM4clYj5.d.mts +51 -0
  105. package/dist/{neon-DHwd2zvC.mjs → neon-n74ta1Pr.mjs} +1 -1
  106. package/dist/{node-Ez5KW5rn.mjs → node-Cupyf7-s.mjs} +6 -6
  107. package/dist/{operator-auth-B3e08unv.mjs → operator-auth-BkVgJqv-.mjs} +2 -2
  108. package/dist/{operator-client-LUZnlnYk.mjs → operator-client-A0iex2yi.mjs} +2 -1
  109. package/dist/{operator-cmd-CKJ7xIRs.mjs → operator-cmd-BwAS2XZt.mjs} +6 -6
  110. package/dist/output-CCH48AMM.mjs +146 -0
  111. package/dist/{package-json-CPoWX79C.mjs → package-json-iCbMg5XF.mjs} +1 -1
  112. package/dist/pages/client.d.mts +5 -2
  113. package/dist/pages/client.mjs +5 -3
  114. package/dist/pages/head-client.mjs +1 -89
  115. package/dist/pages/head.mjs +1 -111
  116. package/dist/pages/index.d.mts +2 -3
  117. package/dist/pages/index.mjs +7 -7
  118. package/dist/pages/islands-plugin.mjs +2 -2
  119. package/dist/pages/prefetch.d.mts +2 -30
  120. package/dist/pages/prefetch.mjs +1 -89
  121. package/dist/pages/protocol.d.mts +2 -2
  122. package/dist/pages/protocol.mjs +3 -3
  123. package/dist/pages/serialize.d.mts +2 -9
  124. package/dist/pages/serialize.mjs +1 -13
  125. package/dist/plan-BEZ8VJW0.mjs +256 -0
  126. package/dist/plan-DpuOr14e.mjs +2 -0
  127. package/dist/{platform-auth-config-CdVWRRJr.mjs → platform-auth-config-C-hv-_Ok.mjs} +6 -6
  128. package/dist/{platform-auth-protection-Drl0qhrn.mjs → platform-auth-protection-DjTE5Hj-.mjs} +7 -5
  129. package/dist/{platform-auth-recovery-CmKEWpDo.mjs → platform-auth-recovery-Cr0r8TEb.mjs} +6 -5
  130. package/dist/{platform-cmd-5q_k56xS.mjs → platform-cmd-0tEh2ZtA.mjs} +8 -5
  131. package/dist/platform-cmd-DE6dw45v.mjs +2 -0
  132. package/dist/{platform-domain-4GiDlcqx.mjs → platform-domain-B_7x6Iqx.mjs} +4 -3
  133. package/dist/platform-lifecycle-Dhx9Pnub.mjs +2 -0
  134. package/dist/{platform-lifecycle-R9xAxvtG.mjs → platform-lifecycle-Di0LbhPM.mjs} +208 -37
  135. package/dist/platform-management-B9LUtMt9.mjs +2 -0
  136. package/dist/{platform-management-BfWsXHEW.mjs → platform-management-eaiaU3uM.mjs} +8 -5
  137. package/dist/{platform-recovery-CbK-I1FB.mjs → platform-recovery-BxfA8E5C.mjs} +3 -3
  138. package/dist/platform-registry-BJbgZLS1.mjs +431 -0
  139. package/dist/{plugin-inference-BDRfZngg.mjs → plugin-inference-DsvtJLll.mjs} +4 -4
  140. package/dist/prefetch-Bsc_Pb6c.mjs +90 -0
  141. package/dist/prefetch-Ce6la4EI.d.mts +31 -0
  142. package/dist/prepare-D4CkM3_v.mjs +2 -0
  143. package/dist/{prepare-blNRQvQl.mjs → prepare-_T-Haxrr.mjs} +3 -2
  144. package/dist/{prepare-CtDJjoOj.mjs → prepare-pcWcxSCh.mjs} +13 -11
  145. package/dist/prerender-render-Cf_WDE9W.mjs +111 -0
  146. package/dist/prerender-render.mjs +1 -110
  147. package/dist/{preset-lAy0B0BQ.mjs → preset-Dowh9tTt.mjs} +16 -118
  148. package/dist/project-BEBFDFLz.mjs +2 -0
  149. package/dist/project-CWNIPoXc.mjs +209 -0
  150. package/dist/{project-cmd-CTdmnzvc.mjs → project-cmd-DrnRJdep.mjs} +18 -16
  151. package/dist/{project-paths-SK8nMHPp.mjs → project-paths-CKQ-Q5JS.mjs} +47 -14
  152. package/dist/project-slug-23TpquG4.mjs +8 -0
  153. package/dist/project-slug-DofjTFd-.mjs +2 -0
  154. package/dist/{project-team-CGxsQe3_.mjs → project-team-CzRbO_kA.mjs} +6 -4
  155. package/dist/{project-token-Cirx7uwZ.mjs → project-token-Bwxjf4y6.mjs} +6 -4
  156. package/dist/{project-tsconfig-Ql2XsSQp.mjs → project-tsconfig-CwfqUnVp.mjs} +2 -2
  157. package/dist/{protocol-C-pqYJjE.d.mts → protocol-ZH3jP4a7.d.mts} +1 -1
  158. package/dist/providers-BNKRacMr.d.mts +7 -0
  159. package/dist/provision-CNgEBkVA.mjs +3 -0
  160. package/dist/{provision-CSJOjjQk.mjs → provision-Cck2m3jJ.mjs} +11 -25
  161. package/dist/queues-BWKt1Xo4.d.mts +7 -0
  162. package/dist/{requests-4Nq59hOr.mjs → requests-DwrqUQZ8.mjs} +5 -3
  163. package/dist/resolve-project-BTotl8Nn.mjs +2 -0
  164. package/dist/{resolve-project--Vxawf7z.mjs → resolve-project-Xvis70DG.mjs} +2 -8
  165. package/dist/response-Tn7rU0MV.mjs +30 -0
  166. package/dist/{rollback-Dr7u0Ljx.mjs → rollback-B4tFWmkN.mjs} +6 -4
  167. package/dist/{rolldown-runtime-rQ84J-ij.mjs → rolldown-runtime-DXIUcv95.mjs} +1 -10
  168. package/dist/route-types-Id82-veQ.mjs +280 -0
  169. package/dist/{local-d1-D2I6Ox5F.mjs → runner-BGVsGgkb.mjs} +6 -114
  170. package/dist/runner-CQs_cDSG.mjs +2 -0
  171. package/dist/runner-mysql-1o47achK.mjs +2 -0
  172. package/dist/{runner-mysql-7BPUNGmL.mjs → runner-mysql-BhwMk2Bm.mjs} +2 -9
  173. package/dist/{runner-pg-BkEza-dX.mjs → runner-pg-CJ_JeGF6.mjs} +2 -9
  174. package/dist/runner-pg-D7z01mQS.mjs +2 -0
  175. package/dist/runtime/ai.mjs +1 -1
  176. package/dist/runtime/auth-client-react.d.mts +2 -6
  177. package/dist/runtime/auth-client-react.mjs +1 -5
  178. package/dist/runtime/auth-client-solid.d.mts +2 -6
  179. package/dist/runtime/auth-client-solid.mjs +1 -5
  180. package/dist/runtime/auth-client-svelte.d.mts +2 -6
  181. package/dist/runtime/auth-client-svelte.mjs +1 -5
  182. package/dist/runtime/auth-client-vue.d.mts +2 -6
  183. package/dist/runtime/auth-client-vue.mjs +1 -5
  184. package/dist/runtime/auth-client.d.mts +2 -6
  185. package/dist/runtime/auth-client.mjs +1 -5
  186. package/dist/runtime/auth.mjs +1 -21
  187. package/dist/runtime/better-auth-mysql.d.mts +1 -1
  188. package/dist/runtime/better-auth-mysql.mjs +1 -1
  189. package/dist/runtime/better-auth-pg.d.mts +1 -1
  190. package/dist/runtime/better-auth-pg.mjs +1 -1
  191. package/dist/runtime/better-auth.d.mts +1 -1
  192. package/dist/runtime/better-auth.mjs +1 -1
  193. package/dist/runtime/client-react.d.mts +3 -3
  194. package/dist/runtime/client-react.mjs +3 -3
  195. package/dist/runtime/client-solid.d.mts +3 -3
  196. package/dist/runtime/client-solid.mjs +3 -3
  197. package/dist/runtime/client-svelte.d.mts +3 -3
  198. package/dist/runtime/client-svelte.mjs +3 -3
  199. package/dist/runtime/client-vue.d.mts +3 -3
  200. package/dist/runtime/client-vue.mjs +3 -3
  201. package/dist/runtime/client.d.mts +3 -3
  202. package/dist/runtime/client.mjs +3 -3
  203. package/dist/runtime/db.mjs +1 -1
  204. package/dist/runtime/durable.mjs +1 -1
  205. package/dist/runtime/email/testing.mjs +1 -1
  206. package/dist/runtime/env-helpers.mjs +1 -135
  207. package/dist/runtime/env-public-client.mjs +1 -1
  208. package/dist/runtime/env-public.mjs +2 -2
  209. package/dist/runtime/env.mjs +1 -77
  210. package/dist/runtime/fetch-stream.d.mts +2 -49
  211. package/dist/runtime/fetch-stream.mjs +2 -80
  212. package/dist/runtime/fetch.d.mts +2 -57
  213. package/dist/runtime/fetch.mjs +2 -17
  214. package/dist/runtime/handler.d.mts +1 -1
  215. package/dist/runtime/handler.mjs +1 -149
  216. package/dist/runtime/kv.mjs +1 -1
  217. package/dist/runtime/live-client.d.mts +1 -1
  218. package/dist/runtime/live-server.mjs +2 -2
  219. package/dist/runtime/live.d.mts +2 -104
  220. package/dist/runtime/live.mjs +1 -410
  221. package/dist/runtime/migration-handler-mysql.d.mts +1 -1
  222. package/dist/runtime/migration-handler-pg.d.mts +1 -1
  223. package/dist/runtime/migration-handler.d.mts +2 -50
  224. package/dist/runtime/queues.d.mts +2 -6
  225. package/dist/runtime/queues.mjs +1 -1
  226. package/dist/runtime/response.mjs +1 -29
  227. package/dist/runtime/sandbox.mjs +1 -1
  228. package/dist/runtime/sse.mjs +1 -171
  229. package/dist/runtime/storage.mjs +1 -1
  230. package/dist/runtime/validator.d.mts +1 -1
  231. package/dist/runtime/validator.mjs +1 -71
  232. package/dist/runtime/ws-server.d.mts +2 -2
  233. package/dist/runtime/ws-server.mjs +2 -2
  234. package/dist/runtime/ws.d.mts +2 -121
  235. package/dist/{scan-CpK-57ug.mjs → scan-DJbooZm2.mjs} +3 -3
  236. package/dist/{scan-BMH4rzlv.mjs → scan-DdDvRCU1.mjs} +8 -26
  237. package/dist/{secret-AcPi-FoA.mjs → secret-UtrRjhEO.mjs} +8 -6
  238. package/dist/serialize-BPvnNQuA.mjs +14 -0
  239. package/dist/serialize-CfSwWfF2.d.mts +10 -0
  240. package/dist/{skills-C0RvGjeE.mjs → skills-B-690E7h.mjs} +3 -2
  241. package/dist/sse-BaC1jXko.mjs +172 -0
  242. package/dist/{subcommand-prompt-Bmyn5Rlc.mjs → subcommand-prompt-BuGYkAkC.mjs} +2 -1
  243. package/dist/sveltekit.d.mts +2 -1
  244. package/dist/sveltekit.mjs +3 -2
  245. package/dist/validate-DqJ33oHj.mjs +2 -0
  246. package/dist/validate-qNhV00PD.mjs +180 -0
  247. package/dist/validator-BTOu0fB0.mjs +72 -0
  248. package/dist/{wrangler--imS8n0d.mjs → wrangler-D01qs6VB.mjs} +259 -71
  249. package/dist/ws-BwcqizuH.d.mts +122 -0
  250. package/dist/{yarn-pnp-DxSInkzL.mjs → yarn-pnp-CVEc3gE7.mjs} +1 -1
  251. package/package.json +19 -8
  252. package/skills/void/SKILL.md +6 -4
  253. package/skills/void/docs/guide/ai.md +3 -3
  254. package/skills/void/docs/guide/app-types.md +12 -11
  255. package/skills/void/docs/guide/auth.md +2 -2
  256. package/skills/void/docs/guide/database/d1.md +1 -1
  257. package/skills/void/docs/guide/database/mysql.md +1 -1
  258. package/skills/void/docs/guide/database/postgresql.md +3 -3
  259. package/skills/void/docs/guide/deployment.md +8 -15
  260. package/skills/void/docs/guide/durable-state.md +2 -2
  261. package/skills/void/docs/guide/edge/headers.md +3 -3
  262. package/skills/void/docs/guide/edge/prerendering.md +1 -1
  263. package/skills/void/docs/guide/edge/redirects.md +4 -4
  264. package/skills/void/docs/guide/edge/revalidation.md +6 -6
  265. package/skills/void/docs/guide/edge/rewrites.md +28 -27
  266. package/skills/void/docs/guide/edge/static-assets.md +1 -1
  267. package/skills/void/docs/guide/email.md +60 -66
  268. package/skills/void/docs/guide/env-migration.md +1 -1
  269. package/skills/void/docs/guide/index.md +15 -41
  270. package/skills/void/docs/guide/pages-routing/head.md +1 -1
  271. package/skills/void/docs/guide/platform/administration/access.md +13 -5
  272. package/skills/void/docs/guide/platform/administration/projects.md +3 -1
  273. package/skills/void/docs/guide/platform/installation/ci.md +3 -0
  274. package/skills/void/docs/guide/platform/installation/credentials.md +15 -5
  275. package/skills/void/docs/guide/platform/installation/prerequisites.md +2 -0
  276. package/skills/void/docs/guide/platform/installation/setup.md +1 -1
  277. package/skills/void/docs/guide/quickstart.md +11 -78
  278. package/skills/void/docs/guide/remote-dev.md +2 -2
  279. package/skills/void/docs/guide/sandboxes.md +1 -1
  280. package/skills/void/docs/guide/ssg.md +1 -1
  281. package/skills/void/docs/guide/websockets.md +1 -1
  282. package/skills/void/docs/index.md +17 -17
  283. package/skills/void/docs/integrations/cloudflare.md +91 -96
  284. package/skills/void/docs/integrations/frameworks/analog.md +14 -9
  285. package/skills/void/docs/integrations/frameworks/astro.md +14 -10
  286. package/skills/void/docs/integrations/frameworks/nuxt.md +14 -9
  287. package/skills/void/docs/integrations/frameworks/overview.md +35 -29
  288. package/skills/void/docs/integrations/frameworks/react-router.md +1 -1
  289. package/skills/void/docs/integrations/frameworks/sveltekit.md +33 -30
  290. package/skills/void/docs/integrations/frameworks/tanstack-start.md +1 -1
  291. package/skills/void/docs/integrations/nodejs-bun-deno.md +5 -5
  292. package/skills/void/docs/reference/api.md +21 -4
  293. package/skills/void/docs/reference/cli.md +40 -25
  294. package/skills/void/docs/reference/config.md +58 -35
  295. package/skills/void/docs/reference/structure.md +2 -2
  296. package/dist/validate-tBBN_dXH.mjs +0 -505
@@ -1,15 +1,19 @@
1
- import { c as relative, i as extname, l as resolve, o as join, t as basename } from "./dist-BrsS7cai.mjs";
2
- import { A as outro, D as log, E as intro, H as ensurePlatformProxyAccess, I as isCancel, U as isCloudflareAccessChallenge, V as ensurePlatformAccessToken, a as dim, c as import_picocolors, r as cliTitle, w as confirm } from "./output-B0cfNSx5.mjs";
3
- import { n as readProjectPaths } from "./project-paths-SK8nMHPp.mjs";
1
+ import { a as join, l as relative, r as extname, t as basename, u as resolve } from "./dist-4WkAWhWx.mjs";
2
+ import { a as dim, c as import_picocolors, r as cliTitle } from "./output-CCH48AMM.mjs";
3
+ import { n as readProjectPaths } from "./project-paths-CKQ-Q5JS.mjs";
4
4
  import { t as cfAccessHeaders } from "./cf-access-DRsQRe6k.mjs";
5
- import { S as readProjectConfig, l as getToken, s as getProxyUrl, x as readDeploymentPlatform } from "./auth-DPl6kck4.mjs";
6
- import { c as getDatabaseDialect, f as readConfig, p as resolveBindingNames } from "./config-uNGuFsI2.mjs";
7
- import { r as detectFramework } from "./plugin-inference-BDRfZngg.mjs";
8
- import { c as collectMigrations, d as stripSqlExt, f as writeJournal, n as listDrizzleArtifacts, r as validateMigrations, t as assertJournalCoherence, u as readJournal } from "./validate-tBBN_dXH.mjs";
9
- import { t as resolveLocalD1Target } from "./local-d1-D2I6Ox5F.mjs";
10
- import { a as loadLocalEnv } from "./env-DBKmK4vc.mjs";
11
- import { n as PlatformClient, t as PlatformApiError } from "./client-BQBrZoCX.mjs";
12
- import { formatTimestamp } from "./gen-B_wPnVTK.mjs";
5
+ import { c as getToken, o as getProxyUrl } from "./auth-B9_D6ygs.mjs";
6
+ import { i as isCloudflareAccessChallenge, n as ensurePlatformAccessToken, r as ensurePlatformProxyAccess } from "./cf-access-rAZxzMkL.mjs";
7
+ import { i as readDeploymentPlatform, o as readProjectConfig } from "./project-CWNIPoXc.mjs";
8
+ import { h as resolveBindingNames, m as readConfig, u as getDatabaseDialect } from "./config-Dxr6cTXn.mjs";
9
+ import { r as detectFramework } from "./plugin-inference-DsvtJLll.mjs";
10
+ import { i as writeJournal, n as readJournal, r as stripSqlExt, t as collectMigrations } from "./collect-DXHNWHcT.mjs";
11
+ import { t as resolveLocalD1Target } from "./local-d1-DzykTWY8.mjs";
12
+ import { a as loadLocalEnv } from "./env-DX_v-Q-v.mjs";
13
+ import { E as confirm, O as intro, P as outro, W as isCancel, j as log } from "./dist-Dn6nn2IU.mjs";
14
+ import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-qNhV00PD.mjs";
15
+ import { n as PlatformClient, t as PlatformApiError } from "./client-PdAJ-F0t.mjs";
16
+ import { n as formatTimestamp } from "./gen-pg-Ojg8Y.mjs";
13
17
  import { createRequire } from "node:module";
14
18
  import { existsSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
15
19
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -200,7 +204,7 @@ function assertDatabaseProvider(value, source) {
200
204
  }
201
205
  async function loadDatabaseProvider(root, provider) {
202
206
  if (provider === "neon") {
203
- const { createNeonDatabaseProvider } = await import("./neon-DHwd2zvC.mjs");
207
+ const { createNeonDatabaseProvider } = await import("./neon-n74ta1Pr.mjs");
204
208
  return createNeonDatabaseProvider();
205
209
  }
206
210
  const requireFromProject = createRequire(join(root, "package.json"));
@@ -215,7 +219,7 @@ async function loadDatabaseProvider(root, provider) {
215
219
  }
216
220
  async function runConnect(root, dialect, args) {
217
221
  if (dialect === "sqlite") {
218
- log.error("db: `void db connect` requires an external database. Set \"database\" to \"pg\" or \"mysql\" in void.json first.");
222
+ log.error("db: `void db connect` requires an external database. Set \"database\" to \"pg\" or \"mysql\" in void.config.ts first.");
219
223
  process.exit(1);
220
224
  }
221
225
  let connectionString = args.url;
@@ -233,7 +237,7 @@ async function runConnect(root, dialect, args) {
233
237
  if (result.dashboardUrl) log.info(`Dashboard: ${result.dashboardUrl}`);
234
238
  }
235
239
  if (!connectionString) {
236
- const { text: promptText, isCancel: isCancelCheck } = await import("./output-B0cfNSx5.mjs").then((n) => n.T);
240
+ const { text: promptText, isCancel: isCancelCheck } = await import("./dist-C5fND3R0.mjs");
237
241
  const answer = await promptText({
238
242
  message: `Enter your ${dialect === "mysql" ? "MySQL" : "PostgreSQL"} connection string:`,
239
243
  placeholder: dialect === "mysql" ? "mysql://user:pass@host:3306/database" : "postgresql://user:pass@host:5432/database"
@@ -256,12 +260,12 @@ async function runConnect(root, dialect, args) {
256
260
  outro("Database connected.");
257
261
  }
258
262
  async function runPush(root, dialect) {
259
- const { writeDrizzleConfig } = await import("./config-NOG_U1aK.mjs").then((n) => n.t);
263
+ const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
260
264
  let configPath;
261
265
  if (dialect !== "sqlite") configPath = writeDrizzleConfig(root, dialect === "mysql" ? getMySqlUrl(root) : getPgUrl(root), dialect);
262
266
  else {
263
267
  const { mkdirSync } = await import("node:fs");
264
- const { dirname } = await import("./dist-BrsS7cai.mjs").then((n) => n.r);
268
+ const { dirname } = await import("./dist-D7-nEOXi.mjs");
265
269
  const { databasePath: dbPath } = getLocalD1Target(root);
266
270
  mkdirSync(dirname(dbPath), { recursive: true });
267
271
  configPath = writeDrizzleConfig(root, dbPath);
@@ -278,15 +282,15 @@ async function runPush(root, dialect) {
278
282
  outro("Done.");
279
283
  }
280
284
  async function runGenerate(root, dialect) {
281
- const { prepareProject } = await import("./prepare-CtDJjoOj.mjs");
282
- const { writeDrizzleConfig } = await import("./config-NOG_U1aK.mjs").then((n) => n.t);
285
+ const { prepareProject } = await import("./prepare-D4CkM3_v.mjs");
286
+ const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
283
287
  await prepareProject(root);
284
288
  const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
285
289
  const additionalSchemas = existsSync(authSchemaPath) ? [authSchemaPath] : void 0;
286
290
  const configPath = writeDrizzleConfig(root, dialect === "postgresql" ? "postgresql://dummy" : dialect === "mysql" ? "mysql://dummy" : ":memory:", dialect, { additionalSchemas });
287
291
  try {
288
292
  if (dialect === "sqlite") {
289
- const { generateValidatedSqliteMigrations } = await import("./generate-RTK8_kK1.mjs");
293
+ const { generateValidatedSqliteMigrations } = await import("./generate-C0VY6RVf.mjs");
290
294
  await generateValidatedSqliteMigrations(readProjectPaths(root).migrationsDir, () => {
291
295
  runDrizzleKit(root, [
292
296
  "generate",
@@ -344,7 +348,7 @@ async function runStatus(root, dialect) {
344
348
  localApplied = [];
345
349
  }
346
350
  else {
347
- const { getAppliedMigrations } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
351
+ const { getAppliedMigrations } = await import("./runner-CQs_cDSG.mjs");
348
352
  const { databasePath: dbPath } = getLocalD1Target(root);
349
353
  localApplied = await getAppliedMigrations(dbPath);
350
354
  }
@@ -354,12 +358,12 @@ async function runStatus(root, dialect) {
354
358
  if (dialect !== "sqlite") {
355
359
  const databaseUrl = process.env.DATABASE_URL;
356
360
  if (!databaseUrl) throw new Error("DATABASE_URL is not available.");
357
- remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-BkEza-dX.mjs").then((n) => n.n)).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-7BPUNGmL.mjs").then((n) => n.n)).getMySqlAppliedMigrations(databaseUrl)).map((name) => ({
361
+ remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-D7z01mQS.mjs")).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-1o47achK.mjs")).getMySqlAppliedMigrations(databaseUrl)).map((name) => ({
358
362
  name,
359
363
  applied_at: ""
360
364
  }));
361
365
  } else {
362
- const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BzWnlC1_.mjs").then((n) => n.t);
366
+ const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BHNJVDbN.mjs");
363
367
  remoteApplied = (await readCloudflareD1Migrations(resolveCloudflareD1Context(root, resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB"))).map((name) => ({
364
368
  name,
365
369
  applied_at: ""
@@ -435,12 +439,12 @@ async function resetDatabase(root, dialect) {
435
439
  }
436
440
  });
437
441
  if (migrations.length > 0) {
438
- const { applyMySqlMigrations } = await import("./runner-mysql-7BPUNGmL.mjs").then((n) => n.n);
442
+ const { applyMySqlMigrations } = await import("./runner-mysql-1o47achK.mjs");
439
443
  await withMySqlClient(root, (client) => applyMySqlMigrations(client, migrations));
440
444
  }
441
445
  return migrations.length;
442
446
  }
443
- const { runMigrations } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
447
+ const { runMigrations } = await import("./runner-CQs_cDSG.mjs");
444
448
  const { databasePath: dbPath } = getLocalD1Target(root);
445
449
  rmSync(dbPath, { force: true });
446
450
  rmSync(dbPath + "-wal", { force: true });
@@ -475,7 +479,7 @@ async function runSeed(root, file, dialect) {
475
479
  outro("Done.");
476
480
  return;
477
481
  }
478
- const { openSqliteDatabase } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
482
+ const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
479
483
  const { databasePath: dbPath } = getLocalD1Target(root);
480
484
  const db = await openSqliteDatabase(dbPath);
481
485
  try {
@@ -601,7 +605,7 @@ async function runExecute(root, command, file, dialect, remote) {
601
605
  process.exit(0);
602
606
  }
603
607
  if (dialect === "sqlite") {
604
- const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-BzWnlC1_.mjs").then((n) => n.t);
608
+ const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-BHNJVDbN.mjs");
605
609
  const rows = await executeCloudflareD1Sql(resolveCloudflareD1Context(root, resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB"), sql);
606
610
  if (rows.length > 0) printTable(rows);
607
611
  else log.success("Executed successfully.");
@@ -706,7 +710,7 @@ async function runExecute(root, command, file, dialect, remote) {
706
710
  outro("Done.");
707
711
  return;
708
712
  }
709
- const { openSqliteDatabase } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
713
+ const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
710
714
  const { databasePath: dbPath } = getLocalD1Target(root);
711
715
  if (!existsSync(dbPath)) {
712
716
  log.error("No local database found. Run `void dev` first.");
@@ -774,11 +778,11 @@ async function runMigrate(root, dialect, remote) {
774
778
  let appliedNames;
775
779
  let applyMigrations;
776
780
  if (dialect === "postgresql") {
777
- const { getPgAppliedMigrations, runPgMigrations } = await import("./runner-pg-BkEza-dX.mjs").then((n) => n.n);
781
+ const { getPgAppliedMigrations, runPgMigrations } = await import("./runner-pg-D7z01mQS.mjs");
778
782
  appliedNames = await getPgAppliedMigrations(databaseUrl);
779
783
  applyMigrations = () => runPgMigrations(migrationsDir, databaseUrl);
780
784
  } else {
781
- const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-7BPUNGmL.mjs").then((n) => n.n);
785
+ const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-1o47achK.mjs");
782
786
  appliedNames = await getMySqlAppliedMigrations(databaseUrl);
783
787
  applyMigrations = () => runMySqlMigrations(migrationsDir, databaseUrl);
784
788
  }
@@ -806,7 +810,7 @@ async function runMigrate(root, dialect, remote) {
806
810
  outro("Done.");
807
811
  return;
808
812
  }
809
- const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BzWnlC1_.mjs").then((n) => n.t);
813
+ const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-BHNJVDbN.mjs");
810
814
  const binding = resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB";
811
815
  const context = resolveCloudflareD1Context(root, binding);
812
816
  const remoteBefore = new Set(await readCloudflareD1Migrations(context));
@@ -822,7 +826,7 @@ async function runMigrate(root, dialect, remote) {
822
826
  log.error(getErrorMessage(error));
823
827
  process.exit(1);
824
828
  }
825
- const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-BAhhcg5q.mjs").then((n) => n.n);
829
+ const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-DAH2-m_-.mjs");
826
830
  const applySet = await checkWranglerMigrationApplySet(context.operation.configPath, parseRootWranglerConfig(context.operation.configPath), binding, context.migrationsDir, rawMigrations);
827
831
  if (!applySet.ok) {
828
832
  log.error(applySet.reason);
@@ -891,7 +895,7 @@ async function runMigrate(root, dialect, remote) {
891
895
  return;
892
896
  }
893
897
  if (dialect === "postgresql") {
894
- const { applyPgMigrations } = await import("./runner-pg-BkEza-dX.mjs").then((n) => n.n);
898
+ const { applyPgMigrations } = await import("./runner-pg-D7z01mQS.mjs");
895
899
  const applied = await withPgClient(root, async (client) => {
896
900
  let existingRows = [];
897
901
  try {
@@ -916,7 +920,7 @@ async function runMigrate(root, dialect, remote) {
916
920
  return;
917
921
  }
918
922
  if (dialect === "mysql") {
919
- const { applyMySqlMigrations } = await import("./runner-mysql-7BPUNGmL.mjs").then((n) => n.n);
923
+ const { applyMySqlMigrations } = await import("./runner-mysql-1o47achK.mjs");
920
924
  const applied = await withMySqlClient(root, async (client) => {
921
925
  let existingRows = [];
922
926
  try {
@@ -940,7 +944,7 @@ async function runMigrate(root, dialect, remote) {
940
944
  outro("Done.");
941
945
  return;
942
946
  }
943
- const { getAppliedMigrations, runMigrations } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
947
+ const { getAppliedMigrations, runMigrations } = await import("./runner-CQs_cDSG.mjs");
944
948
  const { databasePath: dbPath } = getLocalD1Target(root);
945
949
  try {
946
950
  const existingRows = await getAppliedMigrations(dbPath);
@@ -984,7 +988,7 @@ async function runStudio(root, dialect, remote) {
984
988
  }
985
989
  dbUrl = await fetchRemoteDatabaseUrl(new PlatformClient(token, { root }), projectConfig.projectId);
986
990
  }
987
- const { writeDrizzleConfig } = await import("./config-NOG_U1aK.mjs").then((n) => n.t);
991
+ const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
988
992
  const configPath = writeDrizzleConfig(root, dbUrl, dialect);
989
993
  log.info("Opening Drizzle Studio (remote)...");
990
994
  try {
@@ -999,7 +1003,7 @@ async function runStudio(root, dialect, remote) {
999
1003
  return;
1000
1004
  }
1001
1005
  if (dialect !== "sqlite") {
1002
- const { writeDrizzleConfig } = await import("./config-NOG_U1aK.mjs").then((n) => n.t);
1006
+ const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
1003
1007
  const configPath = writeDrizzleConfig(root, dialect === "mysql" ? getMySqlUrl(root) : getPgUrl(root), dialect);
1004
1008
  log.info("Opening Drizzle Studio...");
1005
1009
  try {
@@ -1013,7 +1017,7 @@ async function runStudio(root, dialect, remote) {
1013
1017
  }
1014
1018
  return;
1015
1019
  }
1016
- const { writeDrizzleConfig } = await import("./config-NOG_U1aK.mjs").then((n) => n.t);
1020
+ const { writeDrizzleConfig } = await import("./config-DDIFxQYx.mjs");
1017
1021
  const { databasePath: dbPath } = getLocalD1Target(root);
1018
1022
  if (!existsSync(dbPath)) {
1019
1023
  log.error("No local database found. Run `void dev` first.");
@@ -1250,7 +1254,7 @@ async function runRenameMigrations(root, dialect) {
1250
1254
  process.exit(1);
1251
1255
  }
1252
1256
  else {
1253
- const { openSqliteDatabase } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
1257
+ const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
1254
1258
  const { databasePath: dbPath } = getLocalD1Target(root);
1255
1259
  if (existsSync(dbPath)) try {
1256
1260
  const db = await openSqliteDatabase(dbPath);
@@ -1380,7 +1384,7 @@ async function runExport(root, args, dialect) {
1380
1384
  } else process.stdout.write(output);
1381
1385
  return;
1382
1386
  }
1383
- const { openSqliteDatabase } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
1387
+ const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
1384
1388
  const { databasePath: dbPath } = getLocalD1Target(root);
1385
1389
  if (!existsSync(dbPath)) {
1386
1390
  log.error("No local database found. Run `void dev` first.", errOut);
@@ -1436,10 +1440,10 @@ async function runExport(root, args, dialect) {
1436
1440
  }
1437
1441
  }
1438
1442
  async function runSetUrl(root) {
1439
- const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config-uNGuFsI2.mjs").then((n) => n.n);
1443
+ const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config--T87TD8T.mjs");
1440
1444
  const dialect = getDialect(readVoidConfig(root));
1441
1445
  if (dialect === "sqlite") {
1442
- log.error("db: This command is only for PostgreSQL and MySQL projects. Set \"database\" to \"pg\" or \"mysql\" in void.json.");
1446
+ log.error("db: This command is only for PostgreSQL and MySQL projects. Set \"database\" to \"pg\" or \"mysql\" in void.config.ts.");
1443
1447
  process.exit(1);
1444
1448
  }
1445
1449
  const token = getToken(root);
@@ -1452,7 +1456,7 @@ async function runSetUrl(root) {
1452
1456
  log.error("No project linked. Run `void deploy` first or link a project.");
1453
1457
  process.exit(1);
1454
1458
  }
1455
- const { text: promptText, isCancel: isCancelCheck } = await import("./output-B0cfNSx5.mjs").then((n) => n.T);
1459
+ const { text: promptText, isCancel: isCancelCheck } = await import("./dist-C5fND3R0.mjs");
1456
1460
  const connectionString = await promptText({
1457
1461
  message: `Enter your ${dialect === "mysql" ? "MySQL" : "PostgreSQL"} connection string:`,
1458
1462
  placeholder: dialect === "mysql" ? "mysql://user:pass@host:3306/dbname" : "postgresql://user:pass@host:5432/dbname",
@@ -1539,7 +1543,7 @@ async function runSeedModule(root, seedPath, dialect) {
1539
1543
  return;
1540
1544
  }
1541
1545
  const { drizzle } = await import("drizzle-orm/better-sqlite3");
1542
- const { openSqliteDatabase } = await import("./local-d1-D2I6Ox5F.mjs").then((n) => n.i);
1546
+ const { openSqliteDatabase } = await import("./runner-CQs_cDSG.mjs");
1543
1547
  const { databasePath: dbPath } = getLocalD1Target(root);
1544
1548
  const sqlite = await openSqliteDatabase(dbPath);
1545
1549
  try {
@@ -1560,7 +1564,7 @@ async function loadSeedFunction(seedPath) {
1560
1564
  return seed;
1561
1565
  }
1562
1566
  async function loadSeedSchema(root) {
1563
- const { discoverSchema } = await import("./discover-xvfrgJeo.mjs").then((n) => n.n);
1567
+ const { discoverSchema } = await import("./discover-BBzDZe_o.mjs");
1564
1568
  const location = discoverSchema(root, readProjectPaths(root));
1565
1569
  if (!location) return {};
1566
1570
  if (location.type === "file") {
@@ -1,7 +1,9 @@
1
- import { A as outro, C as cancel, D as log, E as intro, I as isCancel, P as text, i as createSpinner, k as note, r as cliTitle } from "./output-B0cfNSx5.mjs";
2
- import { C as removeProjectConfig, S as readProjectConfig, l as getToken } from "./auth-DPl6kck4.mjs";
3
- import { n as PlatformClient } from "./client-BQBrZoCX.mjs";
4
- import { r as resolveProjectBySlug } from "./resolve-project--Vxawf7z.mjs";
1
+ import { i as createSpinner, r as cliTitle } from "./output-CCH48AMM.mjs";
2
+ import { c as getToken } from "./auth-B9_D6ygs.mjs";
3
+ import { c as removeProjectConfig, o as readProjectConfig } from "./project-CWNIPoXc.mjs";
4
+ import { B as text, N as note, O as intro, P as outro, T as cancel, W as isCancel, j as log } from "./dist-Dn6nn2IU.mjs";
5
+ import { n as PlatformClient } from "./client-PdAJ-F0t.mjs";
6
+ import { r as resolveProjectBySlug } from "./resolve-project-Xvis70DG.mjs";
5
7
  //#region src/cli/delete.ts
6
8
  async function runDeleteCommand(root, slug, options) {
7
9
  console.log();
@@ -0,0 +1,2 @@
1
+ import { A as parseRootWranglerConfig, f as checkWranglerMigrationApplySet, q as runDeploy } from "./deploy-DEsMVrCY.mjs";
2
+ export { checkWranglerMigrationApplySet, parseRootWranglerConfig, runDeploy };