void 1.11.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/{account-cmd-Bbr5cHjm.mjs → account-cmd-BU1Fy_Bf.mjs} +6 -6
  2. package/dist/{agents-DRo8gzni.mjs → agents-64FnLwxP.mjs} +6 -5
  3. package/dist/{application-analysis-XyUuNqYA.mjs → application-analysis-DVeN8yoi.mjs} +48 -22
  4. package/dist/{application-routing-DATqynKH.mjs → application-routing-KKw4Y84h.mjs} +1 -1
  5. package/dist/{assets-DZBd7yqh.mjs → assets-Br6_BeFJ.mjs} +34 -27
  6. package/dist/{ast-Cv0JwXqb.mjs → ast-BkPQu7A0.mjs} +5 -1
  7. package/dist/{auth-BN0NU9dz.mjs → auth-A7cZ8aXA.mjs} +1 -1
  8. package/dist/{auth-CCk9Seol.mjs → auth-CqwJwItO.mjs} +24 -12
  9. package/dist/{auth-link-CVxoyU81.mjs → auth-link-Duu2NvN5.mjs} +6 -6
  10. package/dist/{auth-router-ChXKduRM.mjs → auth-router-vgtOdb9j.mjs} +5 -5
  11. package/dist/{better-auth-shared-B8W8tZxP.d.mts → better-auth-shared-BS3pDQbT.d.mts} +6 -6
  12. package/dist/{better-auth-shared-DRHo5FoG.mjs → better-auth-shared-BcqDt-37.mjs} +7 -2
  13. package/dist/{build-cmd-C3b13rRf.mjs → build-cmd-B7OJ0U5R.mjs} +13 -12
  14. package/dist/build-id-4IV4hC1-.mjs +13 -0
  15. package/dist/{cache-B1WzZV60.mjs → cache-wSpi3aeM.mjs} +6 -6
  16. package/dist/{cancel-deploy-BggXixU_.mjs → cancel-deploy-DMWzkAlb.mjs} +5 -5
  17. package/dist/{cf-access-Dnyw8KFY.mjs → cf-access-DHklo7Rg.mjs} +41 -23
  18. package/dist/{cf-access-pejlJmuy.mjs → cf-access-DmkKPcAI.mjs} +0 -8
  19. package/dist/{cf-build-output-bBx1gDll.mjs → cf-build-output-Cso7Vh-t.mjs} +31 -27
  20. package/dist/cf-build-output-Wpk_e5CI.mjs +1 -0
  21. package/dist/{cf-command-values-Ccl-zRhl.mjs → cf-command-values-5BPBRc9Z.mjs} +1 -1
  22. package/dist/cf-config-migrate-D271BTiw.mjs +1664 -0
  23. package/dist/{cf-worker-settings-CARs4Wy9.mjs → cf-worker-settings-BBdlhm9U.mjs} +1 -1
  24. package/dist/cli/cli.mjs +1 -1
  25. package/dist/cli/cloudflare-operation-process.mjs +17 -14
  26. package/dist/cli/db-execute-process.d.mts +2 -0
  27. package/dist/cli/db-execute-process.mjs +57 -0
  28. package/dist/cli/env-schema-probe.d.mts +3 -1
  29. package/dist/cli/env-schema-probe.mjs +7 -8
  30. package/dist/{cli-main-DW09sVsT.mjs → cli-main-BrChcpE3.mjs} +152 -405
  31. package/dist/{client-DF6U7KLP.mjs → client-DE2m2ldh.mjs} +186 -17
  32. package/dist/{client-DGfZTE4V.mjs → client-eLZwqkPH.mjs} +1 -1
  33. package/dist/{cloudflare-auth-pNvmT6kL.mjs → cloudflare-auth-eWfhdZCk.mjs} +1 -1
  34. package/dist/{cloudflare-cmd-BOhToob3.mjs → cloudflare-cmd-SsFlJe2B.mjs} +7 -8
  35. package/dist/{cloudflare-config-D1dMHbvz.mjs → cloudflare-config-D9UFH_A5.mjs} +2 -2
  36. package/dist/{cloudflare-connect-DTrsIBAa.mjs → cloudflare-connect-BgpHcSg3.mjs} +3 -3
  37. package/dist/{cloudflare-operations-DmqtzoX4.mjs → cloudflare-operations-BIRQkYwL.mjs} +26 -28
  38. package/dist/cloudflare-operations-ByjFGats.mjs +1 -0
  39. package/dist/cloudflare-process-60r4Z2Zf.mjs +671 -0
  40. package/dist/cloudflare-user-output-CCR99eQY.mjs +19 -0
  41. package/dist/collect-B6nlSnsb.mjs +1 -0
  42. package/dist/{collect-C6Blu9yw.mjs → collect-rNLybAnF.mjs} +3 -3
  43. package/dist/{config-Do7gJI3T.mjs → config-BFX5ZB1J.mjs} +5 -4
  44. package/dist/{config-CeZd67L0.mjs → config-BSoW3QCB.mjs} +5 -5
  45. package/dist/{config-DYW2TBgz.d.mts → config-DA6ZbLXO.d.mts} +1 -1
  46. package/dist/{config-dMSpL-ml.mjs → config-DtjrUtPo.mjs} +1 -1
  47. package/dist/{config-BmvqLnbi.mjs → config-Dv5jri1-.mjs} +4 -4
  48. package/dist/config-entry.d.mts +1 -1
  49. package/dist/{connect-B3bKxRzX.mjs → connect-D0V0o40j.mjs} +9 -9
  50. package/dist/{create-project-DLUlxmf5.mjs → create-project-8FdN6D2i.mjs} +7 -6
  51. package/dist/{create-project-By7ymK7F.mjs → create-project-CbuDH5Hv.mjs} +1 -1
  52. package/dist/{db-3qsP21pH.mjs → db-BNPIjLkK.mjs} +1450 -154
  53. package/dist/db-args-BvMwAber.mjs +1 -0
  54. package/dist/db-args-CiQVg8SJ.mjs +321 -0
  55. package/dist/db-seed-loader-Bcz_SutQ.mjs +253 -0
  56. package/dist/{db-types-DC7KJLx2.mjs → db-types-B4Cf9dzR.mjs} +1 -1
  57. package/dist/{delete-HbFqgEFC.mjs → delete-WtLEfap2.mjs} +6 -6
  58. package/dist/{deploy-2QjsBEGw.mjs → deploy-BgSbagIP.mjs} +218 -553
  59. package/dist/deploy-Do6FWqon.mjs +2 -0
  60. package/dist/{deploy-managed-static-JoNP3cec.mjs → deploy-managed-static-BWBsxOww.mjs} +115 -194
  61. package/dist/deploy-security-notice-IRGy6Edf.mjs +192 -0
  62. package/dist/{deploy-transport-QAkhJYRI.mjs → deploy-transport-BKP_oV9q.mjs} +4 -4
  63. package/dist/deploy.mjs +9 -9
  64. package/dist/{dev-inbox-BiamQEAa.mjs → dev-inbox-ClVjKEHy.mjs} +1 -1
  65. package/dist/direct-r2-upload-DFXLWfXV.mjs +204 -0
  66. package/dist/discover-D2KGP3cR.mjs +1 -0
  67. package/dist/{discover-Vd18lHsj.mjs → discover-IcspacCg.mjs} +1 -1
  68. package/dist/{dispatch-BlOYh1Vc.mjs → dispatch-DIhDA3NI.mjs} +11 -10
  69. package/dist/{dist-Cp4b1_T9.mjs → dist-C47zy_kJ.mjs} +1 -1
  70. package/dist/{dist-STQXl8ck.mjs → dist-Cr_xGE_K.mjs} +73 -38
  71. package/dist/{domain-COkVSfII.mjs → domain-mweyYXSw.mjs} +8 -10
  72. package/dist/{dotenv-CEI8hapP.mjs → dotenv-BG6RQavH.mjs} +2 -2
  73. package/dist/{drizzle-BXVOa6Jg.mjs → drizzle-BJDMPrj7.mjs} +3 -4
  74. package/dist/{drizzle-CvSGrvdl.mjs → drizzle-CQ5jWuDL.mjs} +1 -1
  75. package/dist/{email-Dj02fLgQ.mjs → email-DcQNP40O.mjs} +33 -30
  76. package/dist/{email-cloudflare-DDknDAgp.mjs → email-cloudflare-DeYH3Ke7.mjs} +29 -38
  77. package/dist/{email-pattern-BYr-EFq5.mjs → email-pattern-bRna9MOJ.mjs} +2 -2
  78. package/dist/{entry-DMgR7XOf.mjs → entry-Bwb9ev8K.mjs} +13 -10
  79. package/dist/{env-BA7e5yzp.mjs → env-DaAoYR2-.mjs} +8 -8
  80. package/dist/{env-UqS-21xi.mjs → env-EjHqc7m9.mjs} +1 -1
  81. package/dist/{env-types-WEZw5D-r.mjs → env-types-D2hBodXP.mjs} +2 -19
  82. package/dist/{env-validation-DfJ9Fzfa.mjs → env-validation-D-v5_CWL.mjs} +13 -13
  83. package/dist/{env-validation-ly_Q9Kgd.mjs → env-validation-j9pjCDfA.mjs} +1 -1
  84. package/dist/{error-pages-QNeBXiRR.mjs → error-pages-GORL6F_e.mjs} +1 -1
  85. package/dist/{fetch-CbI6lNnk.d.mts → fetch-CczQyIed.d.mts} +1 -1
  86. package/dist/{fetch-DdK9eGin.mjs → fetch-CiEsvjpP.mjs} +1 -1
  87. package/dist/{fetch-stream-DQAavFdm.mjs → fetch-stream-BIG5lHW6.mjs} +3 -4
  88. package/dist/{fetch-stream-DoED9atq.d.mts → fetch-stream-DRX8-83b.d.mts} +2 -2
  89. package/dist/{gen-EMpnzNGz.mjs → gen-aOtHhZLD.mjs} +21 -18
  90. package/dist/gen-vhBDHs3q.mjs +1 -0
  91. package/dist/{generate-BOp1g1H_.mjs → generate-C3ZAqCy-.mjs} +1 -1
  92. package/dist/{generate-CWb8aOsm.mjs → generate-Dq2Bgw75.mjs} +6 -6
  93. package/dist/{git-metadata-Cukp5kV5.mjs → git-metadata-BEokJ6US.mjs} +1 -1
  94. package/dist/{github-cmd-8bXgJNAQ.mjs → github-cmd-BR19Ffdz.mjs} +14 -9
  95. package/dist/{handler-w_FAiIRu.mjs → handler-DCrDLzw2.mjs} +3 -3
  96. package/dist/has-own-key-D9QEnAkF.mjs +5 -0
  97. package/dist/{head-0o0QoREY.mjs → head-BwQ5kgqt.mjs} +5 -4
  98. package/dist/{head-CVO92KEx.d.mts → head-fUp8n_QJ.d.mts} +9 -4
  99. package/dist/{headers-BjgvlY29.mjs → headers-DqBsjDxg.mjs} +7 -7
  100. package/dist/{help-DCQKp3Kp.mjs → help-DvClCzqL.mjs} +138 -60
  101. package/dist/help-fKPzcTJv.mjs +1 -0
  102. package/dist/{inbound-BHt4dIlL.d.mts → inbound-CwgZSqFI.d.mts} +9 -3
  103. package/dist/{inbound--OF7zkwX.mjs → inbound-feMn1Rxx.mjs} +7 -7
  104. package/dist/{index-CmqHYj2R.d.mts → index-8cAgNdb6.d.mts} +1 -1
  105. package/dist/{index-BTmhCDbw.d.mts → index-BQ5qYiAw.d.mts} +2 -2
  106. package/dist/{index-BESZTC1z.d.mts → index-BYcWajVp.d.mts} +2 -1
  107. package/dist/{index-BXdP39qx.d.mts → index-Dn2mkPr2.d.mts} +24 -23
  108. package/dist/index.d.mts +2 -2
  109. package/dist/index.mjs +344 -637
  110. package/dist/{info--jdAIsJN.mjs → info-P6MBiVJi.mjs} +4 -4
  111. package/dist/{init-BLZvktk_.mjs → init-C8YpkGIP.mjs} +124 -345
  112. package/dist/installed-packages-tfmYd-cC.mjs +198 -0
  113. package/dist/{isr-config-Czzb4mIq.mjs → isr-config-DiTnL9Tb.mjs} +5 -5
  114. package/dist/{link-DPJ4jN7y.mjs → link-Dyz9IGcM.mjs} +7 -7
  115. package/dist/{list-B-au6xJt.mjs → list-VGYBMjmx.mjs} +11 -7
  116. package/dist/{live-DvtxTUhW.mjs → live-dvGThbwy.mjs} +14 -17
  117. package/dist/{load-user-env-BltIJLtl.mjs → load-user-env-B8qC0Q2Y.mjs} +1 -1
  118. package/dist/{local-d1-C6xn26Nl.mjs → local-d1-CYOYkVwO.mjs} +3 -3
  119. package/dist/{login-p1_BMgXg.mjs → login-CWFr-G2I.mjs} +8 -6
  120. package/dist/login-DECm3e9b.mjs +1 -0
  121. package/dist/{logs-UNH3vQeX.mjs → logs-kS1wuR4b.mjs} +9 -9
  122. package/dist/{migrate-9dlt6Mxu.mjs → migrate-BNZL1hee.mjs} +9 -10
  123. package/dist/migrate-C9aoWLvY.mjs +1 -0
  124. package/dist/{migrations-Cbns2RAm.mjs → migrations-CUHhX65Y.mjs} +5 -5
  125. package/dist/{mime-BGoZ8ZLL.mjs → mime-Btw9R3CC.mjs} +26 -12
  126. package/dist/module-references-DWQmO6TW.mjs +27 -0
  127. package/dist/mysql-lock-D8xtnI-D.mjs +145 -0
  128. package/dist/mysql-sql-BIE7bc4Z.mjs +124 -0
  129. package/dist/nitro.d.mts +3 -0
  130. package/dist/nitro.mjs +14 -5
  131. package/dist/{node-DqkiQujF.mjs → node-DVJWfV6s.mjs} +6 -6
  132. package/dist/{operator-ai-logging-BQ6mOgQs.mjs → operator-ai-logging-DD0n6zc2.mjs} +11 -10
  133. package/dist/operator-args-nvetCWuz.mjs +1499 -0
  134. package/dist/{operator-auth-CD3pap65.mjs → operator-auth-DMvn-y9X.mjs} +2 -2
  135. package/dist/{operator-client-XvXTkea6.mjs → operator-client-dFNnXfyB.mjs} +6 -5
  136. package/dist/operator-cmd-CVfK5U0B.mjs +1 -0
  137. package/dist/{operator-cmd-CKbZbNKn.mjs → operator-cmd-a7yOf2tH.mjs} +33 -13
  138. package/dist/operator-security-D5MToU0p.mjs +263 -0
  139. package/dist/{output-Bc8ixgPF.mjs → output-BZLnu0z8.mjs} +13 -3
  140. package/dist/output-D7K9TWIA.mjs +1 -0
  141. package/dist/{package-json-DvS6IFRv.mjs → package-json-4xUI3xLz.mjs} +1 -1
  142. package/dist/pages/client.d.mts +53 -30
  143. package/dist/pages/client.mjs +168 -38
  144. package/dist/pages/head.d.mts +1 -1
  145. package/dist/pages/head.mjs +1 -1
  146. package/dist/pages/index.d.mts +8 -2
  147. package/dist/pages/index.mjs +283 -13
  148. package/dist/pages/islands-plugin.d.mts +26 -8
  149. package/dist/pages/islands-plugin.mjs +61 -22
  150. package/dist/pages/protocol.d.mts +2 -2
  151. package/dist/pages/protocol.mjs +1 -1
  152. package/dist/pages/serialize.mjs +1 -1
  153. package/dist/{pgpass-CEtnBOZO.mjs → pgpass-BLPoYN9_.mjs} +3 -2
  154. package/dist/platform-args-CMwMoiLp.mjs +1 -0
  155. package/dist/{platform-args-DQSMW4EP.mjs → platform-args-CvZSuhYS.mjs} +37 -9
  156. package/dist/{platform-auth-config-D80AKe72.mjs → platform-auth-config-CpszX-Ne.mjs} +26 -23
  157. package/dist/{platform-auth-protection-k1Ox-u9T.mjs → platform-auth-protection-DA6Tw8Og.mjs} +10 -10
  158. package/dist/{platform-auth-recovery-D-hKehPy.mjs → platform-auth-recovery-Cztrb1JC.mjs} +11 -9
  159. package/dist/{platform-cmd-DQ0Wi61H.mjs → platform-cmd-m6Asj6nO.mjs} +11 -11
  160. package/dist/{platform-cmd-Dtz5lw7R.mjs → platform-cmd-u1j88ggF.mjs} +1 -1
  161. package/dist/{platform-discovery-B0eZjZ3B.mjs → platform-discovery-CLxtixHJ.mjs} +1 -1
  162. package/dist/{platform-domain-BMGS4l74.mjs → platform-domain-DJSznNTA.mjs} +14 -10
  163. package/dist/{platform-lifecycle-y4AfmC7M.mjs → platform-lifecycle-BC-9p58d.mjs} +1 -1
  164. package/dist/{platform-lifecycle-BCkNQNsQ.mjs → platform-lifecycle-GFeXv3NC.mjs} +802 -207
  165. package/dist/platform-management-BwHkz46V.mjs +1 -0
  166. package/dist/{platform-management-Cj2aXFqD.mjs → platform-management-DX1zINou.mjs} +227 -58
  167. package/dist/{platform-plans-config-CrUUzEl9.mjs → platform-plans-config-DiydtNKY.mjs} +112 -35
  168. package/dist/{platform-recovery-DKZnALHI.mjs → platform-recovery-CnzBbudV.mjs} +5 -5
  169. package/dist/{platform-registry-DZ_2Xuqd.mjs → platform-registry-DHH6fivm.mjs} +6 -5
  170. package/dist/{platform-setup-CKmSEb1J.mjs → platform-setup-Lph9i-rh.mjs} +26 -12
  171. package/dist/{plugin-inference-B_urWd5Z.mjs → plugin-inference-COlq96WJ.mjs} +28 -53
  172. package/dist/prepare-DcwigRUS.mjs +1 -0
  173. package/dist/{prepare-CU7SZieQ.mjs → prepare-WvijE289.mjs} +3 -3
  174. package/dist/{prepare-vCdm5moJ.mjs → prepare-co1o1FFd.mjs} +12 -12
  175. package/dist/{project-cmd-B4cgPSi4.mjs → project-cmd-BWJTplpc.mjs} +30 -24
  176. package/dist/{project-CLwxcEdq.mjs → project-dh9431bN.mjs} +2 -2
  177. package/dist/{project-paths-CUhCPMpK.mjs → project-paths-2ENfCCih.mjs} +4 -3
  178. package/dist/project-security-BV1xfj1K.mjs +1 -0
  179. package/dist/project-security-CY_aahvW.mjs +1340 -0
  180. package/dist/{project-team-BdX6anO3.mjs → project-team-BlIFXlmT.mjs} +8 -8
  181. package/dist/{project-token-C1rcq8Xb.mjs → project-token-CMsB7I1-.mjs} +6 -6
  182. package/dist/{project-tsconfig-MyRJgufB.mjs → project-tsconfig-BOA4ym99.mjs} +25 -5
  183. package/dist/{project-DVsTAWFh.mjs → project-uXKua1it.mjs} +1 -1
  184. package/dist/project-zero-trust-BI6pdpx4.mjs +210 -0
  185. package/dist/{protocol-W5EQcIzN.mjs → protocol-4rEnumif.mjs} +15 -8
  186. package/dist/{protocol-BlAiF-hc.d.mts → protocol-ERy-n3jf.d.mts} +7 -4
  187. package/dist/{provision-DWnnKdT-.mjs → provision-Bh44omGA.mjs} +30 -22
  188. package/dist/{provision-CGI-T0mq.mjs → provision-DFv7SJDn.mjs} +1 -1
  189. package/dist/{public-B80SwOFp.d.mts → public-DB9C2Cy_.d.mts} +5 -2
  190. package/dist/{raw-7pQirZpQ.mjs → raw-5rak34QN.mjs} +2 -1
  191. package/dist/{redirect-Dqb4fEc5.mjs → redirect-Dyvuil0Q.mjs} +6 -3
  192. package/dist/{requests-D6MaLS_Y.mjs → requests-CfmJxNYg.mjs} +6 -6
  193. package/dist/{resolve-project-Da3OgCU1.mjs → resolve-project-8WZ3iVmr.mjs} +3 -3
  194. package/dist/resolve-project-YsTH-U9I.mjs +1 -0
  195. package/dist/{rollback-Bs8I8PF8.mjs → rollback-DL5HuAsM.mjs} +16 -7
  196. package/dist/route-types-CSed9-Dp.mjs +435 -0
  197. package/dist/{route-url-BBdkU7rb.mjs → route-url-B41eQ8QI.mjs} +1 -1
  198. package/dist/{route-url-Di1kB8D_.d.mts → route-url-Bd6IX-JZ.d.mts} +2 -1
  199. package/dist/routes-stub.d.mts +1 -1
  200. package/dist/routes-stub.mjs +1 -1
  201. package/dist/{runner-CTk21HrO.mjs → runner-Bf94YVJK.mjs} +1 -1
  202. package/dist/{runner-CMZb7jNU.mjs → runner-CeguHWJx.mjs} +3 -2
  203. package/dist/{runner-mysql-CJ-HyqxV.mjs → runner-mysql-D549vGGm.mjs} +14 -9
  204. package/dist/{runner-mysql-C_PrAUTm.mjs → runner-mysql-DOjbj-N1.mjs} +1 -1
  205. package/dist/{runner-pg-mYc75KfH.mjs → runner-pg-Buzw17hl.mjs} +1 -1
  206. package/dist/{runner-pg-2pjltt0t.mjs → runner-pg-DMJquR3d.mjs} +1 -1
  207. package/dist/runtime/ai/index.mjs +2 -2
  208. package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
  209. package/dist/runtime/auth/better-auth-d1.mjs +2 -2
  210. package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
  211. package/dist/runtime/auth/better-auth-mysql.mjs +2 -2
  212. package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
  213. package/dist/runtime/auth/better-auth-postgres.mjs +3 -3
  214. package/dist/runtime/client/fetch-server.d.mts +1 -1
  215. package/dist/runtime/client/fetch-server.mjs +2 -2
  216. package/dist/runtime/client/fetch-stream.d.mts +2 -2
  217. package/dist/runtime/client/fetch-stream.mjs +1 -1
  218. package/dist/runtime/client/fetch.d.mts +1 -1
  219. package/dist/runtime/client/fetch.mjs +1 -1
  220. package/dist/runtime/client/index.d.mts +2 -2
  221. package/dist/runtime/client/index.mjs +2 -2
  222. package/dist/runtime/client/react.d.mts +2 -2
  223. package/dist/runtime/client/react.mjs +2 -2
  224. package/dist/runtime/client/solid.d.mts +2 -2
  225. package/dist/runtime/client/solid.mjs +2 -2
  226. package/dist/runtime/client/svelte.d.mts +2 -2
  227. package/dist/runtime/client/svelte.mjs +2 -2
  228. package/dist/runtime/client/vue.d.mts +2 -2
  229. package/dist/runtime/client/vue.mjs +2 -2
  230. package/dist/runtime/db/index.d.mts +1 -1
  231. package/dist/runtime/db/index.mjs +3 -3
  232. package/dist/runtime/db/migrations/mysql-handler.mjs +2 -1
  233. package/dist/runtime/db/migrations/postgres-handler.mjs +1 -1
  234. package/dist/runtime/db/session.d.mts +1 -1
  235. package/dist/runtime/db/session.mjs +1 -1
  236. package/dist/runtime/durable/index.mjs +7 -5
  237. package/dist/runtime/email/index.d.mts +1 -1
  238. package/dist/runtime/email/index.mjs +14 -11
  239. package/dist/runtime/email/testing.d.mts +1 -1
  240. package/dist/runtime/email/testing.mjs +4 -4
  241. package/dist/runtime/env/public-client.d.mts +4 -1
  242. package/dist/runtime/env/public.d.mts +1 -1
  243. package/dist/runtime/env/public.mjs +2 -2
  244. package/dist/runtime/env/runtime.mjs +1 -1
  245. package/dist/runtime/handler/index.d.mts +1 -1
  246. package/dist/runtime/handler/index.mjs +1 -1
  247. package/dist/runtime/handler/validator.d.mts +1 -1
  248. package/dist/runtime/handler/validator.mjs +1 -1
  249. package/dist/runtime/isr/index.mjs +1 -1
  250. package/dist/runtime/kv/index.mjs +1 -1
  251. package/dist/runtime/live/client.d.mts +2 -2
  252. package/dist/runtime/live/client.mjs +7 -7
  253. package/dist/runtime/live/index.d.mts +1 -1
  254. package/dist/runtime/live/index.mjs +1 -1
  255. package/dist/runtime/live/server.mjs +3 -3
  256. package/dist/runtime/queues/index.mjs +2 -2
  257. package/dist/runtime/remote/index.d.mts +5 -1
  258. package/dist/runtime/remote/index.mjs +10 -9
  259. package/dist/runtime/routing/index.d.mts +11 -12
  260. package/dist/runtime/routing/index.mjs +69 -65
  261. package/dist/runtime/routing/route-url.d.mts +1 -1
  262. package/dist/runtime/routing/route-url.mjs +1 -1
  263. package/dist/runtime/sandbox/index.d.mts +1 -1
  264. package/dist/runtime/sandbox/index.mjs +2 -2
  265. package/dist/runtime/sse/client.d.mts +1 -1
  266. package/dist/runtime/sse/index.mjs +1 -1
  267. package/dist/runtime/storage/index.mjs +1 -1
  268. package/dist/runtime/ws/index.d.mts +1 -1
  269. package/dist/runtime/ws/index.mjs +3 -2
  270. package/dist/runtime/ws/room.d.mts +1 -1
  271. package/dist/runtime/ws/room.mjs +2 -2
  272. package/dist/runtime/ws/server.d.mts +2 -2
  273. package/dist/runtime/ws/server.mjs +1 -1
  274. package/dist/{runtime-zDDinDI5.mjs → runtime-C_VPIJBF.mjs} +1 -1
  275. package/dist/{scan-LjuG3vfA.mjs → scan-Ct_SEzH4.mjs} +36 -29
  276. package/dist/{secret-DdUs8AuR.mjs → secret-C-WBaUSS.mjs} +11 -10
  277. package/dist/security-api-types-CU7zQtr_.mjs +9 -0
  278. package/dist/security-sarif-ClyYwtAW.mjs +123 -0
  279. package/dist/{serialize-Pf-CIQK_.mjs → serialize-BmB4BfKu.mjs} +1 -1
  280. package/dist/{server-CfUbeOjx.mjs → server-T-4mn8zy.mjs} +5 -4
  281. package/dist/{session-Cw8-b8Um.mjs → session-BT8XDkvL.mjs} +1 -1
  282. package/dist/{session-DgNrdNh_.d.mts → session-ouZYD7zb.d.mts} +1 -1
  283. package/dist/{skills-B40svMBE.mjs → skills-C-csz78e.mjs} +3 -3
  284. package/dist/{sse-BXnTfcf3.mjs → sse-D3ab0YQT.mjs} +16 -13
  285. package/dist/{static-exports-DFkzL-NX.mjs → static-exports-s7P86Ngp.mjs} +3 -3
  286. package/dist/{subcommand-prompt-D-m3Umap.mjs → subcommand-prompt-B4LOLosl.mjs} +31 -21
  287. package/dist/sveltekit.mjs +1 -1
  288. package/dist/{terminal-log-text-DNsWJREL.mjs → terminal-log-text-CfS2JKM6.mjs} +1 -1
  289. package/dist/{url-DaehRGKR.mjs → url-DBQluotE.mjs} +4 -1
  290. package/dist/validate-CZYUIfR-.mjs +1 -0
  291. package/dist/{validate-Ddzl-IwT.mjs → validate-CtBWCzez.mjs} +7 -4
  292. package/dist/{validator-Duafcnh7.mjs → validator-Dfh9kCDm.mjs} +5 -5
  293. package/dist/{version-metadata-k6KFiyWt.mjs → version-metadata-DqgLa6gc.mjs} +1 -1
  294. package/dist/{wrangler-v2BmVchV.mjs → wrangler-DVe5KV5G.mjs} +49 -46
  295. package/dist/wrangler-Dq269bjx.mjs +1 -0
  296. package/dist/{wrapper-eh6MpBZA.mjs → wrapper-CcMYpOS8.mjs} +45 -171
  297. package/docs/guide/app-types.md +1 -1
  298. package/docs/guide/auth.md +2 -16
  299. package/docs/guide/database.md +2 -0
  300. package/docs/guide/email/domains.md +1 -1
  301. package/docs/guide/email/sending.md +18 -1
  302. package/docs/guide/jobs.md +1 -1
  303. package/docs/guide/pages-routing/actions-and-forms.md +40 -19
  304. package/docs/guide/pages-routing/errors.md +3 -1
  305. package/docs/guide/pages-routing/head.md +20 -2
  306. package/docs/guide/pages-routing/overview.md +20 -0
  307. package/docs/guide/platform/administration/plans.md +13 -0
  308. package/docs/guide/platform/administration/security-audits.md +213 -0
  309. package/docs/guide/platform/administration/zero-trust.md +7 -1
  310. package/docs/guide/platform/installation/ci.md +1 -1
  311. package/docs/guide/platform/installation/credentials.md +23 -20
  312. package/docs/guide/platform/installation/maintenance.md +11 -5
  313. package/docs/guide/platform/installation/prerequisites.md +1 -1
  314. package/docs/guide/platform/installation/uninstall.md +2 -0
  315. package/docs/guide/platform-administration.md +1 -0
  316. package/docs/guide/queues.md +1 -1
  317. package/docs/guide/self-hosted-platform.md +14 -13
  318. package/docs/guide/type-safety.md +1 -1
  319. package/docs/integrations/cloudflare.md +3 -1
  320. package/docs/integrations/frameworks/sveltekit.md +1 -1
  321. package/docs/reference/api/handlers.md +3 -3
  322. package/docs/reference/api/pages.md +4 -0
  323. package/docs/reference/api/types.md +11 -1
  324. package/docs/reference/cli/database.md +42 -6
  325. package/docs/reference/cli/deploy.md +5 -1
  326. package/docs/reference/cli/domains.md +1 -1
  327. package/docs/reference/cli/platform-config.md +5 -3
  328. package/docs/reference/cli/platform-installation.md +29 -28
  329. package/docs/reference/cli/platform-security.md +98 -0
  330. package/docs/reference/cli/platform-zero-trust.md +6 -3
  331. package/docs/reference/cli/platform.md +1 -0
  332. package/docs/reference/cli/project.md +57 -0
  333. package/docs/reference/cli/setup.md +4 -0
  334. package/docs/reference/cli.md +3 -1
  335. package/docs/reference/config.md +2 -2
  336. package/package.json +30 -27
  337. package/skills/void/SKILL.md +7 -0
  338. package/dist/cf-build-output-D3_x71H6.mjs +0 -1
  339. package/dist/cf-config-migrate-CHtnM3_C.mjs +0 -348
  340. package/dist/cloudflare-operations-BditDbcd.mjs +0 -1
  341. package/dist/cloudflare-process-wcnaQ5JG.mjs +0 -392
  342. package/dist/cloudflare-user-output-zEwuGrEJ.mjs +0 -19
  343. package/dist/collect-8i0wU63d.mjs +0 -1
  344. package/dist/deploy-DiFfBu8g.mjs +0 -2
  345. package/dist/discover-Diq0l6TZ.mjs +0 -1
  346. package/dist/gen-CuANrEzy.mjs +0 -1
  347. package/dist/help-7EzLA1qP.mjs +0 -1
  348. package/dist/login-apwve7WD.mjs +0 -1
  349. package/dist/migrate-BzRplq7m.mjs +0 -1
  350. package/dist/mysql-sql-SlpS6OMg.mjs +0 -239
  351. package/dist/operator-args-BCCohcz3.mjs +0 -722
  352. package/dist/operator-cmd-D42knxMz.mjs +0 -1
  353. package/dist/output-D4UOUifX.mjs +0 -1
  354. package/dist/platform-args-Rgp86xa7.mjs +0 -1
  355. package/dist/platform-management-CRzeC70H.mjs +0 -1
  356. package/dist/prepare-C2MTqfFv.mjs +0 -1
  357. package/dist/project-zero-trust-CS02LrlK.mjs +0 -64
  358. package/dist/resolve-project-C5wC-Hoi.mjs +0 -1
  359. package/dist/route-types-CrODgORq.mjs +0 -655
  360. package/dist/validate-DY1U9rET.mjs +0 -1
  361. package/dist/wrangler-BPIAJdxA.mjs +0 -1
@@ -15,6 +15,8 @@ You can also use your own client-side router and call Void's APIs with [typed fe
15
15
 
16
16
  In an empty project, `void init` can set up Pages for you. Choose Vite+ or plain Vite, then React, Vue, Svelte, or Solid and a database or static starter. The generated app includes the matching Vite config and page files.
17
17
 
18
+ With TypeScript 7 and Vue 3.5’s default compiler, `_error.vue`, `_not-found.vue`, and regular components used by pages fail to compile when `defineProps<T>()` uses a type imported from a relative file or a package. New Vue starters default to TypeScript 6 so these imports work. In existing projects on TypeScript 7, install `typescript@6` or declare the props type in the component. [vuejs/core#15085](https://github.com/vuejs/core/pull/15085)
19
+
18
20
  If you're adding Pages mode manually, install a framework adapter alongside `void`:
19
21
 
20
22
  ::: code-group
@@ -128,6 +130,24 @@ Production deploys exclude resources used only by `.dev` pages and their compani
128
130
 
129
131
  The first request receives rendered HTML. Later navigations run the loader and update the page without reloading the document. Form submissions run an action, then refresh page props or redirect.
130
132
 
133
+ ### After a deploy
134
+
135
+ An open tab keeps the code it loaded. Deploy while it stays open, and its next navigation asks for chunks that no longer exist.
136
+
137
+ Void recovers that navigation. The tab sends the build it is running with each page request, and an answer from a different build makes it load the requested page as a document instead of rendering it. The destination keeps its query string and fragment, and the current page stays visible until the load starts.
138
+
139
+ These never reload the tab:
140
+
141
+ - A prefetch drops the response and lets the next navigation decide.
142
+ - A form submission keeps its response, so the action never runs twice. If the action redirects, the destination loads as a document.
143
+ - A failed request is not treated as a deploy.
144
+
145
+ If that document load still returns the old build, for example from a CDN that caches HTML across deploys, the tab shows an error page instead of reloading again. Keep HTML out of shared caches, or purge it on deploy.
146
+
147
+ Prerendered pages of an [`output: "static"`](../ssg.md) app are served as files and are not covered: a stale tab still reaches its error boundary there.
148
+
149
+ Recovery is on by default. Set `deployRecovery: false` in your framework plugin's options to keep your own [error boundaries](./errors.md) in charge instead.
150
+
131
151
  To opt a specific route out of server-rendered component HTML, export `ssr = false` from its companion `.server.ts` file:
132
152
 
133
153
  ```ts
@@ -122,6 +122,19 @@ Moving an account to another plan, replacing a removed plan, or transferring a p
122
122
 
123
123
  Inspect a plan's default with `void platform config plans show <plan-id>` or the dashboard's user detail page. If the CLI reports that your platform does not support plan defaults, run `void platform upgrade` first.
124
124
 
125
+ ## Security Scan Cap {#security-scan-cap}
126
+
127
+ With [security audits](./security-audits.md) on, a plan can set the most each of its projects may spend on scans in a calendar month (UTC). In the dashboard, edit the plan's **Security scan cap**: **Policy default**, **Monthly amount**, or **No cap**. From the CLI:
128
+
129
+ ```sh
130
+ void platform config plans set team --security-cap 200 --plan
131
+ void platform config plans set team --security-cap 200 --yes
132
+ ```
133
+
134
+ `--security-cap` takes a USD amount, `none` for no cap, or `inherit` for the default project cap. Plan files use the `securityCap` field with the same values. A plan amount applies even while project caps are off, and `none` lifts the default project cap for the plan's projects. A limit you set for one project comes first. The platform cap still stops every scan once it is used up.
135
+
136
+ A change applies right away: to the next scan that starts, and to scans already running from their next model call, so a lower cap can stop one. Copying a plan copies its scan cap, and accounts moved to a replacement plan get that plan's cap. See [Spending caps](./security-audits.md#spending-caps).
137
+
125
138
  ## Archive or Remove a Plan
126
139
 
127
140
  Archive a plan to stop assigning it to new accounts while preserving its current accounts:
@@ -0,0 +1,213 @@
1
+ ---
2
+ description: 'Run an AI security review of each deploy on your Void platform, choose which projects and models it covers, cap its cost, and hold a project private until a scan passes.'
3
+ outline: deep
4
+ ---
5
+
6
+ # Security Audits
7
+
8
+ Security audits run an AI review of the code that changed in each deploy, and report serious problems to the people who own the project. The scan starts after the deploy is live. A scan or a finding never blocks, delays, or fails a deploy.
9
+
10
+ AI review can be wrong. "No findings" means nothing was found, not that the code is safe. Treat it as a second pair of eyes next to human review.
11
+
12
+ This feature is off until you turn it on. Projects deployed directly to Cloudflare are not affected.
13
+
14
+ ## Requirements
15
+
16
+ - A platform installed or upgraded with `--security-audits`. See [Turn security audits on](/reference/cli/platform-security#enable).
17
+ - Workers Paid on the platform's Cloudflare account, with Cloudflare Containers.
18
+ - Workers AI access for the default model: Workers Paid or prepaid AI credits.
19
+ - For the optional scan before a project goes public, [project Zero Trust](./zero-trust.md) must be on and not public-only.
20
+
21
+ The scanner runs in its own container with no internet access and reaches models only through the platform. Uninstalling the platform removes it. See [Disable and Uninstall](/guide/platform/installation/uninstall).
22
+
23
+ ::: warning Roll forward after you upgrade
24
+ The upgrade that adds security audits includes a database migration for the scan scheduler. Cloudflare does not roll a Worker back past such a migration, so after you upgrade, fix a bad release by deploying a newer one.
25
+ :::
26
+
27
+ ## Turn it on
28
+
29
+ ```sh
30
+ void platform upgrade --security-audits
31
+ void platform security probe
32
+ void platform security budget --platform-usd 500
33
+ void platform security policy public
34
+ ```
35
+
36
+ The probe checks that the account can run scans and names anything missing. Spending caps are off by default, so set a [platform cap](#spending-caps) before you choose a mode. Turning a scan mode on runs the probe first and refuses when it fails. The probe runs again each day while scans are on; if it starts failing, the policy stays on, new deploys are not scanned, and the admin pages show a banner.
37
+
38
+ | Mode | Scans |
39
+ | -------------------- | --------------------------------------------------------------- |
40
+ | Off (default) | Nothing |
41
+ | Public projects only | Projects that are public, or that have no Zero Trust protection |
42
+ | All projects | Every project |
43
+
44
+ A mode change scans nothing right away. Each project is scanned at its next deploy: the first scan reviews the whole deployment, later scans what changed since the last good scan. Use `--plan` to preview how many projects a change reaches. To scan apps that are already live, see [Scan live apps again](#scan-live-apps).
45
+
46
+ A platform admin can give one project its own rule, from the project's **Security** section in the administrator UI or with `void platform security policy --project <project-id> <inherit|always|never>`:
47
+
48
+ | Rule | Scans |
49
+ | ----------------- | ----------------------------------------------------------------------- |
50
+ | inherit (default) | What the scan mode says |
51
+ | always | Every deploy, also while Zero Trust protects the project |
52
+ | never | Nothing, except the scan before the project goes public when that is on |
53
+
54
+ A project's rule has no effect while the mode is Off. Its project page and `void project security status` say why the project is or is not scanned. Platform administrators can manage all of this from **Security** in the administrator UI.
55
+
56
+ ## What is scanned
57
+
58
+ A scan starts when a deploy goes live. Rollbacks, failed deploys, and `preview-*` projects are not scanned. A newer deploy replaces a scan that is still queued. A redeploy with no code change is recorded as "no changes" and costs nothing.
59
+
60
+ Void reviews the source that changed when it can see it, and otherwise the built output mapped back to source. Third-party package code, lockfiles, binaries, and secret-like files are left out, and stored secret values are replaced before any model sees the code. Void tells registry packages from your code by the project's `pnpm-lock.yaml` or `package-lock.json`; without one, package code is reviewed too and the result notes `third-party-unverified`. Each result states what it covered, such as `Changes since dpl_7c20 · source diff · 14 files · complete`. Large changes are scanned in parts, and the page shows the files still waiting.
61
+
62
+ ### Check code before you deploy
63
+
64
+ Developers who can deploy a project can scan their code first with `void project security check`. It sends the git-tracked files of the current folder, as they are on disk; untracked files, secret-like files, lockfiles, and binaries stay on the machine. It shows what it sends, which model reviews it, and the most it can cost, then asks before it uploads. It needs the policy to apply to the project (not the `never` rule), waits in the queue like any scan, and counts toward the caps. The result shows in the terminal and is kept for 30 days. It is not saved as project findings, sends no email, and does not affect a request to go public. See [`void project security check`](../../../reference/cli/project.md#void-project-security).
65
+
66
+ ## Models and the provider notice
67
+
68
+ | Model | Run by |
69
+ | ---------------------------------------------------- | ---------- |
70
+ | `@cf/deepseek-ai/deepseek-v4.1-flash-1017` (default) | Cloudflare |
71
+ | `@cf/zai-org/glm-5.3` | Cloudflare |
72
+ | `openai/gpt-6.1-terra`, `openai/gpt-6.1-sol` | OpenAI |
73
+ | `anthropic/claude-sonnet-5.5` | Anthropic |
74
+ | `anthropic/claude-opus-5.5` | Anthropic |
75
+
76
+ A model run by a third party sees the project's changed code, the files it uses, and past findings and comments. The provider may keep request data for a limited time and may refuse security-looking code; a refused scan shows as refused, never as passed. So code does not go to a third party until someone accepts the notice: you once for a third-party platform default, and a project owner or administrator once per project. Until then the project uses a Cloudflare model. To keep all code in Cloudflare, block the third-party models.
77
+
78
+ A third-party model also needs an AI permission on the platform's runtime token, unless you [saved your own key](#own-provider-key). See [Permissions to select for each token](/guide/platform/installation/credentials). The probe names a missing permission and lists models that cannot be picked yet. For these models the probe also copies a scanner image into the account's container registry, which can take more than one probe run; a provider whose models are all blocked gets no copy.
79
+
80
+ Project owners and administrators pick their project's model from the same list with `void project security model`.
81
+
82
+ ### Use your own provider key {#own-provider-key}
83
+
84
+ By default, OpenAI and Anthropic models are paid from the account's [AI Gateway Unified Billing](https://developers.cloudflare.com/ai-gateway/features/unified-billing/) credits. To bill your own key and agreement with the provider instead:
85
+
86
+ ```sh
87
+ printf "%s" "$ANTHROPIC_API_KEY" | void platform security models --provider anthropic --key-stdin --yes
88
+ void platform security probe
89
+ ```
90
+
91
+ Void saves the key, encrypted, only if a 1-token test call with it works. Calls still go through AI Gateway, are metered at list price, and count toward the [spending caps](#spending-caps). Run the probe after saving if that provider's models could not be picked before. Saving a new key replaces the old one. `--remove-key` deletes it: scans go back to Unified Billing, and the models cannot be picked until the probe passes again. `void platform security status` shows which keys are saved, never the key.
92
+
93
+ ## Findings
94
+
95
+ Only a human closes a finding. A scan can add one, confirm it again, or reopen it, never close it. Resolve a finding as fixed, false positive, or accepted risk, with a comment of up to 4,000 characters. The comment and resolution feed the next scan, so the same false alarm does not come back. Comments never hide anything; only a false-positive resolution does.
96
+
97
+ A finding is **urgent** when it is confirmed, critical or high, and still open. Leads and lower severities are never urgent.
98
+
99
+ A project admin or the owner can change the severity of an open finding, with a comment: `void project security severity F-12 medium --comment "Only reachable by admins"`. The new severity sticks across scans; lowering a critical or high finding takes it out of the urgent count, as a resolve does.
100
+
101
+ When a project secret's value appears, as is or encoded, in the deployed Worker code or a static text file (`.js`, `.html`, `.json`, `.css`, `.txt`, up to 8 MB), the platform reports a `secret-in-output` finding that names the secret but never shows its value, one per secret for static files and one for Worker code. In a static file it is high and urgent, since anyone can download it once the project is public: rotate the secret and keep it on the server. In Worker code it is medium: read it from `env` instead. A value meant to be public, such as a publishable key, can be resolved as accepted risk; it stays resolved when later deploys change the bundle.
102
+
103
+ With a Cloudflare model, a scan can test a possible finding on a throwaway copy of the deployment: the same code with empty databases, fake secrets, and no internet access, reachable only by the scanner and deleted when the scan ends. Such a finding shows as `confirmed (runtime)` in `void project security show`. The copy is part of the scan cost.
104
+
105
+ | Who sees what | Reader | Collaborator and up |
106
+ | ------------------------------- | ------ | ------------------- |
107
+ | Urgent count and finding ids | Yes | Yes |
108
+ | Titles, files, and details | No | Yes |
109
+ | Scans, cost, and bypass reasons | No | Yes |
110
+
111
+ Open urgent findings show:
112
+
113
+ - at the end of each `void deploy` to a Void platform, with titles only for a signed-in user who can deploy (CI runs and readers see counts and ids),
114
+ - in `void project security status`, and as a `Security` line in `void project status`,
115
+ - on the project's security page (`void project security open`), where collaborators and up can comment, and the owner and project admins can also resolve, pick the model, set the budget, and bypass a held public request. A platform with the user dashboard has the same page behind **Security** on its **Projects** list,
116
+ - on GitHub, for deploys built from a [connected repository](#github-checks),
117
+ - in the administrator UI, with an **Urgent** filter.
118
+
119
+ Export findings as SARIF with `void project security list --format sarif` (or `void platform security findings --format sarif` for every project).
120
+
121
+ A scan that does not succeed says what happened, and the next scan covers those changes. A refused, timed-out, or failed scan is never counted as clean.
122
+
123
+ ## Scan live apps again {#scan-live-apps}
124
+
125
+ These scans review more than a deploy scan. Each costs money and counts toward the [spending caps](#spending-caps):
126
+
127
+ | To | Run | Who |
128
+ | ------------------------------------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------- |
129
+ | Scan one project's live deployment in full now | `void project security scan`, or `void platform security rescan <project-id>` | Project owner or admin, or a platform administrator |
130
+ | Scan live apps deployed before security audits were on | `void platform security backfill` | Platform administrators |
131
+ | Review every live app in full on a schedule | `void platform security sweeps on --every-days 30` | Platform administrators |
132
+ | Scan again on Cloudflare when a third-party model fails | `void platform security fallback on` | Platform administrators |
133
+
134
+ A full scan names its model and the most it can cost, then asks first. Add `--client-assets` to also review the client bundles' sources, from the source maps deployed with them. Backfill handles up to 50 projects at a time; run it again for the rest. Only a few sweeps start each hour, so deploy scans keep moving. Fallback scans the same changes once more on the default `@cf` model when a third-party model refuses, times out, or returns unreadable output; it never sends code from a `@cf` scan to a third party. Sweeps and fallback are off by default. A deployment whose code is no longer stored cannot be scanned again until the project deploys. See [Findings and scans](/reference/cli/platform-security#findings-scans).
135
+
136
+ ## GitHub checks {#github-checks}
137
+
138
+ Each scan of a deploy built from a repository connected with `void github connect` (either executor) adds a `Void Security Audit` check to the commit. A `void deploy` from a terminal or an unconnected CI job gets none. The check is always **neutral**, so it never blocks a merge, and shows only the urgent count and a link to the project's security page, because anyone who can see the repository can read it. A scan that did not finish says so.
139
+
140
+ While an urgent finding is open, each open pull request for that commit (up to five) gets one comment with the same counts, updated in place by later scans. The comment needs the GitHub App's **Pull requests: Read and write** permission; with read-only access, only the check is posted.
141
+
142
+ **Re-run** on the check starts a full rescan of the live deployment when the person who clicks it signs in to the platform with that GitHub account and is the project's owner or an admin. Otherwise, or on a check of an older deployment, it does nothing. **Re-run all** reruns the build.
143
+
144
+ ## Spending caps
145
+
146
+ The platform pays for scans; they do not count against the plan's AI limits. Two monthly caps (calendar month, UTC) are off by default:
147
+
148
+ - A **platform cap** that stops all scans when it is used up.
149
+ - A **project cap**, with a default for every project. A project owner or administrator can set a lower cap for their project, up to the limit you give that project, else the owner's plan cap, else the default when project caps are on.
150
+
151
+ A scan starts only if its worst case fits under both caps. A used-up cap skips scans, never deploys, and the first scan after the reset or a raise covers what was skipped. Rescans and scans before public count too. The Scans page in the administrator UI shows the metered cost next to what AI Gateway reports about an hour later. At 80% and 100% of a cap, the owner and project administrators (project cap) or platform administrators (platform cap) get one email per month.
152
+
153
+ ```sh
154
+ void platform security budget --platform-usd 500 --project-default-usd 50
155
+ void platform config plans set pro --security-cap 200
156
+ ```
157
+
158
+ A plan cap applies to each project whose owner is on that plan, even with project caps off. `--security-cap none` removes it and `inherit` returns to the default. See [Security scan cap](./plans.md#security-scan-cap).
159
+
160
+ ## Emails
161
+
162
+ | Email | Sent to |
163
+ | ---------------------------------------------------------------------- | -------------------------------------------------- |
164
+ | New findings, one per scan | Owner, project admins, and the people who deployed |
165
+ | A human reopens an urgent finding | Owner and project admins |
166
+ | Project cap at 80% and 100% | Owner and project admins |
167
+ | Platform cap at 80% and 100% | Platform administrators |
168
+ | Public request held, now public, or canceled | Who asked, the owner, and project admins |
169
+ | Scan bypassed | Every platform administrator, with the reason |
170
+ | Three scans of a project in a row failed | Owner, project admins, and platform administrators |
171
+ | Many scans failed for a platform reason, at most once a day | Platform administrators |
172
+ | Weekly summary, when turned on with `void platform security digest on` | Platform administrators |
173
+
174
+ Emails carry titles, severity, and file paths, never code. A scan that finishes after the mode was set to Off sends no email. Without an [email domain](./email.md) the same information is in the CLI and on the project page, and bypasses still show in the admin pages. To send these events to your own system, set `void platform security webhook <https-url>`: a signed body with ids and counts only, sent even without an email domain. See [Alerts, summary, and webhook](/reference/cli/platform-security#alerts).
175
+
176
+ ## Scan before a project goes public {#scan-before-public}
177
+
178
+ With [project Zero Trust](./zero-trust.md) on, you can hold a project's change from protected to public until a scan of the live deployment finds nothing urgent:
179
+
180
+ ```sh
181
+ void platform security public-gate on
182
+ ```
183
+
184
+ The gate needs a scan mode of Public or All, a recent probe pass, and platform Zero Trust on and not public-only. While it is on, platform Zero Trust cannot be disabled or switched to public-only. Turning the gate off, or setting the mode to Off, cancels open requests; those projects stay protected.
185
+
186
+ When someone runs `void project zero-trust public`, the project **stays protected** and the request waits for a scan. Deploys keep working.
187
+
188
+ | State | Meaning | What to do |
189
+ | ---------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------- |
190
+ | Waiting | The scan is queued or running | Wait, or bypass |
191
+ | Held by findings | An urgent finding is open | Resolve it. There is no bypass |
192
+ | No result | The scan failed, was refused, timed out, or hit a cap | Run `public` again, deploy again, or bypass |
193
+ | Files not read | The scan could not read some project files (too large, not text, or a path it cannot send) | Fix them and deploy again, or bypass |
194
+ | Needs a deploy | The live code cannot prove it, or a fix needs a newer deploy | Deploy again, or bypass |
195
+
196
+ A finding resolved as false positive or accepted risk lets the request go on at once. One resolved as **fixed** counts only after a clean scan of a newer deploy (an unchanged Worker redeploy is enough; a static site needs a changed deploy). A rescan of the same deployment proves nothing.
197
+
198
+ The gate covers only the change from protected to public for an existing project. Projects that start public, and `preview-*` projects, are not covered. A later finding never makes a public project private again.
199
+
200
+ ### Bypass the scan
201
+
202
+ An owner or a project administrator can skip the scan with a reason; platform administrators use the platform command with the project ID:
203
+
204
+ ```sh
205
+ void project zero-trust bypass --reason "Scanner down since 09:00; launch today."
206
+ void platform security bypass <project-id> --reason "Scanner down since 09:00; launch today."
207
+ ```
208
+
209
+ A bypass never skips an open urgent finding: it is refused and nothing is recorded. Every bypass is recorded with its reason and emailed to every platform administrator; list them with `void platform security bypasses`. Later findings follow the normal flow.
210
+
211
+ ## What users see
212
+
213
+ Project members use `void project security status`, `list --urgent`, `check`, and `void project zero-trust status`. See [Projects](/reference/cli/project#void-project-security). A new CLI talking to a platform without security audits says so. Older CLIs print nothing extra after a deploy, and never report a held request as public.
@@ -22,7 +22,7 @@ choose to protect apps. To renew their token in Admin, leave the policy fields b
22
22
  - A Cloudflare Zero Trust organization in the account that hosts the platform, with the identity providers and reusable Access policies you want to use. Select at least one Allow policy that matches people by identity. Void rejects Bypass and Service Auth policies, and rules that allow Everyone or any service token.
23
23
  - A Cloudflare API token for that account with **Access: Apps and Policies Write** and **Access: Organizations, Identity Providers, and Groups Read**. Void keeps it separate from the platform runtime token, stores it encrypted, and never shows it again.
24
24
  - Free Access applications in the account. Cloudflare's default limit is 500 per account. Count the applications you already manage outside Void, then add the ones Void needs, as described in [Access Applications Void Creates](#access-applications-void-creates).
25
- - Platform API, proxy, and email gateway hostnames outside the project application domain. Configuration is rejected when project protection would cover one of them. Any other hostname under the project application domain also asks for sign-in, except the `/health` path of `void-platform-health.<your domain>`, which Void keeps open for its health checks and never serves from a project. New projects cannot use that name. A project that already uses it keeps every other path, protected or public like any other project.
25
+ - Platform API, proxy, and email gateway hostnames outside the project application domain. Configuration is rejected when project protection would cover one of them. Any other hostname under the project application domain also asks for sign-in, except `/health` and the paths under it on `void-platform-health.<your domain>`. Void keeps these open for its health checks and answers them itself, never from a project. New projects cannot use that name. A project that already uses it keeps its other paths, protected or public like any other project, but cannot serve paths that start with `/health`.
26
26
 
27
27
  ## Enable Zero Trust
28
28
 
@@ -70,6 +70,12 @@ Installation administrators can do the same from the project page in the adminis
70
70
 
71
71
  Deploys and rollbacks wait until a project's protection change is finished. If one is refused, run `void project zero-trust status` to see why; the owner or a project administrator can run `void project zero-trust reconcile` before you try again. A protected project can have up to 100 custom domains.
72
72
 
73
+ ## Scan Before Public
74
+
75
+ If you turn on [scan before a project goes public](./security-audits.md#scan-before-public), making a protected project public no longer takes effect at once. The project stays protected until a scan of its live deployment finds no urgent finding, or until an allowed person bypasses the scan with a reason. Deploys keep working while the request waits.
76
+
77
+ While it is on, `void platform zero-trust disable` and public-only configuration are refused. Turn the gate off first with `void platform security public-gate off`. In the administrator UI, **Disable** and the public-only option are unavailable, and **Make project public** says that the project stays protected until the scan passes.
78
+
73
79
  ## Disable Zero Trust
74
80
 
75
81
  ```sh
@@ -21,7 +21,7 @@ Inject the following values from protected CI secrets. Do not commit them in a w
21
21
  | `VOID_PLATFORM_HYPERDRIVE_ORIGIN_USER` | Hyperdrive runtime database user |
22
22
  | `VOID_PLATFORM_HYPERDRIVE_ORIGIN_SERVICE_ID` | Workers VPC service ID, for a private database origin |
23
23
  | `VOID_PLATFORM_R2_ACCESS_KEY_ID` | R2 Access Key ID |
24
- | `VOID_PLATFORM_R2_SECRET_ACCESS_KEY` | R2 Secret Access Key |
24
+ | `VOID_PLATFORM_R2_SECRET_ACCESS_KEY` | R2 Secret Access Key (not the token value) |
25
25
  | `VOID_PLATFORM_JWT_SECRET` | Original JWT signing secret |
26
26
  | `VOID_PLATFORM_EMAIL_SIGNING_SECRET` | Dedicated email signing secret when email is enabled |
27
27
  | `VOID_PLATFORM_PROJECT_SECRET_KEY` | Original base64-encoded project-encryption key |
@@ -42,26 +42,27 @@ Compare each token's form with the permission checklist below. The installer sav
42
42
 
43
43
  ::: details Permissions to select for each token
44
44
 
45
- Use the following permissions for the core platform. Cloudflare may label write access as **Edit** or **Write**, depending on the token screen; see its [permission reference](https://developers.cloudflare.com/fundamentals/api/reference/permissions/).
46
-
47
- | Scope | Permission | Management | Runtime |
48
- | ------- | ------------------ | ---------- | --------------------------------------- |
49
- | Account | Account Settings | Read | Read |
50
- | Account | Workers Scripts | Edit | Edit |
51
- | Account | Workers Tail | Read | Read |
52
- | Account | D1 | Edit | Edit |
53
- | Account | Workers KV Storage | Edit | Edit |
54
- | Account | Workers R2 Storage | Edit | Edit |
55
- | Account | Queues | Edit | Edit |
56
- | Account | Hyperdrive | Write | Write |
57
- | Account | Account Analytics | Read | Read |
58
- | Account | AI Gateway | Edit | Edit when installing with browser login |
59
- | Account | Containers | — | Edit |
60
- | Account | Cloudchamber | — | Edit |
61
- | Zone | Zone | Read | — |
62
- | Zone | DNS | Edit | — |
63
- | Zone | Workers Routes | Edit | — |
64
- | Zone | Cache Purge | — | Purge |
45
+ Use the following permissions for the core platform. Confirm **Workers → Admin** for the account on both forms. The installer creates platform Workers, and the runtime token deploys apps into the platform's dispatch namespace. Cloudflare may label write access as **Edit** or **Write**, depending on the token screen. See its [permission reference](https://developers.cloudflare.com/fundamentals/api/reference/permissions/).
46
+
47
+ | Scope | Permission | Management | Runtime |
48
+ | ------- | ------------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------- |
49
+ | Account | Account Settings | Read | Read |
50
+ | Account | Workers | Admin | Admin |
51
+ | Account | Workers Tail | Read | Read |
52
+ | Account | D1 | Edit | Edit |
53
+ | Account | Workers KV Storage | Edit | Edit |
54
+ | Account | Workers R2 Storage | Edit | Edit |
55
+ | Account | Queues | Edit | Edit |
56
+ | Account | Hyperdrive | Write | Write |
57
+ | Account | Account Analytics | Read | Read |
58
+ | Account | AI Gateway | Edit | Edit when installing with browser login |
59
+ | Account | Containers | — | Edit |
60
+ | Account | Cloudchamber | — | Edit |
61
+ | Account | Workers AI | — | Read, for [security audit](/guide/platform/administration/security-audits#models-and-the-provider-notice) models run by third parties |
62
+ | Zone | Zone | Read | — |
63
+ | Zone | DNS | Edit | — |
64
+ | Zone | Workers Routes | Write | — |
65
+ | Zone | Cache Purge | — | Purge |
65
66
 
66
67
  When Void configures Access in the installation account, the initial management-token link also selects **Account → Access: Apps and Policies → Edit** and **Account → Access: Organizations, Identity Providers, and Groups → Read**. Protection adds **Account → Access: Service Tokens → Edit**. When the authentication configuration or saved setup selects existing applications, the link requests Read access instead of Edit. These permissions belong to the management token; the runtime token does not need them.
67
68
 
@@ -113,6 +114,8 @@ The installer configures the email gateway and shared mail route. If setup fails
113
114
 
114
115
  The installer opens the **R2 token creation** form with a token name based on your platform's display name, **Object Read & Write**, and **Apply to all buckets in this account (including newly created buckets)** preselected. Review the settings and create an account token, or a user token if your role requires it. Save its **Access Key ID** and **Secret Access Key** in your password manager, then paste both into the installer. These differ from the management and runtime API tokens. See [R2’s token instructions](https://developers.cloudflare.com/r2/api/tokens/).
115
116
 
117
+ If you create the token with the Cloudflare API instead, the Access Key ID is the token's ID and the Secret Access Key is the SHA-256 hex digest of the token value. Paste the Secret Access Key, not the token value.
118
+
116
119
  ## Signing and Encryption Keys {#signing-and-encryption-keys}
117
120
 
118
121
  The **JWT signing key** signs platform login tokens. The **Project encryption key** encrypts app secrets stored by your platform. An interactive install generates both and keeps them in this machine's encrypted recovery data. Lifecycle commands on this machine read them from there.
@@ -30,9 +30,9 @@ that the application covers the printed API and proxy origins. A Cloudflare
30
30
  management API token does not authenticate an Access-protected HTTP request.
31
31
 
32
32
  For automatic setup, resuming also creates or verifies an Access exception
33
- limited to `/health` on the reserved dispatch health hostname. Void still requires
34
- its private probe token on that endpoint; requests without it cannot reach an
35
- application. This lets installation check routing while employee protection and
33
+ limited to `/health` and the paths under it on the reserved dispatch health
34
+ hostname. Void still requires its private probe token on that endpoint; requests
35
+ without it cannot reach an application. This lets installation check routing while employee protection and
36
36
  account-wide Default-Deny remain enabled. It does not bypass Access for an entire
37
37
  Worker or for deployed apps.
38
38
 
@@ -116,7 +116,9 @@ An upgrade validates the runtime, applies supported pending migrations, deploys
116
116
 
117
117
  Install, upgrade, and repair also publish saved [AI Gateway logging](/reference/cli/platform-users#ai-gateway-logging) settings. Affected projects may show `pending` for about 2 minutes afterward, including projects returning to `inherit`. Check progress with `void platform project show <project-id>`.
118
118
 
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.
119
+ Before starting, Void checks access to the installation's Cloudflare account, Workers, and existing R2 buckets. It lists every missing permission at once and names the credential Cloudflare rejected. If the management credential is rejected, set `CLOUDFLARE_API_TOKEN` to a management token scoped to that account and retry. This overrides the installation's saved management token.
120
+
121
+ With browser login, Void uses the runtime token for AI Gateway: `VOID_PLATFORM_RUNTIME_CLOUDFLARE_API_TOKEN`, or the one saved on this machine. If an error names the runtime token, set `VOID_PLATFORM_RUNTIME_CLOUDFLARE_API_TOKEN` to a valid runtime token, or set `CLOUDFLARE_API_TOKEN` to a management token with **Account → AI Gateway → Edit**. Void then uses that token instead of browser login.
120
122
 
121
123
  Some upgrades pause application traffic until the new version passes health checks. If a command fails while traffic is paused:
122
124
 
@@ -127,12 +129,16 @@ Some upgrades pause application traffic until the new version passes health chec
127
129
  ::: details Migration safety, credential rotation, and rollback
128
130
 
129
131
  To update the runtime Cloudflare token, GitHub OAuth credentials when GitHub login is enabled, or R2 credentials,
130
- provide their `VOID_PLATFORM_*` environment variables when running the upgrade.
132
+ provide their `VOID_PLATFORM_*` environment variables when running `upgrade` or `repair`.
131
133
  Only the supplied values replace live credentials. Recovery data from an older
132
134
  workstation does not overwrite them, and upgrades preserve the live signing keys
133
135
  and complete project-encryption keyring. Keep current credentials in your secret
134
136
  manager so they can also restore a missing Worker during repair.
135
137
 
138
+ Set `VOID_PLATFORM_R2_ACCESS_KEY_ID` and `VOID_PLATFORM_R2_SECRET_ACCESS_KEY` together, even if
139
+ only the secret changed. Void checks the R2 pair against the assets bucket before it changes the
140
+ platform.
141
+
136
142
  Database migrations only move forward. Void checks compatibility before upgrading and tells you if an intermediate release is needed. If deployment fails, it attempts to restore the previous Workers against the compatible database schema. Retrying does not repeat completed migrations.
137
143
 
138
144
  After a successful upgrade, you can restore a declared-compatible earlier runtime without reversing migrations:
@@ -86,7 +86,7 @@ Use any PostgreSQL provider that accepts connections from your computer and Clou
86
86
  | [PlanetScale Postgres](https://planetscale.com/docs/postgres/connecting) | Choose **Postgres**, not Vitess/MySQL. Open **Connect**, create role credentials, and use the direct primary connection on port `5432`, not PgBouncer on `6432`. |
87
87
  | [Neon](https://neon.com/docs/get-started-with-neon/connect-neon) | Open **Connect**, select the database and owner role, and turn **connection pooling off**. |
88
88
 
89
- When sizing your database, include the connection pools for every platform installation and application sharing that server. Adjust each Hyperdrive's [origin connection limit](https://developers.cloudflare.com/hyperdrive/configuration/tune-connection-pool/) to fit the server's capacity, leaving room for migrations, administration, provider-reserved connections, and temporary bursts.
89
+ When sizing your database, include the connection pools for every platform installation and application sharing that server. Install, repair, and upgrade lower the [origin connection limit](https://developers.cloudflare.com/hyperdrive/configuration/tune-connection-pool/) of the Hyperdrive Void creates so it stays five connections below what the server accepts (`max_connections` minus reserved slots), leaving room for migrations and administration. If other installations or applications share the server, or you use a separately managed Hyperdrive, adjust each Hyperdrive's limit yourself to fit the server's capacity, including provider-reserved connections and temporary bursts. Void warns when a separately managed Hyperdrive leaves fewer than five connections free.
90
90
 
91
91
  Once installation claims the database, continue using that same database for resume and maintenance commands. If installation stops because it cannot use the database, for example because the database is not empty, set `VOID_PLATFORM_DATABASE_URL` to another database's URL before you resume. Uninstall never deletes external PostgreSQL.
92
92
 
@@ -57,6 +57,8 @@ void platform uninstall [id] --purge-resources
57
57
 
58
58
  `--purge-resources` includes `--purge-data`. It also deletes the platform Workers, Queues, the application Workers left in the dispatch namespace, the R2 bucket and its objects, the AI Gateway, the platform DNS record, Worker routes and custom domains, and the Access applications and service tokens the installer created. The plan lists each resource in deletion order, and everything that stays. If Cloudflare shows that the AI Gateway was created after installation, for example because it was deleted and created again under the same name, it is kept and listed.
59
59
 
60
+ With [security audits](/guide/platform/administration/security-audits) on, uninstall also deletes the scanner Worker, its container applications, the scanner images copied into the account's container registry, the scan copy namespace, its sandbox Worker, and any leftover scan copies before the platform Workers, even without `--purge-resources`. Stored scan data lives under `security-scans/` in the platform's R2 bucket, so it stays with the bucket: `--purge-resources` deletes it, and otherwise empty the bucket yourself. Deleting a project deletes its findings and scan data. A scanner object that another installation owns is kept and named in a warning.
61
+
60
62
  If the platform sends email, it first deletes the Email Routing rules in the sender domain's zone that send mail to the platform email gateway Worker, and resets such a catch-all rule to drop mail. It leaves Email Routing enabled and keeps the sender domain's MX, SPF, and DKIM records.
61
63
 
62
64
  It never removes zones, adopted resources, external PostgreSQL, other Email Routing settings, Analytics Engine datasets, Access policies or identity providers you chose, or API tokens. Revoke the API tokens you created for the platform afterward.
@@ -15,5 +15,6 @@ The operator commands for users, projects, deployments, and system status requir
15
15
  - [Users and Projects](/guide/platform/administration/projects)
16
16
  - [Plans and Limits](/guide/platform/administration/plans)
17
17
  - [Project Zero Trust](/guide/platform/administration/zero-trust)
18
+ - [Security Audits](/guide/platform/administration/security-audits)
18
19
  - [Email](/guide/platform/administration/email)
19
20
  - [Operations](/guide/platform/administration/operations)
@@ -143,7 +143,7 @@ Content-Type: application/json
143
143
  { "queue": "<queue-name>", "messages": [{ "id": "1", "timestamp": <unix_ms>, "body": <any>, "attempts": 1 }] }
144
144
  ```
145
145
 
146
- The endpoint requires a local dev trigger token. Void prints a paste-ready curl command with the current token when the dev server starts.
146
+ The endpoint requires a local dev trigger token. Void prints a paste-ready curl command with the current token when the dev server starts. The development trigger is unavailable in `vp preview` and `vite preview`.
147
147
 
148
148
  ```bash
149
149
  curl -X POST http://localhost:5173/__void/queue \
@@ -17,19 +17,20 @@ The core installation also includes managed Sandboxes and an email gateway. Conf
17
17
 
18
18
  Both targets use the same application APIs. A core platform adds shared access and retained deployment history:
19
19
 
20
- | Feature | Direct Cloudflare | Core self-hosted platform |
21
- | ------------------------------------------------ | -------------------------------- | --------------------------------------------- |
22
- | Static sites, SPAs, and native Pages SSR | Supported | Supported |
23
- | Routing rules, WebSockets, queues, cron, and ISR | Supported | Supported |
24
- | D1, KV, R2, and external SQL through Hyperdrive | Supported | Supported |
25
- | Workers AI and provider requests | Your account and gateway | Installation gateway and proxy |
26
- | Runtime logs | Live Cloudflare tail | Retained platform logs |
27
- | Application rollback | Worker versions | Retained platform deployments |
28
- | Typed Durable State and native Durable Objects | Supported | Supported |
29
- | Sandboxes | Requires Workers Paid and Docker | Requires Workers Paid on the platform account |
30
- | Custom application domains | Supported | Enable with `--custom-domains` |
31
- | Generated GitHub deployment workflow | Supported | Use your CI with a scoped developer token |
32
- | User dashboard and managed GitHub builds | Not required | Not included in a standard installation |
20
+ | Feature | Direct Cloudflare | Core self-hosted platform |
21
+ | ------------------------------------------------ | -------------------------------- | ------------------------------------------------------------------------------------------------- |
22
+ | Static sites, SPAs, and native Pages SSR | Supported | Supported |
23
+ | Routing rules, WebSockets, queues, cron, and ISR | Supported | Supported |
24
+ | D1, KV, R2, and external SQL through Hyperdrive | Supported | Supported |
25
+ | Workers AI and provider requests | Your account and gateway | Installation gateway and proxy |
26
+ | Runtime logs | Live Cloudflare tail | Retained platform logs |
27
+ | Application rollback | Worker versions | Retained platform deployments |
28
+ | Typed Durable State and native Durable Objects | Supported | Supported |
29
+ | Sandboxes | Requires Workers Paid and Docker | Requires Workers Paid on the platform account |
30
+ | Security audits of each deploy | Not available | Enable with `--security-audits`; needs Workers Paid, Containers, and Workers AI access or credits |
31
+ | Custom application domains | Supported | Enable with `--custom-domains` |
32
+ | Generated GitHub deployment workflow | Supported | Use your CI with a scoped developer token |
33
+ | User dashboard and managed GitHub builds | Not required | Not included in a standard installation |
33
34
 
34
35
  A team platform requires Workers for Platforms and the [documented infrastructure](/guide/platform/installation/domains#cloudflare-footprint). Features depend on the installation's configuration.
35
36
 
@@ -335,7 +335,7 @@ import { routeUrl } from 'void/routes';
335
335
 
336
336
  :::
337
337
 
338
- Links also accept same-page queries and hashes (`?page=2`, `#comments`), and `http://`, `https://`, `mailto:`, and `tel:` URLs. Use absolute paths within your app; relative paths such as `../settings` are rejected. Static path segments accept raw text such as `/café menu` or uppercase percent encoding such as `/caf%C3%A9%20menu`.
338
+ Links also accept same-page queries and hashes (`?page=2`, `#comments`), and `http://`, `https://`, `mailto:`, and `tel:` URLs. A `routeUrl()` result takes the same query or hash suffix, so `` `${routeUrl('/users/[id]', { params: { id } })}?tab=activity` `` is checked too. Use absolute paths within your app; relative paths such as `../settings` are rejected. Static path segments accept raw text such as `/café menu` or uppercase percent encoding such as `/caf%C3%A9%20menu`.
339
339
 
340
340
  With `routing.typedRoutes`, URLs handled only by root dynamic routes (`/[slug]`, `/[...slug]`, or `/[...]`) require `routeUrl()`, for example `routeUrl('/[...slug]', { params: { slug: 'dashboard' } })`. Other declared routes still accept checked URL strings. For a custom 404 page, use [`_not-found`](./pages-routing/errors.md#missing-pages).
341
341
 
@@ -136,13 +136,15 @@ Set these CI secrets and variables as needed:
136
136
 
137
137
  | Name | When needed |
138
138
  | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
139
- | `CLOUDFLARE_API_TOKEN` | Required. Workers Scripts: Edit, read access to bound resources, and edit access to products Void provisions. |
139
+ | `CLOUDFLARE_API_TOKEN` | Required. Workers Admin for the first deploy, or Workers Editor to deploy to an existing Worker. |
140
140
  | `CLOUDFLARE_ACCOUNT_ID` | When the token can access several accounts. |
141
141
  | `DATABASE_URL` | PostgreSQL and MySQL provisioning and migrations. |
142
142
  | `CLOUDFLARE_WORKERS_SUBDOMAIN` | When workers.dev is enabled and the version has no preview URL. Use `my-team` or `my-team.workers.dev`. An account subdomain does not create a readiness URL when `workers_dev` is false. |
143
143
  | `CF_ACCESS_CLIENT_ID`, `CF_ACCESS_CLIENT_SECRET` | When Cloudflare Access protects the readiness URL. |
144
144
  | `CF_ACCESS_READINESS_ORIGIN` | When Access protects a route or Custom Domain and `workers_dev` is `false`. See [Cloudflare Access](#cloudflare-access). |
145
145
 
146
+ Grant **Workers → Admin** for the account when Void creates the Worker. For subsequent deploys, **Workers → Editor** is enough for the Worker itself. Add **Workers Routes Write** for each zone where the deploy adds, updates, or removes a route or Custom Domain. Grant access to any resources Void reads or provisions, such as D1 or KV. See [Cloudflare Workers roles and permissions](https://developers.cloudflare.com/workers/authorization/workers/).
147
+
146
148
  For email, run `void email setup --platform cloudflare` locally, commit `void.lock.json`, and pass `--require-email` in CI. The token also needs Zone Read and Email Sending Edit, plus Email Routing Edit for apps with `email/` handlers.
147
149
 
148
150
  #### Cloudflare Access
@@ -21,7 +21,7 @@ cd my-app
21
21
  ### 2. Install dependencies
22
22
 
23
23
  ```bash
24
- npm install -D @sveltejs/adapter-cloudflare void
24
+ npm install -D @sveltejs/adapter-cloudflare@8 void
25
25
  ```
26
26
 
27
27
  ### 3. Configure `vite.config.ts`
@@ -224,7 +224,7 @@ interface RenderAssetTags {
224
224
 
225
225
  ## `defineHead<P>(handler)` {#definehead-p-handler}
226
226
 
227
- Type-safe wrapper for the page `head()` export in `.server.ts` files. Provides [`CloudContext`](./types.md#cloudcontext) typing for the first argument and generic props typing for the second.
227
+ Type-safe wrapper for the page `head()` export in `.server.ts` files. It returns a [`HeadConfig`](./types.md#headconfig). Provides [`CloudContext`](./types.md#cloudcontext) typing for the first argument and generic props typing for the second.
228
228
 
229
229
  ```ts
230
230
  import { defineHandler, defineHead } from 'void';
@@ -254,6 +254,6 @@ export const head = defineHead<Props>((c, props) => {
254
254
 
255
255
  ```ts
256
256
  function defineHead<P = Record<string, unknown>>(
257
- handler: (c: CloudContext, props: P) => HeadDescriptor | undefined,
258
- ): (c: CloudContext, props: P) => HeadDescriptor | undefined;
257
+ handler: (c: CloudContext, props: P) => HeadConfig | undefined,
258
+ ): (c: CloudContext, props: P) => HeadConfig | undefined;
259
259
  ```
@@ -91,6 +91,7 @@ interface VoidVueOptions {
91
91
  hoverDelay?: number; // default: 75 (ms)
92
92
  cacheFor?: number | string | [string, string]; // default: '30s'
93
93
  };
94
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
94
95
  }
95
96
  ```
96
97
 
@@ -147,6 +148,7 @@ interface VoidReactOptions {
147
148
  hoverDelay?: number; // default: 75 (ms)
148
149
  cacheFor?: number | string | [string, string]; // default: '30s'
149
150
  };
151
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
150
152
  }
151
153
  ```
152
154
 
@@ -232,6 +234,7 @@ interface VoidSvelteOptions {
232
234
  hoverDelay?: number; // default: 75 (ms)
233
235
  cacheFor?: number | string | [string, string]; // default: '30s'
234
236
  };
237
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
235
238
  }
236
239
  ```
237
240
 
@@ -286,6 +289,7 @@ interface VoidSolidOptions {
286
289
  hoverDelay?: number; // default: 75 (ms)
287
290
  cacheFor?: number | string | [string, string]; // default: '30s'
288
291
  };
292
+ deployRecovery?: boolean; // reload a tab whose build is gone. default: true
289
293
  }
290
294
  ```
291
295