void 1.7.0 → 1.9.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 (314) hide show
  1. package/dist/{account-cmd-BfkJ_1PC.mjs → account-cmd-BEMOdwtl.mjs} +5 -5
  2. package/dist/{application-analysis-OV0CBJ80.mjs → application-analysis-3VVsflWZ.mjs} +28 -8
  3. package/dist/{application-routing-QpyC5G8z.mjs → application-routing-CJRlXCc2.mjs} +1 -1
  4. package/dist/{auth-CZrthGxs.d.mts → auth-CV9kXHKe.d.mts} +4 -2
  5. package/dist/{auth-DyWp-fSo.mjs → auth-aMuFOZeI.mjs} +8 -2
  6. package/dist/{auth-link-CW1Zh6FM.mjs → auth-link-B1IynRW5.mjs} +5 -5
  7. package/dist/{auth-router-CNBKnEZi.mjs → auth-router-DVaWJdRB.mjs} +3 -3
  8. package/dist/{better-auth-shared-CdVyCUou.mjs → better-auth-shared-C7LHvF4L.mjs} +1 -1
  9. package/dist/{better-auth-shared-C-0uZg8-.d.mts → better-auth-shared-ajs3LNrY.d.mts} +2 -2
  10. package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
  11. package/dist/{build-cmd-C9qOKW9W.mjs → build-cmd-Dq8tdqQG.mjs} +4 -4
  12. package/dist/{cache-DVBBbWQL.mjs → cache-DGMnskX7.mjs} +4 -4
  13. package/dist/{cancel-deploy-COavnjud.mjs → cancel-deploy-96S5hD1E.mjs} +3 -3
  14. package/dist/cli/cli.mjs +1 -1
  15. package/dist/cli/cloudflare-operation-process.mjs +92 -19
  16. package/dist/cli/env-schema-probe.d.mts +1 -1
  17. package/dist/cli/env-schema-probe.mjs +3 -3
  18. package/dist/{cli-main-DFteHrJI.mjs → cli-main-CQRLxZAu.mjs} +32 -32
  19. package/dist/client-66c0RLDM.mjs +1 -0
  20. package/dist/{client-BEZmTP6p.mjs → client-D6w5x7hM.mjs} +7 -7
  21. package/dist/{cloudflare-auth-DGIivpTb.mjs → cloudflare-auth-pNvmT6kL.mjs} +1 -1
  22. package/dist/{cloudflare-cmd-DJaxC-bc.mjs → cloudflare-cmd-BuuHUM4z.mjs} +5 -5
  23. package/dist/{cloudflare-config-DtOGAbeB.mjs → cloudflare-config-PxbinLLE.mjs} +2 -2
  24. package/dist/{cloudflare-connect-BjpWmglw.mjs → cloudflare-connect-D1QOosLd.mjs} +3 -3
  25. package/dist/{cloudflare-operations-k7wYUv56.mjs → cloudflare-operations-G5AObYzF.mjs} +6 -6
  26. package/dist/{cloudflare-operations-CZkjFrzH.mjs → cloudflare-operations-I4t3mt4R.mjs} +1 -1
  27. package/dist/{cloudflare-process-BcPvlMFd.mjs → cloudflare-process-wcnaQ5JG.mjs} +2 -2
  28. package/dist/{config-wo2EaH0X.mjs → config-C1DPf8EK.mjs} +1 -1
  29. package/dist/{config-CTlUaXWZ.d.mts → config-CCWVY7DY.d.mts} +1 -1
  30. package/dist/{config-5oSQhZNj.mjs → config-CzFdJYNA.mjs} +1 -1
  31. package/dist/{config-DcqUBGCb.mjs → config-DlWQ_hIJ.mjs} +3 -3
  32. package/dist/{config-eeDzKBS9.mjs → config-Do7gJI3T.mjs} +2 -2
  33. package/dist/config-entry.d.mts +1 -1
  34. package/dist/{connect-j1F1C_rW.mjs → connect-4uImOwut.mjs} +6 -6
  35. package/dist/{create-project-CE3jOmd5.mjs → create-project-BaUzZnLZ.mjs} +4 -4
  36. package/dist/{create-project-DZH3aYGQ.mjs → create-project-CQMyzTvK.mjs} +1 -1
  37. package/dist/{db-DyLzzxvM.mjs → db-DEpDeDsi.mjs} +22 -22
  38. package/dist/{db-types-DdHHUVPy.mjs → db-types-BpPYAx0B.mjs} +4 -2
  39. package/dist/{delete-Dey6YoMA.mjs → delete-BVD2kI82.mjs} +4 -4
  40. package/dist/deploy-Dr_Qamzw.mjs +2 -0
  41. package/dist/{deploy-Ccw2D2lw.mjs → deploy-Dyeo5soA.mjs} +40 -81
  42. package/dist/{deploy-managed-static-BBVtpuGv.mjs → deploy-managed-static-Kn73R83A.mjs} +22 -22
  43. package/dist/{deploy-transport-Dt0IvSVW.mjs → deploy-transport-BpKBs_KR.mjs} +3 -3
  44. package/dist/deploy.mjs +6 -6
  45. package/dist/discover-Diq0l6TZ.mjs +1 -0
  46. package/dist/{discover-CVFCWU7W.mjs → discover-Vd18lHsj.mjs} +1 -1
  47. package/dist/{dispatch-pYaww76u.mjs → dispatch-BBfb519j.mjs} +8 -8
  48. package/dist/{dist-DeTdhbZc.mjs → dist-Cp4b1_T9.mjs} +1 -1
  49. package/dist/{dist-BQdgCVQF.mjs → dist-STQXl8ck.mjs} +86 -138
  50. package/dist/{domain-Dh3mG8Vs.mjs → domain-BTIdyUVk.mjs} +5 -5
  51. package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
  52. package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
  53. package/dist/{email-DKyMjOYM.mjs → email-DvrS-I0U.mjs} +10 -10
  54. package/dist/{email-cloudflare-CTt2n_W2.mjs → email-cloudflare-DAGpgzY1.mjs} +16 -11
  55. package/dist/{entry-Bw-G1VVx.mjs → entry-DMgR7XOf.mjs} +2 -2
  56. package/dist/{env-DkZzh_Dd.mjs → env-D7vORwpn.mjs} +6 -6
  57. package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
  58. package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
  59. package/dist/{env-types-Dz9qkiOn.mjs → env-types-WEZw5D-r.mjs} +1 -1
  60. package/dist/{env-validation-C8NL3lEH.mjs → env-validation-DKDcpxbt.mjs} +1 -1
  61. package/dist/{env-validation-1snjKtDX.mjs → env-validation-DeYNRp1d.mjs} +5 -5
  62. package/dist/{gen-BZmFOGDQ.mjs → gen-DimkGNve.mjs} +6 -6
  63. package/dist/gen-DmEeVEs4.mjs +1 -0
  64. package/dist/{github-cmd-7Oky9qgH.mjs → github-cmd-D-zs6VQr.mjs} +4 -4
  65. package/dist/{handler-DjqciiDc.d.mts → handler-6fzr_ikp.d.mts} +5 -4
  66. package/dist/{head-MeF_5M_3.d.mts → head-CVO92KEx.d.mts} +14 -3
  67. package/dist/{head-5XPcnG-j.mjs → head-CWJhfUwV.mjs} +62 -3
  68. package/dist/{headers-CimYIfQI.mjs → headers-Q0kZDpk8.mjs} +11 -2
  69. package/dist/{help-CNuUb47C.mjs → help-Cgdcd-SG.mjs} +6 -6
  70. package/dist/help-Cp3K5m1w.mjs +1 -0
  71. package/dist/index.d.mts +5 -5
  72. package/dist/index.mjs +257 -188
  73. package/dist/{info-DwB8IWIx.mjs → info-BbxQ34kk.mjs} +4 -4
  74. package/dist/{init-CUGSmcED.mjs → init-zyRj3QRw.mjs} +19 -20
  75. package/dist/{link-BlRTGHan.mjs → link-DAFXuIER.mjs} +5 -5
  76. package/dist/{list-iCg7d5Pa.mjs → list-BTIcC3W9.mjs} +5 -5
  77. package/dist/{live-zKGbRT4h.d.mts → live-DBybyDt0.d.mts} +2 -2
  78. package/dist/{live-CYJ4KGoR.mjs → live-Dw7NF1t2.mjs} +1 -1
  79. package/dist/load-user-env-ztmIyiLx.mjs +34 -0
  80. package/dist/{local-d1-CFcH9Bx3.mjs → local-d1-BnVb7Fem.mjs} +1 -1
  81. package/dist/login-DBs8JuSl.mjs +1 -0
  82. package/dist/{login-TA51e5Fw.mjs → login-DOE-MkeK.mjs} +4 -4
  83. package/dist/{logs-BlyAxlvx.mjs → logs-CUsjihc3.mjs} +4 -4
  84. package/dist/migrate-BYhoIK9R.mjs +1 -0
  85. package/dist/{migrate-BH6LCr00.mjs → migrate-DtoKdGas.mjs} +6 -6
  86. package/dist/nitro.mjs +3 -3
  87. package/dist/{node-B0otYjDv.mjs → node-D9dPyUr0.mjs} +4 -4
  88. package/dist/operator-ai-logging-DFTEp81Z.mjs +121 -0
  89. package/dist/{operator-args-DuKAQ3Ks.mjs → operator-args-BCCohcz3.mjs} +10 -1
  90. package/dist/{operator-cmd-CoHlJjcT.mjs → operator-cmd-CQOQrUiO.mjs} +27 -7
  91. package/dist/operator-cmd-xCACDtT1.mjs +1 -0
  92. package/dist/output-BsdnNpxa.mjs +1 -0
  93. package/dist/{output-CXJTIAtF.mjs → output-DNVILSz2.mjs} +1 -1
  94. package/dist/pages/client.d.mts +28 -3
  95. package/dist/pages/client.mjs +146 -27
  96. package/dist/pages/head.d.mts +2 -2
  97. package/dist/pages/head.mjs +1 -1
  98. package/dist/pages/index.d.mts +5 -4
  99. package/dist/pages/index.mjs +5 -5
  100. package/dist/pages/islands-plugin.d.mts +6 -2
  101. package/dist/pages/islands-plugin.mjs +18 -3
  102. package/dist/pages/protocol.d.mts +2 -2
  103. package/dist/pages/protocol.mjs +1 -1
  104. package/dist/platform-args-DSi4_M8n.mjs +1 -0
  105. package/dist/{platform-args-DfT8yQBF.mjs → platform-args-DtpHS_75.mjs} +1 -1
  106. package/dist/{platform-auth-config-MO0VdVs9.mjs → platform-auth-config-fLwIS5VG.mjs} +6 -6
  107. package/dist/{platform-auth-protection-Dv208eyL.mjs → platform-auth-protection-BTRI_YwD.mjs} +4 -4
  108. package/dist/{platform-auth-recovery-DvAQ674F.mjs → platform-auth-recovery-DPK2Mvmo.mjs} +4 -4
  109. package/dist/{platform-cmd-BpUA19r_.mjs → platform-cmd-BLy5uCa-.mjs} +1 -1
  110. package/dist/{platform-cmd-dlSxrcQ7.mjs → platform-cmd-HS_FSthn.mjs} +7 -7
  111. package/dist/{platform-domain-DSO4eUEw.mjs → platform-domain-CHpcq_qg.mjs} +4 -4
  112. package/dist/{platform-lifecycle-CfcFygHb.mjs → platform-lifecycle-B6LUBwjS.mjs} +1 -1
  113. package/dist/{platform-lifecycle-BSvsyB_x.mjs → platform-lifecycle-D2RS7DE0.mjs} +239 -29
  114. package/dist/{platform-management-BMdyt667.mjs → platform-management-C-T0ch4y.mjs} +1 -1
  115. package/dist/{platform-management-CrP1XhVd.mjs → platform-management-d3ETv3Dw.mjs} +15 -15
  116. package/dist/{platform-plans-config-CgDiwflR.mjs → platform-plans-config-B7yJQKf7.mjs} +116 -32
  117. package/dist/{platform-recovery-CHWwXVZ6.mjs → platform-recovery-DS5CAsly.mjs} +2 -2
  118. package/dist/{platform-setup-BTQVbnTC.mjs → platform-setup-Casiffqj.mjs} +2 -2
  119. package/dist/{plugin-inference-g66Q1Mx9.mjs → plugin-inference-DZHmVe1f.mjs} +4 -4
  120. package/dist/{prepare-DXduEwQp.mjs → prepare-AVM4Hj3T.mjs} +10 -10
  121. package/dist/prepare-BSXKz6m8.mjs +1 -0
  122. package/dist/{prepare-DJYHjpzq.mjs → prepare-DMk8NAO-.mjs} +3 -3
  123. package/dist/{prerender-render-BN9Lmebs.mjs → prerender-render-BAdYhivW.mjs} +15 -2
  124. package/dist/prerender-render.d.mts +2 -0
  125. package/dist/prerender-render.mjs +1 -1
  126. package/dist/{project-cmd-Dfb1Sg8w.mjs → project-cmd-TQKAOTMV.mjs} +17 -17
  127. package/dist/{project-paths-G0yut6Zz.mjs → project-paths-CUhCPMpK.mjs} +33 -2
  128. package/dist/{project-team-BO2dyc7S.mjs → project-team-B1OKeb-T.mjs} +4 -4
  129. package/dist/{project-token-ByO2mEI2.mjs → project-token-RW_wpmN-.mjs} +4 -4
  130. package/dist/{project-tsconfig-nhnTWO_Y.mjs → project-tsconfig-MyRJgufB.mjs} +1 -1
  131. package/dist/{project-zero-trust-CoQfwRBR.mjs → project-zero-trust-TNc66p0_.mjs} +4 -4
  132. package/dist/{protocol-yxdHxFLN.mjs → protocol-IPSWHolJ.mjs} +233 -76
  133. package/dist/{protocol-xZMvWsrg.d.mts → protocol-YS3tbxWE.d.mts} +10 -3
  134. package/dist/{provision-CMH4-8ri.mjs → provision-BLdkpFT4.mjs} +1 -1
  135. package/dist/{provision-D5q-ptD3.mjs → provision-bgQTi5QZ.mjs} +2 -2
  136. package/dist/redirect-Dqb4fEc5.mjs +80 -0
  137. package/dist/{requests-CPOiDkjh.mjs → requests-Cj15-yrI.mjs} +3 -3
  138. package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
  139. package/dist/{resolve-project-ClvLMTI9.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
  140. package/dist/{rollback-BfCs2la4.mjs → rollback-CYnkng7B.mjs} +4 -4
  141. package/dist/{route-types-Cl3x0Q8B.mjs → route-types-C6eAOmOj.mjs} +4 -3
  142. package/dist/routes-stub.d.mts +4 -3
  143. package/dist/runtime/auth.d.mts +1 -1
  144. package/dist/runtime/auth.mjs +1 -1
  145. package/dist/runtime/better-auth-mysql.d.mts +1 -1
  146. package/dist/runtime/better-auth-mysql.mjs +1 -1
  147. package/dist/runtime/better-auth-pg.d.mts +1 -1
  148. package/dist/runtime/better-auth-pg.mjs +1 -1
  149. package/dist/runtime/better-auth.d.mts +1 -1
  150. package/dist/runtime/better-auth.mjs +1 -1
  151. package/dist/runtime/client-react.d.mts +1 -1
  152. package/dist/runtime/client-solid.d.mts +1 -1
  153. package/dist/runtime/client-svelte.d.mts +1 -1
  154. package/dist/runtime/client-vue.d.mts +1 -1
  155. package/dist/runtime/client.d.mts +1 -1
  156. package/dist/runtime/db.d.mts +6 -3
  157. package/dist/runtime/db.mjs +2 -2
  158. package/dist/runtime/env-public.d.mts +1 -1
  159. package/dist/runtime/env-public.mjs +53 -39
  160. package/dist/runtime/handler.d.mts +1 -1
  161. package/dist/runtime/live-client.d.mts +1 -1
  162. package/dist/runtime/live-server.mjs +1 -1
  163. package/dist/runtime/live.d.mts +1 -1
  164. package/dist/runtime/live.mjs +1 -1
  165. package/dist/runtime/routing.d.mts +8 -3
  166. package/dist/runtime/routing.mjs +164 -23
  167. package/dist/runtime/validator.d.mts +1 -1
  168. package/dist/runtime/ws-server.d.mts +3 -3
  169. package/dist/runtime/ws-server.mjs +1 -1
  170. package/dist/runtime/ws.d.mts +1 -1
  171. package/dist/{scan-L8OSv1f7.mjs → scan-4YOxDaw2.mjs} +230 -29
  172. package/dist/{secret-CuI6LTpD.mjs → secret-BSf7dgg_.mjs} +6 -6
  173. package/dist/{skills-BBO9wMjB.mjs → skills-CoBB9_Ao.mjs} +1 -1
  174. package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
  175. package/dist/{subcommand-prompt-BZMnCA8T.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
  176. package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
  177. package/dist/url-DaehRGKR.mjs +106 -0
  178. package/dist/{version-metadata-eUd6Ar_U.mjs → version-metadata-CeftH0fQ.mjs} +1 -1
  179. package/dist/{wrangler-k40T7XTQ.mjs → wrangler-B1gkT_wC.mjs} +3 -3
  180. package/dist/wrangler-fNGvPTlO.mjs +1 -0
  181. package/dist/{wrapper-BGsi_uHs.mjs → wrapper-xJ4LP5A7.mjs} +3 -3
  182. package/dist/{ws-DB8Feytg.d.mts → ws-C2zy0QBf.d.mts} +2 -2
  183. package/docs/guide/ai.md +2 -1
  184. package/docs/guide/app-types.md +1 -0
  185. package/docs/guide/auth.md +23 -27
  186. package/docs/guide/database/d1.md +18 -1
  187. package/docs/guide/database/mysql.md +1 -0
  188. package/docs/guide/database/postgresql.md +1 -0
  189. package/docs/guide/database.md +30 -27
  190. package/docs/guide/deployment.md +3 -2
  191. package/docs/guide/durable-state.md +1 -0
  192. package/docs/guide/edge/headers.md +4 -3
  193. package/docs/guide/edge/prerendering.md +6 -5
  194. package/docs/guide/edge/redirects.md +2 -1
  195. package/docs/guide/edge/revalidation.md +6 -1
  196. package/docs/guide/edge/rewrites.md +2 -1
  197. package/docs/guide/edge/static-assets.md +5 -0
  198. package/docs/guide/email/domains.md +1 -0
  199. package/docs/guide/email/receiving.md +3 -2
  200. package/docs/guide/email/sending.md +7 -4
  201. package/docs/guide/email.md +1 -0
  202. package/docs/guide/env-vars.md +4 -0
  203. package/docs/guide/index.md +1 -0
  204. package/docs/guide/jobs.md +1 -0
  205. package/docs/guide/kv.md +1 -0
  206. package/docs/guide/live.md +2 -1
  207. package/docs/guide/pages-routing/actions-and-forms.md +58 -22
  208. package/docs/guide/pages-routing/errors.md +109 -0
  209. package/docs/guide/pages-routing/head.md +45 -1
  210. package/docs/guide/pages-routing/islands.md +4 -1
  211. package/docs/guide/pages-routing/layouts.md +4 -1
  212. package/docs/guide/pages-routing/loaders.md +4 -1
  213. package/docs/guide/pages-routing/markdown.md +6 -4
  214. package/docs/guide/pages-routing/overview.md +16 -20
  215. package/docs/guide/pages-routing/view-transitions.md +1 -0
  216. package/docs/guide/platform/administration/access.md +1 -0
  217. package/docs/guide/platform/administration/connected-apps.md +13 -2
  218. package/docs/guide/platform/administration/email.md +1 -0
  219. package/docs/guide/platform/administration/operations.md +1 -0
  220. package/docs/guide/platform/administration/plans.md +35 -1
  221. package/docs/guide/platform/administration/projects.md +16 -1
  222. package/docs/guide/platform/administration/zero-trust.md +1 -0
  223. package/docs/guide/platform/development/local.md +1 -0
  224. package/docs/guide/platform/development/runtime.md +1 -0
  225. package/docs/guide/platform/development/schema-ci.md +1 -0
  226. package/docs/guide/platform/installation/ci.md +1 -0
  227. package/docs/guide/platform/installation/credentials.md +12 -9
  228. package/docs/guide/platform/installation/domains.md +1 -0
  229. package/docs/guide/platform/installation/first-deployment.md +1 -0
  230. package/docs/guide/platform/installation/maintenance.md +8 -1
  231. package/docs/guide/platform/installation/prerequisites.md +1 -0
  232. package/docs/guide/platform/installation/setup.md +9 -7
  233. package/docs/guide/platform/installation/uninstall.md +1 -0
  234. package/docs/guide/platform-administration.md +1 -0
  235. package/docs/guide/platform-development.md +1 -0
  236. package/docs/guide/project-collaboration.md +1 -0
  237. package/docs/guide/queues.md +3 -0
  238. package/docs/guide/quickstart.md +3 -2
  239. package/docs/guide/remote-dev.md +1 -0
  240. package/docs/guide/sandboxes.md +1 -0
  241. package/docs/guide/self-hosted-platform.md +1 -0
  242. package/docs/guide/server-routing.md +3 -2
  243. package/docs/guide/sse.md +2 -1
  244. package/docs/guide/ssg.md +18 -6
  245. package/docs/guide/ssr.md +1 -0
  246. package/docs/guide/storage.md +2 -1
  247. package/docs/guide/testing.md +64 -0
  248. package/docs/guide/type-safety.md +24 -21
  249. package/docs/guide/typed-fetch.md +1 -0
  250. package/docs/guide/websockets.md +1 -0
  251. package/docs/index.md +1 -0
  252. package/docs/integrations/agents.md +1 -0
  253. package/docs/integrations/cloudflare.md +7 -2
  254. package/docs/integrations/frameworks/analog.md +1 -0
  255. package/docs/integrations/frameworks/astro.md +1 -0
  256. package/docs/integrations/frameworks/nuxt.md +2 -1
  257. package/docs/integrations/frameworks/overview.md +1 -0
  258. package/docs/integrations/frameworks/react-router.md +1 -0
  259. package/docs/integrations/frameworks/sveltekit.md +1 -0
  260. package/docs/integrations/frameworks/tanstack-start.md +1 -0
  261. package/docs/integrations/hono.md +22 -0
  262. package/docs/integrations/nodejs-bun-deno.md +5 -4
  263. package/docs/reference/api/auth.md +23 -4
  264. package/docs/reference/api/client.md +1 -0
  265. package/docs/reference/api/database.md +24 -1
  266. package/docs/reference/api/deploy.md +4 -0
  267. package/docs/reference/api/durable.md +1 -0
  268. package/docs/reference/api/env.md +1 -0
  269. package/docs/reference/api/handlers.md +1 -0
  270. package/docs/reference/api/pages.md +38 -16
  271. package/docs/reference/api/plugin.md +1 -0
  272. package/docs/reference/api/resources.md +2 -1
  273. package/docs/reference/api/rewrites.md +9 -4
  274. package/docs/reference/api/types.md +1 -0
  275. package/docs/reference/api.md +2 -1
  276. package/docs/reference/cli/auth.md +1 -0
  277. package/docs/reference/cli/database.md +1 -0
  278. package/docs/reference/cli/deploy.md +5 -2
  279. package/docs/reference/cli/domains.md +1 -0
  280. package/docs/reference/cli/email.md +1 -0
  281. package/docs/reference/cli/generate.md +1 -0
  282. package/docs/reference/cli/github.md +1 -0
  283. package/docs/reference/cli/platform-config.md +4 -3
  284. package/docs/reference/cli/platform-email.md +1 -0
  285. package/docs/reference/cli/platform-installation.md +1 -0
  286. package/docs/reference/cli/platform-operations.md +1 -0
  287. package/docs/reference/cli/platform-users.md +71 -1
  288. package/docs/reference/cli/platform-zero-trust.md +1 -0
  289. package/docs/reference/cli/platform.md +1 -0
  290. package/docs/reference/cli/project.md +1 -0
  291. package/docs/reference/cli/secrets.md +1 -0
  292. package/docs/reference/cli/setup.md +1 -0
  293. package/docs/reference/cli.md +3 -0
  294. package/docs/reference/config.md +8 -3
  295. package/docs/reference/resource-inference.md +1 -0
  296. package/docs/reference/structure.md +1 -0
  297. package/package.json +25 -25
  298. package/skills/void/SKILL.md +3 -1
  299. package/dist/action-key-XtKKbbsi.mjs +0 -25
  300. package/dist/client-BAxLpSKv.mjs +0 -1
  301. package/dist/deploy-DEZkUS77.mjs +0 -2
  302. package/dist/discover-1DJD4YXD.mjs +0 -1
  303. package/dist/gen-C6iknRdI.mjs +0 -1
  304. package/dist/help-C_cqTByy.mjs +0 -1
  305. package/dist/load-user-env-CSwdofj0.mjs +0 -48
  306. package/dist/login-C4q1S-5b.mjs +0 -1
  307. package/dist/migrate-CVBsSFhC.mjs +0 -1
  308. package/dist/operator-cmd-DnaCnCSP.mjs +0 -1
  309. package/dist/output-CNsMDEd2.mjs +0 -1
  310. package/dist/platform-args-B7-wQ0_B.mjs +0 -1
  311. package/dist/prepare-Bx4a8cb1.mjs +0 -1
  312. package/dist/resolve-project-BALVa9q0.mjs +0 -1
  313. package/dist/url-CuoEn0o3.mjs +0 -43
  314. package/dist/wrangler-R3kMdJfw.mjs +0 -1
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Sign in to the admin UI, create the first administrator, and control who can access the platform.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,3 +1,7 @@
1
+ ---
2
+ description: 'Let users sign in to another app with their Void account and approve deployments to their projects.'
3
+ ---
4
+
1
5
  # Connected apps
2
6
 
3
7
  A connected app is a separate application registered as an OAuth client on your Void installation. Users sign in on Void and decide whether to connect it. The application operator may be different from the platform administrator.
@@ -16,7 +20,7 @@ Local development permits exact HTTP callbacks on localhost when the platform's
16
20
 
17
21
  The app sends users to Void's authorization page, where Void displays its registered name, operator, callback origin, and requested permission. Sign-in permits reading the user's ID and username. It does not provide an account token or project management access.
18
22
 
19
- Users can disconnect applications at `<platform API URL>/oauth/connections`. Access tokens expire after an hour, and apps renew them with a refresh token. Refreshing does not extend access past the Void sign-in the user approved the app from: access ends 30 days after that sign-in, or earlier if the sign-in is revoked or the account is suspended. Applications must then ask the user to sign in again.
23
+ Users can disconnect apps at `<platform API URL>/oauth/connections`. Access tokens last one hour; apps can renew them with a refresh token for up to 30 days after the user's original sign-in. Revoking that sign-in or suspending the account ends access sooner. The app must then ask the user to sign in again.
20
24
 
21
25
  ## Private previews
22
26
 
@@ -48,7 +52,14 @@ Disabling the app or disconnecting its grant stops authorization for subsequent
48
52
 
49
53
  Discover endpoints at `/.well-known/oauth-authorization-server` on the platform API origin. Use authorization code flow with `scope=profile`, a random `state`, and S256 PKCE. Authenticate token exchanges using HTTP Basic client authentication. Send access tokens as Bearer credentials to `/oauth/userinfo`; its response contains `sub`, `preferred_username`, and the consented `scope`.
50
54
 
51
- The code exchange also returns a `refresh_token`. To renew access, POST `grant_type=refresh_token` and `refresh_token` to `/oauth/token` with client Basic authentication. The response has a new access token and a new `refresh_token`; store the new one and discard the old. Each refresh token works once: sending a used one again revokes the connection and the user must reconnect, so send one refresh at a time per connection. Store refresh tokens as securely as access tokens. An optional space-separated `scope` requests fewer permissions than the user approved; the connection keeps the narrower set, and later refreshes cannot widen it. `deploy:approve` publish tokens never come with a refresh token, so each publish still needs its own approval.
55
+ The code exchange also returns a refresh token. To renew access:
56
+
57
+ 1. POST `grant_type=refresh_token` and the `refresh_token` to `/oauth/token`, using client Basic authentication.
58
+ 2. Save the returned access token and refresh token securely, replacing the old pair.
59
+
60
+ Send one refresh at a time per connection. Each refresh token works once; reusing it revokes the connection and requires the user to reconnect.
61
+
62
+ To request fewer permissions, pass a space-separated `scope`. Later refreshes cannot restore permissions you dropped. Publish tokens (`deploy:approve`) have no refresh token: each publish needs its own approval.
52
63
 
53
64
  For publishing, package the built app with [`prepareDeployArtifact`](/reference/api/deploy). POST to `/oauth/deployment-requests` using the profile token:
54
65
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Set up platform email, choose allowed recipients, and manage project sending domains.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Preview platform changes, follow logs, and check health from an administrator session.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Define resource limits for accounts on your platform. Plans do not bill users or purchase Cloudflare services.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -15,7 +16,7 @@ Choose a plan to inspect or edit it, copy one into a new plan, or choose the def
15
16
 
16
17
  ## Use the Dashboard
17
18
 
18
- Open **Plans** to see each plan's stable ID, account count, and signup default. Choose **Add plan** to copy an existing plan, or **Edit** to change its display name, limits, build size, and permission to use short project slugs.
19
+ Open **Plans** to see each plan's stable ID, account count, and signup default. Choose **Add plan** to copy an existing plan, or **Edit** to change its display name, limits, build size, permission to use short project slugs, and [AI Gateway logging default](#ai-gateway-logging).
19
20
 
20
21
  Choose **Review changes** to compare the current and proposed settings and see how many accounts are affected. Review any quota warnings, then choose **Apply changes**. If someone changed the catalog while you were reviewing, open the plan again and create a fresh review.
21
22
 
@@ -88,6 +89,39 @@ Storage figures shown for D1, R2, and KV are informational and cannot be edited
88
89
 
89
90
  The preview shows the affected account count and checks a sample for accounts already above a proposed quota. Lowering a quota can restrict existing apps, including accounts outside that sample. Usage history and billing periods are preserved, so a plan change does not reset usage. Manual administrator suspensions remain in effect.
90
91
 
92
+ ## AI Gateway Logging {#ai-gateway-logging}
93
+
94
+ Each plan can set how AI Gateway logs AI requests for its accounts' projects: `inherit`, `off`, `metadata`, or `full`. See [AI Gateway logging](../../../reference/cli/platform-users.md#ai-gateway-logging) for what each mode stores. Plans start with `inherit`, which follows the gateway's own setting.
95
+
96
+ A project's own setting from `void platform project ai-logging` always wins over the plan default. Accounts whose plan is not in the catalog use the signup default plan's setting.
97
+
98
+ In the dashboard, choose **Edit** on a plan and pick its **AI Gateway logging default**. In a plan file, set `aiLogging`:
99
+
100
+ ```json
101
+ {
102
+ "aiLogging": "metadata"
103
+ }
104
+ ```
105
+
106
+ ```sh
107
+ void platform config plans set team --file team-plan.json --plan
108
+ void platform config plans set team --file team-plan.json --yes
109
+ ```
110
+
111
+ `"aiLogging": "inherit"` clears the plan default. Leaving `aiLogging` out keeps the current value. The interactive menu also offers **AI Gateway logging**. The preview shows the change, such as `AI Gateway logging: inherit → metadata`, and how many projects will receive it.
112
+
113
+ After applying, the CLI publishes the default to every project it affects, then prints:
114
+
115
+ ```txt
116
+ AI logging published to 120 projects; expected by 14:03:20 UTC (normally within 2 minutes).
117
+ ```
118
+
119
+ A plan default applies to a project once the command prints this line, then normally within 2 minutes. Until then, projects keep their previous behavior and `void platform project show <project-id>` reports `pending_plan_publish`. If publishing stops, the command exits with a nonzero status. Continue it with `void platform config plans sync --yes`, or choose **Continue AI logging publish** on the **Plans** page. The platform also continues it every hour.
120
+
121
+ Copying a plan copies its AI logging default. Changing the signup default also changes the setting for accounts whose plan is not in the catalog. When you remove a plan with a replacement, its accounts use the replacement plan's default. Moving a user to another plan, or transferring a project to a new owner, applies the new plan's default.
122
+
123
+ `void platform config plans show <plan-id>` and the user detail page in the dashboard show the plan's AI Gateway logging default. Plan defaults need a platform release that supports them. On an older platform, the CLI stops and asks you to run `void platform upgrade` first.
124
+
91
125
  ## Archive or Remove a Plan
92
126
 
93
127
  Archive a plan to stop assigning it to new accounts while preserving its current accounts:
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Find users, inspect their projects and usage, and change the plan assigned to an account.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -25,6 +26,20 @@ Project details include resources, domains, and recent builds and deployments. T
25
26
 
26
27
  In the admin dashboard, open a project to view its team. Search for a platform user and choose a role to add them immediately; an email address is not required. You can also change or remove existing members. Pending invitations created through other project workflows remain visible until accepted or revoked. If email is unavailable for a pending invitation, share its ID so the user can accept it with `void project team accept <invitation-id>`. The owner cannot be removed from the team; transfer ownership first. Removing a collaborator or admin, changing one to reader, or suspending or deleting their account [replaces the project's platform credentials](../../project-collaboration.md#change-or-remove-access), the same as the CLI.
27
28
 
29
+ ### AI Logging
30
+
31
+ Keep prompt and response bodies out of a project's AI Gateway logs while retaining request metadata:
32
+
33
+ ```sh
34
+ void platform project ai-logging <project-id> metadata
35
+ ```
36
+
37
+ Only platform administrators can change this setting. It covers the project's AI requests through the platform, including calls with the app's own provider key and calls from `void dev`.
38
+
39
+ Use `inherit` for the gateway's own setting, `off` to store no log entry, or `full` to include bodies. A project's own setting wins over its plan's [AI Gateway logging default](./plans.md#ai-gateway-logging); `inherit` removes the project's own setting.
40
+
41
+ The command prints when new requests are expected to follow the change, normally within 2 minutes. Check it with `void platform project show <project-id>`, which reports a line such as `AI Gateway logging: metadata (from plan "pro") — applied`. The project page in the admin dashboard shows the same line. See [AI Gateway logging](../../../reference/cli/platform-users.md#ai-gateway-logging) for each state, what the setting covers, and billing and Logpush details.
42
+
28
43
  ### Transferring Project Ownership
29
44
 
30
45
  Only an installation administrator can change a project's owner. The new owner must already have an account on this platform. In the dashboard, search for the new owner on the project page and preview the transfer before applying it. The CLI accepts a user ID:
@@ -36,7 +51,7 @@ void platform project owner <project-id> <new-owner-user-id> --yes
36
51
 
37
52
  The preview shows both owners, their plans and suspension state, blockers, and the changes to routing and usage counters. Wait for active rollbacks and builds to finish. For an ordinary active deployment, wait or use `void platform deployment cancel <id>`; rollback deployments cannot be canceled. A managed Sandbox controller also blocks transfer until its cleanup completes, even if no Sandbox container is running; the preview identifies the deployment that owns it.
38
53
 
39
- After the transfer, the former owner becomes a project administrator. Existing project-scoped CI deploy credentials are revoked; create replacements as the new owner. The new owner's plan and limits apply immediately. Usage before the transfer remains charged to the former owner; later usage is charged to the new owner. If an apply reports partial convergence, inspect the project and operator event log before repeating it.
54
+ After the transfer, the former owner becomes a project administrator. Existing project-scoped CI deploy credentials are revoked; create replacements as the new owner. The new owner's plan and limits apply immediately. Its AI Gateway logging default applies to new AI requests, normally within 2 minutes, unless the project has its own setting. Usage before the transfer remains charged to the former owner; later usage is charged to the new owner. If an apply reports partial convergence, inspect the project and operator event log before repeating it.
40
55
 
41
56
  By default, new users on a self-hosted installation start with the `custom` profile, which
42
57
  does not cap application requests, AI usage, deployment frequency, or retained
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Require Cloudflare Access sign-in on project hostnames, including custom domains, before visitors reach an app.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Clone the repository, install workspace dependencies, and run the platform locally with Vite+.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Build a platform runtime from your checkout and deploy that build into your Cloudflare account.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Change the platform database schema, generate a migration, and see how CI checks that schema.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Install or update a Void platform from CI after you have configured it once interactively.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Save the credentials an installation asks for, and see which values belong in a password manager or the shell.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -20,16 +21,18 @@ Keep one password-manager entry for this platform. Paste the saved values into t
20
21
 
21
22
  ## Cloudflare API Tokens {#runtime-token-permissions}
22
23
 
23
- For a domain installation or Cloudflare Access setup, the installer guides you through creating tokens using Cloudflare's [API token setup](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/): a runtime token, and a separate management token when the installation creates the zone or its wildcard DNS record, or sets up Access. Its links preselect the permissions and suggest names based on your platform's display name, but Cloudflare's form cannot preselect a zone: for a domain installation, change the zone policy from **All Domains** to **Specified Domains** and select your zone. If Void will create the zone, keep **All Domains** on both tokens: the zone does not exist yet, and the runtime token needs it to purge cache. Save the tokens in your password manager and paste them into the masked CLI prompts.
24
+ Follow the installer's [token-creation links](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) to create a runtime token. Void also asks for a separate management token when it creates a zone, adds wildcard DNS, or configures Access. The links select the permissions and suggest names based on your platform's name.
24
25
 
25
- For workers.dev testing with the default API hostname, browser login can authorize
26
- infrastructure setup. So can a domain installation on an existing zone whose
27
- `*.<application domain>` record is already proxied. Void also checks account-wide
28
- Access requirements; if the current credential cannot read them, the installer
29
- asks for a scoped Access token.
30
- Protected apps and public apps under Default-Deny need an ongoing app-management
31
- token, stored encrypted. Access setup requires a management token even on
32
- workers.dev. Skip zone permissions until you add a domain.
26
+ For a domain installation, choose the zone scope in Cloudflare's form:
27
+
28
+ - **Existing zone:** change **All Domains** to **Specified Domains** and select your zone.
29
+ - **New zone:** keep **All Domains** on both tokens. The zone doesn't exist yet, and the runtime token will need cache-purge access to it.
30
+
31
+ Save the tokens in your password manager and paste them into the masked CLI prompts.
32
+
33
+ Browser login can authorize workers.dev setup with the default API hostname. It also works for a domain installation with an existing proxied `*.<application domain>` record. If Void cannot read the account's Access requirements, it asks for a scoped Access token.
34
+
35
+ Configuring Access requires a management token, including on workers.dev. Protected apps and public apps under Default-Deny also need an ongoing app-management token, which Void stores encrypted. Skip zone permissions until you add a domain.
33
36
 
34
37
  Browser login does not grant AI Gateway access. Include **Account → AI Gateway → Edit** on the runtime token so Void can verify and create that resource.
35
38
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Add an application domain to an installed platform, including its DNS, routing, and HTTPS certificate.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Open the platform URL, connect the CLI, and deploy the first app into the shared Cloudflare account.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Resume, repair, upgrade, or recover an installation, including when the keychain or API is unavailable.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -113,6 +114,8 @@ void platform upgrade [id]
113
114
 
114
115
  An upgrade validates the runtime, applies supported pending migrations, deploys the Workers, and checks their health. Existing Worker secrets are preserved.
115
116
 
117
+ Install, upgrade, and repair also publish the saved [AI Gateway logging](/reference/cli/platform-users#ai-gateway-logging) settings (**Publishing AI logging settings**). For about 2 minutes afterward, `void platform project show` reports projects with a setting other than `inherit` as `pending`, as well as projects it switched back to `inherit`.
118
+
116
119
  Before starting, Void checks access to the installation's Cloudflare account, Workers, and existing R2 buckets. If credentials are rejected, set `CLOUDFLARE_API_TOKEN` to a management token scoped to that account and retry. This overrides the installation's saved management token.
117
120
 
118
121
  Some upgrades pause application traffic until the new version passes health checks. If a command fails while traffic is paused:
@@ -143,6 +146,8 @@ Keep the earlier runtime files if you need rollback. If the installed version is
143
146
 
144
147
  Do not roll back to 0.26.0 or earlier after upgrading to a later release. Void does not refuse this rollback, but those releases reject the credentials that later releases give your apps. Every project deployed or rotated since the upgrade loses AI, email, ISR revalidation, remote D1, KV, and R2, and prerendering until you upgrade again. If you have rolled back that far, upgrade again, then run `void platform system rotate-proxy-tokens --all --yes` and check with `--plan` until nothing is pending or failed.
145
148
 
149
+ After a rollback to 1.8.0, plan [AI Gateway logging](/guide/platform/administration/plans#ai-gateway-logging) defaults are not applied: projects that follow a plan default use the gateway's own setting, which logs prompts and responses on a new installation. Project settings still apply. Plan defaults stay saved, and the next upgrade publishes them again. A rollback to a release before 1.8.0 applies no AI logging settings.
150
+
146
151
  Let running rotations finish before you roll back. If an older proxy runs next to a newer API, prerendering and remote D1, KV, and R2 fail until both run the same release. After a rollback to the release just before credential rotation, projects deployed since the upgrade lose prerendering and remote D1, KV, and R2 until they are deployed again or you upgrade again. A rotated project deployed during any rollback stays broken after you upgrade again, and 0.26.0 and earlier also drop rotations that have not finished. After upgrading again from any rollback, run the same `rotate-proxy-tokens` commands.
147
152
 
148
153
  :::
@@ -156,7 +161,9 @@ void platform upgrade [id] --runtime-logs minimal
156
161
  void platform upgrade [id] --runtime-logs full
157
162
  ```
158
163
 
159
- Later upgrades keep the setting. The upgrade also changes Workers Logs on the projects' existing deployments. If that step fails, the upgrade still finishes and prints what to run next: `void platform repair [id]` after switching to minimal, or the same upgrade again after switching to full. Records stored before the change are not removed; they expire with Cloudflare's retention.
164
+ The setting also applies to existing project deployments, and later upgrades keep it. Previously stored logs remain until Cloudflare's retention period ends.
165
+
166
+ If updating project logs fails, the platform upgrade still completes and prints a recovery command. Run `void platform repair [id]` after switching to minimal, or repeat the upgrade after switching to full.
160
167
 
161
168
  While runtime logs are minimal, `void platform rollback` refuses a runtime that does not support the setting. Run `void platform upgrade [id] --runtime-logs full` first.
162
169
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Check the Cloudflare account, domain, and API token permissions you need before installing a Void platform.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Install a Void platform and choose how administrators and developers sign in.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -12,7 +13,9 @@ For workers.dev testing, start the interactive install and choose your login met
12
13
  void platform install --workers-dev
13
14
  ```
14
15
 
15
- When a domain installation creates the zone or its wildcard DNS record, or you set up Access, Void guides you to create a management API token and paste it into a masked prompt. Browser login can preview DNS and use an existing proxied `*.<application domain>` record, but cannot change DNS or configure Access. The token-creation link preselects the permissions for your choices. When using an existing domain, change the zone policy from **All Domains** to **Specified Domains** and select your zone, as the CLI prompt describes. No shell environment variable is needed for interactive installation.
16
+ Void asks for a management API token when it needs to create a zone, add wildcard DNS, or configure Access. Follow the token-creation link and paste the token into the masked prompt. For an existing domain, change **All Domains** to **Specified Domains** and select your zone.
17
+
18
+ Browser login can use an existing proxied `*.<application domain>` record, but cannot change DNS or configure Access. Interactive installation doesn't require shell environment variables.
16
19
 
17
20
  ::: details Use an existing management token from the shell
18
21
 
@@ -95,7 +98,7 @@ explicit app-management token; it never silently retains an installer-only token
95
98
 
96
99
  ## Choose what runtime logs record {#runtime-logs}
97
100
 
98
- By default, the platform records each request's URL, console output, and exception messages. Project owners see them with `void project logs`, and administrators with `void platform deployment logs`. They are kept in your Cloudflare account, in Workers Logs and in the platform's log history.
101
+ By default, runtime logs include request URLs, console output, and exception messages. Project owners read them with `void project logs`; administrators use `void platform deployment logs`. Logs stay in your Cloudflare account, in Workers Logs and the platform's log history.
99
102
 
100
103
  If your apps can put personal data in URLs, logs, or error messages, install with minimal runtime logs:
101
104
 
@@ -105,10 +108,9 @@ void platform install --runtime-logs minimal
105
108
 
106
109
  With minimal runtime logs:
107
110
 
108
- - Platform and project Workers do not send anything to Workers Logs.
109
- - Log history keeps each request's time, method, status, outcome, deployment, log levels, and exception names, but not its URL, log messages, or exception messages.
110
- - `--level` filters still work. `--filter` can match exception names, but not the messages that are no longer recorded.
111
- - Log views say that messages and URLs are not recorded on this platform.
111
+ - Workers Logs is disabled for platform and project Workers.
112
+ - The platform's log history keeps request times, methods, statuses, outcomes, deployments, log levels, and exception names. URLs and message text are omitted.
113
+ - You can still filter by `--level` or search exception names with `--filter`. Log views show that URLs and messages aren't recorded.
112
114
 
113
115
  The setting covers the whole platform. To change it later, see [Change runtime logs](/guide/platform/installation/maintenance#runtime-logs).
114
116
 
@@ -281,6 +283,6 @@ Resume restores your selected Hyperdrive. If that selection is missing from the
281
283
 
282
284
  If Cloudflare rejects a saved runtime token, Void opens the token page and asks for a replacement. For a missing [email permission](/guide/platform/installation/credentials#enable-email), update the existing token's permissions and resume. If you supplied a token through an environment variable, update that variable.
283
285
 
284
- To replace the runtime token, for example after revoking it, resume with the new token in `VOID_PLATFORM_RUNTIME_CLOUDFLARE_API_TOKEN`. Void checks it, saves it, and updates the platform Workers that the interrupted run already deployed.
286
+ To replace a revoked runtime token, set `VOID_PLATFORM_RUNTIME_CLOUDFLARE_API_TOKEN` to its replacement and resume. Void saves it and updates any platform Workers deployed by the interrupted run.
285
287
 
286
288
  :::
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Disable a platform without deleting its data, or uninstall it and remove its Cloudflare resources.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Manage people, projects, deployment logs, and platform health from the terminal with void platform.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Change the platform in this repository, test it locally, and deploy a runtime built from your fork.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Invite readers, collaborators, and project administrators to a hosted project. Direct Cloudflare deploys stay single-user.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Process work asynchronously with a consumer in queues/, then send it typed messages from your app.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -110,6 +111,8 @@ export default defineQueue<Message>(async (batch, env) => {
110
111
  - `maxRetries`: maximum number of retries before delivery is exhausted (default `3`)
111
112
  - `retryDelay`: seconds to wait between retries (default `0`)
112
113
 
114
+ Export each option directly from the queue file as a whole number, such as `export const maxRetries = 5`. Computed values and re-exports aren't supported; repeat shared settings in each queue file.
115
+
113
116
  Void-managed queues do not configure a dead-letter queue. Cloudflare permanently
114
117
  deletes messages that exhaust their retries without one; see
115
118
  [Cloudflare's dead-letter queue guide](https://developers.cloudflare.com/queues/configuration/dead-letter-queues/).
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Create a Void app, run it locally, and deploy it. You can also add Void to an existing Vite app.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -33,7 +34,7 @@ bun add -D void
33
34
  bunx void init
34
35
  ```
35
36
 
36
- ```sh [vite+]
37
+ ```sh [vp]
37
38
  vp add -D void
38
39
  vpx void init
39
40
  ```
@@ -66,7 +67,7 @@ yarn run dev
66
67
  bun run dev
67
68
  ```
68
69
 
69
- ```sh [vite+]
70
+ ```sh [vp]
70
71
  vpr dev
71
72
  ```
72
73
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Run local code against a project already deployed to your Void platform, including its database and storage.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Run commands, work with files, and connect to servers inside an isolated Cloudflare Sandbox.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Install a shared deployment environment in your Cloudflare account so your team can deploy without account credentials.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Add an endpoint by creating a file in routes/ and exporting a handler for each HTTP method.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -16,7 +17,7 @@ Dynamic segments use brackets: `[id]` becomes a route parameter and `[...slug]`
16
17
 
17
18
  ### Overlapping routes
18
19
 
19
- When several routes match a URL, the most specific one handles it. Void compares routes segment by segment, from the left, and the first segment that differs decides: a static segment beats `[param]`, and `[param]` beats `[...slug]`. Catch-all routes rank after all other routes.
20
+ When routes overlap, the most specific one handles the request. From left to right, static segments take priority over parameters. Catch-all routes run last:
20
21
 
21
22
  ```
22
23
  routes/
@@ -26,7 +27,7 @@ routes/
26
27
  [...path].ts → handles URLs no other route matches
27
28
  ```
28
29
 
29
- Parameter names don't affect the order. Routes that differ only in their parameter names, such as `[id].ts` and `[slug].ts`, match the same URLs, so keep only one of them.
30
+ Use one route for each pattern. `[id].ts` and `[slug].ts` match the same URLs; renaming a parameter doesn't change priority.
30
31
 
31
32
  ### Environment-only routes
32
33
 
package/docs/guide/sse.md CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Stream events from a route handler to the browser. Void formats the messages, sends keepalives, and closes the stream.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -141,7 +142,7 @@ stream.close();
141
142
 
142
143
  The client wraps native `EventSource`. It supports cookie credentials and typed event handlers, but it does not support request bodies or arbitrary headers. Use cookie auth, signed URLs, or a fetch-based streaming route when you need custom headers.
143
144
 
144
- With [`routing.typedRoutes`](../reference/config.md#routing-typedroutes), the URL must match one of your routes, such as `` `/api/jobs/${id}` ``, or be an `http://` or `https://` URL. Cast a `string` that TypeScript can't check with `as RouteUrl` from `void/routes`. The cast turns off the check for that URL.
145
+ With [`routing.typedRoutes`](../reference/config.md#routing-typedroutes), TypeScript checks the URL against your routes, such as `` `/api/jobs/${id}` ``. External `http://` and `https://` URLs also work. For a URL you validate at runtime, use `as RouteUrl` from `void/routes` to skip the type check.
145
146
 
146
147
  JSON parsing is the default. Set `parse: 'text'` or pass a custom parser for non-JSON payloads:
147
148
 
package/docs/guide/ssg.md CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Prerender every page at build time by setting the static output mode in void.config.ts.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -32,9 +33,11 @@ export default defineConfig({
32
33
  });
33
34
  ```
34
35
 
35
- `/posts/` is written to `posts/index.html`, and `/posts/hello/` to `posts/hello/index.html`. Pages URLs without the slash redirect to their trailing-slash URL in development and when served by Void. Use trailing slashes in your page links; generated route types follow this setting. API routes keep their existing URLs.
36
+ Void writes `/posts/` to `posts/index.html` and `/posts/hello/` to `posts/hello/index.html`. Use trailing slashes in your links; generated route types follow this setting. In development and when served by Void, URLs without the slash redirect to it. API URLs stay the same.
36
37
 
37
- Omitting the option or setting it to `false` preserves the default `posts.html` output. Static builds keep `404.html` at the output root. On Cloudflare, use the default HTML handling or `force-trailing-slash`; `drop-trailing-slash` conflicts with this option. Third-party frameworks retain their own URL configuration.
38
+ The default is `false`, which writes `posts.html`. The error page stays at `404.html` in either mode.
39
+
40
+ On Cloudflare, use default HTML handling or `force-trailing-slash`, rather than `drop-trailing-slash`. Third-party frameworks use their own URL settings.
38
41
 
39
42
  ## Per-page overrides
40
43
 
@@ -45,7 +48,7 @@ Individual pages can opt out of prerendering:
45
48
  export const prerender = false;
46
49
  ```
47
50
 
48
- Dynamic pages with `getPrerenderPaths()` are prerendered for the returned param combinations. Annotate the return type with [`PageParams`](../reference/api/types.md#route-types) so TypeScript checks the param names. Void does not infer them from the filename:
51
+ For dynamic pages, return the paths to render from `getPrerenderPaths()`. Annotate the return type with [`PageParams`](../reference/api/types.md#route-types) to check the parameter names:
49
52
 
50
53
  ```ts
51
54
  // pages/blog/[slug].server.ts
@@ -56,7 +59,9 @@ export async function getPrerenderPaths(): Promise<PageParams<'/blog/[slug]'>[]>
56
59
  }
57
60
  ```
58
61
 
59
- Each object must include every param in the page path. Values can be strings or numbers, and Void URL-encodes them. A single-segment param such as `[slug]` cannot contain `/`. For nested paths, use a catch-all page such as `pages/docs/[...slug]` and return `{ slug: 'guides/intro' }`. If an entry is invalid, the build fails. The error names the server file and the entry index.
62
+ Return every required parameter as a string or number. Void URL-encodes the values. For a value containing `/`, use a catch-all page such as `pages/docs/[...slug]` with `{ slug: 'guides/intro' }`.
63
+
64
+ TypeScript needs the annotation above to check the keys. Invalid entries stop the build with their server filename and index.
60
65
 
61
66
  ## 404 pages
62
67
 
@@ -79,8 +84,15 @@ With the default `output: "server"`, use `export const prerender = true` for dep
79
84
 
80
85
  `void deploy` chooses the deployment automatically:
81
86
 
82
- - **Fully static:** if every page is prerendered and there are no API routes, middleware, cron jobs, or queues, Void deploys the built files as a static site. With `--platform cloudflare`, pages and files are served without running a Worker. If you use [edge rules](./edge/headers.md) (`routing` headers, redirects, rewrites, fallbacks, or `alwaysUseHttps`) or a `_headers` or `_redirects` file in `public/`, a small Worker runs on every request to apply them.
83
- - **Hybrid:** if any pages are not prerenderable, such as dynamic pages without `getPrerenderPaths()` or pages with `export const prerender = false`, a Worker is deployed to handle those routes at runtime. With `--platform cloudflare`, prerendered pages without a `.server.ts` file are served as static files without running the Worker. API routes, pages with a `.server.ts` file, and dynamic pages run in the Worker. Every page runs through the Worker when the app uses middleware, auth, live updates, edge rules (including a `_headers` or `_redirects` file in `public/`), a custom Vite `base`, a `routing.notFound` setting other than `"none"`, or a dynamic page at the top level of `pages/`, such as `pages/[slug].vue`.
87
+ - **Fully static:** every page is prerendered, with no API routes, middleware, cron jobs, or queues. Void deploys the built files as a static site.
88
+ - **Hybrid:** some pages need server rendering, such as a dynamic page without `getPrerenderPaths()` or a page with `prerender = false`. Void deploys a Worker for those routes and serves prerendered pages as static assets.
89
+
90
+ On direct Cloudflare deployments, static files can bypass the Worker:
91
+
92
+ - Fully static apps serve files directly. [Edge rules](./edge/headers.md), including `_headers` or `_redirects` in `public/`, require a small Worker on every request.
93
+ - Hybrid apps serve prerendered pages directly when they have no `.server.ts` companion. API routes, dynamic pages, and pages with server companions run in the Worker.
94
+
95
+ Every page uses the Worker if the app has middleware, auth, live updates, edge rules, a custom Vite `base`, a `routing.notFound` value other than `"none"`, or a dynamic page at the root of `pages/`, such as `pages/[slug].vue`. With these settings, prerendered requests also run through the Worker.
84
96
 
85
97
  ## Relationship to `inference.appType: "static"`
86
98
 
package/docs/guide/ssr.md CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Bring your own router, data loading, HTML shell, and hydration, or use Pages Routing to have Void handle them.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ description: 'Store files in Cloudflare R2, and upload, download, and read metadata through void/storage.'
2
3
  outline: deep
3
4
  ---
4
5
 
@@ -68,7 +69,7 @@ Files your users upload can contain HTML or scripts. Store them under keys your
68
69
 
69
70
  ## Custom bindings
70
71
 
71
- Declare your R2 binding under `cloudflare.r2_buckets` in `void.config.ts`, for example `{ binding: 'MY_BUCKET', bucket_name: 'uploads' }`. Run `void prepare` to generate its type, then pass it to `createStorage(bucket)`:
72
+ To use another R2 bucket, add it to `cloudflare.r2_buckets` in `void.config.ts`, for example `{ binding: 'MY_BUCKET', bucket_name: 'uploads' }`. Run `void prepare`, then pass the typed binding to `createStorage()`:
72
73
 
73
74
  ```ts
74
75
  import { defineHandler } from 'void';
@@ -0,0 +1,64 @@
1
+ ---
2
+ description: 'Run tests with Vitest and Vite+, mock Cloudflare bindings, and test email with the built-in harnesses.'
3
+ outline: deep
4
+ ---
5
+
6
+ # Testing
7
+
8
+ Void apps use [Vitest](https://vitest.dev/). With Vite+, run your tests with:
9
+
10
+ ```sh
11
+ vp test
12
+ ```
13
+
14
+ Import `it`, `expect`, and other test APIs from `vite-plus/test`. If you chose Vite instead of Vite+, install `vitest` as a dev dependency and use `vitest` for both the imports and command.
15
+
16
+ Vitest uses your `vite.config.ts`. Imports such as `void/*` and `@schema` work without extra test configuration.
17
+
18
+ Put tests in `tests/` or beside the code they test in `src/`. Keep them out of [convention directories](../reference/structure.md) such as `routes/` and `pages/`, where Void would treat them as app routes.
19
+
20
+ ## Bindings {#bindings}
21
+
22
+ Tests run in Node.js without starting a Worker or applying local migrations. To test code that uses D1, KV, R2, or another binding, mock the module with [`vi.mock()`](https://vitest.dev/api/vi#vi-mock).
23
+
24
+ For example, this function counts visits in KV:
25
+
26
+ ```ts
27
+ // src/visits.ts
28
+ import { kv } from 'void/kv';
29
+
30
+ export async function countVisit(): Promise<number> {
31
+ const visits = ((await kv.get<number>('visits')) ?? 0) + 1;
32
+ await kv.put('visits', visits);
33
+ return visits;
34
+ }
35
+ ```
36
+
37
+ Replace KV with an in-memory map in the test:
38
+
39
+ ```ts
40
+ // src/visits.test.ts
41
+ import { expect, it, vi } from 'vite-plus/test';
42
+ import { countVisit } from './visits';
43
+
44
+ vi.mock('void/kv', () => {
45
+ const values = new Map<string, unknown>();
46
+ return {
47
+ kv: {
48
+ get: async (key: string) => values.get(key) ?? null,
49
+ put: async (key: string, value: unknown) => {
50
+ values.set(key, value);
51
+ },
52
+ },
53
+ };
54
+ });
55
+
56
+ it('counts visits', async () => {
57
+ await countVisit();
58
+ expect(await countVisit()).toBe(2);
59
+ });
60
+ ```
61
+
62
+ ## Email {#email}
63
+
64
+ `void/email/testing` captures sent and received email in tests. See [Testing](./email/sending.md#testing) in Sending Email and [Testing inbound handlers](./email/receiving.md#testing-inbound-handlers) in Receiving Email.