void 1.12.2 → 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-CdJQba_Q.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-D9MWA_dj.mjs → auth-link-I4omV0pL.mjs} +6 -6
  10. package/dist/{auth-router-FskgTU3B.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-DaLrQfPS.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-WG4TcR_d.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-BSuWV1PI.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-DtJeunLF.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-DoDqRH6i.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-B2VZ2Hut.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-jUBgfvzk.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-wML5HNfS.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-Bv3oQ2gE.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
  142. package/dist/{platform-auth-protection-OqzfhXwx.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
  143. package/dist/{platform-auth-recovery-rmIYjXST.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
  144. package/dist/{platform-cmd-D_4z2Ijv.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
  145. package/dist/{platform-cmd-B3rO4RhU.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-CUq9odbd.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
  148. package/dist/{platform-lifecycle-DOSYo0UI.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
  149. package/dist/{platform-lifecycle-DuoVruij.mjs → platform-lifecycle-CKwOg8wz.mjs} +164 -72
  150. package/dist/{platform-management-D_gt3qLb.mjs → platform-management-CaSdFthX.mjs} +1 -1
  151. package/dist/{platform-management-MmO9IubR.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-P_FVslfd.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 +10 -10
  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-GT4CW5fs.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-BbSQTZ6d.mjs +0 -1
  359. package/dist/migrate-C9aoWLvY.mjs +0 -1
  360. package/dist/operator-cmd-jnjzuJKX.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,4 +1,4 @@
1
- import { c as PageScanResult } from "../types-FDH6NuY1.mjs";
1
+ import { c as PageScanResult } from "../types-RYVujNS6.mjs";
2
2
  import { Plugin, ResolvedConfig, UserConfig, ViteDevServer } from "vite";
3
3
  //#region src/SourceMap.d.ts
4
4
  interface SourceMapOptions {
@@ -388,7 +388,7 @@ type IslandBuildContext = {
388
388
  * blocks) and the client build has not. Records the stylesheets of island pages
389
389
  * and their layouts for the islands client entry, which builds after it.
390
390
  */
391
- export declare function recordIslandStyles(context: IslandBuildContext, pageScan: PageScanResult | null, pagesDir: string): void;
391
+ export declare function recordIslandStyles(context: IslandBuildContext, pageScan: PageScanResult | null, pagesDir: string, setupModule?: string): void;
392
392
  /** The stylesheets that the server build recorded, or null without a server build. */
393
393
  export declare function recordedIslandStyles(pagesDir: string): ReadonlyArray<string> | null;
394
394
  /**
@@ -1,5 +1,5 @@
1
1
  import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
2
- import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-Ct_SEzH4.mjs";
2
+ import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-BxhB4BA-.mjs";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { isCSSRequest, normalizePath } from "vite";
5
5
  // src/pages/islands-plugin.ts
@@ -191,9 +191,11 @@ const islandStylesByPagesDir = /* @__PURE__ */ new Map();
191
191
  * blocks) and the client build has not. Records the stylesheets of island pages
192
192
  * and their layouts for the islands client entry, which builds after it.
193
193
  */
194
- function recordIslandStyles(context, pageScan, pagesDir) {
194
+ function recordIslandStyles(context, pageScan, pagesDir, setupModule) {
195
195
  if (!pageScan || context.environment?.config.consumer !== "server") return;
196
- const styles = collectIslandStyles((id) => context.getModuleInfo(id), islandStyleRoots(pageScan, pagesDir));
196
+ const roots = islandStyleRoots(pageScan, pagesDir);
197
+ if (setupModule) roots.unshift(setupModule);
198
+ const styles = collectIslandStyles((id) => context.getModuleInfo(id), roots);
197
199
  if (styles) islandStylesByPagesDir.set(normalizePath(pagesDir), styles);
198
200
  }
199
201
  /** The stylesheets that the server build recorded, or null without a server build. */
@@ -1,3 +1,3 @@
1
- import { w as ValidationError } from "../index-Dn2mkPr2.mjs";
2
- import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as recoverPageHttpException, r as flattenValidationErrors, s as safeJsonStringify, t as PageObject } from "../protocol-ERy-n3jf.mjs";
3
- export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
1
+ import { C as ValidationError } from "../index-CqF8_p9C.mjs";
2
+ import { a as handlePageMutation, c as safeJsonStringify, i as handlePageGet, n as PageRenderResult, o as isPageResponseError, r as flattenValidationErrors, s as recoverPageHttpException, t as PageObject } from "../protocol-wG7JP5Mm.mjs";
3
+ export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, isPageResponseError, recoverPageHttpException, safeJsonStringify };
@@ -1,3 +1,3 @@
1
- import { t as ValidationError } from "../validation-error-CtcAvyI7.mjs";
2
- import { a as safeJsonStringify, i as recoverPageHttpException, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-4rEnumif.mjs";
3
- export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
1
+ import { t as ValidationError } from "../validation-error-EKI0wMWX.mjs";
2
+ import { a as recoverPageHttpException, i as isPageResponseError, n as handlePageGet, o as safeJsonStringify, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-DhMbnxzy.mjs";
3
+ export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, isPageResponseError, recoverPageHttpException, safeJsonStringify };
@@ -1,2 +1,2 @@
1
- import { a as serializePageData, i as islandFrontmatterScript, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-DN-envGQ.mjs";
2
- export { ISLAND_FRONTMATTER_ID, decodePageData, deserializePageData, islandFrontmatterScript, serializePageData };
1
+ import { a as hydrateAppState, c as serializePageData, i as deserializePageData, n as appStateScript, o as islandFrontmatterScript, r as decodePageData, s as requestAppSetup, t as ISLAND_FRONTMATTER_ID } from "../serialize-Dr9B-0yV.mjs";
2
+ export { ISLAND_FRONTMATTER_ID, appStateScript, decodePageData, deserializePageData, hydrateAppState, islandFrontmatterScript, requestAppSetup, serializePageData };
@@ -1 +1 @@
1
- export { t as ISLAND_FRONTMATTER_ID, n as decodePageData, r as deserializePageData, i as islandFrontmatterScript, a as serializePageData } from "../serialize-BmB4BfKu.mjs";
1
+ export { t as ISLAND_FRONTMATTER_ID, n as appStateScript, r as decodePageData, i as deserializePageData, a as hydrateAppState, o as islandFrontmatterScript, s as requestAppSetup, c as serializePageData } from "../serialize-nW4IeEBI.mjs";
@@ -0,0 +1,2 @@
1
+ type RouteEnvironment = "dev" | "prod";
2
+ export { RouteEnvironment as t };
@@ -0,0 +1,250 @@
1
+ import { a as join, n as dirname, r as extname, s as relative } from "./dist-DMYe8CZJ.mjs";
2
+ import { t as cloudflareWorkflowName } from "./scan-D2ISAobj.mjs";
3
+ import { s as bindingEntriesForField } from "./wrangler-AyMfdVJK.mjs";
4
+ import { existsSync, readdirSync } from "node:fs";
5
+ import { isWorkflowSettings } from "@void/deploy-core";
6
+ import { availableParallelism } from "node:os";
7
+ import { promisify } from "node:util";
8
+ import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
9
+ import { brotliCompress, constants as constants$2, gzip } from "node:zlib";
10
+ import { isLocalWorkflow, readWorkflowDeclarations, workflowExports } from "@void/deploy-cloudflare";
11
+ // src/precompress-assets.ts
12
+ const PRECOMPRESSED_ASSET_DIR = ".void-precompressed";
13
+ const brotli = promisify(brotliCompress);
14
+ const gzipAsync = promisify(gzip);
15
+ const COMPRESSIBLE_EXTENSIONS = /* @__PURE__ */ new Set([
16
+ ".css",
17
+ ".html",
18
+ ".js",
19
+ ".json",
20
+ ".mjs",
21
+ ".svg",
22
+ ".txt",
23
+ ".wasm",
24
+ ".xml"
25
+ ]);
26
+ const MIN_SIZE = 1024;
27
+ const ENCODINGS = [{
28
+ name: "br",
29
+ encode: (source) => brotli(source, { params: {
30
+ [constants$2.BROTLI_PARAM_QUALITY]: 10,
31
+ [constants$2.BROTLI_PARAM_SIZE_HINT]: source.byteLength
32
+ } })
33
+ }, {
34
+ name: "gzip",
35
+ encode: (source) => gzipAsync(source, { level: constants$2.Z_BEST_COMPRESSION })
36
+ }];
37
+ /**
38
+ * Keeps generated variants in the server output. The originals and the platform's
39
+ * deployable client assets stay untouched, including any authored .br and .gz files.
40
+ */
41
+ async function precompressAssets(dir, output) {
42
+ await rm(output, {
43
+ recursive: true,
44
+ force: true
45
+ });
46
+ let entries;
47
+ try {
48
+ entries = await readdir(dir, {
49
+ recursive: true,
50
+ withFileTypes: true
51
+ });
52
+ } catch (error) {
53
+ if (error.code === "ENOENT") return;
54
+ throw error;
55
+ }
56
+ const files = entries.filter((entry) => entry.isFile() && COMPRESSIBLE_EXTENSIONS.has(extname(entry.name))).map((entry) => join(entry.parentPath, entry.name));
57
+ let next = 0;
58
+ const work = async () => {
59
+ while (next < files.length) {
60
+ const file = files[next++];
61
+ if (file !== void 0) await precompressFile(file, output, relative(dir, file));
62
+ }
63
+ };
64
+ await Promise.all(Array.from({ length: Math.min(files.length, availableParallelism()) }, work));
65
+ }
66
+ async function precompressFile(file, output, assetPath) {
67
+ const source = await readFile(file);
68
+ if (source.byteLength < MIN_SIZE) return;
69
+ await Promise.all(ENCODINGS.map(async ({ name, encode }) => {
70
+ const encoded = await encode(source);
71
+ if (encoded.byteLength < source.byteLength) {
72
+ const target = join(output, name, "assets", assetPath);
73
+ await mkdir(dirname(target), { recursive: true });
74
+ await writeFile(target, encoded);
75
+ }
76
+ }));
77
+ }
78
+ // src/cli/build-output-dir.ts
79
+ /**
80
+ * Resolve the top-level build output directory: the first segment of a
81
+ * framework preset's `workerDir`, or `dist` for a Void app.
82
+ */
83
+ function resolveDistDir(root, fwPreset, buildCommand) {
84
+ if (fwPreset) {
85
+ const topDir = fwPreset.workerDir.split("/")[0];
86
+ const distDir = join(root, topDir);
87
+ if (!existsSync(distDir)) throw new Error(`deploy: Build output directory '${topDir}' not found. Run '${buildCommand ?? fwPreset.buildCommand}' first.`);
88
+ return distDir;
89
+ }
90
+ return join(root, "dist");
91
+ }
92
+ /**
93
+ * Resolve the worker output subdirectory within the build dir: the rest of a
94
+ * framework preset's `workerDir`, or the first known Void output that exists.
95
+ */
96
+ function resolveWorkerDirName(distDir, fwPreset, buildCommand) {
97
+ if (fwPreset) {
98
+ const subDir = fwPreset.workerDir.split("/").slice(1).join("/");
99
+ if (!existsSync(join(distDir, subDir))) throw new Error(`deploy: Worker output '${fwPreset.workerDir}' not found. Run '${buildCommand ?? fwPreset.buildCommand}' first.`);
100
+ return subDir;
101
+ }
102
+ for (const name of [
103
+ "ssr",
104
+ "rsc",
105
+ "server"
106
+ ]) if (existsSync(join(distDir, name))) return name;
107
+ throw new Error("deploy: Worker output not found. Expected dist/ssr/ or dist/rsc/.");
108
+ }
109
+ // src/shared/collect-files.ts
110
+ /**
111
+ * Every non-directory path under `dir`, depth first. Unlike
112
+ * `readdirSync(dir, { recursive: true })`, it does not descend into
113
+ * symlinked directories.
114
+ */
115
+ function collectFiles(dir) {
116
+ const files = [];
117
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
118
+ const fullPath = join(dir, entry.name);
119
+ if (entry.isDirectory()) files.push(...collectFiles(fullPath));
120
+ else files.push(fullPath);
121
+ }
122
+ return files;
123
+ }
124
+ // src/isr-config.ts
125
+ /**
126
+ * Whether a resolved `revalidate` value represents an active ISR configuration.
127
+ * `null`/`undefined`/`0`/`{}` are treated as "no ISR", a positive number or a
128
+ * non-empty path map is treated as "ISR on".
129
+ */
130
+ function hasRevalidate(r) {
131
+ if (r === null || r === void 0) return false;
132
+ if (typeof r === "number") return r > 0;
133
+ if (typeof r === "object") return Object.keys(r).length > 0;
134
+ return false;
135
+ }
136
+ /**
137
+ * Merge `routing.revalidate` with per-page `export const revalidate` rules into
138
+ * the flat fallback map baked into managed and native builds. With page rules,
139
+ * page entries come first and a number config becomes the `*` fallback. At
140
+ * runtime, page requests use the `collectPages()` table instead.
141
+ */
142
+ function collectRevalidate(config, pageScan) {
143
+ if (config.routing?.isr === false) return;
144
+ const vcRevalidate = config.routing?.revalidate;
145
+ let revalidate;
146
+ if (vcRevalidate !== null && vcRevalidate !== void 0) revalidate = vcRevalidate;
147
+ if (pageScan) {
148
+ const perPageRules = {};
149
+ for (const page of pageScan.pages) if (page.revalidate !== null && page.revalidate !== void 0) {
150
+ const key = page.pattern.replaceAll(/:[A-Za-z0-9_]+\{[^}]*\}/g, "*");
151
+ perPageRules[key] = page.revalidate;
152
+ }
153
+ if (Object.keys(perPageRules).length > 0) {
154
+ if (typeof revalidate === "number") {
155
+ if (!Object.hasOwn(perPageRules, "*")) perPageRules["*"] = revalidate;
156
+ revalidate = perPageRules;
157
+ } else if (typeof revalidate === "object") revalidate = Object.fromEntries([...Object.entries(perPageRules), ...Object.entries(revalidate).filter(([pattern]) => !Object.hasOwn(perPageRules, pattern))]);
158
+ else revalidate = perPageRules;
159
+ }
160
+ }
161
+ return revalidate;
162
+ }
163
+ /** A page export wins, then a number config; an object config (or none) gives `undefined`. */
164
+ function resolvePageBuildTtl(page, revalidateConfig) {
165
+ if (page.revalidate !== null && page.revalidate !== void 0) return page.revalidate > 0 ? page.revalidate : 0;
166
+ if (typeof revalidateConfig === "number") return revalidateConfig > 0 ? revalidateConfig : 0;
167
+ }
168
+ /**
169
+ * Build the ordered page table shipped in the deploy manifest as `pages`, in
170
+ * `pageScan.pages` order with raw patterns (catch-alls are not collapsed).
171
+ *
172
+ * Each entry's `revalidate` has three states: N > 0 turns ISR on, 0 is an
173
+ * explicit opt-out, and absent lets dispatch resolve the per-path object config
174
+ * (`manifest.pathRevalidate`) against the request path. Object configs are not
175
+ * baked because one dynamic page can span several entries, including a 0.
176
+ *
177
+ * Built from pages only, so a catch-all page TTL can also cache a non-`/api`
178
+ * `routes/` handler at dispatch (bounded by `shouldBypassIsr` and `isApiPath`).
179
+ */
180
+ function collectPages(pageScan, revalidateConfig, isrEnabled = true) {
181
+ if (!pageScan || pageScan.pages.length === 0) return;
182
+ return pageScan.pages.map((page) => {
183
+ const ttl = isrEnabled ? resolvePageBuildTtl(page, revalidateConfig) : void 0;
184
+ return ttl === void 0 ? { pattern: page.pattern } : {
185
+ pattern: page.pattern,
186
+ revalidate: ttl
187
+ };
188
+ });
189
+ }
190
+ // src/workflows/config.ts
191
+ /** Keep authored bindings and add only the missing local definitions. */
192
+ function planWorkflows(config, modules, workerName) {
193
+ const existing = bindingEntriesForField("workflows", config.workflows).map(({ entry }) => entry);
194
+ const byBinding = new Map(existing.map((entry) => [entry.binding, entry]));
195
+ if (byBinding.size !== existing.length) throw new Error("workflows: each configured Workflow needs a unique binding.");
196
+ const declarations = workflowExports(config.exports);
197
+ const bindingByName = new Map(existing.map(({ name, binding }) => [name, binding]));
198
+ const additions = [];
199
+ for (const module of modules) {
200
+ const configured = byBinding.get(module.bindingName);
201
+ if (configured) {
202
+ if (configured.class_name !== module.className || !isLocalWorkflow(configured, workerName)) throw new Error(`workflows: binding '${module.bindingName}' is already configured for another Workflow, but workflows/ requires class '${module.className}'.`);
203
+ continue;
204
+ }
205
+ const declaredName = declarations[module.className]?.name;
206
+ const name = typeof declaredName === "string" ? declaredName : cloudflareWorkflowName(module.resourceName, workerName);
207
+ if (bindingByName.has(name)) throw new Error(`workflows: Workflow name '${name}' is already configured for binding '${String(bindingByName.get(name))}'.`);
208
+ bindingByName.set(name, module.bindingName);
209
+ additions.push({
210
+ name,
211
+ binding: module.bindingName,
212
+ class_name: module.className
213
+ });
214
+ }
215
+ return {
216
+ additions,
217
+ entries: [...existing, ...additions]
218
+ };
219
+ }
220
+ /** Keep project-local class settings; the platform allocates the account-scoped names. */
221
+ function managedWorkflowDefinitions(config = {}, modules) {
222
+ if (!modules.length && !config.workflows && !config.exports) return [];
223
+ const workerName = typeof config.name === "string" ? config.name : "";
224
+ const { entries } = planWorkflows(config, modules, workerName);
225
+ const definitions = readWorkflowDeclarations({
226
+ ...config,
227
+ name: workerName,
228
+ workflows: entries
229
+ });
230
+ const byClass = new Map(modules.map((module) => [module.className, module]));
231
+ return definitions.map((entry) => {
232
+ if (!isLocalWorkflow(entry, workerName) || typeof entry.class_name !== "string") throw new Error("workflows: Void platforms require a local definition in workflows/.");
233
+ const module = byClass.get(entry.class_name);
234
+ if (!module || entry.binding !== module.bindingName) throw new Error("workflows: a managed Workflow binding must match its definition in workflows/.");
235
+ const { class_name: className, binding: bindingName, name: _name, type: _type, script_name: _scriptName, schedules, ...settings } = entry;
236
+ if (schedules !== void 0) settings.schedules = (Array.isArray(schedules) ? schedules : [schedules]).map((cron) => typeof cron === "string" ? { cron } : cron);
237
+ if (!isWorkflowSettings(settings)) throw new Error("workflows: invalid settings for " + className + ".");
238
+ return Object.keys(settings).length ? {
239
+ className,
240
+ bindingName,
241
+ settings
242
+ } : {
243
+ className,
244
+ bindingName
245
+ };
246
+ });
247
+ }
248
+ // src/workflows/platform.ts
249
+ const FRAMEWORK_WORKFLOWS_ERROR = "workflows: workflows/ is currently supported in Void apps only, not framework adapter mode.";
250
+ export { collectRevalidate as a, resolveDistDir as c, precompressAssets as d, collectPages as i, resolveWorkerDirName as l, managedWorkflowDefinitions as n, hasRevalidate as o, planWorkflows as r, collectFiles as s, FRAMEWORK_WORKFLOWS_ERROR as t, PRECOMPRESSED_ASSET_DIR as u };
@@ -0,0 +1 @@
1
+ export { t as parsePlatformArgs } from "./platform-args-BnocJDC_.mjs";
@@ -1,4 +1,4 @@
1
- import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-nvetCWuz.mjs";
1
+ import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-DWvqq3Ws.mjs";
2
2
  import { R2_LOCATION_HINTS, isR2LocationHint } from "@void/deploy-core";
3
3
  import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@void/platform";
4
4
  import { parsePlanSecurityCapInput } from "@void/platform/security-policy";
@@ -1,10 +1,10 @@
1
- import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-Cr_xGE_K.mjs";
2
- import { u as openBrowser } from "./auth-CqwJwItO.mjs";
3
- import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DMvn-y9X.mjs";
4
- import { n as OperatorClient } from "./operator-client-dFNnXfyB.mjs";
5
- import { i as humanLines } from "./operator-cmd-wML5HNfS.mjs";
6
- import { f as formatUrl, y as printSuccess } from "./output-BZLnu0z8.mjs";
7
- import { o as platformPromptAnswer } from "./platform-setup-Lph9i-rh.mjs";
1
+ import { u as openBrowser } from "./auth-CeBmolb-.mjs";
2
+ import { a as select, i as password, n as confirm, o as text, r as multiselect } from "./interactive-prompts-EK0dilFu.mjs";
3
+ import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DtRMGXYY.mjs";
4
+ import { n as OperatorClient } from "./operator-client-BG0VIMMM.mjs";
5
+ import { i as humanLines } from "./operator-cmd-D4YcMKO-.mjs";
6
+ import { f as formatUrl, y as printSuccess } from "./output-DhJgS6Ve.mjs";
7
+ import { o as platformPromptAnswer } from "./platform-setup-DwYITHfY.mjs";
8
8
  import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@void/platform";
9
9
  import { stripVTControlCharacters } from "node:util";
10
10
  import { readFile } from "node:fs/promises";
@@ -142,11 +142,11 @@ async function configurationInput(args, existing) {
142
142
  }
143
143
  async function runPlatformAuthConfig(args) {
144
144
  if (args.action === "recover") {
145
- const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-rmIYjXST.mjs");
145
+ const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-DE0nArYy.mjs");
146
146
  return runPlatformAuthRecovery(args);
147
147
  }
148
148
  if (args.action === "protection") {
149
- const { runPlatformProtectionConfig } = await import("./platform-auth-protection-OqzfhXwx.mjs");
149
+ const { runPlatformProtectionConfig } = await import("./platform-auth-protection-BHPV4MUf.mjs");
150
150
  return runPlatformProtectionConfig(args);
151
151
  }
152
152
  const origin = resolveOperatorOrigin(args.connection);
@@ -1,12 +1,13 @@
1
- import { A as confirm, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
1
  import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
3
- import { t as ensurePlatformAccessToken } from "./cf-access-DHklo7Rg.mjs";
4
- import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DMvn-y9X.mjs";
5
- import { n as OperatorClient } from "./operator-client-dFNnXfyB.mjs";
6
- import { y as printSuccess } from "./output-BZLnu0z8.mjs";
7
- import { K as platformOperatorCredentialLabel, Q as preparePlatformAccessSetup, X as checkpointPlatformAccessResources, Z as parsePlatformAccessSetupSpec, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-DuoVruij.mjs";
8
- import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-MmO9IubR.mjs";
9
- import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-DHH6fivm.mjs";
2
+ import { t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
3
+ import { n as confirm } from "./interactive-prompts-EK0dilFu.mjs";
4
+ import { tt as isCancel } from "./dist-BngS28id.mjs";
5
+ import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DtRMGXYY.mjs";
6
+ import { n as OperatorClient } from "./operator-client-BG0VIMMM.mjs";
7
+ import { y as printSuccess } from "./output-DhJgS6Ve.mjs";
8
+ import { K as platformOperatorCredentialLabel, Q as preparePlatformAccessSetup, X as checkpointPlatformAccessResources, Z as parsePlatformAccessSetupSpec, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-CKwOg8wz.mjs";
9
+ import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-fyrsq2Ra.mjs";
10
+ import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-zHH3RiIm.mjs";
10
11
  import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@void/platform";
11
12
  import { createHmac } from "node:crypto";
12
13
  import { readFile } from "node:fs/promises";
@@ -1,11 +1,12 @@
1
- import { A as confirm, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
- import { u as openBrowser } from "./auth-CqwJwItO.mjs";
3
- import { a as resolveOperatorOrigin } from "./operator-auth-DMvn-y9X.mjs";
4
- import { f as formatUrl, y as printSuccess } from "./output-BZLnu0z8.mjs";
1
+ import { u as openBrowser } from "./auth-CeBmolb-.mjs";
2
+ import { n as confirm } from "./interactive-prompts-EK0dilFu.mjs";
3
+ import { a as resolveOperatorOrigin } from "./operator-auth-DtRMGXYY.mjs";
4
+ import { tt as isCancel } from "./dist-BngS28id.mjs";
5
+ import { f as formatUrl, y as printSuccess } from "./output-DhJgS6Ve.mjs";
5
6
  import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
6
- import { K as platformOperatorCredentialLabel, b as platformDatabaseClientUrl, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, y as acquirePlatformDatabaseLifecycleLockConnection } from "./platform-lifecycle-DuoVruij.mjs";
7
- import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-MmO9IubR.mjs";
8
- import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-DHH6fivm.mjs";
7
+ import { K as platformOperatorCredentialLabel, b as platformDatabaseClientUrl, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, y as acquirePlatformDatabaseLifecycleLockConnection } from "./platform-lifecycle-CKwOg8wz.mjs";
8
+ import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-fyrsq2Ra.mjs";
9
+ import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-zHH3RiIm.mjs";
9
10
  import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@void/platform";
10
11
  import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
11
12
  import { readFile } from "node:fs/promises";
@@ -1,9 +1,10 @@
1
- import { K as select, L as log, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
1
  import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
3
- import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-DHklo7Rg.mjs";
4
- import { f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
5
- import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-CLxtixHJ.mjs";
6
- import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-DHH6fivm.mjs";
2
+ import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-B21j-nd6.mjs";
3
+ import { a as select, o as text } from "./interactive-prompts-EK0dilFu.mjs";
4
+ import { L as log, tt as isCancel } from "./dist-BngS28id.mjs";
5
+ import { f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-DhJgS6Ve.mjs";
6
+ import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-CKeeeD82.mjs";
7
+ import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-zHH3RiIm.mjs";
7
8
  // src/cli/platform-cmd.ts
8
9
  function normalizePlatformInputUrl(input) {
9
10
  const value = input.trim();
@@ -96,19 +97,19 @@ async function runPlatformCommand(_root, args) {
96
97
  }]
97
98
  });
98
99
  if (isCancel(group)) return;
99
- const { parsePlatformArgs } = await import("./platform-args-CMwMoiLp.mjs");
100
+ const { parsePlatformArgs } = await import("./platform-args-BSyVZESg.mjs");
100
101
  return runPlatformCommand(_root, parsePlatformArgs(["config", group]));
101
102
  }
102
- const { runPlatformPlansConfig } = await import("./platform-plans-config-DiydtNKY.mjs");
103
+ const { runPlatformPlansConfig } = await import("./platform-plans-config-BSI-6Inu.mjs");
103
104
  await runPlatformPlansConfig(args);
104
105
  return;
105
106
  }
106
- const { runPlatformAuthConfig } = await import("./platform-auth-config-Bv3oQ2gE.mjs");
107
+ const { runPlatformAuthConfig } = await import("./platform-auth-config-BbfNhjBc.mjs");
107
108
  await runPlatformAuthConfig(args);
108
109
  return;
109
110
  }
110
111
  if (args.subcommand === "operator") {
111
- const { runOperatorCommand } = await import("./operator-cmd-jnjzuJKX.mjs");
112
+ const { runOperatorCommand } = await import("./operator-cmd-CR3Q9k4c.mjs");
112
113
  await runOperatorCommand(args);
113
114
  return;
114
115
  }
@@ -176,7 +177,7 @@ async function runPlatformCommand(_root, args) {
176
177
  console.log(`Capabilities: ${Object.entries(discovery.capabilities).filter(([, enabled]) => enabled).map(([name]) => name).join(", ")}`);
177
178
  return;
178
179
  }
179
- const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-DOSYo0UI.mjs");
180
+ const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-BoCEYy2w.mjs");
180
181
  await runPlatformLifecycleCommand(args);
181
182
  }
182
183
  function showSavedInstallationStatus(manifest) {
@@ -1 +1 @@
1
- export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-D_4z2Ijv.mjs";
1
+ export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-CLRU3BRb.mjs";
@@ -1,4 +1,4 @@
1
- import { c as normalizePlatformApiUrl } from "./platform-registry-DHH6fivm.mjs";
1
+ import { c as normalizePlatformApiUrl } from "./platform-registry-zHH3RiIm.mjs";
2
2
  import { parsePlatformDiscoveryDocument } from "@void/platform";
3
3
  // src/cli/platform-discovery.ts
4
4
  /** Discovery was refused because the platform traffic gate is closed. */
@@ -1,9 +1,10 @@
1
- import { A as confirm, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
2
1
  import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
3
- import { g as note, y as printSuccess } from "./output-BZLnu0z8.mjs";
4
- import { A as recordResource, D as createPlatformHealthProbeToken, G as assertPlatformOperatorCredentialCanApplyPlan, K as platformOperatorCredentialLabel, M as recordPlatformWorkerTraffic, N as createPlatformInstallPlan, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, t as assertNoninteractivePlatformMutationAcknowledged, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-DuoVruij.mjs";
5
- import { f as verifyPlatformInstallationOwnership, o as resolveInstalledPlatformManifest, u as selectAuthoritativePlatformManifest } from "./platform-management-MmO9IubR.mjs";
6
- import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DHH6fivm.mjs";
2
+ import { n as confirm, o as text } from "./interactive-prompts-EK0dilFu.mjs";
3
+ import { tt as isCancel } from "./dist-BngS28id.mjs";
4
+ import { g as note, y as printSuccess } from "./output-DhJgS6Ve.mjs";
5
+ import { A as recordResource, D as createPlatformHealthProbeToken, G as assertPlatformOperatorCredentialCanApplyPlan, K as platformOperatorCredentialLabel, M as recordPlatformWorkerTraffic, N as createPlatformInstallPlan, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, t as assertNoninteractivePlatformMutationAcknowledged, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-CKwOg8wz.mjs";
6
+ import { f as verifyPlatformInstallationOwnership, o as resolveInstalledPlatformManifest, u as selectAuthoritativePlatformManifest } from "./platform-management-fyrsq2Ra.mjs";
7
+ import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-zHH3RiIm.mjs";
7
8
  import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@void/platform";
8
9
  // src/cli/platform-domain.ts
9
10
  function platformDomainTarget(manifest, domain, zone, dedicatedZone) {
@@ -1 +1 @@
1
- export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-DuoVruij.mjs";
1
+ export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-CKwOg8wz.mjs";