void 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +1 -0
  2. package/dist/{account-cmd-BU1Fy_Bf.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
  3. package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
  4. package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
  5. package/dist/args-DrnTI35r.mjs +88 -0
  6. package/dist/args-MnQnqypt.mjs +1 -0
  7. package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
  8. package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
  9. package/dist/{auth-link-Duu2NvN5.mjs → auth-link-I4omV0pL.mjs} +6 -6
  10. package/dist/{auth-router-vgtOdb9j.mjs → auth-router-CXq4q7bb.mjs} +6 -5
  11. package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
  12. package/dist/bindings-C7zOgxT3.d.mts +28 -0
  13. package/dist/browser-run-BKgZVwLk.mjs +124 -0
  14. package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
  15. package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
  16. package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
  17. package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
  18. package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
  19. package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
  20. package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
  21. package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
  22. package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
  23. package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
  24. package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
  25. package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
  26. package/dist/cli/cli.mjs +1 -1
  27. package/dist/cli/cloudflare-operation-process.mjs +111 -47
  28. package/dist/cli/env-schema-probe.mjs +3 -3
  29. package/dist/cli/json-command-process.d.mts +6 -0
  30. package/dist/cli/json-command-process.mjs +91 -0
  31. package/dist/{cli-main-BrChcpE3.mjs → cli-main-CJTGhcYN.mjs} +84 -113
  32. package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
  33. package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
  34. package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
  35. package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
  36. package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
  37. package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
  38. package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
  39. package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
  40. package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
  41. package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
  42. package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
  43. package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
  44. package/dist/collect-Aam0GwAU.mjs +1 -0
  45. package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
  46. package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
  47. package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
  48. package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
  49. package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
  50. package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
  51. package/dist/config-entry.d.mts +1 -1
  52. package/dist/config-write-dKLINlm2.mjs +80 -0
  53. package/dist/{connect-D0V0o40j.mjs → connect-Bqq3b9sX.mjs} +10 -9
  54. package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
  55. package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
  56. package/dist/{db-BNPIjLkK.mjs → db-B3eoVDNA.mjs} +50 -47
  57. package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
  58. package/dist/db-args-Cx1y4vZn.mjs +1 -0
  59. package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
  60. package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
  61. package/dist/deploy-DZ9j7MC4.mjs +2 -0
  62. package/dist/{deploy-BgSbagIP.mjs → deploy-UojYUEWr.mjs} +803 -1415
  63. package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
  64. package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
  65. package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
  66. package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
  67. package/dist/deploy.mjs +14 -10
  68. package/dist/discover-BZWVWeQs.mjs +1 -0
  69. package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
  70. package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
  71. package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
  72. package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
  73. package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
  74. package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
  75. package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
  76. package/dist/{email-DcQNP40O.mjs → email-BBSDV0J5.mjs} +13 -12
  77. package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
  78. package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
  79. package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
  80. package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
  81. package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
  82. package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
  83. package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
  84. package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
  85. package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
  86. package/dist/gen-DaayFP9v.mjs +1 -0
  87. package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
  88. package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
  89. package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
  90. package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
  91. package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
  92. package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
  93. package/dist/help-DWGHmt_n.mjs +1 -0
  94. package/dist/html-5sfGLjiI.d.mts +3 -0
  95. package/dist/html-DPSOBDCh.mjs +1 -0
  96. package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
  97. package/dist/index-Cvqotnhc.d.mts +91 -0
  98. package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
  99. package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
  100. package/dist/index.d.mts +3 -2
  101. package/dist/index.mjs +536 -170
  102. package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
  103. package/dist/{init-C8YpkGIP.mjs → init-DftAx3L4.mjs} +237 -88
  104. package/dist/input-jcps6lAn.mjs +64 -0
  105. package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
  106. package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
  107. package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
  108. package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
  109. package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
  110. package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
  111. package/dist/login-BJwPhV_S.mjs +1 -0
  112. package/dist/{login-CWFr-G2I.mjs → login-DaugBfBG.mjs} +6 -5
  113. package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
  114. package/dist/migrate-BHD46A31.mjs +1 -0
  115. package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
  116. package/dist/nitro.mjs +3 -3
  117. package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
  118. package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
  119. package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
  120. package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
  121. package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
  122. package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
  123. package/dist/{operator-cmd-a7yOf2tH.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
  124. package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
  125. package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
  126. package/dist/output-OYwcEwok.mjs +1 -0
  127. package/dist/pages/client.d.mts +34 -20
  128. package/dist/pages/client.mjs +172 -74
  129. package/dist/pages/index.d.mts +11 -4
  130. package/dist/pages/index.mjs +5 -5
  131. package/dist/pages/islands-plugin.d.mts +2 -2
  132. package/dist/pages/islands-plugin.mjs +5 -3
  133. package/dist/pages/protocol.d.mts +3 -3
  134. package/dist/pages/protocol.mjs +3 -3
  135. package/dist/pages/serialize.d.mts +2 -2
  136. package/dist/pages/serialize.mjs +1 -1
  137. package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
  138. package/dist/platform-C3Q44RJ8.mjs +250 -0
  139. package/dist/platform-args-BSyVZESg.mjs +1 -0
  140. package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
  141. package/dist/{platform-auth-config-CpszX-Ne.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
  142. package/dist/{platform-auth-protection-DA6Tw8Og.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
  143. package/dist/{platform-auth-recovery-Cztrb1JC.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
  144. package/dist/{platform-cmd-m6Asj6nO.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
  145. package/dist/{platform-cmd-u1j88ggF.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
  146. package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
  147. package/dist/{platform-domain-DJSznNTA.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
  148. package/dist/{platform-lifecycle-BC-9p58d.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
  149. package/dist/{platform-lifecycle-GFeXv3NC.mjs → platform-lifecycle-CKwOg8wz.mjs} +244 -104
  150. package/dist/{platform-management-BwHkz46V.mjs → platform-management-CaSdFthX.mjs} +1 -1
  151. package/dist/{platform-management-DX1zINou.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
  152. package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
  153. package/dist/{platform-recovery-CnzBbudV.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
  154. package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
  155. package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
  156. package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
  157. package/dist/prepare-CLl_TA_r.mjs +1 -0
  158. package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
  159. package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
  160. package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
  161. package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
  162. package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
  163. package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
  164. package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
  165. package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
  166. package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
  167. package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
  168. package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
  169. package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
  170. package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
  171. package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
  172. package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
  173. package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
  174. package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
  175. package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
  176. package/dist/resolve-project-Bob_rEi2.mjs +1 -0
  177. package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
  178. package/dist/resource-binding-5nI30acw.mjs +20 -0
  179. package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
  180. package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
  181. package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
  182. package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
  183. package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
  184. package/dist/routes-stub.d.mts +18 -2
  185. package/dist/routes-stub.mjs +1 -1
  186. package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
  187. package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
  188. package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
  189. package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
  190. package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
  191. package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
  192. package/dist/runtime/ai/index.mjs +1 -1
  193. package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
  194. package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
  195. package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
  196. package/dist/runtime/client/fetch-server.mjs +1 -1
  197. package/dist/runtime/client/fetch-stream.mjs +1 -1
  198. package/dist/runtime/client/fetch.mjs +1 -1
  199. package/dist/runtime/client/index.mjs +2 -2
  200. package/dist/runtime/client/react.mjs +2 -2
  201. package/dist/runtime/client/solid.mjs +2 -2
  202. package/dist/runtime/client/svelte.mjs +2 -2
  203. package/dist/runtime/client/vue.mjs +2 -2
  204. package/dist/runtime/durable/index.mjs +11 -26
  205. package/dist/runtime/env/runtime.d.mts +2 -10
  206. package/dist/runtime/handler/index.d.mts +3 -2
  207. package/dist/runtime/handler/index.mjs +2 -2
  208. package/dist/runtime/handler/validator.d.mts +1 -1
  209. package/dist/runtime/handler/validator.mjs +1 -1
  210. package/dist/runtime/html.d.mts +2 -0
  211. package/dist/runtime/html.mjs +1 -0
  212. package/dist/runtime/image/index.d.mts +103 -0
  213. package/dist/runtime/image/index.mjs +89 -0
  214. package/dist/runtime/jsx/index.d.mts +3 -0
  215. package/dist/runtime/jsx/index.mjs +2 -0
  216. package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
  217. package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
  218. package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
  219. package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
  220. package/dist/runtime/limits/index.mjs +1 -1
  221. package/dist/runtime/live/client.d.mts +2 -2
  222. package/dist/runtime/live/index.d.mts +1 -1
  223. package/dist/runtime/routing/index.d.mts +87 -4
  224. package/dist/runtime/routing/index.mjs +59 -20
  225. package/dist/runtime/routing/route-url.d.mts +2 -2
  226. package/dist/runtime/routing/route-url.mjs +1 -1
  227. package/dist/runtime/sandbox/index.mjs +1 -1
  228. package/dist/runtime/sse/client.d.mts +1 -1
  229. package/dist/runtime/workflows/entry.d.mts +8 -0
  230. package/dist/runtime/workflows/entry.mjs +49 -0
  231. package/dist/runtime/workflows/index.d.mts +3 -0
  232. package/dist/runtime/workflows/index.mjs +77 -0
  233. package/dist/runtime/ws/index.d.mts +1 -1
  234. package/dist/runtime/ws/index.mjs +2 -2
  235. package/dist/runtime/ws/room.d.mts +1 -1
  236. package/dist/runtime/ws/server.d.mts +2 -2
  237. package/dist/runtime-Db72hLY-.d.mts +11 -0
  238. package/dist/scan-BxhB4BA-.mjs +946 -0
  239. package/dist/scan-D2ISAobj.mjs +308 -0
  240. package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
  241. package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
  242. package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
  243. package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
  244. package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
  245. package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
  246. package/dist/standard-schema-DvMcZGMK.mjs +8 -0
  247. package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
  248. package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
  249. package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
  250. package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
  251. package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
  252. package/dist/validate-p9b3r1k4.mjs +1 -0
  253. package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
  254. package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
  255. package/dist/version-metadata-CEla0kgi.mjs +23 -0
  256. package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
  257. package/dist/wrangler-BT7qrzWc.mjs +1 -0
  258. package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
  259. package/docs/guide/ai.md +1 -1
  260. package/docs/guide/app-types.md +6 -23
  261. package/docs/guide/auth.md +2 -4
  262. package/docs/guide/database/d1.md +21 -67
  263. package/docs/guide/database/mysql.md +8 -0
  264. package/docs/guide/database/postgresql.md +2 -2
  265. package/docs/guide/database.md +1 -1
  266. package/docs/guide/deployment.md +18 -0
  267. package/docs/guide/edge/prerendering.md +3 -7
  268. package/docs/guide/edge/redirects.md +1 -1
  269. package/docs/guide/edge/revalidation.md +8 -17
  270. package/docs/guide/edge/rewrites.md +1 -1
  271. package/docs/guide/edge/static-assets.md +10 -22
  272. package/docs/guide/email/domains.md +3 -1
  273. package/docs/guide/email/receiving.md +2 -2
  274. package/docs/guide/email/sending.md +3 -1
  275. package/docs/guide/env-vars.md +2 -0
  276. package/docs/guide/image-generation.md +142 -0
  277. package/docs/guide/index.md +17 -15
  278. package/docs/guide/jobs.md +2 -4
  279. package/docs/guide/kv.md +1 -1
  280. package/docs/guide/og-images.md +83 -0
  281. package/docs/guide/pages-routing/actions-and-forms.md +6 -4
  282. package/docs/guide/pages-routing/errors.md +20 -4
  283. package/docs/guide/pages-routing/head.md +5 -5
  284. package/docs/guide/pages-routing/islands.md +4 -14
  285. package/docs/guide/pages-routing/markdown.md +2 -2
  286. package/docs/guide/pages-routing/overview.md +129 -15
  287. package/docs/guide/platform/administration/plans.md +47 -16
  288. package/docs/guide/platform/administration/projects.md +10 -0
  289. package/docs/guide/platform/administration/security-audits.md +76 -30
  290. package/docs/guide/platform/administration/zero-trust.md +1 -1
  291. package/docs/guide/platform/installation/ci.md +0 -4
  292. package/docs/guide/platform/installation/credentials.md +1 -1
  293. package/docs/guide/platform/installation/maintenance.md +11 -9
  294. package/docs/guide/platform/installation/prerequisites.md +3 -1
  295. package/docs/guide/platform/installation/setup.md +7 -15
  296. package/docs/guide/platform/installation/uninstall.md +6 -12
  297. package/docs/guide/project-collaboration.md +1 -4
  298. package/docs/guide/queues.md +6 -8
  299. package/docs/guide/quickstart.md +6 -8
  300. package/docs/guide/sandboxes.md +1 -1
  301. package/docs/guide/self-hosted-platform.md +4 -7
  302. package/docs/guide/server-routing.md +5 -3
  303. package/docs/guide/ssg.md +1 -1
  304. package/docs/guide/type-safety.md +74 -10
  305. package/docs/guide/websockets.md +5 -7
  306. package/docs/guide/workflows.md +122 -0
  307. package/docs/index.md +2 -3
  308. package/docs/integrations/agents.md +3 -16
  309. package/docs/integrations/cloudflare.md +98 -2
  310. package/docs/integrations/frameworks/analog.md +9 -11
  311. package/docs/integrations/frameworks/astro.md +16 -17
  312. package/docs/integrations/frameworks/nuxt.md +11 -13
  313. package/docs/integrations/frameworks/overview.md +18 -20
  314. package/docs/integrations/frameworks/react-router.md +55 -6
  315. package/docs/integrations/frameworks/sveltekit.md +8 -6
  316. package/docs/integrations/frameworks/tanstack-start.md +10 -6
  317. package/docs/integrations/hono.md +27 -12
  318. package/docs/integrations/nodejs-bun-deno.md +10 -2
  319. package/docs/reference/api/database.md +8 -10
  320. package/docs/reference/api/env.md +2 -2
  321. package/docs/reference/api/handlers.md +1 -1
  322. package/docs/reference/api/html.md +45 -0
  323. package/docs/reference/api/pages.md +118 -167
  324. package/docs/reference/api/rewrites.md +5 -5
  325. package/docs/reference/api/types.md +13 -6
  326. package/docs/reference/api/workflows.md +48 -0
  327. package/docs/reference/api.md +7 -1
  328. package/docs/reference/cli/database.md +22 -10
  329. package/docs/reference/cli/deploy.md +49 -4
  330. package/docs/reference/cli/domains.md +7 -3
  331. package/docs/reference/cli/email.md +3 -1
  332. package/docs/reference/cli/platform-installation.md +9 -53
  333. package/docs/reference/cli/platform-security.md +36 -8
  334. package/docs/reference/cli/platform-users.md +11 -1
  335. package/docs/reference/cli/platform-zero-trust.md +1 -1
  336. package/docs/reference/cli/project.md +52 -11
  337. package/docs/reference/cli/setup.md +8 -10
  338. package/docs/reference/cli.md +49 -47
  339. package/docs/reference/config.md +22 -8
  340. package/docs/reference/resource-inference.md +8 -1
  341. package/docs/reference/structure.md +5 -0
  342. package/package.json +52 -25
  343. package/schema.json +20 -1
  344. package/skills/void/SKILL.md +60 -54
  345. package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
  346. package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
  347. package/dist/cli/db-execute-process.d.mts +0 -2
  348. package/dist/cli/db-execute-process.mjs +0 -57
  349. package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
  350. package/dist/collect-B6nlSnsb.mjs +0 -1
  351. package/dist/db-args-BvMwAber.mjs +0 -1
  352. package/dist/deploy-Do6FWqon.mjs +0 -2
  353. package/dist/discover-D2KGP3cR.mjs +0 -1
  354. package/dist/entry-Bwb9ev8K.mjs +0 -113
  355. package/dist/gen-vhBDHs3q.mjs +0 -1
  356. package/dist/help-fKPzcTJv.mjs +0 -1
  357. package/dist/isr-config-DiTnL9Tb.mjs +0 -115
  358. package/dist/login-DECm3e9b.mjs +0 -1
  359. package/dist/migrate-C9aoWLvY.mjs +0 -1
  360. package/dist/operator-cmd-CVfK5U0B.mjs +0 -1
  361. package/dist/output-D7K9TWIA.mjs +0 -1
  362. package/dist/platform-args-CMwMoiLp.mjs +0 -1
  363. package/dist/prepare-DcwigRUS.mjs +0 -1
  364. package/dist/providers-D5P8j_8D.d.mts +0 -5
  365. package/dist/resolve-project-YsTH-U9I.mjs +0 -1
  366. package/dist/static-exports-s7P86Ngp.mjs +0 -354
  367. package/dist/validate-CZYUIfR-.mjs +0 -1
  368. package/dist/wrangler-Dq269bjx.mjs +0 -1
  369. package/docs/guide/platform/development/local.md +0 -120
  370. package/docs/guide/platform/development/runtime.md +0 -115
  371. package/docs/guide/platform/development/schema-ci.md +0 -44
  372. package/docs/guide/platform-development.md +0 -16
@@ -0,0 +1,64 @@
1
+ import { n as raw } from "./html-DPSOBDCh.mjs";
2
+ import { isValidElement } from "hono/jsx";
3
+ import { HtmlEscapedCallbackPhase, resolveCallback } from "hono/utils/html";
4
+ // src/runtime/image/generate/input.ts
5
+ const ignore = () => {};
6
+ const resolvedTemplates = /* @__PURE__ */ new WeakMap();
7
+ /** Observe already-started work without evaluating components or changing the caller's JSX tree. */
8
+ function prepareImageInput(input) {
9
+ return prepareValue(input, /* @__PURE__ */ new WeakMap());
10
+ }
11
+ function prepareValue(value, seen) {
12
+ if (typeof value !== "object" || value === null) return value;
13
+ if (seen.has(value)) return seen.get(value);
14
+ seen.set(value, value);
15
+ let result = value;
16
+ if (value instanceof Promise) {
17
+ if (Object.hasOwn(value, "toString")) {
18
+ value.catch(ignore);
19
+ return value;
20
+ }
21
+ const pending = value.then((resolved) => prepareValue(resolved, seen));
22
+ pending.catch(ignore);
23
+ result = pending;
24
+ } else if (Array.isArray(value)) {
25
+ const items = value.map((item) => prepareValue(item, seen));
26
+ if (items.some((item, index) => item !== value[index])) result = items;
27
+ } else if (isValidElement(value)) {
28
+ const children = prepareValue(value.children, seen);
29
+ let props = value.props;
30
+ for (const [key, prop] of Object.entries(value.props)) {
31
+ if (key !== "children") {
32
+ if (prop instanceof Promise) prop.catch(ignore);
33
+ continue;
34
+ }
35
+ const prepared = prepareValue(prop, seen);
36
+ if (prepared !== prop) {
37
+ if (props === value.props) props = { ...value.props };
38
+ props[key] = prepared;
39
+ }
40
+ }
41
+ if (props !== value.props || children !== value.children) result = Object.create(value, {
42
+ props: { value: props },
43
+ children: { value: children }
44
+ });
45
+ } else if (value.isEscaped === true) {
46
+ const markup = value;
47
+ if (markup.callbacks?.length) {
48
+ let prepared = resolvedTemplates.get(value);
49
+ if (!prepared) {
50
+ prepared = resolveCallback(markup, HtmlEscapedCallbackPhase.Stringify, false, {}).then((html) => raw(html));
51
+ prepared.catch(ignore);
52
+ resolvedTemplates.set(value, prepared);
53
+ }
54
+ result = prepared;
55
+ }
56
+ }
57
+ seen.set(value, result);
58
+ return result;
59
+ }
60
+ /** Renders Hono JSX or escaped HTML, including resolved `Suspense` content, to a string. */
61
+ async function imageInputToString(input) {
62
+ return String(await resolveCallback(input, HtmlEscapedCallbackPhase.Stringify, false, {}));
63
+ }
64
+ export { prepareImageInput as n, imageInputToString as t };
@@ -0,0 +1,43 @@
1
+ import { A as confirm$1, K as select$1, U as password$1, X as text$1, z as multiselect$1 } from "./dist-BngS28id.mjs";
2
+ // src/cli/interactive-prompts.ts
3
+ var PromptInputClosedError = class extends Error {
4
+ constructor() {
5
+ super("Standard input closed before the prompt was answered.");
6
+ }
7
+ };
8
+ async function withPromptInput(prompt, options) {
9
+ const input = options.input ?? process.stdin;
10
+ if (input.readableEnded || input.destroyed) throw new PromptInputClosedError();
11
+ const closed = new AbortController();
12
+ const onClose = () => closed.abort();
13
+ const signal = options.signal ? AbortSignal.any([options.signal, closed.signal]) : closed.signal;
14
+ input.once("end", onClose);
15
+ input.once("close", onClose);
16
+ try {
17
+ const result = await prompt({
18
+ ...options,
19
+ signal
20
+ });
21
+ if (closed.signal.aborted) throw new PromptInputClosedError();
22
+ return result;
23
+ } finally {
24
+ input.off("end", onClose);
25
+ input.off("close", onClose);
26
+ }
27
+ }
28
+ function confirm(options) {
29
+ return withPromptInput(confirm$1, options);
30
+ }
31
+ function multiselect(options) {
32
+ return withPromptInput(multiselect$1, options);
33
+ }
34
+ function password(options) {
35
+ return withPromptInput(password$1, options);
36
+ }
37
+ function select(options) {
38
+ return withPromptInput(select$1, options);
39
+ }
40
+ function text(options) {
41
+ return withPromptInput(text$1, options);
42
+ }
43
+ export { select as a, password as i, confirm as n, text as o, multiselect as r, PromptInputClosedError as t };
@@ -39,8 +39,11 @@ async function limitFromResponse(response, resource) {
39
39
  return new UsageLimit({
40
40
  resource,
41
41
  reason: "rate_limit",
42
- message: `${resource === "ai" ? "AI" : "Service"} is temporarily unavailable because its usage limit was reached.`,
42
+ message: `${resourceName(resource)} is temporarily unavailable because its usage limit was reached.`,
43
43
  ...Number.isFinite(retryTime) ? { retryAt: new Date(retryTime).toISOString() } : {}
44
44
  });
45
45
  }
46
+ function resourceName(resource) {
47
+ return resource === "ai" ? "AI" : resource === "browser" ? "Browser Run" : "Service";
48
+ }
46
49
  export { readUsageLimit$1 as i, asUsageLimit as n, limitFromResponse as r, UsageLimit as t };
@@ -1,10 +1,10 @@
1
- import { H as outro, L as log, O as cancel } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken, s as getSiteDomain } from "./auth-CqwJwItO.mjs";
3
- import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
- import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-8FdN6D2i.mjs";
5
- import { h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
6
- import { r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-dh9431bN.mjs";
7
- import { a as resolveProjectBySlug } from "./resolve-project-8WZ3iVmr.mjs";
1
+ import { H as outro, L as log, O as cancel } from "./dist-BngS28id.mjs";
2
+ import { c as getToken, s as getSiteDomain } from "./auth-CeBmolb-.mjs";
3
+ import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
4
+ import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-T-9AIQDe.mjs";
5
+ import { h as import_picocolors, y as printSuccess } from "./output-DhJgS6Ve.mjs";
6
+ import { r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-DC-BqHef.mjs";
7
+ import { a as resolveProjectBySlug } from "./resolve-project-s_FGWyr-.mjs";
8
8
  // src/cli/link.ts
9
9
  function projectLabel(slug, root, url) {
10
10
  if (url) return url;
@@ -1,10 +1,10 @@
1
- import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken } from "./auth-CqwJwItO.mjs";
3
- import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
- import { r as readSecurityStatusQuietly, t as formatProjectStatusSecurityLine } from "./deploy-security-notice-IRGy6Edf.mjs";
5
- import { S as tablePrefix, b as sanitizeTerminalText, c as formatCount, d as formatRelativeTime, h as import_picocolors, o as dim } from "./output-BZLnu0z8.mjs";
6
- import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-dh9431bN.mjs";
7
- import { a as resolveProjectBySlug } from "./resolve-project-8WZ3iVmr.mjs";
1
+ import { H as outro, L as log } from "./dist-BngS28id.mjs";
2
+ import { c as getToken } from "./auth-CeBmolb-.mjs";
3
+ import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
4
+ import { r as readSecurityStatusQuietly, t as formatProjectStatusSecurityLine } from "./deploy-security-notice-3jX71IeP.mjs";
5
+ import { S as tablePrefix, b as sanitizeTerminalText, c as formatCount, d as formatRelativeTime, h as import_picocolors, o as dim } from "./output-DhJgS6Ve.mjs";
6
+ import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-DC-BqHef.mjs";
7
+ import { a as resolveProjectBySlug } from "./resolve-project-s_FGWyr-.mjs";
8
8
  // src/cli/list.ts
9
9
  async function runListCommand(root, slug) {
10
10
  console.log();
@@ -43,7 +43,7 @@ async function runListCommand(root, slug) {
43
43
  }
44
44
  async function showCloudflareDeployments(root, slug) {
45
45
  if (slug) throw new Error("project: A project name selects a Void platform project and is not used for direct Cloudflare apps.");
46
- const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-ByjFGats.mjs");
46
+ const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-BmICrRnm.mjs");
47
47
  const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
48
48
  if (status.versions.length === 0) {
49
49
  outro(`No deployments for ${status.workerName}.`);
@@ -52,7 +52,7 @@ async function showCloudflareDeployments(root, slug) {
52
52
  const rows = [...status.versions].reverse().map((version) => ({
53
53
  id: version.id,
54
54
  status: version.id === status.activeVersionId ? "live" : "available",
55
- migrations: version.metadata?.migrations ? String(version.metadata.migrations.length) : "-",
55
+ migrations: String(version.metadata?.migrations?.length ?? version.metadata?.migrationSummary?.count ?? "-"),
56
56
  deployed: version.createdAt ? formatRelativeTime(version.createdAt) : "-"
57
57
  }));
58
58
  const idWidth = Math.max(2, ...rows.map((row) => row.id.length));
@@ -1,4 +1,4 @@
1
- import { l as aliasHint } from "./project-paths-2ENfCCih.mjs";
1
+ import { u as aliasHint } from "./project-paths-BeAxxqGh.mjs";
2
2
  import { pathToFileURL } from "node:url";
3
3
  // src/host/load-user-env.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { a as join, c as resolve, i as isAbsolute } from "./dist-DMYe8CZJ.mjs";
2
- import { b as readRootWranglerConfig } from "./wrangler-DVe5KV5G.mjs";
3
- import { r as getMiniflareDatabasePath } from "./runner-CeguHWJx.mjs";
2
+ import { y as readRootWranglerConfig } from "./wrangler-AyMfdVJK.mjs";
3
+ import { r as getMiniflareDatabasePath } from "./runner-CnUrhc8H.mjs";
4
4
  import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
5
5
  import { createHash } from "node:crypto";
6
6
  // src/local-d1.ts
@@ -0,0 +1 @@
1
+ export { r as selectPlatformLoginMethod } from "./login-DaugBfBG.mjs";
@@ -1,7 +1,8 @@
1
- import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
- import { a as getApiUrl, c as getToken, f as removeToken, l as getTokenSource, m as savePlatformToken, p as runPlatformLogin } from "./auth-CqwJwItO.mjs";
3
- import { a as isExpiredTokenError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
- import { a as createSpinner, f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
1
+ import { a as getApiUrl, c as getToken, f as removeToken, l as getTokenSource, m as savePlatformToken, p as runPlatformLogin } from "./auth-CeBmolb-.mjs";
2
+ import { H as outro, L as log, O as cancel, tt as isCancel } from "./dist-BngS28id.mjs";
3
+ import { a as isExpiredTokenError, r as PlatformClient } from "./client-BEHI4UWn.mjs";
4
+ import { a as select } from "./interactive-prompts-EK0dilFu.mjs";
5
+ import { a as createSpinner, f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-DhJgS6Ve.mjs";
5
6
  // src/cli/login.ts
6
7
  async function selectPlatformLoginMethod(platform, requestedId) {
7
8
  const providers = platform.authenticationProviders;
@@ -32,7 +33,7 @@ async function selectPlatformLoginMethod(platform, requestedId) {
32
33
  }
33
34
  async function promptForLoginToken(root = process.cwd(), platform) {
34
35
  const apiUrl = platform?.apiUrl ?? getApiUrl(root);
35
- const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-u1j88ggF.mjs")).discoverPlatform(apiUrl));
36
+ const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-Cs2LkT5L.mjs")).discoverPlatform(apiUrl));
36
37
  const s = createSpinner();
37
38
  s.start(`Opening browser for ${providerName} login...`);
38
39
  try {
@@ -1,16 +1,16 @@
1
- import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken } from "./auth-CqwJwItO.mjs";
3
- import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
- import { c as formatCount, h as import_picocolors, o as dim, s as errorStackFrames } from "./output-BZLnu0z8.mjs";
1
+ import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-BngS28id.mjs";
2
+ import { c as getToken } from "./auth-CeBmolb-.mjs";
3
+ import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
4
+ import { c as formatCount, h as import_picocolors, o as dim, s as errorStackFrames } from "./output-DhJgS6Ve.mjs";
5
5
  import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
6
- import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-dh9431bN.mjs";
6
+ import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-DC-BqHef.mjs";
7
7
  import { t as sanitizeTerminalLogText } from "./terminal-log-text-CfS2JKM6.mjs";
8
8
  // src/cli/logs.ts
9
9
  async function runLogsCommand(root, filter, range, deployment, level) {
10
10
  console.log();
11
11
  const platform = readDeploymentPlatform(root);
12
12
  if (platform === "cloudflare") {
13
- const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-ByjFGats.mjs");
13
+ const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-BmICrRnm.mjs");
14
14
  if (range !== "1h") log.warn("Cloudflare tail streams live logs; --range does not select historical entries.");
15
15
  if (level && level !== "all" && level !== "error") log.warn("Cloudflare tail cannot filter individual console levels; showing all invocation logs.");
16
16
  await tailCloudflareWorker(resolveCloudflareOperationContext(root), {
@@ -0,0 +1 @@
1
+ export { n as runMigrateCommand } from "./migrate-Dtlg8fC6.mjs";
@@ -1,11 +1,11 @@
1
- import { L as log } from "./dist-Cr_xGE_K.mjs";
1
+ import { L as log } from "./dist-BngS28id.mjs";
2
2
  import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
3
- import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-D9UFH_A5.mjs";
4
- import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-2ENfCCih.mjs";
5
- import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-DVe5KV5G.mjs";
6
- import { h as validateConfig } from "./config-Dv5jri1-.mjs";
3
+ import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-KPHKf57C.mjs";
4
+ import { c as loadTypedVoidConfigFile, s as TYPED_CONFIG_FILE } from "./project-paths-BeAxxqGh.mjs";
5
+ import { a as renderVoidConfig, t as GENERATED_MARKERS } from "./config-write-dKLINlm2.mjs";
6
+ import { _ as validateConfig } from "./config-KZAiI3gG.mjs";
7
7
  import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
8
- import { y as printSuccess } from "./output-BZLnu0z8.mjs";
8
+ import { y as printSuccess } from "./output-DhJgS6Ve.mjs";
9
9
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
10
10
  import { parseSync } from "vite";
11
11
  import { randomUUID } from "node:crypto";
@@ -265,7 +265,7 @@ function migrateLegacyVoidConfig(root) {
265
265
  let current;
266
266
  if (hadTyped) {
267
267
  const existing = readFileSync(typedPath, "utf8");
268
- if (!GENERATED_MARKERS.some((marker) => existing.startsWith(marker))) throw new Error(`migrate: ${TYPED_CONFIG_FILE} already exists. Move the legacy settings into it before deleting the old files.`);
268
+ if (!GENERATED_MARKERS.some((marker) => existing.startsWith(marker))) throw new Error(existsSync(join(root, "void.lock.json")) ? `migrate: ${TYPED_CONFIG_FILE} already exists. Move the legacy settings into it before deleting the old files.` : `migrate: ${TYPED_CONFIG_FILE} already exists. Rename it to a backup, run \`void migrate\`, then merge your saved settings into the new file and keep the migrated resource IDs.`);
269
269
  current = validateConfig(loadTypedVoidConfigFile(typedPath), TYPED_CONFIG_FILE);
270
270
  const currentVoid = { ...current };
271
271
  delete currentVoid.cloudflare;
package/dist/nitro.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { n as bundleWorkerSqlDriver } from "./wrapper-CcMYpOS8.mjs";
3
- import { l as getDatabaseDialect, p as readConfig } from "./config-Dv5jri1-.mjs";
4
- import { c as voidDbBundlerPlugin } from "./dispatch-DIhDA3NI.mjs";
2
+ import { n as bundleWorkerSqlDriver } from "./wrapper-DPlTBVOx.mjs";
3
+ import { h as readConfig, u as getDatabaseDialect } from "./config-KZAiI3gG.mjs";
4
+ import { c as voidDbBundlerPlugin } from "./dispatch-BUKbPdqb.mjs";
5
5
  import { normalizePath } from "vite";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import { resolve } from "node:path/win32";
@@ -1,10 +1,10 @@
1
1
  import { n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { p as readConfig } from "./config-Dv5jri1-.mjs";
3
- import { r as getMiniflareDatabasePath } from "./runner-CeguHWJx.mjs";
2
+ import { h as readConfig } from "./config-KZAiI3gG.mjs";
3
+ import { r as getMiniflareDatabasePath } from "./runner-CnUrhc8H.mjs";
4
4
  import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./migrations-CUHhX65Y.mjs";
5
- import { c as loadLocalEnv } from "./env-EjHqc7m9.mjs";
6
- import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-BFX5ZB1J.mjs";
7
- import { r as resolveVoidAuthMigrationSchema } from "./drizzle-BJDMPrj7.mjs";
5
+ import { l as loadLocalEnv } from "./env-CU2tMDdO.mjs";
6
+ import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-CUYGZqdN.mjs";
7
+ import { r as resolveVoidAuthMigrationSchema } from "./drizzle-CnSbVeiZ.mjs";
8
8
  import { mkdirSync } from "node:fs";
9
9
  // src/auth/node.ts
10
10
  async function runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, configPath = findVoidAuthConfig(root), databaseUrl, importModule) {
@@ -1,9 +1,9 @@
1
1
  import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
2
2
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
3
- import { t as ensurePlatformAccessToken } from "./cf-access-DHklo7Rg.mjs";
4
- import { r as OperatorClientError } from "./operator-client-dFNnXfyB.mjs";
5
- import { b as sanitizeTerminalText } from "./output-BZLnu0z8.mjs";
6
- import { n as readPlatformDiscoveryResponse } from "./platform-discovery-CLxtixHJ.mjs";
3
+ import { t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
4
+ import { r as OperatorClientError } from "./operator-client-BG0VIMMM.mjs";
5
+ import { b as sanitizeTerminalText } from "./output-DhJgS6Ve.mjs";
6
+ import { n as readPlatformDiscoveryResponse } from "./platform-discovery-CKeeeD82.mjs";
7
7
  import { AI_LOGGING_SETTLE_MS } from "@void/platform/ai-logging";
8
8
  function text(value) {
9
9
  return typeof value === "string" ? sanitizeTerminalText(value) : "";
@@ -114,7 +114,7 @@ async function assertAiLoggingPlatform(origin) {
114
114
  const probe = await probePlatformVersion(origin);
115
115
  if (probe.kind === "unknown") return;
116
116
  if (probe.kind === "version") {
117
- const { isOlderPlatformVersion } = await import("./client-eLZwqkPH.mjs");
117
+ const { isOlderPlatformVersion } = await import("./client-0um7Lzze.mjs");
118
118
  if (isOlderPlatformVersion(probe.version, "1.8.0") !== true) return;
119
119
  }
120
120
  throw new OperatorClientError("This platform does not support AI logging policies. Run `void platform upgrade`.", "unsupported");
@@ -1,4 +1,4 @@
1
- import { t as OPERATOR_MAX_TIMEOUT_MS } from "./operator-client-dFNnXfyB.mjs";
1
+ import { t as OPERATOR_MAX_TIMEOUT_MS } from "./operator-client-BG0VIMMM.mjs";
2
2
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
3
3
  import { parsePlatformLoginId } from "@void/platform";
4
4
  import { parseSecurityDigits } from "@void/platform/security-policy";
@@ -83,9 +83,10 @@ function parseUsd(value) {
83
83
  if (!Number.isFinite(usd) || usd > MAX_BUDGET_USD) throw new Error(`project: --usd must be at most ${MAX_BUDGET_USD}.`);
84
84
  return usd;
85
85
  }
86
- function requireComment(value) {
86
+ /** `example` is how the command takes its text: `comment` reads it as an argument. */
87
+ function requireComment(value, example = "--comment \"Added requireAdmin() in a1b2c3\"") {
87
88
  const text = value?.trim() ?? "";
88
- if (text === "") throw new Error("project: A comment is required. Say why, for example: --comment \"Added requireAdmin() in a1b2c3\"");
89
+ if (text === "") throw new Error(`project: A comment is required. Say why, for example: ${example}`);
89
90
  if (Array.from(text).length > 4e3) throw new Error(`project: A comment can be at most ${SECURITY_COMMENT_MAX_CHARS} characters.`);
90
91
  return text;
91
92
  }
@@ -176,15 +177,16 @@ function parseSecurityArgs(rest) {
176
177
  json,
177
178
  action,
178
179
  id,
179
- text: requireComment(positionals[1])
180
+ text: requireComment(positionals[1], `void project security comment ${id} "Checked with the team"`)
180
181
  };
181
182
  }
182
183
  if (action === "resolve") {
183
184
  const ids = parseFindingIds(positionals);
184
185
  if (ids.length === 0) throw new Error("project: Usage: void project security resolve <F-id>… --reason fixed|false-positive|accepted-risk --comment \"<text>\".");
185
186
  const reasonText = values.get("--reason");
186
- const reason = reasonText !== void 0 && hasOwnKey(REASONS$1, reasonText) ? REASONS$1[reasonText] : void 0;
187
- if (!reason) throw new Error("project: --reason is required: fixed, false-positive or accepted-risk.");
187
+ if (reasonText === void 0) throw new Error("project: --reason is required: fixed, false-positive or accepted-risk.");
188
+ if (!hasOwnKey(REASONS$1, reasonText)) throw new Error(`project: Invalid --reason '${reasonText}'. Use one of fixed|false-positive|accepted-risk.`);
189
+ const reason = REASONS$1[reasonText];
188
190
  return {
189
191
  ...base,
190
192
  json,
@@ -316,11 +318,14 @@ const securityOperatorCommands = [
316
318
  },
317
319
  {
318
320
  action: "limits",
319
- description: "Set scan limits: concurrent scans and the time one scan may run",
321
+ description: "Set scan limits: concurrent scans, the time one scan may run, its input tokens, its model calls and its spend limit",
320
322
  path: "/security/policy",
321
323
  values: {
322
324
  concurrency: "Scans that run at once (1 to 10)",
323
- "scan-timeout": "Minutes one scan may run (5 to 60)"
325
+ "scan-timeout": "Minutes one scan may run (5 to 60)",
326
+ "scan-input-tokens": "Input tokens one scan may send, cached ones included (50000 to 20000000)",
327
+ "scan-calls": "Model calls one scan may make (10 to 500)",
328
+ "scan-usd": "Spend limit of one scan in USD (0.01 to 12), or auto to price it from the token limits"
324
329
  },
325
330
  method: "POST"
326
331
  },
@@ -683,9 +688,12 @@ function applySecurityArgs(command, parameters, values, flags, parsed) {
683
688
  case "limits": {
684
689
  const limits = {
685
690
  ...values.concurrency ? { concurrency: wholeNumber(values.concurrency, "concurrency") } : {},
686
- ...values["scan-timeout"] ? { timeoutMinutes: wholeNumber(values["scan-timeout"], "scan-timeout") } : {}
691
+ ...values["scan-timeout"] ? { timeoutMinutes: wholeNumber(values["scan-timeout"], "scan-timeout") } : {},
692
+ ...values["scan-input-tokens"] ? { maxInputTokens: wholeNumber(values["scan-input-tokens"], "scan-input-tokens") } : {},
693
+ ...values["scan-calls"] ? { modelCallsPerScan: wholeNumber(values["scan-calls"], "scan-calls") } : {},
694
+ ...values["scan-usd"] ? { maxScanUsd: values["scan-usd"] === "auto" ? null : dollars(values["scan-usd"], "scan-usd") } : {}
687
695
  };
688
- if (Object.keys(limits).length === 0) throw new Error("platform: Usage: void platform security limits [--concurrency <n>] [--scan-timeout <minutes>].");
696
+ if (Object.keys(limits).length === 0) throw new Error("platform: Usage: void platform security limits [--concurrency <n>] [--scan-timeout <minutes>] [--scan-input-tokens <n>] [--scan-calls <n>] [--scan-usd <usd|auto>].");
689
697
  parsed.body = { limits };
690
698
  return;
691
699
  }
@@ -717,13 +725,12 @@ function applySecurityArgs(command, parameters, values, flags, parsed) {
717
725
  parsed.body = body;
718
726
  return;
719
727
  }
720
- case "resolve": {
721
- const reason = values.reason !== void 0 && hasOwnKey(REASONS, values.reason) ? REASONS[values.reason] : void 0;
722
- if (!reason) throw new Error("platform: --reason is required: fixed, false-positive or accepted-risk.");
723
- parsed.body.reason = reason;
728
+ case "resolve":
729
+ if (values.reason === void 0) throw new Error("platform: --reason is required: fixed, false-positive or accepted-risk.");
730
+ if (!hasOwnKey(REASONS, values.reason)) throw new Error(`platform: Invalid --reason '${values.reason}'. Use one of fixed|false-positive|accepted-risk.`);
731
+ parsed.body.reason = REASONS[values.reason];
724
732
  parsed.body.comment = requireText(values.comment, "comment");
725
733
  return;
726
- }
727
734
  case "reopen":
728
735
  parsed.body.comment = requireText(values.comment, "comment");
729
736
  return;
@@ -868,6 +875,15 @@ const operatorCommands = [
868
875
  usage: ["void platform project ai-logging <project-id> <inherit|off|metadata|full> [options]"],
869
876
  method: "POST"
870
877
  },
878
+ {
879
+ group: "project",
880
+ action: "browser-rate",
881
+ description: "Set the Browser Run requests an app may make in 10 seconds (inherit, 0 for unlimited, 1, or 300); applies within 2 minutes",
882
+ path: "/projects/:id/browser-rate",
883
+ positional: ["id", "rate"],
884
+ usage: ["void platform project browser-rate <project-id> <inherit|0|1|300> [options]"],
885
+ method: "POST"
886
+ },
871
887
  {
872
888
  group: "project",
873
889
  action: "owner",
@@ -1,5 +1,5 @@
1
- import { C as deleteKeyringPassword, T as writeKeyringPassword, c as normalizePlatformApiUrl, i as getActivePlatformConnection, r as findPlatformConnections, u as platformCredentialAccount, w as readKeyringPassword } from "./platform-registry-DHH6fivm.mjs";
2
- import { n as OperatorClient, r as OperatorClientError } from "./operator-client-dFNnXfyB.mjs";
1
+ import { C as deleteKeyringPassword, T as writeKeyringPassword, c as normalizePlatformApiUrl, i as getActivePlatformConnection, r as findPlatformConnections, u as platformCredentialAccount, w as readKeyringPassword } from "./platform-registry-zHH3RiIm.mjs";
2
+ import { n as OperatorClient, r as OperatorClientError } from "./operator-client-BG0VIMMM.mjs";
3
3
  /** Operator authority never comes from repository-controlled metadata. */
4
4
  function resolveOperatorOrigin(connection = "") {
5
5
  if (connection) {
@@ -1,6 +1,6 @@
1
1
  import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
2
- import { t as ensurePlatformAccessToken } from "./cf-access-DHklo7Rg.mjs";
3
- import { c as normalizePlatformApiUrl } from "./platform-registry-DHH6fivm.mjs";
2
+ import { t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
3
+ import { c as normalizePlatformApiUrl } from "./platform-registry-zHH3RiIm.mjs";
4
4
  const OPERATOR_MAX_TIMEOUT_MS = 36e5;
5
5
  var OperatorClientError = class extends Error {
6
6
  code;
@@ -0,0 +1 @@
1
+ export { s as runOperatorCommand } from "./operator-cmd-D4YcMKO-.mjs";
@@ -1,8 +1,8 @@
1
1
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
2
- import { i as assertAiLoggingPlatform, n as aiLoggingPreviewLines, r as aiLoggingStatusLine, t as aiLoggingChangeLines } from "./operator-ai-logging-DD0n6zc2.mjs";
3
- import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-DMvn-y9X.mjs";
4
- import { n as OperatorClient, r as OperatorClientError } from "./operator-client-dFNnXfyB.mjs";
5
- import { b as sanitizeTerminalText, o as dim, y as printSuccess } from "./output-BZLnu0z8.mjs";
2
+ import { i as assertAiLoggingPlatform, n as aiLoggingPreviewLines, r as aiLoggingStatusLine, t as aiLoggingChangeLines } from "./operator-ai-logging-4Nvs6Ut3.mjs";
3
+ import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-DtRMGXYY.mjs";
4
+ import { n as OperatorClient, r as OperatorClientError } from "./operator-client-BG0VIMMM.mjs";
5
+ import { b as sanitizeTerminalText, o as dim, y as printSuccess } from "./output-DhJgS6Ve.mjs";
6
6
  import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
7
7
  import { t as OPEN_PUBLIC_REQUEST_STATES } from "./security-api-types-CU7zQtr_.mjs";
8
8
  import { createHash } from "node:crypto";
@@ -191,9 +191,9 @@ async function runAuth(origin, args) {
191
191
  if (args.action === "login" || args.action === "token" && args.tokenStdin) {
192
192
  if (!args.tokenStdin && !process.stdin.isTTY) throw new OperatorClientError("Browser login requires an interactive terminal. Use --token-stdin to exchange an API session.", "interactive_login_required");
193
193
  const apiToken = args.tokenStdin ? await readOperatorApiTokenStdin() : await (async () => {
194
- const { discoverPlatform } = await import("./platform-cmd-u1j88ggF.mjs");
195
- const { selectPlatformLoginMethod } = await import("./login-DECm3e9b.mjs");
196
- const { runPlatformLogin } = await import("./auth-A7cZ8aXA.mjs");
194
+ const { discoverPlatform } = await import("./platform-cmd-Cs2LkT5L.mjs");
195
+ const { selectPlatformLoginMethod } = await import("./login-BJwPhV_S.mjs");
196
+ const { runPlatformLogin } = await import("./auth-CvaDxOMi.mjs");
197
197
  return runPlatformLogin(origin, (await selectPlatformLoginMethod(await discoverPlatform(origin), args.provider)).id, (url) => process.stderr.write(`Sign in at ${url}\n`));
198
198
  })();
199
199
  const session = await exchangeOperatorSession(origin, apiToken);
@@ -377,7 +377,7 @@ function aiLoggingProjectId(args) {
377
377
  }
378
378
  async function runOperatorCommand(args) {
379
379
  if (!args.action) {
380
- const { printHelpPage } = await import("./help-fKPzcTJv.mjs");
380
+ const { printHelpPage } = await import("./help-DWGHmt_n.mjs");
381
381
  printHelpPage(["platform", args.group]);
382
382
  return;
383
383
  }
@@ -386,7 +386,7 @@ async function runOperatorCommand(args) {
386
386
  const client = new OperatorClient(origin, readOperatorToken(origin));
387
387
  if (args.method === "POST" && !(args.group === "security" && args.action === "probe") && !args.plan && !args.yes && (!process.stdin.isTTY || !process.stderr.isTTY)) throw new OperatorClientError("Mutations in non-interactive mode require --yes or --plan.", "confirmation_required");
388
388
  if (args.group === "security") {
389
- const { runSecurityOperatorCommand } = await import("./operator-security-D5MToU0p.mjs");
389
+ const { runSecurityOperatorCommand } = await import("./operator-security-nVLo8vDt.mjs");
390
390
  return runSecurityOperatorCommand(client, origin, args, {
391
391
  output,
392
392
  outputMutation,
@@ -1,6 +1,6 @@
1
- import { r as OperatorClientError } from "./operator-client-dFNnXfyB.mjs";
2
- import { o as dim, y as printSuccess } from "./output-BZLnu0z8.mjs";
3
- import { n as securityFindingsSarif, t as sarifToolVersion } from "./security-sarif-ClyYwtAW.mjs";
1
+ import { r as OperatorClientError } from "./operator-client-BG0VIMMM.mjs";
2
+ import { o as dim, y as printSuccess } from "./output-DhJgS6Ve.mjs";
3
+ import { n as securityFindingsSarif, t as sarifToolVersion } from "./security-sarif-DzTIqNwZ.mjs";
4
4
  // src/cli/operator-security.ts
5
5
  const NOT_INSTALLED = "Security audits are not installed. Run: void platform upgrade --security-audits";
6
6
  /** The platform answers 501 `platform capability unavailable` when the capability is off. */
@@ -34,6 +34,11 @@ function money(value) {
34
34
  function number(value) {
35
35
  return typeof value === "number" && Number.isSafeInteger(value) ? value : void 0;
36
36
  }
37
+ /** The preview's estimated cost. Older platforms send it only as `worstCaseUsd`. */
38
+ function estimateOf(preview) {
39
+ const value = preview.estimatedUsd ?? preview.worstCaseUsd;
40
+ return typeof value === "number" ? value : void 0;
41
+ }
37
42
  /** Reads. `show` takes comma-separated finding ids. */
38
43
  async function runRead(client, args, io) {
39
44
  if (args.action === "show") {
@@ -182,7 +187,7 @@ async function runRescan(client, origin, args, io) {
182
187
  const model = typeof preview.model === "string" ? preview.model : "the scan model";
183
188
  const whole = preview.clientAssets === true ? "This reviews the whole app, and the sources of its client bundles." : "This reviews the whole app.";
184
189
  const first = preview.alreadyScanned === true ? `Live deployment ${id} was already scanned. Run a full scan with ${model}? ${whole}` : `Run a full scan of live deployment ${id} with ${model}? ${whole}`;
185
- process.stderr.write(`${first}${typeof preview.worstCaseUsd === "number" ? ` It can cost up to ${money(preview.worstCaseUsd)}.` : ""}\n${dim("Monthly caps apply; raise the cap first if a rescan is refused.")}\n`);
190
+ process.stderr.write(`${first}${estimateOf(preview) === void 0 ? "" : ` Estimated cost: up to ${money(estimateOf(preview))}.`}\n${dim("Monthly caps apply; raise the cap first if a rescan is refused.")}\n`);
186
191
  }
187
192
  const result = await apply(client, origin, args, io, args.body, preview);
188
193
  if (!result) return;
@@ -197,7 +202,8 @@ async function runBackfill(client, origin, args, io) {
197
202
  const count = number(preview.willQueue) ?? 0;
198
203
  if (!args.json && !args.plan) {
199
204
  const remaining = number(preview.remaining) ?? 0;
200
- const cost = typeof preview.worstCaseUsd === "number" ? ` Together they can cost up to ${money(preview.worstCaseUsd)}.` : "";
205
+ const estimate = estimateOf(preview);
206
+ const cost = typeof estimate === "number" ? ` Estimated cost together: up to ${money(estimate)}.` : "";
201
207
  const missing = number(preview.noStoredCode) ?? 0;
202
208
  const missingText = missing > 0 ? `${missing} never-scanned live ${missing === 1 ? "deployment has" : "deployments have"} no stored code, so ${missing === 1 ? "it cannot" : "they cannot"} be scanned. Deploy ${missing === 1 ? "that project" : "those projects"} again.\n` : "";
203
209
  process.stderr.write(count === 0 ? `${missing > 0 ? "Nothing to backfill." : "Every live deployment in scope already has a scan. Nothing to backfill."}\n${missingText}` : `Scan ${count} live ${count === 1 ? "deployment" : "deployments"} that were never scanned?${cost}${remaining > 0 ? ` ${remaining} more wait for the next backfill.` : ""}\n${missingText}${dim("Monthly caps apply when each scan starts.")}\n`);
@@ -1,5 +1,5 @@
1
1
  import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
2
- import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-Cr_xGE_K.mjs";
2
+ import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-BngS28id.mjs";
3
3
  import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
4
4
  import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
5
5
  import { stripVTControlCharacters } from "node:util";
@@ -0,0 +1 @@
1
+ export { y as printSuccess } from "./output-DhJgS6Ve.mjs";