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
@@ -9,7 +9,7 @@ Imported from `"void/auth"`. Client-side helpers imported from `"void/client"`.
9
9
 
10
10
  ## `defineAuth(config)` {#defineauth-config}
11
11
 
12
- Advanced escape hatch for customizing Void's Better Auth config.
12
+ Customize Better Auth in a root-level `auth.ts` file. Spread `defaults` to keep Void's configuration:
13
13
 
14
14
  ```ts
15
15
  import { defineAuth } from 'void/auth';
@@ -44,7 +44,7 @@ function getUser(): AuthUser | null;
44
44
 
45
45
  ## `getSession()` {#getsession}
46
46
 
47
- Returns the current Better Auth request state, or `null`.
47
+ Returns the current user and session, or `null` when signed out.
48
48
 
49
49
  ```ts
50
50
  import { getSession } from 'void/auth';
@@ -71,6 +71,8 @@ export const GET = defineHandler((c) => getAuth(c).handler(c.req.raw));
71
71
 
72
72
  Enable [authentication](../../guide/auth.md) before calling this helper; it throws if no instance is available. Anonymous requests can use it too. Call `requireAuth(c)` separately to require a signed-in user.
73
73
 
74
+ Void includes cookies set by `getAuth(c).api` calls in the response. For example, `signInEmail` and `signUpEmail` sign in the current browser. A cross-origin `POST` must come from a configured `trustedOrigins` entry for those cookies to be sent. See [Calling Better Auth APIs](../../guide/auth.md#calling-better-auth-apis) for session updates and account creation.
75
+
74
76
  **Signature:**
75
77
 
76
78
  ```ts
@@ -79,9 +81,7 @@ function getAuth(c: CloudContext): AuthInstance;
79
81
 
80
82
  ## `requireAuth(c, options?)` {#requireauth-c}
81
83
 
82
- Returns the authenticated user from the request context. Without `throwRedirect`, throws a 401 `HTTPException` if no session is present.
83
-
84
- Use it without options in route handlers or actions when you want a plain-text `401`, not an error page:
84
+ Returns the signed-in user or throws a `401` `HTTPException` if no session is present:
85
85
 
86
86
  ```ts
87
87
  import { defineHandler } from 'void';
@@ -93,7 +93,7 @@ export const GET = defineHandler((c) => {
93
93
  });
94
94
  ```
95
95
 
96
- For protected pages, pass `throwRedirect` to [redirect unauthenticated visitors to login](../../guide/auth.md#protect-a-server-route):
96
+ In a page loader or middleware, that exception shows the nearest applicable [`_error` component](../../guide/pages-routing/errors.md#http-exceptions). To send visitors to login instead, pass `throwRedirect`:
97
97
 
98
98
  ```ts
99
99
  import { defineHandler } from 'void';
@@ -105,9 +105,9 @@ export const loader = defineHandler((c) => {
105
105
  });
106
106
  ```
107
107
 
108
- `throwRedirect` works in loaders, actions, and middleware. When signed out, it throws a redirect with status `302` for GET/HEAD requests or `303` for other methods, stopping execution. When signed in, it returns the user normally.
108
+ `throwRedirect` works in loaders, actions, and middleware. For a signed-out request, it stops execution with a `302` redirect for GET/HEAD requests or `303` for other methods. Pages client navigation follows the redirect without a document reload. Signing in does not repeat a rejected action.
109
109
 
110
- The destination is application-controlled.
110
+ Choose a trusted destination in your app; validate any URL supplied by a user before passing it here.
111
111
 
112
112
  **Signature:**
113
113
 
@@ -52,7 +52,7 @@ try {
52
52
  }
53
53
  ```
54
54
 
55
- Pass a Worker output directory containing a generated `wrangler.json`, such as `dist/ssr` or `dist/server`. For native Cloudflare Build Output, pass the project root containing `.cloudflare/output/v0`. The result is a temporary copy for your publication workflow. For Containers built from a local Dockerfile, publish from the same Docker environment used to build the image.
55
+ Pass a Worker output directory containing a generated `wrangler.json`, such as `dist/ssr` or `dist/server`. For native Cloudflare Build Output, pass the project root containing `.cloudflare/output/v1`. Rebuild artifacts made with an older Void version before preparing them with the updated toolchain. The result is a temporary copy for your publication workflow. For Containers built from a local Dockerfile, publish from the same Docker environment used to build the image.
56
56
 
57
57
  | Option | Description |
58
58
  | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -48,6 +48,8 @@ Combine strategies with an array such as `['visible', 'hover']`. The first one t
48
48
 
49
49
  Only same-origin GET links prefetch. `Link` skips prefetching when Chromium reports data saver or a 2G connection. Calling `router.prefetch()` explicitly still loads the page.
50
50
 
51
+ Following a prefetched link reuses its data when ready. If it is still loading, navigation starts a separate request so [deferred props](../../guide/pages-routing/loaders.md#deferred-props) can stream without delaying the page.
52
+
51
53
  Set `cacheFor` in milliseconds or as a duration such as `'5m'`. To show cached data while refreshing it in the background, use a pair such as `['30s', '5m']`: the page stays fresh for 30 seconds and can be reused for up to 5 minutes.
52
54
 
53
55
  Each adapter plugin's `prefetch` option sets app-wide values:
@@ -42,7 +42,8 @@ Import Void's app-facing APIs from these paths:
42
42
  | `void/auth` | `defineAuth`, `getUser`, `getSession`, `requireAuth`, `AuthUser`, `AuthSession`, `AuthState` |
43
43
  | `void/client` | `fetch`, `fetchStream`, `FetchError`, `auth`, `createAuthClient`, `AuthUser`, `AuthSession`, `AuthState` |
44
44
  | `void/client/{framework}` | Same as `void/client`, with framework-specific Better Auth clients for `react`, `vue`, `svelte`, and `solid` |
45
- | `void/ws` | `defineRoom`, `defineWebSocket`, `connect`, WebSocket context and connection types |
45
+ | `void/ws` | `defineRoom`, `defineWebSocket`, `connect`, WebSocket context, connection and action types |
46
+ | `void/ws/server` | `getRoom`, `RoomHandle`, `RoomOptions`, `RoomPath`. Server-only: call room actions from routes, auth hooks, queues and cron jobs. |
46
47
  | `void/durable` | `defineDurableState`, `defineDurableObject`, typed state/RPC/context/migration types |
47
48
  | `void/sse` | `eventStream`, `formatSse`, `formatSseText`, `getLastEventId`, `SseStreamClosedError`, SSE message and stream types |
48
49
  | `void/sse/client` | `connectEventStream`, browser `EventSource` wrapper types |
@@ -7,6 +7,8 @@ outline: deep
7
7
 
8
8
  Use your administrator session for these commands. See [Platform Management](./platform.md#operator-commands) for platform selection, previews, and confirmation.
9
9
 
10
+ ## Plans
11
+
10
12
  `void platform config plans` opens an interactive plan menu using your administrator session. Plans have stable IDs and editable display names. Copy an existing plan to add one, edit limits without redeploying, archive it to stop new assignments, or remove it with an explicit replacement for its accounts.
11
13
 
12
14
  ```sh
@@ -21,11 +23,35 @@ void platform config plans default <plan-id>
21
23
  void platform config plans sync
22
24
  ```
23
25
 
24
- Use `--plan` to preview changes and affected accounts; scripted mutations require `--yes`. Every command supports `--connection <slug-or-url>` and `--json`. `show` reports the effective limits, default, assignments, and pending account and AI logging updates. `show <plan-id>` also reports the plan's AI Gateway logging default. `reset` restores a built-in plan's original limits and build instance size. Archived plans keep their existing accounts but cannot receive new assignments; change the default before archiving it. `remove` requires a replacement for a plan that has accounts or is the default. Changing the default affects new accounts, plus the AI Gateway logging of accounts whose plan is not in the catalog.
26
+ Use `--plan` to preview changes and affected accounts, then `--yes` to apply them in a script. Every command supports `--connection <slug-or-url>` and `--json`.
27
+
28
+ ### Inspect and Manage Plans
29
+
30
+ - `show` reports limits, the signup default, assignments, and pending updates. `show <plan-id>` includes the plan's AI logging default.
31
+ - `reset` restores a built-in plan's original limits and build size.
32
+ - `archive` stops new assignments while keeping existing accounts. Choose another signup default before archiving the current one.
33
+ - `remove` requires a replacement if the plan has accounts or is the signup default.
34
+ - `default` chooses the plan for new accounts. It also changes AI logging for accounts whose assigned plan is missing from the catalog.
35
+
36
+ ### Plan Files
37
+
38
+ For `add` and `set`, `--file` reads a JSON object. All fields are optional; omitted fields keep their current values or the copied plan's values.
39
+
40
+ | Field | Values |
41
+ | ------------------- | ----------------------------------------------------------------------------------------------- |
42
+ | `name` | Display name |
43
+ | `limits` | Partial object of resource limits as nonnegative whole numbers; `0` means unlimited by the plan |
44
+ | `buildInstanceType` | `standard-3` or `standard-4` |
45
+ | `allowShortSlugs` | `true` permits future project slugs of five characters or fewer; `false` requires longer names |
46
+ | `aiLogging` | `off`, `metadata`, or `full`; `inherit` clears the plan's override |
47
+
48
+ Build timeouts have a platform maximum of 60 minutes; `0` uses that maximum. Storage quotas are not editable. Changing `allowShortSlugs` preserves existing URLs. See [Plans and Limits](../../guide/platform/administration/plans.md) for the supported limits and file examples, and [AI Gateway logging](./platform-users.md#ai-gateway-logging) for logging modes.
49
+
50
+ ### Apply and Resume Changes
25
51
 
26
- For `add` and `set`, `--file` reads a JSON object with optional `name`, `limits`, `buildInstanceType`, and boolean `allowShortSlugs`. `limits` is a partial object of nonnegative whole numbers; `0` means unlimited by the plan. Build timeouts remain capped at the platform maximum of 60 minutes; `0` uses that maximum. Omitted settings keep their current values or the copied plan's values. `buildInstanceType` is `standard-3` or `standard-4`. `allowShortSlugs` permits future assignments of project slugs of five characters or fewer; existing URLs remain available. `aiLogging` sets the plan's [AI Gateway logging](./platform-users.md#ai-gateway-logging) default: `off`, `metadata`, or `full`. `"inherit"` clears it; leaving it out keeps the current value. Storage quotas are not editable. See [Plans and Limits](../../guide/platform/administration/plans.md) for supported limits and examples.
52
+ If someone changes the plans after your preview, create a new preview before applying. Lower quotas can restrict accounts already above them. Usage history and billing periods stay unchanged.
27
53
 
28
- An apply checks the preview's revision and rejects concurrent changes. Lower quotas can restrict accounts already above them; usage history and billing periods are preserved. The CLI continues account updates and AI logging publishing until complete, then prints how many projects received the AI logging default and when new requests are expected to follow it. If an update fails or stops making progress, the configuration remains saved and the command exits unsuccessfully. Run `sync --yes` to continue before editing plans again. Inspect `show` and operator events after an uncertain request outcome.
54
+ The CLI updates affected accounts and publishes AI logging defaults, then reports when new AI requests are expected to follow them. If updates fail or stop making progress, the command exits with a nonzero status and the configuration stays saved. Run `void platform config plans sync --yes` to continue before editing plans again. After a lost connection, inspect `show` and [operator events](../../guide/platform/administration/operations.md) before retrying.
29
55
 
30
56
  ## Authentication configuration {#authentication-configuration}
31
57
 
@@ -57,9 +83,9 @@ methods and signup policy are preserved.
57
83
  Adding or editing a method saves a pending configuration. Enabling it verifies the
58
84
  login in your browser before applying it. Linking the verified identity to your
59
85
  account is a separate, explicit action. Before disabling a method, verify a linked
60
- alternative; the last method cannot be disabled. Disabling revokes human sessions
61
- created through that method, including operator sessions. Scoped deployment tokens
62
- remain valid; a human login token used as `VOID_TOKEN` is still revoked.
86
+ alternative; the last method cannot be disabled. Disabling a method signs out
87
+ users who logged in through it, including administrators. Scoped deployment tokens
88
+ remain valid; a login token used as `VOID_TOKEN` is revoked.
63
89
 
64
90
  Commands accept `--connection <slug-or-url>` and `--json`. Changes accept
65
91
  `--plan` or `--yes`. For scripted configuration, use `--file <path>` for the
@@ -79,7 +105,7 @@ Google Workspace method, or an enabled Cloudflare Access gate. In scripts,
79
105
  of login methods. Its `--file` accepts the `cloudflareAccess` object described in
80
106
  [installation setup](../../guide/platform/installation/setup.md#choose-login-methods).
81
107
  Protection changes require installation ownership, the saved recovery credentials,
82
- and a human administrator session. They revoke current human sessions. Before
108
+ and a signed-in administrator. They sign out all users. Before
83
109
  removing protection, change any signup rule that depends on that gate. Cloudflare
84
110
  applications are retained for deliberate cleanup.
85
111
 
@@ -27,6 +27,7 @@ void platform install [options] [--yes]
27
27
  | `--no-dedicated-zone` | Skip zone-wide application catch-all routes |
28
28
  | `--custom-domains` | Let projects add their own domains; needs a dedicated zone |
29
29
  | `--runtime-logs <full\|minimal>` | `minimal` keeps request URLs and log and exception messages out of runtime logs |
30
+ | `--storage-location <hint\|automatic>` | Default location hint for new project R2 buckets; `automatic` clears it |
30
31
  | `--control-plane-domain <domain>` | Optional API custom hostname; defaults to `workers.dev` |
31
32
  | `--no-control-plane-domain` | Use the default `workers.dev` API hostname |
32
33
  | `--dashboard-url <origin>` | HTTPS origin of an optional dashboard deployed separately |
@@ -103,7 +104,7 @@ Use these commands to recover, update, pause, or remove an installation:
103
104
 
104
105
  ```sh
105
106
  void platform discover [--account <id>] [--installation <id-or-name>]
106
- void platform upgrade [id] [--runtime <path>] [--dashboard-url <origin>] [--custom-domains] [--runtime-logs <full|minimal>] [--plan] [--yes]
107
+ void platform upgrade [id] [--runtime <path>] [--dashboard-url <origin>] [--custom-domains] [--runtime-logs <full|minimal>] [--storage-location <hint|automatic>] [--plan] [--yes]
107
108
  void platform rollback [id] --runtime <earlier-path> [--from-runtime <current-path>] [--plan] [--yes]
108
109
  void platform repair [id] [--runtime <path>] [--dashboard-url <origin>] [--custom-domains] [--auth-config <path>] [--plan] [--yes]
109
110
  void platform disable [id] [--plan] [--yes]
@@ -117,6 +118,8 @@ Use the installation slug shown beside its name in `void platform list`. Install
117
118
 
118
119
  `upgrade --runtime-logs <full|minimal>` changes what runtime logs record; without it, upgrades keep the current setting. See [Choose what runtime logs record](../../guide/platform/installation/setup.md#runtime-logs).
119
120
 
121
+ `upgrade --storage-location <hint|automatic>` changes the default location hint for new project R2 buckets. Omission keeps the current setting; `automatic` clears it. Existing buckets stay in place. See [Choose a default storage location](../../guide/platform/installation/setup.md#choose-a-default-storage-location).
122
+
120
123
  To add or explicitly change a separately deployed dashboard after installation,
121
124
  use `repair --dashboard-url <origin>` or `upgrade --dashboard-url <origin>`.
122
125
  Preview with `--plan` first. Existing Access protection must cover the configured
@@ -23,7 +23,11 @@ void platform user restore <id>
23
23
  void platform user delete <id>
24
24
  ```
25
25
 
26
- Suspending a user blocks their applications, including scheduled jobs and queue consumers. While the account is suspended, each queue message is retried about once an hour, and each retry uses one of its queue's retries. Messages that run out of retries are dropped: after about 3 hours with the default of 3 retries, and at once for a queue with `maxRetries: 0`. Restore an account suspended by mistake promptly; queue delivery resumes within about an hour. Deleting a user also deletes their project resources. A plan change updates resource limits while preserving any administrator suspension. It also applies the new plan's [AI Gateway logging](#ai-gateway-logging) default to the account's projects, up to 100 projects per run. If the account has more, or if that step fails, the command says so; run the same plan change again until it completes. Each run continues where the last one stopped.
26
+ Changing a user's plan updates their resource limits and their projects' [AI Gateway logging default](#ai-gateway-logging). An administrator suspension stays in effect. The command updates AI logging for up to 100 projects per run; if it reports unfinished work, repeat the same command to continue.
27
+
28
+ Suspending a user blocks their apps, scheduled jobs, and queue consumers. While suspended, each queue message is retried about once an hour. Each attempt uses one of the queue's retries. Messages are dropped when retries run out: after about 3 hours with the default of 3 retries, or immediately with `maxRetries: 0`. Restore an account suspended by mistake promptly; delivery resumes within about an hour.
29
+
30
+ Deleting a user also deletes their project resources.
27
31
 
28
32
  The last active administrator cannot be deleted or suspended. Both previews and
29
33
  actual mutations enforce this rule, including in the browser admin UI. Allowed
@@ -51,71 +55,80 @@ If deployment reports that a project requires normalization, an operator can pre
51
55
 
52
56
  ### AI Gateway Logging
53
57
 
54
- Administrators choose how AI Gateway logs a project's AI requests. Apps cannot change this setting.
58
+ Choose what AI Gateway records for a project. For example, keep request metadata without storing prompts or responses:
59
+
60
+ ```sh
61
+ void platform project ai-logging <project-id> metadata --plan
62
+ void platform project ai-logging <project-id> metadata --yes
63
+ ```
64
+
65
+ Only platform administrators can change the setting. Apps cannot override it.
55
66
 
56
- | Mode | AI Gateway stores |
67
+ | Mode | Logging behavior |
57
68
  | ---------- | ------------------------------------------------------------------------------------- |
58
- | `inherit` | Whatever the gateway is set to. This is the default. |
69
+ | `inherit` | Follow the owner's plan default, then the gateway's setting. This is the default. |
59
70
  | `off` | No log entry. |
60
71
  | `metadata` | Model, provider, status, token counts, cost, and duration, but no prompt or response. |
61
72
  | `full` | A log entry with the prompt and response. |
62
73
 
63
- `inherit` follows the installation gateway's own logging setting, which the platform does not read. A new installation creates its gateway with logging turned on, so `inherit` stores prompts and responses until you change the gateway in Cloudflare.
64
-
65
74
  Each project uses the first setting that applies:
66
75
 
67
- 1. The project's own setting, from `void platform project ai-logging`.
68
- 2. The default of the owner's plan. See [Plans and Limits](../../guide/platform/administration/plans.md#ai-gateway-logging). An account whose plan is not in the catalog uses the default plan's setting.
69
- 3. `inherit`.
76
+ 1. The project's `off`, `metadata`, or `full` setting.
77
+ 2. The [owner's plan default](../../guide/platform/administration/plans.md#ai-gateway-logging). If the plan is missing from the catalog, use the signup default plan.
78
+ 3. The installation gateway's own logging setting.
70
79
 
71
- Preview a change, then apply it:
80
+ Set a project to `inherit` to remove its override and follow that order. A new installation enables gateway logging, so prompts and responses are stored unless a project, plan, or gateway setting disables it. Void does not read the gateway's own setting.
72
81
 
73
- ```sh
74
- void platform project ai-logging <project-id> metadata --plan
75
- void platform project ai-logging <project-id> metadata --yes
76
- ```
82
+ #### Check a Change
77
83
 
78
- The preview shows the current and new setting. The result names the setting, where it comes from, and when new requests are expected to follow it:
84
+ Changes apply to new requests without redeploying, normally within 2 minutes after publishing. The command reports the effective setting, its source, and the expected time:
79
85
 
80
86
  ```txt
81
87
  AI logging for <project-id>: metadata (set on project; plan "pro" default: inherit)
82
88
  New AI requests are expected to follow it by 14:03:20 UTC (normally within 2 minutes).
83
89
  ```
84
90
 
85
- Set the project back to `inherit` to remove its own setting and use the plan default again. Changes apply to new requests without redeploying.
86
-
87
- `void platform project show <project-id>` reports the setting and whether it is applied:
91
+ Run `void platform project show <project-id>` to check progress:
88
92
 
89
93
  ```txt
90
94
  AI Gateway logging: metadata (from plan "pro") — applied
91
95
  ```
92
96
 
93
- | `state` | Meaning |
94
- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
95
- | `applied` | New AI requests follow the setting. |
96
- | `pending` | The setting is published. New requests are expected to follow it by the time shown. |
97
- | `pending_plan_publish` | The plan default is still being published. Run `void platform config plans sync --yes`, or repeat the account's `user plan` change, to continue. |
98
- | `drift` | The published setting differs from the saved one. An hourly check repairs it; to fix a project setting now, run `project ai-logging` again. |
99
- | `unknown` | The published setting could not be read. Check again shortly. |
97
+ | `state` | Meaning |
98
+ | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
99
+ | `applied` | The setting is published and the propagation period has passed. New requests follow it. |
100
+ | `pending` | Published; waiting until the expected time shown. |
101
+ | `pending_plan_publish` | The plan default has not reached this project. Run `void platform config plans sync --yes`, or repeat the user's plan change. |
102
+ | `drift` | The published setting differs from the saved one. Repeat `project ai-logging` to publish it again, or wait for the hourly repair. |
103
+ | `unknown` | Void could not read the published setting. Check again shortly. |
100
104
 
101
- `show` prints the state in words, such as `pending (expected by 14:03:20 UTC)`. With `--json`, `aiLogging` holds `mode` (the project's own setting, or `inherit`), `planId`, `planKnown`, `defaultPlanId`, `planMode`, `effective`, `source` (`project`, `plan`, or `gateway`), `published`, `publishedAt`, and `state`.
105
+ Until a change is published, requests keep the previous logging behavior. `show` prints the state in words, such as `pending (expected by 14:03:20 UTC)`. With `--json`, the `aiLogging` object contains:
102
106
 
103
- #### What the Setting Covers
107
+ | Fields | Meaning |
108
+ | -------------------------------------------------- | ---------------------------------------------------------------------------------- |
109
+ | `mode` | Project override, or `inherit` |
110
+ | `planId`, `planKnown`, `defaultPlanId`, `planMode` | Owner's plan, whether it exists, the fallback plan, and the plan's logging default |
111
+ | `effective`, `source` | Resolved mode and its source: `project`, `plan`, or `gateway` |
112
+ | `published`, `publishedAt`, `state` | Published mode, publication time, and progress |
104
113
 
105
- When an administrator sets a project's AI logging to `off` or `metadata`, the command prints the time by which new requests are expected to follow it (normally within 2 minutes). `void platform project show <project-id>` reports `applied` once that time has passed and the setting is published. From then on, for every new AI request the platform runs for that project (Workers AI calls, Markdown conversion and provider calls, from deployed Workers and from `void dev`), AI Gateway stores:
114
+ #### What the Setting Covers
106
115
 
107
- - `off`: no log entry.
108
- - `metadata`: model, provider, status, token counts, cost and duration, but no prompt or response.
116
+ The setting covers new Workers AI, Markdown conversion, and provider requests through the platform, including requests from deployed apps and linked projects running `void dev`. It also applies when an app supplies its own provider key.
109
117
 
110
- A plan default applies to a project once the plan change reports "AI logging published", then normally within 2 minutes.
118
+ It does not change requests already running, earlier logs, separately configured Logpush exports, Cloudflare's Unified Billing records, or gateway log retention. AI usage limits still apply in every mode. See [Cloudflare logging controls](https://developers.cloudflare.com/ai-gateway/observability/logging/).
111
119
 
112
- If the platform cannot read the published setting, it refuses the AI request with status 503. `ai_logging_policy_unavailable` is temporary; the app can retry. `ai_logging_policy_invalid` means the published value is not valid; set the project's AI logging again. Until a change is published, the project keeps its previous behavior. `show` reports this as `pending_plan_publish` (a plan default not yet published to the project) or `drift` (a published setting that differs from the saved one). `pending` means the change is already published and is still reaching every location. On a new installation the previous behavior is full logging.
120
+ #### Recover from a Failed Change
113
121
 
114
- Not covered: requests already running, logs stored earlier, separately configured Logpush exports, billing details that Cloudflare always keeps for Unified Billing requests, and log retention, which Cloudflare sets per gateway. AI usage limits still apply in every mode. See [Cloudflare logging controls](https://developers.cloudflare.com/ai-gateway/observability/logging/).
122
+ | Error | What to do |
123
+ | ------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
124
+ | `ai_logging_publish_failed` | The change was not saved. Check the previous setting in the error message, then retry the command. |
125
+ | `ai_logging_publish_pending` | The change was saved but is not active yet. Retry to publish it. |
126
+ | `ai_logging_policy_unavailable` | An AI request returned HTTP `503` because the platform could not read the setting. Retry the request. |
127
+ | `ai_logging_policy_invalid` | An AI request returned HTTP `503` because the published setting is invalid. Set the project's logging mode again. |
115
128
 
116
- If the command fails with `ai_logging_publish_failed`, this change was not saved; the message names the project setting that is still saved. With `ai_logging_publish_pending`, the setting was saved but not published, and the project keeps its previous behavior until it is. In both cases, run the same command again. A saved setting that is not published yet goes live at the next hourly repair even if you do not retry, so to cancel a pending change, set the previous value again.
129
+ The platform also repairs unpublished settings every hour. To cancel a saved but pending change, set the previous value again; leaving it pending allows it to take effect later. For an interrupted plan change, [continue the plan updates](../../guide/platform/administration/plans.md#complete-pending-updates).
117
130
 
118
- Project settings need platform 1.8.0 or later. On an older platform, the CLI stops with "This platform does not support AI logging policies. Run `void platform upgrade`."
131
+ Project settings require platform 1.8.0 or later. If the CLI reports that the platform does not support them, run `void platform upgrade`.
119
132
 
120
133
  ## Signup Access {#operator-signup}
121
134
 
@@ -34,8 +34,6 @@ Use this page as a command reference. If you are setting up a project for the fi
34
34
 
35
35
  ## Cheat Sheet {#cheat-sheet}
36
36
 
37
- Platform administrators can also choose AI Gateway logging [per project](./cli/platform-users.md#ai-gateway-logging) with `void platform project ai-logging`, or [per plan](../guide/platform/administration/plans.md#ai-gateway-logging) with `void platform config plans`.
38
-
39
37
  | Command | Purpose |
40
38
  | --------------------------------- | ----------------------------------------------------------------------------- |
41
39
  | `void deploy` | Build and deploy to the configured platform |
@@ -82,6 +80,8 @@ Platform administrators can also choose AI Gateway logging [per project](./cli/p
82
80
  | `void init` | Set up a new or existing project, including coding agents |
83
81
  | `void migrate` | Update project configuration |
84
82
 
83
+ For platform administration, see [plans and account limits](../guide/platform/administration/plans.md), [users and projects](./cli/platform-users.md), and [AI logging](./cli/platform-users.md#ai-gateway-logging).
84
+
85
85
  ## Binary Invocation {#binary-invocation}
86
86
 
87
87
  The docs use `void` for brevity. Outside package scripts, run it with your package manager: `npx void`, `pnpm void`, `yarn void`, `bunx void`, or `vpx void`.
@@ -275,7 +275,7 @@ Enable and configure Cloudflare Sandboxes. Importing from `void/sandbox` enables
275
275
  | `platformImage` | `string` | `cloudflare/debian-trixie` |
276
276
  | `instanceType` | `string` | `lite` |
277
277
 
278
- Supported sizes are `lite` and `standard-1` through `standard-4`. Native deploys build Dockerfiles with Docker; registry images must be digest-pinned references from the Cloudflare managed registry. Custom images must include the matching Sandbox SDK helper. For a local Dockerfile, supply `platformImage` when deploying to a managed platform. See [Sandboxes](../guide/sandboxes.md) for image setup and runtime examples.
278
+ Supported sizes are `lite`, `basic`, and `standard-1` through `standard-4`. Native deploys build Dockerfiles with Docker; registry images must be digest-pinned references from the Cloudflare managed registry. Custom images must include the matching Sandbox SDK helper. For a local Dockerfile, supply `platformImage` when deploying to a managed platform. See [Sandboxes](../guide/sandboxes.md) for image setup and runtime examples.
279
279
 
280
280
  Sandbox requires [Workers Paid](https://dash.cloudflare.com/?to=/:account/workers/plans) and Containers access. Managed runtime tokens need Account / Containers: Edit and Account / Cloudchamber: Edit. See [Sandbox deployment](../guide/sandboxes.md#deployment).
281
281
 
@@ -298,6 +298,18 @@ Void-managed WebSocket route files (`*.ws.ts`) are Cloudflare-only because they
298
298
  { "target": "node" }
299
299
  ```
300
300
 
301
+ ### `storage.locationHint`
302
+
303
+ Choose a preferred region when Void creates your app's R2 bucket, on either a Void platform or a direct Cloudflare deployment:
304
+
305
+ ```json
306
+ { "storage": { "locationHint": "apac" } }
307
+ ```
308
+
309
+ Supported hints are `apac` (Asia Pacific), `eeur` (Eastern Europe), `enam` (Eastern North America), `weur` (Western Europe), `wnam` (Western North America), and `oc` (Oceania). Cloudflare treats these as [best-effort location hints](https://developers.cloudflare.com/r2/reference/data-location/), not data residency guarantees.
310
+
311
+ The project setting overrides the platform's default. Without either, Cloudflare chooses automatically. This only affects new buckets: changing the hint never moves or replaces an existing bucket. Apps that do not use R2 create no bucket.
312
+
301
313
  ### `worker`
302
314
 
303
315
  Cloudflare Workers settings, including the `compatibility_date` pinned by `void init`. Put binding arrays such as `d1_databases`, `kv_namespaces`, and `r2_buckets` in [`cloudflare`](#cloudflare).