void 1.6.2 → 1.8.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 (361) hide show
  1. package/dist/{account-cmd-D903EEWQ.mjs → account-cmd-CZKntRH2.mjs} +6 -6
  2. package/dist/action-key-ByZ6DDld.mjs +64 -0
  3. package/dist/{application-analysis-DlUG-XNT.mjs → application-analysis-CyTagJQM.mjs} +31 -10
  4. package/dist/{application-routing-GCBSwXA9.mjs → application-routing-BLrMVpqi.mjs} +2 -1
  5. package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
  6. package/dist/{auth-CH4PLAX1.d.mts → auth-Bk9VGtQW.d.mts} +9 -2
  7. package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
  8. package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
  9. package/dist/{auth-link-g9J7MSmP.mjs → auth-link-BOaQWMKw.mjs} +6 -6
  10. package/dist/{auth-router-DMZbG9Qn.mjs → auth-router-D0-VcmDs.mjs} +3 -3
  11. package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-CQFdtguU.d.mts} +2 -2
  12. package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
  13. package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
  14. package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-JTsXXf2F.mjs} +5 -5
  15. package/dist/{cache-2khBO1MR.mjs → cache-D0m3Z_Xf.mjs} +5 -5
  16. package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-Ce6Os4fa.mjs} +4 -4
  17. package/dist/{cf-build-output-B1C8U83u.mjs → cf-build-output-CWNOH-KA.mjs} +2 -1
  18. package/dist/cf-build-output-DUZnAeZ1.mjs +1 -0
  19. package/dist/{cf-config-migrate-Dy8MrKgF.mjs → cf-config-migrate-Bb-EdAQq.mjs} +5 -1
  20. package/dist/cli/cli.mjs +68 -1868
  21. package/dist/cli/cloudflare-operation-process.mjs +101 -26
  22. package/dist/cli/env-schema-probe.d.mts +1 -1
  23. package/dist/cli/env-schema-probe.mjs +3 -3
  24. package/dist/cli-main-rkrJy2Ge.mjs +1889 -0
  25. package/dist/client-D1Vz1Zep.mjs +1 -0
  26. package/dist/{client-CoxPEhJq.mjs → client-SZPyj4X_.mjs} +10 -4
  27. package/dist/{cloudflare-auth-CuS42-9A.mjs → cloudflare-auth-7jTqy9Bx.mjs} +1 -1
  28. package/dist/{cloudflare-cmd-DTF19-j-.mjs → cloudflare-cmd-ChPLQcTP.mjs} +5 -5
  29. package/dist/{cloudflare-config-Ce8j5S7V.mjs → cloudflare-config-DtOGAbeB.mjs} +2 -2
  30. package/dist/{cloudflare-connect-BN4dHp8i.mjs → cloudflare-connect-Co93VYTo.mjs} +3 -3
  31. package/dist/{cloudflare-operations-DrZGzQap.mjs → cloudflare-operations-CXaDKYj2.mjs} +6 -6
  32. package/dist/{cloudflare-operations-laxRA8HN.mjs → cloudflare-operations-DATekLwI.mjs} +1 -1
  33. package/dist/{cloudflare-process-D9aC-jXr.mjs → cloudflare-process-DmTxZR-N.mjs} +2 -2
  34. package/dist/{config-hL-S-Y9D.mjs → config-5oSQhZNj.mjs} +3 -1
  35. package/dist/{config-CPxJmt4M.d.mts → config-CTlUaXWZ.d.mts} +3 -1
  36. package/dist/{config-CNDjO-15.mjs → config-DcqUBGCb.mjs} +1 -1
  37. package/dist/config-entry.d.mts +1 -1
  38. package/dist/{config-DMR0i3Z2.mjs → config-wo2EaH0X.mjs} +1 -1
  39. package/dist/{connect-DHepM7Xs.mjs → connect-DlvXt1JR.mjs} +7 -7
  40. package/dist/{create-project-Bq0M8MtO.mjs → create-project-CC_7hmYJ.mjs} +5 -5
  41. package/dist/{create-project-BiMmR5wA.mjs → create-project-DzY05xqC.mjs} +1 -1
  42. package/dist/{db-CqfT6lhV.mjs → db-FhyYGcJJ.mjs} +39 -39
  43. package/dist/{db-types-DRmxBJ2K.mjs → db-types-sVwEpyPR.mjs} +4 -2
  44. package/dist/{delete-CY4L8fi2.mjs → delete-CModjyOC.mjs} +5 -5
  45. package/dist/{deploy-La_Ly8g_.mjs → deploy-Cz9TEzZy.mjs} +502 -110
  46. package/dist/deploy-DMieisRu.mjs +2 -0
  47. package/dist/{deploy-managed-static-CESLfKHN.mjs → deploy-managed-static-DlxxXkAM.mjs} +16 -16
  48. package/dist/{deploy-transport-DcI6LXhY.mjs → deploy-transport-DUvm6-CR.mjs} +3 -3
  49. package/dist/deploy.mjs +8 -8
  50. package/dist/{dispatch-DM4Xdd2l.mjs → dispatch-CCiaAnSK.mjs} +7 -7
  51. package/dist/{dist-eV_Ep60B.mjs → dist-Cp4b1_T9.mjs} +1 -1
  52. package/dist/{dist-D23AAMxT.mjs → dist-STQXl8ck.mjs} +86 -138
  53. package/dist/{domain-BD1KOQL3.mjs → domain-DvdZPA50.mjs} +6 -6
  54. package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
  55. package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
  56. package/dist/{email-XAspopcj.mjs → email-ASpNrfLd.mjs} +10 -10
  57. package/dist/{email-cloudflare-RxIQoPc9.mjs → email-cloudflare-kqoN9jst.mjs} +25 -16
  58. package/dist/{entry-DFBca6aS.mjs → entry-BweGTCgj.mjs} +1 -1
  59. package/dist/{env-DrYUh55t.mjs → env-Bpkg3G5i.mjs} +7 -7
  60. package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
  61. package/dist/env-mask-D31Qztl9.mjs +46 -0
  62. package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
  63. package/dist/{env-validation-Del3C8AY.mjs → env-validation-BpCCQE_6.mjs} +6 -6
  64. package/dist/{env-validation-Bosj7EVg.mjs → env-validation-CN386Utu.mjs} +1 -1
  65. package/dist/{fetch-C8yhLoF3.mjs → fetch-CAIVkLvW.mjs} +1 -1
  66. package/dist/{fetch-B-gLGYVl.d.mts → fetch-CbI6lNnk.d.mts} +6 -4
  67. package/dist/{fetch-stream-DafNtVJC.mjs → fetch-stream-6Op0qlLd.mjs} +1 -1
  68. package/dist/{fetch-stream-DuwxWmBM.d.mts → fetch-stream-DoED9atq.d.mts} +1 -1
  69. package/dist/gen-M5fNQKfH.mjs +1 -0
  70. package/dist/{gen-DSkScMIz.mjs → gen-upKJChvd.mjs} +7 -7
  71. package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-BvMOlb8Z.mjs} +6 -6
  72. package/dist/{handler-BR6Tvjkp.d.mts → handler-BO7Od-z9.d.mts} +22 -8
  73. package/dist/{handler-DnI_au0K.mjs → handler-C9SnmeW1.mjs} +5 -4
  74. package/dist/{headers--cbz6iZ8.mjs → headers-COGEDoMN.mjs} +11 -2
  75. package/dist/help-CItQVDL4.mjs +1 -0
  76. package/dist/{help-1OCFDsRr.mjs → help-TPCjTu6e.mjs} +7 -3
  77. package/dist/index.d.mts +5 -5
  78. package/dist/index.mjs +379 -265
  79. package/dist/{info-BpxpsX0B.mjs → info-EsDyihwf.mjs} +4 -4
  80. package/dist/{init-DpVXO5S-.mjs → init-a4lVagrb.mjs} +33 -32
  81. package/dist/{link-DAXOT-G_.mjs → link-CE55DDzS.mjs} +6 -6
  82. package/dist/{list-BFQ0gcML.mjs → list-CxRthQks.mjs} +7 -7
  83. package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
  84. package/dist/{live-0xrcVpyq.d.mts → live-Kc55iuOQ.d.mts} +2 -2
  85. package/dist/{local-d1-CLVPP6v7.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
  86. package/dist/{login-RIw7ffPe.mjs → login-AfcSGSmE.mjs} +5 -5
  87. package/dist/login-ZHsAm-I6.mjs +1 -0
  88. package/dist/{logs-B2OeLS4X.mjs → logs-BgRJuvb1.mjs} +6 -6
  89. package/dist/{migrate-DiI50Chz.mjs → migrate-BNAh6m_C.mjs} +5 -5
  90. package/dist/migrate-BflbbZQK.mjs +1 -0
  91. package/dist/nitro.d.mts +5 -0
  92. package/dist/nitro.mjs +27 -8
  93. package/dist/{node-Bc-dBAGL.mjs → node-CXFUw0Uz.mjs} +5 -5
  94. package/dist/{operator-args-D79WQP70.mjs → operator-args-DGTuCdSE.mjs} +9 -1
  95. package/dist/{operator-auth-CfDcmzpo.mjs → operator-auth-CD3pap65.mjs} +1 -1
  96. package/dist/{operator-client-BIY4-N_6.mjs → operator-client-XvXTkea6.mjs} +2 -2
  97. package/dist/{operator-cmd-CEI5Aaza.mjs → operator-cmd-C-viB7Si.mjs} +7 -7
  98. package/dist/operator-cmd-D6qNuJ_z.mjs +1 -0
  99. package/dist/output-BsdnNpxa.mjs +1 -0
  100. package/dist/{output-BCdLioKP.mjs → output-DNVILSz2.mjs} +1 -1
  101. package/dist/pages/client.d.mts +43 -15
  102. package/dist/pages/client.mjs +165 -80
  103. package/dist/pages/index.d.mts +6 -4
  104. package/dist/pages/index.mjs +6 -6
  105. package/dist/pages/islands-plugin.d.mts +1 -1
  106. package/dist/pages/islands-plugin.mjs +13 -2
  107. package/dist/pages/protocol.d.mts +2 -2
  108. package/dist/pages/protocol.mjs +1 -1
  109. package/dist/pages/serialize.d.mts +2 -2
  110. package/dist/pages/serialize.mjs +1 -1
  111. package/dist/{platform-args-Cx1M-7bq.mjs → platform-args-CiYeZmc5.mjs} +1 -1
  112. package/dist/platform-args-DJvF1-kl.mjs +1 -0
  113. package/dist/{platform-auth-config-ZrYm8KVs.mjs → platform-auth-config-Dt2qEc2w.mjs} +10 -10
  114. package/dist/{platform-auth-protection-t6mdY4nn.mjs → platform-auth-protection-B7TaF-PZ.mjs} +8 -8
  115. package/dist/{platform-auth-recovery-XeBmPTXx.mjs → platform-auth-recovery-suXSteJ6.mjs} +7 -7
  116. package/dist/{platform-cmd-EXehmSYA.mjs → platform-cmd-9rvYBBtr.mjs} +9 -9
  117. package/dist/{platform-cmd-C7BevP9b.mjs → platform-cmd-DuAsIxbU.mjs} +1 -1
  118. package/dist/{platform-domain-DR263ObA.mjs → platform-domain-DhH_vDr6.mjs} +5 -5
  119. package/dist/{platform-lifecycle-CN4aXldN.mjs → platform-lifecycle-3uI-E2bF.mjs} +1 -1
  120. package/dist/{platform-lifecycle-BvU_TNji.mjs → platform-lifecycle-CXmXe2xt.mjs} +17 -17
  121. package/dist/{platform-management-_UE1_GM8.mjs → platform-management-BBCHfwji.mjs} +4 -4
  122. package/dist/{platform-management-yS2sve3V.mjs → platform-management-PdrgDQTe.mjs} +1 -1
  123. package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-BGwkXYDM.mjs} +5 -5
  124. package/dist/{platform-recovery-CPVk9-Q4.mjs → platform-recovery-C8NxXGRR.mjs} +3 -3
  125. package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-Casiffqj.mjs} +3 -3
  126. package/dist/{plugin-inference-bQ1Be840.mjs → plugin-inference-CErfTgEx.mjs} +4 -4
  127. package/dist/{prepare-D8L9AQbw.mjs → prepare-BDKWZgfL.mjs} +12 -9
  128. package/dist/{prepare-BkRhDnxw.mjs → prepare-BLrzXjIl.mjs} +3 -3
  129. package/dist/prepare-a1_5usAn.mjs +1 -0
  130. package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BAdYhivW.mjs} +44 -15
  131. package/dist/prerender-render.d.mts +12 -2
  132. package/dist/prerender-render.mjs +1 -1
  133. package/dist/{project-cmd-DH3CuFC6.mjs → project-cmd-DzGvxXKH.mjs} +18 -18
  134. package/dist/{project-team-MjT5K4rQ.mjs → project-team-C5XtHbZk.mjs} +5 -5
  135. package/dist/{project-token-BKHGwY3k.mjs → project-token-B4D5yhHQ.mjs} +5 -5
  136. package/dist/{project-tsconfig-BMveFb4b.mjs → project-tsconfig-nhnTWO_Y.mjs} +3 -1
  137. package/dist/{project-zero-trust-Bzdd05-h.mjs → project-zero-trust--0LvktDg.mjs} +5 -5
  138. package/dist/{protocol-COyySMki.mjs → protocol-B1Tvc9-x.mjs} +232 -74
  139. package/dist/{protocol-CkwjASep.d.mts → protocol-Cg2I81NA.d.mts} +13 -4
  140. package/dist/{provision-B0HqoRuI.mjs → provision-C3yiHdld.mjs} +2 -2
  141. package/dist/{provision-CYhZR_Mn.mjs → provision-CAcrauvr.mjs} +1 -1
  142. package/dist/{requests-daJmVpjk.mjs → requests-CrRiTgQA.mjs} +4 -4
  143. package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
  144. package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
  145. package/dist/{rollback-AVwiMAkk.mjs → rollback-BsmQyj-Q.mjs} +7 -7
  146. package/dist/{route-types-e69EqY88.mjs → route-types-CgtlFCDz.mjs} +268 -14
  147. package/dist/{route-url-C_YIH_zO.d.mts → route-url-C3JwYrER.d.mts} +8 -3
  148. package/dist/{route-url-CRDF-I0I.mjs → route-url-CfCR4oMj.mjs} +4 -3
  149. package/dist/routes-stub.d.mts +14 -4
  150. package/dist/routes-stub.mjs +1 -1
  151. package/dist/{runner-QMeOpScZ.mjs → runner-CTk21HrO.mjs} +1 -1
  152. package/dist/{runner-mysql-0zVmB1JW.mjs → runner-mysql-CHvEg_sy.mjs} +1 -1
  153. package/dist/runtime/ai.mjs +1 -1
  154. package/dist/runtime/auth.d.mts +2 -2
  155. package/dist/runtime/auth.mjs +1 -1
  156. package/dist/runtime/better-auth-mysql.d.mts +1 -1
  157. package/dist/runtime/better-auth-mysql.mjs +1 -1
  158. package/dist/runtime/better-auth-pg.d.mts +1 -1
  159. package/dist/runtime/better-auth-pg.mjs +1 -1
  160. package/dist/runtime/better-auth.d.mts +1 -1
  161. package/dist/runtime/better-auth.mjs +1 -1
  162. package/dist/runtime/client-react.d.mts +3 -3
  163. package/dist/runtime/client-react.mjs +2 -2
  164. package/dist/runtime/client-solid.d.mts +3 -3
  165. package/dist/runtime/client-solid.mjs +2 -2
  166. package/dist/runtime/client-svelte.d.mts +3 -3
  167. package/dist/runtime/client-svelte.mjs +2 -2
  168. package/dist/runtime/client-vue.d.mts +3 -3
  169. package/dist/runtime/client-vue.mjs +2 -2
  170. package/dist/runtime/client.d.mts +3 -3
  171. package/dist/runtime/client.mjs +2 -2
  172. package/dist/runtime/db.d.mts +6 -3
  173. package/dist/runtime/db.mjs +2 -2
  174. package/dist/runtime/email/testing.mjs +2 -2
  175. package/dist/runtime/email.mjs +3 -3
  176. package/dist/runtime/env-public.d.mts +1 -1
  177. package/dist/runtime/env-public.mjs +55 -85
  178. package/dist/runtime/fetch-server.d.mts +1 -1
  179. package/dist/runtime/fetch-server.mjs +1 -1
  180. package/dist/runtime/fetch-stream.d.mts +2 -2
  181. package/dist/runtime/fetch-stream.mjs +1 -1
  182. package/dist/runtime/fetch.d.mts +1 -1
  183. package/dist/runtime/fetch.mjs +1 -1
  184. package/dist/runtime/handler.d.mts +1 -1
  185. package/dist/runtime/handler.mjs +1 -1
  186. package/dist/runtime/isr.d.mts +3 -1
  187. package/dist/runtime/live-client.d.mts +11 -2
  188. package/dist/runtime/live-client.mjs +8 -0
  189. package/dist/runtime/live-server.mjs +1 -1
  190. package/dist/runtime/live.d.mts +1 -1
  191. package/dist/runtime/live.mjs +1 -1
  192. package/dist/runtime/log.mjs +1 -1
  193. package/dist/runtime/remote/index.mjs +1 -1
  194. package/dist/runtime/route-url.d.mts +2 -2
  195. package/dist/runtime/route-url.mjs +1 -1
  196. package/dist/runtime/routing.d.mts +21 -5
  197. package/dist/runtime/routing.mjs +251 -29
  198. package/dist/runtime/sandbox.mjs +1 -1
  199. package/dist/runtime/sse-client.d.mts +9 -1
  200. package/dist/runtime/sse-client.mjs +7 -0
  201. package/dist/runtime/validator.d.mts +1 -1
  202. package/dist/runtime/validator.mjs +1 -1
  203. package/dist/runtime/ws-server.d.mts +3 -3
  204. package/dist/runtime/ws-server.mjs +1 -1
  205. package/dist/runtime/ws.d.mts +1 -1
  206. package/dist/runtime/ws.mjs +1 -1
  207. package/dist/{scan-F0psanp7.mjs → scan-BJ3bj6aP.mjs} +236 -32
  208. package/dist/{secret-szNdoeKa.mjs → secret-D0g5oBsP.mjs} +7 -7
  209. package/dist/serialize-DN-envGQ.d.mts +18 -0
  210. package/dist/serialize-Pf-CIQK_.mjs +39 -0
  211. package/dist/{skills-D393E4lB.mjs → skills-CoBB9_Ao.mjs} +1 -1
  212. package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
  213. package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
  214. package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
  215. package/dist/url-CuoEn0o3.mjs +43 -0
  216. package/dist/validator-8-NZs2Xr.mjs +168 -0
  217. package/dist/{version-metadata-BC3LK7Y-.mjs → version-metadata-eUd6Ar_U.mjs} +1 -1
  218. package/dist/wrangler-R3kMdJfw.mjs +1 -0
  219. package/dist/{wrangler-Gn4EoY4-.mjs → wrangler-k40T7XTQ.mjs} +2 -2
  220. package/dist/{wrapper-B9W9RE8z.mjs → wrapper-CVMZarxf.mjs} +11 -8
  221. package/dist/{ws-Dmjg5NH2.d.mts → ws--U7QicYy.d.mts} +2 -2
  222. package/docs/guide/ai.md +3 -0
  223. package/docs/guide/app-types.md +1 -0
  224. package/docs/guide/auth.md +63 -0
  225. package/docs/guide/database/d1.md +16 -1
  226. package/docs/guide/database/mysql.md +1 -0
  227. package/docs/guide/database/postgresql.md +1 -0
  228. package/docs/guide/database.md +34 -0
  229. package/docs/guide/deployment.md +9 -0
  230. package/docs/guide/durable-state.md +1 -0
  231. package/docs/guide/edge/headers.md +1 -0
  232. package/docs/guide/edge/prerendering.md +10 -4
  233. package/docs/guide/edge/redirects.md +1 -0
  234. package/docs/guide/edge/revalidation.md +6 -0
  235. package/docs/guide/edge/rewrites.md +1 -0
  236. package/docs/guide/edge/static-assets.md +1 -0
  237. package/docs/guide/email/domains.md +1 -0
  238. package/docs/guide/email/receiving.md +3 -2
  239. package/docs/guide/email/sending.md +3 -2
  240. package/docs/guide/email.md +1 -0
  241. package/docs/guide/env-vars.md +4 -0
  242. package/docs/guide/index.md +1 -0
  243. package/docs/guide/jobs.md +1 -0
  244. package/docs/guide/kv.md +1 -0
  245. package/docs/guide/live.md +3 -0
  246. package/docs/guide/pages-routing/actions-and-forms.md +51 -28
  247. package/docs/guide/pages-routing/errors.md +101 -0
  248. package/docs/guide/pages-routing/head.md +4 -1
  249. package/docs/guide/pages-routing/islands.md +2 -1
  250. package/docs/guide/pages-routing/layouts.md +3 -0
  251. package/docs/guide/pages-routing/loaders.md +3 -0
  252. package/docs/guide/pages-routing/markdown.md +3 -3
  253. package/docs/guide/pages-routing/overview.md +142 -10
  254. package/docs/guide/pages-routing/view-transitions.md +1 -0
  255. package/docs/guide/platform/administration/access.md +1 -0
  256. package/docs/guide/platform/administration/connected-apps.md +4 -0
  257. package/docs/guide/platform/administration/email.md +1 -0
  258. package/docs/guide/platform/administration/operations.md +1 -0
  259. package/docs/guide/platform/administration/plans.md +1 -0
  260. package/docs/guide/platform/administration/projects.md +11 -0
  261. package/docs/guide/platform/administration/zero-trust.md +1 -0
  262. package/docs/guide/platform/development/local.md +1 -0
  263. package/docs/guide/platform/development/runtime.md +1 -0
  264. package/docs/guide/platform/development/schema-ci.md +1 -0
  265. package/docs/guide/platform/installation/ci.md +1 -0
  266. package/docs/guide/platform/installation/credentials.md +1 -0
  267. package/docs/guide/platform/installation/domains.md +1 -0
  268. package/docs/guide/platform/installation/first-deployment.md +1 -0
  269. package/docs/guide/platform/installation/maintenance.md +1 -0
  270. package/docs/guide/platform/installation/prerequisites.md +1 -0
  271. package/docs/guide/platform/installation/setup.md +1 -0
  272. package/docs/guide/platform/installation/uninstall.md +1 -0
  273. package/docs/guide/platform-administration.md +1 -0
  274. package/docs/guide/platform-development.md +1 -0
  275. package/docs/guide/project-collaboration.md +1 -0
  276. package/docs/guide/queues.md +3 -0
  277. package/docs/guide/quickstart.md +4 -2
  278. package/docs/guide/remote-dev.md +1 -0
  279. package/docs/guide/sandboxes.md +1 -0
  280. package/docs/guide/self-hosted-platform.md +1 -0
  281. package/docs/guide/server-routing.md +1 -0
  282. package/docs/guide/sse.md +3 -0
  283. package/docs/guide/ssg.md +24 -2
  284. package/docs/guide/ssr.md +1 -0
  285. package/docs/guide/storage.md +7 -2
  286. package/docs/guide/testing.md +62 -0
  287. package/docs/guide/type-safety.md +308 -26
  288. package/docs/guide/typed-fetch.md +8 -3
  289. package/docs/guide/websockets.md +6 -5
  290. package/docs/index.md +1 -0
  291. package/docs/integrations/agents.md +1 -0
  292. package/docs/integrations/cloudflare.md +11 -10
  293. package/docs/integrations/frameworks/analog.md +1 -0
  294. package/docs/integrations/frameworks/astro.md +1 -0
  295. package/docs/integrations/frameworks/nuxt.md +3 -0
  296. package/docs/integrations/frameworks/overview.md +3 -0
  297. package/docs/integrations/frameworks/react-router.md +1 -0
  298. package/docs/integrations/frameworks/sveltekit.md +1 -0
  299. package/docs/integrations/frameworks/tanstack-start.md +1 -0
  300. package/docs/integrations/hono.md +1 -0
  301. package/docs/integrations/nodejs-bun-deno.md +66 -0
  302. package/docs/reference/api/auth.md +20 -0
  303. package/docs/reference/api/client.md +7 -4
  304. package/docs/reference/api/database.md +24 -1
  305. package/docs/reference/api/deploy.md +4 -0
  306. package/docs/reference/api/durable.md +1 -0
  307. package/docs/reference/api/env.md +1 -0
  308. package/docs/reference/api/handlers.md +4 -1
  309. package/docs/reference/api/pages.md +30 -12
  310. package/docs/reference/api/plugin.md +1 -0
  311. package/docs/reference/api/resources.md +4 -1
  312. package/docs/reference/api/rewrites.md +18 -5
  313. package/docs/reference/api/types.md +10 -2
  314. package/docs/reference/api.md +1 -0
  315. package/docs/reference/cli/auth.md +1 -0
  316. package/docs/reference/cli/database.md +3 -0
  317. package/docs/reference/cli/deploy.md +18 -11
  318. package/docs/reference/cli/domains.md +1 -0
  319. package/docs/reference/cli/email.md +1 -0
  320. package/docs/reference/cli/generate.md +1 -0
  321. package/docs/reference/cli/github.md +1 -0
  322. package/docs/reference/cli/platform-config.md +1 -0
  323. package/docs/reference/cli/platform-email.md +1 -0
  324. package/docs/reference/cli/platform-installation.md +1 -0
  325. package/docs/reference/cli/platform-operations.md +1 -0
  326. package/docs/reference/cli/platform-users.md +23 -0
  327. package/docs/reference/cli/platform-zero-trust.md +1 -0
  328. package/docs/reference/cli/platform.md +1 -0
  329. package/docs/reference/cli/project.md +1 -0
  330. package/docs/reference/cli/secrets.md +1 -0
  331. package/docs/reference/cli/setup.md +1 -0
  332. package/docs/reference/cli.md +6 -0
  333. package/docs/reference/config.md +25 -2
  334. package/docs/reference/resource-inference.md +1 -0
  335. package/docs/reference/structure.md +1 -0
  336. package/package.json +27 -25
  337. package/schema.json +4 -0
  338. package/skills/void/SKILL.md +7 -0
  339. package/dist/action-key-XtKKbbsi.mjs +0 -25
  340. package/dist/cf-build-output-CmDOcA7K.mjs +0 -1
  341. package/dist/client-CEtr5UOR.mjs +0 -1
  342. package/dist/deploy-DMhOyebt.mjs +0 -2
  343. package/dist/gen-BbT1Ku1P.mjs +0 -1
  344. package/dist/help-Ba8Dq5-r.mjs +0 -1
  345. package/dist/login-BX2gzHUt.mjs +0 -1
  346. package/dist/migrate-CUGMGaIM.mjs +0 -1
  347. package/dist/operator-cmd-oTT2MA9G.mjs +0 -1
  348. package/dist/output-E6gecbbV.mjs +0 -1
  349. package/dist/platform-args-C7XUw9mw.mjs +0 -1
  350. package/dist/prepare-CZRVGNld.mjs +0 -1
  351. package/dist/resolve-project-CgfjtOwz.mjs +0 -1
  352. package/dist/serialize-DUuYuaY3.mjs +0 -29
  353. package/dist/serialize-I4EmS-Wf.d.mts +0 -16
  354. package/dist/validator-CTfmzZYb.mjs +0 -69
  355. package/dist/wrangler-CQ5c-MtJ.mjs +0 -1
  356. package/dist/{cf-access-BmBT2h8_.mjs → cf-access-Dnyw8KFY.mjs} +1 -1
  357. package/dist/{config-s6TkpSat.mjs → config-eeDzKBS9.mjs} +1 -1
  358. package/dist/{env-types-Bd8DkQhl.mjs → env-types-Dz9qkiOn.mjs} +1 -1
  359. package/dist/{inbound-CdO-qY0w.mjs → inbound-C2H6Dzz1.mjs} +2 -2
  360. package/dist/{runner-5MCSimKx.mjs → runner-CMZb7jNU.mjs} +1 -1
  361. package/dist/{runner-mysql-Bdmsp_x4.mjs → runner-mysql-BXfcQQj3.mjs} +1 -1
@@ -1,5 +1,5 @@
1
1
  import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
2
- import { c as editIslandSource, i as resolveEffectiveLayoutChain, l as findIslandImports, n as scanPages, u as findStaticCssImports } from "../scan-F0psanp7.mjs";
2
+ import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-BJ3bj6aP.mjs";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { isCSSRequest, normalizePath } from "vite";
5
5
  // src/pages/islands-plugin.ts
@@ -73,6 +73,7 @@ function islandCssFiles(pageScan, pagesDir, componentPattern) {
73
73
  if (componentPattern.test(page.componentPath)) files.add(normalizePath(resolve(pagesDir, page.componentPath)));
74
74
  for (const layout of resolveEffectiveLayoutChain(page, pageScan.layouts, pageScan.namedLayouts)) files.add(normalizePath(resolve(pagesDir, layout.filePath)));
75
75
  }
76
+ for (const boundary of pageScan.boundaries ?? []) if (componentPattern.test(boundary.filePath)) files.add(normalizePath(resolve(pagesDir, boundary.filePath)));
76
77
  return files;
77
78
  }
78
79
  /**
@@ -111,7 +112,11 @@ function islandStyleRoots(pageScan, pagesDir) {
111
112
  for (const layout of resolveEffectiveLayoutChain(page, pageScan.layouts, pageScan.namedLayouts)) layouts.add(normalizePath(resolve(pagesDir, layout.filePath)));
112
113
  pages.push(normalizePath(resolve(pagesDir, page.componentPath)));
113
114
  }
114
- return [...layouts, ...pages];
115
+ return [
116
+ ...layouts,
117
+ ...pages,
118
+ ...(pageScan.boundaries ?? []).map((boundary) => normalizePath(resolve(pagesDir, boundary.filePath)))
119
+ ];
115
120
  }
116
121
  /** A stylesheet that a page links, not one imported as a string or a URL. */
117
122
  function isLinkedStylesheet(id) {
@@ -250,6 +255,12 @@ function computePagesNeedingClientJS(pageScan, pagesDir, resolvedConfig) {
250
255
  break;
251
256
  }
252
257
  }
258
+ const pageIds = new Set(pageScan.pages.map((page) => page.componentId));
259
+ const interactiveLayouts = new Set([...pageScan.layouts, ...pageScan.namedLayouts].filter((layout) => layout.island && hasIslandImports(readFileSync(resolve(pagesDir, layout.filePath), "utf8"), layout.filePath)).map((layout) => {
260
+ const id = toLayoutId(layout);
261
+ return pageIds.has(id) ? id.replace(/(^|\/)([^/]+)$/, "$1_$2") : id;
262
+ }));
263
+ for (const plan of Object.values(createBoundaryManifest(pageScan).plans)) if (plan.layouts.some((id) => interactiveLayouts.has(id))) result.add(plan.id);
253
264
  return result;
254
265
  }
255
266
  /**
@@ -1,3 +1,3 @@
1
- import { w as ValidationError } from "../handler-BR6Tvjkp.mjs";
2
- import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-CkwjASep.mjs";
1
+ import { w as ValidationError } from "../handler-BO7Od-z9.mjs";
2
+ import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-Cg2I81NA.mjs";
3
3
  export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
@@ -1,3 +1,3 @@
1
1
  import { t as ValidationError } from "../validation-error-uAAjlsiW.mjs";
2
- import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-COyySMki.mjs";
2
+ import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-B1Tvc9-x.mjs";
3
3
  export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
@@ -1,2 +1,2 @@
1
- import { n as islandFrontmatterScript, r as serializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-I4EmS-Wf.mjs";
2
- export { ISLAND_FRONTMATTER_ID, islandFrontmatterScript, serializePageData };
1
+ import { a as serializePageData, i as islandFrontmatterScript, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-DN-envGQ.mjs";
2
+ export { ISLAND_FRONTMATTER_ID, decodePageData, deserializePageData, islandFrontmatterScript, serializePageData };
@@ -1 +1 @@
1
- export { t as ISLAND_FRONTMATTER_ID, n as islandFrontmatterScript, r as serializePageData } from "../serialize-DUuYuaY3.mjs";
1
+ export { t as ISLAND_FRONTMATTER_ID, n as decodePageData, r as deserializePageData, i as islandFrontmatterScript, a as serializePageData } from "../serialize-Pf-CIQK_.mjs";
@@ -1,4 +1,4 @@
1
- import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-D79WQP70.mjs";
1
+ import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-DGTuCdSE.mjs";
2
2
  import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@void/platform";
3
3
  import { parsePlatformPlanId } from "@void/platform/plans";
4
4
  // src/cli/platform-config-args.ts
@@ -0,0 +1 @@
1
+ export { t as parsePlatformArgs } from "./platform-args-CiYeZmc5.mjs";
@@ -1,14 +1,14 @@
1
- import { u as openBrowser } from "./auth-Dy8svcqQ.mjs";
2
- import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-D23AAMxT.mjs";
3
- import { l as formatUrl, m as printSuccess } from "./output-BCdLioKP.mjs";
4
- import { n as OperatorClient } from "./operator-client-BIY4-N_6.mjs";
5
- import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CfDcmzpo.mjs";
6
- import { i as humanLines } from "./operator-cmd-CEI5Aaza.mjs";
7
- import { o as platformPromptAnswer } from "./platform-setup-Vw1AaUN8.mjs";
1
+ import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-STQXl8ck.mjs";
2
+ import { u as openBrowser } from "./auth-CCk9Seol.mjs";
3
+ import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
4
+ import { n as OperatorClient } from "./operator-client-XvXTkea6.mjs";
5
+ import { i as humanLines } from "./operator-cmd-C-viB7Si.mjs";
6
+ import { l as formatUrl, m as printSuccess } from "./output-DNVILSz2.mjs";
7
+ import { o as platformPromptAnswer } from "./platform-setup-Casiffqj.mjs";
8
8
  import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@void/platform";
9
9
  import { stripVTControlCharacters } from "node:util";
10
- import { setTimeout } from "node:timers/promises";
11
10
  import { readFile } from "node:fs/promises";
11
+ import { setTimeout } from "node:timers/promises";
12
12
  // src/cli/platform-auth-config.ts
13
13
  function print(result, json) {
14
14
  console.log(json ? JSON.stringify(result, null, 2) : humanLines(result).join("\n"));
@@ -142,11 +142,11 @@ async function configurationInput(args, existing) {
142
142
  }
143
143
  async function runPlatformAuthConfig(args) {
144
144
  if (args.action === "recover") {
145
- const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-XeBmPTXx.mjs");
145
+ const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-suXSteJ6.mjs");
146
146
  return runPlatformAuthRecovery(args);
147
147
  }
148
148
  if (args.action === "protection") {
149
- const { runPlatformProtectionConfig } = await import("./platform-auth-protection-t6mdY4nn.mjs");
149
+ const { runPlatformProtectionConfig } = await import("./platform-auth-protection-B7TaF-PZ.mjs");
150
150
  return runPlatformProtectionConfig(args);
151
151
  }
152
152
  const origin = resolveOperatorOrigin(args.connection);
@@ -1,12 +1,12 @@
1
- import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
1
+ import { A as confirm, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
3
- import { t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
4
- import { A as confirm, tt as isCancel } from "./dist-D23AAMxT.mjs";
5
- import { m as printSuccess } from "./output-BCdLioKP.mjs";
6
- import { n as OperatorClient } from "./operator-client-BIY4-N_6.mjs";
7
- import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CfDcmzpo.mjs";
8
- import { G as checkpointPlatformAccessResources, H as resolvePlatformCloudflareCredential, K as parsePlatformAccessSetupSpec, Y as PlatformCloudflareClient, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, q as preparePlatformAccessSetup } from "./platform-lifecycle-BvU_TNji.mjs";
9
- import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-_UE1_GM8.mjs";
3
+ import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
4
+ import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
5
+ import { n as OperatorClient } from "./operator-client-XvXTkea6.mjs";
6
+ import { m as printSuccess } from "./output-DNVILSz2.mjs";
7
+ import { G as checkpointPlatformAccessResources, H as resolvePlatformCloudflareCredential, K as parsePlatformAccessSetupSpec, Y as PlatformCloudflareClient, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, q as preparePlatformAccessSetup } from "./platform-lifecycle-CXmXe2xt.mjs";
8
+ import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-BBCHfwji.mjs";
9
+ import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
10
10
  import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@void/platform";
11
11
  import { createHmac } from "node:crypto";
12
12
  import { readFile } from "node:fs/promises";
@@ -1,14 +1,14 @@
1
+ import { A as confirm, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
+ import { u as openBrowser } from "./auth-CCk9Seol.mjs";
3
+ import { a as resolveOperatorOrigin } from "./operator-auth-CD3pap65.mjs";
4
+ import { l as formatUrl, m as printSuccess } from "./output-DNVILSz2.mjs";
5
+ import { H as resolvePlatformCloudflareCredential, Y as PlatformCloudflareClient, g as platformDatabaseClientUrl, h as acquirePlatformDatabaseLifecycleLockConnection, n as resolvePlatformInstallDatabaseUrl } from "./platform-lifecycle-CXmXe2xt.mjs";
6
+ import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-BBCHfwji.mjs";
1
7
  import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
2
- import { u as openBrowser } from "./auth-Dy8svcqQ.mjs";
3
- import { A as confirm, tt as isCancel } from "./dist-D23AAMxT.mjs";
4
- import { l as formatUrl, m as printSuccess } from "./output-BCdLioKP.mjs";
5
- import { a as resolveOperatorOrigin } from "./operator-auth-CfDcmzpo.mjs";
6
- import { H as resolvePlatformCloudflareCredential, Y as PlatformCloudflareClient, g as platformDatabaseClientUrl, h as acquirePlatformDatabaseLifecycleLockConnection, n as resolvePlatformInstallDatabaseUrl } from "./platform-lifecycle-BvU_TNji.mjs";
7
- import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-_UE1_GM8.mjs";
8
8
  import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@void/platform";
9
9
  import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
10
- import { setTimeout } from "node:timers/promises";
11
10
  import { readFile } from "node:fs/promises";
11
+ import { setTimeout } from "node:timers/promises";
12
12
  // src/cli/platform-auth-recovery-core.ts
13
13
  function parseAuthenticationRecoveryInput(value, connectionId) {
14
14
  if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("platform: Recovery requires a JSON object.");
@@ -1,9 +1,9 @@
1
- import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
1
+ import { K as select, L as log, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
3
- import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
4
- import { K as select, L as log, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
3
+ import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
4
+ import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-DNVILSz2.mjs";
5
5
  import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-B0eZjZ3B.mjs";
6
- import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-BCdLioKP.mjs";
6
+ import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
7
7
  // src/cli/platform-cmd.ts
8
8
  function normalizePlatformInputUrl(input) {
9
9
  const value = input.trim();
@@ -96,19 +96,19 @@ async function runPlatformCommand(_root, args) {
96
96
  }]
97
97
  });
98
98
  if (isCancel(group)) return;
99
- const { parsePlatformArgs } = await import("./platform-args-C7XUw9mw.mjs");
99
+ const { parsePlatformArgs } = await import("./platform-args-DJvF1-kl.mjs");
100
100
  return runPlatformCommand(_root, parsePlatformArgs(["config", group]));
101
101
  }
102
- const { runPlatformPlansConfig } = await import("./platform-plans-config-Dx1agneU.mjs");
102
+ const { runPlatformPlansConfig } = await import("./platform-plans-config-BGwkXYDM.mjs");
103
103
  await runPlatformPlansConfig(args);
104
104
  return;
105
105
  }
106
- const { runPlatformAuthConfig } = await import("./platform-auth-config-ZrYm8KVs.mjs");
106
+ const { runPlatformAuthConfig } = await import("./platform-auth-config-Dt2qEc2w.mjs");
107
107
  await runPlatformAuthConfig(args);
108
108
  return;
109
109
  }
110
110
  if (args.subcommand === "operator") {
111
- const { runOperatorCommand } = await import("./operator-cmd-oTT2MA9G.mjs");
111
+ const { runOperatorCommand } = await import("./operator-cmd-D6qNuJ_z.mjs");
112
112
  await runOperatorCommand(args);
113
113
  return;
114
114
  }
@@ -176,7 +176,7 @@ async function runPlatformCommand(_root, args) {
176
176
  console.log(`Capabilities: ${Object.entries(discovery.capabilities).filter(([, enabled]) => enabled).map(([name]) => name).join(", ")}`);
177
177
  return;
178
178
  }
179
- const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-CN4aXldN.mjs");
179
+ const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-3uI-E2bF.mjs");
180
180
  await runPlatformLifecycleCommand(args);
181
181
  }
182
182
  function showSavedInstallationStatus(manifest) {
@@ -1 +1 @@
1
- export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-EXehmSYA.mjs";
1
+ export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-9rvYBBtr.mjs";
@@ -1,9 +1,9 @@
1
- import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
1
+ import { A as confirm, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
3
- import { A as confirm, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
4
- import { m as printSuccess, p as note } from "./output-BCdLioKP.mjs";
5
- import { C as createPlatformHealthProbeToken, E as recordResource, H as resolvePlatformCloudflareCredential, O as recordPlatformWorkerTraffic, V as assertPlatformOperatorCredentialCanApplyPlan, Y as PlatformCloudflareClient, k as createPlatformInstallPlan, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, t as assertNoninteractivePlatformMutationAcknowledged } from "./platform-lifecycle-BvU_TNji.mjs";
6
- import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-_UE1_GM8.mjs";
3
+ import { m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
4
+ import { C as createPlatformHealthProbeToken, E as recordResource, H as resolvePlatformCloudflareCredential, O as recordPlatformWorkerTraffic, V as assertPlatformOperatorCredentialCanApplyPlan, Y as PlatformCloudflareClient, k as createPlatformInstallPlan, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, t as assertNoninteractivePlatformMutationAcknowledged } from "./platform-lifecycle-CXmXe2xt.mjs";
5
+ import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-BBCHfwji.mjs";
6
+ import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
7
7
  import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@void/platform";
8
8
  // src/cli/platform-domain.ts
9
9
  function platformDomainTarget(manifest, domain, zone, dedicatedZone) {
@@ -1 +1 @@
1
- export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-BvU_TNji.mjs";
1
+ export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-CXmXe2xt.mjs";
@@ -1,16 +1,16 @@
1
+ import { A as confirm, H as outro, K as select, L as log, U as password, X as text$1, tt as isCancel, z as multiselect } from "./dist-STQXl8ck.mjs";
1
2
  import { a as join, c as resolve, n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
3
- import { S as writePendingInstallationSecrets, a as latestPlatformWorkerCutoverGeneration, c as normalizePlatformApiUrl, d as platformRegistryDirectory, f as platformWorkerSecretUpdateIntentState, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, n as assertPlatformInstallationSlugAvailable, o as listInstallationManifests, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
3
+ import { f as import_picocolors, l as formatUrl, m as printSuccess, n as cliCommandName, p as note, r as createSpinner, u as getErrorMessage } from "./output-DNVILSz2.mjs";
4
4
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
5
- import { t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
6
- import { A as confirm, H as outro, K as select, L as log, U as password, X as text$1, tt as isCancel, z as multiselect } from "./dist-D23AAMxT.mjs";
7
- import { f as import_picocolors, l as formatUrl, m as printSuccess, n as cliCommandName, p as note, r as createSpinner, u as getErrorMessage } from "./output-BCdLioKP.mjs";
8
- import { l as resolveCloudflareOperationArgv } from "./cloudflare-process-D9aC-jXr.mjs";
9
- import { o as createDefaultRunWrangler, v as resolvePinnedApiBaseUrl } from "./provision-B0HqoRuI.mjs";
10
- import { t as parsePlatformArgs } from "./platform-args-Cx1M-7bq.mjs";
11
- import { o as runCloudflareAuthCommand } from "./cloudflare-auth-CuS42-9A.mjs";
5
+ import { o as createDefaultRunWrangler, v as resolvePinnedApiBaseUrl } from "./provision-C3yiHdld.mjs";
6
+ import { a as platformManagementSetupPage, c as platformSetupLink, d as planWritesDns, i as platformInstallCommandArguments, l as platformSetupPages, n as formatPlatformSetupPlan, o as platformPromptAnswer, r as openPlatformSetupPage, s as platformSetupFieldHelp, t as formatPlatformInstallCommand, u as planCreatesZone } from "./platform-setup-Casiffqj.mjs";
7
+ import { o as runCloudflareAuthCommand } from "./cloudflare-auth-7jTqy9Bx.mjs";
8
+ import { l as resolveCloudflareOperationArgv } from "./cloudflare-process-DmTxZR-N.mjs";
9
+ import { S as writePendingInstallationSecrets, a as latestPlatformWorkerCutoverGeneration, c as normalizePlatformApiUrl, d as platformRegistryDirectory, f as platformWorkerSecretUpdateIntentState, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, n as assertPlatformInstallationSlugAvailable, o as listInstallationManifests, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
10
+ import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
12
11
  import { i as updateProjectWorkerRuntimeLogs, n as assertPlatformRuntimeLogsSupported, r as shouldUpdateProjectWorkerRuntimeLogs } from "./platform-runtime-logs-CdJGnk3f.mjs";
13
- import { a as platformManagementSetupPage, c as platformSetupLink, d as planWritesDns, i as platformInstallCommandArguments, l as platformSetupPages, n as formatPlatformSetupPlan, o as platformPromptAnswer, r as openPlatformSetupPage, s as platformSetupFieldHelp, t as formatPlatformInstallCommand, u as planCreatesZone } from "./platform-setup-Vw1AaUN8.mjs";
12
+ import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
13
+ import { t as parsePlatformArgs } from "./platform-args-CiYeZmc5.mjs";
14
14
  import { copyFileSync, cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
15
15
  import { fileURLToPath } from "node:url";
16
16
  import { isRecord } from "@void/deploy-core";
@@ -18,10 +18,10 @@ import { PLATFORM_APP_ACCESS_SETUP_PROOF_PREFIX, PLATFORM_APP_ACCESS_TURN_OFF_PR
18
18
  import { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
19
19
  import { tmpdir } from "node:os";
20
20
  import { stripVTControlCharacters } from "node:util";
21
+ import { readFile } from "node:fs/promises";
21
22
  import { cloudflareCommandDiagnostic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, readCloudflareTriggerConfig, readCloudflareVersionMigrationTag, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
22
23
  import { createServer, request } from "node:http";
23
24
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
24
- import { readFile } from "node:fs/promises";
25
25
  import { PLATFORM_ADMIN_ASSETS_DIRECTORY, platformDatabaseSchemaDigest, resolvePlatformRuntime } from "@void/platform/installer";
26
26
  import { request as request$1 } from "node:https";
27
27
  // src/cli/platform-cloudflare.ts
@@ -5509,7 +5509,7 @@ async function verifyInstalledPlatformAccessProtection(input) {
5509
5509
  }
5510
5510
  const existingWorkers = input.plan.actions.filter((action) => action.kind === "worker" && action.action === "update").map((action) => action.name);
5511
5511
  if (existingWorkers.length) {
5512
- const { verifyProtectionWorkerOrigins } = await import("./platform-auth-protection-t6mdY4nn.mjs");
5512
+ const { verifyProtectionWorkerOrigins } = await import("./platform-auth-protection-B7TaF-PZ.mjs");
5513
5513
  await verifyProtectionWorkerOrigins({
5514
5514
  request: input.client.request.bind(input.client),
5515
5515
  listWorkerDomains: input.client.listWorkerDomains.bind(input.client),
@@ -7820,14 +7820,14 @@ function resolvePlatformInstallDatabaseUrl(checkpoint, manifest = null) {
7820
7820
  }
7821
7821
  async function runPlatformLifecycleCommand(commandArgs) {
7822
7822
  if (commandArgs.subcommand === "domain") {
7823
- const { runPlatformDomainCommand } = await import("./platform-domain-DR263ObA.mjs");
7823
+ const { runPlatformDomainCommand } = await import("./platform-domain-DhH_vDr6.mjs");
7824
7824
  await runPlatformDomainCommand(commandArgs);
7825
7825
  return;
7826
7826
  }
7827
7827
  if (commandArgs.subcommand === "discover") {
7828
7828
  const client = new PlatformCloudflareClient((await resolvePlatformCloudflareCredential()).token);
7829
7829
  const accountId = await selectAccount(await readAccounts(client), commandArgs.account);
7830
- const { recoverPlatformInstallations } = await import("./platform-recovery-CPVk9-Q4.mjs");
7830
+ const { recoverPlatformInstallations } = await import("./platform-recovery-C8NxXGRR.mjs");
7831
7831
  const recovered = await recoverPlatformInstallations(client, accountId, void 0, commandArgs.selector);
7832
7832
  if (recovered.length === 0) {
7833
7833
  log.info(`No recoverable Void platform installations were found in ${accountId}.`);
@@ -7838,7 +7838,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
7838
7838
  return;
7839
7839
  }
7840
7840
  if (commandArgs.subcommand !== "install") {
7841
- const { runInstalledPlatformCommand } = await import("./platform-management-yS2sve3V.mjs");
7841
+ const { runInstalledPlatformCommand } = await import("./platform-management-PdrgDQTe.mjs");
7842
7842
  await runInstalledPlatformCommand(commandArgs);
7843
7843
  return;
7844
7844
  }
@@ -8014,7 +8014,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
8014
8014
  progress?.stop("Read the saved installation.");
8015
8015
  progress = void 0;
8016
8016
  if (authoritative) {
8017
- const { selectAuthoritativePlatformManifest } = await import("./platform-management-yS2sve3V.mjs");
8017
+ const { selectAuthoritativePlatformManifest } = await import("./platform-management-PdrgDQTe.mjs");
8018
8018
  const selected = selectAuthoritativePlatformManifest(existing, authoritative);
8019
8019
  authoritativeProvisionIntents = true;
8020
8020
  if (!args.plan && JSON.stringify(selected) !== JSON.stringify(existing)) writeInstallationManifest(selected);
@@ -8462,7 +8462,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
8462
8462
  })).actions.filter((action) => action.kind === "worker"),
8463
8463
  revalidateBeforeWorkerDeploy: (manifest, action) => revalidatePlatformInstallAction(client, plan, manifest, action),
8464
8464
  verifyExistingOwnership: async (manifest, databaseCheckpointExists) => {
8465
- const { verifyPlatformInstallationOwnership } = await import("./platform-management-yS2sve3V.mjs");
8465
+ const { verifyPlatformInstallationOwnership } = await import("./platform-management-PdrgDQTe.mjs");
8466
8466
  const retainedReplacementKeys = new Set(plan.actions.filter((action) => {
8467
8467
  const previous = manifest.resources.find((resource) => resource.key === action.key);
8468
8468
  return action.action === "create" && previous && previous.name !== action.name;
@@ -1,9 +1,9 @@
1
+ import { A as confirm, H as outro, K as select, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
+ import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
3
+ import { f as import_picocolors, l as formatUrl, m as printSuccess, p as note, r as createSpinner } from "./output-DNVILSz2.mjs";
4
+ import { $ as hyperdriveOriginMatches, A as dnsRecordConfigHash, B as turnOffInstalledProjectZeroTrust, C as createPlatformHealthProbeToken, D as platformTrafficAttachmentWorker, F as platformAdoptionIntentHash, H as resolvePlatformCloudflareCredential, I as r2BucketConfigHash, J as PlatformCloudflareApiError, L as resourceMarkerProblem, M as hasProvisionIntentStep, N as legacyResourceConfigHash, P as matchesRecordedR2Fingerprint, Q as hyperdriveOriginFromConnectionString, R as revalidatePlatformInstallAction, S as loadPlatformRuntime, T as resolveBootstrapGitHubId, U as verifyPlatformCloudflareCredential, V as assertPlatformOperatorCredentialCanApplyPlan, W as activatePlatformAccessCredentials, X as PlatformRuntimeTokenEmailPermissionError, Y as PlatformCloudflareClient, Z as hyperdriveOriginConfigHash, _ as readPlatformProjectSlugs, a as findPlatformWorkerOutsideChanges, b as formatZeroTrustApplications, c as uploadPlatformWorkerOutsideChanges, d as replacePendingInstallationAuthentication, et as verifyPlatformRuntimeTokenEmailPermissions, f as REMOTE_INSTALLATION_MANIFEST_KEY, j as formatPlatformInstallPlan, k as createPlatformInstallPlan, l as authenticationSetupRequestHash, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, o as formatPlatformWorkerOutsideChanges, p as installPlatform, s as reviewPlatformWorkerOutsideChanges, t as assertNoninteractivePlatformMutationAcknowledged, tt as verifyPlatformRuntimeTokenPermissions, u as readLoginReplacementFile, v as readPlatformProjectZeroTrustState, w as createPlatformInstallationSecrets, x as readPlatformDatabase, y as assertProjectZeroTrustAllowsUninstall, z as platformDatabaseNameFromOwnerUrl } from "./platform-lifecycle-CXmXe2xt.mjs";
1
5
  import { S as writePendingInstallationSecrets, _ as removePlatformConnectionForInstallation, g as removeInstallationRecoverySecrets, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, o as listInstallationManifests, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
2
- import { t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
3
- import { A as confirm, H as outro, K as select, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
4
- import { f as import_picocolors, l as formatUrl, m as printSuccess, p as note, r as createSpinner } from "./output-BCdLioKP.mjs";
5
6
  import { i as updateProjectWorkerRuntimeLogs, n as assertPlatformRuntimeLogsSupported, r as shouldUpdateProjectWorkerRuntimeLogs } from "./platform-runtime-logs-CdJGnk3f.mjs";
6
- import { $ as hyperdriveOriginMatches, A as dnsRecordConfigHash, B as turnOffInstalledProjectZeroTrust, C as createPlatformHealthProbeToken, D as platformTrafficAttachmentWorker, F as platformAdoptionIntentHash, H as resolvePlatformCloudflareCredential, I as r2BucketConfigHash, J as PlatformCloudflareApiError, L as resourceMarkerProblem, M as hasProvisionIntentStep, N as legacyResourceConfigHash, P as matchesRecordedR2Fingerprint, Q as hyperdriveOriginFromConnectionString, R as revalidatePlatformInstallAction, S as loadPlatformRuntime, T as resolveBootstrapGitHubId, U as verifyPlatformCloudflareCredential, V as assertPlatformOperatorCredentialCanApplyPlan, W as activatePlatformAccessCredentials, X as PlatformRuntimeTokenEmailPermissionError, Y as PlatformCloudflareClient, Z as hyperdriveOriginConfigHash, _ as readPlatformProjectSlugs, a as findPlatformWorkerOutsideChanges, b as formatZeroTrustApplications, c as uploadPlatformWorkerOutsideChanges, d as replacePendingInstallationAuthentication, et as verifyPlatformRuntimeTokenEmailPermissions, f as REMOTE_INSTALLATION_MANIFEST_KEY, j as formatPlatformInstallPlan, k as createPlatformInstallPlan, l as authenticationSetupRequestHash, m as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, o as formatPlatformWorkerOutsideChanges, p as installPlatform, s as reviewPlatformWorkerOutsideChanges, t as assertNoninteractivePlatformMutationAcknowledged, tt as verifyPlatformRuntimeTokenPermissions, u as readLoginReplacementFile, v as readPlatformProjectZeroTrustState, w as createPlatformInstallationSecrets, x as readPlatformDatabase, y as assertProjectZeroTrustAllowsUninstall, z as platformDatabaseNameFromOwnerUrl } from "./platform-lifecycle-BvU_TNji.mjs";
7
7
  import { PLATFORM_DISABLED_KEY, PLATFORM_DISABLED_VALUE, PLATFORM_R2_OWNERSHIP_MARKER_KEY, parsePlatformInstallationManifest, recordInstallationResource, recordInstallationStep, setInstallationDesiredState, transitionInstallation } from "@void/platform";
8
8
  import { setTimeout } from "node:timers/promises";
9
9
  // src/cli/platform-teardown.ts
@@ -1 +1 @@
1
- export { c as runInstalledPlatformCommand, l as selectAuthoritativePlatformManifest, d as verifyPlatformInstallationOwnership } from "./platform-management-_UE1_GM8.mjs";
1
+ export { c as runInstalledPlatformCommand, l as selectAuthoritativePlatformManifest, d as verifyPlatformInstallationOwnership } from "./platform-management-BBCHfwji.mjs";
@@ -1,10 +1,10 @@
1
- import { A as confirm, K as select, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
2
- import { m as printSuccess } from "./output-BCdLioKP.mjs";
3
- import { n as OperatorClient, r as OperatorClientError } from "./operator-client-BIY4-N_6.mjs";
4
- import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CfDcmzpo.mjs";
1
+ import { A as confirm, K as select, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
+ import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
3
+ import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
4
+ import { m as printSuccess } from "./output-DNVILSz2.mjs";
5
5
  import { stripVTControlCharacters } from "node:util";
6
- import { PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanId } from "@void/platform/plans";
7
6
  import { readFile } from "node:fs/promises";
7
+ import { PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanId } from "@void/platform/plans";
8
8
  // src/cli/platform-plans-config.ts
9
9
  const limitLabels = {
10
10
  requestsPerMonth: "Requests per billing month",
@@ -1,7 +1,7 @@
1
- import { o as listInstallationManifests, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
2
1
  import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
3
- import { f as REMOTE_INSTALLATION_MANIFEST_KEY, k as createPlatformInstallPlan } from "./platform-lifecycle-BvU_TNji.mjs";
4
- import { a as recoverDurablyMarkedProvisionIntents, d as verifyPlatformInstallationOwnership, r as isPlatformManifestMonotonicExtension } from "./platform-management-_UE1_GM8.mjs";
2
+ import { f as REMOTE_INSTALLATION_MANIFEST_KEY, k as createPlatformInstallPlan } from "./platform-lifecycle-CXmXe2xt.mjs";
3
+ import { a as recoverDurablyMarkedProvisionIntents, d as verifyPlatformInstallationOwnership, r as isPlatformManifestMonotonicExtension } from "./platform-management-BBCHfwji.mjs";
4
+ import { o as listInstallationManifests, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
5
5
  import { parsePlatformInstallationManifest, setInstallationEndpoints } from "@void/platform";
6
6
  // src/cli/platform-recovery.ts
7
7
  async function recoverPlatformInstallations(client, accountId, verifyEndpoint = verifyInstallationEndpoint, selector = "") {
@@ -1,6 +1,6 @@
1
- import { u as openBrowser } from "./auth-Dy8svcqQ.mjs";
2
- import { L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
3
- import { f as import_picocolors, s as formatLink } from "./output-BCdLioKP.mjs";
1
+ import { L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
+ import { u as openBrowser } from "./auth-CCk9Seol.mjs";
3
+ import { f as import_picocolors, s as formatLink } from "./output-DNVILSz2.mjs";
4
4
  // src/cli/platform-plan-writes.ts
5
5
  function planCreatesZone(plan) {
6
6
  return plan.actions.some((action) => action.kind === "zone" && action.action === "create");
@@ -1,11 +1,11 @@
1
1
  import { a as join, l as toSlash, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
3
2
  import { n as globSync } from "./dist-BWNkVq50.mjs";
4
- import { _ as ROUTE_EXTENSIONS, d as deriveFromSource, g as parseWebSocketFilename, h as parseRouteFilename, m as isRouteEnabledForEnvironment, p as compareRouteSpecificity, t as pageFileEnvironment } from "./scan-F0psanp7.mjs";
3
+ import { a as unwrapStaticExpression, c as walk, i as staticLiteral, s as bindingResolver } from "./static-exports-DFkzL-NX.mjs";
5
4
  import { a as isObjectExpression, i as isMemberExpression, n as isIdentifier, r as isLiteral, t as isCallExpression } from "./ast-Cv0JwXqb.mjs";
6
- import { a as staticLiteral, n as bindingResolver, o as unwrapStaticExpression, r as walk } from "./ast-bindings-BkivMJIo.mjs";
5
+ import { _ as isRouteEnabledForEnvironment, b as ROUTE_EXTENSIONS, g as compareRouteSpecificity, m as deriveFromSource, t as pageFileEnvironment, v as parseRouteFilename, y as parseWebSocketFilename } from "./scan-BJ3bj6aP.mjs";
6
+ import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
7
7
  import { n as resourceNameWords, t as isResourceName } from "./resource-name-DlJ9QXzg.mjs";
8
- import { r as getSsrServerEntryPath } from "./entry-DFBca6aS.mjs";
8
+ import { r as getSsrServerEntryPath } from "./entry-BweGTCgj.mjs";
9
9
  import { existsSync, readFileSync } from "node:fs";
10
10
  import { parseSync } from "vite";
11
11
  // src/application-features.ts
@@ -1,14 +1,14 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
+ import { t as analyzeApplication } from "./application-routing-BLrMVpqi.mjs";
3
+ import { a as projectAuthConfigImporter, i as loadVoidAuthConfig } from "./config-eeDzKBS9.mjs";
4
+ import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-DBSpPpU1.mjs";
5
+ import { c as getDatabaseCasing, p as readConfig } from "./config-5oSQhZNj.mjs";
2
6
  import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
3
- import { a as projectAuthConfigImporter, i as loadVoidAuthConfig } from "./config-s6TkpSat.mjs";
4
- import { c as getDatabaseCasing, p as readConfig } from "./config-hL-S-Y9D.mjs";
5
- import { s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
6
- import { i as writeFileIfChanged, n as ensureProjectTsconfig } from "./project-tsconfig-BMveFb4b.mjs";
7
- import { n as generateDbDts } from "./db-types-DRmxBJ2K.mjs";
8
- import { n as findEnvFileForPaths, r as generateEnvTypes } from "./env-types-Bd8DkQhl.mjs";
9
- import { t as analyzeApplication } from "./application-routing-GCBSwXA9.mjs";
10
- import { n as generateQueueTypes, r as generateAuthTypes, t as generateRouteTypes } from "./route-types-e69EqY88.mjs";
11
- import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-lFdzSEa9.mjs";
7
+ import { c as loadLocalEnv } from "./env-UqS-21xi.mjs";
8
+ import { n as generateQueueTypes, o as generateBindingTypes, r as generateAuthTypes, t as generateRouteTypes } from "./route-types-CgtlFCDz.mjs";
9
+ import { n as generateDbDts } from "./db-types-sVwEpyPR.mjs";
10
+ import { n as findEnvFileForPaths, r as generateEnvTypes } from "./env-types-Dz9qkiOn.mjs";
11
+ import { i as writeFileIfChanged, n as ensureProjectTsconfig } from "./project-tsconfig-nhnTWO_Y.mjs";
12
12
  import { existsSync, rmSync } from "node:fs";
13
13
  import { fileURLToPath } from "node:url";
14
14
  // src/codegen/prepare.ts
@@ -27,6 +27,9 @@ async function prepareProject(root) {
27
27
  const outDir = join(root, ".void");
28
28
  const written = [];
29
29
  const removed = [];
30
+ const bindingTypes = generateBindingTypes(config);
31
+ if (bindingTypes) writeGeneratedFile(outDir, "bindings.d.ts", bindingTypes, written);
32
+ else removeGeneratedFile(outDir, "bindings.d.ts", removed);
30
33
  const envFile = findEnvFileForPaths(root, paths);
31
34
  if (envFile) {
32
35
  const { dts } = generateEnvTypes(envFile, outDir);
@@ -1,6 +1,6 @@
1
- import { L as log } from "./dist-D23AAMxT.mjs";
2
- import { m as printSuccess, p as note } from "./output-BCdLioKP.mjs";
3
- import { t as prepareProject } from "./prepare-D8L9AQbw.mjs";
1
+ import { L as log } from "./dist-STQXl8ck.mjs";
2
+ import { t as prepareProject } from "./prepare-BDKWZgfL.mjs";
3
+ import { m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
4
4
  // src/cli/prepare.ts
5
5
  async function runPrepareCommand(root) {
6
6
  console.log();
@@ -0,0 +1 @@
1
+ export { t as prepareProject } from "./prepare-BDKWZgfL.mjs";
@@ -1,24 +1,53 @@
1
1
  import { a as join, i as isAbsolute, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { mkdirSync, writeFileSync } from "node:fs";
2
+ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
3
3
  import { extractPageDataFromHtml } from "@void/isr/core";
4
4
  // src/prerender-render.ts
5
5
  const PAGE_DATA_SCRIPT_ID = "__VOID_PAGE_DATA__";
6
+ /** Error artifacts are documents, not successful prerender routes or page-data entries. */
7
+ async function renderBoundary404(clientDir, fetchBoundary) {
8
+ const file = join(clientDir, "404.html");
9
+ if (existsSync(file)) return;
10
+ const response = await fetchBoundary();
11
+ if (response.status === 204) return;
12
+ if (response.status !== 404 || !response.headers.get("Content-Type")?.includes("text/html")) {
13
+ await response.body?.cancel();
14
+ throw new Error(`Unable to render the Pages not-found document (HTTP ${response.status}).`);
15
+ }
16
+ mkdirSync(clientDir, { recursive: true });
17
+ writeFileSync(file, await response.text());
18
+ }
6
19
  function assertNoPrerenderFailures(failed) {
7
20
  if (failed.length === 0) return;
8
21
  const details = failed.map(({ path, error }) => ` ${path}: ${error}`).join("\n");
9
22
  throw new Error(`${failed.length} page(s) failed to prerender:\n${details}`);
10
23
  }
11
- function outputFileForPath(path) {
12
- return path === "/" ? "index.html" : `${path.slice(1)}.html`;
24
+ function tryDecode(value, decode) {
25
+ try {
26
+ return decode(value);
27
+ } catch {
28
+ return value;
29
+ }
30
+ }
31
+ function filePathForPath(path, host) {
32
+ return host === "node" ? tryDecode(path, decodeURI) : path.split("/").map((segment) => tryDecode(segment, decodeURIComponent)).join("/");
33
+ }
34
+ function outputFileForPath(path, host = "cloudflare") {
35
+ if (path === "/404/") return "404.html";
36
+ if (path.endsWith("/")) return `${filePathForPath(path, host).slice(1)}index.html`;
37
+ return path === "/" ? "index.html" : `${filePathForPath(path, host).slice(1)}.html`;
13
38
  }
14
39
  async function readPrerenderPathsResponse(response) {
15
- if (!response.ok) throw new Error(`prerender: Failed to collect prerender paths. HTTP ${response.status}.`);
40
+ if (!response.ok) {
41
+ const body = await response.json().catch(() => null);
42
+ const detail = typeof body?.error === "string" ? body.error : `HTTP ${response.status}.`;
43
+ throw new Error(`prerender: Failed to collect prerender paths. ${detail}`);
44
+ }
16
45
  const payload = await response.json();
17
46
  if (!payload || !Array.isArray(payload.paths) || !payload.paths.every((path) => typeof path === "string")) throw new Error("prerender: Failed to collect prerender paths. Response payload is invalid.");
18
47
  return payload.paths;
19
48
  }
20
- function pageDataFileForPath(path) {
21
- return path === "/" ? "_void/pages/index.json" : `_void/pages/${path.slice(1)}.json`;
49
+ function pageDataFileForPath(path, host) {
50
+ return path === "/" ? "_void/pages/index.json" : `_void/pages/${filePathForPath(path, host).slice(1)}${path.endsWith("/") ? "index" : ""}.json`;
22
51
  }
23
52
  /** Whether `path` resolves strictly inside `directory`. */
24
53
  function isInside(directory, path) {
@@ -28,8 +57,8 @@ function isInside(directory, path) {
28
57
  function normalizedFile(clientDir, path) {
29
58
  return join(clientDir, path).normalize("NFC").toLowerCase();
30
59
  }
31
- function generatedFiles(path, clientDir) {
32
- return [outputFileForPath(path), pageDataFileForPath(path)].map((file) => normalizedFile(clientDir, file));
60
+ function generatedFiles(path, clientDir, host) {
61
+ return [outputFileForPath(path, host), pageDataFileForPath(path, host)].map((file) => normalizedFile(clientDir, file));
33
62
  }
34
63
  function requestAssetCandidates(path, clientDir) {
35
64
  const relativePath = path === "/" ? "" : path.slice(1);
@@ -51,8 +80,8 @@ function requestAssetCandidates(path, clientDir) {
51
80
  } catch {}
52
81
  return new Set([...candidates].map((file) => normalizedFile(clientDir, file)));
53
82
  }
54
- function renderConcurrency(paths, clientDir) {
55
- const outputs = paths.map((path) => generatedFiles(path, clientDir));
83
+ function renderConcurrency(paths, clientDir, host) {
84
+ const outputs = paths.map((path) => generatedFiles(path, clientDir, host));
56
85
  const ownerByOutput = /* @__PURE__ */ new Map();
57
86
  for (let index = 0; index < outputs.length; index++) for (const output of outputs[index]) {
58
87
  if (ownerByOutput.has(output)) return 1;
@@ -72,20 +101,20 @@ function renderConcurrency(paths, clientDir) {
72
101
  return 4;
73
102
  }
74
103
  /** Shared renderer for local Workers and the isolated Node prerender child. */
75
- async function renderPrerenderPaths(paths, clientDir, fetchPath, fetchPageData, onResult) {
104
+ async function renderPrerenderPaths(paths, clientDir, fetchPath, fetchPageData, onResult, host = "cloudflare") {
76
105
  const results = paths.map(() => ({
77
106
  rendered: [],
78
107
  failed: []
79
108
  }));
80
109
  let next = 0;
81
- await Promise.all(Array.from({ length: Math.min(paths.length, renderConcurrency(paths, clientDir)) }, async () => {
110
+ await Promise.all(Array.from({ length: Math.min(paths.length, renderConcurrency(paths, clientDir, host)) }, async () => {
82
111
  while (next < paths.length) {
83
112
  const index = next++;
84
113
  const path = paths[index];
85
114
  const result = results[index];
86
- const outputFile = outputFileForPath(path);
115
+ const outputFile = outputFileForPath(path, host);
87
116
  const outputPath = join(clientDir, outputFile);
88
- const pageDataPath = join(clientDir, pageDataFileForPath(path));
117
+ const pageDataPath = join(clientDir, pageDataFileForPath(path, host));
89
118
  if (!isInside(clientDir, outputPath) || !isInside(join(clientDir, "_void/pages"), pageDataPath)) {
90
119
  const error = "prerender path resolves outside the output directory";
91
120
  result.failed.push({
@@ -144,4 +173,4 @@ async function renderPrerenderPaths(paths, clientDir, fetchPath, fetchPageData,
144
173
  failed: results.flatMap((result) => result.failed)
145
174
  };
146
175
  }
147
- export { renderPrerenderPaths as i, outputFileForPath as n, readPrerenderPathsResponse as r, assertNoPrerenderFailures as t };
176
+ export { renderPrerenderPaths as a, renderBoundary404 as i, outputFileForPath as n, readPrerenderPathsResponse as r, assertNoPrerenderFailures as t };