void 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +1 -0
  2. package/dist/{account-cmd-BU1Fy_Bf.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
  3. package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
  4. package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
  5. package/dist/args-DrnTI35r.mjs +88 -0
  6. package/dist/args-MnQnqypt.mjs +1 -0
  7. package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
  8. package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
  9. package/dist/{auth-link-Duu2NvN5.mjs → auth-link-I4omV0pL.mjs} +6 -6
  10. package/dist/{auth-router-vgtOdb9j.mjs → auth-router-CXq4q7bb.mjs} +6 -5
  11. package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
  12. package/dist/bindings-C7zOgxT3.d.mts +28 -0
  13. package/dist/browser-run-BKgZVwLk.mjs +124 -0
  14. package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
  15. package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
  16. package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
  17. package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
  18. package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
  19. package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
  20. package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
  21. package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
  22. package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
  23. package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
  24. package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
  25. package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
  26. package/dist/cli/cli.mjs +1 -1
  27. package/dist/cli/cloudflare-operation-process.mjs +111 -47
  28. package/dist/cli/env-schema-probe.mjs +3 -3
  29. package/dist/cli/json-command-process.d.mts +6 -0
  30. package/dist/cli/json-command-process.mjs +91 -0
  31. package/dist/{cli-main-BrChcpE3.mjs → cli-main-CJTGhcYN.mjs} +84 -113
  32. package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
  33. package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
  34. package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
  35. package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
  36. package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
  37. package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
  38. package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
  39. package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
  40. package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
  41. package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
  42. package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
  43. package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
  44. package/dist/collect-Aam0GwAU.mjs +1 -0
  45. package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
  46. package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
  47. package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
  48. package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
  49. package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
  50. package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
  51. package/dist/config-entry.d.mts +1 -1
  52. package/dist/config-write-dKLINlm2.mjs +80 -0
  53. package/dist/{connect-D0V0o40j.mjs → connect-Bqq3b9sX.mjs} +10 -9
  54. package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
  55. package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
  56. package/dist/{db-BNPIjLkK.mjs → db-B3eoVDNA.mjs} +50 -47
  57. package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
  58. package/dist/db-args-Cx1y4vZn.mjs +1 -0
  59. package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
  60. package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
  61. package/dist/deploy-DZ9j7MC4.mjs +2 -0
  62. package/dist/{deploy-BgSbagIP.mjs → deploy-UojYUEWr.mjs} +803 -1415
  63. package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
  64. package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
  65. package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
  66. package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
  67. package/dist/deploy.mjs +14 -10
  68. package/dist/discover-BZWVWeQs.mjs +1 -0
  69. package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
  70. package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
  71. package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
  72. package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
  73. package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
  74. package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
  75. package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
  76. package/dist/{email-DcQNP40O.mjs → email-BBSDV0J5.mjs} +13 -12
  77. package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
  78. package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
  79. package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
  80. package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
  81. package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
  82. package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
  83. package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
  84. package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
  85. package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
  86. package/dist/gen-DaayFP9v.mjs +1 -0
  87. package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
  88. package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
  89. package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
  90. package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
  91. package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
  92. package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
  93. package/dist/help-DWGHmt_n.mjs +1 -0
  94. package/dist/html-5sfGLjiI.d.mts +3 -0
  95. package/dist/html-DPSOBDCh.mjs +1 -0
  96. package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
  97. package/dist/index-Cvqotnhc.d.mts +91 -0
  98. package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
  99. package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
  100. package/dist/index.d.mts +3 -2
  101. package/dist/index.mjs +536 -170
  102. package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
  103. package/dist/{init-C8YpkGIP.mjs → init-DftAx3L4.mjs} +237 -88
  104. package/dist/input-jcps6lAn.mjs +64 -0
  105. package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
  106. package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
  107. package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
  108. package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
  109. package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
  110. package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
  111. package/dist/login-BJwPhV_S.mjs +1 -0
  112. package/dist/{login-CWFr-G2I.mjs → login-DaugBfBG.mjs} +6 -5
  113. package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
  114. package/dist/migrate-BHD46A31.mjs +1 -0
  115. package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
  116. package/dist/nitro.mjs +3 -3
  117. package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
  118. package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
  119. package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
  120. package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
  121. package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
  122. package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
  123. package/dist/{operator-cmd-a7yOf2tH.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
  124. package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
  125. package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
  126. package/dist/output-OYwcEwok.mjs +1 -0
  127. package/dist/pages/client.d.mts +34 -20
  128. package/dist/pages/client.mjs +172 -74
  129. package/dist/pages/index.d.mts +11 -4
  130. package/dist/pages/index.mjs +5 -5
  131. package/dist/pages/islands-plugin.d.mts +2 -2
  132. package/dist/pages/islands-plugin.mjs +5 -3
  133. package/dist/pages/protocol.d.mts +3 -3
  134. package/dist/pages/protocol.mjs +3 -3
  135. package/dist/pages/serialize.d.mts +2 -2
  136. package/dist/pages/serialize.mjs +1 -1
  137. package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
  138. package/dist/platform-C3Q44RJ8.mjs +250 -0
  139. package/dist/platform-args-BSyVZESg.mjs +1 -0
  140. package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
  141. package/dist/{platform-auth-config-CpszX-Ne.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
  142. package/dist/{platform-auth-protection-DA6Tw8Og.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
  143. package/dist/{platform-auth-recovery-Cztrb1JC.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
  144. package/dist/{platform-cmd-m6Asj6nO.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
  145. package/dist/{platform-cmd-u1j88ggF.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
  146. package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
  147. package/dist/{platform-domain-DJSznNTA.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
  148. package/dist/{platform-lifecycle-BC-9p58d.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
  149. package/dist/{platform-lifecycle-GFeXv3NC.mjs → platform-lifecycle-CKwOg8wz.mjs} +244 -104
  150. package/dist/{platform-management-BwHkz46V.mjs → platform-management-CaSdFthX.mjs} +1 -1
  151. package/dist/{platform-management-DX1zINou.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
  152. package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
  153. package/dist/{platform-recovery-CnzBbudV.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
  154. package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
  155. package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
  156. package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
  157. package/dist/prepare-CLl_TA_r.mjs +1 -0
  158. package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
  159. package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
  160. package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
  161. package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
  162. package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
  163. package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
  164. package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
  165. package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
  166. package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
  167. package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
  168. package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
  169. package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
  170. package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
  171. package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
  172. package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
  173. package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
  174. package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
  175. package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
  176. package/dist/resolve-project-Bob_rEi2.mjs +1 -0
  177. package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
  178. package/dist/resource-binding-5nI30acw.mjs +20 -0
  179. package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
  180. package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
  181. package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
  182. package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
  183. package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
  184. package/dist/routes-stub.d.mts +18 -2
  185. package/dist/routes-stub.mjs +1 -1
  186. package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
  187. package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
  188. package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
  189. package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
  190. package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
  191. package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
  192. package/dist/runtime/ai/index.mjs +1 -1
  193. package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
  194. package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
  195. package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
  196. package/dist/runtime/client/fetch-server.mjs +1 -1
  197. package/dist/runtime/client/fetch-stream.mjs +1 -1
  198. package/dist/runtime/client/fetch.mjs +1 -1
  199. package/dist/runtime/client/index.mjs +2 -2
  200. package/dist/runtime/client/react.mjs +2 -2
  201. package/dist/runtime/client/solid.mjs +2 -2
  202. package/dist/runtime/client/svelte.mjs +2 -2
  203. package/dist/runtime/client/vue.mjs +2 -2
  204. package/dist/runtime/durable/index.mjs +11 -26
  205. package/dist/runtime/env/runtime.d.mts +2 -10
  206. package/dist/runtime/handler/index.d.mts +3 -2
  207. package/dist/runtime/handler/index.mjs +2 -2
  208. package/dist/runtime/handler/validator.d.mts +1 -1
  209. package/dist/runtime/handler/validator.mjs +1 -1
  210. package/dist/runtime/html.d.mts +2 -0
  211. package/dist/runtime/html.mjs +1 -0
  212. package/dist/runtime/image/index.d.mts +103 -0
  213. package/dist/runtime/image/index.mjs +89 -0
  214. package/dist/runtime/jsx/index.d.mts +3 -0
  215. package/dist/runtime/jsx/index.mjs +2 -0
  216. package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
  217. package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
  218. package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
  219. package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
  220. package/dist/runtime/limits/index.mjs +1 -1
  221. package/dist/runtime/live/client.d.mts +2 -2
  222. package/dist/runtime/live/index.d.mts +1 -1
  223. package/dist/runtime/routing/index.d.mts +87 -4
  224. package/dist/runtime/routing/index.mjs +59 -20
  225. package/dist/runtime/routing/route-url.d.mts +2 -2
  226. package/dist/runtime/routing/route-url.mjs +1 -1
  227. package/dist/runtime/sandbox/index.mjs +1 -1
  228. package/dist/runtime/sse/client.d.mts +1 -1
  229. package/dist/runtime/workflows/entry.d.mts +8 -0
  230. package/dist/runtime/workflows/entry.mjs +49 -0
  231. package/dist/runtime/workflows/index.d.mts +3 -0
  232. package/dist/runtime/workflows/index.mjs +77 -0
  233. package/dist/runtime/ws/index.d.mts +1 -1
  234. package/dist/runtime/ws/index.mjs +2 -2
  235. package/dist/runtime/ws/room.d.mts +1 -1
  236. package/dist/runtime/ws/server.d.mts +2 -2
  237. package/dist/runtime-Db72hLY-.d.mts +11 -0
  238. package/dist/scan-BxhB4BA-.mjs +946 -0
  239. package/dist/scan-D2ISAobj.mjs +308 -0
  240. package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
  241. package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
  242. package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
  243. package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
  244. package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
  245. package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
  246. package/dist/standard-schema-DvMcZGMK.mjs +8 -0
  247. package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
  248. package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
  249. package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
  250. package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
  251. package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
  252. package/dist/validate-p9b3r1k4.mjs +1 -0
  253. package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
  254. package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
  255. package/dist/version-metadata-CEla0kgi.mjs +23 -0
  256. package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
  257. package/dist/wrangler-BT7qrzWc.mjs +1 -0
  258. package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
  259. package/docs/guide/ai.md +1 -1
  260. package/docs/guide/app-types.md +6 -23
  261. package/docs/guide/auth.md +2 -4
  262. package/docs/guide/database/d1.md +21 -67
  263. package/docs/guide/database/mysql.md +8 -0
  264. package/docs/guide/database/postgresql.md +2 -2
  265. package/docs/guide/database.md +1 -1
  266. package/docs/guide/deployment.md +18 -0
  267. package/docs/guide/edge/prerendering.md +3 -7
  268. package/docs/guide/edge/redirects.md +1 -1
  269. package/docs/guide/edge/revalidation.md +8 -17
  270. package/docs/guide/edge/rewrites.md +1 -1
  271. package/docs/guide/edge/static-assets.md +10 -22
  272. package/docs/guide/email/domains.md +3 -1
  273. package/docs/guide/email/receiving.md +2 -2
  274. package/docs/guide/email/sending.md +3 -1
  275. package/docs/guide/env-vars.md +2 -0
  276. package/docs/guide/image-generation.md +142 -0
  277. package/docs/guide/index.md +17 -15
  278. package/docs/guide/jobs.md +2 -4
  279. package/docs/guide/kv.md +1 -1
  280. package/docs/guide/og-images.md +83 -0
  281. package/docs/guide/pages-routing/actions-and-forms.md +6 -4
  282. package/docs/guide/pages-routing/errors.md +20 -4
  283. package/docs/guide/pages-routing/head.md +5 -5
  284. package/docs/guide/pages-routing/islands.md +4 -14
  285. package/docs/guide/pages-routing/markdown.md +2 -2
  286. package/docs/guide/pages-routing/overview.md +129 -15
  287. package/docs/guide/platform/administration/plans.md +47 -16
  288. package/docs/guide/platform/administration/projects.md +10 -0
  289. package/docs/guide/platform/administration/security-audits.md +76 -30
  290. package/docs/guide/platform/administration/zero-trust.md +1 -1
  291. package/docs/guide/platform/installation/ci.md +0 -4
  292. package/docs/guide/platform/installation/credentials.md +1 -1
  293. package/docs/guide/platform/installation/maintenance.md +11 -9
  294. package/docs/guide/platform/installation/prerequisites.md +3 -1
  295. package/docs/guide/platform/installation/setup.md +7 -15
  296. package/docs/guide/platform/installation/uninstall.md +6 -12
  297. package/docs/guide/project-collaboration.md +1 -4
  298. package/docs/guide/queues.md +6 -8
  299. package/docs/guide/quickstart.md +6 -8
  300. package/docs/guide/sandboxes.md +1 -1
  301. package/docs/guide/self-hosted-platform.md +4 -7
  302. package/docs/guide/server-routing.md +5 -3
  303. package/docs/guide/ssg.md +1 -1
  304. package/docs/guide/type-safety.md +74 -10
  305. package/docs/guide/websockets.md +5 -7
  306. package/docs/guide/workflows.md +122 -0
  307. package/docs/index.md +2 -3
  308. package/docs/integrations/agents.md +3 -16
  309. package/docs/integrations/cloudflare.md +98 -2
  310. package/docs/integrations/frameworks/analog.md +9 -11
  311. package/docs/integrations/frameworks/astro.md +16 -17
  312. package/docs/integrations/frameworks/nuxt.md +11 -13
  313. package/docs/integrations/frameworks/overview.md +18 -20
  314. package/docs/integrations/frameworks/react-router.md +55 -6
  315. package/docs/integrations/frameworks/sveltekit.md +8 -6
  316. package/docs/integrations/frameworks/tanstack-start.md +10 -6
  317. package/docs/integrations/hono.md +27 -12
  318. package/docs/integrations/nodejs-bun-deno.md +10 -2
  319. package/docs/reference/api/database.md +8 -10
  320. package/docs/reference/api/env.md +2 -2
  321. package/docs/reference/api/handlers.md +1 -1
  322. package/docs/reference/api/html.md +45 -0
  323. package/docs/reference/api/pages.md +118 -167
  324. package/docs/reference/api/rewrites.md +5 -5
  325. package/docs/reference/api/types.md +13 -6
  326. package/docs/reference/api/workflows.md +48 -0
  327. package/docs/reference/api.md +7 -1
  328. package/docs/reference/cli/database.md +22 -10
  329. package/docs/reference/cli/deploy.md +49 -4
  330. package/docs/reference/cli/domains.md +7 -3
  331. package/docs/reference/cli/email.md +3 -1
  332. package/docs/reference/cli/platform-installation.md +9 -53
  333. package/docs/reference/cli/platform-security.md +36 -8
  334. package/docs/reference/cli/platform-users.md +11 -1
  335. package/docs/reference/cli/platform-zero-trust.md +1 -1
  336. package/docs/reference/cli/project.md +52 -11
  337. package/docs/reference/cli/setup.md +8 -10
  338. package/docs/reference/cli.md +49 -47
  339. package/docs/reference/config.md +22 -8
  340. package/docs/reference/resource-inference.md +8 -1
  341. package/docs/reference/structure.md +5 -0
  342. package/package.json +52 -25
  343. package/schema.json +20 -1
  344. package/skills/void/SKILL.md +60 -54
  345. package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
  346. package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
  347. package/dist/cli/db-execute-process.d.mts +0 -2
  348. package/dist/cli/db-execute-process.mjs +0 -57
  349. package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
  350. package/dist/collect-B6nlSnsb.mjs +0 -1
  351. package/dist/db-args-BvMwAber.mjs +0 -1
  352. package/dist/deploy-Do6FWqon.mjs +0 -2
  353. package/dist/discover-D2KGP3cR.mjs +0 -1
  354. package/dist/entry-Bwb9ev8K.mjs +0 -113
  355. package/dist/gen-vhBDHs3q.mjs +0 -1
  356. package/dist/help-fKPzcTJv.mjs +0 -1
  357. package/dist/isr-config-DiTnL9Tb.mjs +0 -115
  358. package/dist/login-DECm3e9b.mjs +0 -1
  359. package/dist/migrate-C9aoWLvY.mjs +0 -1
  360. package/dist/operator-cmd-CVfK5U0B.mjs +0 -1
  361. package/dist/output-D7K9TWIA.mjs +0 -1
  362. package/dist/platform-args-CMwMoiLp.mjs +0 -1
  363. package/dist/prepare-DcwigRUS.mjs +0 -1
  364. package/dist/providers-D5P8j_8D.d.mts +0 -5
  365. package/dist/resolve-project-YsTH-U9I.mjs +0 -1
  366. package/dist/static-exports-s7P86Ngp.mjs +0 -354
  367. package/dist/validate-CZYUIfR-.mjs +0 -1
  368. package/dist/wrangler-Dq269bjx.mjs +0 -1
  369. package/docs/guide/platform/development/local.md +0 -120
  370. package/docs/guide/platform/development/runtime.md +0 -115
  371. package/docs/guide/platform/development/schema-ci.md +0 -44
  372. package/docs/guide/platform-development.md +0 -16
@@ -0,0 +1,377 @@
1
+ import { a as join, c as resolve } from "./dist-DMYe8CZJ.mjs";
2
+ import { t as findEnvFile } from "./env-types-B33fEHRH.mjs";
3
+ import { d as isNodeTarget } from "./config-KZAiI3gG.mjs";
4
+ import { s as shouldLinkDeployProject, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-DC-BqHef.mjs";
5
+ import { D as syncWranglerBindings, T as resolveLiveBindingConfig, _ as readExistingLiveBindingConfig, h as normalizeWranglerCompatibilityFlags, l as ensureWranglerCompat } from "./wrangler-AyMfdVJK.mjs";
6
+ import { n as buildEnv } from "./untrusted-env-4oW0TdBP.mjs";
7
+ import { i as validateMigrations, t as assertJournalCoherence } from "./validate-B1PsQ_mt.mjs";
8
+ import { L as log$1, N as intro, tt as isCancel } from "./dist-BngS28id.mjs";
9
+ import { b as sanitizeTerminalText, c as formatCount, h as import_picocolors, p as getErrorMessage, y as printSuccess } from "./output-DhJgS6Ve.mjs";
10
+ import { n as logCloudflareUserError, t as formatCloudflareUserMessage } from "./cloudflare-user-output-DFbD0l4l.mjs";
11
+ import { o as text } from "./interactive-prompts-EK0dilFu.mjs";
12
+ import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-T-9AIQDe.mjs";
13
+ import { c as formatProjectCommand, f as resolveProjectCommand, o as defaultViteClientDir, s as detectPreset, u as isStaticAppType } from "./cloudflare-process-DFNpqV_m.mjs";
14
+ import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-SXsjd6-Z.mjs";
15
+ import { a as needsWrapper, i as generateWrapper } from "./wrapper-DPlTBVOx.mjs";
16
+ import { readFileSync } from "node:fs";
17
+ import { execSync } from "node:child_process";
18
+ // src/cli/deploy-helpers.ts
19
+ const log = {
20
+ error: logCloudflareUserError,
21
+ info: (message) => log$1.info(formatCloudflareUserMessage(message)),
22
+ message: (message) => log$1.message(formatCloudflareUserMessage(message)),
23
+ step: (message) => log$1.step(formatCloudflareUserMessage(message)),
24
+ warn: (message) => log$1.warn(formatCloudflareUserMessage(message))
25
+ };
26
+ var DeployEventError = class extends Error {};
27
+ async function generateDeployWrapperIfNeeded(root, workerDir, workerMain, features) {
28
+ if (!needsWrapper(features)) return false;
29
+ await generateWrapper(workerDir, workerMain, root, features);
30
+ return true;
31
+ }
32
+ const EMPTY_BINDINGS = {
33
+ needsD1: false,
34
+ needsKV: false,
35
+ needsR2: false,
36
+ needsAuth: false,
37
+ needsQueues: false,
38
+ needsAI: false,
39
+ needsSandbox: false
40
+ };
41
+ function readLiveBindingConfigFromDeployment(deployment) {
42
+ if (!deployment?.manifest) return;
43
+ let manifest;
44
+ try {
45
+ manifest = JSON.parse(deployment.manifest);
46
+ } catch {
47
+ return;
48
+ }
49
+ if (typeof manifest.live?.bindingName !== "string" || typeof manifest.live.className !== "string") return;
50
+ return {
51
+ bindingName: manifest.live.bindingName,
52
+ className: manifest.live.className
53
+ };
54
+ }
55
+ async function ensurePreviouslyDeployedLiveBindingConfig(root, client, projectId, cliLog) {
56
+ if (readExistingLiveBindingConfig(root)) return false;
57
+ const { deployments, activeDeploymentId } = await client.listDeployments(projectId);
58
+ const live = readLiveBindingConfigFromDeployment(deployments.find((deployment) => deployment.id === activeDeploymentId));
59
+ if (!live) return false;
60
+ const synced = syncWranglerBindings(root, {
61
+ ...EMPTY_BINDINGS,
62
+ needsLive: true
63
+ }, { live });
64
+ if (synced) cliLog?.info("live_binding_restored", {
65
+ bindingName: live.bindingName,
66
+ className: live.className
67
+ });
68
+ return synced;
69
+ }
70
+ async function resolveDeployLiveBindingConfig(root, client, projectId, opts) {
71
+ if (opts.isFrameworkMode || !opts.needsLive) return;
72
+ await ensurePreviouslyDeployedLiveBindingConfig(root, client, projectId, opts.cliLog);
73
+ return resolveLiveBindingConfig(root, {
74
+ reservedBindings: opts.webSockets.map((route) => route.bindingName),
75
+ reservedClasses: [...opts.webSockets.map((route) => route.className), opts.sandboxClassName]
76
+ });
77
+ }
78
+ function getExitCode(error) {
79
+ if (typeof error === "object" && error !== null && "status" in error && typeof error.status === "number") return error.status;
80
+ return 1;
81
+ }
82
+ function resolveDeployWranglerCompat(root, config, buildOutputDir, requirements) {
83
+ if (isNodeTarget(config.target)) return;
84
+ const compat = ensureWranglerCompat(root, config, buildOutputDir);
85
+ const compatibilityFlags = normalizeWranglerCompatibilityFlags(compat.compatibilityFlags, { needsNodejsCompat: requirements?.authEnabled === true || requirements?.dialect !== void 0 && requirements.dialect !== "sqlite" || requirements?.needsSandbox === true });
86
+ return compatibilityFlags === compat.compatibilityFlags ? compat : {
87
+ ...compat,
88
+ compatibilityFlags
89
+ };
90
+ }
91
+ function resolveDeployWorkerMain(config, buildOutputDir) {
92
+ if (isNodeTarget(config.target)) return;
93
+ try {
94
+ const wrangler = JSON.parse(readFileSync(join(buildOutputDir, "wrangler.json"), "utf8"));
95
+ return typeof wrangler.main === "string" && wrangler.main.length > 0 ? wrangler.main : void 0;
96
+ } catch {
97
+ return;
98
+ }
99
+ }
100
+ function assertWorkerMainUploaded(workerFiles, workerMain) {
101
+ if (!workerMain || workerFiles.size === 0) return;
102
+ if (!workerFiles.has(workerMain)) throw new Error(`deploy: Worker entry '${workerMain}' from wrangler.json was not found in uploaded worker modules.`);
103
+ }
104
+ function assertProjectDeployAccess(project) {
105
+ if (project?.role === "reader") throw new Error(`deploy: You have reader access to "${project.slug}" and cannot deploy. Ask a project admin or owner to grant collaborator access, or choose another project with \`--project <slug>\`.`);
106
+ }
107
+ async function promptDeployProjectConfig(root, client, cliLog) {
108
+ const projects = await client.listProjectChoices();
109
+ const link = shouldLinkDeployProject(root, client.apiUrl);
110
+ const deployableProjects = projects.filter((project) => project.role !== "reader");
111
+ if (deployableProjects.length !== projects.length) log.warn("Projects with reader access are hidden from deploy selection. Ask a project admin or owner to grant collaborator access to deploy to them.");
112
+ if (await promptProjectSetupAction("Set up a Void project for deploy:", {
113
+ includeLink: deployableProjects.length > 0,
114
+ ...link ? {} : { link: false }
115
+ }) === "create") return promptAndCreateProject(root, client, { link });
116
+ const result = await promptProjectSelection(deployableProjects, "Select a project to deploy to:", root, {
117
+ confirmExisting: true,
118
+ includeCreate: false,
119
+ ...link ? {} : { link: false }
120
+ });
121
+ if (result.action === "create") throw new Error("Unexpected project selection result.");
122
+ const config = {
123
+ projectId: result.project.id,
124
+ slug: result.project.slug
125
+ };
126
+ if (link) {
127
+ writeProjectConfig(root, attachSelectedPlatform(config, client.apiUrl));
128
+ log.step(`Linked to ${import_picocolors.default.blue(config.slug)}`);
129
+ cliLog?.info("project_linked", {
130
+ projectId: config.projectId,
131
+ slug: config.slug
132
+ });
133
+ } else log.step(`Using ${import_picocolors.default.blue(config.slug)} for this deployment. Saved destination unchanged.`);
134
+ return config;
135
+ }
136
+ function resolveStaticBuildCommand(preset, buildOverride, hasExplicitDir = false) {
137
+ if (hasExplicitDir) return null;
138
+ return buildOverride ?? preset.buildCommand;
139
+ }
140
+ /**
141
+ * Resolve the build command for a FULL (Class A / Void app) deploy.
142
+ *
143
+ * `inference.build` wins when set, matching `runFrameworkDeploy` and the static
144
+ * path's `resolveStaticBuildCommand`, so an app that needs more than one build
145
+ * step (an SSG that emits the site, then Void's build packaging it via
146
+ * `publicDir` alongside the worker) can express it.
147
+ *
148
+ * The two returned strings are deliberately different for the FALLBACK: `label`
149
+ * goes to the user (`formatProjectCommand` rewrites `vite` → `vp` without
150
+ * expanding an absolute bin path), `command` is what actually runs
151
+ * (`resolveProjectCommand` expands to the local bin). A configured command is
152
+ * the user's own text and is used verbatim for both, so what is printed is
153
+ * exactly what is executed.
154
+ */
155
+ function resolveFullDeployBuildCommand(root, buildOverride, fallbackBuildCommand = "vite build") {
156
+ if (buildOverride) return {
157
+ label: buildOverride,
158
+ command: buildOverride
159
+ };
160
+ return {
161
+ label: formatProjectCommand(root, fallbackBuildCommand),
162
+ command: resolveProjectCommand(root, fallbackBuildCommand)
163
+ };
164
+ }
165
+ /**
166
+ * Whether the built worker's `__voidCollectPrerenderPaths` can return anything
167
+ * at all. When it cannot, booting it is pure cost and the deploy skips it.
168
+ *
169
+ * These three are exactly — and only — the sources `compilePrerenderCollector`
170
+ * (`router/compile.ts`) emits a `paths.push(...)` for:
171
+ * 1. `scan.pages.pages` — static patterns + dynamic pages' `getPrerenderPaths()`
172
+ * 2. the custom SSR entry's top-level `getPrerenderPaths()` (`ssr` argument)
173
+ * 3. `options.explicitPrerenderPaths` — void.config.ts `routing.prerender`
174
+ * With none of them present the collector is a generated function whose body
175
+ * returns `[...new Set([])]`, so skipping is result-identical.
176
+ *
177
+ * Skipping matters beyond speed. `collectPrerenderPaths` boots the worker in
178
+ * Miniflare without remote production secrets, and the generated fetch handler
179
+ * validates `env.ts` at boot. An app with nothing to prerender should not fail
180
+ * merely because that unnecessary worker boot cannot access the remote store.
181
+ */
182
+ function hasPrerenderSources(inputs) {
183
+ return inputs.hasPages || inputs.hasSsrEntry || (inputs.explicitPrerenderPaths?.length ?? 0) > 0;
184
+ }
185
+ /**
186
+ * Whether the project needs a worker for something other than its pages.
187
+ *
188
+ * An `output: "static"` project whose pages all prerender takes the static-site
189
+ * path, which uploads assets and NO worker script. Every worker surface that is
190
+ * not a page has to be listed here, because a missing one is not a failed
191
+ * deploy — it is a successful deploy with that feature silently absent.
192
+ *
193
+ * `email` belongs here for the same reason `hasRoutes` does: an `email/`
194
+ * handler compiles to the worker's `email()` export (`router/compile.ts`), and
195
+ * the platform dispatches inbound mail through that export. With no worker, the
196
+ * mail bounces at the proxy with `project has no email handler`.
197
+ *
198
+ * Schedules and queues are deliberately NOT folded in. They are checked at the
199
+ * call site against their own resolved lists, not against a scan flag.
200
+ */
201
+ function hasNonPageBackend(inputs) {
202
+ return inputs.hasRoutes || inputs.hasMiddleware || inputs.hasWebSockets || inputs.hasEmail || inputs.authEnabled || inputs.hasLive;
203
+ }
204
+ function resolveStaticDeployPreset(root, voidConfig, options) {
205
+ if (options?.dir) return detectPreset(root, {
206
+ dir: options.dir,
207
+ spa: options.spa
208
+ });
209
+ const appType = voidConfig.inference?.appType;
210
+ if (isStaticAppType(appType)) {
211
+ const outputDir = voidConfig.inference?.outputDir;
212
+ const detected = detectPreset(root, {
213
+ spa: options?.spa,
214
+ explicitStatic: { outputDir }
215
+ });
216
+ return {
217
+ appType,
218
+ buildCommand: detected?.buildCommand ?? null,
219
+ outputDir: outputDir ? resolve(root, outputDir) : detected?.outputDir ?? defaultViteClientDir(root)
220
+ };
221
+ }
222
+ return null;
223
+ }
224
+ async function createProjectFromSlug(root, client, slug, cliLog) {
225
+ log.step(`Creating project ${import_picocolors.default.blue(slug)}...`);
226
+ cliLog?.info("project_create_start", { slug });
227
+ const project = await client.createProject(slug);
228
+ const config = {
229
+ projectId: project.id,
230
+ slug: project.slug
231
+ };
232
+ if (shouldLinkDeployProject(root, client.apiUrl)) writeProjectConfig(root, attachSelectedPlatform(config, client.apiUrl));
233
+ log.step(`Project created: ${import_picocolors.default.blue(config.slug)}`);
234
+ reportProjectCreationWarnings(project);
235
+ cliLog?.info("project_create_success", {
236
+ projectId: config.projectId,
237
+ slug: config.slug
238
+ });
239
+ return config;
240
+ }
241
+ function getGitCommit(root) {
242
+ try {
243
+ const githubSha = process.env.GITHUB_SHA?.trim();
244
+ if (githubSha && /^[0-9a-f]{7,64}$/i.test(githubSha)) return githubSha;
245
+ const gitEnv = buildEnv();
246
+ execSync("git rev-parse --is-inside-work-tree", {
247
+ cwd: root,
248
+ stdio: "ignore",
249
+ env: gitEnv
250
+ });
251
+ if (execSync("git status --porcelain", {
252
+ cwd: root,
253
+ encoding: "utf8",
254
+ env: gitEnv
255
+ }).trim() !== "") return null;
256
+ return execSync("git rev-parse HEAD", {
257
+ cwd: root,
258
+ encoding: "utf8",
259
+ env: gitEnv
260
+ }).trim();
261
+ } catch {
262
+ return null;
263
+ }
264
+ }
265
+ /**
266
+ * Check journal coherence and validate the checked-in migrations of a managed
267
+ * deploy. Logs and exits on failure; returns `undefined` when there are none.
268
+ */
269
+ function validateDeployMigrations(migrationsDir, rawMigrations, sourceRelative) {
270
+ try {
271
+ assertJournalCoherence(migrationsDir, rawMigrations, sourceRelative);
272
+ } catch (err) {
273
+ log.error(getErrorMessage(err));
274
+ process.exit(1);
275
+ }
276
+ if (rawMigrations.length === 0) return;
277
+ try {
278
+ const validated = validateMigrations(rawMigrations);
279
+ log.info(`Found ${formatCount(validated.length, "migration")}`);
280
+ return validated;
281
+ } catch (err) {
282
+ log.error(getErrorMessage(err));
283
+ process.exit(1);
284
+ }
285
+ }
286
+ /**
287
+ * Ensure a managed external SQL project has Hyperdrive, prompting for the
288
+ * connection string when it is missing.
289
+ */
290
+ async function ensureManagedHyperdrive(client, projectId, dialect) {
291
+ let resources = null;
292
+ try {
293
+ resources = await client.getResources(projectId);
294
+ } catch {}
295
+ if (!resources || resources.some((resource) => resource.type === "hyperdrive")) return;
296
+ const connectionString = await text({
297
+ message: `Your project uses ${dialect === "mysql" ? "MySQL" : "PostgreSQL"}. Enter your connection string:`,
298
+ placeholder: dialect === "mysql" ? "mysql://user:pass@host:3306/dbname" : "postgresql://user:pass@host:5432/dbname",
299
+ validate(value) {
300
+ if (!(dialect === "mysql" ? value?.startsWith("mysql://") : value?.startsWith("postgres://") || value?.startsWith("postgresql://"))) return dialect === "mysql" ? "Must start with \"mysql://\"" : "Must start with \"postgres://\" or \"postgresql://\"";
301
+ }
302
+ });
303
+ if (isCancel(connectionString)) {
304
+ log.info("Deploy cancelled.");
305
+ process.exit(0);
306
+ }
307
+ await client.provisionDatabase(projectId, connectionString);
308
+ log.step("Hyperdrive provisioned.");
309
+ }
310
+ /** Convert scanned cron jobs and queues into deploy-manifest entries. */
311
+ function toManifestSchedulesAndQueues(jobs, queues) {
312
+ return {
313
+ schedules: jobs.flatMap((job) => job.crons.map((cron) => ({
314
+ name: job.name,
315
+ cron
316
+ }))),
317
+ queues: queues.map((q) => ({
318
+ name: q.name,
319
+ bindingName: q.bindingName,
320
+ ...q.maxBatchSize !== null && q.maxBatchSize !== void 0 && { maxBatchSize: q.maxBatchSize },
321
+ ...q.maxBatchTimeout !== null && q.maxBatchTimeout !== void 0 && { maxBatchTimeout: q.maxBatchTimeout },
322
+ ...q.maxConcurrency !== null && q.maxConcurrency !== void 0 && { maxConcurrency: q.maxConcurrency },
323
+ ...q.maxRetries !== null && q.maxRetries !== void 0 && { maxRetries: q.maxRetries },
324
+ ...q.retryDelay !== null && q.retryDelay !== void 0 && { retryDelay: q.retryDelay }
325
+ }))
326
+ };
327
+ }
328
+ /**
329
+ * If the project has an `env.ts`, validate its schema against the union of
330
+ * build-shell public values and remote secret names. Hard-error before upload so
331
+ * deploys never ship missing required env vars.
332
+ */
333
+ async function assertEnvSchemaValid(root, client, projectId, workerVars) {
334
+ if (findEnvFile(root) === null) return;
335
+ const remoteSecrets = await fetchRemoteSecretNames(client, projectId);
336
+ const { hasSchema, report } = await validateProdEnv(root, {
337
+ productionOnly: true,
338
+ remoteSecrets,
339
+ workerVars
340
+ });
341
+ if (!hasSchema || report.valid) return;
342
+ const formatted = formatEnvReport(report);
343
+ log.error(`Env validation failed:\n${formatted}`);
344
+ if (report.missing.length > 0) log.info("Upload missing server values with `void secret put <NAME>`; set VITE_* values in the build shell or schema defaults.");
345
+ throw new DeployEventError("deploy: Aborting because env.ts schema is not satisfied.");
346
+ }
347
+ // src/cli/deploy-summary.ts
348
+ function printDeployContext(project, destination) {
349
+ intro(`${import_picocolors.default.dim(sanitizeTerminalText(project))} ${import_picocolors.default.dim("→")} ${import_picocolors.default.blue(sanitizeTerminalText(destination))}`);
350
+ }
351
+ function printDeploySuccess(published = true) {
352
+ if (published) printSuccess("Successfully deployed!");
353
+ }
354
+ /** Only include counts confirmed by the deployment target. */
355
+ function formatDeploySummary(details) {
356
+ const lines = [];
357
+ if (details.workerName) lines.push(`Worker: ${details.workerName}`);
358
+ const output = [];
359
+ if (details.workers !== void 0) output.push(formatCount(details.workers, "worker module"));
360
+ if (details.assets !== void 0) {
361
+ let assets = formatCount(details.assets, "static asset");
362
+ if (details.unchangedAssets) assets += ` (${details.unchangedAssets} unchanged, ${details.assets - details.unchangedAssets} uploaded)`;
363
+ output.push(assets);
364
+ }
365
+ if (details.typeLabel) lines.push([details.typeLabel, output.join(", ")].filter(Boolean).join(" — "));
366
+ else if (output.length) lines.push(output.join(", "));
367
+ if (details.migrations) lines.push(`${formatCount(details.migrations, "migration")} applied`);
368
+ if (details.d1MigrationsCurrent) lines.push("D1 migrations up to date");
369
+ if (details.cronJobs) lines.push(`${formatCount(details.cronJobs, "cron job")} scheduled`);
370
+ if (details.queues) lines.push(`${formatCount(details.queues, "queue")} configured`);
371
+ if (details.prerenderedPages) lines.push(`${formatCount(details.prerenderedPages, "page")} prerendered`);
372
+ if (details.ssr) lines.push("SSR enabled");
373
+ if (details.revalidate) lines.push(typeof details.revalidate === "number" ? `ISR revalidate: ${details.revalidate}s` : `ISR revalidate: ${formatCount(Object.keys(details.revalidate).length, "path rule")}`);
374
+ if (details.framework) lines.push(details.framework === true ? "Framework mode" : `Framework: ${details.framework}`);
375
+ return lines.join("\n");
376
+ }
377
+ export { toManifestSchedulesAndQueues as C, resolveStaticDeployPreset as S, resolveDeployLiveBindingConfig as _, assertEnvSchemaValid as a, resolveFullDeployBuildCommand as b, createProjectFromSlug as c, getExitCode as d, getGitCommit as f, promptDeployProjectConfig as g, log as h, DeployEventError as i, ensureManagedHyperdrive as l, hasPrerenderSources as m, printDeployContext as n, assertProjectDeployAccess as o, hasNonPageBackend as p, printDeploySuccess as r, assertWorkerMainUploaded as s, formatDeploySummary as t, generateDeployWrapperIfNeeded as u, resolveDeployWorkerMain as v, validateDeployMigrations as w, resolveStaticBuildCommand as x, resolveDeployWranglerCompat as y };
@@ -1,8 +1,9 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
2
  import { n as scanWranglerDotenvKeys } from "./dotenv-BG6RQavH.mjs";
3
- import { t as CLOUDFLARE_DEPLOY_BUILD_ENV } from "./env-EjHqc7m9.mjs";
4
- import { i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-DqgLa6gc.mjs";
5
- import { _ as resolvePinnedApiBaseUrl, g as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware } from "./provision-Bh44omGA.mjs";
3
+ import { t as CLOUDFLARE_DEPLOY_BUILD_ENV } from "./env-CU2tMDdO.mjs";
4
+ import { t as WRANGLER_AUTH_CREDENTIAL_ENV_VARS } from "./untrusted-env-4oW0TdBP.mjs";
5
+ import { t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-CEla0kgi.mjs";
6
+ import { _ as resolvePinnedApiBaseUrl, g as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware } from "./provision-CQykn8gu.mjs";
6
7
  import { readWranglerTopLevelString } from "@void/deploy-cloudflare";
7
8
  // src/cli/deploy-transport.ts
8
9
  /**
package/dist/deploy.mjs CHANGED
@@ -1,13 +1,14 @@
1
1
  import { a as join, c as resolve } from "./dist-DMYe8CZJ.mjs";
2
- import { t as analyzeApplication } from "./application-routing-KKw4Y84h.mjs";
3
- import { d as hasDocumentRoutes, f as resolveAssetConfig, u as hasApiRoutes } from "./headers-DqBsjDxg.mjs";
4
- import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName } from "./isr-config-DiTnL9Tb.mjs";
5
- import { t as prepareCfBuildOutput$1 } from "./cf-build-output-Cso7Vh-t.mjs";
6
- import { I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, R as validateDeployMigrations, a as collectAndHashAssets, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, i as buildStaticManifest, o as collectWorkerFiles, t as assembleVoidManifest, x as assertWorkerMainUploaded } from "./deploy-managed-static-BWBsxOww.mjs";
7
- import { o as detectPreset } from "./cloudflare-process-60r4Z2Zf.mjs";
8
- import { p as readConfig, u as isNodeTarget } from "./config-Dv5jri1-.mjs";
9
- import { d as hasEmailHandlers } from "./application-analysis-DVeN8yoi.mjs";
10
- import { o as validateSsrEntry } from "./entry-Bwb9ev8K.mjs";
2
+ import { t as analyzeApplication } from "./application-routing-COCfD2yc.mjs";
3
+ import { d as hasDocumentRoutes, f as resolveAssetConfig, u as hasApiRoutes } from "./headers-DPI4MDGC.mjs";
4
+ import { a as collectRevalidate, c as resolveDistDir, l as resolveWorkerDirName, n as managedWorkflowDefinitions, t as FRAMEWORK_WORKFLOWS_ERROR } from "./platform-C3Q44RJ8.mjs";
5
+ import { t as prepareCfBuildOutput$1 } from "./cf-build-output-G-7Tdd8b.mjs";
6
+ import { a as collectAndHashAssets, i as buildStaticManifest, l as resolveBrowserBinding, m as assertDeploySchemaDriftFree, o as collectWorkerFiles, t as assembleVoidManifest, u as mergeAndLintRoutingRules } from "./deploy-managed-static-DV_OmTWf.mjs";
7
+ import { C as toManifestSchedulesAndQueues, S as resolveStaticDeployPreset, s as assertWorkerMainUploaded, v as resolveDeployWorkerMain, w as validateDeployMigrations, y as resolveDeployWranglerCompat } from "./deploy-summary-Dkl0zvQy.mjs";
8
+ import { s as detectPreset } from "./cloudflare-process-DFNpqV_m.mjs";
9
+ import { d as isNodeTarget, h as readConfig } from "./config-KZAiI3gG.mjs";
10
+ import { d as hasEmailHandlers } from "./application-analysis-BjEwHTV2.mjs";
11
+ import { c as validateSsrEntry } from "./scan-D2ISAobj.mjs";
11
12
  import { existsSync } from "node:fs";
12
13
  import { createDeployArtifact } from "@void/deploy-core";
13
14
  // src/deploy.ts
@@ -35,7 +36,7 @@ async function prepareDeployArtifact(root = process.cwd()) {
35
36
  config,
36
37
  environment: "prod"
37
38
  });
38
- if (!config.inference?.appType && !analysis.framework && !analysis.durableObjects.length && !analysis.websockets.length && !Object.values(analysis.bindings).some(Boolean)) preset = detectPreset(root, { strictBackend: true });
39
+ if (!config.inference?.appType && !analysis.framework && !analysis.durableObjects.length && !analysis.workflows.length && !analysis.websockets.length && !Object.values(analysis.bindings).some(Boolean)) preset = detectPreset(root, { strictBackend: true });
39
40
  }
40
41
  if (preset) {
41
42
  if (!existsSync(preset.outputDir)) throw new Error("Static build output is missing. Run the app build first.");
@@ -60,6 +61,7 @@ async function prepareDeployArtifact(root = process.cwd()) {
60
61
  config,
61
62
  environment: "prod"
62
63
  });
64
+ if (analysis.framework && analysis.workflows.length) throw new Error(FRAMEWORK_WORKFLOWS_ERROR);
63
65
  if (analysis.bindings.needsSandbox || analysis.bindings.needsLive) throw new Error("Artifact preparation does not yet support Sandbox or Live resources. Use void deploy for those apps.");
64
66
  if (config.routing?.prerender?.length || config.remote) throw new Error("Artifact preparation requires a build without remote data or deploy-time prerendering.");
65
67
  const dist = resolveDistDir(root);
@@ -82,6 +84,7 @@ async function prepareDeployArtifact(root = process.cwd()) {
82
84
  const rules = mergeAndLintRoutingRules(clientDir, config.routing);
83
85
  const manifest = assembleVoidManifest(pages ? scan.pages : null, false, {
84
86
  bindings,
87
+ browser: resolveBrowserBinding(config, bindings),
85
88
  alwaysUseHttps: config.routing?.alwaysUseHttps,
86
89
  storage: config.storage,
87
90
  database: typeof config.database === "object" ? config.database : void 0,
@@ -93,6 +96,7 @@ async function prepareDeployArtifact(root = process.cwd()) {
93
96
  dialect,
94
97
  webSockets: websockets,
95
98
  durableObjects: analysis.durableObjects,
99
+ workflows: managedWorkflowDefinitions(config.cloudflare, analysis.workflows),
96
100
  ssr: ssr || scan.routes.length > 0 || scan.middleware.length > 0 || websockets.length > 0 || authEnabled,
97
101
  revalidate: collectRevalidate(config, pages ? scan.pages : null),
98
102
  assetConfig: resolveAssetConfig({
@@ -0,0 +1 @@
1
+ export { t as discoverSchema } from "./discover-BeFs7OPS.mjs";
@@ -1,5 +1,5 @@
1
1
  import { s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
2
+ import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
3
3
  import { existsSync, statSync } from "node:fs";
4
4
  // src/drizzle/discover.ts
5
5
  /**
@@ -1,11 +1,11 @@
1
1
  import { a as join, i as isAbsolute, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
3
- import { t as discoverSchema } from "./discover-IcspacCg.mjs";
2
+ import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
3
+ import { t as discoverSchema } from "./discover-BeFs7OPS.mjs";
4
4
  import { i as voidWarn } from "./log-D9hwSySP.mjs";
5
- import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-Dv5jri1-.mjs";
6
- import { i as ensureProjectTsconfig, t as AUTH_SCHEMA_FILE } from "./project-tsconfig-BOA4ym99.mjs";
7
- import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV } from "./env-EjHqc7m9.mjs";
8
- import { n as generateDbDts, t as DRIZZLE_OPERATORS } from "./db-types-B4Cf9dzR.mjs";
5
+ import { g as resolveBindingNames, h as readConfig, l as getDatabaseCasing, u as getDatabaseDialect } from "./config-KZAiI3gG.mjs";
6
+ import { i as ensureProjectTsconfig, t as AUTH_SCHEMA_FILE } from "./project-tsconfig-LjgxDdj_.mjs";
7
+ import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV } from "./env-CU2tMDdO.mjs";
8
+ import { n as generateDbDts, t as DRIZZLE_OPERATORS } from "./db-types-BpgXVtQZ.mjs";
9
9
  import { createRequire } from "node:module";
10
10
  import { existsSync, readFileSync, readdirSync } from "node:fs";
11
11
  import { normalizePath } from "vite";
@@ -307,7 +307,7 @@ function drizzlePlugin(root, hasRouteTypes, dialect = "sqlite", options = {}) {
307
307
  const migrationsDir = paths.migrationsDir;
308
308
  if (!(existsSync(migrationsDir) && readdirSync(migrationsDir).some((f) => f.endsWith(".sql")))) {
309
309
  if (dialect === "sqlite") {
310
- const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-Bf94YVJK.mjs");
310
+ const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-rnXCGa20.mjs");
311
311
  if ((await getApplicationTables(getMiniflareDatabasePath(options.localD1PersistRoot ?? join(root, ".void"), options.localD1DatabaseId ?? "local")).catch(() => [])).length > 0) return;
312
312
  }
313
313
  voidWarn(`Schema found but no migrations in ${paths.sourceRelative("db/migrations")}/.\n \`void db push\` syncs the schema to your local DB without creating migration files.
@@ -283,12 +283,12 @@ const CRLF_OR_LF$1 = /\r?\n/;
283
283
  function wrapAnsi$1(string, columns, options) {
284
284
  return String(string).normalize().split(CRLF_OR_LF$1).map((line) => exec$1(line, columns, options)).join("\n");
285
285
  }
286
- // ../../node_modules/.pnpm/sisteransi@2.0.0/node_modules/sisteransi/dist/index.js
286
+ // ../../node_modules/.pnpm/sisteransi@2.0.1/node_modules/sisteransi/dist/index.js
287
287
  const ESC$1 = "\x1B";
288
288
  const CSI$1 = `${ESC$1}[`;
289
289
  const cursor = {
290
290
  to(x, y) {
291
- if (!y) return `${CSI$1}${x + 1}G`;
291
+ if (y === void 0) return `${CSI$1}${x + 1}G`;
292
292
  return `${CSI$1}${y + 1};${x + 1}H`;
293
293
  },
294
294
  move(x, y) {
@@ -299,10 +299,10 @@ const cursor = {
299
299
  else if (y > 0) ret += `${CSI$1}${y}B`;
300
300
  return ret;
301
301
  },
302
- up: (count = 1) => `${CSI$1}${count}A`,
303
- down: (count = 1) => `${CSI$1}${count}B`,
304
- forward: (count = 1) => `${CSI$1}${count}C`,
305
- backward: (count = 1) => `${CSI$1}${count}D`,
302
+ up: (count = 1) => count === 0 ? "" : `${CSI$1}${count}A`,
303
+ down: (count = 1) => count === 0 ? "" : `${CSI$1}${count}B`,
304
+ forward: (count = 1) => count === 0 ? "" : `${CSI$1}${count}C`,
305
+ backward: (count = 1) => count === 0 ? "" : `${CSI$1}${count}D`,
306
306
  nextLine: (count = 1) => `${CSI$1}E`.repeat(count),
307
307
  prevLine: (count = 1) => `${CSI$1}F`.repeat(count),
308
308
  left: `${CSI$1}G`,
@@ -1 +1 @@
1
- export { tt as isCancel, L as log, K as select, X as text } from "./dist-Cr_xGE_K.mjs";
1
+ export { tt as isCancel, L as log, K as select, X as text } from "./dist-BngS28id.mjs";
@@ -1,9 +1,9 @@
1
- import { L as log } from "./dist-Cr_xGE_K.mjs";
2
- import { c as getToken } from "./auth-CqwJwItO.mjs";
3
- import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
4
- import { g as note, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
5
- import { n as readDeploymentPlatform } from "./project-dh9431bN.mjs";
6
- import { i as resolveCommandProjectId } from "./resolve-project-8WZ3iVmr.mjs";
1
+ import { L as log } from "./dist-BngS28id.mjs";
2
+ import { c as getToken } from "./auth-CeBmolb-.mjs";
3
+ import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
4
+ import { g as note, h as import_picocolors, y as printSuccess } from "./output-DhJgS6Ve.mjs";
5
+ import { n as readDeploymentPlatform } from "./project-DC-BqHef.mjs";
6
+ import { i as resolveCommandProjectId } from "./resolve-project-s_FGWyr-.mjs";
7
7
  // src/cli/domain.ts
8
8
  async function runDomainCommand(root, args) {
9
9
  const platform = readDeploymentPlatform(root);
@@ -25,7 +25,7 @@ async function runDomainCommand(root, args) {
25
25
  }
26
26
  async function runCloudflareDomainCommand(root, args) {
27
27
  if (args.projectSlug) throw new Error("domain: --project selects a Void platform project and is not used for direct Cloudflare apps.");
28
- const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-ByjFGats.mjs");
28
+ const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-BmICrRnm.mjs");
29
29
  if (args.subcommand === "add") {
30
30
  const result = await changeCloudflareDomain(root, args.hostname, "add");
31
31
  note("Cloudflare Custom Domains manages the DNS record and TLS certificate in the zone on your account.", "Cloudflare Domain");
@@ -94,7 +94,7 @@ function resolveReferenceFieldName(schema, model, field) {
94
94
  const referencedField = schema[model]?.fields[field];
95
95
  return referencedField ? resolveFieldName(field, referencedField) : field;
96
96
  }
97
- function createColumnBuilder(dialect, idStrategy, defaultModelName, defaultFieldName, fieldName, field) {
97
+ function createColumnBuilder(dialect, idStrategy, defaultModelName, defaultFieldName, fieldName, field, authDateType) {
98
98
  const useIdType = fieldName === "id" || field.references?.field === "id";
99
99
  if (dialect === "mysql") {
100
100
  if (useIdType) return idStrategy === "serial" ? `int(${JSON.stringify(fieldName)})` : `varchar(${JSON.stringify(fieldName)}, { length: ${idStrategy === "uuid" ? 36 : 255} })`;
@@ -102,7 +102,7 @@ function createColumnBuilder(dialect, idStrategy, defaultModelName, defaultField
102
102
  if (isJsonField(field)) return `json(${JSON.stringify(fieldName)})`;
103
103
  switch (field.type) {
104
104
  case "boolean": return `boolean(${JSON.stringify(fieldName)})`;
105
- case "date": return `timestamp(${JSON.stringify(fieldName)}, { mode: "date", fsp: 3 })`;
105
+ case "date": return `${authDateType}(${JSON.stringify(fieldName)}, { mode: "date", fsp: 3 })`;
106
106
  case "number": return field.bigint ? `bigint(${JSON.stringify(fieldName)}, { mode: "number" })` : `int(${JSON.stringify(fieldName)})`;
107
107
  default: return usesUnboundedMySqlText(defaultModelName, defaultFieldName, field) ? `text(${JSON.stringify(fieldName)})` : `varchar(${JSON.stringify(fieldName)}, { length: 255 })`;
108
108
  }
@@ -139,9 +139,9 @@ function hasBuiltInUpdateHook(options, model, field) {
139
139
  if (field !== "updatedAt" || model !== "user" && model !== "session" && model !== "account" && model !== "verification") return false;
140
140
  return options[model]?.additionalFields?.updatedAt === void 0 && !options.plugins?.some((plugin) => plugin.schema?.[model]?.fields.updatedAt !== void 0);
141
141
  }
142
- function createColumnDefinition(options, dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field) {
142
+ function createColumnDefinition(options, dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field, authDateType) {
143
143
  const actualFieldName = resolveFieldName(defaultFieldName, field);
144
- const parts = [createColumnBuilder(dialect, idStrategy, defaultModelName, defaultFieldName, actualFieldName, field)];
144
+ const parts = [createColumnBuilder(dialect, idStrategy, defaultModelName, defaultFieldName, actualFieldName, field, authDateType)];
145
145
  if (actualFieldName === "id") {
146
146
  parts.push(".primaryKey()");
147
147
  if (dialect === "mysql" && idStrategy === "serial") parts.push(".autoincrement()");
@@ -163,7 +163,7 @@ function createColumnDefinition(options, dialect, schema, idStrategy, defaultToV
163
163
  if (field.onUpdate && field.type === "date" && hasBuiltInUpdateHook(options, defaultModelName, defaultFieldName)) parts.push(".$onUpdate(() => new Date())");
164
164
  return parts.join("");
165
165
  }
166
- function collectCoreImports(dialect, schema, idStrategy) {
166
+ function collectCoreImports(dialect, schema, idStrategy, authDateType) {
167
167
  const imports = /* @__PURE__ */ new Set([dialect === "postgresql" ? "pgTable" : dialect === "mysql" ? "mysqlTable" : "sqliteTable", dialect === "mysql" ? "varchar" : "text"]);
168
168
  if (idStrategy === "serial") imports.add(dialect === "mysql" ? "int" : "integer");
169
169
  if (idStrategy === "uuid" && dialect === "postgresql") imports.add("uuid");
@@ -188,7 +188,7 @@ function collectCoreImports(dialect, schema, idStrategy) {
188
188
  continue;
189
189
  }
190
190
  if (field.type === "date") {
191
- imports.add(dialect === "sqlite" ? "integer" : "timestamp");
191
+ imports.add(dialect === "sqlite" ? "integer" : dialect === "mysql" ? authDateType : "timestamp");
192
192
  continue;
193
193
  }
194
194
  if (field.type === "number") {
@@ -209,9 +209,10 @@ function generateVoidAuthDrizzleSchema(runtime, env = {}) {
209
209
  for (const [defaultModelName] of entries) defaultToVariable.set(defaultModelName, `${sanitizeIdentifier(defaultModelName)}Table`);
210
210
  const tableFactory = runtime.dialect === "postgresql" ? "pgTable" : runtime.dialect === "mysql" ? "mysqlTable" : "sqliteTable";
211
211
  const importPath = runtime.dialect === "postgresql" ? "void/schema-pg" : runtime.dialect === "mysql" ? "void/schema-mysql" : "void/schema-d1";
212
+ const authDateType = runtime.authDateType ?? "timestamp";
212
213
  const lines = [
213
214
  "// Auto-generated by void — do not edit",
214
- `import { ${collectCoreImports(runtime.dialect, schema, idStrategy).join(", ")} } from ${JSON.stringify(importPath)};`,
215
+ `import { ${collectCoreImports(runtime.dialect, schema, idStrategy, authDateType).join(", ")} } from ${JSON.stringify(importPath)};`,
215
216
  ""
216
217
  ];
217
218
  for (const [defaultModelName, table] of entries) {
@@ -221,9 +222,9 @@ function generateVoidAuthDrizzleSchema(runtime, env = {}) {
221
222
  const renderedFields = [` "id": ${createColumnDefinition(options, runtime.dialect, schema, idStrategy, defaultToVariable, defaultModelName, "id", {
222
223
  type: idStrategy === "serial" ? "number" : "string",
223
224
  required: true
224
- })},`, ...fieldEntries.map(([defaultFieldName, field]) => {
225
+ }, authDateType)},`, ...fieldEntries.map(([defaultFieldName, field]) => {
225
226
  const actualFieldName = resolveFieldName(defaultFieldName, field);
226
- return ` ${JSON.stringify(actualFieldName)}: ${createColumnDefinition(options, runtime.dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field)},`;
227
+ return ` ${JSON.stringify(actualFieldName)}: ${createColumnDefinition(options, runtime.dialect, schema, idStrategy, defaultToVariable, defaultModelName, defaultFieldName, field, authDateType)},`;
227
228
  })];
228
229
  const indexedFields = fieldEntries.filter(([, field]) => field.index && !field.unique);
229
230
  const tableIndexes = migrationSchema.tables.find((entry) => entry.name === table.modelName)?.indexes ?? [];
@@ -237,9 +238,7 @@ function generateVoidAuthDrizzleSchema(runtime, env = {}) {
237
238
  `]);`
238
239
  ] : [`});`], "");
239
240
  }
240
- lines.push("export const schema = {");
241
- for (const [defaultModelName] of entries) lines.push(` ${JSON.stringify(defaultModelName)}: ${defaultToVariable.get(defaultModelName)},`);
242
- lines.push("} as const;", `export const migrationSchema = ${JSON.stringify(migrationSchema, null, 2)} as const;`, "");
241
+ lines.push("export const schema = {", ...entries.map(([key]) => ` ${JSON.stringify(key)}: ${defaultToVariable.get(key)},`), "} as const;", "export const adapterSchema = {", ...entries.map(([key, table]) => ` [${JSON.stringify(table.modelName)}]: ${defaultToVariable.get(key)},`), "} as const;", `export const migrationSchema = ${JSON.stringify(migrationSchema, null, 2)} as const;`, "");
243
242
  return lines.join("\n") + "\n";
244
243
  }
245
244
  function resolveVoidAuthMigrationSchema(runtime, env = {}) {
@@ -295,7 +294,7 @@ function generateVoidAuthDatabaseModule(options) {
295
294
  "// Auto-generated by void — do not edit",
296
295
  `import { drizzleAdapter } from ${JSON.stringify(options.drizzleAdapterPath)};`,
297
296
  database,
298
- `import { schema as __voidAuthSchema } from ${schemaImport};`,
297
+ `import { adapterSchema as __voidAuthSchema } from ${schemaImport};`,
299
298
  "",
300
299
  "// Better Auth reads Drizzle metadata while creating the adapter.",
301
300
  "// Defer that work until request handling, when runtime bindings are available.",
@@ -1 +1 @@
1
- export { t as generateVoidAuthDatabaseModule, n as generateVoidAuthDrizzleSchema } from "./drizzle-BJDMPrj7.mjs";
1
+ export { t as generateVoidAuthDatabaseModule, n as generateVoidAuthDrizzleSchema } from "./drizzle-CnSbVeiZ.mjs";