void 1.11.0 → 1.12.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 (343) hide show
  1. package/dist/{account-cmd-Bbr5cHjm.mjs → account-cmd-D_0qJ9fx.mjs} +6 -6
  2. package/dist/{agents-DRo8gzni.mjs → agents-64FnLwxP.mjs} +6 -5
  3. package/dist/{application-analysis-XyUuNqYA.mjs → application-analysis-Cx2S63z5.mjs} +48 -22
  4. package/dist/{application-routing-DATqynKH.mjs → application-routing-BAXpnawu.mjs} +1 -1
  5. package/dist/{assets-DZBd7yqh.mjs → assets-Br6_BeFJ.mjs} +34 -27
  6. package/dist/{ast-Cv0JwXqb.mjs → ast-BkPQu7A0.mjs} +5 -1
  7. package/dist/{auth-BN0NU9dz.mjs → auth-Boz0lrb3.mjs} +1 -1
  8. package/dist/{auth-CCk9Seol.mjs → auth-DlLDymuc.mjs} +24 -12
  9. package/dist/{auth-link-CVxoyU81.mjs → auth-link-C97r9p2N.mjs} +6 -6
  10. package/dist/{auth-router-ChXKduRM.mjs → auth-router-BmzEgzYx.mjs} +5 -5
  11. package/dist/{better-auth-shared-B8W8tZxP.d.mts → better-auth-shared-BS3pDQbT.d.mts} +6 -6
  12. package/dist/{better-auth-shared-DRHo5FoG.mjs → better-auth-shared-BcqDt-37.mjs} +7 -2
  13. package/dist/{build-cmd-C3b13rRf.mjs → build-cmd-BaFsyZrz.mjs} +13 -12
  14. package/dist/{cache-B1WzZV60.mjs → cache-xO711ATQ.mjs} +6 -6
  15. package/dist/{cancel-deploy-BggXixU_.mjs → cancel-deploy-Di11ynsr.mjs} +5 -5
  16. package/dist/{cf-access-pejlJmuy.mjs → cf-access-DmkKPcAI.mjs} +0 -8
  17. package/dist/{cf-access-Dnyw8KFY.mjs → cf-access-FaIm95jA.mjs} +8 -4
  18. package/dist/{cf-build-output-bBx1gDll.mjs → cf-build-output-Ca201_n1.mjs} +27 -25
  19. package/dist/cf-build-output-Dy7N0hQN.mjs +1 -0
  20. package/dist/{cf-command-values-Ccl-zRhl.mjs → cf-command-values-5BPBRc9Z.mjs} +1 -1
  21. package/dist/cf-config-migrate-D271BTiw.mjs +1664 -0
  22. package/dist/{cf-worker-settings-CARs4Wy9.mjs → cf-worker-settings-BBdlhm9U.mjs} +1 -1
  23. package/dist/cli/cli.mjs +1 -1
  24. package/dist/cli/cloudflare-operation-process.mjs +17 -14
  25. package/dist/cli/env-schema-probe.d.mts +3 -1
  26. package/dist/cli/env-schema-probe.mjs +7 -8
  27. package/dist/{cli-main-DW09sVsT.mjs → cli-main-DlW6lB8s.mjs} +142 -88
  28. package/dist/{client-DGfZTE4V.mjs → client-DkYzDEC0.mjs} +1 -1
  29. package/dist/{client-DF6U7KLP.mjs → client-ImIe7Mjq.mjs} +186 -17
  30. package/dist/{cloudflare-auth-pNvmT6kL.mjs → cloudflare-auth-eWfhdZCk.mjs} +1 -1
  31. package/dist/{cloudflare-cmd-BOhToob3.mjs → cloudflare-cmd-SsFlJe2B.mjs} +7 -8
  32. package/dist/{cloudflare-config-D1dMHbvz.mjs → cloudflare-config-D9UFH_A5.mjs} +2 -2
  33. package/dist/{cloudflare-connect-DTrsIBAa.mjs → cloudflare-connect-BgpHcSg3.mjs} +3 -3
  34. package/dist/{cloudflare-operations-DmqtzoX4.mjs → cloudflare-operations-BF0PSErW.mjs} +12 -20
  35. package/dist/{cloudflare-operations-BditDbcd.mjs → cloudflare-operations-dpRD-2Px.mjs} +1 -1
  36. package/dist/cloudflare-process-60r4Z2Zf.mjs +671 -0
  37. package/dist/cloudflare-user-output-CCR99eQY.mjs +19 -0
  38. package/dist/collect-B6nlSnsb.mjs +1 -0
  39. package/dist/{collect-C6Blu9yw.mjs → collect-rNLybAnF.mjs} +3 -3
  40. package/dist/{config-Do7gJI3T.mjs → config-BFX5ZB1J.mjs} +5 -4
  41. package/dist/{config-CeZd67L0.mjs → config-BSoW3QCB.mjs} +5 -5
  42. package/dist/{config-DYW2TBgz.d.mts → config-DA6ZbLXO.d.mts} +1 -1
  43. package/dist/{config-dMSpL-ml.mjs → config-DtjrUtPo.mjs} +1 -1
  44. package/dist/{config-BmvqLnbi.mjs → config-Dv5jri1-.mjs} +4 -4
  45. package/dist/config-entry.d.mts +1 -1
  46. package/dist/{connect-B3bKxRzX.mjs → connect-DDRQGfFE.mjs} +9 -9
  47. package/dist/{create-project-DLUlxmf5.mjs → create-project-CY7sP8sI.mjs} +7 -6
  48. package/dist/{create-project-By7ymK7F.mjs → create-project-Dro3K-az.mjs} +1 -1
  49. package/dist/{db-3qsP21pH.mjs → db-DmlaWVBu.mjs} +120 -103
  50. package/dist/db-seed-loader-Bcz_SutQ.mjs +253 -0
  51. package/dist/{db-types-DC7KJLx2.mjs → db-types-B4Cf9dzR.mjs} +1 -1
  52. package/dist/{delete-HbFqgEFC.mjs → delete-Uuq9ch6o.mjs} +6 -6
  53. package/dist/{deploy-2QjsBEGw.mjs → deploy-B9E7_rHC.mjs} +218 -553
  54. package/dist/deploy-BB3rsZbP.mjs +2 -0
  55. package/dist/{deploy-managed-static-JoNP3cec.mjs → deploy-managed-static-IKZyuc1W.mjs} +115 -194
  56. package/dist/deploy-security-notice-C3LalelR.mjs +192 -0
  57. package/dist/{deploy-transport-QAkhJYRI.mjs → deploy-transport-BKP_oV9q.mjs} +4 -4
  58. package/dist/deploy.mjs +9 -9
  59. package/dist/{dev-inbox-BiamQEAa.mjs → dev-inbox-ClVjKEHy.mjs} +1 -1
  60. package/dist/direct-r2-upload-DFXLWfXV.mjs +204 -0
  61. package/dist/discover-D2KGP3cR.mjs +1 -0
  62. package/dist/{discover-Vd18lHsj.mjs → discover-IcspacCg.mjs} +1 -1
  63. package/dist/{dispatch-BlOYh1Vc.mjs → dispatch-DIhDA3NI.mjs} +11 -10
  64. package/dist/{dist-Cp4b1_T9.mjs → dist-C47zy_kJ.mjs} +1 -1
  65. package/dist/{dist-STQXl8ck.mjs → dist-Cr_xGE_K.mjs} +73 -38
  66. package/dist/{domain-COkVSfII.mjs → domain-B_xY1yZ5.mjs} +8 -10
  67. package/dist/{dotenv-CEI8hapP.mjs → dotenv-BG6RQavH.mjs} +2 -2
  68. package/dist/{drizzle-BXVOa6Jg.mjs → drizzle-BJDMPrj7.mjs} +3 -4
  69. package/dist/{drizzle-CvSGrvdl.mjs → drizzle-CQ5jWuDL.mjs} +1 -1
  70. package/dist/{email-Dj02fLgQ.mjs → email-BIC15L7a.mjs} +33 -30
  71. package/dist/{email-cloudflare-DDknDAgp.mjs → email-cloudflare-C447nOqq.mjs} +29 -38
  72. package/dist/{email-pattern-BYr-EFq5.mjs → email-pattern-bRna9MOJ.mjs} +2 -2
  73. package/dist/{entry-DMgR7XOf.mjs → entry-Bwb9ev8K.mjs} +13 -10
  74. package/dist/{env-BA7e5yzp.mjs → env-DJPZYHT5.mjs} +8 -8
  75. package/dist/{env-UqS-21xi.mjs → env-EjHqc7m9.mjs} +1 -1
  76. package/dist/{env-types-WEZw5D-r.mjs → env-types-D2hBodXP.mjs} +2 -19
  77. package/dist/{env-validation-DfJ9Fzfa.mjs → env-validation-D-v5_CWL.mjs} +13 -13
  78. package/dist/{env-validation-ly_Q9Kgd.mjs → env-validation-j9pjCDfA.mjs} +1 -1
  79. package/dist/{error-pages-QNeBXiRR.mjs → error-pages-GORL6F_e.mjs} +1 -1
  80. package/dist/{fetch-CbI6lNnk.d.mts → fetch-CczQyIed.d.mts} +1 -1
  81. package/dist/{fetch-DdK9eGin.mjs → fetch-CiEsvjpP.mjs} +1 -1
  82. package/dist/{fetch-stream-DQAavFdm.mjs → fetch-stream-BIG5lHW6.mjs} +3 -4
  83. package/dist/{fetch-stream-DoED9atq.d.mts → fetch-stream-DRX8-83b.d.mts} +2 -2
  84. package/dist/gen-CQDiPi8m.mjs +1 -0
  85. package/dist/{gen-EMpnzNGz.mjs → gen-DiTZlDx8.mjs} +21 -18
  86. package/dist/{generate-BOp1g1H_.mjs → generate-C3ZAqCy-.mjs} +1 -1
  87. package/dist/{generate-CWb8aOsm.mjs → generate-Dq2Bgw75.mjs} +6 -6
  88. package/dist/{git-metadata-Cukp5kV5.mjs → git-metadata-BEokJ6US.mjs} +1 -1
  89. package/dist/{github-cmd-8bXgJNAQ.mjs → github-cmd-DPmby8x-.mjs} +14 -9
  90. package/dist/{handler-w_FAiIRu.mjs → handler-DCrDLzw2.mjs} +3 -3
  91. package/dist/has-own-key-D9QEnAkF.mjs +5 -0
  92. package/dist/{head-0o0QoREY.mjs → head-BwQ5kgqt.mjs} +5 -4
  93. package/dist/{head-CVO92KEx.d.mts → head-fUp8n_QJ.d.mts} +9 -4
  94. package/dist/{headers-BjgvlY29.mjs → headers-DqBsjDxg.mjs} +7 -7
  95. package/dist/{help-DCQKp3Kp.mjs → help-9wfMyXHb.mjs} +130 -60
  96. package/dist/help-Dy3w4rPq.mjs +1 -0
  97. package/dist/{inbound-BHt4dIlL.d.mts → inbound-CwgZSqFI.d.mts} +9 -3
  98. package/dist/{inbound--OF7zkwX.mjs → inbound-feMn1Rxx.mjs} +7 -7
  99. package/dist/{index-CmqHYj2R.d.mts → index-8cAgNdb6.d.mts} +1 -1
  100. package/dist/{index-BTmhCDbw.d.mts → index-BQ5qYiAw.d.mts} +2 -2
  101. package/dist/{index-BESZTC1z.d.mts → index-BYcWajVp.d.mts} +2 -1
  102. package/dist/{index-BXdP39qx.d.mts → index-Dn2mkPr2.d.mts} +24 -23
  103. package/dist/index.d.mts +2 -2
  104. package/dist/index.mjs +341 -444
  105. package/dist/{info--jdAIsJN.mjs → info-BWEWaOBo.mjs} +4 -4
  106. package/dist/{init-BLZvktk_.mjs → init-BuTPVLPO.mjs} +69 -335
  107. package/dist/{isr-config-Czzb4mIq.mjs → isr-config-DiTnL9Tb.mjs} +5 -5
  108. package/dist/{link-DPJ4jN7y.mjs → link-BiesPyT4.mjs} +7 -7
  109. package/dist/{list-B-au6xJt.mjs → list-CkonftPQ.mjs} +11 -7
  110. package/dist/{live-DvtxTUhW.mjs → live-dvGThbwy.mjs} +14 -17
  111. package/dist/{load-user-env-BltIJLtl.mjs → load-user-env-B8qC0Q2Y.mjs} +1 -1
  112. package/dist/{local-d1-C6xn26Nl.mjs → local-d1-CYOYkVwO.mjs} +3 -3
  113. package/dist/{login-p1_BMgXg.mjs → login-BSOSah1j.mjs} +8 -6
  114. package/dist/login-DWCZeCX9.mjs +1 -0
  115. package/dist/{logs-UNH3vQeX.mjs → logs-HOBUnroa.mjs} +9 -9
  116. package/dist/{migrate-9dlt6Mxu.mjs → migrate-BNZL1hee.mjs} +9 -10
  117. package/dist/migrate-C9aoWLvY.mjs +1 -0
  118. package/dist/{migrations-Cbns2RAm.mjs → migrations-CUHhX65Y.mjs} +5 -5
  119. package/dist/{mime-BGoZ8ZLL.mjs → mime-Btw9R3CC.mjs} +26 -12
  120. package/dist/{mysql-sql-SlpS6OMg.mjs → mysql-sql-CB52k8tQ.mjs} +45 -22
  121. package/dist/nitro.d.mts +3 -0
  122. package/dist/nitro.mjs +14 -5
  123. package/dist/{node-DqkiQujF.mjs → node-DVJWfV6s.mjs} +6 -6
  124. package/dist/{operator-ai-logging-BQ6mOgQs.mjs → operator-ai-logging-ZDqqhnIq.mjs} +11 -10
  125. package/dist/operator-args-DCkWbgT-.mjs +1499 -0
  126. package/dist/{operator-auth-CD3pap65.mjs → operator-auth-BjoPLgja.mjs} +2 -2
  127. package/dist/{operator-client-XvXTkea6.mjs → operator-client-DzebIntv.mjs} +3 -3
  128. package/dist/{operator-cmd-CKbZbNKn.mjs → operator-cmd-AZoeI9Pl.mjs} +28 -12
  129. package/dist/operator-cmd-DEnHFmJF.mjs +1 -0
  130. package/dist/operator-security-Bo26FP01.mjs +263 -0
  131. package/dist/{output-Bc8ixgPF.mjs → output-BZLnu0z8.mjs} +13 -3
  132. package/dist/output-D7K9TWIA.mjs +1 -0
  133. package/dist/{package-json-DvS6IFRv.mjs → package-json-4xUI3xLz.mjs} +1 -1
  134. package/dist/pages/client.d.mts +53 -30
  135. package/dist/pages/client.mjs +93 -31
  136. package/dist/pages/head.d.mts +1 -1
  137. package/dist/pages/head.mjs +1 -1
  138. package/dist/pages/index.d.mts +2 -2
  139. package/dist/pages/index.mjs +7 -7
  140. package/dist/pages/islands-plugin.d.mts +26 -8
  141. package/dist/pages/islands-plugin.mjs +61 -22
  142. package/dist/pages/protocol.d.mts +2 -2
  143. package/dist/pages/protocol.mjs +1 -1
  144. package/dist/pages/serialize.mjs +1 -1
  145. package/dist/{pgpass-CEtnBOZO.mjs → pgpass-BLPoYN9_.mjs} +3 -2
  146. package/dist/platform-args-DNbNZ_RR.mjs +1 -0
  147. package/dist/{platform-args-DQSMW4EP.mjs → platform-args-lwCyQ6Xy.mjs} +37 -9
  148. package/dist/{platform-auth-config-D80AKe72.mjs → platform-auth-config-DLRMPw1G.mjs} +26 -23
  149. package/dist/{platform-auth-protection-k1Ox-u9T.mjs → platform-auth-protection-HSmLmD3d.mjs} +10 -10
  150. package/dist/{platform-auth-recovery-D-hKehPy.mjs → platform-auth-recovery-BXPhTlKa.mjs} +11 -9
  151. package/dist/{platform-cmd-Dtz5lw7R.mjs → platform-cmd-CqRjxFEU.mjs} +1 -1
  152. package/dist/{platform-cmd-DQ0Wi61H.mjs → platform-cmd-DJ-fOYhL.mjs} +11 -11
  153. package/dist/{platform-discovery-B0eZjZ3B.mjs → platform-discovery-CLxtixHJ.mjs} +1 -1
  154. package/dist/{platform-domain-BMGS4l74.mjs → platform-domain-CRsRJOws.mjs} +14 -10
  155. package/dist/{platform-lifecycle-y4AfmC7M.mjs → platform-lifecycle-bx_kpqo7.mjs} +1 -1
  156. package/dist/{platform-lifecycle-BCkNQNsQ.mjs → platform-lifecycle-fau3VKv6.mjs} +755 -207
  157. package/dist/platform-management-BRGhD-oF.mjs +1 -0
  158. package/dist/{platform-management-Cj2aXFqD.mjs → platform-management-CnKBdDx5.mjs} +227 -58
  159. package/dist/{platform-plans-config-CrUUzEl9.mjs → platform-plans-config-2C3_5EDs.mjs} +112 -35
  160. package/dist/{platform-recovery-DKZnALHI.mjs → platform-recovery-poxgOOAY.mjs} +5 -5
  161. package/dist/{platform-registry-DZ_2Xuqd.mjs → platform-registry-DHH6fivm.mjs} +6 -5
  162. package/dist/{platform-setup-CKmSEb1J.mjs → platform-setup-DYylapHD.mjs} +26 -12
  163. package/dist/{plugin-inference-B_urWd5Z.mjs → plugin-inference-7O11_E4H.mjs} +26 -26
  164. package/dist/{prepare-vCdm5moJ.mjs → prepare-BbvlKreR.mjs} +12 -12
  165. package/dist/prepare-BmG2E6TI.mjs +1 -0
  166. package/dist/{prepare-CU7SZieQ.mjs → prepare-DWjn1Lzd.mjs} +3 -3
  167. package/dist/{project-cmd-B4cgPSi4.mjs → project-cmd-DyUEFi2b.mjs} +30 -24
  168. package/dist/{project-CLwxcEdq.mjs → project-dh9431bN.mjs} +2 -2
  169. package/dist/{project-paths-CUhCPMpK.mjs → project-paths-2ENfCCih.mjs} +4 -3
  170. package/dist/project-security--tYGFPGo.mjs +1340 -0
  171. package/dist/project-security-DZEQgnsS.mjs +1 -0
  172. package/dist/{project-team-BdX6anO3.mjs → project-team-BszTHgzC.mjs} +8 -8
  173. package/dist/{project-token-C1rcq8Xb.mjs → project-token-DBDy4NdV.mjs} +6 -6
  174. package/dist/{project-tsconfig-MyRJgufB.mjs → project-tsconfig-BOA4ym99.mjs} +25 -5
  175. package/dist/{project-DVsTAWFh.mjs → project-uXKua1it.mjs} +1 -1
  176. package/dist/project-zero-trust-D9sUouij.mjs +210 -0
  177. package/dist/{protocol-W5EQcIzN.mjs → protocol-CE3wP-H1.mjs} +5 -5
  178. package/dist/{protocol-BlAiF-hc.d.mts → protocol-ERy-n3jf.d.mts} +7 -4
  179. package/dist/{provision-DWnnKdT-.mjs → provision-Bh44omGA.mjs} +30 -22
  180. package/dist/{provision-CGI-T0mq.mjs → provision-DFv7SJDn.mjs} +1 -1
  181. package/dist/{public-B80SwOFp.d.mts → public-DB9C2Cy_.d.mts} +5 -2
  182. package/dist/{raw-7pQirZpQ.mjs → raw-5rak34QN.mjs} +2 -1
  183. package/dist/{redirect-Dqb4fEc5.mjs → redirect-DD825Stf.mjs} +1 -1
  184. package/dist/{requests-D6MaLS_Y.mjs → requests-CBokjiOi.mjs} +6 -6
  185. package/dist/{resolve-project-Da3OgCU1.mjs → resolve-project-8WZ3iVmr.mjs} +3 -3
  186. package/dist/resolve-project-YsTH-U9I.mjs +1 -0
  187. package/dist/{rollback-Bs8I8PF8.mjs → rollback-CEeHNFUn.mjs} +16 -7
  188. package/dist/route-types-CSed9-Dp.mjs +435 -0
  189. package/dist/{route-url-BBdkU7rb.mjs → route-url-B41eQ8QI.mjs} +1 -1
  190. package/dist/{route-url-Di1kB8D_.d.mts → route-url-Bd6IX-JZ.d.mts} +2 -1
  191. package/dist/routes-stub.d.mts +1 -1
  192. package/dist/routes-stub.mjs +1 -1
  193. package/dist/{runner-CTk21HrO.mjs → runner-Bf94YVJK.mjs} +1 -1
  194. package/dist/{runner-CMZb7jNU.mjs → runner-CeguHWJx.mjs} +3 -2
  195. package/dist/{runner-mysql-CJ-HyqxV.mjs → runner-mysql-3XDKrn-g.mjs} +13 -9
  196. package/dist/{runner-mysql-C_PrAUTm.mjs → runner-mysql-r688x6Y9.mjs} +1 -1
  197. package/dist/{runner-pg-mYc75KfH.mjs → runner-pg-Buzw17hl.mjs} +1 -1
  198. package/dist/{runner-pg-2pjltt0t.mjs → runner-pg-DMJquR3d.mjs} +1 -1
  199. package/dist/runtime/ai/index.mjs +2 -2
  200. package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
  201. package/dist/runtime/auth/better-auth-d1.mjs +2 -2
  202. package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
  203. package/dist/runtime/auth/better-auth-mysql.mjs +2 -2
  204. package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
  205. package/dist/runtime/auth/better-auth-postgres.mjs +3 -3
  206. package/dist/runtime/client/fetch-server.d.mts +1 -1
  207. package/dist/runtime/client/fetch-server.mjs +2 -2
  208. package/dist/runtime/client/fetch-stream.d.mts +2 -2
  209. package/dist/runtime/client/fetch-stream.mjs +1 -1
  210. package/dist/runtime/client/fetch.d.mts +1 -1
  211. package/dist/runtime/client/fetch.mjs +1 -1
  212. package/dist/runtime/client/index.d.mts +2 -2
  213. package/dist/runtime/client/index.mjs +2 -2
  214. package/dist/runtime/client/react.d.mts +2 -2
  215. package/dist/runtime/client/react.mjs +2 -2
  216. package/dist/runtime/client/solid.d.mts +2 -2
  217. package/dist/runtime/client/solid.mjs +2 -2
  218. package/dist/runtime/client/svelte.d.mts +2 -2
  219. package/dist/runtime/client/svelte.mjs +2 -2
  220. package/dist/runtime/client/vue.d.mts +2 -2
  221. package/dist/runtime/client/vue.mjs +2 -2
  222. package/dist/runtime/db/index.d.mts +1 -1
  223. package/dist/runtime/db/index.mjs +3 -3
  224. package/dist/runtime/db/migrations/mysql-handler.mjs +1 -1
  225. package/dist/runtime/db/migrations/postgres-handler.mjs +1 -1
  226. package/dist/runtime/db/session.d.mts +1 -1
  227. package/dist/runtime/db/session.mjs +1 -1
  228. package/dist/runtime/durable/index.mjs +7 -5
  229. package/dist/runtime/email/index.d.mts +1 -1
  230. package/dist/runtime/email/index.mjs +14 -11
  231. package/dist/runtime/email/testing.d.mts +1 -1
  232. package/dist/runtime/email/testing.mjs +4 -4
  233. package/dist/runtime/env/public-client.d.mts +4 -1
  234. package/dist/runtime/env/public.d.mts +1 -1
  235. package/dist/runtime/env/public.mjs +2 -2
  236. package/dist/runtime/env/runtime.mjs +1 -1
  237. package/dist/runtime/handler/index.d.mts +1 -1
  238. package/dist/runtime/handler/index.mjs +1 -1
  239. package/dist/runtime/handler/validator.d.mts +1 -1
  240. package/dist/runtime/handler/validator.mjs +1 -1
  241. package/dist/runtime/isr/index.mjs +1 -1
  242. package/dist/runtime/kv/index.mjs +1 -1
  243. package/dist/runtime/live/client.d.mts +2 -2
  244. package/dist/runtime/live/client.mjs +7 -7
  245. package/dist/runtime/live/index.d.mts +1 -1
  246. package/dist/runtime/live/index.mjs +1 -1
  247. package/dist/runtime/live/server.mjs +3 -3
  248. package/dist/runtime/queues/index.mjs +2 -2
  249. package/dist/runtime/remote/index.d.mts +5 -1
  250. package/dist/runtime/remote/index.mjs +10 -9
  251. package/dist/runtime/routing/index.d.mts +11 -12
  252. package/dist/runtime/routing/index.mjs +69 -65
  253. package/dist/runtime/routing/route-url.d.mts +1 -1
  254. package/dist/runtime/routing/route-url.mjs +1 -1
  255. package/dist/runtime/sandbox/index.d.mts +1 -1
  256. package/dist/runtime/sandbox/index.mjs +2 -2
  257. package/dist/runtime/sse/client.d.mts +1 -1
  258. package/dist/runtime/sse/index.mjs +1 -1
  259. package/dist/runtime/storage/index.mjs +1 -1
  260. package/dist/runtime/ws/index.d.mts +1 -1
  261. package/dist/runtime/ws/index.mjs +3 -2
  262. package/dist/runtime/ws/room.d.mts +1 -1
  263. package/dist/runtime/ws/room.mjs +2 -2
  264. package/dist/runtime/ws/server.d.mts +2 -2
  265. package/dist/runtime/ws/server.mjs +1 -1
  266. package/dist/{runtime-zDDinDI5.mjs → runtime-C_VPIJBF.mjs} +1 -1
  267. package/dist/{scan-LjuG3vfA.mjs → scan-Ct_SEzH4.mjs} +36 -29
  268. package/dist/{secret-DdUs8AuR.mjs → secret-Deqo3n_N.mjs} +11 -10
  269. package/dist/security-api-types-CU7zQtr_.mjs +9 -0
  270. package/dist/security-sarif-ClyYwtAW.mjs +123 -0
  271. package/dist/{serialize-Pf-CIQK_.mjs → serialize-BmB4BfKu.mjs} +1 -1
  272. package/dist/{server-CfUbeOjx.mjs → server-T-4mn8zy.mjs} +5 -4
  273. package/dist/{session-Cw8-b8Um.mjs → session-BT8XDkvL.mjs} +1 -1
  274. package/dist/{session-DgNrdNh_.d.mts → session-ouZYD7zb.d.mts} +1 -1
  275. package/dist/{skills-B40svMBE.mjs → skills-C-csz78e.mjs} +3 -3
  276. package/dist/{sse-BXnTfcf3.mjs → sse-D3ab0YQT.mjs} +16 -13
  277. package/dist/{static-exports-DFkzL-NX.mjs → static-exports-s7P86Ngp.mjs} +3 -3
  278. package/dist/{subcommand-prompt-D-m3Umap.mjs → subcommand-prompt-B4LOLosl.mjs} +31 -21
  279. package/dist/sveltekit.mjs +1 -1
  280. package/dist/{terminal-log-text-DNsWJREL.mjs → terminal-log-text-CfS2JKM6.mjs} +1 -1
  281. package/dist/{url-DaehRGKR.mjs → url-DBQluotE.mjs} +4 -1
  282. package/dist/validate-CZYUIfR-.mjs +1 -0
  283. package/dist/{validate-Ddzl-IwT.mjs → validate-CtBWCzez.mjs} +7 -4
  284. package/dist/{validator-Duafcnh7.mjs → validator-Dfh9kCDm.mjs} +5 -5
  285. package/dist/{version-metadata-k6KFiyWt.mjs → version-metadata-DqgLa6gc.mjs} +1 -1
  286. package/dist/{wrangler-v2BmVchV.mjs → wrangler-DVe5KV5G.mjs} +49 -46
  287. package/dist/wrangler-Dq269bjx.mjs +1 -0
  288. package/dist/{wrapper-eh6MpBZA.mjs → wrapper-CcMYpOS8.mjs} +45 -171
  289. package/docs/guide/app-types.md +1 -1
  290. package/docs/guide/auth.md +2 -16
  291. package/docs/guide/database.md +2 -0
  292. package/docs/guide/email/domains.md +1 -1
  293. package/docs/guide/email/sending.md +18 -1
  294. package/docs/guide/pages-routing/actions-and-forms.md +4 -4
  295. package/docs/guide/pages-routing/head.md +20 -2
  296. package/docs/guide/platform/administration/plans.md +13 -0
  297. package/docs/guide/platform/administration/security-audits.md +213 -0
  298. package/docs/guide/platform/administration/zero-trust.md +6 -0
  299. package/docs/guide/platform/installation/ci.md +1 -1
  300. package/docs/guide/platform/installation/credentials.md +23 -20
  301. package/docs/guide/platform/installation/maintenance.md +8 -2
  302. package/docs/guide/platform/installation/prerequisites.md +1 -1
  303. package/docs/guide/platform/installation/uninstall.md +2 -0
  304. package/docs/guide/platform-administration.md +1 -0
  305. package/docs/guide/self-hosted-platform.md +14 -13
  306. package/docs/guide/type-safety.md +1 -1
  307. package/docs/integrations/cloudflare.md +3 -1
  308. package/docs/reference/api/handlers.md +3 -3
  309. package/docs/reference/api/types.md +11 -1
  310. package/docs/reference/cli/deploy.md +5 -1
  311. package/docs/reference/cli/domains.md +1 -1
  312. package/docs/reference/cli/platform-config.md +5 -3
  313. package/docs/reference/cli/platform-installation.md +29 -28
  314. package/docs/reference/cli/platform-security.md +98 -0
  315. package/docs/reference/cli/platform-zero-trust.md +2 -0
  316. package/docs/reference/cli/platform.md +1 -0
  317. package/docs/reference/cli/project.md +57 -0
  318. package/docs/reference/cli.md +3 -1
  319. package/docs/reference/config.md +2 -2
  320. package/package.json +30 -27
  321. package/skills/void/SKILL.md +7 -0
  322. package/dist/cf-build-output-D3_x71H6.mjs +0 -1
  323. package/dist/cf-config-migrate-CHtnM3_C.mjs +0 -348
  324. package/dist/cloudflare-process-wcnaQ5JG.mjs +0 -392
  325. package/dist/cloudflare-user-output-zEwuGrEJ.mjs +0 -19
  326. package/dist/collect-8i0wU63d.mjs +0 -1
  327. package/dist/deploy-DiFfBu8g.mjs +0 -2
  328. package/dist/discover-Diq0l6TZ.mjs +0 -1
  329. package/dist/gen-CuANrEzy.mjs +0 -1
  330. package/dist/help-7EzLA1qP.mjs +0 -1
  331. package/dist/login-apwve7WD.mjs +0 -1
  332. package/dist/migrate-BzRplq7m.mjs +0 -1
  333. package/dist/operator-args-BCCohcz3.mjs +0 -722
  334. package/dist/operator-cmd-D42knxMz.mjs +0 -1
  335. package/dist/output-D4UOUifX.mjs +0 -1
  336. package/dist/platform-args-Rgp86xa7.mjs +0 -1
  337. package/dist/platform-management-CRzeC70H.mjs +0 -1
  338. package/dist/prepare-C2MTqfFv.mjs +0 -1
  339. package/dist/project-zero-trust-CS02LrlK.mjs +0 -64
  340. package/dist/resolve-project-C5wC-Hoi.mjs +0 -1
  341. package/dist/route-types-CrODgORq.mjs +0 -655
  342. package/dist/validate-DY1U9rET.mjs +0 -1
  343. package/dist/wrangler-BPIAJdxA.mjs +0 -1
@@ -1,56 +1,59 @@
1
- import { n as __toESM, t as __commonJSMin } from "./rolldown-runtime-uD8oG6U2.mjs";
2
- import { A as confirm, K as select, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
1
+ import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
2
+ import { A as confirm, K as select, L as log, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
3
3
  import { a as join, c as resolve, n as dirname, o as normalize, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
4
- import { a as persistCloudflareConfig, c as stashCloudflareDeployPointer, i as materializeCloudflareConfig } from "./cloudflare-config-D1dMHbvz.mjs";
5
- import { m as resolveBindingNames, p as readConfig, r as convertHeadersConfig, u as isNodeTarget } from "./config-BmvqLnbi.mjs";
6
- import { r as detectFramework } from "./plugin-inference-B_urWd5Z.mjs";
7
- import { a as buildEnv, i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, n as readVersionMetadataBinding, r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-k6KFiyWt.mjs";
8
- import { a as getApiUrl, c as getToken, l as getTokenSource } from "./auth-CCk9Seol.mjs";
9
- import { a as isExpiredTokenError, r as PlatformClient } from "./client-DF6U7KLP.mjs";
4
+ import { a as persistCloudflareConfig, c as stashCloudflareDeployPointer, i as materializeCloudflareConfig } from "./cloudflare-config-D9UFH_A5.mjs";
5
+ import { m as resolveBindingNames, p as readConfig, r as convertHeadersConfig, u as isNodeTarget } from "./config-Dv5jri1-.mjs";
6
+ import { r as detectFramework } from "./plugin-inference-7O11_E4H.mjs";
7
+ import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
8
+ import { a as buildEnv, i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, n as readVersionMetadataBinding, r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-DqgLa6gc.mjs";
9
+ import { a as getApiUrl, c as getToken, l as getTokenSource } from "./auth-DlLDymuc.mjs";
10
+ import { a as isExpiredTokenError, r as PlatformClient } from "./client-ImIe7Mjq.mjs";
10
11
  import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
11
- import { r as discoverFrameworkWranglerFiles, t as migrateLegacyVoidConfig } from "./migrate-9dlt6Mxu.mjs";
12
- import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
13
- import { a as FRAMEWORK_PRESETS, c as hasBackendFiles, i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, o as detectPreset, s as formatProjectCommand, t as createCloudflareProcessRunner, u as resolveProjectCommand } from "./cloudflare-process-wcnaQ5JG.mjs";
12
+ import { r as discoverFrameworkWranglerFiles, t as migrateLegacyVoidConfig } from "./migrate-BNZL1hee.mjs";
13
+ import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig } from "./project-dh9431bN.mjs";
14
+ import { a as FRAMEWORK_PRESETS, c as hasBackendFiles, i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, o as detectPreset, s as formatProjectCommand, t as createCloudflareProcessRunner, u as resolveProjectCommand } from "./cloudflare-process-60r4Z2Zf.mjs";
14
15
  import { n as redactMessage } from "./env-mask-D31Qztl9.mjs";
15
- import { a as hasSandboxSqliteMigration, c as sandboxContainerConfig, i as assertSandboxNamespaceConfig, o as requiresSandboxPlatformImage, r as SANDBOX_MIGRATION_TAG, s as resolveSandboxConfig, t as analyzeApplicationSync, u as hasEmailHandlers } from "./application-analysis-XyUuNqYA.mjs";
16
- import { A as syncWranglerWebSockets, C as readWranglerManagedQueueCleanupCandidates, D as sameMigrationsDir, E as resolveLiveBindingConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, N as writeWranglerPublishedTrafficSnapshot, a as LIVE_MIGRATION_TAG, c as bindingEntriesForField, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, o as acknowledgeWranglerManagedQueueRemovals, r as FRIENDLY_BINDING_NAMES, v as readExistingLiveBindingConfig, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-v2BmVchV.mjs";
17
- import { A as promptDeployProjectConfig, C as ensureManagedHyperdrive, D as hasNonPageBackend, E as getGitCommit, F as resolveStaticBuildCommand, I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, O as hasPrerenderSources, P as resolveFullDeployBuildCommand, R as validateDeployMigrations, S as createProjectFromSlug, T as getExitCode, _ as getDeploySchemaDriftMessage, a as collectAndHashAssets, b as assertProjectDeployAccess, c as readWranglerHtmlHandling, d as printDeploySuccess, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, h as warnUnpublishedRouting, i as buildStaticManifest, j as resolveDeployLiveBindingConfig, k as log$1, l as formatDeploySummary, m as warnIgnoredNotFoundForFramework, n as runStaticDeploy, o as collectWorkerFiles, p as streamDirectR2Deploy, r as buildFrameworkManifest, s as detectNonSpaFallbackWarning, t as assembleVoidManifest, u as printDeployContext, v as hasDeploySchemaDrift, w as generateDeployWrapperIfNeeded, x as assertWorkerMainUploaded, y as assertEnvSchemaValid } from "./deploy-managed-static-JoNP3cec.mjs";
18
- import { n as completeApplicationAnalysis, t as analyzeApplication } from "./application-routing-DATqynKH.mjs";
19
- import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName, r as hasRevalidate } from "./isr-config-Czzb4mIq.mjs";
20
- import { i as otherQueueConsumers, n as chooseCloudflareQueueName, o as scopedCloudflareQueueName, r as cloudflareQueueName } from "./dispatch-BlOYh1Vc.mjs";
21
- import { a as checkCloudflareProvisionDrift, d as isRealD1Id, h as provisionCloudflareResources, i as assertValidResourceName, p as isRealKvId, s as deleteEnvVarCaseAware, u as isQueueConfirmedAbsent, y as resolveWorkersDevComplianceRegion } from "./provision-DWnnKdT-.mjs";
22
- import { c as scrubWranglerAuthCredentials, n as buildSchemaProbeEnv, o as resolveDeployTransport, r as deployChildEnv, s as scrubManagedDeployBuildMarkers, t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-QAkhJYRI.mjs";
23
- import { f as listSelfHostSecretNames, h as selfHostSchemaFailureMessage, i as SelfHostSecretListError, l as dischargeSelfHostEnvContext, n as SelfHostFirstDeployError, p as readEmittedWorkerVars, r as SelfHostSchemaError, s as deriveSelfHostEnvContextFromVars, t as SelfHostEnvValidationError } from "./env-validation-DfJ9Fzfa.mjs";
16
+ import { a as assertSandboxNamespaceConfig, c as resolveSandboxConfig, d as hasEmailHandlers, i as SANDBOX_MIGRATION_TAG, l as sandboxContainerConfig, o as hasSandboxSqliteMigration, s as requiresSandboxPlatformImage, t as analyzeApplicationSync } from "./application-analysis-Cx2S63z5.mjs";
17
+ import { A as syncWranglerWebSockets, C as readWranglerManagedQueueCleanupCandidates, D as sameMigrationsDir, E as resolveLiveBindingConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, N as writeWranglerPublishedTrafficSnapshot, a as LIVE_MIGRATION_TAG, c as bindingEntriesForField, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, o as acknowledgeWranglerManagedQueueRemovals, r as FRIENDLY_BINDING_NAMES, v as readExistingLiveBindingConfig, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-DVe5KV5G.mjs";
18
+ import { A as promptDeployProjectConfig, C as ensureManagedHyperdrive, D as hasNonPageBackend, E as getGitCommit, F as resolveStaticBuildCommand, I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, O as hasPrerenderSources, P as resolveFullDeployBuildCommand, R as validateDeployMigrations, S as createProjectFromSlug, T as getExitCode, _ as getDeploySchemaDriftMessage, a as collectAndHashAssets, b as assertProjectDeployAccess, c as readWranglerHtmlHandling, d as printDeploySuccess, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, h as warnUnpublishedRouting, i as buildStaticManifest, j as resolveDeployLiveBindingConfig, k as log$1, l as formatDeploySummary, m as warnIgnoredNotFoundForFramework, n as runStaticDeploy, o as collectWorkerFiles, p as streamDirectR2Deploy, r as buildFrameworkManifest, s as detectNonSpaFallbackWarning, t as assembleVoidManifest, u as printDeployContext, v as hasDeploySchemaDrift, w as generateDeployWrapperIfNeeded, x as assertWorkerMainUploaded, y as assertEnvSchemaValid } from "./deploy-managed-static-IKZyuc1W.mjs";
19
+ import { n as completeApplicationAnalysis, t as analyzeApplication } from "./application-routing-BAXpnawu.mjs";
20
+ import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName, r as hasRevalidate } from "./isr-config-DiTnL9Tb.mjs";
21
+ import { i as otherQueueConsumers, n as chooseCloudflareQueueName, o as scopedCloudflareQueueName, r as cloudflareQueueName } from "./dispatch-DIhDA3NI.mjs";
22
+ import { a as checkCloudflareProvisionDrift, d as isRealD1Id, h as provisionCloudflareResources, i as assertValidResourceName, p as isRealKvId, s as deleteEnvVarCaseAware, u as isQueueConfirmedAbsent, y as resolveWorkersDevComplianceRegion } from "./provision-Bh44omGA.mjs";
23
+ import { c as scrubWranglerAuthCredentials, n as buildSchemaProbeEnv, o as resolveDeployTransport, r as deployChildEnv, s as scrubManagedDeployBuildMarkers, t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-BKP_oV9q.mjs";
24
+ import { f as listSelfHostSecretNames, h as selfHostSchemaFailureMessage, i as SelfHostSecretListError, l as dischargeSelfHostEnvContext, n as SelfHostFirstDeployError, p as readEmittedWorkerVars, r as SelfHostSchemaError, s as deriveSelfHostEnvContextFromVars, t as SelfHostEnvValidationError } from "./env-validation-D-v5_CWL.mjs";
24
25
  import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
25
- import { d as getErrorMessage, m as note, o as formatCount, r as createSpinner } from "./output-Bc8ixgPF.mjs";
26
- import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
26
+ import { a as createSpinner, c as formatCount, g as note, p as getErrorMessage } from "./output-BZLnu0z8.mjs";
27
+ import { t as collectMigrations } from "./collect-rNLybAnF.mjs";
27
28
  import { n as openMigrationValidationDatabase, t as SqliteMigrationError } from "./sqlite-validation-CLJXXN93.mjs";
28
- import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV, t as CLOUDFLARE_DEPLOY_BUILD_ENV, u as resolveRemoteMode } from "./env-UqS-21xi.mjs";
29
- import { n as prepareCfFrameworkBuildOutput, r as prepareCfStaticBuildOutput, t as prepareCfBuildOutput } from "./cf-build-output-bBx1gDll.mjs";
30
- import { c as VOID_INTERNAL_WORKER_FIRST, d as hasDocumentRoutes, f as resolveAssetConfig, i as readGeneratedAssetHeadersFile, l as edgeRulesNeedWorker, u as hasApiRoutes } from "./headers-BjgvlY29.mjs";
31
- import { o as validateSsrEntry } from "./entry-DMgR7XOf.mjs";
32
- import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, t as CloudflareAuthenticationError } from "./cloudflare-auth-pNvmT6kL.mjs";
33
- import { r as trustedCloudflareWorkerAccessHeaders, t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
34
- import { i as safePositional, r as readCfUploadOutput, t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-Ccl-zRhl.mjs";
35
- import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-CHtnM3_C.mjs";
36
- import { n as getCfCliVersion, r as getVoidUserAgent, t as publishCloudflareWorkerSettings } from "./cf-worker-settings-CARs4Wy9.mjs";
37
- import { t as Buffer$1 } from "./node-buffer-D7kgjaDs.mjs";
38
- import { a as createCloudflareEmptyDomainPublisher, i as createCloudflareEmptyCronPublisher } from "./cloudflare-operations-DmqtzoX4.mjs";
39
- import { i as validateMigrations, t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
40
- import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-CUhCPMpK.mjs";
41
- import { t as sanitizeTerminalLogText } from "./terminal-log-text-DNsWJREL.mjs";
42
- import { a as runMySqlMigrations } from "./runner-mysql-CJ-HyqxV.mjs";
43
- import { i as runPgMigrations } from "./runner-pg-mYc75KfH.mjs";
44
- import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, f as collectPrerenderPaths, h as prerenderPagesNode, i as createNodeEmailDns, m as prerenderPages, n as SEND_EMAIL_BINDING, o as formatSendingOnlyPaidHint, p as collectPrerenderPathsNode, r as applyEmailSetup, s as isAwaitingSendingOnboarding, t as EMAIL_FROM_VAR, u as renderAddressMap } from "./email-cloudflare-DDknDAgp.mjs";
45
- import { a as needsWrapper, r as cleanupWrapper, t as bundleEntry } from "./wrapper-eh6MpBZA.mjs";
29
+ import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV, t as CLOUDFLARE_DEPLOY_BUILD_ENV, u as resolveRemoteMode } from "./env-EjHqc7m9.mjs";
30
+ import { n as prepareCfFrameworkBuildOutput, r as prepareCfStaticBuildOutput, t as prepareCfBuildOutput } from "./cf-build-output-Ca201_n1.mjs";
31
+ import { c as VOID_INTERNAL_WORKER_FIRST, d as hasDocumentRoutes, f as resolveAssetConfig, i as readGeneratedAssetHeadersFile, l as edgeRulesNeedWorker, u as hasApiRoutes } from "./headers-DqBsjDxg.mjs";
32
+ import { o as validateSsrEntry } from "./entry-Bwb9ev8K.mjs";
33
+ import { v as require_ci_info } from "./project-security--tYGFPGo.mjs";
34
+ import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, t as CloudflareAuthenticationError } from "./cloudflare-auth-eWfhdZCk.mjs";
35
+ import { r as trustedCloudflareWorkerAccessHeaders, t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
36
+ import { i as safePositional, r as readCfUploadOutput, t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-5BPBRc9Z.mjs";
37
+ import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-D271BTiw.mjs";
38
+ import { n as getCfCliVersion, r as getVoidUserAgent, t as publishCloudflareWorkerSettings } from "./cf-worker-settings-BBdlhm9U.mjs";
39
+ import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
40
+ import { a as createCloudflareEmptyDomainPublisher, i as createCloudflareEmptyCronPublisher } from "./cloudflare-operations-BF0PSErW.mjs";
41
+ import { i as validateMigrations, t as assertJournalCoherence } from "./validate-CtBWCzez.mjs";
42
+ import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-2ENfCCih.mjs";
43
+ import { t as sanitizeTerminalLogText } from "./terminal-log-text-CfS2JKM6.mjs";
44
+ import { a as runMySqlMigrations } from "./runner-mysql-3XDKrn-g.mjs";
45
+ import { i as runPgMigrations } from "./runner-pg-Buzw17hl.mjs";
46
+ import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, f as collectPrerenderPaths, h as prerenderPagesNode, i as createNodeEmailDns, m as prerenderPages, n as SEND_EMAIL_BINDING, o as formatSendingOnlyPaidHint, p as collectPrerenderPathsNode, r as applyEmailSetup, s as isAwaitingSendingOnboarding, t as EMAIL_FROM_VAR, u as renderAddressMap } from "./email-cloudflare-C447nOqq.mjs";
47
+ import { n as printDeploySecurityNotice } from "./deploy-security-notice-C3LalelR.mjs";
48
+ import { a as needsWrapper, r as cleanupWrapper, t as bundleEntry } from "./wrapper-CcMYpOS8.mjs";
46
49
  import { t as assertNoPrerenderFailures } from "./prerender-render-BAdYhivW.mjs";
47
- import { t as collectGitDeployMetadata } from "./git-metadata-Cukp5kV5.mjs";
48
- import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
49
- import { r as getPackageDir } from "./agents-DRo8gzni.mjs";
50
+ import { t as collectGitDeployMetadata } from "./git-metadata-BEokJ6US.mjs";
51
+ import { t as ensurePlatformAccessToken } from "./cf-access-FaIm95jA.mjs";
52
+ import { r as getPackageDir } from "./agents-64FnLwxP.mjs";
50
53
  import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
51
- import { t as promptForLoginToken } from "./login-p1_BMgXg.mjs";
52
- import { s as listPlatformConnections } from "./platform-registry-DZ_2Xuqd.mjs";
53
- import { t as getRequestedProjectSlug } from "./resolve-project-Da3OgCU1.mjs";
54
+ import { t as promptForLoginToken } from "./login-BSOSah1j.mjs";
55
+ import { s as listPlatformConnections } from "./platform-registry-DHH6fivm.mjs";
56
+ import { t as getRequestedProjectSlug } from "./resolve-project-8WZ3iVmr.mjs";
54
57
  import { createRequire } from "node:module";
55
58
  import { closeSync, cpSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
56
59
  import { fileURLToPath } from "node:url";
@@ -65,8 +68,8 @@ import { convertToWranglerConfig } from "@cloudflare/config";
65
68
  import mime from "mime";
66
69
  import ignore from "ignore";
67
70
  import { CloudflareWorkerInspectionError, activateCloudflareVersion, assertCloudflareBindingsPreserved, assertCloudflareDurableObjectLifecycleSupported, assertExistingCloudflareConfig, cloudflareCommandDiagnostic, encodeCloudflareVersionMessage, extractWorkersDevSubdomain, normalizeReadinessAccessOrigin, normalizeWorkersDevSubdomain, parseCloudflareVersionMessage, parseRootWranglerConfig, parseRootWranglerConfig as parseRootWranglerConfig$1, readBindingFieldPresence, readCloudflareTriggerConfig, readConfigEntryString, readExistingCloudflareWorker, readStoredResourceName, readWranglerTopLevelString, renderCloudflareStaticEntry, resolveD1MigrateTarget, stageCloudflareStaticAssets, writeCloudflareFrameworkDeployConfig, writeCloudflareStaticDeployConfig } from "@void/deploy-cloudflare";
68
- import { setTimeout as setTimeout$1 } from "node:timers/promises";
69
71
  import { Minimatch } from "minimatch";
72
+ import { setTimeout as setTimeout$1 } from "node:timers/promises";
70
73
  // src/cli/cloudflare-candidate.ts
71
74
  const CANDIDATE_FILE = ".void/cloudflare-candidate.json";
72
75
  const INVALID_CANDIDATE_MESSAGE = "The saved Cloudflare candidate receipt is invalid. Restore or remove .void/cloudflare-candidate.json before retrying.";
@@ -114,16 +117,21 @@ function readCloudflareLink(root) {
114
117
  if (!existsSync(path)) return null;
115
118
  try {
116
119
  const value = JSON.parse(readFileSync(path, "utf8"));
117
- const receipt = value.candidateReceipt;
118
- const validReceipt = receipt === void 0 || typeof receipt === "object" && receipt !== null && typeof receipt.parentVersionId === "string" && receipt.parentVersionId.length > 0 && isVersionIdChain(receipt.versionIds);
119
- if (typeof value.accountId === "string" && value.accountId && typeof value.workerName === "string" && value.workerName && validReceipt) return {
120
- accountId: value.accountId,
121
- workerName: value.workerName,
122
- ...receipt === void 0 ? {} : { candidateReceipt: {
123
- parentVersionId: receipt.parentVersionId,
124
- versionIds: [...receipt.versionIds]
125
- } }
126
- };
120
+ if (typeof value.accountId === "string" && value.accountId && typeof value.workerName === "string" && value.workerName) {
121
+ const link = {
122
+ accountId: value.accountId,
123
+ workerName: value.workerName
124
+ };
125
+ const receipt = value.candidateReceipt;
126
+ if (receipt === void 0) return link;
127
+ if (typeof receipt === "object" && receipt !== null && typeof receipt.parentVersionId === "string" && receipt.parentVersionId.length > 0 && isVersionIdChain(receipt.versionIds)) {
128
+ link.candidateReceipt = {
129
+ parentVersionId: receipt.parentVersionId,
130
+ versionIds: [...receipt.versionIds]
131
+ };
132
+ return link;
133
+ }
134
+ }
127
135
  } catch {}
128
136
  throw new Error("The saved Cloudflare link is invalid. Restore .void/cloudflare-link.json before retrying.");
129
137
  }
@@ -171,8 +179,9 @@ async function prepareExistingCloudflareDeploy(options) {
171
179
  };
172
180
  const metadataBindings = existing.bindings.filter((binding) => binding.type === "version_metadata");
173
181
  if (config.version_metadata === void 0 && metadataBindings.length === 1 && typeof metadataBindings[0].name === "string") {
174
- config.version_metadata = { binding: metadataBindings[0].name };
175
- patch.version_metadata = config.version_metadata;
182
+ const metadata = { binding: metadataBindings[0].name };
183
+ config.version_metadata = metadata;
184
+ patch.version_metadata = metadata;
176
185
  }
177
186
  assertExistingCloudflareConfig(existing, config, false, options.approvedKv);
178
187
  let updated = text;
@@ -185,10 +194,12 @@ async function prepareExistingCloudflareDeploy(options) {
185
194
  insertSpaces: true,
186
195
  tabSize: 2
187
196
  } }));
197
+ assertCloudflareLinkUnchanged(options.root, pending);
198
+ const receipt = pending?.candidateReceipt;
188
199
  saveCloudflareLink(options.root, {
189
- ...pending ?? {},
190
200
  accountId: options.accountId,
191
- workerName: config.name
201
+ workerName: config.name,
202
+ ...receipt?.parentVersionId === existing.versionId ? { candidateReceipt: receipt } : {}
192
203
  });
193
204
  writeFileSync(options.configPath, updated);
194
205
  persistCloudflareConfig(options.root);
@@ -318,7 +329,7 @@ function readCloudflareLocalState(root) {
318
329
  const filePath = join(root, STATE_FILE);
319
330
  if (!existsSync(filePath)) return {};
320
331
  try {
321
- const parsed = JSON.parse(readFileSync(filePath, "utf-8"));
332
+ const parsed = JSON.parse(readFileSync(filePath, "utf8"));
322
333
  return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? parsed : {};
323
334
  } catch {
324
335
  return {};
@@ -671,7 +682,8 @@ function normalizeContainerImagePaths(container, base) {
671
682
  images: Object.fromEntries(Object.entries(value.images).map(([name, source]) => {
672
683
  if (!source || typeof source !== "object" || Array.isArray(source)) return [name, source];
673
684
  const image = { ...source };
674
- for (const key of ["dockerfile", "build_context"]) if (typeof image[key] === "string") image[key] = resolve(base, image[key]);
685
+ if ("dockerfile" in image && typeof image.dockerfile === "string") image.dockerfile = resolve(base, image.dockerfile);
686
+ if ("build_context" in image && typeof image.build_context === "string") image.build_context = resolve(base, image.build_context);
675
687
  return [name, image];
676
688
  }))
677
689
  };
@@ -725,8 +737,7 @@ function reconstructExpectedDurableObjectState(config, root, rootConfig, options
725
737
  function hashWranglerUploader(root, resolveArgv = resolveCloudflareOperationArgv) {
726
738
  let entry;
727
739
  try {
728
- const argv = resolveArgv(root);
729
- entry = argv[argv.length - 1];
740
+ entry = resolveArgv(root).at(-1);
730
741
  } catch {
731
742
  return;
732
743
  }
@@ -952,7 +963,7 @@ const MAX_WORKER_NAME_LENGTH = 63;
952
963
  * config matches the name the build emits.
953
964
  */
954
965
  function toValidWorkerName(raw) {
955
- const name = raw.toLowerCase().replace(/_/g, "-").replace(/[^a-z0-9-]/g, "-").replace(/^-+|-+$/g, "").slice(0, MAX_WORKER_NAME_LENGTH).replace(/-+$/g, "");
966
+ const name = raw.toLowerCase().replaceAll("_", "-").replaceAll(/[^a-z0-9-]/g, "-").replaceAll(/^-+|-+$/g, "").slice(0, MAX_WORKER_NAME_LENGTH).replaceAll(/-+$/g, "");
956
967
  return name.length > 0 ? name : "my-worker";
957
968
  }
958
969
  /**
@@ -962,7 +973,7 @@ function toValidWorkerName(raw) {
962
973
  function suffixedResourceName(workerName, suffix) {
963
974
  const full = toValidWorkerName(`${workerName}-${suffix}`);
964
975
  if (full.endsWith(`-${suffix}`)) return full;
965
- return toValidWorkerName(`${toValidWorkerName(workerName).slice(0, MAX_WORKER_NAME_LENGTH - suffix.length - 1).replace(/-+$/g, "")}-${suffix}`);
976
+ return toValidWorkerName(`${toValidWorkerName(workerName).slice(0, MAX_WORKER_NAME_LENGTH - suffix.length - 1).replaceAll(/-+$/g, "")}-${suffix}`);
966
977
  }
967
978
  /**
968
979
  * Worker name as the CF plugin derives it (package.json `name`, then the directory name),
@@ -971,7 +982,7 @@ function suffixedResourceName(workerName, suffix) {
971
982
  function deriveWorkerName(root) {
972
983
  let pkgName;
973
984
  try {
974
- const pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf-8"));
985
+ const pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
975
986
  if (typeof pkg.name === "string" && pkg.name.length > 0) pkgName = pkg.name;
976
987
  } catch {}
977
988
  return toValidWorkerName(pkgName ?? basename(root) ?? "");
@@ -1027,7 +1038,7 @@ async function computeDesiredCloudflareResources(root, voidConfig, configPath, a
1027
1038
  const authoredName = voidConfig.cloudflare?.d1_databases?.find((entry) => entry.binding === binding)?.database_name;
1028
1039
  desired.d1 = {
1029
1040
  binding,
1030
- name: storedName != null && isRealD1Id(storedId) ? storedName : authoredName?.trim() || (basename(configPath) !== ".void-wrangler.jsonc" && storedName !== "default" ? storedName : void 0) || suffixedResourceName(workerName, "db"),
1041
+ name: storedName !== null && storedName !== void 0 && isRealD1Id(storedId) ? storedName : authoredName?.trim() || (basename(configPath) !== ".void-wrangler.jsonc" && storedName !== "default" ? storedName : void 0) || suffixedResourceName(workerName, "db"),
1031
1042
  migrationsDir: migrationsDirRelative
1032
1043
  };
1033
1044
  if (typeof voidConfig.database === "object" && voidConfig.database.readReplication !== void 0) desired.d1.readReplication = voidConfig.database.readReplication;
@@ -1110,7 +1121,7 @@ async function validateEmittedVarsDefault(input, env) {
1110
1121
  }
1111
1122
  function resolveGeneratedDeployConfigPathDefault(root) {
1112
1123
  const pointerPath = deployPointerPath(root);
1113
- const pointer = JSON.parse(readFileSync(pointerPath, "utf-8"));
1124
+ const pointer = JSON.parse(readFileSync(pointerPath, "utf8"));
1114
1125
  if (typeof pointer.configPath !== "string" || pointer.configPath.length === 0) throw new Error(`Generated Cloudflare deploy pointer ${pointerPath} has no configPath.`);
1115
1126
  return resolve(dirname(pointerPath), pointer.configPath);
1116
1127
  }
@@ -1155,6 +1166,7 @@ function hasConfiguredVoidWorkerRoutingRules(routing) {
1155
1166
  function removeDeployPointer(root) {
1156
1167
  rmSync(deployPointerPath(root), { force: true });
1157
1168
  }
1169
+ const byName = (left, right) => String(left.name).localeCompare(String(right.name));
1158
1170
  /**
1159
1171
  * Check the generated deploy config before upload: the pinned account and Worker name, required
1160
1172
  * secrets, and every binding, container, migration, queue and cron against the pre-build pins,
@@ -1169,7 +1181,7 @@ function verifyGeneratedDeployConfig(root, expected) {
1169
1181
  };
1170
1182
  let redirectedPath;
1171
1183
  try {
1172
- const parsed = JSON.parse(readFileSync(deployConfigPath, "utf-8"));
1184
+ const parsed = JSON.parse(readFileSync(deployConfigPath, "utf8"));
1173
1185
  if (typeof parsed.configPath !== "string" || parsed.configPath.length === 0) return {
1174
1186
  ok: false,
1175
1187
  reason: `${deployConfigPath} has no "configPath" pointer.`
@@ -1330,7 +1342,6 @@ function verifyGeneratedDeployConfig(root, expected) {
1330
1342
  reason: "generated config durable_objects bindings could not be verified."
1331
1343
  };
1332
1344
  }
1333
- const byName = (left, right) => String(left.name).localeCompare(String(right.name));
1334
1345
  if (!isDeepStrictEqual([...emittedBindings].sort(byName), [...expected.expectedDurableObjectBindings].sort(byName))) return {
1335
1346
  ok: false,
1336
1347
  reason: "generated config durable_objects bindings differ from the pre-build binding set — refusing to deploy a binding the build added, removed, or retargeted."
@@ -1461,7 +1472,7 @@ async function validateCloudflarePostBuildEnv(options) {
1461
1472
  return false;
1462
1473
  }
1463
1474
  const emittedVars = emitted.vars;
1464
- if (authEnabled && Object.prototype.hasOwnProperty.call(emittedVars, "BETTER_AUTH_SECRET")) {
1475
+ if (authEnabled && Object.hasOwn(emittedVars, "BETTER_AUTH_SECRET")) {
1465
1476
  log$1.error([
1466
1477
  `deploy: ${BETTER_AUTH_SECRET_NAME} must be stored as a Cloudflare Worker secret, not a plaintext worker var.`,
1467
1478
  "Remove it from Worker vars and rerun. This deploy command preserves an",
@@ -1514,390 +1525,8 @@ async function validateCloudflarePostBuildEnv(options) {
1514
1525
  }
1515
1526
  return true;
1516
1527
  }
1517
- // ../../node_modules/.pnpm/ci-info@4.5.0/node_modules/ci-info/vendors.json
1518
- var require_vendors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1519
- module.exports = [
1520
- {
1521
- "name": "Agola CI",
1522
- "constant": "AGOLA",
1523
- "env": "AGOLA_GIT_REF",
1524
- "pr": "AGOLA_PULL_REQUEST_ID"
1525
- },
1526
- {
1527
- "name": "Alpic",
1528
- "constant": "ALPIC",
1529
- "env": "ALPIC_HOST"
1530
- },
1531
- {
1532
- "name": "Appcircle",
1533
- "constant": "APPCIRCLE",
1534
- "env": "AC_APPCIRCLE",
1535
- "pr": {
1536
- "env": "AC_GIT_PR",
1537
- "ne": "false"
1538
- }
1539
- },
1540
- {
1541
- "name": "AppVeyor",
1542
- "constant": "APPVEYOR",
1543
- "env": "APPVEYOR",
1544
- "pr": "APPVEYOR_PULL_REQUEST_NUMBER"
1545
- },
1546
- {
1547
- "name": "AWS CodeBuild",
1548
- "constant": "CODEBUILD",
1549
- "env": "CODEBUILD_BUILD_ARN",
1550
- "pr": {
1551
- "env": "CODEBUILD_WEBHOOK_EVENT",
1552
- "any": [
1553
- "PULL_REQUEST_CREATED",
1554
- "PULL_REQUEST_UPDATED",
1555
- "PULL_REQUEST_REOPENED"
1556
- ]
1557
- }
1558
- },
1559
- {
1560
- "name": "Azure Pipelines",
1561
- "constant": "AZURE_PIPELINES",
1562
- "env": "TF_BUILD",
1563
- "pr": { "BUILD_REASON": "PullRequest" }
1564
- },
1565
- {
1566
- "name": "Bamboo",
1567
- "constant": "BAMBOO",
1568
- "env": "bamboo_planKey"
1569
- },
1570
- {
1571
- "name": "Bitbucket Pipelines",
1572
- "constant": "BITBUCKET",
1573
- "env": "BITBUCKET_COMMIT",
1574
- "pr": "BITBUCKET_PR_ID"
1575
- },
1576
- {
1577
- "name": "Bitrise",
1578
- "constant": "BITRISE",
1579
- "env": "BITRISE_IO",
1580
- "pr": "BITRISE_PULL_REQUEST"
1581
- },
1582
- {
1583
- "name": "Buddy",
1584
- "constant": "BUDDY",
1585
- "env": "BUDDY_WORKSPACE_ID",
1586
- "pr": "BUDDY_EXECUTION_PULL_REQUEST_ID"
1587
- },
1588
- {
1589
- "name": "Buildkite",
1590
- "constant": "BUILDKITE",
1591
- "env": "BUILDKITE",
1592
- "pr": {
1593
- "env": "BUILDKITE_PULL_REQUEST",
1594
- "ne": "false"
1595
- }
1596
- },
1597
- {
1598
- "name": "Capawesome Cloud",
1599
- "constant": "CAPAWESOME_CLOUD",
1600
- "env": "CAPAWESOME_CLOUD"
1601
- },
1602
- {
1603
- "name": "CircleCI",
1604
- "constant": "CIRCLE",
1605
- "env": "CIRCLECI",
1606
- "pr": "CIRCLE_PULL_REQUEST"
1607
- },
1608
- {
1609
- "name": "Cirrus CI",
1610
- "constant": "CIRRUS",
1611
- "env": "CIRRUS_CI",
1612
- "pr": "CIRRUS_PR"
1613
- },
1614
- {
1615
- "name": "Cloudflare Pages",
1616
- "constant": "CLOUDFLARE_PAGES",
1617
- "env": "CF_PAGES"
1618
- },
1619
- {
1620
- "name": "Cloudflare Workers",
1621
- "constant": "CLOUDFLARE_WORKERS",
1622
- "env": "WORKERS_CI"
1623
- },
1624
- {
1625
- "name": "Codefresh",
1626
- "constant": "CODEFRESH",
1627
- "env": "CF_BUILD_ID",
1628
- "pr": { "any": ["CF_PULL_REQUEST_NUMBER", "CF_PULL_REQUEST_ID"] }
1629
- },
1630
- {
1631
- "name": "Codemagic",
1632
- "constant": "CODEMAGIC",
1633
- "env": "CM_BUILD_ID",
1634
- "pr": "CM_PULL_REQUEST"
1635
- },
1636
- {
1637
- "name": "Codeship",
1638
- "constant": "CODESHIP",
1639
- "env": { "CI_NAME": "codeship" }
1640
- },
1641
- {
1642
- "name": "Drone",
1643
- "constant": "DRONE",
1644
- "env": "DRONE",
1645
- "pr": { "DRONE_BUILD_EVENT": "pull_request" }
1646
- },
1647
- {
1648
- "name": "dsari",
1649
- "constant": "DSARI",
1650
- "env": "DSARI"
1651
- },
1652
- {
1653
- "name": "Earthly",
1654
- "constant": "EARTHLY",
1655
- "env": "EARTHLY_CI"
1656
- },
1657
- {
1658
- "name": "Expo Application Services",
1659
- "constant": "EAS",
1660
- "env": "EAS_BUILD"
1661
- },
1662
- {
1663
- "name": "Gerrit",
1664
- "constant": "GERRIT",
1665
- "env": "GERRIT_PROJECT"
1666
- },
1667
- {
1668
- "name": "Gitea Actions",
1669
- "constant": "GITEA_ACTIONS",
1670
- "env": "GITEA_ACTIONS"
1671
- },
1672
- {
1673
- "name": "GitHub Actions",
1674
- "constant": "GITHUB_ACTIONS",
1675
- "env": "GITHUB_ACTIONS",
1676
- "pr": { "GITHUB_EVENT_NAME": "pull_request" }
1677
- },
1678
- {
1679
- "name": "GitLab CI",
1680
- "constant": "GITLAB",
1681
- "env": "GITLAB_CI",
1682
- "pr": "CI_MERGE_REQUEST_ID"
1683
- },
1684
- {
1685
- "name": "GoCD",
1686
- "constant": "GOCD",
1687
- "env": "GO_PIPELINE_LABEL"
1688
- },
1689
- {
1690
- "name": "Google Cloud Build",
1691
- "constant": "GOOGLE_CLOUD_BUILD",
1692
- "env": "BUILDER_OUTPUT"
1693
- },
1694
- {
1695
- "name": "Harness CI",
1696
- "constant": "HARNESS",
1697
- "env": "HARNESS_BUILD_ID"
1698
- },
1699
- {
1700
- "name": "Heroku",
1701
- "constant": "HEROKU",
1702
- "env": {
1703
- "env": "NODE",
1704
- "includes": "/app/.heroku/node/bin/node"
1705
- }
1706
- },
1707
- {
1708
- "name": "Hudson",
1709
- "constant": "HUDSON",
1710
- "env": "HUDSON_URL"
1711
- },
1712
- {
1713
- "name": "Jenkins",
1714
- "constant": "JENKINS",
1715
- "env": ["JENKINS_URL", "BUILD_ID"],
1716
- "pr": { "any": ["ghprbPullId", "CHANGE_ID"] }
1717
- },
1718
- {
1719
- "name": "LayerCI",
1720
- "constant": "LAYERCI",
1721
- "env": "LAYERCI",
1722
- "pr": "LAYERCI_PULL_REQUEST"
1723
- },
1724
- {
1725
- "name": "Magnum CI",
1726
- "constant": "MAGNUM",
1727
- "env": "MAGNUM"
1728
- },
1729
- {
1730
- "name": "Netlify CI",
1731
- "constant": "NETLIFY",
1732
- "env": "NETLIFY",
1733
- "pr": {
1734
- "env": "PULL_REQUEST",
1735
- "ne": "false"
1736
- }
1737
- },
1738
- {
1739
- "name": "Nevercode",
1740
- "constant": "NEVERCODE",
1741
- "env": "NEVERCODE",
1742
- "pr": {
1743
- "env": "NEVERCODE_PULL_REQUEST",
1744
- "ne": "false"
1745
- }
1746
- },
1747
- {
1748
- "name": "Prow",
1749
- "constant": "PROW",
1750
- "env": "PROW_JOB_ID"
1751
- },
1752
- {
1753
- "name": "ReleaseHub",
1754
- "constant": "RELEASEHUB",
1755
- "env": "RELEASE_BUILD_ID"
1756
- },
1757
- {
1758
- "name": "Render",
1759
- "constant": "RENDER",
1760
- "env": "RENDER",
1761
- "pr": { "IS_PULL_REQUEST": "true" }
1762
- },
1763
- {
1764
- "name": "RWX",
1765
- "constant": "RWX",
1766
- "env": "RWX"
1767
- },
1768
- {
1769
- "name": "Sail CI",
1770
- "constant": "SAIL",
1771
- "env": "SAILCI",
1772
- "pr": "SAIL_PULL_REQUEST_NUMBER"
1773
- },
1774
- {
1775
- "name": "Screwdriver",
1776
- "constant": "SCREWDRIVER",
1777
- "env": "SCREWDRIVER",
1778
- "pr": {
1779
- "env": "SD_PULL_REQUEST",
1780
- "ne": "false"
1781
- }
1782
- },
1783
- {
1784
- "name": "Semaphore",
1785
- "constant": "SEMAPHORE",
1786
- "env": "SEMAPHORE",
1787
- "pr": "PULL_REQUEST_NUMBER"
1788
- },
1789
- {
1790
- "name": "Sourcehut",
1791
- "constant": "SOURCEHUT",
1792
- "env": { "CI_NAME": "sourcehut" }
1793
- },
1794
- {
1795
- "name": "Strider CD",
1796
- "constant": "STRIDER",
1797
- "env": "STRIDER"
1798
- },
1799
- {
1800
- "name": "TaskCluster",
1801
- "constant": "TASKCLUSTER",
1802
- "env": ["TASK_ID", "RUN_ID"]
1803
- },
1804
- {
1805
- "name": "TeamCity",
1806
- "constant": "TEAMCITY",
1807
- "env": "TEAMCITY_VERSION"
1808
- },
1809
- {
1810
- "name": "Travis CI",
1811
- "constant": "TRAVIS",
1812
- "env": "TRAVIS",
1813
- "pr": {
1814
- "env": "TRAVIS_PULL_REQUEST",
1815
- "ne": "false"
1816
- }
1817
- },
1818
- {
1819
- "name": "Vela",
1820
- "constant": "VELA",
1821
- "env": "VELA",
1822
- "pr": { "VELA_PULL_REQUEST": "1" }
1823
- },
1824
- {
1825
- "name": "Vercel",
1826
- "constant": "VERCEL",
1827
- "env": { "any": ["NOW_BUILDER", "VERCEL"] },
1828
- "pr": "VERCEL_GIT_PULL_REQUEST_ID"
1829
- },
1830
- {
1831
- "name": "Visual Studio App Center",
1832
- "constant": "APPCENTER",
1833
- "env": "APPCENTER_BUILD_ID"
1834
- },
1835
- {
1836
- "name": "Woodpecker",
1837
- "constant": "WOODPECKER",
1838
- "env": { "CI": "woodpecker" },
1839
- "pr": { "CI_BUILD_EVENT": "pull_request" }
1840
- },
1841
- {
1842
- "name": "Xcode Cloud",
1843
- "constant": "XCODE_CLOUD",
1844
- "env": "CI_XCODE_PROJECT",
1845
- "pr": "CI_PULL_REQUEST_NUMBER"
1846
- },
1847
- {
1848
- "name": "Xcode Server",
1849
- "constant": "XCODE_SERVER",
1850
- "env": "XCS"
1851
- }
1852
- ];
1853
- }));
1854
1528
  // src/cli/deploy-cloudflare-auth.ts
1855
- var import_ci_info = (/* @__PURE__ */ __commonJSMin(((exports) => {
1856
- const vendors = require_vendors();
1857
- const env = process.env;
1858
- Object.defineProperty(exports, "_vendors", { value: vendors.map(function(v) {
1859
- return v.constant;
1860
- }) });
1861
- exports.name = null;
1862
- exports.isPR = null;
1863
- exports.id = null;
1864
- if (env.CI !== "false") vendors.forEach(function(vendor) {
1865
- const isCI = (Array.isArray(vendor.env) ? vendor.env : [vendor.env]).every(function(obj) {
1866
- return checkEnv(obj);
1867
- });
1868
- exports[vendor.constant] = isCI;
1869
- if (!isCI) return;
1870
- exports.name = vendor.name;
1871
- exports.isPR = checkPR(vendor);
1872
- exports.id = vendor.constant;
1873
- });
1874
- exports.isCI = !!(env.CI !== "false" && (env.BUILD_ID || env.BUILD_NUMBER || env.CI || env.CI_APP_ID || env.CI_BUILD_ID || env.CI_BUILD_NUMBER || env.CI_NAME || env.CONTINUOUS_INTEGRATION || env.RUN_ID || exports.name || false));
1875
- function checkEnv(obj) {
1876
- if (typeof obj === "string") return !!env[obj];
1877
- if ("env" in obj) return env[obj.env] && env[obj.env].includes(obj.includes);
1878
- if ("any" in obj) return obj.any.some(function(k) {
1879
- return !!env[k];
1880
- });
1881
- return Object.keys(obj).every(function(k) {
1882
- return env[k] === obj[k];
1883
- });
1884
- }
1885
- function checkPR(vendor) {
1886
- switch (typeof vendor.pr) {
1887
- case "string": return !!env[vendor.pr];
1888
- case "object": if ("env" in vendor.pr) {
1889
- if ("any" in vendor.pr) return vendor.pr.any.some(function(key) {
1890
- return env[vendor.pr.env] === key;
1891
- });
1892
- else return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne;
1893
- } else if ("any" in vendor.pr) return vendor.pr.any.some(function(key) {
1894
- return !!env[key];
1895
- });
1896
- else return checkEnv(vendor.pr);
1897
- default: return null;
1898
- }
1899
- }
1900
- })))();
1529
+ var import_ci_info = require_ci_info();
1901
1530
  /** Run typed provider operations in the pinned account and API context. */
1902
1531
  function createDeployWranglerRunner(root, accountId, apiBaseUrl) {
1903
1532
  const runner = createCloudflareProcessRunner({
@@ -1970,6 +1599,15 @@ function isWranglerNonInteractiveOrCI() {
1970
1599
  return import_ci_info.isCI || !(process.stdin.isTTY && process.stdout.isTTY);
1971
1600
  }
1972
1601
  const GLOBAL_API_KEY_SESSION = "the session uses a Global API Key (CLOUDFLARE_API_KEY), which this step cannot use. Set CLOUDFLARE_API_TOKEN, or unset CLOUDFLARE_API_KEY and run `void cloudflare login`, then retry.";
1602
+ const fail = (status, signal, stderr) => ({
1603
+ ok: false,
1604
+ failure: {
1605
+ status: status === 0 ? 1 : status,
1606
+ ...signal ? { signal } : {},
1607
+ stdout: "",
1608
+ stderr
1609
+ }
1610
+ });
1973
1611
  /**
1974
1612
  * Read the current Cloudflare session bearer through the pinned deploy runner, for API calls
1975
1613
  * Void makes itself. The token goes only to the caller. A failure is built fresh from the
@@ -1977,15 +1615,6 @@ const GLOBAL_API_KEY_SESSION = "the session uses a Global API Key (CLOUDFLARE_AP
1977
1615
  * or data, so an auth failure can never be read as a Cloudflare upload error.
1978
1616
  */
1979
1617
  async function readWranglerAuthToken(runWrangler, configPath) {
1980
- const fail = (status, signal, stderr) => ({
1981
- ok: false,
1982
- failure: {
1983
- status: status === 0 ? 1 : status,
1984
- ...signal ? { signal } : {},
1985
- stdout: "",
1986
- stderr
1987
- }
1988
- });
1989
1618
  let result;
1990
1619
  try {
1991
1620
  result = await Promise.resolve(runWrangler({
@@ -2123,15 +1752,15 @@ async function readPackageDependencies(directory) {
2123
1752
  return;
2124
1753
  }
2125
1754
  }
2126
- const moduleContentTypes = {
2127
- esm: "application/javascript+module",
2128
- cjs: "application/javascript",
2129
- wasm: "application/wasm",
2130
- text: "text/plain",
2131
- data: "application/octet-stream",
2132
- json: "text/plain",
2133
- sourcemap: "application/source-map"
2134
- };
1755
+ const moduleContentTypes = /* @__PURE__ */ new Map([
1756
+ ["esm", "application/javascript+module"],
1757
+ ["cjs", "application/javascript"],
1758
+ ["wasm", "application/wasm"],
1759
+ ["text", "text/plain"],
1760
+ ["data", "application/octet-stream"],
1761
+ ["json", "text/plain"],
1762
+ ["sourcemap", "application/source-map"]
1763
+ ]);
2135
1764
  function bindingsFromOutput(env, workerName, activeSecrets, explicitSecrets) {
2136
1765
  const inherited = new Map(activeSecrets.bindings.map((binding) => [binding.name, binding.type]));
2137
1766
  const names = /* @__PURE__ */ new Set([
@@ -2478,18 +2107,26 @@ async function apiResult(url, token, method, body, verifyUploader, timeout = 12e
2478
2107
  const result = record(parsed?.result);
2479
2108
  if (!response.ok || parsed?.success !== true || !result) {
2480
2109
  const error = Array.isArray(parsed?.errors) ? record(parsed.errors[0]) : null;
2481
- const code = Number.isSafeInteger(error?.code) ? ` [code: ${error.code}]` : "";
2110
+ const code = error && Number.isSafeInteger(error.code) ? ` [code: ${error.code}]` : "";
2482
2111
  throw new CloudflareApiError(`Cloudflare version upload failed (${response.status})${code}.`, response.status, typeof error?.code === "number" ? error.code : void 0);
2483
2112
  }
2484
2113
  return result;
2485
2114
  }
2486
2115
  /** Durable Object namespace bindings that point at this Worker's own class. */
2487
2116
  function localNamespaceBindings(bindings, className, workerName) {
2488
- return bindings.map(record).filter((binding) => binding?.type === "durable_object_namespace" && binding.class_name === className && (binding.script_name === void 0 || binding.script_name === workerName) && binding.environment === void 0 && binding.dispatch_namespace === void 0);
2117
+ return bindings.flatMap((item) => {
2118
+ const binding = record(item);
2119
+ return binding?.type === "durable_object_namespace" && binding.class_name === className && (binding.script_name === void 0 || binding.script_name === workerName) && binding.environment === void 0 && binding.dispatch_namespace === void 0 ? [binding] : [];
2120
+ });
2489
2121
  }
2490
2122
  function assertContainerApplicationIdentity(application, plan, namespace) {
2491
2123
  if (application.id !== namespace || application.name !== plan.name || application.scheduling_policy !== "durable_object" || record(application.durable_objects)?.namespace_id !== namespace) throw new Error(`Cloudflare Container ${plan.name} application identity does not match the uploaded namespace.`);
2492
2124
  }
2125
+ function compareFlagValues(left, right) {
2126
+ const a = String(left);
2127
+ const b = String(right);
2128
+ return a < b ? -1 : a > b ? 1 : 0;
2129
+ }
2493
2130
  function assertContainerApplicationSettings(application, plan) {
2494
2131
  const desired = record(plan.settings.configuration) ?? {};
2495
2132
  const current = record(application.configuration) ?? {};
@@ -2501,7 +2138,7 @@ function assertContainerApplicationSettings(application, plan) {
2501
2138
  }
2502
2139
  if (key === "experimental_flags" && Array.isArray(value)) {
2503
2140
  const flags = current.experimental_flags ?? [];
2504
- return !Array.isArray(flags) || !isDeepStrictEqual([...flags].sort(), [...value].sort());
2141
+ return !Array.isArray(flags) || !isDeepStrictEqual([...flags].sort(compareFlagValues), [...value].sort(compareFlagValues));
2505
2142
  }
2506
2143
  return !isDeepStrictEqual(current[key] ?? [], value);
2507
2144
  });
@@ -2538,7 +2175,7 @@ function containerPlansFromOutput(containers, exports, bindings) {
2538
2175
  const [className, raw] = classes[0];
2539
2176
  const declaration = record(raw);
2540
2177
  const localBindings = bindings.filter((binding) => binding.type === "durable_object_namespace" && binding.class_name === className && binding.script_name === void 0);
2541
- if (declaration.storage !== "sqlite" || localBindings.length === 0) throw new Error(`Cloudflare Container ${config.name} needs a local SQLite Durable Object binding.`);
2178
+ if (declaration?.storage !== "sqlite" || localBindings.length === 0) throw new Error(`Cloudflare Container ${config.name} needs a local SQLite Durable Object binding.`);
2542
2179
  const unsafe = record(config.unsafe);
2543
2180
  const configuration = record(unsafe?.configuration);
2544
2181
  if (unsafe && Object.keys(unsafe).some((key) => key !== "configuration") || configuration && Object.keys(configuration).some((key) => key !== "experimental_flags")) throw new Error(`Cloudflare Container ${config.name} has an unsupported setting.`);
@@ -2602,11 +2239,11 @@ async function prepareContainerMetadata(options) {
2602
2239
  const images = {};
2603
2240
  for (const [name, raw] of Object.entries(plan.images)) {
2604
2241
  const source = record(raw);
2605
- const reference = requiredString(source.localReference ?? source.reference, `Container ${plan.name} image`);
2242
+ const reference = requiredString(source?.localReference ?? source?.reference, `Container ${plan.name} image`);
2606
2243
  let image = prepared.get(reference);
2607
2244
  if (!image) {
2608
2245
  image = reference;
2609
- if (source.localReference !== void 0) {
2246
+ if (source?.localReference !== void 0) {
2610
2247
  if (!options.runCf || !options.verifyUploader()) throw new Error("The verified Cloudflare Container image uploader is unavailable.");
2611
2248
  const pushed = await options.runCf([
2612
2249
  "containers",
@@ -2622,7 +2259,7 @@ async function prepareContainerMetadata(options) {
2622
2259
  if (pushed.status !== 0 || pushed.signal || pushed.error) throw new Error("Cloudflare Container image push failed.");
2623
2260
  const matches = [...`${pushed.stdout}\n${pushed.stderr}`.matchAll(/Pushed image:\s*(\S+)/g)];
2624
2261
  const remote = matches.length === 1 ? matches[0][1] : "";
2625
- if (!remote.startsWith(`registry.cloudflare.com/${options.accountId}/`) || [...remote].some((character) => character.charCodeAt(0) <= 32 || character.charCodeAt(0) === 127)) throw new Error("Cloudflare Container image push did not return the verified account registry.");
2262
+ if (!remote.startsWith(`registry.cloudflare.com/${options.accountId}/`) || Array.from(remote).some((character) => character.charCodeAt(0) <= 32 || character.charCodeAt(0) === 127)) throw new Error("Cloudflare Container image push did not return the verified account registry.");
2626
2263
  image = await dockerImageDigest(remote, Math.min(12e4, remaining()), options.verifyUploader);
2627
2264
  }
2628
2265
  for (;;) {
@@ -2660,7 +2297,8 @@ async function ensureContainerApplications(options) {
2660
2297
  const metadata = record(record(version.resources)?.script_runtime)?.containers;
2661
2298
  if (!Array.isArray(metadata) || metadata.length !== options.containers.length || options.containers.some((expected) => {
2662
2299
  const matching = metadata.map(record).filter((entry) => entry !== null && entry.name === expected.name && entry.class_name === expected.class_name);
2663
- return matching.length !== 1 || !isDeepStrictEqual(matching[0].images ?? {}, expected.images ?? {});
2300
+ const actual = matching[0];
2301
+ return matching.length !== 1 || !actual || !isDeepStrictEqual(actual.images ?? {}, expected.images ?? {});
2664
2302
  })) throw new Error("The uploaded Worker version did not retain the verified Container image metadata.");
2665
2303
  for (const plan of options.plans) {
2666
2304
  const matches = localNamespaceBindings(versionBindings, plan.className, options.workerName);
@@ -2818,7 +2456,7 @@ async function uploadPinnedCloudflareVersion(options) {
2818
2456
  if (bindings.some((binding) => binding.type === "assets") && !options.output.assetsDirectory) throw new Error("The Cloudflare Worker has an assets binding without verified assets.");
2819
2457
  const modules = [];
2820
2458
  for (const [name, entry] of Object.entries(config.manifest.modules)) {
2821
- const type = moduleContentTypes[entry.type];
2459
+ const type = moduleContentTypes.get(entry.type);
2822
2460
  if (!type || name.startsWith("/") || name.split("/").includes("..")) throw new Error(`Cloudflare Worker module ${name} cannot be uploaded with pinned secrets.`);
2823
2461
  modules.push({
2824
2462
  name,
@@ -2830,7 +2468,7 @@ async function uploadPinnedCloudflareVersion(options) {
2830
2468
  if (assetHeaders !== void 0) modules.push({
2831
2469
  name: "_headers",
2832
2470
  content_type: "text/plain",
2833
- content_base64: Buffer$1.from(assetHeaders).toString("base64")
2471
+ content_base64: Buffer.from(assetHeaders).toString("base64")
2834
2472
  });
2835
2473
  await preflightWorkflowExports({
2836
2474
  exports,
@@ -3136,9 +2774,9 @@ function createCfCommand(options) {
3136
2774
  }
3137
2775
  const output = Buffer.concat(stdout).toString("utf8");
3138
2776
  const diagnostic = Buffer.concat(stderr).toString("utf8");
3139
- const completed = typeof status === "number" && signal == null && error == null;
2777
+ const completed = typeof status === "number" && (signal === null || signal === void 0) && (error === null || error === void 0);
3140
2778
  const code = completed ? (output + "\n" + diagnostic).match(/\[(?:code:\s*)?(\d{4,})\]/)?.[1] : void 0;
3141
- const missingUploadTarget = completed && status !== 0 && code === void 0 && args[0] === "workers" && args[1] === "versions" && args[2] === "create" && (output + "\n" + diagnostic).replace(/\s+/g, " ").includes("You cannot upload a new version of a Worker that does not yet exist.");
2779
+ const missingUploadTarget = completed && status !== 0 && code === void 0 && args[0] === "workers" && args[1] === "versions" && args[2] === "create" && (output + "\n" + diagnostic).replaceAll(/\s+/g, " ").includes("You cannot upload a new version of a Worker that does not yet exist.");
3142
2780
  resolve({
3143
2781
  status: typeof status === "number" ? status : 1,
3144
2782
  stdout: output,
@@ -3153,6 +2791,19 @@ function createCfCommand(options) {
3153
2791
  });
3154
2792
  };
3155
2793
  }
2794
+ const uploadedResult = (result) => {
2795
+ if (!isCleanCloudflareExit(result)) return result;
2796
+ if (isRecord(result.data) && typeof result.data.versionId === "string") return result;
2797
+ const { versionId, previewUrl, workersDevUrl } = readCfUploadOutput(result);
2798
+ return {
2799
+ ...result,
2800
+ data: versionId ? {
2801
+ versionId,
2802
+ ...previewUrl ? { previewUrl } : {},
2803
+ ...workersDevUrl ? { workersDevUrl } : {}
2804
+ } : void 0
2805
+ };
2806
+ };
3156
2807
  /**
3157
2808
  * Adapt the stable activation protocol to cf's prebuilt and API commands.
3158
2809
  * The protocol keeps the existing preview, inheritance, traffic and rollback checks.
@@ -3169,19 +2820,6 @@ function createCfVersionRunner(options) {
3169
2820
  data: result.data ?? parseJson(result.stdout)
3170
2821
  };
3171
2822
  };
3172
- const uploadedResult = (result) => {
3173
- if (!isCleanCloudflareExit(result)) return result;
3174
- if (isRecord(result.data) && typeof result.data.versionId === "string") return result;
3175
- const { versionId, previewUrl, workersDevUrl } = readCfUploadOutput(result);
3176
- return {
3177
- ...result,
3178
- data: versionId ? {
3179
- versionId,
3180
- ...previewUrl ? { previewUrl } : {},
3181
- ...workersDevUrl ? { workersDevUrl } : {}
3182
- } : void 0
3183
- };
3184
- };
3185
2823
  let sessionToken;
3186
2824
  const readSessionToken = async (credentials) => {
3187
2825
  if (sessionToken !== void 0) return {
@@ -3330,13 +2968,19 @@ function createCfVersionRunner(options) {
3330
2968
  if (!next.versions) return failed("The Cloudflare Worker version history was not readable.");
3331
2969
  if (next.versions.length === 0) break;
3332
2970
  const numbers = next.versions.map((item) => item.number);
3333
- if (Math.min(...numbers) <= last) return failed("The Cloudflare Worker version history changed during inspection.");
2971
+ if (Math.min(...numbers) <= last) return {
2972
+ ...failed("The Cloudflare Worker version history changed during inspection."),
2973
+ failure: "version-history-changed"
2974
+ };
3334
2975
  versions.push(...next.versions);
3335
2976
  last = Math.max(...numbers);
3336
2977
  if (next.versions.length < pageSize) break;
3337
2978
  if (page === 1e3) return failed("The Cloudflare Worker version history is too large to verify.");
3338
2979
  }
3339
- } else if (Math.max(...secondNumbers) >= Math.min(...firstNumbers)) return failed("The Cloudflare Worker version history changed during inspection.");
2980
+ } else if (Math.max(...secondNumbers) >= Math.min(...firstNumbers)) return {
2981
+ ...failed("The Cloudflare Worker version history changed during inspection."),
2982
+ failure: "version-history-changed"
2983
+ };
3340
2984
  }
3341
2985
  }
3342
2986
  return {
@@ -3718,7 +3362,10 @@ function cloudflareCandidateActivationOptions(options) {
3718
3362
  });
3719
3363
  assertCloudflareBindingsPreserved(existingWorker, uploaded, options.approvedKv, { staticAssetsBinding: options.staticAssetsBinding });
3720
3364
  } : void 0,
3721
- recordVerifiedCandidate: existingWorker ? (versionId) => recordCloudflareCandidate(root, pinnedHandoffLink, existingWorker.versionId, versionId) : (versionId, parentVersionId) => {
3365
+ recordVerifiedCandidate: existingWorker ? (versionId) => {
3366
+ if (!pinnedHandoffLink) throw new Error("Cannot record a Cloudflare handoff candidate without its pinned link.");
3367
+ recordCloudflareCandidate(root, pinnedHandoffLink, existingWorker.versionId, versionId);
3368
+ } : (versionId, parentVersionId) => {
3722
3369
  if (parentVersionId) recordCloudflareCandidateUpload(root, initialCloudflareCandidate, accountId, workerName, parentVersionId, versionId);
3723
3370
  },
3724
3371
  readinessHeaders: cloudflareWorkerReadinessHeaders(),
@@ -3835,15 +3482,22 @@ function formatCloudflareActivationFailure(result) {
3835
3482
  if (result.rollback === "unsafe") return "deploy: the verified Wrangler uploader changed after version activation. Void did not invoke the changed binary to restore traffic; reinstall Wrangler from a trusted lockfile and inspect `void project status` immediately.";
3836
3483
  return "deploy: the verified Wrangler uploader changed before version activation.";
3837
3484
  case "status-failed":
3838
- if (result.versionId) return `deploy: Worker version ${result.versionId} was published, but current deployment status could not be verified${status}. Inspect \`void project status\` before retrying.`;
3485
+ if (result.versionId) {
3486
+ if (result.rollback === "not-needed") return `deploy: Worker version ${result.versionId} was uploaded, but Cloudflare deployment status could not be verified before activation${status}. Inspect \`void project status\` before retrying.`;
3487
+ return `deploy: Worker version ${result.versionId} was published, but current deployment status could not be verified${status}. Inspect \`void project status\` before retrying.`;
3488
+ }
3839
3489
  return `deploy: could not snapshot the current Cloudflare deployment${status}; no version was uploaded.`;
3840
3490
  case "deployment-changed": return result.triggerRepair === "succeeded" ? `deploy: another Cloudflare operation superseded this deployment. Void restored triggers for the active version ${result.activeVersionId ?? "(unknown)"}; retry from fresh deployment status.` : `deploy: another Cloudflare operation superseded this deployment, but its trigger state could not be verified. Inspect the active Worker version ${result.activeVersionId ?? "(unknown)"} immediately.`;
3841
- case "inheritance-source-unavailable": return "deploy: could not verify which Worker Version would supply inherited secrets; production traffic is unchanged.";
3842
- case "inheritance-source-changed": return [
3843
- "deploy: the active Worker Version is not the latest upload, and its secrets could not be pinned safely.",
3844
- "Inspect the active and latest Worker versions in Cloudflare before retrying.",
3845
- "No version was uploaded; production traffic is unchanged."
3846
- ].join("\n");
3491
+ case "inheritance-source-unavailable":
3492
+ if (result.versionId) return `deploy: Worker version ${result.versionId} was uploaded but not activated because Cloudflare's version history could not confirm which secrets it inherited. Production traffic is unchanged.`;
3493
+ return "deploy: could not verify which Worker Version would supply inherited secrets; production traffic is unchanged.";
3494
+ case "inheritance-source-changed":
3495
+ if (result.versionId) return `deploy: Worker version ${result.versionId} was uploaded but not activated because Cloudflare returned an unexpected version history. Inspect the Worker versions in Cloudflare before retrying. Production traffic is unchanged.`;
3496
+ return [
3497
+ "deploy: the active Worker Version is not the latest upload, and its secrets could not be pinned safely.",
3498
+ "Inspect the active and latest Worker versions in Cloudflare before retrying.",
3499
+ "No version was uploaded; production traffic is unchanged."
3500
+ ].join("\n");
3847
3501
  case "traffic-preservation-unavailable": return ["deploy: the existing Worker has dashboard-managed routes or visibility that Void cannot safely republish.", "Add its current routes, workers_dev, and preview_urls values to the root Wrangler config, then retry; no version was uploaded."].join("\n");
3848
3502
  case "traffic-split-unsupported": return [
3849
3503
  "deploy: the current Cloudflare deployment splits traffic across multiple Worker Versions.",
@@ -4043,7 +3697,7 @@ async function prepareCloudflareFrameworkArtifact(options) {
4043
3697
  migrationDialect: analysis.dialect,
4044
3698
  readiness: true,
4045
3699
  versionMetadataBinding,
4046
- ...hasRevalidate(revalidate) && { isr: {
3700
+ ...revalidate !== void 0 && hasRevalidate(revalidate) && { isr: {
4047
3701
  revalidate,
4048
3702
  queryAllowlist: voidConfig.routing?.revalidateQueryAllowlist
4049
3703
  } }
@@ -4084,7 +3738,7 @@ function resolveCloudflareStaticPreset(root, voidConfig, options) {
4084
3738
  ...configured,
4085
3739
  buildCommand: resolveStaticBuildCommand(configured, voidConfig.inference?.build, Boolean(options.dir))
4086
3740
  };
4087
- if (detectFramework(root)) return null;
3741
+ if (detectFramework(root) || voidConfig.inference?.appType) return null;
4088
3742
  const detected = detectPreset(root, {
4089
3743
  spa: options.spa,
4090
3744
  strictBackend: true
@@ -4203,7 +3857,7 @@ async function runCloudflareStaticDeploy(root, options, voidConfig, preset, cliL
4203
3857
  const rootConfig = parseRootWranglerConfig(configPath);
4204
3858
  const workerName = readWranglerTopLevelString(rootConfig, "name") ?? deriveWorkerName(root);
4205
3859
  printDeployContext(workerName, "Cloudflare");
4206
- const rootConfigBeforeBuild = existsSync(configPath) ? readFileSync(configPath, "utf-8") : null;
3860
+ const rootConfigBeforeBuild = existsSync(configPath) ? readFileSync(configPath, "utf8") : null;
4207
3861
  if (preset.buildCommand && !options.skipBuild) {
4208
3862
  log$1.step("Building...");
4209
3863
  const buildChildEnv = scrubManagedDeployBuildMarkers(scrubWranglerAuthCredentials(deployChildEnv(accountId, apiBaseUrl)));
@@ -4229,7 +3883,7 @@ async function runCloudflareStaticDeploy(root, options, voidConfig, preset, cliL
4229
3883
  return exit(1);
4230
3884
  }
4231
3885
  if (!assertUploaderStillPinned()) return exit(1);
4232
- if ((existsSync(configPath) ? readFileSync(configPath, "utf-8") : null) !== rootConfigBeforeBuild) {
3886
+ if ((existsSync(configPath) ? readFileSync(configPath, "utf8") : null) !== rootConfigBeforeBuild) {
4233
3887
  log$1.error(["deploy: the root Wrangler config changed during the static build.", "Refusing to upload a config rewritten by project build code. Restore the config and retry."].join("\n"));
4234
3888
  return exit(1);
4235
3889
  }
@@ -4357,6 +4011,9 @@ async function runCloudflareStaticDeploy(root, options, voidConfig, preset, cliL
4357
4011
  printDeploySuccess();
4358
4012
  }
4359
4013
  // src/cli/deploy-migrations.ts
4014
+ const foldIdentifier = (identifier) => identifier.toLowerCase();
4015
+ const quote = (identifier) => `"${identifier.replaceAll("\"", "\"\"")}"`;
4016
+ const sameIdentifier = (a, b) => foldIdentifier(a) === foldIdentifier(b);
4360
4017
  /**
4361
4018
  * Apply the checked-in migrations to an in-memory SQLite database and assert the resulting
4362
4019
  * schema has every required auth table and column, with its primary key, NOT NULL, UNIQUE and
@@ -4369,9 +4026,6 @@ async function runCloudflareStaticDeploy(root, options, voidConfig, preset, cliL
4369
4026
  */
4370
4027
  async function assertMigrationsProduceAuthSchema(migrations, required) {
4371
4028
  const db = await openMigrationValidationDatabase(migrations);
4372
- const quote = (identifier) => `"${identifier.replace(/"/g, "\"\"")}"`;
4373
- const foldIdentifier = (identifier) => identifier.toLowerCase();
4374
- const sameIdentifier = (a, b) => foldIdentifier(a) === foldIdentifier(b);
4375
4029
  const tableInfoCache = /* @__PURE__ */ new Map();
4376
4030
  const tableInfoFor = (table) => {
4377
4031
  const key = foldIdentifier(table);
@@ -4434,10 +4088,10 @@ async function assertMigrationsProduceAuthSchema(migrations, required) {
4434
4088
  const matching = constraints.flatMap((group) => group.length === 1 && group[0] && namesReference(group[0]) ? [group[0]] : []);
4435
4089
  const composite = constraints.some((group) => group.length > 1 && group.some(namesReference));
4436
4090
  if (!matching.some((fk) => {
4437
- if (fk.to != null) return sameIdentifier(String(fk.to), reference.column);
4091
+ if (fk.to !== null && fk.to !== void 0) return sameIdentifier(String(fk.to), reference.column);
4438
4092
  const parentPrimaryKey = singleColumnPrimaryKey(fk.table);
4439
4093
  return parentPrimaryKey !== null && sameIdentifier(parentPrimaryKey, reference.column);
4440
- })) problems.push(matching.length === 0 && composite ? `table "${req.table}" column "${required.column}" references "${reference.table}"."${reference.column}" only as part of a MULTI-COLUMN foreign key — SQLite skips a composite foreign key entirely when any of its child columns is NULL, so a row naming a "${reference.table}" that does not exist is still accepted. This reference needs its own single-column foreign key on "${required.column}"` : matching.some((fk) => fk.to == null) ? `table "${req.table}" column "${required.column}" references "${reference.table}" without naming a target column, but "${reference.table}"."${reference.column}" is not that table's single-column PRIMARY KEY — SQLite resolves an omitted target only to the parent's PRIMARY KEY (a UNIQUE constraint does not qualify, nor does a composite PRIMARY KEY) and rejects this at runtime with "foreign key mismatch"` : `table "${req.table}" column "${required.column}" is missing a foreign key referencing "${reference.table}"."${reference.column}"`);
4094
+ })) problems.push(matching.length === 0 && composite ? `table "${req.table}" column "${required.column}" references "${reference.table}"."${reference.column}" only as part of a MULTI-COLUMN foreign key — SQLite skips a composite foreign key entirely when any of its child columns is NULL, so a row naming a "${reference.table}" that does not exist is still accepted. This reference needs its own single-column foreign key on "${required.column}"` : matching.some((fk) => fk.to === null || fk.to === void 0) ? `table "${req.table}" column "${required.column}" references "${reference.table}" without naming a target column, but "${reference.table}"."${reference.column}" is not that table's single-column PRIMARY KEY — SQLite resolves an omitted target only to the parent's PRIMARY KEY (a UNIQUE constraint does not qualify, nor does a composite PRIMARY KEY) and rejects this at runtime with "foreign key mismatch"` : `table "${req.table}" column "${required.column}" is missing a foreign key referencing "${reference.table}"."${reference.column}"`);
4441
4095
  }
4442
4096
  try {
4443
4097
  const violations = db.prepare(`PRAGMA foreign_key_check(${quote(req.table)})`).all();
@@ -4465,7 +4119,7 @@ async function assertMigrationsProduceAuthSchema(migrations, required) {
4465
4119
  function readEmittedAuthMigrationSchema(root) {
4466
4120
  const schemaPath = join(root, ".void", "better-auth-schema.ts");
4467
4121
  if (!existsSync(schemaPath)) throw new Error(`the build did not emit ${schemaPath}, so the generated auth schema could not be read from the build output.`);
4468
- const content = readFileSync(schemaPath, "utf-8");
4122
+ const content = readFileSync(schemaPath, "utf8");
4469
4123
  const start = content.indexOf("export const migrationSchema = ");
4470
4124
  if (start === -1) throw new Error(`${schemaPath} has no migrationSchema literal — cannot verify the auth schema.`);
4471
4125
  const jsonStart = start + 31;
@@ -4528,7 +4182,7 @@ function assertRemoteMigrationsDeployable(root, dialect, migrationsDir, migratio
4528
4182
  */
4529
4183
  function leadingWranglerMigrationNumber(relativePath) {
4530
4184
  const firstSegment = relativePath.split("/")[0] ?? "";
4531
- return parseInt(firstSegment.split("_")[0] ?? "", 10);
4185
+ return Number.parseInt(firstSegment.split("_")[0] ?? "", 10);
4532
4186
  }
4533
4187
  function compareWranglerMigrationSegments(a, b) {
4534
4188
  const aNum = leadingWranglerMigrationNumber(a);
@@ -4554,7 +4208,7 @@ function compareWranglerMigrationPaths(a, b) {
4554
4208
  }
4555
4209
  function resolveWranglerMigrationPattern(config, binding, migrationsDirRaw) {
4556
4210
  const field = readBindingFieldPresence(config, "d1_databases", binding, "migrations_pattern");
4557
- const migrationsDir = normalize(migrationsDirRaw.replace(/\\/g, "/")).replace(/\/$/, "");
4211
+ const migrationsDir = normalize(migrationsDirRaw.replaceAll("\\", "/")).replace(/\/$/, "");
4558
4212
  if (!field.present) return {
4559
4213
  ok: true,
4560
4214
  pattern: "*.sql"
@@ -4567,7 +4221,7 @@ function resolveWranglerMigrationPattern(config, binding, migrationsDirRaw) {
4567
4221
  ok: false,
4568
4222
  reason: `deploy: migrations_pattern for D1 binding ${binding} must be a non-empty string.`
4569
4223
  };
4570
- const normalized = normalize(field.value.replace(/\\/g, "/")).replace(/\/$/, "");
4224
+ const normalized = normalize(field.value.replaceAll("\\", "/")).replace(/\/$/, "");
4571
4225
  const prefix = migrationsDir === "." ? "" : `${migrationsDir}/`;
4572
4226
  if (prefix && !normalized.startsWith(prefix)) return {
4573
4227
  ok: false,
@@ -4616,8 +4270,8 @@ async function checkWranglerMigrationApplySet(configPath, config, binding, migra
4616
4270
  const resolvedPattern = resolveWranglerMigrationPattern(config, binding, migrationsDirRaw);
4617
4271
  if (!resolvedPattern.ok) return resolvedPattern;
4618
4272
  const wranglerNames = listWranglerMigrationFiles(absDir, resolvedPattern.pattern);
4619
- const wranglerContent = new Map(wranglerNames.map((name) => [name, readFileSync(join(absDir, name), "utf-8")]));
4620
- const gatedNames = gated.map((m) => m.name.replace(/\\/g, "/"));
4273
+ const wranglerContent = new Map(wranglerNames.map((name) => [name, readFileSync(join(absDir, name), "utf8")]));
4274
+ const gatedNames = gated.map((m) => m.name.replaceAll("\\", "/"));
4621
4275
  const gatedContent = new Map(gatedNames.map((name, i) => [name, gated[i].sql]));
4622
4276
  const wranglerSet = new Set(wranglerNames);
4623
4277
  const extra = wranglerNames.filter((k) => !gatedContent.has(k));
@@ -5016,12 +4670,12 @@ async function migrateCloudflareWorker(input) {
5016
4670
  */
5017
4671
  function classifyCloudflareDeployApp(root, voidConfig, options, application) {
5018
4672
  const framework = application.framework;
5019
- const staticPreset = framework ? null : detectPreset(root, {
4673
+ const configuredAppType = voidConfig.inference?.appType;
4674
+ const staticPreset = framework || configuredAppType ? null : detectPreset(root, {
5020
4675
  dir: options.dir,
5021
4676
  spa: options.spa
5022
4677
  });
5023
- const configuredStatic = voidConfig.inference?.appType === "static" || voidConfig.inference?.appType === "spa";
5024
- if (staticPreset || configuredStatic || options.dir || options.spa) return unsupported([
4678
+ if (staticPreset || configuredAppType === "static" || configuredAppType === "spa" || options.dir || options.spa) return unsupported([
5025
4679
  `deploy: --platform cloudflare could not resolve the ${staticPreset?.appType ?? (options.spa ? "spa" : "static")} output to deploy.`,
5026
4680
  "Set inference.outputDir in void.config.ts, pass --dir with an existing build directory,",
5027
4681
  "or add a supported build tool so Void can locate the generated static assets."
@@ -5326,7 +4980,7 @@ async function chooseCloudflareQueueNames(input) {
5326
4980
  tooLong.push(` • ${choice.name} (${choice.name.length} characters)`);
5327
4981
  continue;
5328
4982
  }
5329
- const state = choice.kept ? plain : scoped;
4983
+ const state = choice.kept ? plain ?? null : scoped;
5330
4984
  if (state === null) absent.push(choice.name);
5331
4985
  for (const consumer of otherQueueConsumers(state, workerName)) taken.push(` • ${choice.name} is consumed by ${consumer === null ? "a non-Worker (HTTP pull) consumer" : `Worker ${consumer}`}`);
5332
4986
  if (choice.kept) input.info(`Queue ${queueName} keeps its Cloudflare name ${choice.name}, because this Worker already consumes it.`);
@@ -5647,11 +5301,11 @@ async function preflightCloudflareWorker(input) {
5647
5301
  })),
5648
5302
  consumers: frameworkQueues.map((queue) => ({
5649
5303
  queue: cloudflareQueueName(queue.name, desired.queueNames),
5650
- ...queue.maxBatchSize != null && { max_batch_size: queue.maxBatchSize },
5651
- ...queue.maxBatchTimeout != null && { max_batch_timeout: queue.maxBatchTimeout },
5652
- ...queue.maxRetries != null && { max_retries: queue.maxRetries },
5653
- ...queue.maxConcurrency != null && { max_concurrency: queue.maxConcurrency },
5654
- ...queue.retryDelay != null && { retry_delay: queue.retryDelay }
5304
+ ...queue.maxBatchSize !== null && queue.maxBatchSize !== void 0 && { max_batch_size: queue.maxBatchSize },
5305
+ ...queue.maxBatchTimeout !== null && queue.maxBatchTimeout !== void 0 && { max_batch_timeout: queue.maxBatchTimeout },
5306
+ ...queue.maxRetries !== null && queue.maxRetries !== void 0 && { max_retries: queue.maxRetries },
5307
+ ...queue.maxConcurrency !== null && queue.maxConcurrency !== void 0 && { max_concurrency: queue.maxConcurrency },
5308
+ ...queue.retryDelay !== null && queue.retryDelay !== void 0 && { retry_delay: queue.retryDelay }
5655
5309
  })),
5656
5310
  reconcileVoidOwned: true
5657
5311
  } } : {}
@@ -5818,7 +5472,7 @@ async function runCloudflareDeploy(root, options, cliLog, deps = {}) {
5818
5472
  return exit(1);
5819
5473
  }
5820
5474
  const detectedFramework = detectFramework(root);
5821
- const frameworkPreset = detectedFramework ? FRAMEWORK_PRESETS[detectedFramework.name] : void 0;
5475
+ const frameworkPreset = detectedFramework && hasOwnKey(FRAMEWORK_PRESETS, detectedFramework.name) ? FRAMEWORK_PRESETS[detectedFramework.name] : void 0;
5822
5476
  cliLog.info("cloudflare_deploy_start", { provision: options.provision === true ? true : void 0 });
5823
5477
  if (isNodeTarget(voidConfig.target)) {
5824
5478
  log$1.error([
@@ -5975,7 +5629,7 @@ async function runFrameworkDeploy(root, config, client, detected, fwPreset, void
5975
5629
  const wrapperFeatures = {
5976
5630
  crons: rawJobs,
5977
5631
  queues: rawQueues,
5978
- hasMigrations: validatedMigrations != null && validatedMigrations.length > 0,
5632
+ hasMigrations: validatedMigrations !== null && validatedMigrations !== void 0 && validatedMigrations.length > 0,
5979
5633
  migrationDialect: dialect
5980
5634
  };
5981
5635
  let actualWorkerDir = workerDir;
@@ -6060,6 +5714,7 @@ async function runFrameworkDeploy(root, config, client, detected, fwPreset, void
6060
5714
  gitMetadata,
6061
5715
  preflightUsed: skipped > 0,
6062
5716
  workerFiles,
5717
+ root,
6063
5718
  spinner: s,
6064
5719
  cliLog
6065
5720
  });
@@ -6077,6 +5732,12 @@ async function runFrameworkDeploy(root, config, client, detected, fwPreset, void
6077
5732
  cleanupWrapper(root);
6078
5733
  warnUnpublishedRouting(result);
6079
5734
  printDeploySuccess(result.published !== false);
5735
+ await printDeploySecurityNotice({
5736
+ client,
5737
+ ...config,
5738
+ deploymentId: result.deployment,
5739
+ cliLog
5740
+ });
6080
5741
  }
6081
5742
  // src/cli/deploy-managed-full.ts
6082
5743
  async function runFullDeploy(root, config, client, voidConfig, fwPreset, skipBuild, gitMetadata, detected, cliLog, skipMigrations) {
@@ -6110,14 +5771,14 @@ async function runFullDeploy(root, config, client, voidConfig, fwPreset, skipBui
6110
5771
  let assetsPrefix = "assets";
6111
5772
  const clientManifestPath = join(distDir, "client", ".vite", "manifest.json");
6112
5773
  if (existsSync(clientManifestPath)) {
6113
- const manifest = JSON.parse(readFileSync(clientManifestPath, "utf-8"));
5774
+ const manifest = JSON.parse(readFileSync(clientManifestPath, "utf8"));
6114
5775
  for (const entry of Object.values(manifest)) if (entry.file?.includes("/")) {
6115
5776
  const dir = entry.file.slice(0, entry.file.indexOf("/"));
6116
5777
  if (dir !== "assets") assetsPrefix = dir;
6117
5778
  break;
6118
5779
  }
6119
5780
  }
6120
- const isFrameworkMode = detected != null;
5781
+ const isFrameworkMode = detected !== null && detected !== void 0;
6121
5782
  if (voidConfig.output === "static" && !isFrameworkMode) {
6122
5783
  const result = isNodeTarget(voidConfig.target) ? await prerenderPagesNode({
6123
5784
  root,
@@ -6311,7 +5972,7 @@ async function runFullDeploy(root, config, client, voidConfig, fwPreset, skipBui
6311
5972
  const wrapperFeatures = {
6312
5973
  crons: rawJobs,
6313
5974
  queues: rawQueues,
6314
- hasMigrations: validatedMigrations != null && validatedMigrations.length > 0,
5975
+ hasMigrations: validatedMigrations !== null && validatedMigrations !== void 0 && validatedMigrations.length > 0,
6315
5976
  migrationDialect: dialect
6316
5977
  };
6317
5978
  if (needsWrapper(wrapperFeatures)) {
@@ -6336,6 +5997,7 @@ async function runFullDeploy(root, config, client, voidConfig, fwPreset, skipBui
6336
5997
  gitMetadata,
6337
5998
  preflightUsed: skipped > 0,
6338
5999
  workerFiles,
6000
+ root,
6339
6001
  spinner: s,
6340
6002
  cliLog
6341
6003
  });
@@ -6353,6 +6015,12 @@ async function runFullDeploy(root, config, client, voidConfig, fwPreset, skipBui
6353
6015
  }), result.url);
6354
6016
  warnUnpublishedRouting(result);
6355
6017
  printDeploySuccess(result.published !== false);
6018
+ await printDeploySecurityNotice({
6019
+ client,
6020
+ ...config,
6021
+ deploymentId: result.deployment,
6022
+ cliLog
6023
+ });
6356
6024
  }
6357
6025
  // src/cli/github-oidc.ts
6358
6026
  /**
@@ -6493,23 +6161,20 @@ function assertInstalledVoidMatchesCli(root) {
6493
6161
  * ` -> `.
6494
6162
  */
6495
6163
  function formatErrorNodeInline(node, depth = 0) {
6496
- if (node == null || typeof node !== "object") return String(node);
6497
- const message = node.message == null ? "" : String(node.message);
6164
+ if (node === null || node === void 0 || typeof node !== "object") return String(node);
6165
+ const message = String(node.message ?? "");
6498
6166
  if (depth > 5) return message;
6499
6167
  let head = node.name ? `${String(node.name)}: ${message}` : message;
6500
6168
  const tags = [];
6501
6169
  if (node.code !== void 0) tags.push(`code=${node.code}`);
6502
6170
  if (node.errno !== void 0) tags.push(`errno=${node.errno}`);
6503
6171
  if (tags.length > 0) head = `${head} (${tags.join(" ")})`;
6504
- if (node.cause != null) return `${head} -> ${formatErrorNodeInline(node.cause, depth + 1)}`;
6172
+ const { cause } = node;
6173
+ if (cause !== null && cause !== void 0) return `${head} -> ${formatErrorNodeInline(cause, depth + 1)}`;
6505
6174
  return head;
6506
6175
  }
6507
- /**
6508
- * Walk `err.cause` up to 6 levels and return a plain JSON-friendly chain.
6509
- * Skips stack traces deliberately — keeps output line-oriented and readable.
6510
- */
6511
6176
  function describeErrorChain(err, depth = 0) {
6512
- if (depth > 5 || err == null) return String(err);
6177
+ if (depth > 5 || err === null || err === void 0) return String(err);
6513
6178
  if (err instanceof Error) {
6514
6179
  const node = {
6515
6180
  name: err.name,
@@ -6520,7 +6185,7 @@ function describeErrorChain(err, depth = 0) {
6520
6185
  const errno = err.errno;
6521
6186
  if (errno !== void 0) node.errno = errno;
6522
6187
  const cause = err.cause;
6523
- if (cause != null) {
6188
+ if (cause !== null && cause !== void 0) {
6524
6189
  const sub = describeErrorChain(cause, depth + 1);
6525
6190
  if (typeof sub === "object") node.cause = sub;
6526
6191
  else node.cause = { message: sub };
@@ -6534,7 +6199,7 @@ function formatStderrLine(level, msg, err, fields) {
6534
6199
  if (fields) for (const [k, v] of Object.entries(fields)) {
6535
6200
  if (v === void 0) continue;
6536
6201
  let s;
6537
- if (v == null || typeof v === "number" || typeof v === "boolean") s = String(v);
6202
+ if (v === null || typeof v === "number" || typeof v === "boolean") s = String(v);
6538
6203
  else if (typeof v === "string") s = v.length > 200 ? `${v.slice(0, 200)}...` : v;
6539
6204
  else try {
6540
6205
  s = JSON.stringify(v);
@@ -6557,7 +6222,7 @@ function openDeployLog(opts) {
6557
6222
  try {
6558
6223
  const dir = join(homedir(), ".void", "logs");
6559
6224
  mkdirSync(dir, { recursive: true });
6560
- const ts = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
6225
+ const ts = (/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-");
6561
6226
  const suffix = randomBytes(3).toString("hex");
6562
6227
  const filePath = join(dir, `deploy-${ts}-${process.pid}-${suffix}.jsonl`);
6563
6228
  fd = openSync(filePath, "wx", 384);
@@ -6668,14 +6333,14 @@ const BEARER_RE = /\b(Bearer\s+)\S+/g;
6668
6333
  */
6669
6334
  const SECRET_KEY_RE = /token|secret|password|passwd|credential|cookie|signature|api[-_]?key|private[-_]?key/i;
6670
6335
  function redact(text) {
6671
- return text.replace(SIGNED_QUERY_RE, "$1[redacted]").replace(BEARER_RE, "$1[redacted]");
6336
+ return text.replaceAll(SIGNED_QUERY_RE, "$1[redacted]").replaceAll(BEARER_RE, "$1[redacted]");
6672
6337
  }
6673
6338
  function truncate(text, max) {
6674
6339
  return text.length <= max ? text : `${text.slice(0, max)}...`;
6675
6340
  }
6676
6341
  /** Collapse every run of whitespace so one record always renders as one line. */
6677
6342
  function oneLine(text) {
6678
- return text.replace(/\s+/g, " ").trim();
6343
+ return text.replaceAll(/\s+/g, " ").trim();
6679
6344
  }
6680
6345
  function stringifyValue(value) {
6681
6346
  if (typeof value === "string") return value;
@@ -6772,7 +6437,7 @@ function buildDeployLogSummary(path) {
6772
6437
  if (!path) return null;
6773
6438
  let text;
6774
6439
  try {
6775
- text = readFileSync(path, "utf-8");
6440
+ text = readFileSync(path, "utf8");
6776
6441
  } catch {
6777
6442
  return null;
6778
6443
  }
@@ -6943,7 +6608,7 @@ async function runManagedDeploy(root, options, cliLog) {
6943
6608
  name: detected.name,
6944
6609
  class: detected.class
6945
6610
  });
6946
- const fwPreset = FRAMEWORK_PRESETS[detected.name];
6611
+ const fwPreset = hasOwnKey(FRAMEWORK_PRESETS, detected.name) ? FRAMEWORK_PRESETS[detected.name] : void 0;
6947
6612
  if (detected.class === "b" || detected.class === "c") {
6948
6613
  if (!fwPreset) {
6949
6614
  log$1.error(`No deploy preset found for framework "${detected.name}".`);