void 1.9.0 → 1.10.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 (374) hide show
  1. package/dist/{account-cmd-BEMOdwtl.mjs → account-cmd-CZhbDfp4.mjs} +3 -3
  2. package/dist/{application-analysis-3VVsflWZ.mjs → application-analysis-Do1WaGAY.mjs} +81 -7
  3. package/dist/{application-routing-CJRlXCc2.mjs → application-routing-DrOFahHO.mjs} +1 -1
  4. package/dist/{routing-assets-DJIVOrCh.mjs → assets-DZBd7yqh.mjs} +1 -1
  5. package/dist/{auth-aMuFOZeI.mjs → auth-YtP6K4J3.mjs} +1 -1
  6. package/dist/{auth-link-B1IynRW5.mjs → auth-link-DFQTA1jN.mjs} +3 -3
  7. package/dist/{auth-router-DVaWJdRB.mjs → auth-router-BOiaDmcQ.mjs} +2 -2
  8. package/dist/{base64-ikl9yBy3.mjs → base64-DwTR12ej.mjs} +1 -1
  9. package/dist/{better-auth-shared-ajs3LNrY.d.mts → better-auth-shared-BqsMzU14.d.mts} +1 -1
  10. package/dist/{better-auth-shared-C7LHvF4L.mjs → better-auth-shared-DRHo5FoG.mjs} +116 -20
  11. package/dist/{build-cmd-Dq8tdqQG.mjs → build-cmd-BCiXgjn9.mjs} +1 -1
  12. package/dist/{cache-DGMnskX7.mjs → cache-CUulshOu.mjs} +1 -1
  13. package/dist/{cancel-deploy-96S5hD1E.mjs → cancel-deploy-BHGZo6KC.mjs} +1 -1
  14. package/dist/cf-build-output-D3_x71H6.mjs +1 -0
  15. package/dist/{cf-build-output-CWNOH-KA.mjs → cf-build-output-bBx1gDll.mjs} +27 -16
  16. package/dist/{cf-config-migrate-Bb-EdAQq.mjs → cf-config-migrate-CHtnM3_C.mjs} +21 -3
  17. package/dist/cli/cli.mjs +1 -1
  18. package/dist/cli/cloudflare-operation-process.mjs +3 -2
  19. package/dist/cli/env-schema-probe.d.mts +1 -1
  20. package/dist/cli/env-schema-probe.mjs +2 -2
  21. package/dist/{cli-main-CQRLxZAu.mjs → cli-main-hM7rhIbB.mjs} +27 -27
  22. package/dist/{client-66c0RLDM.mjs → client-BEYbgqZw.mjs} +1 -1
  23. package/dist/{auth-client-DwCdwKbw.mjs → client-Ypa4Immo.mjs} +1 -1
  24. package/dist/{client-D6w5x7hM.mjs → client-aIv5UQf3.mjs} +3 -3
  25. package/dist/{auth-client-react-CJdeErvM.mjs → client-react-B-ZqH8Ao.mjs} +1 -1
  26. package/dist/{auth-client-solid-BRvgvp6h.mjs → client-solid-D2PSeKLm.mjs} +1 -1
  27. package/dist/{auth-client-svelte-BSqUCEed.mjs → client-svelte-DbJbN7Ey.mjs} +1 -1
  28. package/dist/{auth-client-vue-CPkbRtOO.mjs → client-vue-PBawsrwk.mjs} +1 -1
  29. package/dist/{cloudflare-cmd-BuuHUM4z.mjs → cloudflare-cmd-DLcgInCa.mjs} +1 -1
  30. package/dist/{cloudflare-config-PxbinLLE.mjs → cloudflare-config-BfEfIEuY.mjs} +1 -1
  31. package/dist/{cloudflare-connect-D1QOosLd.mjs → cloudflare-connect-CMcKtA02.mjs} +1 -1
  32. package/dist/{cloudflare-operations-I4t3mt4R.mjs → cloudflare-operations-C5RTQNnh.mjs} +1 -1
  33. package/dist/{cloudflare-operations-G5AObYzF.mjs → cloudflare-operations-DLhn_Bom.mjs} +4 -4
  34. package/dist/{config-DlWQ_hIJ.mjs → config-CbKmMpHK.mjs} +1 -1
  35. package/dist/{config-C1DPf8EK.mjs → config-CtkCfPpv.mjs} +1 -1
  36. package/dist/{config-CCWVY7DY.d.mts → config-DuiDZbq7.d.mts} +3 -2
  37. package/dist/config-entry.d.mts +1 -1
  38. package/dist/{config-CzFdJYNA.mjs → config-qgt863GH.mjs} +7 -2
  39. package/dist/{connect-4uImOwut.mjs → connect-DM3yCNPG.mjs} +4 -4
  40. package/dist/{sandbox-container-BuxhwCgt.mjs → container-CR_tqFtd.mjs} +1 -1
  41. package/dist/{sandbox-container-CZFZdMso.d.mts → container-D584jUxY.d.mts} +1 -1
  42. package/dist/{create-project-BaUzZnLZ.mjs → create-project-BkVGXGNt.mjs} +1 -1
  43. package/dist/{create-project-CQMyzTvK.mjs → create-project-C-hNdYvD.mjs} +1 -1
  44. package/dist/{migration-handler-DCehTlWs.mjs → d1-handler-C1LH2K2s.mjs} +1 -1
  45. package/dist/{db-DEpDeDsi.mjs → db-DQAi7Ckr.mjs} +23 -23
  46. package/dist/{delete-BVD2kI82.mjs → delete-BtVnPGO2.mjs} +1 -1
  47. package/dist/{deploy-Dyeo5soA.mjs → deploy-Cs93Af-d.mjs} +32 -31
  48. package/dist/{deploy-managed-static-Kn73R83A.mjs → deploy-managed-static-CZIx3cc1.mjs} +20 -11
  49. package/dist/deploy-rUunHBNJ.mjs +2 -0
  50. package/dist/{deploy-transport-BpKBs_KR.mjs → deploy-transport-DT-ALuDj.mjs} +2 -2
  51. package/dist/deploy.mjs +7 -6
  52. package/dist/{dev-inbox-CUUS6iUg.mjs → dev-inbox-BiamQEAa.mjs} +2 -2
  53. package/dist/{dispatch-BBfb519j.mjs → dispatch-DPEuEblR.mjs} +1 -1
  54. package/dist/{domain-BTIdyUVk.mjs → domain-cOhYYiHU.mjs} +2 -2
  55. package/dist/{email-DvrS-I0U.mjs → email-CnnDqvXV.mjs} +7 -7
  56. package/dist/{email-cloudflare-DAGpgzY1.mjs → email-cloudflare-CCIoQueP.mjs} +4 -4
  57. package/dist/email-pattern-BYr-EFq5.mjs +91 -0
  58. package/dist/{env-D7vORwpn.mjs → env-5bphL5mV.mjs} +3 -3
  59. package/dist/env-registry-BbCdIOXP.mjs +10 -0
  60. package/dist/{env-validation-DeYNRp1d.mjs → env-validation-DfJ9Fzfa.mjs} +2 -2
  61. package/dist/{env-validation-DKDcpxbt.mjs → env-validation-ly_Q9Kgd.mjs} +1 -1
  62. package/dist/{error-pages-COVBnzK7.mjs → error-pages-QNeBXiRR.mjs} +6 -6
  63. package/dist/{fetch-CAIVkLvW.mjs → fetch-DdK9eGin.mjs} +3 -3
  64. package/dist/{fetch-error-DmlRM6e4.mjs → fetch-error-EXhBRoxI.mjs} +1 -1
  65. package/dist/{fetch-stream-6Op0qlLd.mjs → fetch-stream-DQAavFdm.mjs} +4 -4
  66. package/dist/gen-BQ7itmK7.mjs +1 -0
  67. package/dist/{gen-DimkGNve.mjs → gen-CjcH6DJS.mjs} +4 -3
  68. package/dist/{github-cmd-D-zs6VQr.mjs → github-cmd-CVDLb51-.mjs} +1 -1
  69. package/dist/{handler-C9SnmeW1.mjs → handler-w_FAiIRu.mjs} +5 -5
  70. package/dist/{head-CWJhfUwV.mjs → head-0o0QoREY.mjs} +1 -1
  71. package/dist/{headers-Q0kZDpk8.mjs → headers-Cyr87J6Z.mjs} +1 -1
  72. package/dist/{help-Cgdcd-SG.mjs → help-B1cH8518.mjs} +8 -1
  73. package/dist/help-Ld6XFol7.mjs +1 -0
  74. package/dist/{env-helpers-Dj_SIwPu.mjs → helpers-_OdpnjkJ.mjs} +1 -1
  75. package/dist/{inbound-C2H6Dzz1.mjs → inbound--OF7zkwX.mjs} +4 -4
  76. package/dist/{sandbox-DE1WsxuB.d.mts → index-BESZTC1z.d.mts} +2 -2
  77. package/dist/{ws-C2zy0QBf.d.mts → index-BTmhCDbw.d.mts} +36 -7
  78. package/dist/{handler-6fzr_ikp.d.mts → index-BXdP39qx.d.mts} +4 -6
  79. package/dist/{live-DBybyDt0.d.mts → index-CmqHYj2R.d.mts} +2 -2
  80. package/dist/index.d.mts +4 -4
  81. package/dist/index.mjs +68 -49
  82. package/dist/{info-BbxQ34kk.mjs → info-BE3snw2_.mjs} +4 -4
  83. package/dist/{init-zyRj3QRw.mjs → init-BrS5MAiJ.mjs} +67 -42
  84. package/dist/{limits-CrHLm5Tk.mjs → limits-BCoQLpn3.mjs} +1 -1
  85. package/dist/{link-DAFXuIER.mjs → link-BbzyrCBD.mjs} +2 -2
  86. package/dist/{list-BTIcC3W9.mjs → list-DmppHjVc.mjs} +2 -2
  87. package/dist/{live-Dw7NF1t2.mjs → live-DvtxTUhW.mjs} +5 -5
  88. package/dist/{load-user-env-ztmIyiLx.mjs → load-user-env-BltIJLtl.mjs} +1 -1
  89. package/dist/{local-d1-BnVb7Fem.mjs → local-d1-DLxsKmkw.mjs} +1 -1
  90. package/dist/login-C-n1rA0s.mjs +1 -0
  91. package/dist/{login-DOE-MkeK.mjs → login-Cihxnu7m.mjs} +2 -2
  92. package/dist/{logs-CUsjihc3.mjs → logs-BCgLeLNd.mjs} +2 -2
  93. package/dist/migrate-CKn30rmw.mjs +1 -0
  94. package/dist/{migrate-DtoKdGas.mjs → migrate-DOK67gE-.mjs} +3 -3
  95. package/dist/{auth-migrations-DDeifS3v.mjs → migrations-ByS7r3HV.mjs} +1 -1
  96. package/dist/{mime-CtP6-qAF.mjs → mime-BGoZ8ZLL.mjs} +1 -1
  97. package/dist/{mysql-migration-sql-CI9VTwjt.mjs → mysql-sql-SlpS6OMg.mjs} +3 -3
  98. package/dist/nitro.mjs +3 -3
  99. package/dist/{node-D9dPyUr0.mjs → node-qXD3FbIU.mjs} +2 -2
  100. package/dist/{operator-ai-logging-DFTEp81Z.mjs → operator-ai-logging-CNuX5uKg.mjs} +1 -1
  101. package/dist/operator-cmd-BnLoIO2A.mjs +1 -0
  102. package/dist/{operator-cmd-CQOQrUiO.mjs → operator-cmd-D0vSUVle.mjs} +4 -4
  103. package/dist/pages/client.d.mts +4 -4
  104. package/dist/pages/client.mjs +4 -4
  105. package/dist/pages/head.mjs +1 -1
  106. package/dist/pages/index.d.mts +3 -3
  107. package/dist/pages/index.mjs +5 -5
  108. package/dist/pages/islands-plugin.d.mts +1 -1
  109. package/dist/pages/islands-plugin.mjs +1 -1
  110. package/dist/pages/prefetch.d.mts +1 -1
  111. package/dist/pages/prefetch.mjs +1 -1
  112. package/dist/pages/protocol.d.mts +3 -3
  113. package/dist/pages/protocol.mjs +3 -3
  114. package/dist/{pg-DoyPxa_X.mjs → pgpass-CEtnBOZO.mjs} +1 -1
  115. package/dist/{platform-args-DtpHS_75.mjs → platform-args-DQSMW4EP.mjs} +24 -5
  116. package/dist/platform-args-Rgp86xa7.mjs +1 -0
  117. package/dist/{platform-auth-config-fLwIS5VG.mjs → platform-auth-config-V2ifSLQ-.mjs} +4 -4
  118. package/dist/{platform-auth-protection-BTRI_YwD.mjs → platform-auth-protection-BybVCUzi.mjs} +2 -2
  119. package/dist/{platform-auth-recovery-DPK2Mvmo.mjs → platform-auth-recovery-kH1-h8Ch.mjs} +2 -2
  120. package/dist/{platform-cmd-BLy5uCa-.mjs → platform-cmd-B1jtqXnu.mjs} +1 -1
  121. package/dist/{platform-cmd-HS_FSthn.mjs → platform-cmd-BHWdh1Hx.mjs} +5 -5
  122. package/dist/{platform-domain-CHpcq_qg.mjs → platform-domain-DB_KpVhg.mjs} +2 -2
  123. package/dist/{platform-lifecycle-B6LUBwjS.mjs → platform-lifecycle-BoOTmH6H.mjs} +1 -1
  124. package/dist/{platform-lifecycle-D2RS7DE0.mjs → platform-lifecycle-C6fUuj4y.mjs} +146 -71
  125. package/dist/{platform-management-C-T0ch4y.mjs → platform-management-7Bf_OgS5.mjs} +1 -1
  126. package/dist/{platform-management-d3ETv3Dw.mjs → platform-management-B8-pOxoJ.mjs} +9 -2
  127. package/dist/{platform-plans-config-B7yJQKf7.mjs → platform-plans-config-iczSDkQK.mjs} +1 -1
  128. package/dist/{platform-recovery-DS5CAsly.mjs → platform-recovery-ZAXin6WK.mjs} +2 -2
  129. package/dist/{platform-setup-Casiffqj.mjs → platform-setup-CpcHLI-0.mjs} +1 -0
  130. package/dist/{plugin-inference-DZHmVe1f.mjs → plugin-inference-BGamcCqB.mjs} +1 -2
  131. package/dist/{prefetch-Dx2jIbtg.mjs → prefetch-C_OUvg5g.mjs} +4 -0
  132. package/dist/{prefetch-NdNeubbH.d.mts → prefetch-UINRrqL4.d.mts} +1 -0
  133. package/dist/{prepare-AVM4Hj3T.mjs → prepare-BrAkXTTB.mjs} +3 -3
  134. package/dist/prepare-CI7_C9Xf.mjs +1 -0
  135. package/dist/{prepare-DMk8NAO-.mjs → prepare-Cjt6EM0d.mjs} +1 -1
  136. package/dist/{project-cmd-TQKAOTMV.mjs → project-cmd-wtCuc8Ln.mjs} +15 -15
  137. package/dist/{project-team-B1OKeb-T.mjs → project-team-CZFvPIJ-.mjs} +1 -1
  138. package/dist/{project-token-RW_wpmN-.mjs → project-token-C3TxkWeC.mjs} +1 -1
  139. package/dist/{project-zero-trust-TNc66p0_.mjs → project-zero-trust-DrRyAHW1.mjs} +1 -1
  140. package/dist/{protocol-YS3tbxWE.d.mts → protocol-BlAiF-hc.d.mts} +5 -3
  141. package/dist/{email-protocol-DTs_TjCS.mjs → protocol-ChF3kDjf.mjs} +1 -1
  142. package/dist/{protocol-IPSWHolJ.mjs → protocol-W5EQcIzN.mjs} +43 -22
  143. package/dist/{provision-bgQTi5QZ.mjs → provision-CknEbPuw.mjs} +3 -2
  144. package/dist/{provision-BLdkpFT4.mjs → provision-DdWqRmmr.mjs} +1 -1
  145. package/dist/{env-public-DtJL_hZq.d.mts → public-B80SwOFp.d.mts} +14 -9
  146. package/dist/{env-raw-e8qgqAzQ.mjs → raw-7pQirZpQ.mjs} +1 -1
  147. package/dist/raw-CtfNvKyY.d.mts +3 -0
  148. package/dist/{requests-Cj15-yrI.mjs → requests-FaA9M3RX.mjs} +1 -1
  149. package/dist/{response-HmNjB30w.mjs → response-CyXsGfOy.mjs} +1 -1
  150. package/dist/{rollback-CYnkng7B.mjs → rollback-DM6pZ23Y.mjs} +2 -2
  151. package/dist/{route-types-C6eAOmOj.mjs → route-types-CrODgORq.mjs} +36 -6
  152. package/dist/{route-url-CfCR4oMj.mjs → route-url-BBdkU7rb.mjs} +1 -1
  153. package/dist/{route-url-C3JwYrER.d.mts → route-url-Di1kB8D_.d.mts} +6 -2
  154. package/dist/routes-stub.d.mts +1 -3
  155. package/dist/routes-stub.mjs +1 -1
  156. package/dist/{runner-mysql-BXfcQQj3.mjs → runner-mysql-CJ-HyqxV.mjs} +1 -1
  157. package/dist/{runner-mysql-CHvEg_sy.mjs → runner-mysql-C_PrAUTm.mjs} +1 -1
  158. package/dist/runtime/{ai.mjs → ai/index.mjs} +6 -6
  159. package/dist/runtime/{better-auth.d.mts → auth/better-auth-d1.d.mts} +1 -1
  160. package/dist/runtime/{better-auth.mjs → auth/better-auth-d1.mjs} +3 -3
  161. package/dist/runtime/{better-auth-mysql.d.mts → auth/better-auth-mysql.d.mts} +1 -1
  162. package/dist/runtime/{better-auth-mysql.mjs → auth/better-auth-mysql.mjs} +3 -3
  163. package/dist/runtime/{better-auth-pg.d.mts → auth/better-auth-postgres.d.mts} +1 -1
  164. package/dist/runtime/{better-auth-pg.mjs → auth/better-auth-postgres.mjs} +4 -4
  165. package/dist/runtime/auth/client-react.d.mts +2 -0
  166. package/dist/runtime/auth/client-react.mjs +1 -0
  167. package/dist/runtime/auth/client-solid.d.mts +2 -0
  168. package/dist/runtime/auth/client-solid.mjs +1 -0
  169. package/dist/runtime/auth/client-svelte.d.mts +2 -0
  170. package/dist/runtime/auth/client-svelte.mjs +1 -0
  171. package/dist/runtime/auth/client-vue.d.mts +2 -0
  172. package/dist/runtime/auth/client-vue.mjs +1 -0
  173. package/dist/runtime/auth/client.d.mts +2 -0
  174. package/dist/runtime/auth/client.mjs +1 -0
  175. package/dist/runtime/{auth.d.mts → auth/index.d.mts} +1 -1
  176. package/dist/runtime/auth/index.mjs +1 -0
  177. package/dist/runtime/{fetch-server.d.mts → client/fetch-server.d.mts} +1 -1
  178. package/dist/runtime/{fetch-server.mjs → client/fetch-server.mjs} +3 -3
  179. package/dist/runtime/client/fetch-stream.d.mts +3 -0
  180. package/dist/runtime/client/fetch-stream.mjs +3 -0
  181. package/dist/runtime/{fetch.d.mts → client/fetch.d.mts} +1 -1
  182. package/dist/runtime/client/fetch.mjs +3 -0
  183. package/dist/runtime/client/index.d.mts +5 -0
  184. package/dist/runtime/client/index.mjs +5 -0
  185. package/dist/runtime/client/react.d.mts +5 -0
  186. package/dist/runtime/client/react.mjs +5 -0
  187. package/dist/runtime/client/solid.d.mts +5 -0
  188. package/dist/runtime/client/solid.mjs +5 -0
  189. package/dist/runtime/client/svelte.d.mts +5 -0
  190. package/dist/runtime/client/svelte.mjs +5 -0
  191. package/dist/runtime/client/vue.d.mts +5 -0
  192. package/dist/runtime/client/vue.mjs +5 -0
  193. package/dist/runtime/{db.mjs → db/index.mjs} +2 -2
  194. package/dist/runtime/{migration-handler.d.mts → db/migrations/d1-handler.d.mts} +1 -1
  195. package/dist/runtime/{migration-handler.mjs → db/migrations/d1-handler.mjs} +1 -1
  196. package/dist/runtime/{migration-handler-mysql.d.mts → db/migrations/mysql-handler.d.mts} +1 -1
  197. package/dist/runtime/{migration-handler-mysql.mjs → db/migrations/mysql-handler.mjs} +2 -2
  198. package/dist/runtime/{migration-handler-pg.d.mts → db/migrations/postgres-handler.d.mts} +1 -1
  199. package/dist/runtime/{migration-handler-pg.mjs → db/migrations/postgres-handler.mjs} +2 -2
  200. package/dist/runtime/{seed.mjs → db/seed.mjs} +1 -1
  201. package/dist/runtime/{durable.mjs → durable/index.mjs} +3 -3
  202. package/dist/runtime/{email.d.mts → email/index.d.mts} +1 -1
  203. package/dist/runtime/{email.mjs → email/index.mjs} +6 -6
  204. package/dist/runtime/{email-protocol.mjs → email/protocol.mjs} +1 -1
  205. package/dist/runtime/email/testing.mjs +4 -4
  206. package/dist/runtime/{env-public-client.d.mts → env/public-client.d.mts} +1 -1
  207. package/dist/runtime/{env-public-client.mjs → env/public-client.mjs} +2 -2
  208. package/dist/runtime/env/public.d.mts +4 -0
  209. package/dist/runtime/{env-public.mjs → env/public.mjs} +144 -75
  210. package/dist/runtime/{env.d.mts → env/runtime.d.mts} +1 -2
  211. package/dist/runtime/{env.mjs → env/runtime.mjs} +1 -1
  212. package/dist/runtime/{handler.d.mts → handler/index.d.mts} +1 -1
  213. package/dist/runtime/{handler.mjs → handler/index.mjs} +2 -2
  214. package/dist/runtime/{response.mjs → handler/response.mjs} +1 -1
  215. package/dist/runtime/handler/validator.d.mts +2 -0
  216. package/dist/runtime/handler/validator.mjs +1 -0
  217. package/dist/runtime/{isr.mjs → isr/index.mjs} +2 -2
  218. package/dist/runtime/{kv.mjs → kv/index.mjs} +2 -2
  219. package/dist/runtime/{limits.d.mts → limits/index.d.mts} +1 -1
  220. package/dist/runtime/{limits.mjs → limits/index.mjs} +1 -1
  221. package/dist/runtime/{live-client.d.mts → live/client.d.mts} +2 -2
  222. package/dist/runtime/{live-client.mjs → live/client.mjs} +1 -1
  223. package/dist/runtime/{live.d.mts → live/index.d.mts} +1 -1
  224. package/dist/runtime/live/index.mjs +1 -0
  225. package/dist/runtime/{live-server.mjs → live/server.mjs} +3 -3
  226. package/dist/runtime/{log.mjs → log/index.mjs} +1 -1
  227. package/dist/runtime/queues/index.d.mts +2 -0
  228. package/dist/runtime/{queues.mjs → queues/index.mjs} +2 -2
  229. package/dist/runtime/remote/binding-handler.mjs +1 -1
  230. package/dist/runtime/remote/index.mjs +1 -1
  231. package/dist/runtime/{routing.d.mts → routing/index.d.mts} +7 -2
  232. package/dist/runtime/{routing.mjs → routing/index.mjs} +51 -17
  233. package/dist/runtime/{route-url.d.mts → routing/route-url.d.mts} +1 -1
  234. package/dist/runtime/{route-url.mjs → routing/route-url.mjs} +1 -1
  235. package/dist/runtime/{sandbox-container.d.mts → sandbox/container.d.mts} +1 -1
  236. package/dist/runtime/{sandbox-container.mjs → sandbox/container.mjs} +1 -1
  237. package/dist/runtime/{sandbox.d.mts → sandbox/index.d.mts} +2 -2
  238. package/dist/runtime/{sandbox.mjs → sandbox/index.mjs} +5 -5
  239. package/dist/runtime/{sse-client.d.mts → sse/client.d.mts} +1 -1
  240. package/dist/runtime/{sse-client.mjs → sse/client.mjs} +1 -1
  241. package/dist/runtime/sse/index.mjs +1 -0
  242. package/dist/runtime/{storage.mjs → storage/index.mjs} +2 -2
  243. package/dist/runtime/ws/index.d.mts +2 -0
  244. package/dist/runtime/{ws.mjs → ws/index.mjs} +3 -3
  245. package/dist/runtime/ws/room.d.mts +30 -0
  246. package/dist/runtime/ws/room.mjs +37 -0
  247. package/dist/runtime/{ws-server.d.mts → ws/server.d.mts} +18 -3
  248. package/dist/runtime/ws/server.mjs +1 -0
  249. package/dist/{env-DtKg5G26.mjs → runtime-zDDinDI5.mjs} +2 -2
  250. package/dist/{dist-BWNkVq50.mjs → scan-tDExXbA1.mjs} +978 -11
  251. package/dist/{secret-BSf7dgg_.mjs → secret-DDNLIQOT.mjs} +3 -3
  252. package/dist/{runtime/ws-server.mjs → server-CfUbeOjx.mjs} +60 -19
  253. package/dist/{sse-CxR30yMF.mjs → sse-BXnTfcf3.mjs} +1 -1
  254. package/dist/{static-asset-marker-DsQKz6lt.mjs → static-asset-marker-lxYeKvFP.mjs} +2 -2
  255. package/dist/{types-IPut3_Yx.d.mts → types-FDH6NuY1.d.mts} +0 -5
  256. package/dist/{validation-error-uAAjlsiW.mjs → validation-error-CtcAvyI7.mjs} +1 -1
  257. package/dist/{validator-8-NZs2Xr.mjs → validator-Duafcnh7.mjs} +1 -1
  258. package/dist/{version-metadata-CeftH0fQ.mjs → version-metadata-DEmItNdS.mjs} +1 -1
  259. package/dist/{wrangler-B1gkT_wC.mjs → wrangler-D1zq1rXr.mjs} +20 -3
  260. package/dist/wrangler-DM3GOqck.mjs +1 -0
  261. package/dist/{wrapper-xJ4LP5A7.mjs → wrapper-C2gMY432.mjs} +11 -6
  262. package/docs/guide/ai.md +3 -2
  263. package/docs/guide/auth.md +20 -13
  264. package/docs/guide/database.md +0 -7
  265. package/docs/guide/email/sending.md +0 -1
  266. package/docs/guide/pages-routing/errors.md +23 -1
  267. package/docs/guide/pages-routing/head.md +15 -10
  268. package/docs/guide/pages-routing/loaders.md +19 -0
  269. package/docs/guide/pages-routing/markdown.md +14 -10
  270. package/docs/guide/pages-routing/view-transitions.md +0 -16
  271. package/docs/guide/platform/administration/plans.md +13 -13
  272. package/docs/guide/platform/administration/projects.md +14 -4
  273. package/docs/guide/platform/installation/ci.md +5 -2
  274. package/docs/guide/platform/installation/maintenance.md +5 -2
  275. package/docs/guide/platform/installation/prerequisites.md +1 -1
  276. package/docs/guide/platform/installation/setup.md +12 -0
  277. package/docs/guide/queues.md +9 -5
  278. package/docs/guide/storage.md +0 -4
  279. package/docs/guide/type-safety.md +18 -12
  280. package/docs/guide/websockets.md +72 -1
  281. package/docs/integrations/frameworks/overview.md +7 -0
  282. package/docs/integrations/hono.md +4 -3
  283. package/docs/reference/api/auth.md +8 -8
  284. package/docs/reference/api/deploy.md +1 -1
  285. package/docs/reference/api/pages.md +2 -0
  286. package/docs/reference/api.md +2 -1
  287. package/docs/reference/cli/platform-config.md +33 -7
  288. package/docs/reference/cli/platform-installation.md +4 -1
  289. package/docs/reference/cli/platform-users.md +48 -35
  290. package/docs/reference/cli.md +2 -2
  291. package/docs/reference/config.md +13 -1
  292. package/package.json +165 -160
  293. package/schema.json +12 -1
  294. package/dist/cf-build-output-DUZnAeZ1.mjs +0 -1
  295. package/dist/deploy-Dr_Qamzw.mjs +0 -2
  296. package/dist/email-BHY72ixO.mjs +0 -165
  297. package/dist/gen-DmEeVEs4.mjs +0 -1
  298. package/dist/help-Cp3K5m1w.mjs +0 -1
  299. package/dist/login-DBs8JuSl.mjs +0 -1
  300. package/dist/migrate-BYhoIK9R.mjs +0 -1
  301. package/dist/operator-cmd-xCACDtT1.mjs +0 -1
  302. package/dist/platform-args-DSi4_M8n.mjs +0 -1
  303. package/dist/prepare-BSXKz6m8.mjs +0 -1
  304. package/dist/runtime/auth-client-react.d.mts +0 -2
  305. package/dist/runtime/auth-client-react.mjs +0 -1
  306. package/dist/runtime/auth-client-solid.d.mts +0 -2
  307. package/dist/runtime/auth-client-solid.mjs +0 -1
  308. package/dist/runtime/auth-client-svelte.d.mts +0 -2
  309. package/dist/runtime/auth-client-svelte.mjs +0 -1
  310. package/dist/runtime/auth-client-vue.d.mts +0 -2
  311. package/dist/runtime/auth-client-vue.mjs +0 -1
  312. package/dist/runtime/auth-client.d.mts +0 -2
  313. package/dist/runtime/auth-client.mjs +0 -1
  314. package/dist/runtime/auth.mjs +0 -1
  315. package/dist/runtime/client-react.d.mts +0 -5
  316. package/dist/runtime/client-react.mjs +0 -5
  317. package/dist/runtime/client-solid.d.mts +0 -5
  318. package/dist/runtime/client-solid.mjs +0 -5
  319. package/dist/runtime/client-svelte.d.mts +0 -5
  320. package/dist/runtime/client-svelte.mjs +0 -5
  321. package/dist/runtime/client-vue.d.mts +0 -5
  322. package/dist/runtime/client-vue.mjs +0 -5
  323. package/dist/runtime/client.d.mts +0 -5
  324. package/dist/runtime/client.mjs +0 -5
  325. package/dist/runtime/env-public.d.mts +0 -4
  326. package/dist/runtime/fetch-stream.d.mts +0 -3
  327. package/dist/runtime/fetch-stream.mjs +0 -3
  328. package/dist/runtime/fetch.mjs +0 -3
  329. package/dist/runtime/live.mjs +0 -1
  330. package/dist/runtime/queues.d.mts +0 -2
  331. package/dist/runtime/sse.mjs +0 -1
  332. package/dist/runtime/validator.d.mts +0 -2
  333. package/dist/runtime/validator.mjs +0 -1
  334. package/dist/runtime/ws.d.mts +0 -2
  335. package/dist/scan-4YOxDaw2.mjs +0 -970
  336. package/dist/wrangler-fNGvPTlO.mjs +0 -1
  337. /package/dist/{auth-client-6-Ft9i9T.d.mts → client-6-Ft9i9T.d.mts} +0 -0
  338. /package/dist/{auth-client-react-DvQLe5Zb.d.mts → client-react-DvQLe5Zb.d.mts} +0 -0
  339. /package/dist/{auth-client-solid-P9pEtKGp.d.mts → client-solid-P9pEtKGp.d.mts} +0 -0
  340. /package/dist/{auth-client-svelte-B5j8irT6.d.mts → client-svelte-B5j8irT6.d.mts} +0 -0
  341. /package/dist/{auth-client-vue-BEiAfavk.d.mts → client-vue-BEiAfavk.d.mts} +0 -0
  342. /package/dist/{migration-handler-D8mDx3Ew.d.mts → d1-handler-D8mDx3Ew.d.mts} +0 -0
  343. /package/dist/{env-helpers-U56xuFgL.d.mts → helpers-U56xuFgL.d.mts} +0 -0
  344. /package/dist/{auth-CV9kXHKe.d.mts → index-CV9kXHKe.d.mts} +0 -0
  345. /package/dist/{queues-DdM42xXW.d.mts → index-DdM42xXW.d.mts} +0 -0
  346. /package/dist/{limits-_xIf5z_P.d.mts → index-_xIf5z_P.d.mts} +0 -0
  347. /package/dist/runtime/{ai.d.mts → ai/index.d.mts} +0 -0
  348. /package/dist/runtime/{db.d.mts → db/index.d.mts} +0 -0
  349. /package/dist/runtime/{db-mysql.d.mts → db/mysql.d.mts} +0 -0
  350. /package/dist/runtime/{db-mysql.mjs → db/mysql.mjs} +0 -0
  351. /package/dist/runtime/{db-pg.d.mts → db/postgres.d.mts} +0 -0
  352. /package/dist/runtime/{db-pg.mjs → db/postgres.mjs} +0 -0
  353. /package/dist/runtime/{schema-d1.d.mts → db/schema/d1.d.mts} +0 -0
  354. /package/dist/runtime/{schema-d1.mjs → db/schema/d1.mjs} +0 -0
  355. /package/dist/runtime/{schema-mysql.d.mts → db/schema/mysql.d.mts} +0 -0
  356. /package/dist/runtime/{schema-mysql.mjs → db/schema/mysql.mjs} +0 -0
  357. /package/dist/runtime/{schema-pg.d.mts → db/schema/postgres.d.mts} +0 -0
  358. /package/dist/runtime/{schema-pg.mjs → db/schema/postgres.mjs} +0 -0
  359. /package/dist/runtime/{seed.d.mts → db/seed.d.mts} +0 -0
  360. /package/dist/runtime/{drizzle-arktype.d.mts → db/validators/drizzle-arktype.d.mts} +0 -0
  361. /package/dist/runtime/{drizzle-arktype.mjs → db/validators/drizzle-arktype.mjs} +0 -0
  362. /package/dist/runtime/{drizzle-valibot.d.mts → db/validators/drizzle-valibot.d.mts} +0 -0
  363. /package/dist/runtime/{drizzle-valibot.mjs → db/validators/drizzle-valibot.mjs} +0 -0
  364. /package/dist/runtime/{drizzle-zod.d.mts → db/validators/drizzle-zod.d.mts} +0 -0
  365. /package/dist/runtime/{drizzle-zod.mjs → db/validators/drizzle-zod.mjs} +0 -0
  366. /package/dist/runtime/{durable.d.mts → durable/index.d.mts} +0 -0
  367. /package/dist/runtime/{email-protocol.d.mts → email/protocol.d.mts} +0 -0
  368. /package/dist/runtime/{response.d.mts → handler/response.d.mts} +0 -0
  369. /package/dist/runtime/{isr.d.mts → isr/index.d.mts} +0 -0
  370. /package/dist/runtime/{kv.d.mts → kv/index.d.mts} +0 -0
  371. /package/dist/runtime/{live-server.d.mts → live/server.d.mts} +0 -0
  372. /package/dist/runtime/{log.d.mts → log/index.d.mts} +0 -0
  373. /package/dist/runtime/{sse.d.mts → sse/index.d.mts} +0 -0
  374. /package/dist/runtime/{storage.d.mts → storage/index.d.mts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { d as deriveDurableResourceIdentity, f as inferDurableResourceName, t as analyzeApplicationSync } from "./application-analysis-3VVsflWZ.mjs";
3
- import { n as VOID_LOCK_FILE } from "./cloudflare-config-PxbinLLE.mjs";
4
- import { p as readConfig } from "./config-CzFdJYNA.mjs";
5
- import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-DZHmVe1f.mjs";
2
+ import { m as inferDurableResourceName, p as deriveDurableResourceIdentity, t as analyzeApplicationSync } from "./application-analysis-Do1WaGAY.mjs";
3
+ import { n as VOID_LOCK_FILE } from "./cloudflare-config-BfEfIEuY.mjs";
4
+ import { p as readConfig } from "./config-qgt863GH.mjs";
5
+ import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-BGamcCqB.mjs";
6
6
  import { existsSync, readFileSync } from "node:fs";
7
7
  import { isRecord } from "@void/deploy-core";
8
8
  // src/cli/info.ts
@@ -1,25 +1,25 @@
1
1
  import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
3
- import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-PxbinLLE.mjs";
3
+ import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-BfEfIEuY.mjs";
4
4
  import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-MyRJgufB.mjs";
5
5
  import { n as readProjectPaths, o as TYPED_CONFIG_FILE } from "./project-paths-CUhCPMpK.mjs";
6
- import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-B1gkT_wC.mjs";
7
- import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-CzFdJYNA.mjs";
8
- import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DlWQ_hIJ.mjs";
6
+ import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-D1zq1rXr.mjs";
7
+ import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-qgt863GH.mjs";
8
+ import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-CbKmMpHK.mjs";
9
9
  import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
10
- import { r as detectFramework } from "./plugin-inference-DZHmVe1f.mjs";
10
+ import { r as detectFramework } from "./plugin-inference-BGamcCqB.mjs";
11
11
  import { i as readPackageJson, n as hasPackageDependency } from "./package-json-DvS6IFRv.mjs";
12
12
  import { n as getOwnVersion, r as getPackageDir, t as detectAgents } from "./agents-DRo8gzni.mjs";
13
- import { t as connectCloudflare } from "./cloudflare-connect-D1QOosLd.mjs";
13
+ import { t as connectCloudflare } from "./cloudflare-connect-CMcKtA02.mjs";
14
14
  import { c as getToken } from "./auth-CCk9Seol.mjs";
15
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
16
- import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BaUzZnLZ.mjs";
17
- import { t as promptForLoginToken } from "./login-DOE-MkeK.mjs";
15
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
16
+ import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BkVGXGNt.mjs";
17
+ import { t as promptForLoginToken } from "./login-Cihxnu7m.mjs";
18
18
  import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
19
19
  import { t as parseDotenvFile } from "./dotenv-CEI8hapP.mjs";
20
- import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-DtoKdGas.mjs";
20
+ import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-DOK67gE-.mjs";
21
21
  import { l as formatUrl, m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
22
- import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-HS_FSthn.mjs";
22
+ import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-BHWdh1Hx.mjs";
23
23
  import { s as formatProjectCommand } from "./cloudflare-process-wcnaQ5JG.mjs";
24
24
  import { t as MagicString } from "./dist-B6eN80gc.mjs";
25
25
  import { i as hasLocalLockfile, n as drizzleKitBin, r as findInstalledYarnPnpRuntime, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
@@ -163,6 +163,27 @@ function maybeScaffoldEnvTs(root) {
163
163
  entries
164
164
  };
165
165
  }
166
+ // src/cli/init-shell.ts
167
+ /**
168
+ * The directory of the user's shell. Printed commands start there, which is
169
+ * not the project root when init creates a subfolder.
170
+ */
171
+ function shellDirectory() {
172
+ return resolve(process.cwd());
173
+ }
174
+ /** Quote a path for the user's shell, including names containing quotes, $ or backticks. */
175
+ function quoteShellPath(path) {
176
+ if (/^[A-Za-z0-9_@./:-]+$/.test(path)) return path;
177
+ return process.platform === "win32" ? `"${path}"` : `'${path.replaceAll("'", "'\\''")}'`;
178
+ }
179
+ /** Prefix `command` with a `cd` from the user's shell into `root` when they differ. */
180
+ function commandInProject(root, command) {
181
+ const shell = shellDirectory();
182
+ const directory = resolve(root);
183
+ if (directory === shell) return command;
184
+ const path = relative(shell, directory);
185
+ return `cd ${quoteShellPath(path.startsWith("-") ? `./${path}` : path)} && ${command}`;
186
+ }
166
187
  // src/cli/init-git.ts
167
188
  async function setupGit(root, git) {
168
189
  if (git === false) return false;
@@ -204,8 +225,7 @@ async function setupGit(root, git) {
204
225
  }
205
226
  function initialCommitCommand(root) {
206
227
  const directory = resolve(root);
207
- const argument = /^[A-Za-z0-9_@./:-]+$/.test(directory) ? directory : process.platform === "win32" ? `"${directory}"` : `'${directory.replaceAll("'", "'\\''")}'`;
208
- const git = directory === resolve(process.cwd()) ? "git" : `git -C ${argument}`;
228
+ const git = directory === shellDirectory() ? "git" : `git -C ${quoteShellPath(directory)}`;
209
229
  return `${git} add -A && ${git} commit -m "chore: initial commit"`;
210
230
  }
211
231
  // src/cli/starter-ui.css?raw
@@ -1645,14 +1665,14 @@ function writeDatabaseDialect(root, config, dialect) {
1645
1665
  else next.database = database;
1646
1666
  writeVoidProjectConfig(root, next);
1647
1667
  }
1648
- function clearConfiguredDatabase(root, messages) {
1668
+ function clearConfiguredDatabase(root, messages, options) {
1649
1669
  const config = readConfig(root);
1650
1670
  if (getDatabaseDialect(config) === "sqlite") {
1651
- log.info(messages.unchanged);
1671
+ if (!options.quiet) log.info(messages.unchanged);
1652
1672
  return;
1653
1673
  }
1654
1674
  writeDatabaseDialect(root, config, "sqlite");
1655
- log.step(messages.updated);
1675
+ if (!options.quiet) log.step(messages.updated);
1656
1676
  }
1657
1677
  /** Remove `database` entirely: its casing alone still makes Void serve `void/db`. */
1658
1678
  function removeDatabaseConfig(root) {
@@ -1666,30 +1686,30 @@ function removeDatabaseConfig(root) {
1666
1686
  writeVoidProjectConfig(root, next);
1667
1687
  log.step("Removed database config from void.config.ts");
1668
1688
  }
1669
- function applyDatabaseDialect(root, dialect) {
1689
+ function applyDatabaseDialect(root, dialect, options = {}) {
1670
1690
  const config = readConfig(root);
1671
1691
  if (dialect === "postgresql") {
1672
1692
  if (getDatabaseDialect(config) === "postgresql") {
1673
- log.info("PostgreSQL already configured in void.config.ts");
1693
+ if (!options.quiet) log.info("PostgreSQL already configured in void.config.ts");
1674
1694
  return;
1675
1695
  }
1676
1696
  writeDatabaseDialect(root, config, "postgresql");
1677
- log.step("Configured PostgreSQL in void.config.ts");
1697
+ if (!options.quiet) log.step("Configured PostgreSQL in void.config.ts");
1678
1698
  return;
1679
1699
  }
1680
1700
  if (dialect === "mysql") {
1681
1701
  if (getDatabaseDialect(config) === "mysql") {
1682
- log.info("MySQL already configured in void.config.ts");
1702
+ if (!options.quiet) log.info("MySQL already configured in void.config.ts");
1683
1703
  return;
1684
1704
  }
1685
1705
  writeDatabaseDialect(root, config, "mysql");
1686
- log.step("Configured MySQL in void.config.ts");
1706
+ if (!options.quiet) log.step("Configured MySQL in void.config.ts");
1687
1707
  return;
1688
1708
  }
1689
1709
  clearConfiguredDatabase(root, {
1690
1710
  unchanged: "Using default D1 (SQLite) configuration",
1691
1711
  updated: "Updated void.config.ts to use the default D1 (SQLite) configuration"
1692
- });
1712
+ }, options);
1693
1713
  }
1694
1714
  function detectDatabaseSetup(root) {
1695
1715
  const dialect = getDatabaseDialect(readConfig(root));
@@ -1806,11 +1826,9 @@ async function promptDatabaseSetup(root) {
1806
1826
  }
1807
1827
  return choice;
1808
1828
  }
1809
- async function promptDeploymentPlatform(root, deploy) {
1810
- if (deploy) {
1811
- writeDeploymentPlatform(root, deploy);
1812
- return deploy;
1813
- }
1829
+ /** Ask where the project deploys, unless `deploy` answers it. The caller saves the answer. */
1830
+ async function askDeploymentPlatform(root, deploy) {
1831
+ if (deploy) return deploy;
1814
1832
  assertInteractive("deploy", DEPLOYMENT_PLATFORMS);
1815
1833
  const current = readDeploymentPlatform(root);
1816
1834
  const choice = await select({
@@ -1838,9 +1856,7 @@ async function promptDeploymentPlatform(root, deploy) {
1838
1856
  cancel("Setup cancelled.");
1839
1857
  process.exit(0);
1840
1858
  }
1841
- const platform = choice;
1842
- writeDeploymentPlatform(root, platform);
1843
- return platform;
1859
+ return choice;
1844
1860
  }
1845
1861
  async function ensureVoidPlatformConnection(root) {
1846
1862
  let selectedApiUrl = null;
@@ -1877,7 +1893,6 @@ async function setupCloudflareDeployment(root) {
1877
1893
  note("Run `void connect --platform cloudflare` when you want to finish Cloudflare setup.", "Cloudflare deployment");
1878
1894
  }
1879
1895
  }
1880
- /** Get the dev command for a detected framework. */
1881
1896
  function getDevCommand(root, framework) {
1882
1897
  if (!framework) return formatProjectCommand(root, "vite dev");
1883
1898
  switch (framework.name) {
@@ -2251,7 +2266,7 @@ function scaffoldPagesApp(root, packageManager, framework, starterMode, toolchai
2251
2266
  log.step("Updated package.json with starter scripts and dependencies");
2252
2267
  for (const [filePath, content] of Object.entries(template.files)) writeFileIfMissing(root, filePath, content);
2253
2268
  ensureGitignore(root);
2254
- if (starterMode !== "static") applyDatabaseDialect(root, starterMode);
2269
+ if (starterMode !== "static") applyDatabaseDialect(root, starterMode, { quiet: true });
2255
2270
  if (starterMode === "postgresql") {
2256
2271
  const devCommand = getDevCommand(root);
2257
2272
  note(`Add DATABASE_URL to .env before running \`${devCommand}\`.\nVoid uses that direct connection for local PostgreSQL development.`, "PostgreSQL local dev");
@@ -2378,7 +2393,6 @@ function ensureExistingProjectViteConfig(root, framework) {
2378
2393
  }
2379
2394
  /** Returns whether a dependency was added. */
2380
2395
  function setupExistingProject(root, framework) {
2381
- log.info("Existing project detected. Configuring Void...");
2382
2396
  const dependencyAdded = ensureExistingProjectPackage(root, { plainViteSetup: framework?.class !== "c" });
2383
2397
  ensureExistingProjectViteConfig(root, framework);
2384
2398
  return dependencyAdded;
@@ -2517,25 +2531,28 @@ async function runInitCommand(root, initArgs) {
2517
2531
  if (migrateLegacyVoidConfig(root)) log.step("Migrated project configuration to void.config.ts. Commit void.config.ts and void.lock.json.");
2518
2532
  const workspaceSubpackage = isInsideWorkspaceSubpackage(root);
2519
2533
  if (workspaceSubpackage && initArgs?.git !== void 0) throw new Error("init: The --git/--no-git options are not available when adding a package to an existing monorepo.");
2520
- const gitInitialized = !workspaceSubpackage && (!targeted || initArgs?.git !== void 0) ? await setupGit(root, initArgs?.git) : false;
2521
2534
  const framework = detectFramework(root);
2535
+ const scaffoldStarter = !targeted && !framework && isScaffoldableEmptyProject(root);
2536
+ if (framework) log.info(`Detected ${framework.name} framework`);
2537
+ else if (scaffoldStarter) log.info("Empty project detected. Creating a Pages starter.");
2538
+ else if (!targeted) log.info("Existing project detected. Configuring Void.");
2539
+ const gitInitialized = !workspaceSubpackage && (!targeted || initArgs?.git !== void 0) ? await setupGit(root, initArgs?.git) : false;
2522
2540
  const preScaffoldState = detectProjectState(root);
2523
2541
  const detectedPagesFramework = detectPagesFramework(root);
2524
2542
  let scaffoldedPagesFramework;
2525
2543
  let scaffoldedStarterMode;
2544
+ let starterDeploymentPlatform;
2526
2545
  let didScaffoldStarter = false;
2527
2546
  let scaffoldAddedDependencies = false;
2528
2547
  let workspaceSubpackageSkip = false;
2529
- if (framework) log.info(`Detected ${framework.name} framework`);
2530
- if (!targeted && !framework && isScaffoldableEmptyProject(root)) {
2531
- log.info("Empty project detected. Scaffolding a Pages starter...");
2548
+ if (scaffoldStarter) {
2532
2549
  const scaffoldToolchain = await promptScaffoldToolchain(initArgs?.toolchain);
2533
2550
  if (detectedPagesFramework) {
2534
2551
  scaffoldedPagesFramework = detectedPagesFramework;
2535
2552
  log.info(`Detected ${SCAFFOLD_FRAMEWORKS[detectedPagesFramework].label} adapter in package.json`);
2536
2553
  } else scaffoldedPagesFramework = await promptScaffoldFramework(initArgs?.framework);
2537
2554
  const starterMode = await promptStarterMode(initArgs?.starter);
2538
- if (initArgs?.deploy === void 0) assertInteractive("deploy", DEPLOYMENT_PLATFORMS);
2555
+ starterDeploymentPlatform = await askDeploymentPlatform(root, initArgs?.deploy);
2539
2556
  const existingPackageJson = readPackageJson(root);
2540
2557
  const hasPackageManager = hasLocalLockfile(root) || existsSync(join(root, "pnpm-workspace.yaml")) || parsePackageManagerField(existingPackageJson) !== void 0 || resolveWorkspaceDeferral(root, existingPackageJson) !== void 0;
2541
2558
  const scaffoldPackageManager = scaffoldToolchain === "vite-plus" && !hasPackageManager ? "pnpm" : preScaffoldState.packageManager;
@@ -2584,9 +2601,9 @@ async function runInitCommand(root, initArgs) {
2584
2601
  const { linkSkillsForSpecificAgents } = await import("./skills-CoBB9_Ao.mjs");
2585
2602
  linkSkillsForSpecificAgents(root, agents);
2586
2603
  } else log.info("Bundled Void docs: node_modules/void/docs/");
2587
- if (!targeted && !framework) {
2604
+ if (!targeted && !framework && !didScaffoldStarter) {
2588
2605
  const existingDemoFiles = Object.values(demoFiles(root)).filter((file) => existsSync(file));
2589
- if (didScaffoldStarter || state.hasRoutes || state.hasMigrations || state.hasPages) log.info("Project already has pages, routes, or migrations, skipping demo");
2606
+ if (state.hasRoutes || state.hasMigrations || state.hasPages) log.info("Project already has pages, routes, or migrations, skipping demo");
2590
2607
  else if (hasDrizzleSchema(root)) log.info("Project already has a database schema, skipping demo");
2591
2608
  else if (existingDemoFiles.length > 0) {
2592
2609
  const names = existingDemoFiles.map((file) => relative(root, file)).join(", ");
@@ -2610,7 +2627,12 @@ async function runInitCommand(root, initArgs) {
2610
2627
  }
2611
2628
  }
2612
2629
  }
2613
- const deploymentPlatform = !targeted ? await promptDeploymentPlatform(root, initArgs?.deploy) : readDeploymentPlatform(root);
2630
+ let deploymentPlatform;
2631
+ if (targeted) deploymentPlatform = readDeploymentPlatform(root);
2632
+ else {
2633
+ deploymentPlatform = starterDeploymentPlatform ?? await askDeploymentPlatform(root, initArgs?.deploy);
2634
+ writeDeploymentPlatform(root, deploymentPlatform);
2635
+ }
2614
2636
  let voidPlatformDiscovery = null;
2615
2637
  if (!targeted && deploymentPlatform === "cloudflare") await setupCloudflareDeployment(root);
2616
2638
  if (!targeted && deploymentPlatform === "void") voidPlatformDiscovery = await ensureVoidPlatformConnection(root);
@@ -2656,6 +2678,9 @@ async function runInitCommand(root, initArgs) {
2656
2678
  if (workspaceSubpackageSkip) {
2657
2679
  if (scaffoldedStarterMode) printSuccess("Project initialized. Run your workspace install, then `void db generate` to finish setup.");
2658
2680
  else printSuccess("Project initialized. Run your workspace install to finish setup.");
2659
- } else printSuccess(`Project initialized. Run \`${getDevCommand(root, framework)}\` to start developing.`);
2681
+ } else {
2682
+ const devCommand = commandInProject(root, getDevCommand(root, framework));
2683
+ printSuccess(`Project initialized. Run \`${devCommand}\` to start developing.`);
2684
+ }
2660
2685
  }
2661
2686
  export { parseInitArgs, runInitCommand };
@@ -1,5 +1,5 @@
1
1
  import { readUsageLimit, readUsageLimit as readUsageLimit$1, usageLimitResponse } from "@void/edge";
2
- // src/runtime/limits.ts
2
+ // src/runtime/limits/index.ts
3
3
  var UsageLimit = class extends Error {
4
4
  name = "UsageLimit";
5
5
  code = "usage_limit";
@@ -1,7 +1,7 @@
1
1
  import { H as outro, L as log, O as cancel } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken, s as getSiteDomain } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
4
- import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BaUzZnLZ.mjs";
3
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
+ import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BkVGXGNt.mjs";
5
5
  import { f as import_picocolors, m as printSuccess } from "./output-DNVILSz2.mjs";
6
6
  import { r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
7
7
  import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
@@ -1,6 +1,6 @@
1
1
  import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
3
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
4
  import { _ as tablePrefix, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
5
5
  import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
6
6
  import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
@@ -42,7 +42,7 @@ async function runListCommand(root, slug) {
42
42
  }
43
43
  async function showCloudflareDeployments(root, slug) {
44
44
  if (slug) throw new Error("project: A project name selects a Void platform project and is not used for direct Cloudflare apps.");
45
- const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-I4t3mt4R.mjs");
45
+ const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-C5RTQNnh.mjs");
46
46
  const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
47
47
  if (status.versions.length === 0) {
48
48
  outro(`No deployments for ${status.workerName}.`);
@@ -1,7 +1,7 @@
1
- import { a as getUser } from "./auth-aMuFOZeI.mjs";
2
- import { a as getRawRuntimeEnv } from "./env-raw-e8qgqAzQ.mjs";
3
- import { n as bytesToBase64 } from "./base64-ikl9yBy3.mjs";
4
- // src/runtime/live-names.ts
1
+ import { a as getUser } from "./auth-YtP6K4J3.mjs";
2
+ import { a as getRawRuntimeEnv } from "./raw-7pQirZpQ.mjs";
3
+ import { n as bytesToBase64 } from "./base64-DwTR12ej.mjs";
4
+ // src/runtime/live/names.ts
5
5
  async function topicDigest(streamId, topic) {
6
6
  const bytes = new TextEncoder().encode(`${streamId}\u0000${topic}`);
7
7
  const digest = await crypto.subtle.digest("SHA-256", bytes);
@@ -16,7 +16,7 @@ function topicInstanceName(streamId, topicKey) {
16
16
  function internalUrl(path) {
17
17
  return `https://void.live${path}`;
18
18
  }
19
- // src/runtime/live.ts
19
+ // src/runtime/live/index.ts
20
20
  let liveBindingName = "VOID_LIVE";
21
21
  let liveDev = false;
22
22
  const registeredStreamIds = /* @__PURE__ */ new Set();
@@ -12,7 +12,7 @@ import { pathToFileURL } from "node:url";
12
12
  *
13
13
  * Side-effect contract: loading the file evaluates the user's `defineEnv`
14
14
  * call, which registers the schema in the singleton state in
15
- * `runtime/env-public.ts`. Callers read the result from there.
15
+ * `runtime/env/public.ts`. Callers read the result from there.
16
16
  *
17
17
  * Node-only (lives under `host/`). Must not be imported from anything
18
18
  * that ships in worker bundles.
@@ -1,5 +1,5 @@
1
1
  import { a as join, c as resolve, i as isAbsolute } from "./dist-DMYe8CZJ.mjs";
2
- import { b as readRootWranglerConfig } from "./wrangler-B1gkT_wC.mjs";
2
+ import { b as readRootWranglerConfig } from "./wrangler-D1zq1rXr.mjs";
3
3
  import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
4
4
  import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
5
5
  import { createHash } from "node:crypto";
@@ -0,0 +1 @@
1
+ export { r as selectPlatformLoginMethod } from "./login-Cihxnu7m.mjs";
@@ -1,6 +1,6 @@
1
1
  import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { a as getApiUrl, c as getToken, f as removeToken, l as getTokenSource, m as savePlatformToken, p as runPlatformLogin } from "./auth-CCk9Seol.mjs";
3
- import { a as isExpiredTokenError, r as PlatformClient } from "./client-D6w5x7hM.mjs";
3
+ import { a as isExpiredTokenError, r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
4
  import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-DNVILSz2.mjs";
5
5
  // src/cli/login.ts
6
6
  async function selectPlatformLoginMethod(platform, requestedId) {
@@ -30,7 +30,7 @@ async function selectPlatformLoginMethod(platform, requestedId) {
30
30
  }
31
31
  async function promptForLoginToken(root = process.cwd(), platform) {
32
32
  const apiUrl = platform?.apiUrl ?? getApiUrl(root);
33
- const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-BLy5uCa-.mjs")).discoverPlatform(apiUrl));
33
+ const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-B1jtqXnu.mjs")).discoverPlatform(apiUrl));
34
34
  const s = createSpinner();
35
35
  s.start(`Opening browser for ${providerName} login...`);
36
36
  try {
@@ -1,6 +1,6 @@
1
1
  import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
3
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
4
  import { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
5
5
  import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
6
6
  import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
@@ -10,7 +10,7 @@ async function runLogsCommand(root, filter, range, deployment, level) {
10
10
  console.log();
11
11
  const platform = readDeploymentPlatform(root);
12
12
  if (platform === "cloudflare") {
13
- const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-I4t3mt4R.mjs");
13
+ const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-C5RTQNnh.mjs");
14
14
  if (range !== "1h") log.warn("Cloudflare tail streams live logs; --range does not select historical entries.");
15
15
  if (level && level !== "all" && level !== "error") log.warn("Cloudflare tail cannot filter individual console levels; showing all invocation logs.");
16
16
  await tailCloudflareWorker(resolveCloudflareOperationContext(root), {
@@ -0,0 +1 @@
1
+ export { n as runMigrateCommand } from "./migrate-DOK67gE-.mjs";
@@ -1,9 +1,9 @@
1
1
  import { L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
3
- import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-PxbinLLE.mjs";
3
+ import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-BfEfIEuY.mjs";
4
4
  import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-CUhCPMpK.mjs";
5
- import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-B1gkT_wC.mjs";
6
- import { h as validateConfig } from "./config-CzFdJYNA.mjs";
5
+ import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-D1zq1rXr.mjs";
6
+ import { h as validateConfig } from "./config-qgt863GH.mjs";
7
7
  import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
8
8
  import { m as printSuccess } from "./output-DNVILSz2.mjs";
9
9
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- // src/runtime/auth-migrations.ts
1
+ // src/runtime/auth/migrations.ts
2
2
  /** Wraps a `mysql2/promise` connection. */
3
3
  function mysqlMigrationRunner(connection) {
4
4
  return {
@@ -1,4 +1,4 @@
1
- import { n as bytesToBase64 } from "./base64-ikl9yBy3.mjs";
1
+ import { n as bytesToBase64 } from "./base64-DwTR12ej.mjs";
2
2
  import { validate } from "email-validator";
3
3
  // src/runtime/email/threading.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { n as splitMigrationSql } from "./migration-handler-DCehTlWs.mjs";
1
+ import { n as splitMigrationSql } from "./d1-handler-C1LH2K2s.mjs";
2
2
  import { createHash, randomUUID } from "node:crypto";
3
- // src/runtime/migration-lock-mysql.ts
3
+ // src/runtime/db/migrations/mysql-lock.ts
4
4
  /**
5
5
  * Migration runs on one MySQL database exclude each other with two kinds of lock, and each run
6
6
  * checks for the other kind after it takes its own:
@@ -120,7 +120,7 @@ function isMissingTable(error) {
120
120
  function errnoOf(error) {
121
121
  return typeof error === "object" && error !== null ? error.errno : void 0;
122
122
  }
123
- // src/runtime/mysql-migration-sql.ts
123
+ // src/runtime/db/migrations/mysql-sql.ts
124
124
  /**
125
125
  * Splits a MySQL migration file into the statements Void runs one query at a time. Hyperdrive
126
126
  * does not accept several statements in one query, and a file that runs statement by statement
package/dist/nitro.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { n as bundleWorkerSqlDriver } from "./wrapper-xJ4LP5A7.mjs";
3
- import { l as getDatabaseDialect, p as readConfig } from "./config-CzFdJYNA.mjs";
4
- import { c as voidDbBundlerPlugin } from "./dispatch-BBfb519j.mjs";
2
+ import { n as bundleWorkerSqlDriver } from "./wrapper-C2gMY432.mjs";
3
+ import { l as getDatabaseDialect, p as readConfig } from "./config-qgt863GH.mjs";
4
+ import { c as voidDbBundlerPlugin } from "./dispatch-DPEuEblR.mjs";
5
5
  import { normalizePath } from "vite";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import { resolve } from "node:path/win32";
@@ -1,7 +1,7 @@
1
1
  import { n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { p as readConfig } from "./config-CzFdJYNA.mjs";
2
+ import { p as readConfig } from "./config-qgt863GH.mjs";
3
3
  import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
4
- import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./auth-migrations-DDeifS3v.mjs";
4
+ import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./migrations-ByS7r3HV.mjs";
5
5
  import { c as loadLocalEnv } from "./env-UqS-21xi.mjs";
6
6
  import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-Do7gJI3T.mjs";
7
7
  import { r as resolveVoidAuthMigrationSchema } from "./drizzle-DBSpPpU1.mjs";
@@ -113,7 +113,7 @@ async function assertAiLoggingPlatform(origin) {
113
113
  const probe = await probePlatformVersion(origin);
114
114
  if (probe.kind === "unknown") return;
115
115
  if (probe.kind === "version") {
116
- const { isOlderPlatformVersion } = await import("./client-66c0RLDM.mjs");
116
+ const { isOlderPlatformVersion } = await import("./client-BEYbgqZw.mjs");
117
117
  if (isOlderPlatformVersion(probe.version, "1.8.0") !== true) return;
118
118
  }
119
119
  throw new OperatorClientError("This platform does not support AI logging policies. Run `void platform upgrade`.", "unsupported");
@@ -0,0 +1 @@
1
+ export { a as runOperatorCommand } from "./operator-cmd-D0vSUVle.mjs";
@@ -1,4 +1,4 @@
1
- import { i as assertAiLoggingPlatform, n as aiLoggingPreviewLines, r as aiLoggingStatusLine, t as aiLoggingChangeLines } from "./operator-ai-logging-DFTEp81Z.mjs";
1
+ import { i as assertAiLoggingPlatform, n as aiLoggingPreviewLines, r as aiLoggingStatusLine, t as aiLoggingChangeLines } from "./operator-ai-logging-CNuX5uKg.mjs";
2
2
  import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-CD3pap65.mjs";
3
3
  import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
4
4
  import { h as sanitizeTerminalText, i as dim, m as printSuccess } from "./output-DNVILSz2.mjs";
@@ -181,8 +181,8 @@ async function runAuth(origin, args) {
181
181
  if (args.action === "login" || args.action === "token" && args.tokenStdin) {
182
182
  if (!args.tokenStdin && !process.stdin.isTTY) throw new OperatorClientError("Browser login requires an interactive terminal. Use --token-stdin to exchange an API session.", "interactive_login_required");
183
183
  const apiToken = args.tokenStdin ? await readOperatorApiTokenStdin() : await (async () => {
184
- const { discoverPlatform } = await import("./platform-cmd-BLy5uCa-.mjs");
185
- const { selectPlatformLoginMethod } = await import("./login-DBs8JuSl.mjs");
184
+ const { discoverPlatform } = await import("./platform-cmd-B1jtqXnu.mjs");
185
+ const { selectPlatformLoginMethod } = await import("./login-C-n1rA0s.mjs");
186
186
  const { runPlatformLogin } = await import("./auth-BN0NU9dz.mjs");
187
187
  return runPlatformLogin(origin, (await selectPlatformLoginMethod(await discoverPlatform(origin), args.provider)).id, (url) => process.stderr.write(`Sign in at ${url}\n`));
188
188
  })();
@@ -367,7 +367,7 @@ function aiLoggingProjectId(args) {
367
367
  }
368
368
  async function runOperatorCommand(args) {
369
369
  if (!args.action) {
370
- const { printHelpPage } = await import("./help-Cp3K5m1w.mjs");
370
+ const { printHelpPage } = await import("./help-Ld6XFol7.mjs");
371
371
  printHelpPage(["platform", args.group]);
372
372
  return;
373
373
  }
@@ -1,8 +1,8 @@
1
- import { d as interpolateRouteParams, p as toUrlString } from "../route-url-C3JwYrER.mjs";
2
- import { t as PageObject } from "../protocol-YS3tbxWE.mjs";
1
+ import { d as interpolateRouteParams, p as toUrlString } from "../route-url-Di1kB8D_.mjs";
2
+ import { t as PageObject } from "../protocol-BlAiF-hc.mjs";
3
3
  import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
4
- import { a as LinkPrefetchValue, i as LinkPrefetchStrategy, n as CacheForInput, r as CacheForResult } from "../prefetch-NdNeubbH.mjs";
5
- import { n as ErrorPageProps, o as PageError } from "../types-IPut3_Yx.mjs";
4
+ import { a as LinkPrefetchValue, i as LinkPrefetchStrategy, n as CacheForInput, r as CacheForResult } from "../prefetch-UINRrqL4.mjs";
5
+ import { n as ErrorPageProps, o as PageError } from "../types-FDH6NuY1.mjs";
6
6
  import { UsageLimitData } from "@void/edge";
7
7
  import { ActionUrl, Href, ResolveActionBody, ResolveActionParams, RouteUrl, RouteUrlInput } from "void/routes";
8
8
  type ActionErrorHandlingScope = "callSite" | "boundary";
@@ -1,6 +1,6 @@
1
- import { r as toUrlString, t as interpolateRouteParams } from "../route-url-CfCR4oMj.mjs";
1
+ import { r as toUrlString, t as interpolateRouteParams } from "../route-url-BBdkU7rb.mjs";
2
2
  import { c as searchWithoutActionKey, n as isSameOrigin, r as PRESERVED_QUERY_HEADER, t as decodePagePath, u as withPageQuery } from "../url-DaehRGKR.mjs";
3
- import { r as parseCacheFor, t as PrefetchCache } from "../prefetch-Dx2jIbtg.mjs";
3
+ import { r as parseCacheFor, t as PrefetchCache } from "../prefetch-C_OUvg5g.mjs";
4
4
  import { t as fetchPages } from "../redirect-Dqb4fEc5.mjs";
5
5
  import { a as serializePageData, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-Pf-CIQK_.mjs";
6
6
  import { PAGES_PROTOCOL_VERSION, readUsageLimit } from "@void/edge";
@@ -203,7 +203,7 @@ function applyClientHead(head) {
203
203
  if (el !== cursor) document.head.insertBefore(el, cursor);
204
204
  cursor = el.nextSibling;
205
205
  }
206
- if (head?.title !== void 0) document.title = head.title;
206
+ document.title = head?.title ?? "";
207
207
  }
208
208
  // src/pages/scroll-restoration.ts
209
209
  const STORAGE_PREFIX = "void:scroll:";
@@ -666,7 +666,7 @@ async function createPageNavigationEngine(config) {
666
666
  let pageData;
667
667
  if (options._refresh) _prefetchCache.flush(fetchUrl, method);
668
668
  const cacheEntry = method === "GET" ? _prefetchCache.get(fetchUrl, method) : null;
669
- if (cacheEntry) {
669
+ if (cacheEntry && !cacheEntry.pending) {
670
670
  const cachedPageData = await cacheEntry.response;
671
671
  _prefetchCache.consume(fetchUrl, method);
672
672
  if (cachedPageData === null) {
@@ -1 +1 @@
1
- export { t as absolutizeHead, n as renderBodyAttrs, r as renderHeadToString, i as renderHtmlAttrs, a as resolveHead } from "../head-CWJhfUwV.mjs";
1
+ export { t as absolutizeHead, n as renderBodyAttrs, r as renderHeadToString, i as renderHtmlAttrs, a as resolveHead } from "../head-0o0QoREY.mjs";
@@ -1,7 +1,7 @@
1
- import "../config-CCWVY7DY.mjs";
2
- import { a as PageDefinition, c as PageScanResult, i as NamedLayoutDefinition, l as RouteEnvironment, n as ErrorPageProps, o as PageError, r as LayoutDefinition } from "../types-IPut3_Yx.mjs";
1
+ import "../config-DuiDZbq7.mjs";
2
+ import { a as PageDefinition, c as PageScanResult, i as NamedLayoutDefinition, l as RouteEnvironment, n as ErrorPageProps, o as PageError, r as LayoutDefinition } from "../types-FDH6NuY1.mjs";
3
3
  import { a as renderHeadToString, i as renderBodyAttrs, n as HeadDescriptor, o as renderHtmlAttrs, s as resolveHead, t as HeadConfig } from "../head-CVO92KEx.mjs";
4
- import { a as LinkPrefetchValue, n as CacheForInput } from "../prefetch-NdNeubbH.mjs";
4
+ import { a as LinkPrefetchValue, n as CacheForInput } from "../prefetch-UINRrqL4.mjs";
5
5
  import { a as serializePageData } from "../serialize-DN-envGQ.mjs";
6
6
  import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
7
7
  import { Plugin, UserConfig } from "vite";
@@ -1,9 +1,9 @@
1
- import { l as resolveNamedLayout, n as scanPages, o as resolveEffectiveLayoutChain, r as generateComponentManifest, s as resolveLayoutChain, t as pageFileEnvironment } from "../scan-4YOxDaw2.mjs";
2
- import { a as resolveHead, i as renderHtmlAttrs, n as renderBodyAttrs, r as renderHeadToString } from "../head-CWJhfUwV.mjs";
1
+ import { l as resolveNamedLayout, n as scanPages, o as resolveEffectiveLayoutChain, r as generateComponentManifest, s as resolveLayoutChain, t as pageFileEnvironment } from "../scan-tDExXbA1.mjs";
2
+ import { a as resolveHead, i as renderHtmlAttrs, n as renderBodyAttrs, r as renderHeadToString } from "../head-0o0QoREY.mjs";
3
3
  import { a as join, n as dirname } from "../dist-DMYe8CZJ.mjs";
4
- import { n as assertLinkPrefetchValue } from "../prefetch-Dx2jIbtg.mjs";
5
- import { r as parseRedirectsFile } from "../headers-Q0kZDpk8.mjs";
6
- import { p as readConfig } from "../config-CzFdJYNA.mjs";
4
+ import { n as assertLinkPrefetchValue } from "../prefetch-C_OUvg5g.mjs";
5
+ import { r as parseRedirectsFile } from "../headers-Cyr87J6Z.mjs";
6
+ import { p as readConfig } from "../config-qgt863GH.mjs";
7
7
  import { a as serializePageData } from "../serialize-Pf-CIQK_.mjs";
8
8
  import { r as resolvePagesDir } from "../project-paths-CUhCPMpK.mjs";
9
9
  import { existsSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { c as PageScanResult } from "../types-IPut3_Yx.mjs";
1
+ import { c as PageScanResult } from "../types-FDH6NuY1.mjs";
2
2
  import { Plugin, ResolvedConfig, UserConfig, ViteDevServer } from "vite";
3
3
  //#region src/SourceMap.d.ts
4
4
  interface SourceMapOptions {
@@ -1,5 +1,5 @@
1
1
  import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
2
- import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-4YOxDaw2.mjs";
2
+ import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-tDExXbA1.mjs";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { isCSSRequest, normalizePath } from "vite";
5
5
  // src/pages/islands-plugin.ts
@@ -1,2 +1,2 @@
1
- import { a as LinkPrefetchValue, c as parseCacheFor, i as LinkPrefetchStrategy, n as CacheForInput, o as PrefetchCache, r as CacheForResult, s as assertLinkPrefetchValue, t as CacheEntry } from "../prefetch-NdNeubbH.mjs";
1
+ import { a as LinkPrefetchValue, c as parseCacheFor, i as LinkPrefetchStrategy, n as CacheForInput, o as PrefetchCache, r as CacheForResult, s as assertLinkPrefetchValue, t as CacheEntry } from "../prefetch-UINRrqL4.mjs";
2
2
  export { CacheEntry, CacheForInput, CacheForResult, LinkPrefetchStrategy, LinkPrefetchValue, PrefetchCache, assertLinkPrefetchValue, parseCacheFor };
@@ -1 +1 @@
1
- export { t as PrefetchCache, n as assertLinkPrefetchValue, r as parseCacheFor } from "../prefetch-Dx2jIbtg.mjs";
1
+ export { t as PrefetchCache, n as assertLinkPrefetchValue, r as parseCacheFor } from "../prefetch-C_OUvg5g.mjs";
@@ -1,3 +1,3 @@
1
- import { w as ValidationError } from "../handler-6fzr_ikp.mjs";
2
- import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-YS3tbxWE.mjs";
3
- export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
1
+ import { w as ValidationError } from "../index-BXdP39qx.mjs";
2
+ import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as recoverPageHttpException, r as flattenValidationErrors, s as safeJsonStringify, t as PageObject } from "../protocol-BlAiF-hc.mjs";
3
+ export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };