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,12 +1,46 @@
1
1
  import { isRecord } from "@void/deploy-core";
2
2
  import { isDeepStrictEqual } from "node:util";
3
3
  import { CloudflareConfigSchema, bindings, exports, triggers } from "@cloudflare/config";
4
- // src/cli/cf-config-convert/converter-helpers.ts
4
+ // ../../node_modules/.pnpm/@cloudflare+autoconfig@0.14.0_@vitest+browser-preview@5.1.1_@vitest+ui@5.1.1_@voidzero-_dad671aa0b8264f6e8e4355cdacacef6/node_modules/@cloudflare/autoconfig/dist/convert-xe_dcoPY.js
5
+ const CONFIGURATION_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/`;
6
+ const DURABLE_OBJECT_EXPORTS_DOCS_URL = `https://developers.cloudflare.com/workers/runtime-apis/context/#exports`;
7
+ const ENVIRONMENTS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/environments/`;
8
+ const PREVIEWS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/#previews`;
9
+ const SECRETS_DOCS_URL = `https://developers.cloudflare.com/workers/configuration/secrets/`;
10
+ const SOURCE_MAPS_DOCS_URL = `https://developers.cloudflare.com/workers/observability/source-maps/`;
11
+ function createFollowUp(code, message, options = {}) {
12
+ return {
13
+ blocking: options.blocking ?? true,
14
+ code,
15
+ docsUrl: options.docsUrl,
16
+ message,
17
+ sourcePath: options.sourcePath
18
+ };
19
+ }
20
+ function followUpToComment(followUp) {
21
+ return {
22
+ docsUrl: followUp.docsUrl,
23
+ message: followUp.message
24
+ };
25
+ }
26
+ function deduplicateFollowUps(followUps) {
27
+ const seen = /* @__PURE__ */ new Set();
28
+ return followUps.filter((followUp) => {
29
+ const key = [
30
+ followUp.code,
31
+ followUp.sourcePath,
32
+ followUp.message
33
+ ].join("\0");
34
+ if (seen.has(key)) return false;
35
+ seen.add(key);
36
+ return true;
37
+ });
38
+ }
5
39
  function isRecord$1(value) {
6
40
  return typeof value === "object" && value !== null && !Array.isArray(value);
7
41
  }
8
42
  function hasOwn(record, key) {
9
- return Object.hasOwn(record, key);
43
+ return Object.prototype.hasOwnProperty.call(record, key);
10
44
  }
11
45
  function getRecord(record, key) {
12
46
  const value = record[key];
@@ -47,7 +81,7 @@ function objectFromRecord(record, transformKey = (key) => key) {
47
81
  };
48
82
  }
49
83
  function snakeToCamel(value) {
50
- return value.replaceAll(/_([a-z])/g, (_, letter) => letter.toUpperCase());
84
+ return value.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
51
85
  }
52
86
  function toCamelOutputValue(value) {
53
87
  if (isRecord$1(value)) return camelObject(value);
@@ -107,42 +141,6 @@ function addProperty(properties, source, sourceKey, targetKey = sourceKey, trans
107
141
  value
108
142
  });
109
143
  }
110
- // src/cli/cf-config-convert/follow-ups.ts
111
- const CONFIGURATION_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/`;
112
- const DURABLE_OBJECT_EXPORTS_DOCS_URL = `https://developers.cloudflare.com/workers/runtime-apis/context/#exports`;
113
- const ENVIRONMENTS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/environments/`;
114
- const PREVIEWS_DOCS_URL = `https://developers.cloudflare.com/workers/wrangler/configuration/#previews`;
115
- const SECRETS_DOCS_URL = `https://developers.cloudflare.com/workers/configuration/secrets/`;
116
- const SOURCE_MAPS_DOCS_URL = `https://developers.cloudflare.com/workers/observability/source-maps/`;
117
- function createFollowUp(code, message, options = {}) {
118
- return {
119
- blocking: options.blocking ?? true,
120
- code,
121
- docsUrl: options.docsUrl,
122
- message,
123
- sourcePath: options.sourcePath
124
- };
125
- }
126
- function followUpToComment(followUp) {
127
- return {
128
- docsUrl: followUp.docsUrl,
129
- message: followUp.message
130
- };
131
- }
132
- function deduplicateFollowUps(followUps) {
133
- const seen = /* @__PURE__ */ new Set();
134
- return followUps.filter((followUp) => {
135
- const key = [
136
- followUp.code,
137
- followUp.sourcePath,
138
- followUp.message
139
- ].join("\0");
140
- if (seen.has(key)) return false;
141
- seen.add(key);
142
- return true;
143
- });
144
- }
145
- // src/cli/cf-config-convert/durable-object-exports.ts
146
144
  /**
147
145
  * Replays Wrangler migration history into declarative Durable Object exports.
148
146
  * Explicit exports take precedence, and bindings to other Workers do not
@@ -264,7 +262,6 @@ function reportMissingLocalExports(source, exports, prefix, report) {
264
262
  }));
265
263
  }
266
264
  }
267
- // src/cli/cf-config-convert/exports.ts
268
265
  const WORKFLOW_SETTINGS = [
269
266
  "limits",
270
267
  "concurrency",
@@ -430,7 +427,6 @@ function convertExports(source, sourcePrefix, imports, report) {
430
427
  properties
431
428
  } : void 0;
432
429
  }
433
- // src/cli/cf-config-convert/bindings.ts
434
430
  /** Written in place of a legacy pipeline name, which isn't a stream ID. */
435
431
  const LEGACY_PIPELINE_STREAM_ID_PLACEHOLDER = "STREAM_ID";
436
432
  function addBinding(bindings, name, value, sourcePath, report) {
@@ -490,6 +486,7 @@ function convertBindings(source, sourcePrefix, imports, report) {
490
486
  ]
491
487
  });
492
488
  convertArrayBindings("flagship", "binding", "bindings.flagship", [["app_id", "id"]], { remote: true });
489
+ convertArrayBindings("realtimekit", "binding", "bindings.realtimeKit", [["app_id", "id"]], { remote: true });
493
490
  for (const [index, entry] of getRecords(source, "hyperdrive").entries()) {
494
491
  const options = optionsFromRecord(entry, [["id", "id"]]);
495
492
  const sourcePath = pathFor("hyperdrive", index);
@@ -548,6 +545,7 @@ function convertBindings(source, sourcePrefix, imports, report) {
548
545
  }
549
546
  convertArrayBindings("secrets_store_secrets", "binding", "bindings.secretsStoreSecret", [["store_id", "storeId"], ["secret_name", "secretName"]]);
550
547
  convertArrayBindings("vectorize", "binding", "bindings.vectorize", [["index_name", "name"]], { remote: true });
548
+ convertArrayBindings("oidc_tokens", "binding", "bindings.oidcToken", [["audience", "audience"], ["alg", "alg"]]);
551
549
  convertArrayBindings("vpc_services", "binding", "bindings.vpcService", [["service_id", "id"]], { remote: true });
552
550
  convertArrayBindings("vpc_networks", "binding", "bindings.vpcNetwork", [["tunnel_id", "tunnelId"], ["network_id", "networkId"]], { remote: true });
553
551
  for (const [index, entry] of getRecords(source, "dispatch_namespaces").entries()) {
@@ -645,7 +643,8 @@ function convertBindings(source, sourcePrefix, imports, report) {
645
643
  convertSingletonBinding("ai", "binding", "bindings.ai", ["staging"]);
646
644
  convertSingletonBinding("analytics", "binding", "bindings.analyticsSql");
647
645
  convertSingletonBinding("browser", "binding", "bindings.browser");
648
- convertSingletonBinding("images", "binding", "bindings.images");
646
+ const images = getRecord(source, "images");
647
+ if (!images || hasOwn(images, "binding") || !hasOwn(images, "url_transformations")) convertSingletonBinding("images", "binding", "bindings.images");
649
648
  convertSingletonBinding("media", "binding", "bindings.media");
650
649
  convertSingletonBinding("stream", "binding", "bindings.stream");
651
650
  const versionMetadata = getRecord(source, "version_metadata");
@@ -690,7 +689,6 @@ function convertBindings(source, sourcePrefix, imports, report) {
690
689
  }))
691
690
  };
692
691
  }
693
- // src/cli/cf-config-convert/triggers.ts
694
692
  function convertTriggers(source, sourcePrefix, imports, report) {
695
693
  const domains = [];
696
694
  const converted = [];
@@ -782,7 +780,6 @@ function convertTriggers(source, sourcePrefix, imports, report) {
782
780
  triggers: converted.length > 0 ? converted : void 0
783
781
  };
784
782
  }
785
- // src/cli/cf-config-convert/worker-config.ts
786
783
  const DEPENDENCIES_INSTRUMENTATION_ENV_VAR = "CLOUDFLARE_DEPENDENCIES_INSTRUMENTATION";
787
784
  function isDependenciesInstrumentationConfig(value) {
788
785
  if (!isRecord$1(value)) return false;
@@ -797,7 +794,7 @@ function createDependenciesInstrumentationFollowUp(source, sourcePrefix) {
797
794
  if (instrumentation.enabled === false) return createFollowUp("dependencies-instrumentation-opt-out", `Set ${DEPENDENCIES_INSTRUMENTATION_ENV_VAR}=false before deploying to keep package dependency metadata disabled.${hasExcludedPackages ? " The package exclusion list was not migrated; if dependency metadata is later enabled, those packages will be included." : ""}`, { sourcePath });
798
795
  if (hasExcludedPackages) return createFollowUp("dependencies-instrumentation-exclusions", `Package dependency exclusions cannot be migrated. ${DEPENDENCIES_INSTRUMENTATION_ENV_VAR} only enables or disables dependency metadata as a whole.`, { sourcePath });
799
796
  }
800
- function convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps) {
797
+ function convertWorkerConfig(source, sourcePrefix, imports, followUps) {
801
798
  const properties = [];
802
799
  const comments = [];
803
800
  const report = (followUp, options = {}) => {
@@ -840,6 +837,18 @@ function convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps)
840
837
  addProperty(properties, source, "cache", "cache", (value) => isRecord$1(value) ? camelObject(value) : void 0);
841
838
  addProperty(properties, source, "observability", "observability", (value) => isRecord$1(value) ? camelObject(value) : void 0);
842
839
  addProperty(properties, source, "access");
840
+ const images = getRecord(source, "images");
841
+ const urlTransformations = images ? getRecord(images, "url_transformations") : void 0;
842
+ if (urlTransformations) properties.push({
843
+ key: "images",
844
+ value: {
845
+ kind: "object",
846
+ properties: [{
847
+ key: "urlTransformations",
848
+ value: camelObject(urlTransformations)
849
+ }]
850
+ }
851
+ });
843
852
  const assets = getRecord(source, "assets");
844
853
  if (assets) {
845
854
  const runtimeAssets = optionsFromRecord(assets, [
@@ -851,10 +860,6 @@ function convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps)
851
860
  key: "assets",
852
861
  value: runtimeAssets
853
862
  });
854
- if (bundler === "vite" && hasOwn(assets, "directory")) report(createFollowUp("vite-assets-directory", "The Wrangler assets directory was not migrated. Configure static assets in the Vite project.", {
855
- docsUrl: CONFIGURATION_DOCS_URL,
856
- sourcePath: `${sourcePrefix ? `${sourcePrefix}.` : ""}assets.directory`
857
- }));
858
863
  }
859
864
  const convertedTriggers = convertTriggers(source, sourcePrefix, imports, report);
860
865
  if (convertedTriggers.domains) properties.push({
@@ -956,7 +961,7 @@ function convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps)
956
961
  trailingComments: comments.length > 0 ? comments : void 0
957
962
  };
958
963
  }
959
- function convertRootConfig(source, sourcePrefix, bundler, imports, followUps) {
964
+ function convertRootConfig(source, sourcePrefix, imports, followUps) {
960
965
  const properties = [];
961
966
  if (typeof source.account_id === "string") properties.push({
962
967
  key: "accountId",
@@ -972,14 +977,13 @@ function convertRootConfig(source, sourcePrefix, bundler, imports, followUps) {
972
977
  });
973
978
  properties.push({
974
979
  key: "worker",
975
- value: convertWorkerConfig(source, sourcePrefix, bundler, imports, followUps)
980
+ value: convertWorkerConfig(source, sourcePrefix, imports, followUps)
976
981
  });
977
982
  return {
978
983
  kind: "object",
979
984
  properties
980
985
  };
981
986
  }
982
- // src/cli/cf-config-convert/config-converter.ts
983
987
  const VITE_DEFAULT_MODES = /* @__PURE__ */ new Set(["development", "production"]);
984
988
  const NON_INHERITABLE_FIELDS = /* @__PURE__ */ new Set([
985
989
  "agent_memory",
@@ -1004,10 +1008,12 @@ const NON_INHERITABLE_FIELDS = /* @__PURE__ */ new Set([
1004
1008
  "kv_namespaces",
1005
1009
  "media",
1006
1010
  "mtls_certificates",
1011
+ "oidc_tokens",
1007
1012
  "pipelines",
1008
1013
  "queues",
1009
1014
  "r2_buckets",
1010
1015
  "ratelimits",
1016
+ "realtimekit",
1011
1017
  "secrets_store_secrets",
1012
1018
  "secrets",
1013
1019
  "send_email",
@@ -1109,6 +1115,7 @@ const KNOWN_FIELDS = /* @__PURE__ */ new Set([
1109
1115
  "name",
1110
1116
  "no_bundle",
1111
1117
  "observability",
1118
+ "oidc_tokens",
1112
1119
  "pages_build_output_dir",
1113
1120
  "pipelines",
1114
1121
  "placement",
@@ -1119,6 +1126,7 @@ const KNOWN_FIELDS = /* @__PURE__ */ new Set([
1119
1126
  "queues",
1120
1127
  "r2_buckets",
1121
1128
  "ratelimits",
1129
+ "realtimekit",
1122
1130
  "route",
1123
1131
  "routes",
1124
1132
  "rules",
@@ -1257,8 +1265,34 @@ function addViteToolingFollowUp(source, location, sourcePrefix, followUps) {
1257
1265
  }));
1258
1266
  }
1259
1267
  }
1260
- function convertBranch(source, sourcePrefix, bundler, imports, followUps) {
1261
- const config = convertRootConfig(source, sourcePrefix, bundler, imports, followUps);
1268
+ /**
1269
+ * Reports a Wrangler assets directory, which the Vite build provides instead.
1270
+ *
1271
+ * @param source The branch's settings
1272
+ * @param sourcePrefix Where the branch is in the Wrangler config
1273
+ * @param followUps The follow-ups to add to
1274
+ */
1275
+ function addViteAssetsDirectoryFollowUp(source, sourcePrefix, followUps) {
1276
+ const assets = getRecord(source, "assets");
1277
+ if (assets && hasOwn(assets, "directory")) followUps.push(createFollowUp("vite-assets-directory", "The Wrangler assets directory was not migrated. Configure static assets in the Vite project.", {
1278
+ docsUrl: CONFIGURATION_DOCS_URL,
1279
+ sourcePath: `${sourcePrefix ? `${sourcePrefix}.` : ""}assets.directory`
1280
+ }));
1281
+ }
1282
+ /**
1283
+ * Reports a branch's assets directory, and its previews', for a Vite build.
1284
+ *
1285
+ * @param source The branch's settings
1286
+ * @param sourcePrefix Where the branch is in the Wrangler config
1287
+ * @param followUps The follow-ups to add to
1288
+ */
1289
+ function addViteBranchFollowUps(source, sourcePrefix, followUps) {
1290
+ addViteAssetsDirectoryFollowUp(source, sourcePrefix, followUps);
1291
+ const previews = getRecord(source, "previews");
1292
+ if (previews) addViteAssetsDirectoryFollowUp(createPreviewSource(source, previews), `${sourcePrefix ? `${sourcePrefix}.` : ""}previews`, followUps);
1293
+ }
1294
+ function convertBranch(source, sourcePrefix, imports, followUps) {
1295
+ const config = convertRootConfig(source, sourcePrefix, imports, followUps);
1262
1296
  const previews = getRecord(source, "previews");
1263
1297
  if (!previews) return { config };
1264
1298
  const previewPath = `${sourcePrefix ? `${sourcePrefix}.` : ""}previews`;
@@ -1271,7 +1305,7 @@ function convertBranch(source, sourcePrefix, bundler, imports, followUps) {
1271
1305
  if (worker && !Array.isArray(worker) && typeof worker === "object" && worker.kind === "object") worker.trailingComments = [...worker.trailingComments ?? [], followUpToComment(followUp)];
1272
1306
  return {
1273
1307
  config,
1274
- previewConfig: convertRootConfig(createPreviewSource(source, previews), previewPath, bundler, imports, followUps)
1308
+ previewConfig: convertRootConfig(createPreviewSource(source, previews), previewPath, imports, followUps)
1275
1309
  };
1276
1310
  }
1277
1311
  function convertToolingBranch(source) {
@@ -1284,7 +1318,17 @@ function convertToolingBranch(source) {
1284
1318
  previewConfig
1285
1319
  };
1286
1320
  }
1287
- function convertWranglerConfig(rawConfig, bundler, secretFiles) {
1321
+ /**
1322
+ * Converts a Wrangler config's Worker settings, for every branch: the top level, each environment
1323
+ * and their previews. Build settings are left to {@link convertWranglerBuild}, because they
1324
+ * depend on the bundler.
1325
+ *
1326
+ * @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
1327
+ * @param secretFiles Secret-like files found next to it, which aren't read.
1328
+ *
1329
+ * @returns The converted settings, as trees of values and `cf/config` helper calls, with follow-ups.
1330
+ */
1331
+ function convertWranglerSettings(rawConfig, secretFiles) {
1288
1332
  const source = rawConfig;
1289
1333
  const imports = /* @__PURE__ */ new Set();
1290
1334
  const followUps = [];
@@ -1297,10 +1341,6 @@ function convertWranglerConfig(rawConfig, bundler, secretFiles) {
1297
1341
  addUnknownFieldFollowUps(environment, `env.${name}`, followUps);
1298
1342
  const environmentPreviews = getRecord(environment, "previews");
1299
1343
  if (environmentPreviews) addUnknownFieldFollowUps(environmentPreviews, `env.${name}.previews`, followUps);
1300
- if (bundler === "vite" && VITE_DEFAULT_MODES.has(name)) followUps.push(createFollowUp("vite-mode-environment-conflict", `The Wrangler environment \`${name}\` conflicts with Vite's default \`${name}\` mode. Rename or remap this environment before using the generated config so Vite does not select it implicitly.`, {
1301
- docsUrl: ENVIRONMENTS_DOCS_URL,
1302
- sourcePath: `env.${name}`
1303
- }));
1304
1344
  continue;
1305
1345
  }
1306
1346
  followUps.push(createFollowUp("invalid-environment", `The Wrangler environment \`${name}\` is not an object and was not migrated.`, { sourcePath: `env.${name}` }));
@@ -1309,37 +1349,12 @@ function convertWranglerConfig(rawConfig, bundler, secretFiles) {
1309
1349
  blocking: false,
1310
1350
  docsUrl: SECRETS_DOCS_URL
1311
1351
  }));
1312
- if (bundler === "vite") {
1313
- addViteToolingFollowUp(source, "", "", followUps);
1314
- if (sourcePreviews) addViteToolingFollowUp(sourcePreviews, "previews", "previews", followUps);
1315
- }
1316
- const isWranglerBundle = bundler === "wrangler";
1317
- if (isWranglerBundle) {
1318
- const dev = getRecord(source, "dev");
1319
- if (dev && isRecord$1(dev.container_engine)) followUps.push(createFollowUp("container-engine-config", "The structured Wrangler container engine setting is not supported by wrangler.config.ts and was not migrated.", { sourcePath: "dev.container_engine" }));
1320
- }
1321
- if (bundler === "vite") for (const [name, environment] of Object.entries(environments)) {
1322
- if (!isRecord$1(environment)) continue;
1323
- addViteToolingFollowUp(environment, `environment \`${name}\``, `env.${name}`, followUps);
1324
- const environmentPreviews = getRecord(environment, "previews");
1325
- if (environmentPreviews) addViteToolingFollowUp(environmentPreviews, `environment \`${name}\` previews`, `env.${name}.previews`, followUps);
1326
- }
1327
- const baseSource = createBranchSource(source, {});
1328
- const base = convertBranch(baseSource, "", bundler, imports, followUps);
1329
- const toolingBase = isWranglerBundle ? convertToolingBranch(baseSource) : void 0;
1352
+ const base = convertBranch(createBranchSource(source, {}), "", imports, followUps);
1330
1353
  const convertedEnvironments = /* @__PURE__ */ new Map();
1331
- const toolingEnvironments = /* @__PURE__ */ new Map();
1332
1354
  for (const [name, value] of Object.entries(environments)) {
1333
1355
  if (!isRecord$1(value)) continue;
1334
1356
  const environmentSource = createBranchSource(source, value, name);
1335
- convertedEnvironments.set(name, convertBranch(environmentSource, `env.${name}`, bundler, imports, followUps));
1336
- if (isWranglerBundle) {
1337
- const tooling = convertToolingBranch(createToolingEnvironmentSource(source, value, name));
1338
- if (tooling || toolingBase) toolingEnvironments.set(name, tooling ?? { config: {
1339
- kind: "object",
1340
- properties: []
1341
- } });
1342
- }
1357
+ convertedEnvironments.set(name, convertBranch(environmentSource, `env.${name}`, imports, followUps));
1343
1358
  }
1344
1359
  if (convertedEnvironments.size > 0) followUps.push(createFollowUp("environments-migrated", "Wrangler environments were migrated to a `switch (ctx.mode)` statement. Select one with the `--mode` flag.", {
1345
1360
  blocking: false,
@@ -1350,11 +1365,93 @@ function convertWranglerConfig(rawConfig, bundler, secretFiles) {
1350
1365
  base,
1351
1366
  environments: convertedEnvironments,
1352
1367
  followUps: deduplicateFollowUps(followUps),
1353
- imports,
1368
+ imports
1369
+ };
1370
+ }
1371
+ /**
1372
+ * Converts a Wrangler config's build settings for a bundler. With Wrangler, they become the
1373
+ * branches of `wrangler.config.ts`. With Vite, which builds the Worker itself, they become
1374
+ * follow-ups for the settings that don't carry over.
1375
+ *
1376
+ * @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
1377
+ * @param bundler The bundler the project builds with.
1378
+ *
1379
+ * @returns The `wrangler.config.ts` branches, and follow-ups for the build settings left out.
1380
+ */
1381
+ function convertWranglerBuild(rawConfig, bundler) {
1382
+ const source = rawConfig;
1383
+ const followUps = [];
1384
+ const environments = Object.entries(getRecord(source, "env") ?? {}).filter((entry) => isRecord$1(entry[1]));
1385
+ const baseSource = createBranchSource(source, {});
1386
+ if (bundler === "vite") {
1387
+ for (const [name] of environments) if (VITE_DEFAULT_MODES.has(name)) followUps.push(createFollowUp("vite-mode-environment-conflict", `The Wrangler environment \`${name}\` conflicts with Vite's default \`${name}\` mode. Rename or remap this environment before using the generated config so Vite does not select it implicitly.`, {
1388
+ docsUrl: ENVIRONMENTS_DOCS_URL,
1389
+ sourcePath: `env.${name}`
1390
+ }));
1391
+ addViteToolingFollowUp(source, "", "", followUps);
1392
+ const sourcePreviews = getRecord(source, "previews");
1393
+ if (sourcePreviews) addViteToolingFollowUp(sourcePreviews, "previews", "previews", followUps);
1394
+ for (const [name, environment] of environments) {
1395
+ addViteToolingFollowUp(environment, `environment \`${name}\``, `env.${name}`, followUps);
1396
+ const environmentPreviews = getRecord(environment, "previews");
1397
+ if (environmentPreviews) addViteToolingFollowUp(environmentPreviews, `environment \`${name}\` previews`, `env.${name}.previews`, followUps);
1398
+ }
1399
+ addViteBranchFollowUps(baseSource, "", followUps);
1400
+ for (const [name, environment] of environments) addViteBranchFollowUps(createBranchSource(source, environment, name), `env.${name}`, followUps);
1401
+ return {
1402
+ followUps: deduplicateFollowUps(followUps),
1403
+ toolingEnvironments: /* @__PURE__ */ new Map()
1404
+ };
1405
+ }
1406
+ const dev = getRecord(source, "dev");
1407
+ if (dev && isRecord$1(dev.container_engine)) followUps.push(createFollowUp("container-engine-config", "The structured Wrangler container engine setting is not supported by wrangler.config.ts and was not migrated.", { sourcePath: "dev.container_engine" }));
1408
+ const toolingBase = convertToolingBranch(baseSource);
1409
+ const toolingEnvironments = /* @__PURE__ */ new Map();
1410
+ for (const [name, environment] of environments) {
1411
+ const tooling = convertToolingBranch(createToolingEnvironmentSource(source, environment, name));
1412
+ if (tooling || toolingBase) toolingEnvironments.set(name, tooling ?? { config: {
1413
+ kind: "object",
1414
+ properties: []
1415
+ } });
1416
+ }
1417
+ return {
1418
+ followUps: deduplicateFollowUps(followUps),
1354
1419
  toolingBase,
1355
1420
  toolingEnvironments
1356
1421
  };
1357
1422
  }
1423
+ /**
1424
+ * Converts a Wrangler config's Worker settings and its build settings for a bundler.
1425
+ *
1426
+ * @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
1427
+ * @param bundler The bundler the project builds with.
1428
+ * @param secretFiles Secret-like files found next to it, which aren't read.
1429
+ *
1430
+ * @returns Both halves, with their follow-ups together.
1431
+ */
1432
+ function convertWranglerConfig$1(rawConfig, bundler, secretFiles) {
1433
+ const settings = convertWranglerSettings(rawConfig, secretFiles);
1434
+ const build = convertWranglerBuild(rawConfig, bundler);
1435
+ return {
1436
+ ...settings,
1437
+ followUps: deduplicateFollowUps([...settings.followUps, ...build.followUps]),
1438
+ toolingBase: build.toolingBase,
1439
+ toolingEnvironments: build.toolingEnvironments
1440
+ };
1441
+ }
1442
+ // ../../node_modules/.pnpm/@cloudflare+autoconfig@0.14.0_@vitest+browser-preview@5.1.1_@vitest+ui@5.1.1_@voidzero-_dad671aa0b8264f6e8e4355cdacacef6/node_modules/@cloudflare/autoconfig/dist/wrangler-to-cf.js
1443
+ /**
1444
+ * Converts a parsed Wrangler configuration to the new cf configuration in memory.
1445
+ * It reads and writes no files and does not inspect the project's dependencies.
1446
+ *
1447
+ * @param rawConfig The parsed contents of a Wrangler JSON, JSONC, or TOML configuration.
1448
+ * @param options Optional bundler selection. Defaults to Vite.
1449
+ *
1450
+ * @returns The converted configuration for the top level and for each Wrangler environment, as a tree of values and `cf/config` helper calls, with any follow-up work left for the caller.
1451
+ */
1452
+ function convertWranglerConfig(rawConfig, options = {}) {
1453
+ return convertWranglerConfig$1(rawConfig, options.bundler ?? "vite", []);
1454
+ }
1358
1455
  // src/cli/cf-config-migrate.ts
1359
1456
  function record(value) {
1360
1457
  return isRecord(value) ? value : null;
@@ -1443,7 +1540,8 @@ function applyWorkflows(raw, worker) {
1443
1540
  "limits",
1444
1541
  "concurrency",
1445
1542
  "schedules",
1446
- "default_retention"
1543
+ "default_retention",
1544
+ "jurisdiction"
1447
1545
  ]);
1448
1546
  for (const key of Object.keys(workflow)) if (!allowed.has(key)) throw new Error(`cf cannot migrate Workflow setting ${key}.`);
1449
1547
  if (Object.hasOwn(env, workflow.binding)) throw new Error(`Duplicate Worker binding ${workflow.binding}.`);
@@ -1453,13 +1551,16 @@ function applyWorkflows(raw, worker) {
1453
1551
  worker: workflow.script_name ?? worker.name,
1454
1552
  exportName: workflow.class_name
1455
1553
  };
1456
- if (workflow.script_name !== void 0 && workflow.script_name !== worker.name) continue;
1554
+ if (workflow.script_name !== void 0 && workflow.script_name !== worker.name) {
1555
+ if (Object.values(exports).some((value) => isRecord(value) && value.type === "workflow" && value.name === workflow.name)) throw new Error(`External Workflow ${workflow.name} conflicts with a local Workflow export.`);
1556
+ continue;
1557
+ }
1457
1558
  const retention = record(workflow.default_retention);
1458
- if (Object.hasOwn(exports, workflow.class_name)) throw new Error(`Duplicate Worker export ${workflow.class_name}.`);
1459
1559
  const schedules = Array.isArray(workflow.schedules) && workflow.schedules.length === 0 ? void 0 : workflow.schedules;
1460
- exports[workflow.class_name] = {
1560
+ const declaration = {
1461
1561
  type: "workflow",
1462
1562
  name: workflow.name,
1563
+ ...workflow.jurisdiction !== void 0 ? { jurisdiction: workflow.jurisdiction } : {},
1463
1564
  ...workflow.limits !== void 0 ? { limits: workflow.limits } : {},
1464
1565
  ...workflow.concurrency !== void 0 ? { concurrency: workflow.concurrency } : {},
1465
1566
  ...schedules !== void 0 ? { schedules } : {},
@@ -1468,6 +1569,12 @@ function applyWorkflows(raw, worker) {
1468
1569
  ...retention.error_retention !== void 0 ? { errorRetention: retention.error_retention } : {}
1469
1570
  } } : {}
1470
1571
  };
1572
+ const existing = record(exports[workflow.class_name]);
1573
+ if (existing && Object.entries(declaration).some(([key, value]) => Object.hasOwn(existing, key) && !isDeepStrictEqual(existing[key], value))) throw new Error(`Conflicting Worker export ${workflow.class_name} for Workflow ${workflow.name}.`);
1574
+ exports[workflow.class_name] = {
1575
+ ...existing,
1576
+ ...declaration
1577
+ };
1471
1578
  }
1472
1579
  worker.env = env;
1473
1580
  worker.exports = exports;
@@ -1475,7 +1582,6 @@ function applyWorkflows(raw, worker) {
1475
1582
  function assertHandledFollowUps(followUps) {
1476
1583
  for (const item of followUps) {
1477
1584
  if (!item.blocking) continue;
1478
- if (item.code === "vite-plugin-install-disabled" && item.sourcePath === void 0) continue;
1479
1585
  const path = item.sourcePath ?? item.code;
1480
1586
  if (!((path === "assets.directory" || /^env\.[^.]+\.assets\.directory$/.test(path)) && item.message.includes("assets directory") || /^d1_databases\.\d+$/.test(path) && /`migrations_(?:dir|table)`/.test(item.message) || /^durable_objects\.bindings\.\d+$/.test(path) || path === "migrations" || path === "containers")) throw new Error(`cf cannot migrate Cloudflare setting ${path}: ${item.message}`);
1481
1587
  }
@@ -1603,7 +1709,7 @@ function outputValue(value) {
1603
1709
  * converter could not translate. `mode` selects a Wrangler environment by name.
1604
1710
  */
1605
1711
  function translateWranglerConfig(raw, mode) {
1606
- const converted = convertWranglerConfig(JSON.parse(JSON.stringify(raw)), "vite", []);
1712
+ const converted = convertWranglerConfig(JSON.parse(JSON.stringify(raw)), { bundler: "vite" });
1607
1713
  const input = record(outputValue((converted.environments.get(mode) ?? converted.base).config));
1608
1714
  const worker = record(input?.worker);
1609
1715
  const env = record(worker?.env);
@@ -0,0 +1,15 @@
1
+ import { n as getOwnVersion } from "./agents-64FnLwxP.mjs";
2
+ import { readFileSync } from "node:fs";
3
+ // src/cli/cf-user-agent.ts
4
+ let voidUserAgent;
5
+ let cfCliVersion;
6
+ function getVoidUserAgent() {
7
+ if (voidUserAgent === void 0) voidUserAgent = `void/${getOwnVersion()}`;
8
+ return voidUserAgent;
9
+ }
10
+ /** cf prepends `cf-cli/` to CLI_VERSION for both API requests and uploads. */
11
+ function getCfCliVersion(attribution) {
12
+ if (cfCliVersion === void 0) cfCliVersion = `${JSON.parse(readFileSync(new URL(import.meta.resolve("cf/package.json")), "utf8")).version} ${getVoidUserAgent()}`;
13
+ return attribution ? `${cfCliVersion} ${attribution}` : cfCliVersion;
14
+ }
15
+ export { getVoidUserAgent as n, getCfCliVersion as t };
@@ -0,0 +1 @@
1
+ export { t as exportsFromOutput } from "./cf-version-api-XEEK2B9A.mjs";