void 1.7.0 → 1.9.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 (314) hide show
  1. package/dist/{account-cmd-BfkJ_1PC.mjs → account-cmd-BEMOdwtl.mjs} +5 -5
  2. package/dist/{application-analysis-OV0CBJ80.mjs → application-analysis-3VVsflWZ.mjs} +28 -8
  3. package/dist/{application-routing-QpyC5G8z.mjs → application-routing-CJRlXCc2.mjs} +1 -1
  4. package/dist/{auth-CZrthGxs.d.mts → auth-CV9kXHKe.d.mts} +4 -2
  5. package/dist/{auth-DyWp-fSo.mjs → auth-aMuFOZeI.mjs} +8 -2
  6. package/dist/{auth-link-CW1Zh6FM.mjs → auth-link-B1IynRW5.mjs} +5 -5
  7. package/dist/{auth-router-CNBKnEZi.mjs → auth-router-DVaWJdRB.mjs} +3 -3
  8. package/dist/{better-auth-shared-CdVyCUou.mjs → better-auth-shared-C7LHvF4L.mjs} +1 -1
  9. package/dist/{better-auth-shared-C-0uZg8-.d.mts → better-auth-shared-ajs3LNrY.d.mts} +2 -2
  10. package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
  11. package/dist/{build-cmd-C9qOKW9W.mjs → build-cmd-Dq8tdqQG.mjs} +4 -4
  12. package/dist/{cache-DVBBbWQL.mjs → cache-DGMnskX7.mjs} +4 -4
  13. package/dist/{cancel-deploy-COavnjud.mjs → cancel-deploy-96S5hD1E.mjs} +3 -3
  14. package/dist/cli/cli.mjs +1 -1
  15. package/dist/cli/cloudflare-operation-process.mjs +92 -19
  16. package/dist/cli/env-schema-probe.d.mts +1 -1
  17. package/dist/cli/env-schema-probe.mjs +3 -3
  18. package/dist/{cli-main-DFteHrJI.mjs → cli-main-CQRLxZAu.mjs} +32 -32
  19. package/dist/client-66c0RLDM.mjs +1 -0
  20. package/dist/{client-BEZmTP6p.mjs → client-D6w5x7hM.mjs} +7 -7
  21. package/dist/{cloudflare-auth-DGIivpTb.mjs → cloudflare-auth-pNvmT6kL.mjs} +1 -1
  22. package/dist/{cloudflare-cmd-DJaxC-bc.mjs → cloudflare-cmd-BuuHUM4z.mjs} +5 -5
  23. package/dist/{cloudflare-config-DtOGAbeB.mjs → cloudflare-config-PxbinLLE.mjs} +2 -2
  24. package/dist/{cloudflare-connect-BjpWmglw.mjs → cloudflare-connect-D1QOosLd.mjs} +3 -3
  25. package/dist/{cloudflare-operations-k7wYUv56.mjs → cloudflare-operations-G5AObYzF.mjs} +6 -6
  26. package/dist/{cloudflare-operations-CZkjFrzH.mjs → cloudflare-operations-I4t3mt4R.mjs} +1 -1
  27. package/dist/{cloudflare-process-BcPvlMFd.mjs → cloudflare-process-wcnaQ5JG.mjs} +2 -2
  28. package/dist/{config-wo2EaH0X.mjs → config-C1DPf8EK.mjs} +1 -1
  29. package/dist/{config-CTlUaXWZ.d.mts → config-CCWVY7DY.d.mts} +1 -1
  30. package/dist/{config-5oSQhZNj.mjs → config-CzFdJYNA.mjs} +1 -1
  31. package/dist/{config-DcqUBGCb.mjs → config-DlWQ_hIJ.mjs} +3 -3
  32. package/dist/{config-eeDzKBS9.mjs → config-Do7gJI3T.mjs} +2 -2
  33. package/dist/config-entry.d.mts +1 -1
  34. package/dist/{connect-j1F1C_rW.mjs → connect-4uImOwut.mjs} +6 -6
  35. package/dist/{create-project-CE3jOmd5.mjs → create-project-BaUzZnLZ.mjs} +4 -4
  36. package/dist/{create-project-DZH3aYGQ.mjs → create-project-CQMyzTvK.mjs} +1 -1
  37. package/dist/{db-DyLzzxvM.mjs → db-DEpDeDsi.mjs} +22 -22
  38. package/dist/{db-types-DdHHUVPy.mjs → db-types-BpPYAx0B.mjs} +4 -2
  39. package/dist/{delete-Dey6YoMA.mjs → delete-BVD2kI82.mjs} +4 -4
  40. package/dist/deploy-Dr_Qamzw.mjs +2 -0
  41. package/dist/{deploy-Ccw2D2lw.mjs → deploy-Dyeo5soA.mjs} +40 -81
  42. package/dist/{deploy-managed-static-BBVtpuGv.mjs → deploy-managed-static-Kn73R83A.mjs} +22 -22
  43. package/dist/{deploy-transport-Dt0IvSVW.mjs → deploy-transport-BpKBs_KR.mjs} +3 -3
  44. package/dist/deploy.mjs +6 -6
  45. package/dist/discover-Diq0l6TZ.mjs +1 -0
  46. package/dist/{discover-CVFCWU7W.mjs → discover-Vd18lHsj.mjs} +1 -1
  47. package/dist/{dispatch-pYaww76u.mjs → dispatch-BBfb519j.mjs} +8 -8
  48. package/dist/{dist-DeTdhbZc.mjs → dist-Cp4b1_T9.mjs} +1 -1
  49. package/dist/{dist-BQdgCVQF.mjs → dist-STQXl8ck.mjs} +86 -138
  50. package/dist/{domain-Dh3mG8Vs.mjs → domain-BTIdyUVk.mjs} +5 -5
  51. package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
  52. package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
  53. package/dist/{email-DKyMjOYM.mjs → email-DvrS-I0U.mjs} +10 -10
  54. package/dist/{email-cloudflare-CTt2n_W2.mjs → email-cloudflare-DAGpgzY1.mjs} +16 -11
  55. package/dist/{entry-Bw-G1VVx.mjs → entry-DMgR7XOf.mjs} +2 -2
  56. package/dist/{env-DkZzh_Dd.mjs → env-D7vORwpn.mjs} +6 -6
  57. package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
  58. package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
  59. package/dist/{env-types-Dz9qkiOn.mjs → env-types-WEZw5D-r.mjs} +1 -1
  60. package/dist/{env-validation-C8NL3lEH.mjs → env-validation-DKDcpxbt.mjs} +1 -1
  61. package/dist/{env-validation-1snjKtDX.mjs → env-validation-DeYNRp1d.mjs} +5 -5
  62. package/dist/{gen-BZmFOGDQ.mjs → gen-DimkGNve.mjs} +6 -6
  63. package/dist/gen-DmEeVEs4.mjs +1 -0
  64. package/dist/{github-cmd-7Oky9qgH.mjs → github-cmd-D-zs6VQr.mjs} +4 -4
  65. package/dist/{handler-DjqciiDc.d.mts → handler-6fzr_ikp.d.mts} +5 -4
  66. package/dist/{head-MeF_5M_3.d.mts → head-CVO92KEx.d.mts} +14 -3
  67. package/dist/{head-5XPcnG-j.mjs → head-CWJhfUwV.mjs} +62 -3
  68. package/dist/{headers-CimYIfQI.mjs → headers-Q0kZDpk8.mjs} +11 -2
  69. package/dist/{help-CNuUb47C.mjs → help-Cgdcd-SG.mjs} +6 -6
  70. package/dist/help-Cp3K5m1w.mjs +1 -0
  71. package/dist/index.d.mts +5 -5
  72. package/dist/index.mjs +257 -188
  73. package/dist/{info-DwB8IWIx.mjs → info-BbxQ34kk.mjs} +4 -4
  74. package/dist/{init-CUGSmcED.mjs → init-zyRj3QRw.mjs} +19 -20
  75. package/dist/{link-BlRTGHan.mjs → link-DAFXuIER.mjs} +5 -5
  76. package/dist/{list-iCg7d5Pa.mjs → list-BTIcC3W9.mjs} +5 -5
  77. package/dist/{live-zKGbRT4h.d.mts → live-DBybyDt0.d.mts} +2 -2
  78. package/dist/{live-CYJ4KGoR.mjs → live-Dw7NF1t2.mjs} +1 -1
  79. package/dist/load-user-env-ztmIyiLx.mjs +34 -0
  80. package/dist/{local-d1-CFcH9Bx3.mjs → local-d1-BnVb7Fem.mjs} +1 -1
  81. package/dist/login-DBs8JuSl.mjs +1 -0
  82. package/dist/{login-TA51e5Fw.mjs → login-DOE-MkeK.mjs} +4 -4
  83. package/dist/{logs-BlyAxlvx.mjs → logs-CUsjihc3.mjs} +4 -4
  84. package/dist/migrate-BYhoIK9R.mjs +1 -0
  85. package/dist/{migrate-BH6LCr00.mjs → migrate-DtoKdGas.mjs} +6 -6
  86. package/dist/nitro.mjs +3 -3
  87. package/dist/{node-B0otYjDv.mjs → node-D9dPyUr0.mjs} +4 -4
  88. package/dist/operator-ai-logging-DFTEp81Z.mjs +121 -0
  89. package/dist/{operator-args-DuKAQ3Ks.mjs → operator-args-BCCohcz3.mjs} +10 -1
  90. package/dist/{operator-cmd-CoHlJjcT.mjs → operator-cmd-CQOQrUiO.mjs} +27 -7
  91. package/dist/operator-cmd-xCACDtT1.mjs +1 -0
  92. package/dist/output-BsdnNpxa.mjs +1 -0
  93. package/dist/{output-CXJTIAtF.mjs → output-DNVILSz2.mjs} +1 -1
  94. package/dist/pages/client.d.mts +28 -3
  95. package/dist/pages/client.mjs +146 -27
  96. package/dist/pages/head.d.mts +2 -2
  97. package/dist/pages/head.mjs +1 -1
  98. package/dist/pages/index.d.mts +5 -4
  99. package/dist/pages/index.mjs +5 -5
  100. package/dist/pages/islands-plugin.d.mts +6 -2
  101. package/dist/pages/islands-plugin.mjs +18 -3
  102. package/dist/pages/protocol.d.mts +2 -2
  103. package/dist/pages/protocol.mjs +1 -1
  104. package/dist/platform-args-DSi4_M8n.mjs +1 -0
  105. package/dist/{platform-args-DfT8yQBF.mjs → platform-args-DtpHS_75.mjs} +1 -1
  106. package/dist/{platform-auth-config-MO0VdVs9.mjs → platform-auth-config-fLwIS5VG.mjs} +6 -6
  107. package/dist/{platform-auth-protection-Dv208eyL.mjs → platform-auth-protection-BTRI_YwD.mjs} +4 -4
  108. package/dist/{platform-auth-recovery-DvAQ674F.mjs → platform-auth-recovery-DPK2Mvmo.mjs} +4 -4
  109. package/dist/{platform-cmd-BpUA19r_.mjs → platform-cmd-BLy5uCa-.mjs} +1 -1
  110. package/dist/{platform-cmd-dlSxrcQ7.mjs → platform-cmd-HS_FSthn.mjs} +7 -7
  111. package/dist/{platform-domain-DSO4eUEw.mjs → platform-domain-CHpcq_qg.mjs} +4 -4
  112. package/dist/{platform-lifecycle-CfcFygHb.mjs → platform-lifecycle-B6LUBwjS.mjs} +1 -1
  113. package/dist/{platform-lifecycle-BSvsyB_x.mjs → platform-lifecycle-D2RS7DE0.mjs} +239 -29
  114. package/dist/{platform-management-BMdyt667.mjs → platform-management-C-T0ch4y.mjs} +1 -1
  115. package/dist/{platform-management-CrP1XhVd.mjs → platform-management-d3ETv3Dw.mjs} +15 -15
  116. package/dist/{platform-plans-config-CgDiwflR.mjs → platform-plans-config-B7yJQKf7.mjs} +116 -32
  117. package/dist/{platform-recovery-CHWwXVZ6.mjs → platform-recovery-DS5CAsly.mjs} +2 -2
  118. package/dist/{platform-setup-BTQVbnTC.mjs → platform-setup-Casiffqj.mjs} +2 -2
  119. package/dist/{plugin-inference-g66Q1Mx9.mjs → plugin-inference-DZHmVe1f.mjs} +4 -4
  120. package/dist/{prepare-DXduEwQp.mjs → prepare-AVM4Hj3T.mjs} +10 -10
  121. package/dist/prepare-BSXKz6m8.mjs +1 -0
  122. package/dist/{prepare-DJYHjpzq.mjs → prepare-DMk8NAO-.mjs} +3 -3
  123. package/dist/{prerender-render-BN9Lmebs.mjs → prerender-render-BAdYhivW.mjs} +15 -2
  124. package/dist/prerender-render.d.mts +2 -0
  125. package/dist/prerender-render.mjs +1 -1
  126. package/dist/{project-cmd-Dfb1Sg8w.mjs → project-cmd-TQKAOTMV.mjs} +17 -17
  127. package/dist/{project-paths-G0yut6Zz.mjs → project-paths-CUhCPMpK.mjs} +33 -2
  128. package/dist/{project-team-BO2dyc7S.mjs → project-team-B1OKeb-T.mjs} +4 -4
  129. package/dist/{project-token-ByO2mEI2.mjs → project-token-RW_wpmN-.mjs} +4 -4
  130. package/dist/{project-tsconfig-nhnTWO_Y.mjs → project-tsconfig-MyRJgufB.mjs} +1 -1
  131. package/dist/{project-zero-trust-CoQfwRBR.mjs → project-zero-trust-TNc66p0_.mjs} +4 -4
  132. package/dist/{protocol-yxdHxFLN.mjs → protocol-IPSWHolJ.mjs} +233 -76
  133. package/dist/{protocol-xZMvWsrg.d.mts → protocol-YS3tbxWE.d.mts} +10 -3
  134. package/dist/{provision-CMH4-8ri.mjs → provision-BLdkpFT4.mjs} +1 -1
  135. package/dist/{provision-D5q-ptD3.mjs → provision-bgQTi5QZ.mjs} +2 -2
  136. package/dist/redirect-Dqb4fEc5.mjs +80 -0
  137. package/dist/{requests-CPOiDkjh.mjs → requests-Cj15-yrI.mjs} +3 -3
  138. package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
  139. package/dist/{resolve-project-ClvLMTI9.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
  140. package/dist/{rollback-BfCs2la4.mjs → rollback-CYnkng7B.mjs} +4 -4
  141. package/dist/{route-types-Cl3x0Q8B.mjs → route-types-C6eAOmOj.mjs} +4 -3
  142. package/dist/routes-stub.d.mts +4 -3
  143. package/dist/runtime/auth.d.mts +1 -1
  144. package/dist/runtime/auth.mjs +1 -1
  145. package/dist/runtime/better-auth-mysql.d.mts +1 -1
  146. package/dist/runtime/better-auth-mysql.mjs +1 -1
  147. package/dist/runtime/better-auth-pg.d.mts +1 -1
  148. package/dist/runtime/better-auth-pg.mjs +1 -1
  149. package/dist/runtime/better-auth.d.mts +1 -1
  150. package/dist/runtime/better-auth.mjs +1 -1
  151. package/dist/runtime/client-react.d.mts +1 -1
  152. package/dist/runtime/client-solid.d.mts +1 -1
  153. package/dist/runtime/client-svelte.d.mts +1 -1
  154. package/dist/runtime/client-vue.d.mts +1 -1
  155. package/dist/runtime/client.d.mts +1 -1
  156. package/dist/runtime/db.d.mts +6 -3
  157. package/dist/runtime/db.mjs +2 -2
  158. package/dist/runtime/env-public.d.mts +1 -1
  159. package/dist/runtime/env-public.mjs +53 -39
  160. package/dist/runtime/handler.d.mts +1 -1
  161. package/dist/runtime/live-client.d.mts +1 -1
  162. package/dist/runtime/live-server.mjs +1 -1
  163. package/dist/runtime/live.d.mts +1 -1
  164. package/dist/runtime/live.mjs +1 -1
  165. package/dist/runtime/routing.d.mts +8 -3
  166. package/dist/runtime/routing.mjs +164 -23
  167. package/dist/runtime/validator.d.mts +1 -1
  168. package/dist/runtime/ws-server.d.mts +3 -3
  169. package/dist/runtime/ws-server.mjs +1 -1
  170. package/dist/runtime/ws.d.mts +1 -1
  171. package/dist/{scan-L8OSv1f7.mjs → scan-4YOxDaw2.mjs} +230 -29
  172. package/dist/{secret-CuI6LTpD.mjs → secret-BSf7dgg_.mjs} +6 -6
  173. package/dist/{skills-BBO9wMjB.mjs → skills-CoBB9_Ao.mjs} +1 -1
  174. package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
  175. package/dist/{subcommand-prompt-BZMnCA8T.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
  176. package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
  177. package/dist/url-DaehRGKR.mjs +106 -0
  178. package/dist/{version-metadata-eUd6Ar_U.mjs → version-metadata-CeftH0fQ.mjs} +1 -1
  179. package/dist/{wrangler-k40T7XTQ.mjs → wrangler-B1gkT_wC.mjs} +3 -3
  180. package/dist/wrangler-fNGvPTlO.mjs +1 -0
  181. package/dist/{wrapper-BGsi_uHs.mjs → wrapper-xJ4LP5A7.mjs} +3 -3
  182. package/dist/{ws-DB8Feytg.d.mts → ws-C2zy0QBf.d.mts} +2 -2
  183. package/docs/guide/ai.md +2 -1
  184. package/docs/guide/app-types.md +1 -0
  185. package/docs/guide/auth.md +23 -27
  186. package/docs/guide/database/d1.md +18 -1
  187. package/docs/guide/database/mysql.md +1 -0
  188. package/docs/guide/database/postgresql.md +1 -0
  189. package/docs/guide/database.md +30 -27
  190. package/docs/guide/deployment.md +3 -2
  191. package/docs/guide/durable-state.md +1 -0
  192. package/docs/guide/edge/headers.md +4 -3
  193. package/docs/guide/edge/prerendering.md +6 -5
  194. package/docs/guide/edge/redirects.md +2 -1
  195. package/docs/guide/edge/revalidation.md +6 -1
  196. package/docs/guide/edge/rewrites.md +2 -1
  197. package/docs/guide/edge/static-assets.md +5 -0
  198. package/docs/guide/email/domains.md +1 -0
  199. package/docs/guide/email/receiving.md +3 -2
  200. package/docs/guide/email/sending.md +7 -4
  201. package/docs/guide/email.md +1 -0
  202. package/docs/guide/env-vars.md +4 -0
  203. package/docs/guide/index.md +1 -0
  204. package/docs/guide/jobs.md +1 -0
  205. package/docs/guide/kv.md +1 -0
  206. package/docs/guide/live.md +2 -1
  207. package/docs/guide/pages-routing/actions-and-forms.md +58 -22
  208. package/docs/guide/pages-routing/errors.md +109 -0
  209. package/docs/guide/pages-routing/head.md +45 -1
  210. package/docs/guide/pages-routing/islands.md +4 -1
  211. package/docs/guide/pages-routing/layouts.md +4 -1
  212. package/docs/guide/pages-routing/loaders.md +4 -1
  213. package/docs/guide/pages-routing/markdown.md +6 -4
  214. package/docs/guide/pages-routing/overview.md +16 -20
  215. package/docs/guide/pages-routing/view-transitions.md +1 -0
  216. package/docs/guide/platform/administration/access.md +1 -0
  217. package/docs/guide/platform/administration/connected-apps.md +13 -2
  218. package/docs/guide/platform/administration/email.md +1 -0
  219. package/docs/guide/platform/administration/operations.md +1 -0
  220. package/docs/guide/platform/administration/plans.md +35 -1
  221. package/docs/guide/platform/administration/projects.md +16 -1
  222. package/docs/guide/platform/administration/zero-trust.md +1 -0
  223. package/docs/guide/platform/development/local.md +1 -0
  224. package/docs/guide/platform/development/runtime.md +1 -0
  225. package/docs/guide/platform/development/schema-ci.md +1 -0
  226. package/docs/guide/platform/installation/ci.md +1 -0
  227. package/docs/guide/platform/installation/credentials.md +12 -9
  228. package/docs/guide/platform/installation/domains.md +1 -0
  229. package/docs/guide/platform/installation/first-deployment.md +1 -0
  230. package/docs/guide/platform/installation/maintenance.md +8 -1
  231. package/docs/guide/platform/installation/prerequisites.md +1 -0
  232. package/docs/guide/platform/installation/setup.md +9 -7
  233. package/docs/guide/platform/installation/uninstall.md +1 -0
  234. package/docs/guide/platform-administration.md +1 -0
  235. package/docs/guide/platform-development.md +1 -0
  236. package/docs/guide/project-collaboration.md +1 -0
  237. package/docs/guide/queues.md +3 -0
  238. package/docs/guide/quickstart.md +3 -2
  239. package/docs/guide/remote-dev.md +1 -0
  240. package/docs/guide/sandboxes.md +1 -0
  241. package/docs/guide/self-hosted-platform.md +1 -0
  242. package/docs/guide/server-routing.md +3 -2
  243. package/docs/guide/sse.md +2 -1
  244. package/docs/guide/ssg.md +18 -6
  245. package/docs/guide/ssr.md +1 -0
  246. package/docs/guide/storage.md +2 -1
  247. package/docs/guide/testing.md +64 -0
  248. package/docs/guide/type-safety.md +24 -21
  249. package/docs/guide/typed-fetch.md +1 -0
  250. package/docs/guide/websockets.md +1 -0
  251. package/docs/index.md +1 -0
  252. package/docs/integrations/agents.md +1 -0
  253. package/docs/integrations/cloudflare.md +7 -2
  254. package/docs/integrations/frameworks/analog.md +1 -0
  255. package/docs/integrations/frameworks/astro.md +1 -0
  256. package/docs/integrations/frameworks/nuxt.md +2 -1
  257. package/docs/integrations/frameworks/overview.md +1 -0
  258. package/docs/integrations/frameworks/react-router.md +1 -0
  259. package/docs/integrations/frameworks/sveltekit.md +1 -0
  260. package/docs/integrations/frameworks/tanstack-start.md +1 -0
  261. package/docs/integrations/hono.md +22 -0
  262. package/docs/integrations/nodejs-bun-deno.md +5 -4
  263. package/docs/reference/api/auth.md +23 -4
  264. package/docs/reference/api/client.md +1 -0
  265. package/docs/reference/api/database.md +24 -1
  266. package/docs/reference/api/deploy.md +4 -0
  267. package/docs/reference/api/durable.md +1 -0
  268. package/docs/reference/api/env.md +1 -0
  269. package/docs/reference/api/handlers.md +1 -0
  270. package/docs/reference/api/pages.md +38 -16
  271. package/docs/reference/api/plugin.md +1 -0
  272. package/docs/reference/api/resources.md +2 -1
  273. package/docs/reference/api/rewrites.md +9 -4
  274. package/docs/reference/api/types.md +1 -0
  275. package/docs/reference/api.md +2 -1
  276. package/docs/reference/cli/auth.md +1 -0
  277. package/docs/reference/cli/database.md +1 -0
  278. package/docs/reference/cli/deploy.md +5 -2
  279. package/docs/reference/cli/domains.md +1 -0
  280. package/docs/reference/cli/email.md +1 -0
  281. package/docs/reference/cli/generate.md +1 -0
  282. package/docs/reference/cli/github.md +1 -0
  283. package/docs/reference/cli/platform-config.md +4 -3
  284. package/docs/reference/cli/platform-email.md +1 -0
  285. package/docs/reference/cli/platform-installation.md +1 -0
  286. package/docs/reference/cli/platform-operations.md +1 -0
  287. package/docs/reference/cli/platform-users.md +71 -1
  288. package/docs/reference/cli/platform-zero-trust.md +1 -0
  289. package/docs/reference/cli/platform.md +1 -0
  290. package/docs/reference/cli/project.md +1 -0
  291. package/docs/reference/cli/secrets.md +1 -0
  292. package/docs/reference/cli/setup.md +1 -0
  293. package/docs/reference/cli.md +3 -0
  294. package/docs/reference/config.md +8 -3
  295. package/docs/reference/resource-inference.md +1 -0
  296. package/docs/reference/structure.md +1 -0
  297. package/package.json +25 -25
  298. package/skills/void/SKILL.md +3 -1
  299. package/dist/action-key-XtKKbbsi.mjs +0 -25
  300. package/dist/client-BAxLpSKv.mjs +0 -1
  301. package/dist/deploy-DEZkUS77.mjs +0 -2
  302. package/dist/discover-1DJD4YXD.mjs +0 -1
  303. package/dist/gen-C6iknRdI.mjs +0 -1
  304. package/dist/help-C_cqTByy.mjs +0 -1
  305. package/dist/load-user-env-CSwdofj0.mjs +0 -48
  306. package/dist/login-C4q1S-5b.mjs +0 -1
  307. package/dist/migrate-CVBsSFhC.mjs +0 -1
  308. package/dist/operator-cmd-DnaCnCSP.mjs +0 -1
  309. package/dist/output-CNsMDEd2.mjs +0 -1
  310. package/dist/platform-args-B7-wQ0_B.mjs +0 -1
  311. package/dist/prepare-Bx4a8cb1.mjs +0 -1
  312. package/dist/resolve-project-BALVa9q0.mjs +0 -1
  313. package/dist/url-CuoEn0o3.mjs +0 -43
  314. package/dist/wrangler-R3kMdJfw.mjs +0 -1
@@ -1,8 +1,8 @@
1
1
  import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
2
- import { d as deriveDurableResourceIdentity, f as inferDurableResourceName, t as analyzeApplicationSync } from "./application-analysis-OV0CBJ80.mjs";
3
- import { n as VOID_LOCK_FILE } from "./cloudflare-config-DtOGAbeB.mjs";
4
- import { p as readConfig } from "./config-5oSQhZNj.mjs";
5
- import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-g66Q1Mx9.mjs";
2
+ import { d as deriveDurableResourceIdentity, f as inferDurableResourceName, t as analyzeApplicationSync } from "./application-analysis-3VVsflWZ.mjs";
3
+ import { n as VOID_LOCK_FILE } from "./cloudflare-config-PxbinLLE.mjs";
4
+ import { p as readConfig } from "./config-CzFdJYNA.mjs";
5
+ import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-DZHmVe1f.mjs";
6
6
  import { existsSync, readFileSync } from "node:fs";
7
7
  import { isRecord } from "@void/deploy-core";
8
8
  // src/cli/info.ts
@@ -1,26 +1,26 @@
1
- import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-BQdgCVQF.mjs";
1
+ import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
3
- import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-DtOGAbeB.mjs";
4
- import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-nhnTWO_Y.mjs";
5
- import { n as readProjectPaths, o as TYPED_CONFIG_FILE } from "./project-paths-G0yut6Zz.mjs";
6
- import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-k40T7XTQ.mjs";
7
- import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-5oSQhZNj.mjs";
8
- import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DcqUBGCb.mjs";
3
+ import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-PxbinLLE.mjs";
4
+ import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-MyRJgufB.mjs";
5
+ import { n as readProjectPaths, o as TYPED_CONFIG_FILE } from "./project-paths-CUhCPMpK.mjs";
6
+ import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-B1gkT_wC.mjs";
7
+ import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-CzFdJYNA.mjs";
8
+ import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DlWQ_hIJ.mjs";
9
9
  import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
10
- import { r as detectFramework } from "./plugin-inference-g66Q1Mx9.mjs";
10
+ import { r as detectFramework } from "./plugin-inference-DZHmVe1f.mjs";
11
11
  import { i as readPackageJson, n as hasPackageDependency } from "./package-json-DvS6IFRv.mjs";
12
12
  import { n as getOwnVersion, r as getPackageDir, t as detectAgents } from "./agents-DRo8gzni.mjs";
13
- import { t as connectCloudflare } from "./cloudflare-connect-BjpWmglw.mjs";
13
+ import { t as connectCloudflare } from "./cloudflare-connect-D1QOosLd.mjs";
14
14
  import { c as getToken } from "./auth-CCk9Seol.mjs";
15
- import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
16
- import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-CE3jOmd5.mjs";
17
- import { t as promptForLoginToken } from "./login-TA51e5Fw.mjs";
15
+ import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
16
+ import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BaUzZnLZ.mjs";
17
+ import { t as promptForLoginToken } from "./login-DOE-MkeK.mjs";
18
18
  import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
19
19
  import { t as parseDotenvFile } from "./dotenv-CEI8hapP.mjs";
20
- import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-BH6LCr00.mjs";
21
- import { l as formatUrl, m as printSuccess, p as note } from "./output-CXJTIAtF.mjs";
22
- import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-dlSxrcQ7.mjs";
23
- import { s as formatProjectCommand } from "./cloudflare-process-BcPvlMFd.mjs";
20
+ import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-DtoKdGas.mjs";
21
+ import { l as formatUrl, m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
22
+ import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-HS_FSthn.mjs";
23
+ import { s as formatProjectCommand } from "./cloudflare-process-wcnaQ5JG.mjs";
24
24
  import { t as MagicString } from "./dist-B6eN80gc.mjs";
25
25
  import { i as hasLocalLockfile, n as drizzleKitBin, r as findInstalledYarnPnpRuntime, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
26
26
  import { createRequire } from "node:module";
@@ -220,7 +220,6 @@ const SCAFFOLD_GITIGNORE_LINES = [
220
220
  ".void-wrangler.jsonc",
221
221
  ".env",
222
222
  ".env.*",
223
- "!.env.example",
224
223
  "*.tsbuildinfo",
225
224
  ".DS_Store"
226
225
  ];
@@ -230,8 +229,8 @@ const SCAFFOLD_BASE_DEV_DEPENDENCIES = {
230
229
  typescript: "^7.0.2"
231
230
  };
232
231
  const SCAFFOLD_VITE_PLUS_DEV_DEPENDENCIES = {
233
- vite: "npm:@voidzero-dev/vite-plus-core@^1.5.0",
234
- "vite-plus": "^1.5.0"
232
+ vite: "npm:@voidzero-dev/vite-plus-core@^1.6.0",
233
+ "vite-plus": "^1.6.0"
235
234
  };
236
235
  const SCAFFOLD_TOOLCHAIN_OPTIONS = [{
237
236
  value: "vite-plus",
@@ -2582,7 +2581,7 @@ async function runInitCommand(root, initArgs) {
2582
2581
  await injectAgentBlock(root, newProject);
2583
2582
  const agents = detectAgents(root);
2584
2583
  if (agents.length > 0) {
2585
- const { linkSkillsForSpecificAgents } = await import("./skills-BBO9wMjB.mjs");
2584
+ const { linkSkillsForSpecificAgents } = await import("./skills-CoBB9_Ao.mjs");
2586
2585
  linkSkillsForSpecificAgents(root, agents);
2587
2586
  } else log.info("Bundled Void docs: node_modules/void/docs/");
2588
2587
  if (!targeted && !framework) {
@@ -1,10 +1,10 @@
1
- import { H as outro, L as log, O as cancel } from "./dist-BQdgCVQF.mjs";
1
+ import { H as outro, L as log, O as cancel } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken, s as getSiteDomain } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
4
- import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-CE3jOmd5.mjs";
5
- import { f as import_picocolors, m as printSuccess } from "./output-CXJTIAtF.mjs";
3
+ import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
4
+ import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BaUzZnLZ.mjs";
5
+ import { f as import_picocolors, m as printSuccess } from "./output-DNVILSz2.mjs";
6
6
  import { r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
7
- import { a as resolveProjectBySlug } from "./resolve-project-ClvLMTI9.mjs";
7
+ import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
8
8
  // src/cli/link.ts
9
9
  function projectLabel(slug, root, url) {
10
10
  if (url) return url;
@@ -1,9 +1,9 @@
1
- import { H as outro, L as log } from "./dist-BQdgCVQF.mjs";
1
+ import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
4
- import { _ as tablePrefix, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-CXJTIAtF.mjs";
3
+ import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
4
+ import { _ as tablePrefix, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
5
5
  import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
6
- import { a as resolveProjectBySlug } from "./resolve-project-ClvLMTI9.mjs";
6
+ import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
7
7
  // src/cli/list.ts
8
8
  async function runListCommand(root, slug) {
9
9
  console.log();
@@ -42,7 +42,7 @@ async function runListCommand(root, slug) {
42
42
  }
43
43
  async function showCloudflareDeployments(root, slug) {
44
44
  if (slug) throw new Error("project: A project name selects a Void platform project and is not used for direct Cloudflare apps.");
45
- const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-CZkjFrzH.mjs");
45
+ const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-I4t3mt4R.mjs");
46
46
  const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
47
47
  if (status.versions.length === 0) {
48
48
  outro(`No deployments for ${status.workerName}.`);
@@ -1,5 +1,5 @@
1
- import { i as AuthUser } from "./auth-CZrthGxs.mjs";
2
- import { a as CloudEnv, r as CloudContext } from "./handler-DjqciiDc.mjs";
1
+ import { i as AuthUser } from "./auth-CV9kXHKe.mjs";
2
+ import { a as CloudEnv, r as CloudContext } from "./handler-6fzr_ikp.mjs";
3
3
  type MaybePromise<T> = T | Promise<T>;
4
4
  type LiveControlRequest = {
5
5
  connectionId: string;
@@ -1,4 +1,4 @@
1
- import { a as getUser } from "./auth-DyWp-fSo.mjs";
1
+ import { a as getUser } from "./auth-aMuFOZeI.mjs";
2
2
  import { a as getRawRuntimeEnv } from "./env-raw-e8qgqAzQ.mjs";
3
3
  import { n as bytesToBase64 } from "./base64-ikl9yBy3.mjs";
4
4
  // src/runtime/live-names.ts
@@ -0,0 +1,34 @@
1
+ import { l as aliasHint } from "./project-paths-CUhCPMpK.mjs";
2
+ import { pathToFileURL } from "node:url";
3
+ // src/host/load-user-env.ts
4
+ /**
5
+ * Loader for the user's `env.ts`.
6
+ *
7
+ * Uses Node's native `import()` (type-stripping is on by default in the
8
+ * supported Node version), so only relative imports and bare package
9
+ * specifiers resolve. tsconfig path aliases (`@/foo`, `~/foo`) are NOT
10
+ * supported — if the user writes one, we detect the resulting resolution
11
+ * error and re-throw with guidance pointing at the offending specifier.
12
+ *
13
+ * Side-effect contract: loading the file evaluates the user's `defineEnv`
14
+ * call, which registers the schema in the singleton state in
15
+ * `runtime/env-public.ts`. Callers read the result from there.
16
+ *
17
+ * Node-only (lives under `host/`). Must not be imported from anything
18
+ * that ships in worker bundles.
19
+ */
20
+ let loadCounter = 0;
21
+ async function loadUserEnvFile(envFile) {
22
+ const url = pathToFileURL(envFile).href + `?t=${Date.now()}-${++loadCounter}`;
23
+ try {
24
+ await import(
25
+ /* @vite-ignore */
26
+ url
27
+ );
28
+ } catch (err) {
29
+ const base = `env: Failed to load '${envFile}': '${err.message}'.`;
30
+ const hint = aliasHint(err, "env.ts");
31
+ throw new Error(hint ? `${base}\n\n${hint}` : base);
32
+ }
33
+ }
34
+ export { loadUserEnvFile as t };
@@ -1,5 +1,5 @@
1
1
  import { a as join, c as resolve, i as isAbsolute } from "./dist-DMYe8CZJ.mjs";
2
- import { b as readRootWranglerConfig } from "./wrangler-k40T7XTQ.mjs";
2
+ import { b as readRootWranglerConfig } from "./wrangler-B1gkT_wC.mjs";
3
3
  import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
4
4
  import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
5
5
  import { createHash } from "node:crypto";
@@ -0,0 +1 @@
1
+ export { r as selectPlatformLoginMethod } from "./login-DOE-MkeK.mjs";
@@ -1,7 +1,7 @@
1
- import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-BQdgCVQF.mjs";
1
+ import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-STQXl8ck.mjs";
2
2
  import { a as getApiUrl, c as getToken, f as removeToken, l as getTokenSource, m as savePlatformToken, p as runPlatformLogin } from "./auth-CCk9Seol.mjs";
3
- import { a as isExpiredTokenError, r as PlatformClient } from "./client-BEZmTP6p.mjs";
4
- import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-CXJTIAtF.mjs";
3
+ import { a as isExpiredTokenError, r as PlatformClient } from "./client-D6w5x7hM.mjs";
4
+ import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-DNVILSz2.mjs";
5
5
  // src/cli/login.ts
6
6
  async function selectPlatformLoginMethod(platform, requestedId) {
7
7
  const providers = platform.authenticationProviders;
@@ -30,7 +30,7 @@ async function selectPlatformLoginMethod(platform, requestedId) {
30
30
  }
31
31
  async function promptForLoginToken(root = process.cwd(), platform) {
32
32
  const apiUrl = platform?.apiUrl ?? getApiUrl(root);
33
- const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-BpUA19r_.mjs")).discoverPlatform(apiUrl));
33
+ const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-BLy5uCa-.mjs")).discoverPlatform(apiUrl));
34
34
  const s = createSpinner();
35
35
  s.start(`Opening browser for ${providerName} login...`);
36
36
  try {
@@ -1,7 +1,7 @@
1
- import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-BQdgCVQF.mjs";
1
+ import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { c as getToken } from "./auth-CCk9Seol.mjs";
3
- import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
4
- import { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-CXJTIAtF.mjs";
3
+ import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
4
+ import { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
5
5
  import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
6
6
  import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
7
7
  import { t as sanitizeTerminalLogText } from "./terminal-log-text-DNsWJREL.mjs";
@@ -10,7 +10,7 @@ async function runLogsCommand(root, filter, range, deployment, level) {
10
10
  console.log();
11
11
  const platform = readDeploymentPlatform(root);
12
12
  if (platform === "cloudflare") {
13
- const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-CZkjFrzH.mjs");
13
+ const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-I4t3mt4R.mjs");
14
14
  if (range !== "1h") log.warn("Cloudflare tail streams live logs; --range does not select historical entries.");
15
15
  if (level && level !== "all" && level !== "error") log.warn("Cloudflare tail cannot filter individual console levels; showing all invocation logs.");
16
16
  await tailCloudflareWorker(resolveCloudflareOperationContext(root), {
@@ -0,0 +1 @@
1
+ export { n as runMigrateCommand } from "./migrate-DtoKdGas.mjs";
@@ -1,11 +1,11 @@
1
- import { L as log } from "./dist-BQdgCVQF.mjs";
1
+ import { L as log } from "./dist-STQXl8ck.mjs";
2
2
  import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
3
- import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-DtOGAbeB.mjs";
4
- import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-G0yut6Zz.mjs";
5
- import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-k40T7XTQ.mjs";
6
- import { h as validateConfig } from "./config-5oSQhZNj.mjs";
3
+ import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-PxbinLLE.mjs";
4
+ import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-CUhCPMpK.mjs";
5
+ import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-B1gkT_wC.mjs";
6
+ import { h as validateConfig } from "./config-CzFdJYNA.mjs";
7
7
  import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
8
- import { m as printSuccess } from "./output-CXJTIAtF.mjs";
8
+ import { m as printSuccess } from "./output-DNVILSz2.mjs";
9
9
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
10
10
  import { parseSync } from "vite";
11
11
  import { randomUUID } from "node:crypto";
package/dist/nitro.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { n as bundleWorkerSqlDriver } from "./wrapper-BGsi_uHs.mjs";
3
- import { l as getDatabaseDialect, p as readConfig } from "./config-5oSQhZNj.mjs";
4
- import { c as voidDbBundlerPlugin } from "./dispatch-pYaww76u.mjs";
2
+ import { n as bundleWorkerSqlDriver } from "./wrapper-xJ4LP5A7.mjs";
3
+ import { l as getDatabaseDialect, p as readConfig } from "./config-CzFdJYNA.mjs";
4
+ import { c as voidDbBundlerPlugin } from "./dispatch-BBfb519j.mjs";
5
5
  import { normalizePath } from "vite";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import { resolve } from "node:path/win32";
@@ -1,10 +1,10 @@
1
1
  import { n as dirname } from "./dist-DMYe8CZJ.mjs";
2
- import { p as readConfig } from "./config-5oSQhZNj.mjs";
2
+ import { p as readConfig } from "./config-CzFdJYNA.mjs";
3
3
  import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
4
4
  import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./auth-migrations-DDeifS3v.mjs";
5
- import { s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
6
- import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-eeDzKBS9.mjs";
7
- import { r as resolveVoidAuthMigrationSchema } from "./drizzle-lFdzSEa9.mjs";
5
+ import { c as loadLocalEnv } from "./env-UqS-21xi.mjs";
6
+ import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-Do7gJI3T.mjs";
7
+ import { r as resolveVoidAuthMigrationSchema } from "./drizzle-DBSpPpU1.mjs";
8
8
  import { mkdirSync } from "node:fs";
9
9
  // src/auth/node.ts
10
10
  async function runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, configPath = findVoidAuthConfig(root), databaseUrl, importModule) {
@@ -0,0 +1,121 @@
1
+ import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
2
+ import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
3
+ import { r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
4
+ import { h as sanitizeTerminalText } from "./output-DNVILSz2.mjs";
5
+ import { n as readPlatformDiscoveryResponse } from "./platform-discovery-B0eZjZ3B.mjs";
6
+ import { AI_LOGGING_SETTLE_MS } from "@void/platform/ai-logging";
7
+ function text(value) {
8
+ return typeof value === "string" ? sanitizeTerminalText(value) : "";
9
+ }
10
+ function record(value) {
11
+ return value && typeof value === "object" && !Array.isArray(value) ? value : null;
12
+ }
13
+ /** `14:03:20 UTC`, or null when the value is not a time. */
14
+ function utcTime(value, offsetMs = 0) {
15
+ const time = typeof value === "string" ? Date.parse(value) : NaN;
16
+ if (Number.isNaN(time)) return null;
17
+ return `${new Date(time + offsetMs).toISOString().slice(11, 19)} UTC`;
18
+ }
19
+ /** `plan "pro"`, naming the default plan an unknown plan ID follows. */
20
+ function planLabel(fields) {
21
+ const plan = `plan "${text(fields.planId)}"`;
22
+ if (fields.planKnown === false) return `${plan} (not in catalog; uses default plan "${text(fields.defaultPlanId)}")`;
23
+ return plan;
24
+ }
25
+ /** Where the effective mode comes from, or null for a platform that does not say. */
26
+ function sourceText(fields) {
27
+ if (typeof fields.planId !== "string") return null;
28
+ const planDefault = `${planLabel(fields)} default: ${text(fields.planMode) || "inherit"}`;
29
+ switch (fields.source) {
30
+ case "project": return `set on project; ${planDefault}`;
31
+ case "plan": return `from ${planLabel(fields)}`;
32
+ case "gateway": return `AI Gateway setting; ${planDefault}`;
33
+ default: return null;
34
+ }
35
+ }
36
+ function effective(fields) {
37
+ return text(fields.effective) || text(fields.mode);
38
+ }
39
+ function withSource(mode, fields) {
40
+ const source = sourceText(fields);
41
+ return source ? `${mode} (${source})` : mode;
42
+ }
43
+ /** The `project ai-logging` result: the setting and when new requests follow it. */
44
+ function aiLoggingChangeLines(projectId, result) {
45
+ const lines = [`AI logging for ${sanitizeTerminalText(projectId)}: ${withSource(effective(result), result)}`];
46
+ const expectedBy = utcTime(result.expectedBy);
47
+ if (expectedBy) lines.push(`New AI requests are expected to follow it by ${expectedBy} (normally within 2 minutes).`);
48
+ return lines;
49
+ }
50
+ /** The `project ai-logging --plan` preview: current and new effective modes. */
51
+ function aiLoggingPreviewLines(projectId, preview) {
52
+ const previous = text(preview.previous);
53
+ const next = effective(preview);
54
+ const change = previous ? `${previous} → ${next}` : next;
55
+ return [`AI logging for ${sanitizeTerminalText(projectId)}: ${withSource(change, preview)}`, "No change was made. Run the command again without --plan to apply it."];
56
+ }
57
+ const STATES = {
58
+ applied: () => "applied",
59
+ pending: (fields) => {
60
+ const by = utcTime(fields.publishedAt, AI_LOGGING_SETTLE_MS);
61
+ return by ? `pending (expected by ${by})` : "pending (normally within 2 minutes)";
62
+ },
63
+ pending_plan_publish: () => "pending (the plan default is still being published)",
64
+ drift: (fields) => `drift (published: ${text(fields.published) || "unknown value"})`,
65
+ unknown: () => "state unknown (the published setting could not be read)"
66
+ };
67
+ /**
68
+ * `project show` line, such as `metadata (from plan "pro") — applied`, or null
69
+ * when the response has no AI logging data.
70
+ */
71
+ function aiLoggingStatusLine(value) {
72
+ const fields = record(value);
73
+ if (!fields || typeof fields.mode !== "string") return null;
74
+ const state = typeof fields.state === "string" && Object.hasOwn(STATES, fields.state) ? STATES[fields.state] : void 0;
75
+ const summary = withSource(effective(fields), fields);
76
+ return `AI Gateway logging: ${state ? `${summary} — ${state(fields)}` : summary}`;
77
+ }
78
+ async function probePlatformVersion(origin) {
79
+ ensurePlatformAccessToken(origin);
80
+ let response;
81
+ try {
82
+ response = await fetch(`${origin}/.well-known/void-platform`, {
83
+ headers: {
84
+ Accept: "application/json",
85
+ ...cfAccessHeaders(process.env, origin)
86
+ },
87
+ redirect: "manual",
88
+ signal: AbortSignal.timeout(15e3)
89
+ });
90
+ } catch {
91
+ return { kind: "unknown" };
92
+ }
93
+ if (response.status === 404) {
94
+ await response.body?.cancel();
95
+ return { kind: "missing" };
96
+ }
97
+ try {
98
+ return {
99
+ kind: "version",
100
+ version: (await readPlatformDiscoveryResponse(origin, response)).platformVersion
101
+ };
102
+ } catch {
103
+ return { kind: "unknown" };
104
+ }
105
+ }
106
+ /**
107
+ * Refuses `project ai-logging` on a platform before AI logging settings existed.
108
+ * It reads the platform version instead of guessing from a 404, because "Project
109
+ * not found" is also a 404. When the version cannot be read, the request runs and
110
+ * reports its own error.
111
+ */
112
+ async function assertAiLoggingPlatform(origin) {
113
+ const probe = await probePlatformVersion(origin);
114
+ if (probe.kind === "unknown") return;
115
+ if (probe.kind === "version") {
116
+ const { isOlderPlatformVersion } = await import("./client-66c0RLDM.mjs");
117
+ if (isOlderPlatformVersion(probe.version, "1.8.0") !== true) return;
118
+ }
119
+ throw new OperatorClientError("This platform does not support AI logging policies. Run `void platform upgrade`.", "unsupported");
120
+ }
121
+ export { utcTime as a, assertAiLoggingPlatform as i, aiLoggingPreviewLines as n, aiLoggingStatusLine as r, aiLoggingChangeLines as t };
@@ -89,7 +89,7 @@ const operatorCommands = [
89
89
  {
90
90
  group: "project",
91
91
  action: "show",
92
- description: "Inspect a project and its resources",
92
+ description: "Inspect a project, its resources, and its effective AI Gateway logging",
93
93
  path: "/projects/:id",
94
94
  positional: ["id"]
95
95
  },
@@ -109,6 +109,15 @@ const operatorCommands = [
109
109
  positional: ["id"],
110
110
  method: "POST"
111
111
  },
112
+ {
113
+ group: "project",
114
+ action: "ai-logging",
115
+ description: "Set AI Gateway logging (inherit, off, metadata, or full); new AI requests normally follow it within 2 minutes",
116
+ path: "/projects/:id/ai-logging",
117
+ positional: ["id", "mode"],
118
+ usage: ["void platform project ai-logging <project-id> <inherit|off|metadata|full> [options]"],
119
+ method: "POST"
120
+ },
112
121
  {
113
122
  group: "project",
114
123
  action: "owner",
@@ -1,6 +1,7 @@
1
+ import { i as assertAiLoggingPlatform, n as aiLoggingPreviewLines, r as aiLoggingStatusLine, t as aiLoggingChangeLines } from "./operator-ai-logging-DFTEp81Z.mjs";
1
2
  import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-CD3pap65.mjs";
2
3
  import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
3
- import { h as sanitizeTerminalText, i as dim, m as printSuccess } from "./output-CXJTIAtF.mjs";
4
+ import { h as sanitizeTerminalText, i as dim, m as printSuccess } from "./output-DNVILSz2.mjs";
4
5
  import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
5
6
  import { createHash } from "node:crypto";
6
7
  import { setTimeout } from "node:timers/promises";
@@ -180,8 +181,8 @@ async function runAuth(origin, args) {
180
181
  if (args.action === "login" || args.action === "token" && args.tokenStdin) {
181
182
  if (!args.tokenStdin && !process.stdin.isTTY) throw new OperatorClientError("Browser login requires an interactive terminal. Use --token-stdin to exchange an API session.", "interactive_login_required");
182
183
  const apiToken = args.tokenStdin ? await readOperatorApiTokenStdin() : await (async () => {
183
- const { discoverPlatform } = await import("./platform-cmd-BpUA19r_.mjs");
184
- const { selectPlatformLoginMethod } = await import("./login-C4q1S-5b.mjs");
184
+ const { discoverPlatform } = await import("./platform-cmd-BLy5uCa-.mjs");
185
+ const { selectPlatformLoginMethod } = await import("./login-DBs8JuSl.mjs");
185
186
  const { runPlatformLogin } = await import("./auth-BN0NU9dz.mjs");
186
187
  return runPlatformLogin(origin, (await selectPlatformLoginMethod(await discoverPlatform(origin), args.provider)).id, (url) => process.stderr.write(`Sign in at ${url}\n`));
187
188
  })();
@@ -360,9 +361,13 @@ async function migrateDeploymentAssets(client, origin, args) {
360
361
  };
361
362
  }
362
363
  }
364
+ /** The project ID from the request path `/projects/:id/ai-logging`. */
365
+ function aiLoggingProjectId(args) {
366
+ return decodeURIComponent(args.path.slice(10, -11));
367
+ }
363
368
  async function runOperatorCommand(args) {
364
369
  if (!args.action) {
365
- const { printHelpPage } = await import("./help-C_cqTByy.mjs");
370
+ const { printHelpPage } = await import("./help-Cp3K5m1w.mjs");
366
371
  printHelpPage(["platform", args.group]);
367
372
  return;
368
373
  }
@@ -372,6 +377,8 @@ async function runOperatorCommand(args) {
372
377
  if (args.method === "POST") {
373
378
  if (!args.plan && !args.yes && (!process.stdin.isTTY || !process.stderr.isTTY)) throw new OperatorClientError("Mutations in non-interactive mode require --yes or --plan.", "confirmation_required");
374
379
  if (args.group === "deployment" && args.action === "migrate-assets") return migrateDeploymentAssets(client, origin, args);
380
+ const aiLogging = args.group === "project" && args.action === "ai-logging";
381
+ if (aiLogging) await assertAiLoggingPlatform(origin);
375
382
  if (args.tokenStdin && (args.group === "email" && (args.action === "domain-add" || args.action === "domain-remove") || args.group === "zero-trust" && args.action === "configure")) args = {
376
383
  ...args,
377
384
  body: {
@@ -395,6 +402,10 @@ async function runOperatorCommand(args) {
395
402
  recoveryFence = { recoveryFence: target.recoveryFence };
396
403
  }
397
404
  if (args.group === "email" && args.action === "domain-add" && args.body.outboundOnly === true && preview.target?.inboundMode !== "none") throw new OperatorClientError("This platform does not support outbound-only email domains. Upgrade it first. No change was requested.", "unsupported");
405
+ if (aiLogging && args.plan && !args.json) {
406
+ console.log(aiLoggingPreviewLines(aiLoggingProjectId(args), preview).join("\n"));
407
+ return;
408
+ }
398
409
  if (!await confirmOperatorMutation(origin, preview, args)) return;
399
410
  const body = {
400
411
  ...args.body,
@@ -402,11 +413,16 @@ async function runOperatorCommand(args) {
402
413
  ...args.group === "project" && args.action === "normalize" ? { expected: preview.changes } : {},
403
414
  ...recoveryFence
404
415
  };
405
- outputMutation(await client.request(args.path, {
416
+ const result = await client.request(args.path, {
406
417
  method: "POST",
407
418
  body,
408
419
  timeoutMs: args.timeoutMs
409
- }), args);
420
+ });
421
+ if (aiLogging && !args.json) {
422
+ console.log(aiLoggingChangeLines(aiLoggingProjectId(args), result).join("\n"));
423
+ return;
424
+ }
425
+ outputMutation(result, args);
410
426
  } else if (args.follow) await followOperatorLogs(client, args);
411
427
  else {
412
428
  const result = await client.request(args.path, { query: args.query });
@@ -416,7 +432,11 @@ async function runOperatorCommand(args) {
416
432
  "Deployments:",
417
433
  ...eventLines(result.deployments, " ")
418
434
  ].join("\n"));
419
- else output(result, args.json);
435
+ else if (args.group === "project" && args.action === "show" && !args.json) {
436
+ const { aiLogging, ...project } = result;
437
+ const line = aiLoggingStatusLine(aiLogging);
438
+ console.log((line ? [...humanLines(project), line] : humanLines(result)).join("\n"));
439
+ } else output(result, args.json);
420
440
  if (result.allOk === false) process.exitCode = 1;
421
441
  }
422
442
  }
@@ -0,0 +1 @@
1
+ export { a as runOperatorCommand } from "./operator-cmd-CQOQrUiO.mjs";
@@ -0,0 +1 @@
1
+ export { m as printSuccess } from "./output-DNVILSz2.mjs";
@@ -1,5 +1,5 @@
1
1
  import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
2
- import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-BQdgCVQF.mjs";
2
+ import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-STQXl8ck.mjs";
3
3
  import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
4
4
  import { stripVTControlCharacters } from "node:util";
5
5
  import terminalLink from "terminal-link";
@@ -1,6 +1,8 @@
1
1
  import { d as interpolateRouteParams, p as toUrlString } from "../route-url-C3JwYrER.mjs";
2
- import { t as PageObject } from "../protocol-xZMvWsrg.mjs";
2
+ import { t as PageObject } from "../protocol-YS3tbxWE.mjs";
3
+ import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
3
4
  import { a as LinkPrefetchValue, i as LinkPrefetchStrategy, n as CacheForInput, r as CacheForResult } from "../prefetch-NdNeubbH.mjs";
5
+ import { n as ErrorPageProps, o as PageError } from "../types-IPut3_Yx.mjs";
4
6
  import { UsageLimitData } from "@void/edge";
5
7
  import { ActionUrl, Href, ResolveActionBody, ResolveActionParams, RouteUrl, RouteUrlInput } from "void/routes";
6
8
  type ActionErrorHandlingScope = "callSite" | "boundary";
@@ -53,6 +55,8 @@ type VisitOptions = {
53
55
  _popstate?: boolean;
54
56
  /** @internal Used by router.refresh() to refetch the current URL even when it has a hash */
55
57
  _refresh?: boolean;
58
+ /** @internal Used by actions: the page query they added to the URL, which redirects leave out */
59
+ _preservedQuery?: string;
56
60
  };
57
61
  type PrefetchOptions = {
58
62
  method?: string;
@@ -66,12 +70,15 @@ type VoidRouterAdapter$1 = {
66
70
  onDeferredUpdate?(props: Record<string, unknown>): void;
67
71
  };
68
72
  type PageNavigationEngineConfig = {
73
+ boundaryManifest?: BoundaryManifest;
74
+ dev?: boolean;
69
75
  adapter: VoidRouterAdapter$1;
70
76
  components: Record<string, () => Promise<PageComponentModule>>;
71
77
  layoutTree: Record<string, Array<string>>;
72
78
  routeMeta: Record<string, {
73
79
  island?: boolean;
74
80
  prerender?: boolean;
81
+ boundary?: boolean;
75
82
  }>;
76
83
  /** Page id for a decoded pathname (see `decodePagePath`). */
77
84
  matchRoute(path: string): string | null;
@@ -95,6 +102,8 @@ type PageNavigationResource = {
95
102
  url: string;
96
103
  fetchUrl: string;
97
104
  hash: string;
105
+ /** Destination after redirects, including its query and hash. */
106
+ readonly resolvedUrl?: string;
98
107
  method: string;
99
108
  options: VisitOptions;
100
109
  immediate: boolean;
@@ -286,6 +295,20 @@ export declare function formRetryMessage(error: VoidActionError | null): string
286
295
  export declare function formSubmissionBlocked(form: Pick<FormModel, "pending" | "error">, now?: number): boolean;
287
296
  /** One deadline, capped for browser timers; no polling and no automatic submission. */
288
297
  export declare function scheduleFormRetry(error: VoidActionError | null, ready: () => void): () => void;
298
+ type ClientPageBoundary = {
299
+ id: string;
300
+ key: string;
301
+ depth: number;
302
+ load: () => Promise<{
303
+ default: unknown;
304
+ }>;
305
+ };
306
+ export declare function pageBoundarySlots(manifest: BoundaryManifest | undefined, component: string, components: Record<string, () => Promise<{
307
+ default: unknown;
308
+ }>>): Array<ClientPageBoundary>;
309
+ export declare function clientPageError(error: unknown, dev?: boolean): PageError;
310
+ /** Terminal recovery cannot depend on the failed adapter, imports, or component tree. */
311
+ export declare function showTerminalPageError(url?: string): void;
289
312
  export type NavigationStateType = "idle" | "loading" | "submitting";
290
313
  export type NavigationMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
291
314
  export type NavigationState = {
@@ -323,7 +346,9 @@ export declare function createSsrRouter(url?: string, params?: Record<string, st
323
346
  export declare const ssrProxy: VoidRouter;
324
347
  /** Refetch the current page in place: same history entry, URL hash, state and scroll. */
325
348
  export declare function refreshPage(router: Pick<VoidRouter, "visit">, options?: VisitOptions): Promise<unknown>;
326
- export declare function submitAction(router: VoidRouter, url: string, options: VisitOptions): Promise<ActionResult>;
349
+ export declare function submitAction(router: VoidRouter, url: string, options: VisitOptions, errorOptions?: {
350
+ throwOnError?: boolean;
351
+ }): Promise<ActionResult>;
327
352
  type ActionMethod = "POST" | "PUT" | "PATCH" | "DELETE";
328
353
  type HasParams<U extends string> = [ResolveActionParams<U>] extends [never] ? false : true;
329
354
  type ActionOptions<U extends string> = {
@@ -351,4 +376,4 @@ export declare function createVoidRouter(config: VoidRouterConfig): Promise<{
351
376
  }>;
352
377
  export declare function scheduleHydration(el: Element, loader: () => Promise<unknown>, props: Record<string, unknown>, strategy: string, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>) => void | Promise<void>): void;
353
378
  export declare function initIslands(islands: Record<string, () => Promise<unknown>>, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>, frontmatter: Record<string, unknown>) => void | Promise<void>): void;
354
- export { type ActionErrorHandlingScope, type ActionResult, type BaseLinkProps, type FormMethod, type FormModel, type FormResetOptions, type FormState, type FormSubmitOptions, type IslandActionResult, type IslandFormState, type LinkActiveAttributes, type LinkActiveMatch, type LinkNavigateEvent, type LinkPendingAttributes, type LinkPrefetchStrategy, type LinkPrefetchValue, type PageNavigationEngine, type PageNavigationResource, type PageNavigationResult, type PrefetchOptions, type ResolvedLink, type VisitOptions, interpolateRouteParams, toUrlString };
379
+ export { type ActionErrorHandlingScope, type ActionResult, type BaseLinkProps, type BoundaryManifest, type ClientPageBoundary, type ErrorPageProps, type FormMethod, type FormModel, type FormResetOptions, type FormState, type FormSubmitOptions, type IslandActionResult, type IslandFormState, type LinkActiveAttributes, type LinkActiveMatch, type LinkNavigateEvent, type LinkPendingAttributes, type LinkPrefetchStrategy, type LinkPrefetchValue, type PageError, type PageNavigationEngine, type PageNavigationResource, type PageNavigationResult, type PrefetchOptions, type ResolvedLink, type VisitOptions, interpolateRouteParams, toUrlString };