void 1.9.1 → 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 (372) 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/{headers-Q0kZDpk8.mjs → headers-Cyr87J6Z.mjs} +1 -1
  71. package/dist/{help-Cgdcd-SG.mjs → help-B1cH8518.mjs} +8 -1
  72. package/dist/help-Ld6XFol7.mjs +1 -0
  73. package/dist/{env-helpers-Dj_SIwPu.mjs → helpers-_OdpnjkJ.mjs} +1 -1
  74. package/dist/{inbound-C2H6Dzz1.mjs → inbound--OF7zkwX.mjs} +4 -4
  75. package/dist/{sandbox-DE1WsxuB.d.mts → index-BESZTC1z.d.mts} +2 -2
  76. package/dist/{ws-C2zy0QBf.d.mts → index-BTmhCDbw.d.mts} +36 -7
  77. package/dist/{handler-6fzr_ikp.d.mts → index-BXdP39qx.d.mts} +4 -6
  78. package/dist/{live-DBybyDt0.d.mts → index-CmqHYj2R.d.mts} +2 -2
  79. package/dist/index.d.mts +4 -4
  80. package/dist/index.mjs +62 -48
  81. package/dist/{info-BbxQ34kk.mjs → info-BE3snw2_.mjs} +4 -4
  82. package/dist/{init-zyRj3QRw.mjs → init-BrS5MAiJ.mjs} +67 -42
  83. package/dist/{limits-CrHLm5Tk.mjs → limits-BCoQLpn3.mjs} +1 -1
  84. package/dist/{link-DAFXuIER.mjs → link-BbzyrCBD.mjs} +2 -2
  85. package/dist/{list-BTIcC3W9.mjs → list-DmppHjVc.mjs} +2 -2
  86. package/dist/{live-Dw7NF1t2.mjs → live-DvtxTUhW.mjs} +5 -5
  87. package/dist/{load-user-env-ztmIyiLx.mjs → load-user-env-BltIJLtl.mjs} +1 -1
  88. package/dist/{local-d1-BnVb7Fem.mjs → local-d1-DLxsKmkw.mjs} +1 -1
  89. package/dist/login-C-n1rA0s.mjs +1 -0
  90. package/dist/{login-DOE-MkeK.mjs → login-Cihxnu7m.mjs} +2 -2
  91. package/dist/{logs-CUsjihc3.mjs → logs-BCgLeLNd.mjs} +2 -2
  92. package/dist/migrate-CKn30rmw.mjs +1 -0
  93. package/dist/{migrate-DtoKdGas.mjs → migrate-DOK67gE-.mjs} +3 -3
  94. package/dist/{auth-migrations-DDeifS3v.mjs → migrations-ByS7r3HV.mjs} +1 -1
  95. package/dist/{mime-CtP6-qAF.mjs → mime-BGoZ8ZLL.mjs} +1 -1
  96. package/dist/{mysql-migration-sql-CI9VTwjt.mjs → mysql-sql-SlpS6OMg.mjs} +3 -3
  97. package/dist/nitro.mjs +3 -3
  98. package/dist/{node-D9dPyUr0.mjs → node-qXD3FbIU.mjs} +2 -2
  99. package/dist/{operator-ai-logging-DFTEp81Z.mjs → operator-ai-logging-CNuX5uKg.mjs} +1 -1
  100. package/dist/operator-cmd-BnLoIO2A.mjs +1 -0
  101. package/dist/{operator-cmd-CQOQrUiO.mjs → operator-cmd-D0vSUVle.mjs} +4 -4
  102. package/dist/pages/client.d.mts +4 -4
  103. package/dist/pages/client.mjs +4 -4
  104. package/dist/pages/index.d.mts +3 -3
  105. package/dist/pages/index.mjs +4 -4
  106. package/dist/pages/islands-plugin.d.mts +1 -1
  107. package/dist/pages/islands-plugin.mjs +1 -1
  108. package/dist/pages/prefetch.d.mts +1 -1
  109. package/dist/pages/prefetch.mjs +1 -1
  110. package/dist/pages/protocol.d.mts +3 -3
  111. package/dist/pages/protocol.mjs +3 -3
  112. package/dist/{pg-DoyPxa_X.mjs → pgpass-CEtnBOZO.mjs} +1 -1
  113. package/dist/{platform-args-DtpHS_75.mjs → platform-args-DQSMW4EP.mjs} +24 -5
  114. package/dist/platform-args-Rgp86xa7.mjs +1 -0
  115. package/dist/{platform-auth-config-fLwIS5VG.mjs → platform-auth-config-V2ifSLQ-.mjs} +4 -4
  116. package/dist/{platform-auth-protection-BTRI_YwD.mjs → platform-auth-protection-BybVCUzi.mjs} +2 -2
  117. package/dist/{platform-auth-recovery-DPK2Mvmo.mjs → platform-auth-recovery-kH1-h8Ch.mjs} +2 -2
  118. package/dist/{platform-cmd-BLy5uCa-.mjs → platform-cmd-B1jtqXnu.mjs} +1 -1
  119. package/dist/{platform-cmd-HS_FSthn.mjs → platform-cmd-BHWdh1Hx.mjs} +5 -5
  120. package/dist/{platform-domain-CHpcq_qg.mjs → platform-domain-DB_KpVhg.mjs} +2 -2
  121. package/dist/{platform-lifecycle-B6LUBwjS.mjs → platform-lifecycle-BoOTmH6H.mjs} +1 -1
  122. package/dist/{platform-lifecycle-D2RS7DE0.mjs → platform-lifecycle-C6fUuj4y.mjs} +146 -71
  123. package/dist/{platform-management-C-T0ch4y.mjs → platform-management-7Bf_OgS5.mjs} +1 -1
  124. package/dist/{platform-management-d3ETv3Dw.mjs → platform-management-B8-pOxoJ.mjs} +9 -2
  125. package/dist/{platform-plans-config-B7yJQKf7.mjs → platform-plans-config-iczSDkQK.mjs} +1 -1
  126. package/dist/{platform-recovery-DS5CAsly.mjs → platform-recovery-ZAXin6WK.mjs} +2 -2
  127. package/dist/{platform-setup-Casiffqj.mjs → platform-setup-CpcHLI-0.mjs} +1 -0
  128. package/dist/{plugin-inference-DZHmVe1f.mjs → plugin-inference-BGamcCqB.mjs} +1 -2
  129. package/dist/{prefetch-Dx2jIbtg.mjs → prefetch-C_OUvg5g.mjs} +4 -0
  130. package/dist/{prefetch-NdNeubbH.d.mts → prefetch-UINRrqL4.d.mts} +1 -0
  131. package/dist/{prepare-AVM4Hj3T.mjs → prepare-BrAkXTTB.mjs} +3 -3
  132. package/dist/prepare-CI7_C9Xf.mjs +1 -0
  133. package/dist/{prepare-DMk8NAO-.mjs → prepare-Cjt6EM0d.mjs} +1 -1
  134. package/dist/{project-cmd-TQKAOTMV.mjs → project-cmd-wtCuc8Ln.mjs} +15 -15
  135. package/dist/{project-team-B1OKeb-T.mjs → project-team-CZFvPIJ-.mjs} +1 -1
  136. package/dist/{project-token-RW_wpmN-.mjs → project-token-C3TxkWeC.mjs} +1 -1
  137. package/dist/{project-zero-trust-TNc66p0_.mjs → project-zero-trust-DrRyAHW1.mjs} +1 -1
  138. package/dist/{protocol-YS3tbxWE.d.mts → protocol-BlAiF-hc.d.mts} +5 -3
  139. package/dist/{email-protocol-DTs_TjCS.mjs → protocol-ChF3kDjf.mjs} +1 -1
  140. package/dist/{protocol-a3ZUQq5W.mjs → protocol-W5EQcIzN.mjs} +40 -20
  141. package/dist/{provision-bgQTi5QZ.mjs → provision-CknEbPuw.mjs} +3 -2
  142. package/dist/{provision-BLdkpFT4.mjs → provision-DdWqRmmr.mjs} +1 -1
  143. package/dist/{env-public-DtJL_hZq.d.mts → public-B80SwOFp.d.mts} +14 -9
  144. package/dist/{env-raw-e8qgqAzQ.mjs → raw-7pQirZpQ.mjs} +1 -1
  145. package/dist/raw-CtfNvKyY.d.mts +3 -0
  146. package/dist/{requests-Cj15-yrI.mjs → requests-FaA9M3RX.mjs} +1 -1
  147. package/dist/{response-HmNjB30w.mjs → response-CyXsGfOy.mjs} +1 -1
  148. package/dist/{rollback-CYnkng7B.mjs → rollback-DM6pZ23Y.mjs} +2 -2
  149. package/dist/{route-types-C6eAOmOj.mjs → route-types-CrODgORq.mjs} +36 -6
  150. package/dist/{route-url-CfCR4oMj.mjs → route-url-BBdkU7rb.mjs} +1 -1
  151. package/dist/{route-url-C3JwYrER.d.mts → route-url-Di1kB8D_.d.mts} +6 -2
  152. package/dist/routes-stub.d.mts +1 -3
  153. package/dist/routes-stub.mjs +1 -1
  154. package/dist/{runner-mysql-BXfcQQj3.mjs → runner-mysql-CJ-HyqxV.mjs} +1 -1
  155. package/dist/{runner-mysql-CHvEg_sy.mjs → runner-mysql-C_PrAUTm.mjs} +1 -1
  156. package/dist/runtime/{ai.mjs → ai/index.mjs} +6 -6
  157. package/dist/runtime/{better-auth.d.mts → auth/better-auth-d1.d.mts} +1 -1
  158. package/dist/runtime/{better-auth.mjs → auth/better-auth-d1.mjs} +3 -3
  159. package/dist/runtime/{better-auth-mysql.d.mts → auth/better-auth-mysql.d.mts} +1 -1
  160. package/dist/runtime/{better-auth-mysql.mjs → auth/better-auth-mysql.mjs} +3 -3
  161. package/dist/runtime/{better-auth-pg.d.mts → auth/better-auth-postgres.d.mts} +1 -1
  162. package/dist/runtime/{better-auth-pg.mjs → auth/better-auth-postgres.mjs} +4 -4
  163. package/dist/runtime/auth/client-react.d.mts +2 -0
  164. package/dist/runtime/auth/client-react.mjs +1 -0
  165. package/dist/runtime/auth/client-solid.d.mts +2 -0
  166. package/dist/runtime/auth/client-solid.mjs +1 -0
  167. package/dist/runtime/auth/client-svelte.d.mts +2 -0
  168. package/dist/runtime/auth/client-svelte.mjs +1 -0
  169. package/dist/runtime/auth/client-vue.d.mts +2 -0
  170. package/dist/runtime/auth/client-vue.mjs +1 -0
  171. package/dist/runtime/auth/client.d.mts +2 -0
  172. package/dist/runtime/auth/client.mjs +1 -0
  173. package/dist/runtime/{auth.d.mts → auth/index.d.mts} +1 -1
  174. package/dist/runtime/auth/index.mjs +1 -0
  175. package/dist/runtime/{fetch-server.d.mts → client/fetch-server.d.mts} +1 -1
  176. package/dist/runtime/{fetch-server.mjs → client/fetch-server.mjs} +3 -3
  177. package/dist/runtime/client/fetch-stream.d.mts +3 -0
  178. package/dist/runtime/client/fetch-stream.mjs +3 -0
  179. package/dist/runtime/{fetch.d.mts → client/fetch.d.mts} +1 -1
  180. package/dist/runtime/client/fetch.mjs +3 -0
  181. package/dist/runtime/client/index.d.mts +5 -0
  182. package/dist/runtime/client/index.mjs +5 -0
  183. package/dist/runtime/client/react.d.mts +5 -0
  184. package/dist/runtime/client/react.mjs +5 -0
  185. package/dist/runtime/client/solid.d.mts +5 -0
  186. package/dist/runtime/client/solid.mjs +5 -0
  187. package/dist/runtime/client/svelte.d.mts +5 -0
  188. package/dist/runtime/client/svelte.mjs +5 -0
  189. package/dist/runtime/client/vue.d.mts +5 -0
  190. package/dist/runtime/client/vue.mjs +5 -0
  191. package/dist/runtime/{db.mjs → db/index.mjs} +2 -2
  192. package/dist/runtime/{migration-handler.d.mts → db/migrations/d1-handler.d.mts} +1 -1
  193. package/dist/runtime/{migration-handler.mjs → db/migrations/d1-handler.mjs} +1 -1
  194. package/dist/runtime/{migration-handler-mysql.d.mts → db/migrations/mysql-handler.d.mts} +1 -1
  195. package/dist/runtime/{migration-handler-mysql.mjs → db/migrations/mysql-handler.mjs} +2 -2
  196. package/dist/runtime/{migration-handler-pg.d.mts → db/migrations/postgres-handler.d.mts} +1 -1
  197. package/dist/runtime/{migration-handler-pg.mjs → db/migrations/postgres-handler.mjs} +2 -2
  198. package/dist/runtime/{seed.mjs → db/seed.mjs} +1 -1
  199. package/dist/runtime/{durable.mjs → durable/index.mjs} +3 -3
  200. package/dist/runtime/{email.d.mts → email/index.d.mts} +1 -1
  201. package/dist/runtime/{email.mjs → email/index.mjs} +6 -6
  202. package/dist/runtime/{email-protocol.mjs → email/protocol.mjs} +1 -1
  203. package/dist/runtime/email/testing.mjs +4 -4
  204. package/dist/runtime/{env-public-client.d.mts → env/public-client.d.mts} +1 -1
  205. package/dist/runtime/{env-public-client.mjs → env/public-client.mjs} +2 -2
  206. package/dist/runtime/env/public.d.mts +4 -0
  207. package/dist/runtime/{env-public.mjs → env/public.mjs} +144 -75
  208. package/dist/runtime/{env.d.mts → env/runtime.d.mts} +1 -2
  209. package/dist/runtime/{env.mjs → env/runtime.mjs} +1 -1
  210. package/dist/runtime/{handler.d.mts → handler/index.d.mts} +1 -1
  211. package/dist/runtime/{handler.mjs → handler/index.mjs} +2 -2
  212. package/dist/runtime/{response.mjs → handler/response.mjs} +1 -1
  213. package/dist/runtime/handler/validator.d.mts +2 -0
  214. package/dist/runtime/handler/validator.mjs +1 -0
  215. package/dist/runtime/{isr.mjs → isr/index.mjs} +2 -2
  216. package/dist/runtime/{kv.mjs → kv/index.mjs} +2 -2
  217. package/dist/runtime/{limits.d.mts → limits/index.d.mts} +1 -1
  218. package/dist/runtime/{limits.mjs → limits/index.mjs} +1 -1
  219. package/dist/runtime/{live-client.d.mts → live/client.d.mts} +2 -2
  220. package/dist/runtime/{live-client.mjs → live/client.mjs} +1 -1
  221. package/dist/runtime/{live.d.mts → live/index.d.mts} +1 -1
  222. package/dist/runtime/live/index.mjs +1 -0
  223. package/dist/runtime/{live-server.mjs → live/server.mjs} +3 -3
  224. package/dist/runtime/{log.mjs → log/index.mjs} +1 -1
  225. package/dist/runtime/queues/index.d.mts +2 -0
  226. package/dist/runtime/{queues.mjs → queues/index.mjs} +2 -2
  227. package/dist/runtime/remote/binding-handler.mjs +1 -1
  228. package/dist/runtime/remote/index.mjs +1 -1
  229. package/dist/runtime/{routing.d.mts → routing/index.d.mts} +7 -2
  230. package/dist/runtime/{routing.mjs → routing/index.mjs} +51 -17
  231. package/dist/runtime/{route-url.d.mts → routing/route-url.d.mts} +1 -1
  232. package/dist/runtime/{route-url.mjs → routing/route-url.mjs} +1 -1
  233. package/dist/runtime/{sandbox-container.d.mts → sandbox/container.d.mts} +1 -1
  234. package/dist/runtime/{sandbox-container.mjs → sandbox/container.mjs} +1 -1
  235. package/dist/runtime/{sandbox.d.mts → sandbox/index.d.mts} +2 -2
  236. package/dist/runtime/{sandbox.mjs → sandbox/index.mjs} +5 -5
  237. package/dist/runtime/{sse-client.d.mts → sse/client.d.mts} +1 -1
  238. package/dist/runtime/{sse-client.mjs → sse/client.mjs} +1 -1
  239. package/dist/runtime/sse/index.mjs +1 -0
  240. package/dist/runtime/{storage.mjs → storage/index.mjs} +2 -2
  241. package/dist/runtime/ws/index.d.mts +2 -0
  242. package/dist/runtime/{ws.mjs → ws/index.mjs} +3 -3
  243. package/dist/runtime/ws/room.d.mts +30 -0
  244. package/dist/runtime/ws/room.mjs +37 -0
  245. package/dist/runtime/{ws-server.d.mts → ws/server.d.mts} +18 -3
  246. package/dist/runtime/ws/server.mjs +1 -0
  247. package/dist/{env-DtKg5G26.mjs → runtime-zDDinDI5.mjs} +2 -2
  248. package/dist/{dist-BWNkVq50.mjs → scan-tDExXbA1.mjs} +978 -11
  249. package/dist/{secret-BSf7dgg_.mjs → secret-DDNLIQOT.mjs} +3 -3
  250. package/dist/{runtime/ws-server.mjs → server-CfUbeOjx.mjs} +60 -19
  251. package/dist/{sse-CxR30yMF.mjs → sse-BXnTfcf3.mjs} +1 -1
  252. package/dist/{static-asset-marker-DsQKz6lt.mjs → static-asset-marker-lxYeKvFP.mjs} +2 -2
  253. package/dist/{types-IPut3_Yx.d.mts → types-FDH6NuY1.d.mts} +0 -5
  254. package/dist/{validation-error-uAAjlsiW.mjs → validation-error-CtcAvyI7.mjs} +1 -1
  255. package/dist/{validator-8-NZs2Xr.mjs → validator-Duafcnh7.mjs} +1 -1
  256. package/dist/{version-metadata-CeftH0fQ.mjs → version-metadata-DEmItNdS.mjs} +1 -1
  257. package/dist/{wrangler-B1gkT_wC.mjs → wrangler-D1zq1rXr.mjs} +20 -3
  258. package/dist/wrangler-DM3GOqck.mjs +1 -0
  259. package/dist/{wrapper-xJ4LP5A7.mjs → wrapper-C2gMY432.mjs} +11 -6
  260. package/docs/guide/ai.md +3 -2
  261. package/docs/guide/auth.md +19 -14
  262. package/docs/guide/database.md +0 -7
  263. package/docs/guide/email/sending.md +0 -1
  264. package/docs/guide/pages-routing/errors.md +23 -1
  265. package/docs/guide/pages-routing/head.md +15 -10
  266. package/docs/guide/pages-routing/loaders.md +19 -0
  267. package/docs/guide/pages-routing/markdown.md +14 -10
  268. package/docs/guide/pages-routing/view-transitions.md +0 -16
  269. package/docs/guide/platform/administration/plans.md +13 -13
  270. package/docs/guide/platform/administration/projects.md +14 -4
  271. package/docs/guide/platform/installation/ci.md +5 -2
  272. package/docs/guide/platform/installation/maintenance.md +5 -2
  273. package/docs/guide/platform/installation/prerequisites.md +1 -1
  274. package/docs/guide/platform/installation/setup.md +12 -0
  275. package/docs/guide/queues.md +9 -5
  276. package/docs/guide/storage.md +0 -4
  277. package/docs/guide/type-safety.md +18 -12
  278. package/docs/guide/websockets.md +72 -1
  279. package/docs/integrations/frameworks/overview.md +7 -0
  280. package/docs/integrations/hono.md +4 -3
  281. package/docs/reference/api/auth.md +8 -8
  282. package/docs/reference/api/deploy.md +1 -1
  283. package/docs/reference/api/pages.md +2 -0
  284. package/docs/reference/api.md +2 -1
  285. package/docs/reference/cli/platform-config.md +33 -7
  286. package/docs/reference/cli/platform-installation.md +4 -1
  287. package/docs/reference/cli/platform-users.md +48 -35
  288. package/docs/reference/cli.md +2 -2
  289. package/docs/reference/config.md +13 -1
  290. package/package.json +165 -160
  291. package/schema.json +12 -1
  292. package/dist/cf-build-output-DUZnAeZ1.mjs +0 -1
  293. package/dist/deploy-Dr_Qamzw.mjs +0 -2
  294. package/dist/email-BHY72ixO.mjs +0 -165
  295. package/dist/gen-DmEeVEs4.mjs +0 -1
  296. package/dist/help-Cp3K5m1w.mjs +0 -1
  297. package/dist/login-DBs8JuSl.mjs +0 -1
  298. package/dist/migrate-BYhoIK9R.mjs +0 -1
  299. package/dist/operator-cmd-xCACDtT1.mjs +0 -1
  300. package/dist/platform-args-DSi4_M8n.mjs +0 -1
  301. package/dist/prepare-BSXKz6m8.mjs +0 -1
  302. package/dist/runtime/auth-client-react.d.mts +0 -2
  303. package/dist/runtime/auth-client-react.mjs +0 -1
  304. package/dist/runtime/auth-client-solid.d.mts +0 -2
  305. package/dist/runtime/auth-client-solid.mjs +0 -1
  306. package/dist/runtime/auth-client-svelte.d.mts +0 -2
  307. package/dist/runtime/auth-client-svelte.mjs +0 -1
  308. package/dist/runtime/auth-client-vue.d.mts +0 -2
  309. package/dist/runtime/auth-client-vue.mjs +0 -1
  310. package/dist/runtime/auth-client.d.mts +0 -2
  311. package/dist/runtime/auth-client.mjs +0 -1
  312. package/dist/runtime/auth.mjs +0 -1
  313. package/dist/runtime/client-react.d.mts +0 -5
  314. package/dist/runtime/client-react.mjs +0 -5
  315. package/dist/runtime/client-solid.d.mts +0 -5
  316. package/dist/runtime/client-solid.mjs +0 -5
  317. package/dist/runtime/client-svelte.d.mts +0 -5
  318. package/dist/runtime/client-svelte.mjs +0 -5
  319. package/dist/runtime/client-vue.d.mts +0 -5
  320. package/dist/runtime/client-vue.mjs +0 -5
  321. package/dist/runtime/client.d.mts +0 -5
  322. package/dist/runtime/client.mjs +0 -5
  323. package/dist/runtime/env-public.d.mts +0 -4
  324. package/dist/runtime/fetch-stream.d.mts +0 -3
  325. package/dist/runtime/fetch-stream.mjs +0 -3
  326. package/dist/runtime/fetch.mjs +0 -3
  327. package/dist/runtime/live.mjs +0 -1
  328. package/dist/runtime/queues.d.mts +0 -2
  329. package/dist/runtime/sse.mjs +0 -1
  330. package/dist/runtime/validator.d.mts +0 -2
  331. package/dist/runtime/validator.mjs +0 -1
  332. package/dist/runtime/ws.d.mts +0 -2
  333. package/dist/scan-4YOxDaw2.mjs +0 -970
  334. package/dist/wrangler-fNGvPTlO.mjs +0 -1
  335. /package/dist/{auth-client-6-Ft9i9T.d.mts → client-6-Ft9i9T.d.mts} +0 -0
  336. /package/dist/{auth-client-react-DvQLe5Zb.d.mts → client-react-DvQLe5Zb.d.mts} +0 -0
  337. /package/dist/{auth-client-solid-P9pEtKGp.d.mts → client-solid-P9pEtKGp.d.mts} +0 -0
  338. /package/dist/{auth-client-svelte-B5j8irT6.d.mts → client-svelte-B5j8irT6.d.mts} +0 -0
  339. /package/dist/{auth-client-vue-BEiAfavk.d.mts → client-vue-BEiAfavk.d.mts} +0 -0
  340. /package/dist/{migration-handler-D8mDx3Ew.d.mts → d1-handler-D8mDx3Ew.d.mts} +0 -0
  341. /package/dist/{env-helpers-U56xuFgL.d.mts → helpers-U56xuFgL.d.mts} +0 -0
  342. /package/dist/{auth-CV9kXHKe.d.mts → index-CV9kXHKe.d.mts} +0 -0
  343. /package/dist/{queues-DdM42xXW.d.mts → index-DdM42xXW.d.mts} +0 -0
  344. /package/dist/{limits-_xIf5z_P.d.mts → index-_xIf5z_P.d.mts} +0 -0
  345. /package/dist/runtime/{ai.d.mts → ai/index.d.mts} +0 -0
  346. /package/dist/runtime/{db.d.mts → db/index.d.mts} +0 -0
  347. /package/dist/runtime/{db-mysql.d.mts → db/mysql.d.mts} +0 -0
  348. /package/dist/runtime/{db-mysql.mjs → db/mysql.mjs} +0 -0
  349. /package/dist/runtime/{db-pg.d.mts → db/postgres.d.mts} +0 -0
  350. /package/dist/runtime/{db-pg.mjs → db/postgres.mjs} +0 -0
  351. /package/dist/runtime/{schema-d1.d.mts → db/schema/d1.d.mts} +0 -0
  352. /package/dist/runtime/{schema-d1.mjs → db/schema/d1.mjs} +0 -0
  353. /package/dist/runtime/{schema-mysql.d.mts → db/schema/mysql.d.mts} +0 -0
  354. /package/dist/runtime/{schema-mysql.mjs → db/schema/mysql.mjs} +0 -0
  355. /package/dist/runtime/{schema-pg.d.mts → db/schema/postgres.d.mts} +0 -0
  356. /package/dist/runtime/{schema-pg.mjs → db/schema/postgres.mjs} +0 -0
  357. /package/dist/runtime/{seed.d.mts → db/seed.d.mts} +0 -0
  358. /package/dist/runtime/{drizzle-arktype.d.mts → db/validators/drizzle-arktype.d.mts} +0 -0
  359. /package/dist/runtime/{drizzle-arktype.mjs → db/validators/drizzle-arktype.mjs} +0 -0
  360. /package/dist/runtime/{drizzle-valibot.d.mts → db/validators/drizzle-valibot.d.mts} +0 -0
  361. /package/dist/runtime/{drizzle-valibot.mjs → db/validators/drizzle-valibot.mjs} +0 -0
  362. /package/dist/runtime/{drizzle-zod.d.mts → db/validators/drizzle-zod.d.mts} +0 -0
  363. /package/dist/runtime/{drizzle-zod.mjs → db/validators/drizzle-zod.mjs} +0 -0
  364. /package/dist/runtime/{durable.d.mts → durable/index.d.mts} +0 -0
  365. /package/dist/runtime/{email-protocol.d.mts → email/protocol.d.mts} +0 -0
  366. /package/dist/runtime/{response.d.mts → handler/response.d.mts} +0 -0
  367. /package/dist/runtime/{isr.d.mts → isr/index.d.mts} +0 -0
  368. /package/dist/runtime/{kv.d.mts → kv/index.d.mts} +0 -0
  369. /package/dist/runtime/{live-server.d.mts → live/server.d.mts} +0 -0
  370. /package/dist/runtime/{log.d.mts → log/index.d.mts} +0 -0
  371. /package/dist/runtime/{sse.d.mts → sse/index.d.mts} +0 -0
  372. /package/dist/runtime/{storage.d.mts → storage/index.d.mts} +0 -0
@@ -0,0 +1 @@
1
+ export { r as runGenCommand } from "./gen-CjcH6DJS.mjs";
@@ -1,7 +1,7 @@
1
1
  import { K as select, L as log, O as cancel, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
3
- import { l as getDatabaseDialect, p as readConfig } from "./config-CzFdJYNA.mjs";
4
- import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DlWQ_hIJ.mjs";
3
+ import { l as getDatabaseDialect, p as readConfig } from "./config-qgt863GH.mjs";
4
+ import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-CbKmMpHK.mjs";
5
5
  import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
6
6
  import { n as readJournal, t as collectMigrations } from "./collect-C6Blu9yw.mjs";
7
7
  import { t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
@@ -329,7 +329,7 @@ async function runModel(root, name, columns) {
329
329
  const existing = readFileSync(barrelPath, "utf-8");
330
330
  if (!existing.includes(exportLine)) writeFileSync(barrelPath, existing.trimEnd() + "\n" + exportLine + "\n");
331
331
  } else writeFileSync(barrelPath, exportLine + "\n");
332
- const { prepareProject } = await import("./prepare-BSXKz6m8.mjs");
332
+ const { prepareProject } = await import("./prepare-CI7_C9Xf.mjs");
333
333
  await prepareProject(root);
334
334
  log.step(`Created ${relative(root, modelPath)}`);
335
335
  log.step(`Updated ${relative(root, barrelPath)}`);
@@ -462,6 +462,7 @@ type Message = {};
462
462
 
463
463
  // export const maxBatchSize = 10;
464
464
  // export const maxBatchTimeout = 5;
465
+ // export const maxConcurrency = 2;
465
466
 
466
467
  export default defineQueue<Message>(async (batch, env) => {
467
468
  for (const message of batch.messages) {
@@ -1,6 +1,6 @@
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 { c as getToken, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback, u as openBrowser } from "./auth-CCk9Seol.mjs";
3
- import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-D6w5x7hM.mjs";
3
+ import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
4
  import { t as collectGitDeployMetadata } from "./git-metadata-Cukp5kV5.mjs";
5
5
  import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-DNVILSz2.mjs";
6
6
  import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
@@ -1,8 +1,8 @@
1
- import { t as base64ToBytes } from "./base64-ikl9yBy3.mjs";
2
- import { a as executeComposedHandler, s as setHandlerComposition } from "./validation-error-uAAjlsiW.mjs";
3
- import { t as convertReturnValue } from "./response-HmNjB30w.mjs";
4
- import { t as runValidation } from "./validator-8-NZs2Xr.mjs";
5
- // src/runtime/handler.ts
1
+ import { t as base64ToBytes } from "./base64-DwTR12ej.mjs";
2
+ import { a as executeComposedHandler, s as setHandlerComposition } from "./validation-error-CtcAvyI7.mjs";
3
+ import { t as convertReturnValue } from "./response-CyXsGfOy.mjs";
4
+ import { t as runValidation } from "./validator-Duafcnh7.mjs";
5
+ // src/runtime/handler/index.ts
6
6
  /**
7
7
  * Thrown when `c.rewrite()` is called with a destination whose final path
8
8
  * segment ends in a known static-asset extension (e.g. `/hero.png`,
@@ -1,5 +1,5 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { a as convertRewritesConfig, d as isProtocolRelative, f as parseHostPrefixedSource, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-CzFdJYNA.mjs";
2
+ import { a as convertRewritesConfig, d as isProtocolRelative, f as parseHostPrefixedSource, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-qgt863GH.mjs";
3
3
  import { i as voidWarn } from "./log-D9hwSySP.mjs";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
  // src/asset-routing.ts
@@ -699,6 +699,10 @@ const HELP_TREE = {
699
699
  {
700
700
  command: "--yes",
701
701
  description: "Acknowledge changes without an interactive prompt"
702
+ },
703
+ {
704
+ command: "--storage-location <hint|automatic>",
705
+ description: "Default R2 location hint for new project buckets (apac, eeur, enam, weur, wnam, oc)"
702
706
  }
703
707
  ]
704
708
  },
@@ -1788,7 +1792,7 @@ function withProjectOption(summary, usage) {
1788
1792
  function lifecycleHelp(command, summary) {
1789
1793
  return {
1790
1794
  summary,
1791
- usage: [`void platform ${command} [id] [--plan]${command === "disable" ? "" : " [--runtime <path>]"}${command === "upgrade" || command === "repair" ? " [--dashboard-url <origin>] [--custom-domains]" : ""}${command === "upgrade" ? " [--runtime-logs <full|minimal>]" : ""}${command === "repair" ? " [--auth-config <path>]" : ""} [--yes]`],
1795
+ usage: [`void platform ${command} [id] [--plan]${command === "disable" ? "" : " [--runtime <path>]"}${command === "upgrade" || command === "repair" ? " [--dashboard-url <origin>] [--custom-domains]" : ""}${command === "upgrade" ? " [--runtime-logs <full|minimal>] [--storage-location <hint|automatic>]" : ""}${command === "repair" ? " [--auth-config <path>]" : ""} [--yes]`],
1792
1796
  options: [
1793
1797
  {
1794
1798
  command: "--plan",
@@ -1808,6 +1812,9 @@ function lifecycleHelp(command, summary) {
1808
1812
  ...command === "upgrade" ? [{
1809
1813
  command: "--runtime-logs <full|minimal>",
1810
1814
  description: "minimal keeps request URLs, console and exception messages out of runtime logs; omission keeps the saved setting"
1815
+ }, {
1816
+ command: "--storage-location <hint|automatic>",
1817
+ description: "Default R2 location hint for new project buckets; automatic clears it, omission keeps it"
1811
1818
  }] : [],
1812
1819
  ...command === "repair" ? [{
1813
1820
  command: "--auth-config <path>",
@@ -0,0 +1 @@
1
+ export { r as printHelpPage } from "./help-B1cH8518.mjs";
@@ -1,4 +1,4 @@
1
- // src/runtime/env-helpers.ts
1
+ // src/runtime/env/helpers.ts
2
2
  function build(parse, state) {
3
3
  return {
4
4
  "~standard": {
@@ -1,7 +1,7 @@
1
- import { t as base64ToBytes } from "./base64-ikl9yBy3.mjs";
2
- import { o as withTimeout } from "./email-protocol-DTs_TjCS.mjs";
3
- import { a as getRawRuntimeEnv } from "./env-raw-e8qgqAzQ.mjs";
4
- import { a as normalizeEmail, c as fitsHeaderLine, l as replyReferences, n as MimeError, r as buildMime, s as validateAddressParts, u as threadingId } from "./mime-CtP6-qAF.mjs";
1
+ import { t as base64ToBytes } from "./base64-DwTR12ej.mjs";
2
+ import { a as getRawRuntimeEnv } from "./raw-7pQirZpQ.mjs";
3
+ import { a as normalizeEmail, c as fitsHeaderLine, l as replyReferences, n as MimeError, r as buildMime, s as validateAddressParts, u as threadingId } from "./mime-BGoZ8ZLL.mjs";
4
+ import { o as withTimeout } from "./protocol-ChF3kDjf.mjs";
5
5
  import { EMAIL_MAX_ACTIONS, EMAIL_MAX_INBOUND_BYTES, EMAIL_MAX_INBOUND_HEADERS, EMAIL_MAX_METADATA_BYTES, EMAIL_MAX_REPLY_BYTES, EMAIL_MAX_RESPONSE_BYTES } from "@void/platform/email-protocol";
6
6
  // src/runtime/email/inbound.ts
7
7
  const MAX_ACTIONS = EMAIL_MAX_ACTIONS;
@@ -1,5 +1,5 @@
1
- import { t as UsageLimit } from "./limits-_xIf5z_P.mjs";
2
- import { a as SandboxExecOptions, c as SandboxOptions, i as SandboxContainer } from "./sandbox-container-CZFZdMso.mjs";
1
+ import { t as UsageLimit } from "./index-_xIf5z_P.mjs";
2
+ import { a as SandboxExecOptions, c as SandboxOptions, i as SandboxContainer } from "./container-D584jUxY.mjs";
3
3
  import { Files } from "@cloudflare/sandbox";
4
4
  declare const DEFAULT_SANDBOX_ID = "default";
5
5
  declare const DEFAULT_SANDBOX_BINDING = "SANDBOX";
@@ -1,6 +1,6 @@
1
1
  import { t as StandardSchemaV1 } from "./standard-schema-CuDawHOC.mjs";
2
- import { i as AuthUser } from "./auth-CV9kXHKe.mjs";
3
- import { a as CloudEnv } from "./handler-6fzr_ikp.mjs";
2
+ import { i as AuthUser } from "./index-CV9kXHKe.mjs";
3
+ import { a as CloudEnv } from "./index-BXdP39qx.mjs";
4
4
  import { WebSocketRouteMap } from "void/routes";
5
5
  type MaybePromise<T> = T | Promise<T>;
6
6
  type ParamsRecord = Record<string, string>;
@@ -47,11 +47,29 @@ type RoomContext<ServerEvent = unknown> = WebSocketBaseContext & {
47
47
  readonly room: RoomController<ServerEvent>;
48
48
  readonly connection: WebSocketConnection<ServerEvent>;
49
49
  };
50
+ /**
51
+ * Context for a room action. An action runs for other server code, so it has no
52
+ * request or user; `id` and `params` describe the addressed room instance.
53
+ */
54
+ type RoomActionContext = {
55
+ /** Same instance id a connected client reads as `ctx.id`. */
56
+ readonly id: string;
57
+ readonly params: ParamsRecord;
58
+ readonly env: CloudEnv["Bindings"];
59
+ readonly storage: DurableObjectStorage;
60
+ readonly room: RoomController<unknown>;
61
+ };
62
+ /**
63
+ * Named server-side room actions. `Array<never>` accepts every annotated parameter
64
+ * list, so each action keeps the parameters and return type its author declares.
65
+ * Server events are validated at runtime, but an action's `ctx.room` is not typed
66
+ * against `messages.server`.
67
+ */
68
+ type RoomActions = Record<string, (context: RoomActionContext, ...args: Array<never>) => unknown>;
50
69
  type SocketContext<ServerEvent = unknown> = WebSocketBaseContext & {
51
70
  readonly socket: WebSocketConnection<ServerEvent>;
52
71
  };
53
- type RoomDefinition<ClientSchema extends StandardSchemaV1 = StandardSchemaV1, ServerSchema extends StandardSchemaV1 = StandardSchemaV1> = {
54
- readonly __kind: "room";
72
+ type RoomHooks<ClientSchema extends StandardSchemaV1, ServerSchema extends StandardSchemaV1> = {
55
73
  /** Optional persistent resource name. Pin the name reported by `void info` before moving this route. */
56
74
  readonly name?: string;
57
75
  /** Optional instance key; preserve existing keys when renaming route parameters. */
@@ -70,6 +88,14 @@ type RoomDefinition<ClientSchema extends StandardSchemaV1 = StandardSchemaV1, Se
70
88
  }) => MaybePromise<void>;
71
89
  onRequest?: (ctx: RoomContext<StandardSchemaV1.InferInput<ServerSchema>>) => MaybePromise<Response>;
72
90
  };
91
+ /** Room definition with actions. Required here so `defineRoom()` can type action parameters. */
92
+ interface RoomDefinitionInput<ClientSchema extends StandardSchemaV1, ServerSchema extends StandardSchemaV1, Actions extends RoomActions> extends RoomHooks<ClientSchema, ServerSchema> {
93
+ readonly actions: Actions;
94
+ }
95
+ interface RoomDefinition<ClientSchema extends StandardSchemaV1 = StandardSchemaV1, ServerSchema extends StandardSchemaV1 = StandardSchemaV1, Actions extends RoomActions = {}> extends RoomHooks<ClientSchema, ServerSchema> {
96
+ readonly __kind: "room";
97
+ readonly actions?: Actions;
98
+ }
73
99
  type SocketDefinition<ClientSchema extends StandardSchemaV1 = StandardSchemaV1, ServerSchema extends StandardSchemaV1 = StandardSchemaV1> = {
74
100
  readonly __kind: "socket";
75
101
  /** Optional persistent resource name. Pin the name reported by `void info` before moving this route. */
@@ -90,8 +116,11 @@ type SocketDefinition<ClientSchema extends StandardSchemaV1 = StandardSchemaV1,
90
116
  }) => MaybePromise<void>;
91
117
  onRequest?: (ctx: SocketContext<StandardSchemaV1.InferInput<ServerSchema>>) => MaybePromise<Response>;
92
118
  };
93
- type AnyWebSocketDefinition = RoomDefinition | SocketDefinition;
94
- declare function defineRoom<ClientSchema extends StandardSchemaV1, ServerSchema extends StandardSchemaV1>(definition: Omit<RoomDefinition<ClientSchema, ServerSchema>, "__kind">): RoomDefinition<ClientSchema, ServerSchema>;
119
+ type AnyWebSocketDefinition = RoomDefinition<StandardSchemaV1, StandardSchemaV1, RoomActions> | SocketDefinition;
120
+ declare function defineRoom<ClientSchema extends StandardSchemaV1, ServerSchema extends StandardSchemaV1>(definition: RoomHooks<ClientSchema, ServerSchema> & {
121
+ readonly actions?: never;
122
+ }): RoomDefinition<ClientSchema, ServerSchema>;
123
+ declare function defineRoom<ClientSchema extends StandardSchemaV1, ServerSchema extends StandardSchemaV1, const Actions extends RoomActions>(definition: RoomDefinitionInput<ClientSchema, ServerSchema, Actions>): RoomDefinition<ClientSchema, ServerSchema, Actions>;
95
124
  declare function defineWebSocket<ClientSchema extends StandardSchemaV1, ServerSchema extends StandardSchemaV1>(definition: Omit<SocketDefinition<ClientSchema, ServerSchema>, "__kind">): SocketDefinition<ClientSchema, ServerSchema>;
96
125
  type VoidSocketCloseEvent = {
97
126
  code?: number;
@@ -134,4 +163,4 @@ declare class VoidSocket<P extends keyof WebSocketRouteMap & string> {
134
163
  }
135
164
  declare function connect<P extends keyof WebSocketRouteMap & string>(path: HasParams<P> extends false ? P : never): VoidSocket<P>;
136
165
  declare function connect<P extends keyof WebSocketRouteMap & string>(path: P, options: ConnectOptions<P>): VoidSocket<P>;
137
- export { RoomDefinition as a, VoidSocket as c, WebSocketConnection as d, WebSocketInstanceKey as f, defineWebSocket as h, RoomController as i, VoidSocketCloseEvent as l, defineRoom as m, ConnectCommonOptions as n, SocketContext as o, connect as p, RoomContext as r, SocketDefinition as s, AnyWebSocketDefinition as t, WebSocketBaseContext as u };
166
+ export { defineRoom as _, RoomContext as a, RoomDefinitionInput as c, VoidSocket as d, VoidSocketCloseEvent as f, connect as g, WebSocketInstanceKey as h, RoomActions as i, SocketContext as l, WebSocketConnection as m, ConnectCommonOptions as n, RoomController as o, WebSocketBaseContext as p, RoomActionContext as r, RoomDefinition as s, AnyWebSocketDefinition as t, SocketDefinition as u, defineWebSocket as v };
@@ -1,8 +1,8 @@
1
- import { l as VoidPlatformSandbox } from "./sandbox-DE1WsxuB.mjs";
1
+ import { l as VoidPlatformSandbox } from "./index-BESZTC1z.mjs";
2
2
  import { n as HeadDescriptor, t as HeadConfig } from "./head-CVO92KEx.mjs";
3
- import { i as AuthUser, n as AuthSession } from "./auth-CV9kXHKe.mjs";
4
- import { u as TypedRoutes } from "./route-url-C3JwYrER.mjs";
5
- import { t as DevCssAsset } from "./types-IPut3_Yx.mjs";
3
+ import { i as AuthUser, n as AuthSession } from "./index-CV9kXHKe.mjs";
4
+ import { u as TypedRoutes } from "./route-url-Di1kB8D_.mjs";
5
+ import { t as DevCssAsset } from "./types-FDH6NuY1.mjs";
6
6
  import { t as StandardSchemaV1 } from "./standard-schema-CuDawHOC.mjs";
7
7
  import { Context, Env, ExecutionContext as ExecutionContext$1, MiddlewareHandler, Next, TypedResponse } from "hono";
8
8
  import { RewriteDestination, RouteDestination, RouteUrl, RouteUrlInput } from "void/routes";
@@ -248,9 +248,7 @@ type LoaderOutput<F extends HandlerFn> = Exclude<Awaited<ReturnType<F>>, Respons
248
248
  type MiddlewareFn = (c: CloudContext, next: Next) => ReturnType<MiddlewareHandler<CloudEnv>>;
249
249
  type BasicAuthOptionValue = string | (() => string);
250
250
  interface BasicAuthOptions {
251
- /** Username required by the Basic auth challenge. */
252
251
  username: BasicAuthOptionValue;
253
- /** Password required by the Basic auth challenge. */
254
252
  password: BasicAuthOptionValue;
255
253
  /** Browser prompt realm. Defaults to "Restricted". */
256
254
  realm?: BasicAuthOptionValue;
@@ -1,5 +1,5 @@
1
- import { i as AuthUser } from "./auth-CV9kXHKe.mjs";
2
- import { a as CloudEnv, r as CloudContext } from "./handler-6fzr_ikp.mjs";
1
+ import { i as AuthUser } from "./index-CV9kXHKe.mjs";
2
+ import { a as CloudEnv, r as CloudContext } from "./index-BXdP39qx.mjs";
3
3
  type MaybePromise<T> = T | Promise<T>;
4
4
  type LiveControlRequest = {
5
5
  connectionId: string;
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { C as defer, E as ValidatorSlots, S as InferProps, T as HandlerInput, _ as defineQueue, a as CloudEnv, b as Deferred, c as QueueRetryOptions, d as TypedQueueHandler, f as VoidAssetRewriteError, g as defineMiddleware, h as defineHead, i as CloudContextVariables, l as RenderAssetTags, m as defineHandler, n as CloudBindings, o as QueueBatch, p as basicAuth, r as CloudContext, s as QueueMessage, t as BasicAuthOptions, u as TypedHandler, v as defineRender, x as DeferredState, y as defineScheduled } from "./handler-6fzr_ikp.mjs";
2
- import { i as AuthUser } from "./auth-CV9kXHKe.mjs";
3
- import { t as QueueMap } from "./queues-DdM42xXW.mjs";
1
+ import { C as defer, E as ValidatorSlots, S as InferProps, T as HandlerInput, _ as defineQueue, a as CloudEnv, b as Deferred, c as QueueRetryOptions, d as TypedQueueHandler, f as VoidAssetRewriteError, g as defineMiddleware, h as defineHead, i as CloudContextVariables, l as RenderAssetTags, m as defineHandler, n as CloudBindings, o as QueueBatch, p as basicAuth, r as CloudContext, s as QueueMessage, t as BasicAuthOptions, u as TypedHandler, v as defineRender, x as DeferredState, y as defineScheduled } from "./index-BXdP39qx.mjs";
2
+ import { i as AuthUser } from "./index-CV9kXHKe.mjs";
3
+ import { t as QueueMap } from "./index-DdM42xXW.mjs";
4
4
  import { n as HeadDescriptor, t as HeadConfig } from "./head-CVO92KEx.mjs";
5
- import { l as RouteEnvironment } from "./types-IPut3_Yx.mjs";
5
+ import { l as RouteEnvironment } from "./types-FDH6NuY1.mjs";
6
6
  import { Plugin } from "vite";
7
7
  import { convertToWranglerConfig } from "@cloudflare/config";
8
8
  import { PluginConfig } from "@cloudflare/vite-plugin";
package/dist/index.mjs CHANGED
@@ -1,47 +1,46 @@
1
1
  import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
2
2
  import { a as join, c as resolve, i as isAbsolute, n as dirname, o as normalize, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
3
3
  import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
4
- import { a as hasSandboxSqliteMigration, c as sandboxContainerConfig, i as assertSandboxNamespaceConfig, n as DEFAULT_SANDBOX_CLASS_NAME, p as scanJobsSync, r as SANDBOX_MIGRATION_TAG, s as resolveSandboxConfig, t as analyzeApplicationSync, u as scanQueuesSync } from "./application-analysis-3VVsflWZ.mjs";
5
- import { l as inferBindingsFromSource, m as applyBindingOverrides, n as FRAMEWORK_SCAN_DIRS, t as DEFAULT_SCAN_DIRS, u as staticModuleReferences } from "./plugin-inference-DZHmVe1f.mjs";
6
- import { a as isAssetBypassRule, d as hasDocumentRoutes, l as edgeRulesNeedWorker, n as mergeRoutingRules, o as isGeneratedAssetHeaders, p as resolveAssetRoutingPolicy, s as resolveAssetWorkerBypass, t as lintRoutingPhases, u as hasApiRoutes } from "./headers-Q0kZDpk8.mjs";
4
+ import { a as hasSandboxSqliteMigration, c as sandboxContainerConfig, f as scanQueuesSync, h as scanJobsSync, i as assertSandboxNamespaceConfig, n as DEFAULT_SANDBOX_CLASS_NAME, r as SANDBOX_MIGRATION_TAG, s as resolveSandboxConfig, t as analyzeApplicationSync, u as hasEmailHandlers } from "./application-analysis-Do1WaGAY.mjs";
5
+ import { l as inferBindingsFromSource, m as applyBindingOverrides, n as FRAMEWORK_SCAN_DIRS, t as DEFAULT_SCAN_DIRS, u as staticModuleReferences } from "./plugin-inference-BGamcCqB.mjs";
6
+ import { a as isAssetBypassRule, d as hasDocumentRoutes, l as edgeRulesNeedWorker, n as mergeRoutingRules, o as isGeneratedAssetHeaders, p as resolveAssetRoutingPolicy, s as resolveAssetWorkerBypass, t as lintRoutingPhases, u as hasApiRoutes } from "./headers-Cyr87J6Z.mjs";
7
7
  import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
8
- import { A as syncWranglerWebSockets, E as resolveLiveBindingConfig, O as syncWranglerBindings, T as readWranglerWebSocketTombstones, a as LIVE_MIGRATION_TAG, b as readRootWranglerConfig, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as normalizeWranglerCompatibilityFlags, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, p as findBindingNameOwner, u as ensureWranglerCompat, v as readExistingLiveBindingConfig, x as readWranglerCompat } from "./wrangler-B1gkT_wC.mjs";
9
- import { c as stashCloudflareDeployPointer, i as materializeCloudflareConfig, l as ensureGitignoreLines, o as restoreCloudflarePreviewPointer } from "./cloudflare-config-PxbinLLE.mjs";
10
- import { a as syncAuthTypesFile, i as removeAuthTypesIfPresent, n as generateQueueTypes, s as syncBindingTypes, t as generateRouteTypes } from "./route-types-C6eAOmOj.mjs";
11
- import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, u as isNodeTarget } from "./config-CzFdJYNA.mjs";
12
- import { n as writeLocalD1PersistState, t as resolveLocalD1Target } from "./local-d1-BnVb7Fem.mjs";
8
+ import { A as syncWranglerWebSockets, E as resolveLiveBindingConfig, O as syncWranglerBindings, T as readWranglerWebSocketTombstones, a as LIVE_MIGRATION_TAG, b as readRootWranglerConfig, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as normalizeWranglerCompatibilityFlags, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, p as findBindingNameOwner, u as ensureWranglerCompat, v as readExistingLiveBindingConfig, x as readWranglerCompat } from "./wrangler-D1zq1rXr.mjs";
9
+ import { c as stashCloudflareDeployPointer, i as materializeCloudflareConfig, l as ensureGitignoreLines, o as restoreCloudflarePreviewPointer } from "./cloudflare-config-BfEfIEuY.mjs";
10
+ import { a as syncAuthTypesFile, i as removeAuthTypesIfPresent, n as generateQueueTypes, s as syncBindingTypes, t as generateRouteTypes } from "./route-types-CrODgORq.mjs";
11
+ import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, u as isNodeTarget } from "./config-qgt863GH.mjs";
12
+ import { n as writeLocalD1PersistState, t as resolveLocalD1Target } from "./local-d1-DLxsKmkw.mjs";
13
13
  import { i as voidWarn, n as voidError, r as voidLog, t as setShowTimestamp } from "./log-D9hwSySP.mjs";
14
14
  import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-CCk9Seol.mjs";
15
15
  import { n as ensurePlatformProxyAccess } from "./cf-access-Dnyw8KFY.mjs";
16
16
  import { n as scopedAccessCredentials } from "./cf-access-pejlJmuy.mjs";
17
17
  import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
18
- import { t as migrateBuiltWranglerConfig } from "./cf-config-migrate-Bb-EdAQq.mjs";
18
+ import { t as migrateBuiltWranglerConfig } from "./cf-config-migrate-CHtnM3_C.mjs";
19
19
  import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
20
20
  import { a as findReservedEnvKeys, c as loadLocalEnv, i as findLegacyEnvFiles, l as reservedEnvKeysMessage, o as isClientEnvKey, r as LOCAL_ENV_FILE, s as legacyEnvExampleHint, u as resolveRemoteMode } from "./env-UqS-21xi.mjs";
21
21
  import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-CUhCPMpK.mjs";
22
- import { a as readDeployBuildQueueNames, r as cloudflareQueueName, s as drizzlePlugin, t as generateQueueResolverSource } from "./dispatch-BBfb519j.mjs";
23
- import { _ as parseCapturedMessage, a as DEV_INBOX_ENV_VAR, c as DEV_INBOX_TOKEN_ENV_VAR, f as clearDevBuffer, g as listDevMessages, l as DEV_INBOX_TOKEN_HEADER, m as findDevMessage, n as DEV_INBOX_ACK_VALUE, o as DEV_INBOX_MAX_CAPTURE_BYTES, s as DEV_INBOX_PREFIX, t as DEV_INBOX_ACK_HEADER, u as DEV_INBOX_TOKEN_QUERY, v as pushToDevBuffer } from "./dev-inbox-CUUS6iUg.mjs";
22
+ import { a as readDeployBuildQueueNames, r as cloudflareQueueName, s as drizzlePlugin, t as generateQueueResolverSource } from "./dispatch-DPEuEblR.mjs";
23
+ import { _ as parseCapturedMessage, a as DEV_INBOX_ENV_VAR, c as DEV_INBOX_TOKEN_ENV_VAR, f as clearDevBuffer, g as listDevMessages, l as DEV_INBOX_TOKEN_HEADER, m as findDevMessage, n as DEV_INBOX_ACK_VALUE, o as DEV_INBOX_MAX_CAPTURE_BYTES, s as DEV_INBOX_PREFIX, t as DEV_INBOX_ACK_HEADER, u as DEV_INBOX_TOKEN_QUERY, v as pushToDevBuffer } from "./dev-inbox-BiamQEAa.mjs";
24
24
  import { t as MagicString } from "./dist-B6eN80gc.mjs";
25
25
  import { s as bindingResolver } from "./static-exports-DFkzL-NX.mjs";
26
26
  import { i as isMemberExpression, n as isIdentifier, r as isLiteral } from "./ast-Cv0JwXqb.mjs";
27
27
  import { n as findEnvFileForPaths, r as generateEnvTypes, t as findEnvFile } from "./env-types-WEZw5D-r.mjs";
28
28
  import { i as writeFileIfChanged, r as syncAuthTypesInProjectTsconfig } from "./project-tsconfig-MyRJgufB.mjs";
29
- import { t as loadUserEnvFile } from "./load-user-env-ztmIyiLx.mjs";
29
+ import { t as loadUserEnvFile } from "./load-user-env-BltIJLtl.mjs";
30
30
  import { n as scanWranglerDotenvKeys } from "./dotenv-CEI8hapP.mjs";
31
- import { _ as isRouteEnabledForEnvironment, a as createBoundaryManifest, c as resolveLayoutIds, h as invalidateSourceAnalysis, i as patternToRegex } from "./scan-4YOxDaw2.mjs";
32
- import { n as INTERNAL_BINDING_PREFIXES, t as INTERNAL_BINDING_EXACT_NAMES } from "./env-raw-e8qgqAzQ.mjs";
33
- import { t as ASSET_EXTENSIONS } from "./routing-assets-DJIVOrCh.mjs";
31
+ import { _ as isRouteEnabledForEnvironment, a as createBoundaryManifest, c as resolveLayoutIds, h as invalidateSourceAnalysis, i as patternToRegex } from "./scan-tDExXbA1.mjs";
32
+ import { n as INTERNAL_BINDING_PREFIXES, t as INTERNAL_BINDING_EXACT_NAMES } from "./raw-7pQirZpQ.mjs";
33
+ import { t as ASSET_EXTENSIONS } from "./assets-DZBd7yqh.mjs";
34
34
  import { i as loadVoidAuthConfig, n as devAuthConfigImporter, o as viteAuthConfigImporter, t as AUTH_CONFIG_ENVIRONMENT } from "./config-Do7gJI3T.mjs";
35
35
  import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName, r as hasRevalidate, t as collectPages } from "./isr-config-Czzb4mIq.mjs";
36
36
  import { t as assertNoPrerenderFailures } from "./prerender-render-BAdYhivW.mjs";
37
- import { f as prerenderPages, n as SEND_EMAIL_BINDING, p as prerenderPagesNode } from "./email-cloudflare-DAGpgzY1.mjs";
38
- import { i as safeJsonStringify } from "./protocol-a3ZUQq5W.mjs";
39
- import { n as completeApplicationAnalysis } from "./application-routing-CJRlXCc2.mjs";
37
+ import { f as prerenderPages, n as SEND_EMAIL_BINDING, p as prerenderPagesNode } from "./email-cloudflare-CCIoQueP.mjs";
38
+ import { a as safeJsonStringify } from "./protocol-W5EQcIzN.mjs";
39
+ import { n as completeApplicationAnalysis } from "./application-routing-DrOFahHO.mjs";
40
40
  import { a as validateSsrEntries, n as SSR_SERVER_ENTRY_RELATIVE_PATHS, o as validateSsrEntry, t as SSR_CLIENT_ENTRY_RELATIVE_PATHS } from "./entry-DMgR7XOf.mjs";
41
- import { r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-CeftH0fQ.mjs";
42
- import { r as hasEmailHandlers } from "./email-BHY72ixO.mjs";
43
- import { a as defineMiddleware, c as defineScheduled, i as defineHead, n as basicAuth, o as defineQueue, r as defineHandler, s as defineRender, t as VoidAssetRewriteError } from "./handler-C9SnmeW1.mjs";
44
- import { r as defer } from "./validation-error-uAAjlsiW.mjs";
41
+ import { r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-DEmItNdS.mjs";
42
+ import { a as defineMiddleware, c as defineScheduled, i as defineHead, n as basicAuth, o as defineQueue, r as defineHandler, s as defineRender, t as VoidAssetRewriteError } from "./handler-w_FAiIRu.mjs";
43
+ import { r as defer } from "./validation-error-CtcAvyI7.mjs";
45
44
  import module, { builtinModules, createRequire } from "node:module";
46
45
  import { chmodSync, closeSync, cpSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync, writeSync } from "node:fs";
47
46
  import { createRunnableDevEnvironment, defaultServerConditions, isFileServingAllowed, isRunnableDevEnvironment, loadEnv, normalizePath, parseSync, resolveEnvPrefix } from "vite";
@@ -496,7 +495,7 @@ function readVoidDevCredentials(root) {
496
495
  */
497
496
  async function runAiSetupPrompt(root, token, apiUrl, server) {
498
497
  const { select, text, isCancel, log } = await import("./dist-Cp4b1_T9.mjs");
499
- const { PlatformClient } = await import("./client-66c0RLDM.mjs");
498
+ const { PlatformClient } = await import("./client-BEYbgqZw.mjs");
500
499
  const { attachSelectedPlatform, writeProjectConfig } = await import("./project-DVsTAWFh.mjs");
501
500
  const { inferDefaultSlug } = await import("./resolve-project-C5wC-Hoi.mjs");
502
501
  const { printSuccess } = await import("./output-BsdnNpxa.mjs");
@@ -526,7 +525,7 @@ async function runAiSetupPrompt(root, token, apiUrl, server) {
526
525
  let slug;
527
526
  if (result === "__create__") {
528
527
  const { validateProjectSlug } = await import("./project-slug-BUy0lmyR.mjs");
529
- const { createProjectWithSlugRetry } = await import("./create-project-CQMyzTvK.mjs");
528
+ const { createProjectWithSlugRetry } = await import("./create-project-C-hNdYvD.mjs");
530
529
  let created;
531
530
  try {
532
531
  created = await createProjectWithSlugRetry(client, inferDefaultSlug(root), async (defaultSlug) => {
@@ -1032,7 +1031,7 @@ function cloudflare$1(options) {
1032
1031
  workerConfig = mergeCloudflareConfig(options.config(base), base);
1033
1032
  native = toNativeCloudflareConfig(workerConfig, root);
1034
1033
  pluginNative = structuredClone(native);
1035
- if (environment.command === "build" && native.containers.length > 0) {
1034
+ if (environment.command === "build" && (native.containers?.length ?? 0) > 0) {
1036
1035
  pluginNative.containers = [];
1037
1036
  for (const declaration of Object.values(pluginNative.worker?.exports ?? {})) if ("container" in declaration) delete declaration.container;
1038
1037
  } else if (environment.command === "serve") restoreLocalContainerBindings(pluginNative.worker);
@@ -1109,7 +1108,7 @@ function cloudflare$1(options) {
1109
1108
  }
1110
1109
  if (worker.assetsDir && existsSync(client)) cpSync(client, worker.assetsDir, { recursive: true });
1111
1110
  }
1112
- if (native.containers.length > 0) writeFileAtomic(join(dirname(getRootConfigPath(root)), "void-containers.json"), JSON.stringify({ workerDirectory: relative(root, destination) }));
1111
+ if ((native.containers?.length ?? 0) > 0) writeFileAtomic(join(dirname(getRootConfigPath(root)), "void-containers.json"), JSON.stringify({ workerDirectory: relative(root, destination) }));
1113
1112
  const pointer = join(root, ".wrangler/deploy/config.json");
1114
1113
  const pointerDestination = existsSync(join(root, "void.config.ts")) && process.env["VOID_CLOUDFLARE_DEPLOY_BUILD"] !== "1" ? join(root, ".void/preview-deploy-config.json") : pointer;
1115
1114
  mkdirSync(dirname(pointerDestination), { recursive: true });
@@ -1416,7 +1415,7 @@ function renderDetailHtml(m, href) {
1416
1415
  let cachedModule = null;
1417
1416
  async function loadEnvPublic() {
1418
1417
  if (cachedModule) return cachedModule;
1419
- const mod = await import("./runtime/env-public.mjs");
1418
+ const mod = await import("./runtime/env/public.mjs");
1420
1419
  cachedModule = mod;
1421
1420
  return mod;
1422
1421
  }
@@ -1541,7 +1540,7 @@ function recordHit(node, hits) {
1541
1540
  * Vite plugin that fails the client build when a server-only env key
1542
1541
  * (anything in `defineEnv` not prefixed with `VITE_`) is referenced from a
1543
1542
  * module that ends up in the client bundle. The runtime proxy in
1544
- * `env-public-client.ts` already throws for the same class of bug at
1543
+ * `runtime/env/public-client.ts` already throws for the same class of bug at
1545
1544
  * request time — this plugin moves the diagnosis forward to compile time
1546
1545
  * so it shows up in `pnpm build` and the dev overlay, not in production
1547
1546
  * after an admin clicks the offending route.
@@ -2457,7 +2456,7 @@ function pushDefaultErrorPageHelpers(lines, options) {
2457
2456
  projectRoot: options.projectRoot,
2458
2457
  homeDir: options.homeDir
2459
2458
  })});`);
2460
- lines.push("app.onError(__errorRenderer.onError);");
2459
+ lines.push("app.onError(__createPageErrorHandler(__matchedRoutes, __errorRenderer.onError));");
2461
2460
  }
2462
2461
  /**
2463
2462
  * Returns a lookup that gives each key its own identifier suffix. The suffix
@@ -2494,6 +2493,7 @@ function compileRouteTable(scan, routesDir, middlewareDir, jobsDir, queuesDir, s
2494
2493
  lines.push(`import { AsyncLocalStorage } from "node:async_hooks";`);
2495
2494
  lines.push(`import { Hono } from ${JSON.stringify(options.honoPath)};`);
2496
2495
  lines.push(`import { createRoutingRuntime as __createRoutingRuntime, createHttpRouteHandler as __createHttpRouteHandler, createErrorRenderer as __createErrorRenderer, createPageGetHandler as __createPageGetHandler, createStaticNotFound as __createStaticNotFound, createPageMutationHandler as __createPageMutationHandler, createNamedActionMarker as __createNamedActionMarker, markRouteHandler as __markRouteHandler, createPagesFallback as __createPagesFallback, createModuleLoader as __createModuleLoader, createClientAssetTags as __createClientAssetTags, createManifestLoader as __createManifestLoader, createSsrFallback as __createSsrFallback, createAssetNotFound as __createAssetNotFound, buildPrerenderPath as __buildPrerenderPath } from ${JSON.stringify(ROUTING_RUNTIME_PATH)};`);
2496
+ if (pages) lines.push(`import { createPageErrorHandler as __createPageErrorHandler } from ${JSON.stringify(ROUTING_RUNTIME_PATH)};`);
2497
2497
  if (options.nodeTarget) lines.push(`const withRuntimeEnv = (_env, fn) => fn();`);
2498
2498
  else lines.push(`import { withRuntimeEnv } from ${JSON.stringify(options.runtimeEnvPath)};`);
2499
2499
  if (auth) {
@@ -2508,7 +2508,7 @@ function compileRouteTable(scan, routesDir, middlewareDir, jobsDir, queuesDir, s
2508
2508
  lines.push(`import { migrationSchema as __voidAuthMigrationSchema } from ${JSON.stringify(auth.authSchemaPath)};`);
2509
2509
  if (auth.authConfigPath) lines.push(`import __voidAuthConfig from ${JSON.stringify(auth.authConfigPath)};`);
2510
2510
  }
2511
- if ((webSockets.length > 0 || options.webSocketTombstones?.length) && options.webSocketRuntimePath) lines.push(`import { createWebSocketDurableObject as __createWebSocketDurableObject, createWebSocketTombstoneDurableObject as __createWebSocketTombstoneDurableObject, forwardWebSocketRequest as __forwardWebSocketRequest } from ${JSON.stringify(options.webSocketRuntimePath)};`);
2511
+ if ((webSockets.length > 0 || options.webSocketTombstones?.length) && options.webSocketRuntimePath) lines.push(`import { createWebSocketDurableObject as __createWebSocketDurableObject, createWebSocketTombstoneDurableObject as __createWebSocketTombstoneDurableObject, forwardWebSocketRequest as __forwardWebSocketRequest, __registerWebSocketRoutes } from ${JSON.stringify(options.webSocketRuntimePath)};`);
2512
2512
  if (options.hasLive && options.liveRuntimePath) lines.push(`import { createLiveDurableObject as __createLiveDurableObject } from ${JSON.stringify(options.liveRuntimePath)};`);
2513
2513
  lines.push("");
2514
2514
  for (let i = 0; i < scan.middleware.length; i++) {
@@ -2548,9 +2548,9 @@ function compileRouteTable(scan, routesDir, middlewareDir, jobsDir, queuesDir, s
2548
2548
  const emitEdgeRules = !managedDispatch;
2549
2549
  const fallbackRulesJson = JSON.stringify(emitEdgeRules && options.fallbackRules?.length ? options.dev ? options.fallbackRules : stripOriginForProd(options.fallbackRules) : void 0);
2550
2550
  if (emitEdgeRules && options.redirectRules?.length) compileRoutingRulesMiddleware(lines, options.redirectRules, options.dev === true);
2551
- if (pages && scan.pages.pages.some((page) => page.methods.includes("actions"))) {
2551
+ if (pages) {
2552
2552
  lines.push(`import { matchedRoutes as __matchedRoutes } from ${JSON.stringify(options.honoRoutePath)};`);
2553
- lines.push("app.use(__createNamedActionMarker(__matchedRoutes));");
2553
+ if (scan.pages.pages.some((page) => page.methods.includes("actions"))) lines.push("app.use(__createNamedActionMarker(__matchedRoutes));");
2554
2554
  }
2555
2555
  const headerRules = emitEdgeRules ? options.headerRules : void 0;
2556
2556
  if (headerRules?.length) lines.push(`const __headerRules = ${JSON.stringify(headerRules)};`);
@@ -2606,6 +2606,7 @@ function compileRouteTable(scan, routesDir, middlewareDir, jobsDir, queuesDir, s
2606
2606
  params: route.params,
2607
2607
  className: route.className,
2608
2608
  bindingName: route.bindingName,
2609
+ mode: route.mode,
2609
2610
  ...route.name !== void 0 && { name: route.name }
2610
2611
  })}, ${auth ? "__voidAuthOptions" : "undefined"}, ${auth ? "__resolveVoidAuthState" : "undefined"});`);
2611
2612
  }
@@ -2615,11 +2616,13 @@ function compileRouteTable(scan, routesDir, middlewareDir, jobsDir, queuesDir, s
2615
2616
  params: route.params,
2616
2617
  className: route.className,
2617
2618
  bindingName: route.bindingName,
2619
+ mode: route.mode,
2618
2620
  ...route.name !== void 0 && { name: route.name }
2619
2621
  })))};`);
2620
2622
  lines.push("");
2621
2623
  }
2622
2624
  for (let i = 0; i < webSockets.length; i++) lines.push(`__voidWebSocketRoutes[${i}].key = websocket${i}.key;`);
2625
+ if (webSockets.length > 0 && options.webSocketRuntimePath) lines.push("__registerWebSocketRoutes(__voidWebSocketRoutes);");
2623
2626
  for (const className of options.webSocketTombstones ?? []) lines.push(`export const ${className} = __createWebSocketTombstoneDurableObject(${JSON.stringify(className)});`);
2624
2627
  if (options.webSocketTombstones?.length) lines.push("");
2625
2628
  if (options.hasLive) {
@@ -3054,7 +3057,11 @@ function compilePageRoutes(lines, scan, pages, options, pageNames) {
3054
3057
  const trailingCatchAll = options.trailingSlash && page.catchAll;
3055
3058
  const pattern = trailingCatchAll ? page.pattern.slice(0, -1) : page.pattern;
3056
3059
  const catchAllParam = page.pattern.match(/:([^/{}]+)\{\.\+\}\/$/)?.[1];
3057
- const routeOptions = `{ ${serverImportPath ? "load: _pload_" + safeId + ", " : ""}${mdHeadRef ? "head: " + mdHeadRef + ", " : ""}${trailingCatchAll ? `trailingSlash: true, catchAllParam: ${JSON.stringify(catchAllParam)}, ` : ""}componentId: ${JSON.stringify(page.componentId)}, render: ${renderer}, assets: ${assetTags}, headConfig: __voidHeadConfig, renderOptions: ${JSON.stringify({
3060
+ const middlewareBoundaries = `middlewareBoundaries: ${JSON.stringify({
3061
+ notFound: boundaryManifest.root,
3062
+ errors: (boundaryManifest.pages[page.componentId]?.errors ?? []).filter((id) => !boundaryManifest.plans[id].directory)
3063
+ })}, `;
3064
+ const routeOptions = `{ ${serverImportPath ? "load: _pload_" + safeId + ", " : ""}${mdHeadRef ? "head: " + mdHeadRef + ", " : ""}${trailingCatchAll ? `trailingSlash: true, catchAllParam: ${JSON.stringify(catchAllParam)}, ` : ""}${middlewareBoundaries}componentId: ${JSON.stringify(page.componentId)}, render: ${renderer}, assets: ${assetTags}, headConfig: __voidHeadConfig, renderOptions: ${JSON.stringify({
3058
3065
  renderMode: page.renderMode,
3059
3066
  ...options.dev === true ? { dev: true } : {},
3060
3067
  ...boundaryManifest.pages[page.componentId] && { boundaries: boundaryManifest.pages[page.componentId] }
@@ -3376,13 +3383,18 @@ function getOriginalFrameworkEntry(framework, root, configuredMain) {
3376
3383
  * splitting, *before* constant folding removes the dead branch, so the
3377
3384
  * dispatch file (and its transitive user-cron/queue imports + dev token)
3378
3385
  * would still ship in the production bundle.
3386
+ *
3387
+ * With an `env.ts`, both shapes import it ahead of the framework entry and await `_prepareEnv`
3388
+ * on every request, so `env` from `void/env` serves the schema's values. A key that does not
3389
+ * validate fails only the requests that read it.
3379
3390
  */
3380
3391
  function generateClassATriggerWrapper(root, framework, original, isBuild, dialect, assetsDir = "assets", notFound) {
3381
3392
  const outDir = join(root, ".void");
3382
3393
  mkdirSync(outDir, { recursive: true });
3383
3394
  const wrapperPath = join(outDir, `${framework}-trigger-wrapper.ts`);
3384
3395
  const assetFallback = framework !== "vinext-app" && framework !== "vinext-pages";
3385
- const fetchBody = isBuild ? assetFallback ? ` return serveWithAssets(request, env, await original.fetch(request, env, ctx));` : ` return original.fetch(request, env, ctx);` : ` if (request.method === "POST") {
3396
+ const envFile = findEnvFile(root);
3397
+ const fetchBody = (envFile ? ` await _prepareEnv(env);\n` : "") + (isBuild ? assetFallback ? ` return serveWithAssets(request, env, await original.fetch(request, env, ctx));` : ` return original.fetch(request, env, ctx);` : ` if (request.method === "POST") {
3386
3398
  const pathname = new URL(request.url).pathname;
3387
3399
  if (pathname === "/__void/scheduled" || pathname === "/__void/queue") {
3388
3400
  const { handleDevTrigger } = await import(${JSON.stringify(frameworkTriggersDispatchPath(root))});
@@ -3390,7 +3402,8 @@ function generateClassATriggerWrapper(root, framework, original, isBuild, dialec
3390
3402
  if (response) return response;
3391
3403
  }
3392
3404
  }
3393
- return original.fetch(request, env, ctx);`;
3405
+ return original.fetch(request, env, ctx);`);
3406
+ const envImports = envFile ? `import ${JSON.stringify(envFile)};\nimport { _prepareEnv } from "void/env";\n` : "";
3394
3407
  const scoped = dialect !== "sqlite";
3395
3408
  const fetchMethod = scoped ? ` fetch(request, env, ctx) {
3396
3409
  return withRuntimeEnv(env, async () => {
@@ -3400,7 +3413,7 @@ ${fetchBody.replace(/^/gm, " ")}
3400
3413
  ${fetchBody}
3401
3414
  },`;
3402
3415
  const body = `// @ts-nocheck — Auto-generated by Void ${isBuild ? "for vite build" : "in dev"}. Do NOT edit.
3403
- import original from ${JSON.stringify(original)};
3416
+ ${envImports}import original from ${JSON.stringify(original)};
3404
3417
  export * from ${JSON.stringify(original)};
3405
3418
  ${scoped ? "import { withRuntimeEnv } from \"void/_env\";\n" : ""}
3406
3419
  export default {
@@ -3651,7 +3664,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
3651
3664
  const hasSqlMigrations = existsSync(migrationsDir);
3652
3665
  if (!hasSqlMigrations && !auth?.enabled) return;
3653
3666
  const migrateAuth = async (databaseUrl) => {
3654
- const { runLocalVoidAuthMigrations } = await import("./node-D9dPyUr0.mjs");
3667
+ const { runLocalVoidAuthMigrations } = await import("./node-qXD3FbIU.mjs");
3655
3668
  await runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, auth?.configPath, databaseUrl, devAuthConfigImporter(server));
3656
3669
  };
3657
3670
  const mysqlAuth = dialect === "mysql" && auth?.enabled === true;
@@ -3681,7 +3694,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
3681
3694
  const authWithFiles = authUrl !== void 0 && authUrl === url;
3682
3695
  if (url) {
3683
3696
  const { validateMigrations } = await import("./validate-DY1U9rET.mjs");
3684
- const appliedNames = dialect === "mysql" ? await import("./runner-mysql-CHvEg_sy.mjs").then((runner) => runner.getMySqlAppliedMigrations(url)) : await import("./runner-pg-2pjltt0t.mjs").then((runner) => runner.getPgAppliedMigrations(url));
3697
+ const appliedNames = dialect === "mysql" ? await import("./runner-mysql-C_PrAUTm.mjs").then((runner) => runner.getMySqlAppliedMigrations(url)) : await import("./runner-pg-2pjltt0t.mjs").then((runner) => runner.getPgAppliedMigrations(url));
3685
3698
  const appliedSet = new Set(appliedNames);
3686
3699
  const pending = allMigrations.filter((migration) => !appliedSet.has(migration.name));
3687
3700
  if (pending.length > 0) try {
@@ -3690,14 +3703,14 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
3690
3703
  refuse(err);
3691
3704
  return;
3692
3705
  }
3693
- const applied = dialect === "mysql" ? await import("./runner-mysql-CHvEg_sy.mjs").then((runner) => runner.runMySqlMigrations(migrationsDir, url, authWithFiles ? async (names) => {
3706
+ const applied = dialect === "mysql" ? await import("./runner-mysql-C_PrAUTm.mjs").then((runner) => runner.runMySqlMigrations(migrationsDir, url, authWithFiles ? async (names) => {
3694
3707
  logApplied(names);
3695
3708
  await migrateAuth(url);
3696
3709
  } : void 0)) : await import("./runner-pg-2pjltt0t.mjs").then((runner) => runner.runPgMigrations(migrationsDir, url));
3697
3710
  if (!authWithFiles) logApplied(applied);
3698
3711
  }
3699
3712
  if (authUrl && !authWithFiles) {
3700
- const { withMySqlMigrationLockAt } = await import("./runner-mysql-CHvEg_sy.mjs");
3713
+ const { withMySqlMigrationLockAt } = await import("./runner-mysql-C_PrAUTm.mjs");
3701
3714
  await withMySqlMigrationLockAt(authUrl, () => migrateAuth(authUrl));
3702
3715
  }
3703
3716
  } else if (hasSqlMigrations) {
@@ -4669,17 +4682,17 @@ function routingPlugin(root, options) {
4669
4682
  }
4670
4683
  const resolveFile = (specifier) => fileURLToPath(import.meta.resolve(specifier));
4671
4684
  const handlerFile = resolveFile("#self/handler");
4672
- const runtimeDir = dirname(resolveFile("#self/client"));
4685
+ const authRuntimeDir = dirname(resolveFile("void/auth"));
4673
4686
  const fetchPath = resolveFile("#self/runtime/fetch");
4674
4687
  const fetchStreamPath = resolveFile("#self/runtime/fetch-stream");
4675
4688
  const sandboxRuntimePath = resolveFile("#self/sandbox");
4676
4689
  const drizzleAdapterPath = resolveFile("better-auth/adapters/drizzle");
4677
- let authClientPath = join(runtimeDir, "auth-client.mjs");
4690
+ let authClientPath = join(authRuntimeDir, "client.mjs");
4678
4691
  const explicitAuthClientPaths = {
4679
- react: join(runtimeDir, "auth-client-react.mjs"),
4680
- vue: join(runtimeDir, "auth-client-vue.mjs"),
4681
- svelte: join(runtimeDir, "auth-client-svelte.mjs"),
4682
- solid: join(runtimeDir, "auth-client-solid.mjs")
4692
+ react: join(authRuntimeDir, "client-react.mjs"),
4693
+ vue: join(authRuntimeDir, "client-vue.mjs"),
4694
+ svelte: join(authRuntimeDir, "client-svelte.mjs"),
4695
+ solid: join(authRuntimeDir, "client-solid.mjs")
4683
4696
  };
4684
4697
  const remote = options.remoteMode ? {
4685
4698
  bindingNames: options.bindingNames,
@@ -4736,7 +4749,7 @@ function routingPlugin(root, options) {
4736
4749
  const config = readConfig(root);
4737
4750
  const dialect = getDatabaseDialect(config);
4738
4751
  compileOptions.auth = {
4739
- authRuntimePath: dialect === "postgresql" ? join(runtimeDir, "better-auth-pg.mjs") : dialect === "mysql" ? join(runtimeDir, "better-auth-mysql.mjs") : join(runtimeDir, "better-auth.mjs"),
4752
+ authRuntimePath: dialect === "postgresql" ? join(authRuntimeDir, "better-auth-postgres.mjs") : dialect === "mysql" ? join(authRuntimeDir, "better-auth-mysql.mjs") : join(authRuntimeDir, "better-auth-d1.mjs"),
4740
4753
  authConfigPath,
4741
4754
  authDatabasePath: join(outDir, "better-auth-db.ts"),
4742
4755
  authSchemaPath: join(outDir, "better-auth-schema.ts"),
@@ -4814,7 +4827,7 @@ function routingPlugin(root, options) {
4814
4827
  if (config.plugins.some((plugin) => plugin.name === "void-vue:pages")) return explicitAuthClientPaths.vue;
4815
4828
  if (config.plugins.some((plugin) => plugin.name === "void-svelte:pages")) return explicitAuthClientPaths.svelte;
4816
4829
  if (config.plugins.some((plugin) => plugin.name === "void-solid:pages")) return explicitAuthClientPaths.solid;
4817
- return join(runtimeDir, "auth-client.mjs");
4830
+ return join(authRuntimeDir, "client.mjs");
4818
4831
  }
4819
4832
  function getClientAuthPath(id) {
4820
4833
  const framework = VIRTUAL_CLIENT_RE.exec(id)?.[2];
@@ -5397,6 +5410,7 @@ function mergeWorkerBindings(resolved, input) {
5397
5410
  queue: cloudflareQueueName(q.name, cloudflareNames),
5398
5411
  ...q.maxBatchSize != null && { max_batch_size: q.maxBatchSize },
5399
5412
  ...q.maxBatchTimeout != null && { max_batch_timeout: q.maxBatchTimeout },
5413
+ ...q.maxConcurrency != null && { max_concurrency: q.maxConcurrency },
5400
5414
  ...q.maxRetries != null && { max_retries: q.maxRetries },
5401
5415
  ...q.retryDelay != null && { retry_delay: q.retryDelay }
5402
5416
  }))
@@ -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