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
@@ -1,16 +1,17 @@
1
- import { A as confirm, L as log, U as password, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
3
- import { p as readConfig } from "./config-Dv5jri1-.mjs";
4
- import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
5
- import { f as scanEmailHandlersSync } from "./application-analysis-DVeN8yoi.mjs";
6
- import { c as getToken, u as openBrowser } from "./auth-CqwJwItO.mjs";
7
- import { n as PlatformApiError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
8
- import { a as discoverRootWranglerConfig, c as runWranglerAuthToken, l as deriveWorkerName, o as createDeployWranglerRunner, s as isWranglerNonInteractiveOrCI } from "./deploy-BgSbagIP.mjs";
9
- import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, i as createNodeEmailDns, l as probeMx, o as formatSendingOnlyPaidHint, r as applyEmailSetup, s as isAwaitingSendingOnboarding, u as renderAddressMap } from "./email-cloudflare-DeYH3Ke7.mjs";
10
- import { a as createSpinner, f as formatUrl, g as note, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
11
- import { i as resolveCommandProjectId } from "./resolve-project-8WZ3iVmr.mjs";
12
- import { o as resolveDeployTransport } from "./deploy-transport-BKP_oV9q.mjs";
13
- import { M as writeProvisionedWranglerConfig } from "./wrangler-DVe5KV5G.mjs";
2
+ import { h as readConfig } from "./config-KZAiI3gG.mjs";
3
+ import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
4
+ import { f as scanEmailHandlersSync } from "./application-analysis-BjEwHTV2.mjs";
5
+ import { c as getToken, u as openBrowser } from "./auth-CeBmolb-.mjs";
6
+ import { n as PlatformApiError, r as PlatformClient } from "./client-BEHI4UWn.mjs";
7
+ import { a as discoverRootWranglerConfig, c as runWranglerAuthToken, l as deriveWorkerName, o as createDeployWranglerRunner, s as isWranglerNonInteractiveOrCI } from "./deploy-UojYUEWr.mjs";
8
+ import { L as log, tt as isCancel } from "./dist-BngS28id.mjs";
9
+ import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, i as createNodeEmailDns, l as probeMx, o as formatSendingOnlyPaidHint, r as applyEmailSetup, s as isAwaitingSendingOnboarding, u as renderAddressMap } from "./email-cloudflare-C-guKEbz.mjs";
10
+ import { i as password, n as confirm } from "./interactive-prompts-EK0dilFu.mjs";
11
+ import { a as createSpinner, f as formatUrl, g as note, h as import_picocolors, y as printSuccess } from "./output-DhJgS6Ve.mjs";
12
+ import { i as resolveCommandProjectId } from "./resolve-project-s_FGWyr-.mjs";
13
+ import { o as resolveDeployTransport } from "./deploy-transport-4ISWxx8n.mjs";
14
+ import { j as writeProvisionedWranglerConfig } from "./wrangler-AyMfdVJK.mjs";
14
15
  import { existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
15
16
  import { tmpdir } from "node:os";
16
17
  import { execSync } from "node:child_process";
@@ -2,18 +2,18 @@ import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
2
2
  import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
3
3
  import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
4
4
  import { i as voidWarn, r as voidLog } from "./log-D9hwSySP.mjs";
5
- import { p as readConfig } from "./config-Dv5jri1-.mjs";
6
- import { i as readProjectIdField } from "./project-dh9431bN.mjs";
7
- import { p as findBindingNameOwner, u as ensureWranglerCompat } from "./wrangler-DVe5KV5G.mjs";
5
+ import { h as readConfig } from "./config-KZAiI3gG.mjs";
6
+ import { i as readProjectIdField } from "./project-DC-BqHef.mjs";
7
+ import { f as findBindingNameOwner, l as ensureWranglerCompat } from "./wrangler-AyMfdVJK.mjs";
8
8
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
9
9
  import { n as scopedAccessCredentials } from "./cf-access-DmkKPcAI.mjs";
10
- import { n as ensurePlatformProxyAccess } from "./cf-access-DHklo7Rg.mjs";
11
- import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-CqwJwItO.mjs";
12
- import { d as stripInternalEnvKeys } from "./env-EjHqc7m9.mjs";
13
- import { i as collectFiles } from "./isr-config-DiTnL9Tb.mjs";
10
+ import { n as ensurePlatformProxyAccess } from "./cf-access-B21j-nd6.mjs";
11
+ import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-CeBmolb-.mjs";
12
+ import { f as stripInternalEnvKeys } from "./env-CU2tMDdO.mjs";
13
+ import { s as collectFiles } from "./platform-C3Q44RJ8.mjs";
14
14
  import { a as renderPrerenderPaths, i as renderBoundary404, n as outputFileForPath, r as readPrerenderPathsResponse } from "./prerender-render-BAdYhivW.mjs";
15
15
  import { t as renderDefaultErrorPage } from "./error-pages-GORL6F_e.mjs";
16
- import { a as buildEnv } from "./version-metadata-DqgLa6gc.mjs";
16
+ import { n as buildEnv } from "./untrusted-env-4oW0TdBP.mjs";
17
17
  import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
18
18
  import { isRecord } from "@void/deploy-core";
19
19
  import { execFile } from "node:child_process";
@@ -136,6 +136,8 @@ async function createCloudflarePrerenderRunner(options) {
136
136
  for (const bucket of r2) buckets[bucket.binding] = bucket.bucket_name;
137
137
  mfOptions.r2Buckets = buckets;
138
138
  }
139
+ const browserBinding = wranglerConfig.browser?.binding;
140
+ if (typeof browserBinding === "string") mfOptions.browserRendering = { binding: browserBinding };
139
141
  if (mfOptions.d1Databases || mfOptions.kvNamespaces || mfOptions.r2Buckets) mfOptions.resourcePersistencePath = join(persistDir, "v3");
140
142
  const mf = new Miniflare(convertV4MiniflareOptions(mfOptions));
141
143
  return {
@@ -1,11 +1,11 @@
1
- import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
1
+ import { H as outro, L as log } from "./dist-BngS28id.mjs";
2
2
  import { a as join } from "./dist-DMYe8CZJ.mjs";
3
- import { r as generateEnvTypes, t as findEnvFile } from "./env-types-D2hBodXP.mjs";
4
- import { c as getToken } from "./auth-CqwJwItO.mjs";
5
- import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
6
- import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-D-v5_CWL.mjs";
7
- import { g as note, y as printSuccess } from "./output-BZLnu0z8.mjs";
8
- import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-dh9431bN.mjs";
3
+ import { r as generateEnvTypes, t as findEnvFile } from "./env-types-B33fEHRH.mjs";
4
+ import { c as getToken } from "./auth-CeBmolb-.mjs";
5
+ import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
6
+ import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-SXsjd6-Z.mjs";
7
+ import { g as note, y as printSuccess } from "./output-DhJgS6Ve.mjs";
8
+ import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-DC-BqHef.mjs";
9
9
  import { mkdirSync, writeFileSync } from "node:fs";
10
10
  // src/cli/env.ts
11
11
  async function runEnvCommand(root, args) {
@@ -25,7 +25,7 @@ async function runCheck(root, useRemoteSecrets) {
25
25
  const platform = readDeploymentPlatform(root);
26
26
  if (platform === "none") throw new Error("env: Deployment is disabled. Run `void init` to choose a platform.");
27
27
  if (platform === "cloudflare") {
28
- const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-ByjFGats.mjs");
28
+ const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-BmICrRnm.mjs");
29
29
  remoteSecrets = await listCloudflareSecrets(resolveCloudflareOperationContext(root));
30
30
  } else {
31
31
  const token = getToken(root);
@@ -28,6 +28,11 @@ const CLOUDFLARE_DEPLOY_BUILD_ENV = "VOID_CLOUDFLARE_DEPLOY_BUILD";
28
28
  */
29
29
  const CLOUDFLARE_QUEUE_NAMES_BUILD_ENV = "VOID_CLOUDFLARE_QUEUE_NAMES";
30
30
  /**
31
+ * The Worker name `void deploy --platform cloudflare` deploys to. Set only for
32
+ * its Vite build, which prefixes account-scoped Workflow names with it.
33
+ */
34
+ const CLOUDFLARE_WORKER_NAME_BUILD_ENV = "VOID_CLOUDFLARE_WORKER_NAME";
35
+ /**
31
36
  * Find legacy Vite dotenv variants. Void intentionally supports only `.env`;
32
37
  * production configuration is project-scoped remote state instead of a file.
33
38
  */
@@ -123,4 +128,4 @@ function stripInternalEnvKeys(input) {
123
128
  stripped
124
129
  };
125
130
  }
126
- export { findReservedEnvKeys as a, loadLocalEnv as c, stripInternalEnvKeys as d, findLegacyEnvFiles as i, reservedEnvKeysMessage as l, CLOUDFLARE_QUEUE_NAMES_BUILD_ENV as n, isClientEnvKey as o, LOCAL_ENV_FILE as r, legacyEnvExampleHint as s, CLOUDFLARE_DEPLOY_BUILD_ENV as t, resolveRemoteMode as u };
131
+ export { findLegacyEnvFiles as a, legacyEnvExampleHint as c, resolveRemoteMode as d, stripInternalEnvKeys as f, LOCAL_ENV_FILE as i, loadLocalEnv as l, CLOUDFLARE_QUEUE_NAMES_BUILD_ENV as n, findReservedEnvKeys as o, CLOUDFLARE_WORKER_NAME_BUILD_ENV as r, isClientEnvKey as s, CLOUDFLARE_DEPLOY_BUILD_ENV as t, reservedEnvKeysMessage as u };
@@ -1,6 +1,6 @@
1
1
  import { s as relative } from "./dist-DMYe8CZJ.mjs";
2
2
  import { i as voidWarn } from "./log-D9hwSySP.mjs";
3
- import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
3
+ import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
4
4
  import { existsSync } from "node:fs";
5
5
  // src/codegen/env-types.ts
6
6
  /** Roots already warned about duplicate env.ts files — dedupes noisy repeat calls. */
@@ -1 +1 @@
1
- export { r as SelfHostSchemaError, a as computeInvalidEmittedKeys, c as deriveSelfHostSchemaFacts, p as readEmittedWorkerVars } from "./env-validation-D-v5_CWL.mjs";
1
+ export { r as SelfHostSchemaError, a as computeInvalidEmittedKeys, c as deriveSelfHostSchemaFacts, p as readEmittedWorkerVars } from "./env-validation-SXsjd6-Z.mjs";
@@ -1,10 +1,10 @@
1
1
  import { a as join, c as resolve, n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { t as findEnvFile } from "./env-types-D2hBodXP.mjs";
3
- import { t as loadUserEnvFile } from "./load-user-env-B8qC0Q2Y.mjs";
2
+ import { t as findEnvFile } from "./env-types-B33fEHRH.mjs";
3
+ import { t as loadUserEnvFile } from "./load-user-env-uMmQJ-Th.mjs";
4
4
  import { i as voidWarn } from "./log-D9hwSySP.mjs";
5
5
  import { n as scanWranglerDotenvKeys } from "./dotenv-BG6RQavH.mjs";
6
- import { a as findReservedEnvKeys, c as loadLocalEnv, i as findLegacyEnvFiles, l as reservedEnvKeysMessage, o as isClientEnvKey, r as LOCAL_ENV_FILE, s as legacyEnvExampleHint } from "./env-EjHqc7m9.mjs";
7
- import { l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation } from "./cloudflare-process-60r4Z2Zf.mjs";
6
+ import { a as findLegacyEnvFiles, c as legacyEnvExampleHint, i as LOCAL_ENV_FILE, l as loadLocalEnv, o as findReservedEnvKeys, s as isClientEnvKey, u as reservedEnvKeysMessage } from "./env-CU2tMDdO.mjs";
7
+ import { d as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation } from "./cloudflare-process-DFNpqV_m.mjs";
8
8
  import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
9
9
  import { existsSync, readFileSync } from "node:fs";
10
10
  import { spawn } from "node:child_process";
@@ -1,5 +1,5 @@
1
1
  import { n as createFetch } from "./fetch-error-EXhBRoxI.mjs";
2
- import { t as interpolateRouteParams } from "./route-url-B41eQ8QI.mjs";
2
+ import { t as interpolateRouteParams } from "./route-url-CRC8yR_2.mjs";
3
3
  // src/runtime/client/fetch.ts
4
4
  const browserFetch = createRouteFetch((...args) => globalThis.fetch(...args));
5
5
  async function fetch(path, options) {
@@ -1,6 +1,6 @@
1
1
  import { r as ofetch, t as FetchError } from "./fetch-error-EXhBRoxI.mjs";
2
- import { n as asUsageLimit, r as limitFromResponse } from "./limits-BCoQLpn3.mjs";
3
- import { t as interpolateRouteParams } from "./route-url-B41eQ8QI.mjs";
2
+ import { n as asUsageLimit, r as limitFromResponse } from "./limits-3I3VdX2E.mjs";
3
+ import { t as interpolateRouteParams } from "./route-url-CRC8yR_2.mjs";
4
4
  // src/runtime/client/fetch-stream.ts
5
5
  /**
6
6
  * Consume an SSE endpoint as an async generator of text chunks.
@@ -1,13 +1,14 @@
1
- import { K as select, L as log, O as cancel, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
1
  import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
3
- import { l as getDatabaseDialect, p as readConfig } from "./config-Dv5jri1-.mjs";
4
- import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-BSoW3QCB.mjs";
5
- import { n as snapshotDrizzleOutputs } from "./generate-Dq2Bgw75.mjs";
6
- import { n as readJournal, t as collectMigrations } from "./collect-rNLybAnF.mjs";
7
- import { t as assertJournalCoherence } from "./validate-CtBWCzez.mjs";
8
- import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
2
+ import { h as readConfig, u as getDatabaseDialect } from "./config-KZAiI3gG.mjs";
3
+ import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-C_UjzkVS.mjs";
4
+ import { n as snapshotDrizzleOutputs } from "./generate-Ck-L3e0e.mjs";
5
+ import { n as collectMigrations, r as readJournal } from "./collect-KC4cizWM.mjs";
6
+ import { t as assertJournalCoherence } from "./validate-B1PsQ_mt.mjs";
7
+ import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
8
+ import { L as log, O as cancel, tt as isCancel } from "./dist-BngS28id.mjs";
9
9
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
10
- import { y as printSuccess } from "./output-BZLnu0z8.mjs";
10
+ import { a as select } from "./interactive-prompts-EK0dilFu.mjs";
11
+ import { y as printSuccess } from "./output-DhJgS6Ve.mjs";
11
12
  import { n as drizzleKitBin, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
12
13
  import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
13
14
  import { spawnSync } from "node:child_process";
@@ -332,7 +333,7 @@ async function runModel(root, name, columns) {
332
333
  const existing = readFileSync(barrelPath, "utf8");
333
334
  if (!existing.includes(exportLine)) writeFileSync(barrelPath, existing.trimEnd() + "\n" + exportLine + "\n");
334
335
  } else writeFileSync(barrelPath, exportLine + "\n");
335
- const { prepareProject } = await import("./prepare-DcwigRUS.mjs");
336
+ const { prepareProject } = await import("./prepare-CLl_TA_r.mjs");
336
337
  await prepareProject(root);
337
338
  log.step(`Created ${relative(root, modelPath)}`);
338
339
  log.step(`Updated ${relative(root, barrelPath)}`);
@@ -0,0 +1 @@
1
+ export { r as runGenCommand } from "./gen-BxuIN1bz.mjs";
@@ -1,5 +1,5 @@
1
1
  import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { t as collectMigrations } from "./collect-rNLybAnF.mjs";
2
+ import { n as collectMigrations } from "./collect-KC4cizWM.mjs";
3
3
  import { n as openMigrationValidationDatabase } from "./sqlite-validation-CLJXXN93.mjs";
4
4
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  // src/drizzle/generate.ts
@@ -1 +1 @@
1
- export { t as generateValidatedSqliteMigrations } from "./generate-Dq2Bgw75.mjs";
1
+ export { t as generateValidatedSqliteMigrations } from "./generate-Ck-L3e0e.mjs";
@@ -1,10 +1,11 @@
1
- import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback, u as openBrowser } from "./auth-CqwJwItO.mjs";
3
- import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
1
+ import { c as getToken, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback, u as openBrowser } from "./auth-CeBmolb-.mjs";
2
+ import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-BEHI4UWn.mjs";
3
+ import { L as log, O as cancel, tt as isCancel } from "./dist-BngS28id.mjs";
4
4
  import { t as collectGitDeployMetadata } from "./git-metadata-BEokJ6US.mjs";
5
- import { f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
6
- import { r as readProjectConfig } from "./project-dh9431bN.mjs";
7
- import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-8WZ3iVmr.mjs";
5
+ import { a as select, n as confirm, o as text } from "./interactive-prompts-EK0dilFu.mjs";
6
+ import { f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-DhJgS6Ve.mjs";
7
+ import { r as readProjectConfig } from "./project-DC-BqHef.mjs";
8
+ import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-s_FGWyr-.mjs";
8
9
  import { randomBytes } from "node:crypto";
9
10
  // src/cli/github-cmd.ts
10
11
  /**
@@ -1,7 +1,11 @@
1
1
  import { t as base64ToBytes } from "./base64-DwTR12ej.mjs";
2
- import { a as executeComposedHandler, s as setHandlerComposition } from "./validation-error-CtcAvyI7.mjs";
2
+ import { a as executeComposedHandler, s as setHandlerComposition } from "./validation-error-EKI0wMWX.mjs";
3
3
  import { t as convertReturnValue } from "./response-CyXsGfOy.mjs";
4
- import { t as runValidation } from "./validator-Dfh9kCDm.mjs";
4
+ import { t as runValidation } from "./validator-JJcf9E48.mjs";
5
+ // src/runtime/routing/internal-path.ts
6
+ function isVoidInternalPath(pathname) {
7
+ return pathname === "/__void" || pathname.startsWith("/__void/");
8
+ }
5
9
  // src/runtime/handler/index.ts
6
10
  /**
7
11
  * Thrown when `c.rewrite()` is called with a destination whose final path
@@ -27,12 +31,13 @@ function defineHandler(...args) {
27
31
  (function(_defineHandler) {
28
32
  function withValidator(validators) {
29
33
  return (handler) => {
30
- const leaf = async (c) => {
31
- const result = await runValidation(validators, c);
34
+ const leaf = async (c, validation) => {
35
+ const result = await runValidation(validators, c, validation?.queryUrl);
32
36
  if (!result.ok) return result.response;
37
+ if (validators.query && validation?.onQuery) validation.onQuery(validators.query, result.input.query);
33
38
  return handler(c, result.input);
34
39
  };
35
- return setHandlerComposition(async (c) => convertReturnValue(await leaf(c)), [], leaf);
40
+ return setHandlerComposition(async (c) => convertReturnValue(await leaf(c)), [], leaf, { withValidation: true });
36
41
  };
37
42
  }
38
43
  _defineHandler.withValidator = withValidator;
@@ -69,9 +74,6 @@ function timingSafeStringEqual(actual, expected) {
69
74
  for (let i = 0; i < expectedBytes.length; i++) difference |= (actualBytes[i] ?? 0) ^ expectedBytes[i];
70
75
  return difference === 0;
71
76
  }
72
- function isVoidInternalPath(pathname) {
73
- return pathname === "/__void" || pathname.startsWith("/__void/");
74
- }
75
77
  function basicAuthChallenge(realm, message) {
76
78
  const escapedRealm = realm.replaceAll(/["\\]/g, String.raw`\$&`);
77
79
  return new Response(message, {
@@ -138,4 +140,4 @@ function defineHead(handler) {
138
140
  function defineQueue(handler) {
139
141
  return handler;
140
142
  }
141
- export { defineMiddleware as a, defineScheduled as c, defineHead as i, basicAuth as n, defineQueue as o, defineHandler as r, defineRender as s, VoidAssetRewriteError as t };
143
+ export { defineMiddleware as a, defineScheduled as c, defineHead as i, isVoidInternalPath as l, basicAuth as n, defineQueue as o, defineHandler as r, defineRender as s, VoidAssetRewriteError as t };
@@ -1,5 +1,5 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { a as convertRewritesConfig, d as isProtocolRelative, f as parseHostPrefixedSource, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-Dv5jri1-.mjs";
2
+ import { a as convertRewritesConfig, f as isProtocolRelative, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, p as parseHostPrefixedSource, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-KZAiI3gG.mjs";
3
3
  import { i as voidWarn } from "./log-D9hwSySP.mjs";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
  // src/asset-routing.ts
@@ -1,7 +1,7 @@
1
- import { H as outro } from "./dist-Cr_xGE_K.mjs";
1
+ import { H as outro } from "./dist-BngS28id.mjs";
2
2
  import { n as getOwnVersion } from "./agents-64FnLwxP.mjs";
3
- import { n as operatorGroups, t as operatorCommands } from "./operator-args-nvetCWuz.mjs";
4
- import { f as formatUrl, g as note, h as import_picocolors, m as helpLine, t as categoryTitle, x as sectionTitle } from "./output-BZLnu0z8.mjs";
3
+ import { n as operatorGroups, t as operatorCommands } from "./operator-args-DWvqq3Ws.mjs";
4
+ import { f as formatUrl, g as note, h as import_picocolors, m as helpLine, t as categoryTitle, x as sectionTitle } from "./output-DhJgS6Ve.mjs";
5
5
  // src/cli/ascii.ts
6
6
  const asciiArts = [
7
7
  `
@@ -116,6 +116,10 @@ const HELP_TREE = {
116
116
  command: "--tsconfig",
117
117
  description: "Update tsconfig.json and set up coding agents"
118
118
  },
119
+ {
120
+ command: "--no-install",
121
+ description: "Skip installing dependencies after setup"
122
+ },
119
123
  {
120
124
  command: "--git",
121
125
  description: "Initialize a Git repository without prompting"
@@ -206,7 +210,15 @@ const HELP_TREE = {
206
210
  },
207
211
  {
208
212
  command: "--atomic",
209
- description: "Publish a Durable Object Worker without pre-traffic staging (Cloudflare only)"
213
+ description: "Publish a Worker with Durable Objects or Workflows before checking readiness (Cloudflare only)"
214
+ },
215
+ {
216
+ command: "--preview <name>",
217
+ description: "Deploy a static site or SPA to a Cloudflare Preview with its own URL; production is unchanged (needs --platform cloudflare)"
218
+ },
219
+ {
220
+ command: "--json",
221
+ description: "With --preview, print one JSON object on stdout; everything else goes to stderr"
210
222
  },
211
223
  {
212
224
  command: "--debug",
@@ -229,6 +241,10 @@ const HELP_TREE = {
229
241
  {
230
242
  command: "void deploy --platform cloudflare",
231
243
  description: "Deploy to your own Cloudflare account"
244
+ },
245
+ {
246
+ command: "void deploy --platform cloudflare --preview pr-64",
247
+ description: "Deploy a pull request preview; production is unchanged"
232
248
  }
233
249
  ]
234
250
  },
@@ -808,6 +824,10 @@ const HELP_TREE = {
808
824
  command: "rollback [deployId]",
809
825
  description: "Roll back to a previous deployment"
810
826
  },
827
+ {
828
+ command: "preview delete <name>",
829
+ description: "Delete a Cloudflare Preview made with void deploy --preview"
830
+ },
811
831
  {
812
832
  command: "cancel [deployId]",
813
833
  description: "Cancel an active deployment"
@@ -1062,6 +1082,18 @@ const HELP_TREE = {
1062
1082
  description: "Roll back the Cloudflare Worker after a one-off Cloudflare deploy"
1063
1083
  }]
1064
1084
  },
1085
+ preview: {
1086
+ summary: "Delete a Cloudflare Preview made with void deploy --preview, and all its deployments. Production is unchanged.",
1087
+ usage: ["void project preview delete <name> [--platform cloudflare]"],
1088
+ options: [{
1089
+ command: "--platform cloudflare",
1090
+ description: "Delete it after a one-off Cloudflare deploy"
1091
+ }],
1092
+ examples: [{
1093
+ command: "void project preview delete pr-64 --platform cloudflare",
1094
+ description: "Remove a pull request preview"
1095
+ }]
1096
+ },
1065
1097
  cancel: basicSubcommand("Cancel an active deployment.", "void project cancel [deployId]"),
1066
1098
  delete: {
1067
1099
  summary: "Delete a project and all its resources.",
@@ -0,0 +1 @@
1
+ export { r as printHelpPage } from "./help-Bgiu5PMX.mjs";
@@ -0,0 +1,3 @@
1
+ import { html, raw } from "hono/html";
2
+ import { HtmlEscapedString } from "hono/utils/html";
3
+ export { html as n, raw as r, HtmlEscapedString as t };
@@ -0,0 +1 @@
1
+ export { raw as n, html as t } from "hono/html";
@@ -1,88 +1,11 @@
1
- import { l as VoidPlatformSandbox } from "./index-BYcWajVp.mjs";
2
1
  import { t as HeadConfig } from "./head-fUp8n_QJ.mjs";
3
2
  import { i as AuthUser, n as AuthSession } from "./index-CV9kXHKe.mjs";
4
- import { u as TypedRoutes } from "./route-url-Bd6IX-JZ.mjs";
5
- import { t as DevCssAsset } from "./types-FDH6NuY1.mjs";
3
+ import { n as CloudBindings } from "./bindings-C7zOgxT3.mjs";
4
+ import { d as TypedRoutes } from "./route-url-zDfC-7DD.mjs";
6
5
  import { t as StandardSchemaV1 } from "./standard-schema-CuDawHOC.mjs";
7
- import { Context, Env, ExecutionContext as ExecutionContext$1, MiddlewareHandler, Next, TypedResponse } from "hono";
6
+ import { Context, Env, MiddlewareHandler, Next, TypedResponse } from "hono";
8
7
  import { RewriteDestination, RouteDestination, RouteUrl, RouteUrlInput } from "void/routes";
9
8
  import { RedirectStatusCode } from "hono/utils/http-status";
10
- type ClientManifest = Record<string, {
11
- file?: string;
12
- imports?: Array<string>;
13
- css?: Array<string>;
14
- /** Build-proven fingerprinted outputs; absent in older/third-party manifests. */
15
- immutableFiles?: Array<string>;
16
- }>;
17
- type ClientAssetTags = {
18
- css: string;
19
- preloads: string;
20
- body: string;
21
- devCss?: Array<DevCssAsset>;
22
- };
23
- type ManifestLoader = (request: Request, env: RuntimeEnvironment) => Promise<ClientManifest | null>;
24
- declare function createManifestLoader(): ManifestLoader;
25
- type ClientAssetOptions = {
26
- entryId: string;
27
- entryUrl: string;
28
- extraEntryId?: string;
29
- extraEntryUrl?: string;
30
- pageCssKeys?: Record<string, Array<string>>;
31
- devRootPhases?: Record<string, Array<Array<string>>>;
32
- kind: "ssr" | "pages" | "islands";
33
- dev?: boolean;
34
- reactRefresh?: boolean;
35
- devCss?: (request: Request, env: RuntimeEnvironment, options: {
36
- kind: "pages" | "islands";
37
- componentId: string;
38
- rootPhases: Array<Array<string>>;
39
- }) => Promise<Array<DevCssAsset>>;
40
- };
41
- /** Frameworks supply only client entry IDs and active layout/page roots. */
42
- declare function createClientAssetTags(options: ClientAssetOptions, loadManifest?: ManifestLoader): (request: Request, env: RuntimeEnvironment, componentId?: string) => Promise<ClientAssetTags>;
43
- type AssetBinding = {
44
- fetch: (request: Request) => Promise<Response>;
45
- };
46
- type RuntimeEnvironment = Record<string, unknown> & {
47
- ASSETS?: AssetBinding;
48
- };
49
- type AssetFallbackOptions = {
50
- assetsDir?: string;
51
- serveSpaFallback?: boolean;
52
- notFound?: "none" | "404-page" | "single-page-application";
53
- };
54
- declare function createAssetFallback(options?: AssetFallbackOptions): (request: Request, env: RuntimeEnvironment, response: Response) => Promise<Response>;
55
- /** Hide platform capabilities without copying bindings or changing application bindings. */
56
- declare function filterInternalBindings<E extends Record<string, unknown>>(env: E, prefixes: Array<string>, exactNames?: Array<string>): E;
57
- type WorkerFetchOptions = {
58
- app: {
59
- fetch: (request: Request, env: RuntimeEnvironment, context: ExecutionContext$1) => Response | Promise<Response>;
60
- };
61
- assets: ReturnType<typeof createAssetFallback>;
62
- withRawEnv: (env: RuntimeEnvironment, fn: () => Promise<Response>) => Promise<Response>;
63
- withRuntimeEnv: (env: RuntimeEnvironment, fn: () => Promise<Response>) => Promise<Response>;
64
- filterBindings: (env: RuntimeEnvironment) => RuntimeEnvironment;
65
- validateEnv?: (env: RuntimeEnvironment) => Promise<void>;
66
- /** Native Cloudflare production builds redirect public HTTP requests to HTTPS. */
67
- alwaysUseHttps?: boolean;
68
- /** Authored/generated version metadata binding used to prove the served native version. */
69
- versionMetadataBinding?: string;
70
- remoteEnv?: (env: RuntimeEnvironment) => RuntimeEnvironment;
71
- internalRoute: (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext$1) => Promise<Response | null>;
72
- collectPrerenderPaths: (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext$1) => Promise<Array<string>>;
73
- staticNotFound?: (request: Request, env: RuntimeEnvironment) => Promise<Response>;
74
- emailReceipt?: (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext$1) => Promise<Response>;
75
- isr?: {
76
- deploymentId: string;
77
- handle: (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext$1, render: (request: Request) => Promise<Response>) => Promise<Response | null>;
78
- };
79
- };
80
- /**
81
- * Answer the prerender runner. A getPrerenderPaths() error is returned in the
82
- * body so the build can show which page and entry to fix, not only HTTP 500.
83
- */
84
- declare function prerenderPathsResponse(collect: () => Promise<Array<string>>): Promise<Response>;
85
- declare function createWorkerFetch(options: WorkerFetchOptions): (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext$1) => Promise<Response>;
86
9
  type ValidatorSlots = {
87
10
  body?: StandardSchemaV1;
88
11
  query?: StandardSchemaV1;
@@ -97,7 +20,7 @@ type ValidationFailure = {
97
20
  response: Response;
98
21
  };
99
22
  type HandlerInput<V extends ValidatorSlots> = { [K in keyof V as V[K] extends StandardSchemaV1 ? K : never]: V[K] extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<V[K]> : never; };
100
- declare function runValidation<V extends ValidatorSlots>(validators: V, c: CloudContext): Promise<ValidationSuccess<V> | ValidationFailure>;
23
+ declare function runValidation<V extends ValidatorSlots>(validators: V, c: CloudContext, queryUrl?: string): Promise<ValidationSuccess<V> | ValidationFailure>;
101
24
  declare class ValidationError extends Error {
102
25
  readonly errors: Record<string, string>;
103
26
  constructor(errors: Record<string, string>);
@@ -149,29 +72,6 @@ interface CloudContextVariables {
149
72
  headDefaults?: HeadConfig;
150
73
  [key: string]: unknown;
151
74
  }
152
- declare global {
153
- interface VoidGeneratedEnvBindings {
154
- readonly [key: string]: unknown;
155
- }
156
- }
157
- /**
158
- * Hono `Bindings` shape for Void workers.
159
- *
160
- * Augmented by the generated `.void/env.d.ts` so user-declared env keys
161
- * become typed on `c.env`. The index signature keeps untyped access
162
- * working for bindings that aren't in the schema (queues, custom
163
- * bindings, etc.).
164
- */
165
- interface CloudBindings extends VoidGeneratedEnvBindings {
166
- DB: D1Database;
167
- KV: KVNamespace;
168
- STORAGE: R2Bucket;
169
- AI: Ai;
170
- SANDBOX: DurableObjectNamespace<VoidPlatformSandbox>;
171
- /** Node, Bun and Deno targets serve static files through a provider that takes only a `Request`. */
172
- ASSETS: AssetBinding;
173
- [key: string]: unknown;
174
- }
175
75
  type CloudEnv = Env & {
176
76
  Bindings: CloudBindings;
177
77
  Variables: CloudContextVariables;
@@ -372,4 +272,4 @@ declare function defineHead<P = Record<string, unknown>>(handler: (c: CloudConte
372
272
  * At runtime it simply returns the function passed to it.
373
273
  */
374
274
  declare function defineQueue<T = unknown>(handler: QueueFn<T>): TypedQueueHandler<T>;
375
- export { filterInternalBindings as A, defer as C, runValidation as D, ValidatorSlots as E, ClientAssetTags as M, createClientAssetTags as N, createAssetFallback as O, createManifestLoader as P, InferProps as S, HandlerInput as T, defineQueue as _, CloudEnv as a, Deferred as b, QueueRetryOptions as c, TypedQueueHandler as d, VoidAssetRewriteError as f, defineMiddleware as g, defineHead as h, CloudContextVariables as i, prerenderPathsResponse as j, createWorkerFetch as k, RenderAssetTags as l, defineHandler as m, CloudBindings as n, QueueBatch as o, basicAuth as p, CloudContext as r, QueueMessage as s, BasicAuthOptions as t, TypedHandler as u, defineRender as v, ValidationError as w, DeferredState as x, defineScheduled as y };
275
+ export { ValidationError as C, runValidation as E, defer as S, ValidatorSlots as T, defineRender as _, QueueBatch as a, DeferredState as b, RenderAssetTags as c, VoidAssetRewriteError as d, basicAuth as f, defineQueue as g, defineMiddleware as h, CloudEnv as i, TypedHandler as l, defineHead as m, CloudContext as n, QueueMessage as o, defineHandler as p, CloudContextVariables as r, QueueRetryOptions as s, BasicAuthOptions as t, TypedQueueHandler as u, defineScheduled as v, HandlerInput as w, InferProps as x, Deferred as y };
@@ -0,0 +1,91 @@
1
+ import { t as StandardSchemaV1 } from "./standard-schema-CuDawHOC.mjs";
2
+ import { n as CloudBindings } from "./bindings-C7zOgxT3.mjs";
3
+ import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workers";
4
+ type NativeWorkflowClass = new (...args: Array<never>) => Rpc.WorkflowEntrypointBranded & {
5
+ run(...args: Array<never>): void;
6
+ };
7
+ /** Params type of a native class, read from its `run(event)` annotation. */
8
+ type NativeWorkflowParams<TClass extends NativeWorkflowClass> = Parameters<InstanceType<TClass>["run"]>[0] extends {
9
+ payload: infer TParams;
10
+ } ? TParams : unknown;
11
+ /** Context passed to a `defineWorkflow()` run function next to the event and step. */
12
+ type WorkflowContext<TEnv = CloudBindings> = {
13
+ readonly env: TEnv;
14
+ readonly ctx: ExecutionContext;
15
+ };
16
+ /** Options for starting one Workflow instance. */
17
+ type WorkflowCreateOptions<TParams> = Omit<WorkflowInstanceCreateOptions, "params"> & (undefined extends TParams ? {
18
+ params?: TParams;
19
+ } : {
20
+ params: TParams;
21
+ });
22
+ type WorkflowCreateArguments<TParams> = undefined extends TParams ? [options?: WorkflowCreateOptions<TParams>] : [options: WorkflowCreateOptions<TParams>];
23
+ /** Start instances with shared params or give each instance its own options. */
24
+ type WorkflowBatchOptions<TParams> = WorkflowBatchCreateOptions<TParams> & (undefined extends TParams ? unknown : {
25
+ count: number;
26
+ params: TParams;
27
+ } | {
28
+ instances: Array<WorkflowCreateOptions<TParams>>;
29
+ });
30
+ /** Native binding for a local Workflow. Omitted params are delivered as an empty object. */
31
+ type WorkflowBinding<TParams> = Record<string, never> extends TParams ? Workflow<NativeWorkflowInput<TParams>> : Omit<Workflow<TParams>, "create" | "createBatch"> & {
32
+ create(options: WorkflowCreateOptions<Exclude<TParams, void>>): Promise<WorkflowInstance>;
33
+ createBatch(options: WorkflowBatchOptions<Exclude<TParams, void>>): Promise<WorkflowBatchCreateResult>;
34
+ /** @deprecated Use the object form to receive per-instance errors. */
35
+ createBatch(instances: Array<WorkflowCreateOptions<Exclude<TParams, void>>>): Promise<Array<WorkflowInstance>>;
36
+ };
37
+ type WorkflowPayload<TParams> = Exclude<TParams, void> | (undefined extends TParams ? Record<string, undefined> : never);
38
+ type AcceptsPayload<TBinding extends Workflow, TPayload> = TBinding extends Workflow ? [TPayload] extends [NonNullable<Parameters<TBinding["create"]>[0]>["params"]] ? true : false : never;
39
+ type CompatibleBinding<TBinding extends Workflow, TPayload> = TBinding & (false extends AcceptsPayload<TBinding, TPayload> ? never : unknown);
40
+ type WorkflowApi<TClass, TParams, TBindingParams = TParams> = {
41
+ class: TClass;
42
+ /** @internal Called by Void's generated Worker entry. */
43
+ __bind(bindingName: string, resourceName?: string): void;
44
+ /** Start an instance with the input that Cloudflare delivers to the entrypoint. */
45
+ create(...args: WorkflowCreateArguments<TParams>): Promise<WorkflowInstance>;
46
+ create<TBinding extends Workflow>(binding: CompatibleBinding<TBinding, TBindingParams>, ...args: WorkflowCreateArguments<TParams>): Promise<WorkflowInstance>;
47
+ /** Start up to 100 instances and receive per-instance creation errors. */
48
+ createBatch(options: WorkflowBatchOptions<TParams>): Promise<WorkflowBatchCreateResult>;
49
+ createBatch<TBinding extends Workflow>(binding: CompatibleBinding<TBinding, TBindingParams>, options: WorkflowBatchOptions<TParams>): Promise<WorkflowBatchCreateResult>;
50
+ /** Get a handle to an existing instance. */
51
+ get(id: string): Promise<WorkflowInstance>;
52
+ get(binding: Workflow<TBindingParams>, id: string): Promise<WorkflowInstance>;
53
+ };
54
+ type WorkflowCallback<TParams, TEnv, TResult> = (event: Readonly<WorkflowEvent<TParams>>, step: WorkflowStep, context: WorkflowContext<TEnv>) => TResult;
55
+ type WorkflowRun<TParams, TEnv = CloudBindings> = WorkflowCallback<TParams, TEnv, Promise<unknown>>;
56
+ type WorkflowClass<TParams, TEnv = CloudBindings> = new (ctx: ExecutionContext, env: TEnv) => WorkflowEntrypoint<TEnv, TParams>;
57
+ /** An instance fails with this error when its input does not match the params schema. */
58
+ declare class WorkflowParamsError extends Error {
59
+ readonly issues: ReadonlyArray<{
60
+ message: string;
61
+ path?: string;
62
+ }>;
63
+ constructor(issues: ReadonlyArray<StandardSchemaV1.Issue>);
64
+ }
65
+ type WorkflowDefinitionBase = {
66
+ name?: string;
67
+ };
68
+ type DefinitionRun<TParams, TEnv> = WorkflowCallback<TParams, TEnv, any>;
69
+ type DefinedWorkflow<Wire, Params, Env> = WorkflowApi<WorkflowClass<Wire, Env>, Params, Wire>;
70
+ /**
71
+ * Define a Workflow from a run function. Void generates the Cloudflare
72
+ * `WorkflowEntrypoint` class. Default-export the result from a file in `workflows/`.
73
+ */
74
+ declare function defineWorkflow<TSchema extends StandardSchemaV1, TEnv = CloudBindings>(definition: WorkflowDefinitionBase & {
75
+ /** Parse the incoming payload before invoking the application callback. */
76
+ params: TSchema;
77
+ run: DefinitionRun<StandardSchemaV1.InferOutput<TSchema>, TEnv>;
78
+ }): DefinedWorkflow<Exclude<StandardSchemaV1.InferInput<TSchema>, void>, NativeWorkflowInput<StandardSchemaV1.InferInput<TSchema>>, TEnv>;
79
+ declare function defineWorkflow<TParams = unknown, TEnv = CloudBindings>(definition: WorkflowDefinitionBase & {
80
+ params?: undefined;
81
+ run: DefinitionRun<WorkflowPayload<TParams>, TEnv>;
82
+ }): DefinedWorkflow<WorkflowPayload<TParams>, TParams, TEnv>;
83
+ type NativeWorkflowInput<TParams> = Record<string, never> extends TParams ? TParams | undefined : Exclude<TParams, void>;
84
+ /**
85
+ * Register a native Cloudflare `WorkflowEntrypoint` class without changing it.
86
+ * Default-export the result from a file in `workflows/`.
87
+ */
88
+ declare function defineWorkflowEntrypoint<TClass extends NativeWorkflowClass>(definition: WorkflowDefinitionBase & {
89
+ class: TClass;
90
+ }): WorkflowApi<TClass, NativeWorkflowInput<NativeWorkflowParams<TClass>>, Exclude<NativeWorkflowParams<TClass>, void>>;
91
+ export { WorkflowClass as a, WorkflowEvent as c, WorkflowStep as d, defineWorkflow as f, WorkflowBinding as i, WorkflowParamsError as l, WorkflowApi as n, WorkflowContext as o, defineWorkflowEntrypoint as p, WorkflowBatchOptions as r, WorkflowCreateOptions as s, NativeWorkflowParams as t, WorkflowRun as u };
@@ -1,6 +1,6 @@
1
1
  import { t as StandardSchemaV1 } from "./standard-schema-CuDawHOC.mjs";
2
2
  import { i as AuthUser } from "./index-CV9kXHKe.mjs";
3
- import { a as CloudEnv } from "./index-Dn2mkPr2.mjs";
3
+ import { i as CloudEnv } from "./index-CqF8_p9C.mjs";
4
4
  import { WebSocketRouteMap } from "void/routes";
5
5
  type MaybePromise<T> = T | Promise<T>;
6
6
  type ParamsRecord = Record<string, string>;