void 1.9.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/dist/{account-cmd-BEMOdwtl.mjs → account-cmd-CZhbDfp4.mjs} +3 -3
  2. package/dist/{application-analysis-3VVsflWZ.mjs → application-analysis-Do1WaGAY.mjs} +81 -7
  3. package/dist/{application-routing-CJRlXCc2.mjs → application-routing-DrOFahHO.mjs} +1 -1
  4. package/dist/{routing-assets-DJIVOrCh.mjs → assets-DZBd7yqh.mjs} +1 -1
  5. package/dist/{auth-aMuFOZeI.mjs → auth-YtP6K4J3.mjs} +1 -1
  6. package/dist/{auth-link-B1IynRW5.mjs → auth-link-DFQTA1jN.mjs} +3 -3
  7. package/dist/{auth-router-DVaWJdRB.mjs → auth-router-BOiaDmcQ.mjs} +2 -2
  8. package/dist/{base64-ikl9yBy3.mjs → base64-DwTR12ej.mjs} +1 -1
  9. package/dist/{better-auth-shared-ajs3LNrY.d.mts → better-auth-shared-BqsMzU14.d.mts} +1 -1
  10. package/dist/{better-auth-shared-C7LHvF4L.mjs → better-auth-shared-DRHo5FoG.mjs} +116 -20
  11. package/dist/{build-cmd-Dq8tdqQG.mjs → build-cmd-BCiXgjn9.mjs} +1 -1
  12. package/dist/{cache-DGMnskX7.mjs → cache-CUulshOu.mjs} +1 -1
  13. package/dist/{cancel-deploy-96S5hD1E.mjs → cancel-deploy-BHGZo6KC.mjs} +1 -1
  14. package/dist/cf-build-output-D3_x71H6.mjs +1 -0
  15. package/dist/{cf-build-output-CWNOH-KA.mjs → cf-build-output-bBx1gDll.mjs} +27 -16
  16. package/dist/{cf-config-migrate-Bb-EdAQq.mjs → cf-config-migrate-CHtnM3_C.mjs} +21 -3
  17. package/dist/cli/cli.mjs +1 -1
  18. package/dist/cli/cloudflare-operation-process.mjs +3 -2
  19. package/dist/cli/env-schema-probe.d.mts +1 -1
  20. package/dist/cli/env-schema-probe.mjs +2 -2
  21. package/dist/{cli-main-CQRLxZAu.mjs → cli-main-hM7rhIbB.mjs} +27 -27
  22. package/dist/{client-66c0RLDM.mjs → client-BEYbgqZw.mjs} +1 -1
  23. package/dist/{auth-client-DwCdwKbw.mjs → client-Ypa4Immo.mjs} +1 -1
  24. package/dist/{client-D6w5x7hM.mjs → client-aIv5UQf3.mjs} +3 -3
  25. package/dist/{auth-client-react-CJdeErvM.mjs → client-react-B-ZqH8Ao.mjs} +1 -1
  26. package/dist/{auth-client-solid-BRvgvp6h.mjs → client-solid-D2PSeKLm.mjs} +1 -1
  27. package/dist/{auth-client-svelte-BSqUCEed.mjs → client-svelte-DbJbN7Ey.mjs} +1 -1
  28. package/dist/{auth-client-vue-CPkbRtOO.mjs → client-vue-PBawsrwk.mjs} +1 -1
  29. package/dist/{cloudflare-cmd-BuuHUM4z.mjs → cloudflare-cmd-DLcgInCa.mjs} +1 -1
  30. package/dist/{cloudflare-config-PxbinLLE.mjs → cloudflare-config-BfEfIEuY.mjs} +1 -1
  31. package/dist/{cloudflare-connect-D1QOosLd.mjs → cloudflare-connect-CMcKtA02.mjs} +1 -1
  32. package/dist/{cloudflare-operations-I4t3mt4R.mjs → cloudflare-operations-C5RTQNnh.mjs} +1 -1
  33. package/dist/{cloudflare-operations-G5AObYzF.mjs → cloudflare-operations-DLhn_Bom.mjs} +4 -4
  34. package/dist/{config-DlWQ_hIJ.mjs → config-CbKmMpHK.mjs} +1 -1
  35. package/dist/{config-C1DPf8EK.mjs → config-CtkCfPpv.mjs} +1 -1
  36. package/dist/{config-CCWVY7DY.d.mts → config-DuiDZbq7.d.mts} +3 -2
  37. package/dist/config-entry.d.mts +1 -1
  38. package/dist/{config-CzFdJYNA.mjs → config-qgt863GH.mjs} +7 -2
  39. package/dist/{connect-4uImOwut.mjs → connect-DM3yCNPG.mjs} +4 -4
  40. package/dist/{sandbox-container-BuxhwCgt.mjs → container-CR_tqFtd.mjs} +1 -1
  41. package/dist/{sandbox-container-CZFZdMso.d.mts → container-D584jUxY.d.mts} +1 -1
  42. package/dist/{create-project-BaUzZnLZ.mjs → create-project-BkVGXGNt.mjs} +1 -1
  43. package/dist/{create-project-CQMyzTvK.mjs → create-project-C-hNdYvD.mjs} +1 -1
  44. package/dist/{migration-handler-DCehTlWs.mjs → d1-handler-C1LH2K2s.mjs} +1 -1
  45. package/dist/{db-DEpDeDsi.mjs → db-DQAi7Ckr.mjs} +23 -23
  46. package/dist/{delete-BVD2kI82.mjs → delete-BtVnPGO2.mjs} +1 -1
  47. package/dist/{deploy-Dyeo5soA.mjs → deploy-Cs93Af-d.mjs} +32 -31
  48. package/dist/{deploy-managed-static-Kn73R83A.mjs → deploy-managed-static-CZIx3cc1.mjs} +20 -11
  49. package/dist/deploy-rUunHBNJ.mjs +2 -0
  50. package/dist/{deploy-transport-BpKBs_KR.mjs → deploy-transport-DT-ALuDj.mjs} +2 -2
  51. package/dist/deploy.mjs +7 -6
  52. package/dist/{dev-inbox-CUUS6iUg.mjs → dev-inbox-BiamQEAa.mjs} +2 -2
  53. package/dist/{dispatch-BBfb519j.mjs → dispatch-DPEuEblR.mjs} +1 -1
  54. package/dist/{domain-BTIdyUVk.mjs → domain-cOhYYiHU.mjs} +2 -2
  55. package/dist/{email-DvrS-I0U.mjs → email-CnnDqvXV.mjs} +7 -7
  56. package/dist/{email-cloudflare-DAGpgzY1.mjs → email-cloudflare-CCIoQueP.mjs} +4 -4
  57. package/dist/email-pattern-BYr-EFq5.mjs +91 -0
  58. package/dist/{env-D7vORwpn.mjs → env-5bphL5mV.mjs} +3 -3
  59. package/dist/env-registry-BbCdIOXP.mjs +10 -0
  60. package/dist/{env-validation-DeYNRp1d.mjs → env-validation-DfJ9Fzfa.mjs} +2 -2
  61. package/dist/{env-validation-DKDcpxbt.mjs → env-validation-ly_Q9Kgd.mjs} +1 -1
  62. package/dist/{error-pages-COVBnzK7.mjs → error-pages-QNeBXiRR.mjs} +6 -6
  63. package/dist/{fetch-CAIVkLvW.mjs → fetch-DdK9eGin.mjs} +3 -3
  64. package/dist/{fetch-error-DmlRM6e4.mjs → fetch-error-EXhBRoxI.mjs} +1 -1
  65. package/dist/{fetch-stream-6Op0qlLd.mjs → fetch-stream-DQAavFdm.mjs} +4 -4
  66. package/dist/gen-BQ7itmK7.mjs +1 -0
  67. package/dist/{gen-DimkGNve.mjs → gen-CjcH6DJS.mjs} +4 -3
  68. package/dist/{github-cmd-D-zs6VQr.mjs → github-cmd-CVDLb51-.mjs} +1 -1
  69. package/dist/{handler-C9SnmeW1.mjs → handler-w_FAiIRu.mjs} +5 -5
  70. package/dist/{headers-Q0kZDpk8.mjs → headers-Cyr87J6Z.mjs} +1 -1
  71. package/dist/{help-Cgdcd-SG.mjs → help-B1cH8518.mjs} +8 -1
  72. package/dist/help-Ld6XFol7.mjs +1 -0
  73. package/dist/{env-helpers-Dj_SIwPu.mjs → helpers-_OdpnjkJ.mjs} +1 -1
  74. package/dist/{inbound-C2H6Dzz1.mjs → inbound--OF7zkwX.mjs} +4 -4
  75. package/dist/{sandbox-DE1WsxuB.d.mts → index-BESZTC1z.d.mts} +2 -2
  76. package/dist/{ws-C2zy0QBf.d.mts → index-BTmhCDbw.d.mts} +36 -7
  77. package/dist/{handler-6fzr_ikp.d.mts → index-BXdP39qx.d.mts} +4 -6
  78. package/dist/{live-DBybyDt0.d.mts → index-CmqHYj2R.d.mts} +2 -2
  79. package/dist/index.d.mts +4 -4
  80. package/dist/index.mjs +62 -48
  81. package/dist/{info-BbxQ34kk.mjs → info-BE3snw2_.mjs} +4 -4
  82. package/dist/{init-zyRj3QRw.mjs → init-BrS5MAiJ.mjs} +67 -42
  83. package/dist/{limits-CrHLm5Tk.mjs → limits-BCoQLpn3.mjs} +1 -1
  84. package/dist/{link-DAFXuIER.mjs → link-BbzyrCBD.mjs} +2 -2
  85. package/dist/{list-BTIcC3W9.mjs → list-DmppHjVc.mjs} +2 -2
  86. package/dist/{live-Dw7NF1t2.mjs → live-DvtxTUhW.mjs} +5 -5
  87. package/dist/{load-user-env-ztmIyiLx.mjs → load-user-env-BltIJLtl.mjs} +1 -1
  88. package/dist/{local-d1-BnVb7Fem.mjs → local-d1-DLxsKmkw.mjs} +1 -1
  89. package/dist/login-C-n1rA0s.mjs +1 -0
  90. package/dist/{login-DOE-MkeK.mjs → login-Cihxnu7m.mjs} +2 -2
  91. package/dist/{logs-CUsjihc3.mjs → logs-BCgLeLNd.mjs} +2 -2
  92. package/dist/migrate-CKn30rmw.mjs +1 -0
  93. package/dist/{migrate-DtoKdGas.mjs → migrate-DOK67gE-.mjs} +3 -3
  94. package/dist/{auth-migrations-DDeifS3v.mjs → migrations-ByS7r3HV.mjs} +1 -1
  95. package/dist/{mime-CtP6-qAF.mjs → mime-BGoZ8ZLL.mjs} +1 -1
  96. package/dist/{mysql-migration-sql-CI9VTwjt.mjs → mysql-sql-SlpS6OMg.mjs} +3 -3
  97. package/dist/nitro.mjs +3 -3
  98. package/dist/{node-D9dPyUr0.mjs → node-qXD3FbIU.mjs} +2 -2
  99. package/dist/{operator-ai-logging-DFTEp81Z.mjs → operator-ai-logging-CNuX5uKg.mjs} +1 -1
  100. package/dist/operator-cmd-BnLoIO2A.mjs +1 -0
  101. package/dist/{operator-cmd-CQOQrUiO.mjs → operator-cmd-D0vSUVle.mjs} +4 -4
  102. package/dist/pages/client.d.mts +4 -4
  103. package/dist/pages/client.mjs +4 -4
  104. package/dist/pages/index.d.mts +3 -3
  105. package/dist/pages/index.mjs +4 -4
  106. package/dist/pages/islands-plugin.d.mts +1 -1
  107. package/dist/pages/islands-plugin.mjs +1 -1
  108. package/dist/pages/prefetch.d.mts +1 -1
  109. package/dist/pages/prefetch.mjs +1 -1
  110. package/dist/pages/protocol.d.mts +3 -3
  111. package/dist/pages/protocol.mjs +3 -3
  112. package/dist/{pg-DoyPxa_X.mjs → pgpass-CEtnBOZO.mjs} +1 -1
  113. package/dist/{platform-args-DtpHS_75.mjs → platform-args-DQSMW4EP.mjs} +24 -5
  114. package/dist/platform-args-Rgp86xa7.mjs +1 -0
  115. package/dist/{platform-auth-config-fLwIS5VG.mjs → platform-auth-config-V2ifSLQ-.mjs} +4 -4
  116. package/dist/{platform-auth-protection-BTRI_YwD.mjs → platform-auth-protection-BybVCUzi.mjs} +2 -2
  117. package/dist/{platform-auth-recovery-DPK2Mvmo.mjs → platform-auth-recovery-kH1-h8Ch.mjs} +2 -2
  118. package/dist/{platform-cmd-BLy5uCa-.mjs → platform-cmd-B1jtqXnu.mjs} +1 -1
  119. package/dist/{platform-cmd-HS_FSthn.mjs → platform-cmd-BHWdh1Hx.mjs} +5 -5
  120. package/dist/{platform-domain-CHpcq_qg.mjs → platform-domain-DB_KpVhg.mjs} +2 -2
  121. package/dist/{platform-lifecycle-B6LUBwjS.mjs → platform-lifecycle-BoOTmH6H.mjs} +1 -1
  122. package/dist/{platform-lifecycle-D2RS7DE0.mjs → platform-lifecycle-C6fUuj4y.mjs} +146 -71
  123. package/dist/{platform-management-C-T0ch4y.mjs → platform-management-7Bf_OgS5.mjs} +1 -1
  124. package/dist/{platform-management-d3ETv3Dw.mjs → platform-management-B8-pOxoJ.mjs} +9 -2
  125. package/dist/{platform-plans-config-B7yJQKf7.mjs → platform-plans-config-iczSDkQK.mjs} +1 -1
  126. package/dist/{platform-recovery-DS5CAsly.mjs → platform-recovery-ZAXin6WK.mjs} +2 -2
  127. package/dist/{platform-setup-Casiffqj.mjs → platform-setup-CpcHLI-0.mjs} +1 -0
  128. package/dist/{plugin-inference-DZHmVe1f.mjs → plugin-inference-BGamcCqB.mjs} +1 -2
  129. package/dist/{prefetch-Dx2jIbtg.mjs → prefetch-C_OUvg5g.mjs} +4 -0
  130. package/dist/{prefetch-NdNeubbH.d.mts → prefetch-UINRrqL4.d.mts} +1 -0
  131. package/dist/{prepare-AVM4Hj3T.mjs → prepare-BrAkXTTB.mjs} +3 -3
  132. package/dist/prepare-CI7_C9Xf.mjs +1 -0
  133. package/dist/{prepare-DMk8NAO-.mjs → prepare-Cjt6EM0d.mjs} +1 -1
  134. package/dist/{project-cmd-TQKAOTMV.mjs → project-cmd-wtCuc8Ln.mjs} +15 -15
  135. package/dist/{project-team-B1OKeb-T.mjs → project-team-CZFvPIJ-.mjs} +1 -1
  136. package/dist/{project-token-RW_wpmN-.mjs → project-token-C3TxkWeC.mjs} +1 -1
  137. package/dist/{project-zero-trust-TNc66p0_.mjs → project-zero-trust-DrRyAHW1.mjs} +1 -1
  138. package/dist/{protocol-YS3tbxWE.d.mts → protocol-BlAiF-hc.d.mts} +5 -3
  139. package/dist/{email-protocol-DTs_TjCS.mjs → protocol-ChF3kDjf.mjs} +1 -1
  140. package/dist/{protocol-a3ZUQq5W.mjs → protocol-W5EQcIzN.mjs} +40 -20
  141. package/dist/{provision-bgQTi5QZ.mjs → provision-CknEbPuw.mjs} +3 -2
  142. package/dist/{provision-BLdkpFT4.mjs → provision-DdWqRmmr.mjs} +1 -1
  143. package/dist/{env-public-DtJL_hZq.d.mts → public-B80SwOFp.d.mts} +14 -9
  144. package/dist/{env-raw-e8qgqAzQ.mjs → raw-7pQirZpQ.mjs} +1 -1
  145. package/dist/raw-CtfNvKyY.d.mts +3 -0
  146. package/dist/{requests-Cj15-yrI.mjs → requests-FaA9M3RX.mjs} +1 -1
  147. package/dist/{response-HmNjB30w.mjs → response-CyXsGfOy.mjs} +1 -1
  148. package/dist/{rollback-CYnkng7B.mjs → rollback-DM6pZ23Y.mjs} +2 -2
  149. package/dist/{route-types-C6eAOmOj.mjs → route-types-CrODgORq.mjs} +36 -6
  150. package/dist/{route-url-CfCR4oMj.mjs → route-url-BBdkU7rb.mjs} +1 -1
  151. package/dist/{route-url-C3JwYrER.d.mts → route-url-Di1kB8D_.d.mts} +6 -2
  152. package/dist/routes-stub.d.mts +1 -3
  153. package/dist/routes-stub.mjs +1 -1
  154. package/dist/{runner-mysql-BXfcQQj3.mjs → runner-mysql-CJ-HyqxV.mjs} +1 -1
  155. package/dist/{runner-mysql-CHvEg_sy.mjs → runner-mysql-C_PrAUTm.mjs} +1 -1
  156. package/dist/runtime/{ai.mjs → ai/index.mjs} +6 -6
  157. package/dist/runtime/{better-auth.d.mts → auth/better-auth-d1.d.mts} +1 -1
  158. package/dist/runtime/{better-auth.mjs → auth/better-auth-d1.mjs} +3 -3
  159. package/dist/runtime/{better-auth-mysql.d.mts → auth/better-auth-mysql.d.mts} +1 -1
  160. package/dist/runtime/{better-auth-mysql.mjs → auth/better-auth-mysql.mjs} +3 -3
  161. package/dist/runtime/{better-auth-pg.d.mts → auth/better-auth-postgres.d.mts} +1 -1
  162. package/dist/runtime/{better-auth-pg.mjs → auth/better-auth-postgres.mjs} +4 -4
  163. package/dist/runtime/auth/client-react.d.mts +2 -0
  164. package/dist/runtime/auth/client-react.mjs +1 -0
  165. package/dist/runtime/auth/client-solid.d.mts +2 -0
  166. package/dist/runtime/auth/client-solid.mjs +1 -0
  167. package/dist/runtime/auth/client-svelte.d.mts +2 -0
  168. package/dist/runtime/auth/client-svelte.mjs +1 -0
  169. package/dist/runtime/auth/client-vue.d.mts +2 -0
  170. package/dist/runtime/auth/client-vue.mjs +1 -0
  171. package/dist/runtime/auth/client.d.mts +2 -0
  172. package/dist/runtime/auth/client.mjs +1 -0
  173. package/dist/runtime/{auth.d.mts → auth/index.d.mts} +1 -1
  174. package/dist/runtime/auth/index.mjs +1 -0
  175. package/dist/runtime/{fetch-server.d.mts → client/fetch-server.d.mts} +1 -1
  176. package/dist/runtime/{fetch-server.mjs → client/fetch-server.mjs} +3 -3
  177. package/dist/runtime/client/fetch-stream.d.mts +3 -0
  178. package/dist/runtime/client/fetch-stream.mjs +3 -0
  179. package/dist/runtime/{fetch.d.mts → client/fetch.d.mts} +1 -1
  180. package/dist/runtime/client/fetch.mjs +3 -0
  181. package/dist/runtime/client/index.d.mts +5 -0
  182. package/dist/runtime/client/index.mjs +5 -0
  183. package/dist/runtime/client/react.d.mts +5 -0
  184. package/dist/runtime/client/react.mjs +5 -0
  185. package/dist/runtime/client/solid.d.mts +5 -0
  186. package/dist/runtime/client/solid.mjs +5 -0
  187. package/dist/runtime/client/svelte.d.mts +5 -0
  188. package/dist/runtime/client/svelte.mjs +5 -0
  189. package/dist/runtime/client/vue.d.mts +5 -0
  190. package/dist/runtime/client/vue.mjs +5 -0
  191. package/dist/runtime/{db.mjs → db/index.mjs} +2 -2
  192. package/dist/runtime/{migration-handler.d.mts → db/migrations/d1-handler.d.mts} +1 -1
  193. package/dist/runtime/{migration-handler.mjs → db/migrations/d1-handler.mjs} +1 -1
  194. package/dist/runtime/{migration-handler-mysql.d.mts → db/migrations/mysql-handler.d.mts} +1 -1
  195. package/dist/runtime/{migration-handler-mysql.mjs → db/migrations/mysql-handler.mjs} +2 -2
  196. package/dist/runtime/{migration-handler-pg.d.mts → db/migrations/postgres-handler.d.mts} +1 -1
  197. package/dist/runtime/{migration-handler-pg.mjs → db/migrations/postgres-handler.mjs} +2 -2
  198. package/dist/runtime/{seed.mjs → db/seed.mjs} +1 -1
  199. package/dist/runtime/{durable.mjs → durable/index.mjs} +3 -3
  200. package/dist/runtime/{email.d.mts → email/index.d.mts} +1 -1
  201. package/dist/runtime/{email.mjs → email/index.mjs} +6 -6
  202. package/dist/runtime/{email-protocol.mjs → email/protocol.mjs} +1 -1
  203. package/dist/runtime/email/testing.mjs +4 -4
  204. package/dist/runtime/{env-public-client.d.mts → env/public-client.d.mts} +1 -1
  205. package/dist/runtime/{env-public-client.mjs → env/public-client.mjs} +2 -2
  206. package/dist/runtime/env/public.d.mts +4 -0
  207. package/dist/runtime/{env-public.mjs → env/public.mjs} +144 -75
  208. package/dist/runtime/{env.d.mts → env/runtime.d.mts} +1 -2
  209. package/dist/runtime/{env.mjs → env/runtime.mjs} +1 -1
  210. package/dist/runtime/{handler.d.mts → handler/index.d.mts} +1 -1
  211. package/dist/runtime/{handler.mjs → handler/index.mjs} +2 -2
  212. package/dist/runtime/{response.mjs → handler/response.mjs} +1 -1
  213. package/dist/runtime/handler/validator.d.mts +2 -0
  214. package/dist/runtime/handler/validator.mjs +1 -0
  215. package/dist/runtime/{isr.mjs → isr/index.mjs} +2 -2
  216. package/dist/runtime/{kv.mjs → kv/index.mjs} +2 -2
  217. package/dist/runtime/{limits.d.mts → limits/index.d.mts} +1 -1
  218. package/dist/runtime/{limits.mjs → limits/index.mjs} +1 -1
  219. package/dist/runtime/{live-client.d.mts → live/client.d.mts} +2 -2
  220. package/dist/runtime/{live-client.mjs → live/client.mjs} +1 -1
  221. package/dist/runtime/{live.d.mts → live/index.d.mts} +1 -1
  222. package/dist/runtime/live/index.mjs +1 -0
  223. package/dist/runtime/{live-server.mjs → live/server.mjs} +3 -3
  224. package/dist/runtime/{log.mjs → log/index.mjs} +1 -1
  225. package/dist/runtime/queues/index.d.mts +2 -0
  226. package/dist/runtime/{queues.mjs → queues/index.mjs} +2 -2
  227. package/dist/runtime/remote/binding-handler.mjs +1 -1
  228. package/dist/runtime/remote/index.mjs +1 -1
  229. package/dist/runtime/{routing.d.mts → routing/index.d.mts} +7 -2
  230. package/dist/runtime/{routing.mjs → routing/index.mjs} +51 -17
  231. package/dist/runtime/{route-url.d.mts → routing/route-url.d.mts} +1 -1
  232. package/dist/runtime/{route-url.mjs → routing/route-url.mjs} +1 -1
  233. package/dist/runtime/{sandbox-container.d.mts → sandbox/container.d.mts} +1 -1
  234. package/dist/runtime/{sandbox-container.mjs → sandbox/container.mjs} +1 -1
  235. package/dist/runtime/{sandbox.d.mts → sandbox/index.d.mts} +2 -2
  236. package/dist/runtime/{sandbox.mjs → sandbox/index.mjs} +5 -5
  237. package/dist/runtime/{sse-client.d.mts → sse/client.d.mts} +1 -1
  238. package/dist/runtime/{sse-client.mjs → sse/client.mjs} +1 -1
  239. package/dist/runtime/sse/index.mjs +1 -0
  240. package/dist/runtime/{storage.mjs → storage/index.mjs} +2 -2
  241. package/dist/runtime/ws/index.d.mts +2 -0
  242. package/dist/runtime/{ws.mjs → ws/index.mjs} +3 -3
  243. package/dist/runtime/ws/room.d.mts +30 -0
  244. package/dist/runtime/ws/room.mjs +37 -0
  245. package/dist/runtime/{ws-server.d.mts → ws/server.d.mts} +18 -3
  246. package/dist/runtime/ws/server.mjs +1 -0
  247. package/dist/{env-DtKg5G26.mjs → runtime-zDDinDI5.mjs} +2 -2
  248. package/dist/{dist-BWNkVq50.mjs → scan-tDExXbA1.mjs} +978 -11
  249. package/dist/{secret-BSf7dgg_.mjs → secret-DDNLIQOT.mjs} +3 -3
  250. package/dist/{runtime/ws-server.mjs → server-CfUbeOjx.mjs} +60 -19
  251. package/dist/{sse-CxR30yMF.mjs → sse-BXnTfcf3.mjs} +1 -1
  252. package/dist/{static-asset-marker-DsQKz6lt.mjs → static-asset-marker-lxYeKvFP.mjs} +2 -2
  253. package/dist/{types-IPut3_Yx.d.mts → types-FDH6NuY1.d.mts} +0 -5
  254. package/dist/{validation-error-uAAjlsiW.mjs → validation-error-CtcAvyI7.mjs} +1 -1
  255. package/dist/{validator-8-NZs2Xr.mjs → validator-Duafcnh7.mjs} +1 -1
  256. package/dist/{version-metadata-CeftH0fQ.mjs → version-metadata-DEmItNdS.mjs} +1 -1
  257. package/dist/{wrangler-B1gkT_wC.mjs → wrangler-D1zq1rXr.mjs} +20 -3
  258. package/dist/wrangler-DM3GOqck.mjs +1 -0
  259. package/dist/{wrapper-xJ4LP5A7.mjs → wrapper-C2gMY432.mjs} +11 -6
  260. package/docs/guide/ai.md +3 -2
  261. package/docs/guide/auth.md +19 -14
  262. package/docs/guide/database.md +0 -7
  263. package/docs/guide/email/sending.md +0 -1
  264. package/docs/guide/pages-routing/errors.md +23 -1
  265. package/docs/guide/pages-routing/head.md +15 -10
  266. package/docs/guide/pages-routing/loaders.md +19 -0
  267. package/docs/guide/pages-routing/markdown.md +14 -10
  268. package/docs/guide/pages-routing/view-transitions.md +0 -16
  269. package/docs/guide/platform/administration/plans.md +13 -13
  270. package/docs/guide/platform/administration/projects.md +14 -4
  271. package/docs/guide/platform/installation/ci.md +5 -2
  272. package/docs/guide/platform/installation/maintenance.md +5 -2
  273. package/docs/guide/platform/installation/prerequisites.md +1 -1
  274. package/docs/guide/platform/installation/setup.md +12 -0
  275. package/docs/guide/queues.md +9 -5
  276. package/docs/guide/storage.md +0 -4
  277. package/docs/guide/type-safety.md +18 -12
  278. package/docs/guide/websockets.md +72 -1
  279. package/docs/integrations/frameworks/overview.md +7 -0
  280. package/docs/integrations/hono.md +4 -3
  281. package/docs/reference/api/auth.md +8 -8
  282. package/docs/reference/api/deploy.md +1 -1
  283. package/docs/reference/api/pages.md +2 -0
  284. package/docs/reference/api.md +2 -1
  285. package/docs/reference/cli/platform-config.md +33 -7
  286. package/docs/reference/cli/platform-installation.md +4 -1
  287. package/docs/reference/cli/platform-users.md +48 -35
  288. package/docs/reference/cli.md +2 -2
  289. package/docs/reference/config.md +13 -1
  290. package/package.json +165 -160
  291. package/schema.json +12 -1
  292. package/dist/cf-build-output-DUZnAeZ1.mjs +0 -1
  293. package/dist/deploy-Dr_Qamzw.mjs +0 -2
  294. package/dist/email-BHY72ixO.mjs +0 -165
  295. package/dist/gen-DmEeVEs4.mjs +0 -1
  296. package/dist/help-Cp3K5m1w.mjs +0 -1
  297. package/dist/login-DBs8JuSl.mjs +0 -1
  298. package/dist/migrate-BYhoIK9R.mjs +0 -1
  299. package/dist/operator-cmd-xCACDtT1.mjs +0 -1
  300. package/dist/platform-args-DSi4_M8n.mjs +0 -1
  301. package/dist/prepare-BSXKz6m8.mjs +0 -1
  302. package/dist/runtime/auth-client-react.d.mts +0 -2
  303. package/dist/runtime/auth-client-react.mjs +0 -1
  304. package/dist/runtime/auth-client-solid.d.mts +0 -2
  305. package/dist/runtime/auth-client-solid.mjs +0 -1
  306. package/dist/runtime/auth-client-svelte.d.mts +0 -2
  307. package/dist/runtime/auth-client-svelte.mjs +0 -1
  308. package/dist/runtime/auth-client-vue.d.mts +0 -2
  309. package/dist/runtime/auth-client-vue.mjs +0 -1
  310. package/dist/runtime/auth-client.d.mts +0 -2
  311. package/dist/runtime/auth-client.mjs +0 -1
  312. package/dist/runtime/auth.mjs +0 -1
  313. package/dist/runtime/client-react.d.mts +0 -5
  314. package/dist/runtime/client-react.mjs +0 -5
  315. package/dist/runtime/client-solid.d.mts +0 -5
  316. package/dist/runtime/client-solid.mjs +0 -5
  317. package/dist/runtime/client-svelte.d.mts +0 -5
  318. package/dist/runtime/client-svelte.mjs +0 -5
  319. package/dist/runtime/client-vue.d.mts +0 -5
  320. package/dist/runtime/client-vue.mjs +0 -5
  321. package/dist/runtime/client.d.mts +0 -5
  322. package/dist/runtime/client.mjs +0 -5
  323. package/dist/runtime/env-public.d.mts +0 -4
  324. package/dist/runtime/fetch-stream.d.mts +0 -3
  325. package/dist/runtime/fetch-stream.mjs +0 -3
  326. package/dist/runtime/fetch.mjs +0 -3
  327. package/dist/runtime/live.mjs +0 -1
  328. package/dist/runtime/queues.d.mts +0 -2
  329. package/dist/runtime/sse.mjs +0 -1
  330. package/dist/runtime/validator.d.mts +0 -2
  331. package/dist/runtime/validator.mjs +0 -1
  332. package/dist/runtime/ws.d.mts +0 -2
  333. package/dist/scan-4YOxDaw2.mjs +0 -970
  334. package/dist/wrangler-fNGvPTlO.mjs +0 -1
  335. /package/dist/{auth-client-6-Ft9i9T.d.mts → client-6-Ft9i9T.d.mts} +0 -0
  336. /package/dist/{auth-client-react-DvQLe5Zb.d.mts → client-react-DvQLe5Zb.d.mts} +0 -0
  337. /package/dist/{auth-client-solid-P9pEtKGp.d.mts → client-solid-P9pEtKGp.d.mts} +0 -0
  338. /package/dist/{auth-client-svelte-B5j8irT6.d.mts → client-svelte-B5j8irT6.d.mts} +0 -0
  339. /package/dist/{auth-client-vue-BEiAfavk.d.mts → client-vue-BEiAfavk.d.mts} +0 -0
  340. /package/dist/{migration-handler-D8mDx3Ew.d.mts → d1-handler-D8mDx3Ew.d.mts} +0 -0
  341. /package/dist/{env-helpers-U56xuFgL.d.mts → helpers-U56xuFgL.d.mts} +0 -0
  342. /package/dist/{auth-CV9kXHKe.d.mts → index-CV9kXHKe.d.mts} +0 -0
  343. /package/dist/{queues-DdM42xXW.d.mts → index-DdM42xXW.d.mts} +0 -0
  344. /package/dist/{limits-_xIf5z_P.d.mts → index-_xIf5z_P.d.mts} +0 -0
  345. /package/dist/runtime/{ai.d.mts → ai/index.d.mts} +0 -0
  346. /package/dist/runtime/{db.d.mts → db/index.d.mts} +0 -0
  347. /package/dist/runtime/{db-mysql.d.mts → db/mysql.d.mts} +0 -0
  348. /package/dist/runtime/{db-mysql.mjs → db/mysql.mjs} +0 -0
  349. /package/dist/runtime/{db-pg.d.mts → db/postgres.d.mts} +0 -0
  350. /package/dist/runtime/{db-pg.mjs → db/postgres.mjs} +0 -0
  351. /package/dist/runtime/{schema-d1.d.mts → db/schema/d1.d.mts} +0 -0
  352. /package/dist/runtime/{schema-d1.mjs → db/schema/d1.mjs} +0 -0
  353. /package/dist/runtime/{schema-mysql.d.mts → db/schema/mysql.d.mts} +0 -0
  354. /package/dist/runtime/{schema-mysql.mjs → db/schema/mysql.mjs} +0 -0
  355. /package/dist/runtime/{schema-pg.d.mts → db/schema/postgres.d.mts} +0 -0
  356. /package/dist/runtime/{schema-pg.mjs → db/schema/postgres.mjs} +0 -0
  357. /package/dist/runtime/{seed.d.mts → db/seed.d.mts} +0 -0
  358. /package/dist/runtime/{drizzle-arktype.d.mts → db/validators/drizzle-arktype.d.mts} +0 -0
  359. /package/dist/runtime/{drizzle-arktype.mjs → db/validators/drizzle-arktype.mjs} +0 -0
  360. /package/dist/runtime/{drizzle-valibot.d.mts → db/validators/drizzle-valibot.d.mts} +0 -0
  361. /package/dist/runtime/{drizzle-valibot.mjs → db/validators/drizzle-valibot.mjs} +0 -0
  362. /package/dist/runtime/{drizzle-zod.d.mts → db/validators/drizzle-zod.d.mts} +0 -0
  363. /package/dist/runtime/{drizzle-zod.mjs → db/validators/drizzle-zod.mjs} +0 -0
  364. /package/dist/runtime/{durable.d.mts → durable/index.d.mts} +0 -0
  365. /package/dist/runtime/{email-protocol.d.mts → email/protocol.d.mts} +0 -0
  366. /package/dist/runtime/{response.d.mts → handler/response.d.mts} +0 -0
  367. /package/dist/runtime/{isr.d.mts → isr/index.d.mts} +0 -0
  368. /package/dist/runtime/{kv.d.mts → kv/index.d.mts} +0 -0
  369. /package/dist/runtime/{live-server.d.mts → live/server.d.mts} +0 -0
  370. /package/dist/runtime/{log.d.mts → log/index.d.mts} +0 -0
  371. /package/dist/runtime/{sse.d.mts → sse/index.d.mts} +0 -0
  372. /package/dist/runtime/{storage.d.mts → storage/index.d.mts} +0 -0
@@ -1,14 +1,14 @@
1
1
  import { L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken, f as removeToken } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
4
- import { n as runLoginCommand } from "./login-DOE-MkeK.mjs";
3
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
+ import { n as runLoginCommand } from "./login-Cihxnu7m.mjs";
5
5
  import { m as printSuccess } from "./output-DNVILSz2.mjs";
6
6
  import { execSync } from "node:child_process";
7
7
  // src/cli/account-cmd.ts
8
8
  async function runAccountCommand(root, args) {
9
9
  switch (args.subcommand) {
10
10
  case "login": return runLoginCommand(root);
11
- case "link": return import("./auth-link-B1IynRW5.mjs").then(({ runAuthLink }) => runAuthLink(root, args.connectionId));
11
+ case "link": return import("./auth-link-DFQTA1jN.mjs").then(({ runAuthLink }) => runAuthLink(root, args.connectionId));
12
12
  case "logout":
13
13
  if (removeToken(root)) printSuccess("Logged out.");
14
14
  else log.info("Not logged in.");
@@ -1,15 +1,14 @@
1
- import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-DZHmVe1f.mjs";
1
+ import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-BGamcCqB.mjs";
2
2
  import { r as findVoidAuthConfig } from "./config-Do7gJI3T.mjs";
3
- import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-CzFdJYNA.mjs";
3
+ import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-qgt863GH.mjs";
4
4
  import { a as join, i as isAbsolute, t as basename } from "./dist-DMYe8CZJ.mjs";
5
5
  import { a as unwrapStaticExpression, i as staticLiteral, n as readStaticExports, o as bindingNames, t as mayExportAll } from "./static-exports-DFkzL-NX.mjs";
6
6
  import { n as resourceNameWords } from "./resource-name-DlJ9QXzg.mjs";
7
7
  import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
8
8
  import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-CUhCPMpK.mjs";
9
9
  import { i as voidWarn } from "./log-D9hwSySP.mjs";
10
- import { i as scanEmailHandlersSync } from "./email-BHY72ixO.mjs";
11
- import { _ as isRouteEnabledForEnvironment, g as compareRouteSpecificity, n as scanPages, v as parseRouteFilename } from "./scan-4YOxDaw2.mjs";
12
- import { n as globSync } from "./dist-BWNkVq50.mjs";
10
+ import { _ as isRouteEnabledForEnvironment, g as compareRouteSpecificity, n as scanPages, v as parseRouteFilename, x as globSync } from "./scan-tDExXbA1.mjs";
11
+ import { n as compileEmailPattern, t as compareEmailRoutes } from "./email-pattern-BYr-EFq5.mjs";
13
12
  import { n as isIdentifier, o as moduleExportName } from "./ast-Cv0JwXqb.mjs";
14
13
  import { existsSync, readFileSync, readdirSync } from "node:fs";
15
14
  import { parseSync } from "vite";
@@ -88,6 +87,7 @@ function deriveQueueBindingName(name) {
88
87
  const OPTION_NAMES = [
89
88
  "maxBatchSize",
90
89
  "maxBatchTimeout",
90
+ "maxConcurrency",
91
91
  "maxRetries",
92
92
  "retryDelay"
93
93
  ];
@@ -120,7 +120,7 @@ function scanQueuesSync(queuesDir) {
120
120
  const initializer = options.get(option);
121
121
  if (!initializer) return;
122
122
  const value = staticLiteral(initializer);
123
- if (typeof value !== "number" || !Number.isInteger(value) || value < 0) throw new Error(`queue: ${option} in '${filePath}' must be a nonnegative integer literal.`);
123
+ if (typeof value !== "number" || !Number.isInteger(value) || value < 0 || option === "maxConcurrency" && (value < 1 || value > 250)) throw new Error(`queue: ${option} in '${filePath}' must be ${option === "maxConcurrency" ? "an integer literal between 1 and 250" : "a nonnegative integer literal"}.`);
124
124
  return value;
125
125
  };
126
126
  return {
@@ -129,6 +129,7 @@ function scanQueuesSync(queuesDir) {
129
129
  bindingName: deriveQueueBindingName(name),
130
130
  maxBatchSize: optionValue("maxBatchSize"),
131
131
  maxBatchTimeout: optionValue("maxBatchTimeout"),
132
+ maxConcurrency: optionValue("maxConcurrency"),
132
133
  maxRetries: optionValue("maxRetries"),
133
134
  retryDelay: optionValue("retryDelay")
134
135
  };
@@ -147,6 +148,79 @@ function scanQueuesSync(queuesDir) {
147
148
  ].join("\n"));
148
149
  return definitions;
149
150
  }
151
+ // src/router/email.ts
152
+ /**
153
+ * Scan `email/` for inbound email handlers.
154
+ *
155
+ * The `email/` directory sits at the source root alongside `crons/` and
156
+ * `queues/` — non-HTTP handlers all live at the top level, since each is
157
+ * wired into a separate worker export (`scheduled`, `queue`, `email`).
158
+ *
159
+ * email/<local-part>.ts per-recipient handler matched against the
160
+ * local-part of the To address
161
+ * email/<local-part>+[tag].ts same, with a `+suffix` capture exposed as
162
+ * `info.params.<tag>`
163
+ * email/[name].ts dynamic local-part — captures the whole
164
+ * local-part as `info.params.<name>`
165
+ * email/[name]+[tag].ts dynamic + tag
166
+ * email/_default.ts fallback when no per-address pattern matches
167
+ *
168
+ * Match precedence (most specific wins):
169
+ * static + tag → static → dynamic + tag → dynamic → _default
170
+ * Within a kind a literal tag beats a captured tag (`support+vip` before
171
+ * `support+[tag]`, `[user]+vip` before `[user]+[tag]`); the same shape sorts
172
+ * alphabetically. See `compareEmailRoutes`.
173
+ *
174
+ * Local-part matching is case-insensitive: the compiled patterns carry the `i`
175
+ * flag and run against the recipient in its original case, so a captured tag
176
+ * such as a ticket id keeps the case it arrived with. Nested folders are
177
+ * intentionally ignored — the recipient address is a single string, not a path.
178
+ */
179
+ const EMAIL_EXTENSIONS = [
180
+ "ts",
181
+ "mts",
182
+ "js",
183
+ "mjs"
184
+ ];
185
+ function parseEmailFiles(files) {
186
+ const addresses = [];
187
+ let defaultHandler;
188
+ for (const filePath of files) {
189
+ if (filePath.includes("/")) continue;
190
+ const basename = filePath.replace(/\.[^.]+$/, "");
191
+ if (basename === "_default") {
192
+ if (defaultHandler !== void 0) throw new Error(`email handler "${filePath}" is a second default handler next to "${defaultHandler}" — keep exactly one email/_default.* file.`);
193
+ defaultHandler = filePath;
194
+ continue;
195
+ }
196
+ if (basename.startsWith("_")) continue;
197
+ const pattern = compileEmailPattern(basename);
198
+ if (!pattern) continue;
199
+ addresses.push({
200
+ address: basename.toLowerCase(),
201
+ filePath,
202
+ pattern
203
+ });
204
+ }
205
+ addresses.sort(compareEmailRoutes);
206
+ const seenRegex = /* @__PURE__ */ new Map();
207
+ for (const def of addresses) {
208
+ const prior = seenRegex.get(def.pattern.regexSource);
209
+ if (prior !== void 0) throw new Error(`email handler "${def.filePath}" matches the same address shape as "${prior}" (both compile to ${def.pattern.regexSource}). Rename one of them — only the alphabetically-first would ever fire.`);
210
+ seenRegex.set(def.pattern.regexSource, def.filePath);
211
+ }
212
+ return {
213
+ addresses,
214
+ defaultHandler
215
+ };
216
+ }
217
+ function scanEmailHandlersSync(root, emailDir = "email") {
218
+ const pattern = `*.{${EMAIL_EXTENSIONS.join(",")}}`;
219
+ return parseEmailFiles(globSync(pattern, { cwd: join(root, emailDir) }));
220
+ }
221
+ function hasEmailHandlers(scan) {
222
+ return scan.addresses.length > 0 || Boolean(scan.defaultHandler);
223
+ }
150
224
  // src/router/detect-exports.ts
151
225
  const HTTP_METHODS = /* @__PURE__ */ new Set([
152
226
  "GET",
@@ -380,4 +454,4 @@ function analyzeApplicationSync(root, options) {
380
454
  reasons
381
455
  };
382
456
  }
383
- export { hasSandboxSqliteMigration as a, sandboxContainerConfig as c, deriveDurableResourceIdentity as d, inferDurableResourceName as f, assertSandboxNamespaceConfig as i, scanRoutes as l, DEFAULT_SANDBOX_CLASS_NAME as n, requiresSandboxPlatformImage as o, scanJobsSync as p, SANDBOX_MIGRATION_TAG as r, resolveSandboxConfig as s, analyzeApplicationSync as t, scanQueuesSync as u };
457
+ export { hasSandboxSqliteMigration as a, sandboxContainerConfig as c, scanEmailHandlersSync as d, scanQueuesSync as f, scanJobsSync as h, assertSandboxNamespaceConfig as i, scanRoutes as l, inferDurableResourceName as m, DEFAULT_SANDBOX_CLASS_NAME as n, requiresSandboxPlatformImage as o, deriveDurableResourceIdentity as p, SANDBOX_MIGRATION_TAG as r, resolveSandboxConfig as s, analyzeApplicationSync as t, hasEmailHandlers as u };
@@ -1,4 +1,4 @@
1
- import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-3VVsflWZ.mjs";
1
+ import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-Do1WaGAY.mjs";
2
2
  // src/application-routing.ts
3
3
  /** Complete route/page analysis using the same resource and handler inventories. */
4
4
  async function completeApplicationAnalysis(analysis) {
@@ -1,4 +1,4 @@
1
- // src/runtime/routing-assets.ts
1
+ // src/runtime/routing/assets.ts
2
2
  const ASSET_EXTENSIONS = [
3
3
  "png",
4
4
  "jpg",
@@ -1,6 +1,6 @@
1
1
  import { AsyncLocalStorage } from "node:async_hooks";
2
2
  import { HTTPException } from "hono/http-exception";
3
- // src/runtime/auth.ts
3
+ // src/runtime/auth/index.ts
4
4
  const AUTH_CONTEXT_SYMBOL = Symbol.for("void.authContext.v1");
5
5
  const globalWithAuthContext = globalThis;
6
6
  const authContext = globalWithAuthContext[AUTH_CONTEXT_SYMBOL] ?? (globalWithAuthContext[AUTH_CONTEXT_SYMBOL] = new AsyncLocalStorage());
@@ -1,9 +1,9 @@
1
1
  import { L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { a as getApiUrl, c as getToken, m as savePlatformToken, p as runPlatformLogin, u as openBrowser } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
4
- import { r as selectPlatformLoginMethod } from "./login-DOE-MkeK.mjs";
3
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
+ import { r as selectPlatformLoginMethod } from "./login-Cihxnu7m.mjs";
5
5
  import { l as formatUrl } from "./output-DNVILSz2.mjs";
6
- import { t as discoverPlatform } from "./platform-cmd-HS_FSthn.mjs";
6
+ import { t as discoverPlatform } from "./platform-cmd-BHWdh1Hx.mjs";
7
7
  // src/cli/auth-link.ts
8
8
  async function runAuthLink(root, connectionId) {
9
9
  const token = getToken(root);
@@ -39,11 +39,11 @@ async function chooseDestination(root, args, interactive) {
39
39
  async function runAuthRouter(root, args, interactive = Boolean(process.stdin.isTTY)) {
40
40
  const destination = await chooseDestination(root, args, interactive);
41
41
  if (destination.platform === "cloudflare") {
42
- const { runCloudflareCommand } = await import("./cloudflare-cmd-BuuHUM4z.mjs");
42
+ const { runCloudflareCommand } = await import("./cloudflare-cmd-DLcgInCa.mjs");
43
43
  await runCloudflareCommand(root, { subcommand: args.subcommand });
44
44
  return;
45
45
  }
46
- const { runAccountCommand } = await import("./account-cmd-BEMOdwtl.mjs");
46
+ const { runAccountCommand } = await import("./account-cmd-CZhbDfp4.mjs");
47
47
  const subcommand = args.subcommand === "status" ? "whoami" : args.subcommand;
48
48
  if (!destination.apiUrl) {
49
49
  await runAccountCommand(root, { subcommand });
@@ -1,4 +1,4 @@
1
- // src/runtime/base64.ts
1
+ // src/shared/base64.ts
2
2
  function bytesToBase64(bytes) {
3
3
  let binary = "";
4
4
  const chunkSize = 32768;
@@ -1,5 +1,5 @@
1
1
  import { t as VoidAuthProvider } from "./providers-D5P8j_8D.mjs";
2
- import { r as AuthState, s as VoidAuthConfig } from "./auth-CV9kXHKe.mjs";
2
+ import { r as AuthState, s as VoidAuthConfig } from "./index-CV9kXHKe.mjs";
3
3
  import { Context } from "hono";
4
4
  import { BetterAuthOptions, betterAuth } from "better-auth";
5
5
  import { DBFieldAttribute } from "better-auth/db";
@@ -1,9 +1,10 @@
1
1
  import { i as getVoidAuthProviderSettingEnvNames, o as isVoidSocialAuthProvider, r as getVoidAuthProviderEnvNames } from "./providers-ZARwX2cL.mjs";
2
- import { i as authDependentRequests, r as SHARED_CACHE_HEADERS, t as isUnchangedStaticAsset } from "./static-asset-marker-DsQKz6lt.mjs";
3
- import { t as authContext } from "./auth-aMuFOZeI.mjs";
2
+ import { i as authDependentRequests, r as SHARED_CACHE_HEADERS, t as isUnchangedStaticAsset } from "./static-asset-marker-lxYeKvFP.mjs";
3
+ import { t as authContext } from "./auth-YtP6K4J3.mjs";
4
4
  import { randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5
5
  import { betterAuth } from "better-auth";
6
- // src/runtime/better-auth-shared.ts
6
+ import { createAuthMiddleware } from "better-auth/api";
7
+ // src/runtime/auth/better-auth-shared.ts
7
8
  function resolveSecret(env, dev) {
8
9
  const explicit = typeof env.BETTER_AUTH_SECRET === "string" && env.BETTER_AUTH_SECRET.length > 0 ? env.BETTER_AUTH_SECRET : void 0;
9
10
  if (explicit) return explicit;
@@ -153,8 +154,7 @@ function setsAuthCookie(headers, advanced) {
153
154
  const custom = /* @__PURE__ */ new Set();
154
155
  for (const cookie of Object.values(advanced?.cookies ?? {})) if (cookie?.name) custom.add(cookie.name);
155
156
  return headers.getSetCookie().some((value) => {
156
- const equals = value.indexOf("=");
157
- let name = (equals === -1 ? value : value.slice(0, equals)).trim();
157
+ let name = cookieName(value);
158
158
  for (const secure of ["__Secure-", "__Host-"]) if (name.startsWith(secure)) name = name.slice(secure.length);
159
159
  return name.startsWith(prefix) || custom.has(name);
160
160
  });
@@ -215,6 +215,80 @@ function resolveUserConfig(userConfig, defaults, request, env, dialect) {
215
215
  ...userConfig
216
216
  });
217
217
  }
218
+ /**
219
+ * Collects cookies that `auth.api.*` calls set while a request runs. Router
220
+ * calls (`auth.handler`) return their cookies on their own response. Better
221
+ * Auth runs plugin `after` hooks in array order, so the plugin goes last to
222
+ * see cookies set by earlier hooks.
223
+ */
224
+ function createCookieForwarder() {
225
+ let collecting = false;
226
+ const cookies = [];
227
+ return {
228
+ plugin: {
229
+ id: "void-cookies",
230
+ hooks: { after: [{
231
+ matcher: (ctx) => collecting && !("_flag" in ctx && ctx._flag === "router"),
232
+ handler: createAuthMiddleware(async (ctx) => {
233
+ const headers = ctx.context.responseHeaders;
234
+ if (headers instanceof Headers) cookies.push(...headers.getSetCookie());
235
+ })
236
+ }] }
237
+ },
238
+ start() {
239
+ collecting = true;
240
+ },
241
+ cookies: () => cookies
242
+ };
243
+ }
244
+ function cookieName(cookie) {
245
+ const pair = cookie.split(";", 1)[0] ?? "";
246
+ const equals = pair.indexOf("=");
247
+ return (equals === -1 ? pair : pair.slice(0, equals)).trim();
248
+ }
249
+ function cookieKey(cookie, defaultPath) {
250
+ let domain = "";
251
+ let path = defaultPath;
252
+ for (const attribute of cookie.split(";").slice(1)) {
253
+ const equals = attribute.indexOf("=");
254
+ const name = (equals === -1 ? attribute : attribute.slice(0, equals)).trim().toLowerCase();
255
+ const value = equals === -1 ? "" : attribute.slice(equals + 1).trim();
256
+ if (name === "domain") domain = value.replace(/^\./, "").toLowerCase();
257
+ else if (name === "path") path = value.startsWith("/") ? value : defaultPath;
258
+ }
259
+ return `${cookieName(cookie)};${domain};${path}`;
260
+ }
261
+ /**
262
+ * The session lookup's headers with only the cookies the browser should still
263
+ * receive: the last one for each key. The lookup runs first, then the
264
+ * `auth.api.*` calls in order. A cookie the route sent itself, such as an
265
+ * `asResponse` result, keeps its place among those calls when it came from
266
+ * one; otherwise, as with an `/api/auth` response, it is the latest.
267
+ */
268
+ function mergeAuthCookies(lookup, forwarded, sent, requestUrl) {
269
+ if (forwarded.length === 0 && !lookup?.has("set-cookie")) return lookup;
270
+ const requestPath = new URL(requestUrl).pathname;
271
+ const lastSlash = requestPath.lastIndexOf("/");
272
+ const defaultPath = lastSlash <= 0 ? "/" : requestPath.slice(0, lastSlash);
273
+ const latest = /* @__PURE__ */ new Map();
274
+ for (const cookie of lookup?.getSetCookie() ?? []) latest.set(cookieKey(cookie, defaultPath), {
275
+ cookie,
276
+ at: -1
277
+ });
278
+ forwarded.forEach((cookie, at) => latest.set(cookieKey(cookie, defaultPath), {
279
+ cookie,
280
+ at
281
+ }));
282
+ const sentByKey = new Map(sent.map((cookie) => [cookieKey(cookie, defaultPath), cookie]));
283
+ const headers = new Headers(lookup);
284
+ headers.delete("set-cookie");
285
+ for (const [key, { cookie, at }] of latest) {
286
+ const routeCookie = sentByKey.get(key);
287
+ const sentAt = routeCookie === void 0 ? -1 : forwarded.lastIndexOf(routeCookie);
288
+ if (routeCookie === void 0 || sentAt !== -1 && at > sentAt) headers.append("set-cookie", cookie);
289
+ }
290
+ return headers;
291
+ }
218
292
  const SESSION_SAFE_METHODS = /* @__PURE__ */ new Set([
219
293
  "GET",
220
294
  "HEAD",
@@ -241,24 +315,32 @@ function isRequestOrigin(origin, requestUrl) {
241
315
  */
242
316
  async function sessionHeaders(request, auth) {
243
317
  const headers = request.headers;
244
- if (!headers.has("cookie")) return headers;
245
- if (SESSION_SAFE_METHODS.has(request.method) && headers.get("upgrade")?.toLowerCase() !== "websocket") return headers;
318
+ if (!headers.has("cookie") || await isTrustedRequestOrigin(request, auth)) return headers;
319
+ const withoutCookie = new Headers(headers);
320
+ withoutCookie.delete("cookie");
321
+ console.warn(`auth: Ignored the session cookie on a ${request.method} request from ${headers.get("origin")}. Add this origin to auth trustedOrigins if it should use the signed-in session.`);
322
+ return withoutCookie;
323
+ }
324
+ /**
325
+ * True when the request may use and change the signed-in session: a safe
326
+ * method, or a request from its own origin or one Better Auth trusts.
327
+ */
328
+ async function isTrustedRequestOrigin(request, auth) {
329
+ const headers = request.headers;
330
+ if (SESSION_SAFE_METHODS.has(request.method) && headers.get("upgrade")?.toLowerCase() !== "websocket") return true;
246
331
  const origin = headers.get("origin");
247
- if (!origin || isRequestOrigin(origin, request.url)) return headers;
248
- if (origin === "null" && headers.get("sec-fetch-site") === "same-origin") return headers;
332
+ if (!origin || isRequestOrigin(origin, request.url)) return true;
333
+ if (origin === "null" && headers.get("sec-fetch-site") === "same-origin") return true;
249
334
  const advanced = auth.options.advanced;
250
- if (advanced?.disableCSRFCheck === true || advanced?.disableOriginCheck === true && advanced.disableCSRFCheck === void 0) return headers;
335
+ if (advanced?.disableCSRFCheck === true || advanced?.disableOriginCheck === true && advanced.disableCSRFCheck === void 0) return true;
251
336
  const context = await auth.$context;
252
- if (context.isTrustedOrigin(origin, { allowRelativePaths: false })) return headers;
337
+ if (context.isTrustedOrigin(origin, { allowRelativePaths: false })) return true;
253
338
  const trustedOrigins = auth.options.trustedOrigins;
254
339
  if (typeof trustedOrigins === "function") {
255
340
  const requestOrigins = (await trustedOrigins(request)).filter((value) => Boolean(value));
256
- if (context.isTrustedOrigin.call({ trustedOrigins: requestOrigins }, origin, { allowRelativePaths: false })) return headers;
341
+ if (context.isTrustedOrigin.call({ trustedOrigins: requestOrigins }, origin, { allowRelativePaths: false })) return true;
257
342
  }
258
- const withoutCookie = new Headers(headers);
259
- withoutCookie.delete("cookie");
260
- console.warn(`auth: Ignored the session cookie on a ${request.method} request from ${origin}. Add this origin to auth trustedOrigins if it should use the signed-in session.`);
261
- return withoutCookie;
343
+ return false;
262
344
  }
263
345
  const LOOPBACK_IP = /^(127\.|::1$|::ffff:127\.)/;
264
346
  /**
@@ -313,8 +395,13 @@ function createVoidAuthRuntime(dialect, applyMigrations) {
313
395
  assertSocialProviderSettings(resolved, runtime.providers);
314
396
  return runtime.dev !== true && cloudflareClientIp(request) ? applyCloudflareRateLimitDefaults(resolved) : resolved;
315
397
  }
316
- async function createVoidAuth(request, env, runtime, database) {
317
- return betterAuth(await resolveVoidAuthOptions(request, env, runtime, database));
398
+ async function createVoidAuth(request, env, runtime, database, plugins = []) {
399
+ const options = await resolveVoidAuthOptions(request, env, runtime, database);
400
+ if (plugins.length === 0) return betterAuth(options);
401
+ return betterAuth({
402
+ ...options,
403
+ plugins: [...options.plugins ?? [], ...plugins]
404
+ });
318
405
  }
319
406
  async function resolveVoidAuthState(request, env, runtime, database) {
320
407
  const auth = await createVoidAuth(request, env, runtime, database);
@@ -330,7 +417,9 @@ function createVoidAuthRuntime(dialect, applyMigrations) {
330
417
  c.set("session", null);
331
418
  return next();
332
419
  }
333
- const auth = await createVoidAuth(c.req.raw, c.env, runtime, database);
420
+ const requestUrl = c.originalUrl?.()?.href ?? c.req.raw.url;
421
+ const forwarder = createCookieForwarder();
422
+ const auth = await createVoidAuth(c.req.raw, c.env, runtime, database, [forwarder.plugin]);
334
423
  c.set("__voidAuth", auth);
335
424
  const result = await auth.api.getSession({
336
425
  headers: await sessionHeaders(c.req.raw, auth),
@@ -342,18 +431,25 @@ function createVoidAuthRuntime(dialect, applyMigrations) {
342
431
  c.set("session", state?.session ?? null);
343
432
  const authEndpoint = c.req.path === "/api/auth" || c.req.path.startsWith("/api/auth/");
344
433
  if (authEndpoint) authDependentRequests.add(c.req.raw);
434
+ forwarder.start();
345
435
  await authContext.run({
346
436
  user: state?.user ?? null,
347
437
  state
348
438
  }, async () => {
349
439
  await next();
350
440
  });
441
+ let forwarded = forwarder.cookies();
442
+ if (forwarded.length > 0 && !await isTrustedRequestOrigin(c.req.raw, auth)) {
443
+ console.warn(`auth: Did not send cookies set by auth.api calls on a ${c.req.method} request from ${c.req.header("origin")}. Add this origin to auth trustedOrigins if it should change the session.`);
444
+ forwarded = [];
445
+ }
446
+ const headers = mergeAuthCookies(result.headers, forwarded, c.res.headers.getSetCookie(), requestUrl);
351
447
  const credentialed = [
352
448
  "cookie",
353
449
  "authorization",
354
450
  "cf-access-jwt-assertion"
355
451
  ].some((header) => c.req.raw.headers.has(header));
356
- appendAuthHeaders(c, result.headers, state !== null || credentialed || result.headers?.has("set-cookie") === true || setsAuthCookie(c.res.headers, auth.options.advanced) || authEndpoint, isUnchangedStaticAsset(c));
452
+ appendAuthHeaders(c, headers, state !== null || credentialed || headers?.has("set-cookie") === true || setsAuthCookie(c.res.headers, auth.options.advanced) || authEndpoint, isUnchangedStaticAsset(c));
357
453
  }
358
454
  async function handleVoidAuthRequest(c, runtime, database) {
359
455
  const existingAuth = c.get("__voidAuth");
@@ -1,6 +1,6 @@
1
1
  import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken } from "./auth-CCk9Seol.mjs";
3
- import { n as PlatformApiError, r as PlatformClient } from "./client-D6w5x7hM.mjs";
3
+ import { n as PlatformApiError, r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
4
  import { f as import_picocolors, i as dim, m as printSuccess } from "./output-DNVILSz2.mjs";
5
5
  import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
6
6
  import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-Da3OgCU1.mjs";
@@ -1,6 +1,6 @@
1
1
  import { L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
3
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
4
  import { m as printSuccess, o as formatCount, r as createSpinner } from "./output-DNVILSz2.mjs";
5
5
  import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
6
6
  import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-Da3OgCU1.mjs";
@@ -1,6 +1,6 @@
1
1
  import { A as confirm, H as outro, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
3
+ import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
4
4
  import { m as printSuccess } from "./output-DNVILSz2.mjs";
5
5
  import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
6
6
  // src/cli/cancel-deploy.ts
@@ -0,0 +1 @@
1
+ export { t as prepareCfBuildOutput } from "./cf-build-output-bBx1gDll.mjs";
@@ -1,5 +1,5 @@
1
1
  import { a as join, c as resolve, i as isAbsolute, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-Bb-EdAQq.mjs";
2
+ import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-CHtnM3_C.mjs";
3
3
  import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
4
4
  import { t as WORKER_CONDITIONS } from "./worker-conditions-CBZ0RYsZ.mjs";
5
5
  import { copyFileSync, cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
@@ -7,7 +7,7 @@ import { randomBytes, randomUUID } from "node:crypto";
7
7
  import { tmpdir } from "node:os";
8
8
  import { spawn } from "node:child_process";
9
9
  import { getRootConfigPath, getWorkerAssetsDir, getWorkerBundleDir, getWorkerConfigPath, normalizeDirectoryName, readBuildOutput, writeAssets, writeContainerConfig, writeRootConfig, writeWorkerConfig } from "@cloudflare/build-output-utils";
10
- import { OutputContainerSchema } from "@cloudflare/config";
10
+ import { BuildOutputContainerConfigSchema } from "@cloudflare/config";
11
11
  import ignore from "ignore";
12
12
  // src/cli/container-image.ts
13
13
  function docker(args, quiet = false) {
@@ -108,11 +108,13 @@ function stagePackageContext(directory, projectRoot) {
108
108
  /** Create a disposable cf Build Output tree from an existing Cloudflare Worker build. */
109
109
  async function prepareCfBuildOutput(workerDirectory, accountId, mode, projectRoot = workerDirectory) {
110
110
  const source = resolve(workerDirectory);
111
- if (existsSync(getRootConfigPath(source))) {
111
+ const hasNativeOutput = existsSync(getRootConfigPath(source));
112
+ if (!hasNativeOutput && existsSync(join(source, ".cloudflare/output"))) await readBuildOutput(source);
113
+ if (hasNativeOutput) {
112
114
  const deferredContainers = join(dirname(getRootConfigPath(source)), "void-containers.json");
113
115
  if (existsSync(deferredContainers)) {
114
116
  const built = await readBuildOutput(source);
115
- if (accountId !== void 0 && built.rootConfig.accountId !== void 0 && accountId !== built.rootConfig.accountId || mode !== void 0 && mode !== built.rootConfig.buildContext.mode) return null;
117
+ if (accountId !== void 0 && built.rootConfig.settings?.accountId !== void 0 && accountId !== built.rootConfig.settings?.accountId || mode !== void 0 && mode !== built.rootConfig.buildContext.mode) return null;
116
118
  const path = record(JSON.parse(readFileSync(deferredContainers, "utf8")))?.workerDirectory;
117
119
  if (typeof path !== "string" || isAbsolute(path) || path.includes("\\") || path.includes(":") || !isInside(source, resolve(source, path)) || resolve(source, path) === source) throw new Error("Invalid Void Container build output directory.");
118
120
  const directory = realpathSync(resolve(source, path));
@@ -140,7 +142,7 @@ async function prepareCfBuildOutput(workerDirectory, accountId, mode, projectRoo
140
142
  }
141
143
  return prepareNativeBuildOutput(source, accountId, mode, projectRoot);
142
144
  }
143
- if (!existsSync(join(source, "wrangler.json"))) throw new Error(`No Cloudflare Worker build found in ${source}. Pass the project root that contains .cloudflare/output/v0, or the Worker output directory that contains wrangler.json.`);
145
+ if (!existsSync(join(source, "wrangler.json"))) throw new Error(`No Cloudflare Worker build found in ${source}. Rebuild the app and pass the project root that contains .cloudflare/output, or the Worker output directory that contains wrangler.json.`);
144
146
  const raw = record(JSON.parse(readFileSync(join(source, "wrangler.json"), "utf8")));
145
147
  if (!raw) return null;
146
148
  if (typeof raw.account_id === "string" && accountId !== void 0 && raw.account_id !== accountId) return null;
@@ -168,9 +170,13 @@ async function prepareCfBuildOutput(workerDirectory, accountId, mode, projectRoo
168
170
  mkdirSync(bundle, { recursive: true });
169
171
  const modules = copyBundle(source, bundle);
170
172
  const configuredAccountId = accountId ?? raw.account_id;
171
- await writeRootConfig(directory, typeof configuredAccountId === "string" ? { accountId: configuredAccountId } : {}, {
172
- isPreview: false,
173
- mode: mode ?? "production"
173
+ await writeRootConfig({
174
+ root: directory,
175
+ settings: typeof configuredAccountId === "string" ? { accountId: configuredAccountId } : {},
176
+ buildContext: {
177
+ isPreview: false,
178
+ mode: mode ?? "production"
179
+ }
174
180
  });
175
181
  await writeWorkerConfig({
176
182
  root: directory,
@@ -194,7 +200,7 @@ async function prepareCfBuildOutput(workerDirectory, accountId, mode, projectRoo
194
200
  }
195
201
  await writeContainerConfig({
196
202
  root: directory,
197
- config: OutputContainerSchema.parse(builtContainer),
203
+ config: BuildOutputContainerConfigSchema.parse(builtContainer),
198
204
  directoryName: normalizeDirectoryName(container.name)
199
205
  });
200
206
  }
@@ -224,7 +230,7 @@ async function prepareCfBuildOutput(workerDirectory, accountId, mode, projectRoo
224
230
  /** Copy and complete the native artifact without changing the Vite build's inputs or metadata. */
225
231
  async function prepareNativeBuildOutput(source, accountId, mode, projectRoot = source) {
226
232
  const built = await readBuildOutput(source);
227
- if (accountId !== void 0 && built.rootConfig.accountId !== void 0 && accountId !== built.rootConfig.accountId || mode !== void 0 && mode !== built.rootConfig.buildContext.mode) return null;
233
+ if (accountId !== void 0 && built.rootConfig.settings?.accountId !== void 0 && accountId !== built.rootConfig.settings?.accountId || mode !== void 0 && mode !== built.rootConfig.buildContext.mode) return null;
228
234
  const directory = mkdtempSync(join(tmpdir(), "void-cf-native-"));
229
235
  const dispose = async () => {
230
236
  rmSync(directory, {
@@ -234,12 +240,17 @@ async function prepareNativeBuildOutput(source, accountId, mode, projectRoot = s
234
240
  };
235
241
  try {
236
242
  stagePackageContext(directory, projectRoot);
237
- await writeRootConfig(directory, {
238
- accountId: accountId ?? built.rootConfig.accountId,
239
- complianceRegion: built.rootConfig.complianceRegion
240
- }, {
241
- ...built.rootConfig.buildContext,
242
- mode: built.rootConfig.buildContext.mode
243
+ await writeRootConfig({
244
+ root: directory,
245
+ settings: {
246
+ accountId: accountId ?? built.rootConfig.settings?.accountId,
247
+ complianceRegion: built.rootConfig.settings?.complianceRegion
248
+ },
249
+ buildContext: {
250
+ ...built.rootConfig.buildContext,
251
+ mode: built.rootConfig.buildContext.mode ?? "production"
252
+ },
253
+ producer: built.rootConfig.producer
243
254
  });
244
255
  for (const [name, worker] of Object.entries(built.workers)) {
245
256
  if (worker.bundleDir && (!worker.config.manifest || worker.config.manifest.modules[worker.config.manifest.mainModule]?.type !== "esm")) throw new Error("The native Worker build must declare its main ES module.");
@@ -5,7 +5,7 @@ import { isRecord } from "@void/deploy-core";
5
5
  import { tmpdir } from "node:os";
6
6
  import { isDeepStrictEqual } from "node:util";
7
7
  import { spawnSync } from "node:child_process";
8
- import { InputConfigSchema } from "@cloudflare/config";
8
+ import { CloudflareConfigSchema } from "@cloudflare/config";
9
9
  // src/cli/cf-config-migrate.ts
10
10
  function record(value) {
11
11
  return isRecord(value) ? value : null;
@@ -13,9 +13,27 @@ function record(value) {
13
13
  function empty(value) {
14
14
  return value === void 0 || value === null || Array.isArray(value) && value.length === 0 || record(value) !== null && Object.keys(value).length === 0;
15
15
  }
16
+ function normalizeQueueConcurrency(raw) {
17
+ const queues = record(raw.queues);
18
+ if (!Array.isArray(queues?.consumers)) return { ...raw };
19
+ return {
20
+ ...raw,
21
+ queues: {
22
+ ...queues,
23
+ consumers: queues.consumers.map((value) => {
24
+ const consumer = record(value);
25
+ if (consumer?.max_concurrency !== null) return value;
26
+ const { max_concurrency: _automatic, ...rest } = consumer;
27
+ return rest;
28
+ })
29
+ }
30
+ };
31
+ }
16
32
  /** Remove build-only fields and settings translated into cf's typed config below. */
17
33
  function migrationInput(raw) {
18
- const result = { ...raw };
34
+ const result = normalizeQueueConcurrency(raw);
35
+ const environments = record(result.env);
36
+ if (environments) result.env = Object.fromEntries(Object.entries(environments).map(([name, value]) => [name, record(value) ? normalizeQueueConcurrency(value) : value]));
19
37
  if (!empty(result.rules) && !isDeepStrictEqual(result.rules, [{
20
38
  type: "ESModule",
21
39
  globs: ["**/*.js", "**/*.mjs"]
@@ -319,7 +337,7 @@ function migrateBuiltWranglerConfig(raw, mode = "production") {
319
337
  result.containers = containers;
320
338
  }
321
339
  if (Object.keys(exports).length > 0) worker.exports = exports;
322
- return InputConfigSchema.parse(result);
340
+ return CloudflareConfigSchema.parse(result);
323
341
  } finally {
324
342
  rmSync(directory, {
325
343
  recursive: true,
package/dist/cli/cli.mjs CHANGED
@@ -84,5 +84,5 @@ const message = unsupportedRuntimeMessage(process.versions, process.execPath);
84
84
  if (message) {
85
85
  process.stderr.write(`${message}\n`);
86
86
  process.exitCode = 1;
87
- } else await import("../cli-main-CQRLxZAu.mjs");
87
+ } else await import("../cli-main-hM7rhIbB.mjs");
88
88
  export {};
@@ -251,7 +251,7 @@ async function withBuildOutput(raw, sourceMain, action) {
251
251
  }), { mode: 384 });
252
252
  const accountId = process.env.CLOUDFLARE_ACCOUNT_ID ?? raw.account_id;
253
253
  if (typeof accountId !== "string" || !accountId) throw new Error("Cloudflare account is not pinned for Worker deployment.");
254
- const { prepareCfBuildOutput } = await import("../cf-build-output-DUZnAeZ1.mjs");
254
+ const { prepareCfBuildOutput } = await import("../cf-build-output-D3_x71H6.mjs");
255
255
  const output = await prepareCfBuildOutput(scratch, accountId);
256
256
  if (!output) throw new Error("Could not prepare the Cloudflare Worker build output.");
257
257
  try {
@@ -696,7 +696,8 @@ async function resources() {
696
696
  "buckets",
697
697
  "create",
698
698
  "--name",
699
- operation.name
699
+ operation.name,
700
+ ...operation.locationHint ? ["--location-hint", operation.locationHint] : []
700
701
  ]);
701
702
  if (created.status === 0) updateBinding("r2_buckets", operation.binding, { bucket_name: operation.name });
702
703
  return created;
@@ -1,4 +1,4 @@
1
- import "../env-public-DtJL_hZq.mjs";
1
+ import "../public-B80SwOFp.mjs";
2
2
  import "../types-CKWnYgfy.mjs";
3
3
  import "@void/deploy-cloudflare";
4
4
  type SelfHostSchemaFailureReason = "schema-load-failed" | "schema-validation-error";