vite-hub 0.4.1 → 0.5.1

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 (502) hide show
  1. package/README.md +38 -14
  2. package/dist/_internal/runtime/browser-errors.d.ts +12 -4
  3. package/dist/_internal/runtime/browser-errors.js +69 -27
  4. package/dist/_internal/runtime/redirects.d.ts +1 -2
  5. package/dist/_internal/runtime/redirects.js +2 -3
  6. package/dist/_internal/runtime/request-policy.d.ts +11 -2
  7. package/dist/_internal/runtime/request-policy.js +25 -6
  8. package/dist/_internal/runtime/security.d.ts +1 -2
  9. package/dist/_internal/runtime/security.js +16 -3
  10. package/dist/{access-BDST818p.js → access-BBHk9b5P.js} +30 -20
  11. package/dist/{access-policy-DjBKLo3c.js → access-policy-BM48XstY.js} +5 -6
  12. package/dist/{access-policy-CGXhO3Ee.d.ts → access-policy-CUbJLvlR.d.ts} +4 -8
  13. package/dist/{account-BnOAU055.d.ts → account-CoAO1F8G.d.ts} +9 -7
  14. package/dist/agent/invocations/postgres.d.ts +1 -0
  15. package/dist/agent/invocations/postgres.js +2 -0
  16. package/dist/{agent-invocations.post-CcPvfA0n.js → agent-invocations.post-BAC1aHnG.js} +16 -18
  17. package/dist/agents-BClUWOj7.js +1 -0
  18. package/dist/{agents-BDeazoAW.js → agents-Cz_uhhov.js} +4 -5
  19. package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
  20. package/dist/auth/server.js +1 -2
  21. package/dist/{auth-BZOy7obk.d.ts → auth-CeKxL2xp.d.ts} +4 -8
  22. package/dist/{auth-operations-GcQk0O0X.js → auth-operations-arLIY2_2.js} +1 -2
  23. package/dist/{auth-types-CyqhWvYF.d.ts → auth-types-B4mq4YhK.d.ts} +1 -4
  24. package/dist/bin.js +34 -23
  25. package/dist/blob/nuxt-image.js +1 -2
  26. package/dist/{blob-CFLwMsjH.d.ts → blob-_TtxDb-t.d.ts} +1 -3
  27. package/dist/{blob-CpvlM8jp.js → blob-eH6j0AQj.js} +5 -6
  28. package/dist/browser-error-limits-B0yS95zt.js +24 -0
  29. package/dist/cache/operations.d.ts +2 -4
  30. package/dist/cache/operations.js +3 -4
  31. package/dist/cache.d.ts +1 -3
  32. package/dist/cache.js +2 -3
  33. package/dist/choices/testing.d.ts +1 -0
  34. package/dist/choices/testing.js +2 -0
  35. package/dist/{cli-config-wxKjF2Y0.js → cli-config-BX8H4ZCo.js} +12 -5
  36. package/dist/cli-config-DgpmE_7z.js +1 -0
  37. package/dist/cloudflare-app-types.d.ts +18 -0
  38. package/dist/{cloudflare-env-lookup-DKXdr4P_.js → cloudflare-env-lookup-DcN7pGlv.js} +1 -2
  39. package/dist/cms.js +1 -2
  40. package/dist/console/auth-types.d.ts +1 -1
  41. package/dist/console/auth.d.ts +1 -3
  42. package/dist/console/auth.js +2 -3
  43. package/dist/console/runtime/auth-operations.d.ts +1 -3
  44. package/dist/console/runtime/auth-operations.js +1 -2
  45. package/dist/console/runtime/client/account-views.d.ts +1 -3
  46. package/dist/console/runtime/client/account-views.js +1 -2
  47. package/dist/console/runtime/client/account.d.ts +1 -1
  48. package/dist/console/runtime/client/account.js +36 -48
  49. package/dist/console/runtime/client/add-primitive.ts +2 -2
  50. package/dist/console/runtime/client/appearance.d.ts +1 -2
  51. package/dist/console/runtime/client/appearance.js +1 -2
  52. package/dist/console/runtime/client/blob-media.d.ts +2 -4
  53. package/dist/console/runtime/client/blob-media.js +5 -6
  54. package/dist/console/runtime/client/comment-thread.d.ts +1 -3
  55. package/dist/console/runtime/client/comment-thread.js +11 -5
  56. package/dist/console/runtime/client/content-heads.d.ts +1 -2
  57. package/dist/console/runtime/client/content-heads.js +2 -3
  58. package/dist/console/runtime/client/documents.d.ts +2 -2
  59. package/dist/console/runtime/client/documents.js +1 -2
  60. package/dist/console/runtime/client/editor.d.ts +3 -5
  61. package/dist/console/runtime/client/editor.js +1 -2
  62. package/dist/console/runtime/client/env-groups.d.ts +1 -3
  63. package/dist/console/runtime/client/env-groups.js +1 -2
  64. package/dist/console/runtime/client/env-status.d.ts +1 -3
  65. package/dist/console/runtime/client/env-status.js +1 -2
  66. package/dist/console/runtime/client/format.d.ts +1 -3
  67. package/dist/console/runtime/client/format.js +1 -2
  68. package/dist/console/runtime/client/invocation-deletion.d.ts +1 -2
  69. package/dist/console/runtime/client/invocation-deletion.js +1 -2
  70. package/dist/console/runtime/client/invocation.d.ts +1 -2
  71. package/dist/console/runtime/client/invocation.js +4 -5
  72. package/dist/console/runtime/client/live.d.ts +2 -4
  73. package/dist/console/runtime/client/live.js +1 -2
  74. package/dist/console/runtime/client/mcp-client.d.ts +6 -4
  75. package/dist/console/runtime/client/mcp-client.js +12 -5
  76. package/dist/console/runtime/client/media-library.d.ts +1 -1
  77. package/dist/console/runtime/client/media-library.js +1 -2
  78. package/dist/console/runtime/client/media-uploads.d.ts +2 -4
  79. package/dist/console/runtime/client/media-uploads.js +2 -3
  80. package/dist/console/runtime/client/media.d.ts +1 -1
  81. package/dist/console/runtime/client/media.js +1 -2
  82. package/dist/console/runtime/client/operation-view.d.ts +2 -4
  83. package/dist/console/runtime/client/operation-view.js +4 -5
  84. package/dist/console/runtime/client/presence.d.ts +2 -4
  85. package/dist/console/runtime/client/presence.js +1 -2
  86. package/dist/console/runtime/client/preview.d.ts +1 -3
  87. package/dist/console/runtime/client/preview.js +1 -2
  88. package/dist/console/runtime/client/problem.d.ts +2 -4
  89. package/dist/console/runtime/client/problem.js +3 -4
  90. package/dist/console/runtime/client/project-link.d.ts +2 -2
  91. package/dist/console/runtime/client/project-link.js +1 -2
  92. package/dist/console/runtime/client/project-session.d.ts +19 -10
  93. package/dist/console/runtime/client/project-session.js +1 -723
  94. package/dist/console/runtime/client/project.d.ts +1 -3
  95. package/dist/console/runtime/client/project.js +1 -2
  96. package/dist/console/runtime/client/projects.d.ts +1 -1
  97. package/dist/console/runtime/client/projects.js +1 -2
  98. package/dist/console/runtime/client/publish.d.ts +2 -4
  99. package/dist/console/runtime/client/publish.js +1 -2
  100. package/dist/console/runtime/client/rate-limit.d.ts +1 -3
  101. package/dist/console/runtime/client/rate-limit.js +3 -4
  102. package/dist/console/runtime/client/read-only.d.ts +2 -4
  103. package/dist/console/runtime/client/read-only.js +2 -3
  104. package/dist/console/runtime/client/request.d.ts +2 -70
  105. package/dist/console/runtime/client/request.js +1 -2
  106. package/dist/console/runtime/client/route-query.d.ts +4 -5
  107. package/dist/console/runtime/client/route-query.js +1 -2
  108. package/dist/console/runtime/client/schedule-run.d.ts +1 -3
  109. package/dist/console/runtime/client/schedule-run.js +3 -4
  110. package/dist/console/runtime/client/schema-form.d.ts +1 -1
  111. package/dist/console/runtime/client/schema-form.js +1 -2
  112. package/dist/console/runtime/client/sections.d.ts +1 -1
  113. package/dist/console/runtime/client/sections.js +1 -2
  114. package/dist/console/runtime/client/site-access.d.ts +41 -10
  115. package/dist/console/runtime/client/site-access.js +157 -28
  116. package/dist/console/runtime/client/stored.d.ts +1 -3
  117. package/dist/console/runtime/client/stored.js +1 -2
  118. package/dist/console/runtime/client/ticket.d.ts +1 -1
  119. package/dist/console/runtime/client/ticket.js +1 -2
  120. package/dist/console/runtime/client/toast.d.ts +1 -3
  121. package/dist/console/runtime/client/toast.js +1 -2
  122. package/dist/console/runtime/client/workflow.d.ts +1 -3
  123. package/dist/console/runtime/client/workflow.js +3 -4
  124. package/dist/console/runtime/components/console-account-api-keys.vue +4 -4
  125. package/dist/console/runtime/components/console-account-home.vue +230 -51
  126. package/dist/console/runtime/components/console-account-link.vue +8 -5
  127. package/dist/console/runtime/components/console-account-setup.vue +10 -7
  128. package/dist/console/runtime/components/console-account-shell.vue +13 -19
  129. package/dist/console/runtime/components/console-account-unlink.vue +2 -3
  130. package/dist/console/runtime/components/console-app-settings.vue +8 -2
  131. package/dist/console/runtime/components/console-app.vue +1 -10
  132. package/dist/console/runtime/components/console-auth-activity.vue +2 -2
  133. package/dist/console/runtime/components/console-auth-chart.vue +1 -1
  134. package/dist/console/runtime/components/console-auth-overview.vue +1 -1
  135. package/dist/console/runtime/components/console-auth.vue +4 -4
  136. package/dist/console/runtime/components/console-comment-thread.vue +1 -1
  137. package/dist/console/runtime/components/console-definitions.vue +4 -4
  138. package/dist/console/runtime/components/console-document-dashboard.vue +2 -2
  139. package/dist/console/runtime/components/console-document-list.vue +2 -2
  140. package/dist/console/runtime/components/console-document-settings.vue +1 -1
  141. package/dist/console/runtime/components/console-env.vue +3 -3
  142. package/dist/console/runtime/components/console-home.vue +220 -311
  143. package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
  144. package/dist/console/runtime/components/console-loading.vue +1 -1
  145. package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
  146. package/dist/console/runtime/components/console-mcp-connection.vue +3 -3
  147. package/dist/console/runtime/components/console-mcp-items.vue +4 -17
  148. package/dist/console/runtime/components/console-media-browser.vue +20 -30
  149. package/dist/console/runtime/components/console-media-crops.vue +3 -2
  150. package/dist/console/runtime/components/console-media-uploads.vue +11 -7
  151. package/dist/console/runtime/components/console-page-toolbar.vue +5 -10
  152. package/dist/console/runtime/components/console-schema-list.vue +85 -31
  153. package/dist/console/runtime/components/console-search-palette.vue +14 -5
  154. package/dist/console/runtime/components/console-section.vue +2 -1
  155. package/dist/console/runtime/components/console-session-inspector.vue +5 -0
  156. package/dist/console/runtime/components/console-session.css +8 -2
  157. package/dist/console/runtime/components/console-settings-value.vue +4 -5
  158. package/dist/console/runtime/components/console-sidebar.vue +9 -8
  159. package/dist/console/runtime/components/console-site.vue +36 -15
  160. package/dist/console/runtime/components/console-stat-grid.vue +3 -2
  161. package/dist/console/runtime/components/console-toaster.vue +3 -2
  162. package/dist/console/runtime/components/console-usage-chart.vue +1 -1
  163. package/dist/console/runtime/components/console-usage.vue +36 -18
  164. package/dist/console/runtime/components/invocation/internal/brand-icons.ts +10 -0
  165. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +6 -2
  166. package/dist/console/runtime/components/invocation/invocation.css +4 -27
  167. package/dist/console/runtime/console-route.d.ts +1 -3
  168. package/dist/console/runtime/console-route.js +1 -2
  169. package/dist/console/runtime/definitions.d.ts +1 -1
  170. package/dist/console/runtime/definitions.js +1 -2
  171. package/dist/console/runtime/diagnostics.ts +8 -1
  172. package/dist/console/runtime/mcp-client.d.ts +1 -1
  173. package/dist/console/runtime/mcp-client.js +1 -2
  174. package/dist/console/runtime/page/loader.js +45 -52
  175. package/dist/console/runtime/page-tool/account.js +26 -0
  176. package/dist/console/runtime/page-tool/page-tool.js +2 -3
  177. package/dist/console/runtime/public/skills/index.json +1 -1
  178. package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -7
  179. package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +1 -1
  180. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
  181. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +1 -1
  182. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +1 -1
  183. package/dist/console/runtime/rpc.d.ts +1 -1
  184. package/dist/console/runtime/rpc.js +1 -2
  185. package/dist/console/runtime/sections.d.ts +1 -1
  186. package/dist/console/runtime/sections.js +1 -2
  187. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  188. package/dist/console/runtime/server/access-policy.js +1 -2
  189. package/dist/console/runtime/server/agents.get.d.ts +2 -3
  190. package/dist/console/runtime/server/agents.get.js +3 -4
  191. package/dist/console/runtime/server/auth.d.ts +1 -1
  192. package/dist/console/runtime/server/auth.js +4 -5
  193. package/dist/console/runtime/server/blob.d.ts +1 -1
  194. package/dist/console/runtime/server/blob.js +1 -2
  195. package/dist/console/runtime/server/channel-replay.d.ts +3 -5
  196. package/dist/console/runtime/server/channel-replay.js +7 -7
  197. package/dist/console/runtime/server/database.d.ts +1 -1
  198. package/dist/console/runtime/server/database.get.d.ts +2 -3
  199. package/dist/console/runtime/server/database.get.js +4 -5
  200. package/dist/console/runtime/server/database.js +1 -2
  201. package/dist/console/runtime/server/definitions.d.ts +1 -1
  202. package/dist/console/runtime/server/definitions.get.d.ts +4 -6
  203. package/dist/console/runtime/server/definitions.get.js +5 -6
  204. package/dist/console/runtime/server/definitions.js +1 -2
  205. package/dist/console/runtime/server/development.d.ts +1 -1
  206. package/dist/console/runtime/server/development.js +1 -2
  207. package/dist/console/runtime/server/documents.d.ts +1 -1
  208. package/dist/console/runtime/server/documents.js +2 -2
  209. package/dist/console/runtime/server/env.d.ts +1 -3
  210. package/dist/console/runtime/server/env.get.d.ts +2 -4
  211. package/dist/console/runtime/server/env.get.js +7 -8
  212. package/dist/console/runtime/server/env.js +1 -2
  213. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +1 -3
  214. package/dist/console/runtime/server/invocation-capabilities.get.js +4 -5
  215. package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -5
  216. package/dist/console/runtime/server/invocation-workspace.get.js +6 -7
  217. package/dist/console/runtime/server/invocation.get.d.ts +3 -5
  218. package/dist/console/runtime/server/invocation.get.js +8 -9
  219. package/dist/console/runtime/server/invocations.get.d.ts +1 -2
  220. package/dist/console/runtime/server/invocations.get.js +5 -6
  221. package/dist/console/runtime/server/logs.get.d.ts +3 -5
  222. package/dist/console/runtime/server/logs.get.js +7 -8
  223. package/dist/console/runtime/server/mcp-client-operations.d.ts +2 -4
  224. package/dist/console/runtime/server/mcp-client-operations.js +5 -7
  225. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  226. package/dist/console/runtime/server/operation-contributions.js +1 -2
  227. package/dist/console/runtime/server/page-auth.d.ts +2 -4
  228. package/dist/console/runtime/server/page-auth.js +1 -2
  229. package/dist/console/runtime/server/page-tool.d.ts +1 -1
  230. package/dist/console/runtime/server/page-tool.js +12 -7
  231. package/dist/console/runtime/server/page-tools-route.d.ts +2 -0
  232. package/dist/console/runtime/server/page-tools-route.js +4 -0
  233. package/dist/console/runtime/server/rpc.d.ts +3 -5
  234. package/dist/console/runtime/server/rpc.js +12 -13
  235. package/dist/console/runtime/server/runtime.d.ts +1 -1
  236. package/dist/console/runtime/server/runtime.js +1 -2
  237. package/dist/console/runtime/server/search.get.d.ts +1 -3
  238. package/dist/console/runtime/server/search.get.js +3 -5
  239. package/dist/console/runtime/server/sections.d.ts +5 -5
  240. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  241. package/dist/console/runtime/server/sections.get.js +8 -9
  242. package/dist/console/runtime/server/sections.js +6 -6
  243. package/dist/console/runtime/server/setup.d.ts +5 -5
  244. package/dist/console/runtime/server/setup.js +5 -5
  245. package/dist/console/runtime/server/site-entry.d.ts +1 -3
  246. package/dist/console/runtime/server/site-entry.js +15 -10
  247. package/dist/console/runtime/server/site-session.d.ts +12 -22
  248. package/dist/console/runtime/server/site-session.js +1 -2
  249. package/dist/console/runtime/server/status.get.d.ts +2 -4
  250. package/dist/console/runtime/server/status.get.js +6 -7
  251. package/dist/console/runtime/server/tickets.d.ts +1 -1
  252. package/dist/console/runtime/server/tickets.js +1 -2
  253. package/dist/console/runtime/server/usage.get.d.ts +2 -4
  254. package/dist/console/runtime/server/usage.get.js +8 -9
  255. package/dist/console/runtime/server/workspace-files.get.d.ts +3 -5
  256. package/dist/console/runtime/server/workspace-files.get.js +4 -5
  257. package/dist/console/runtime/site-access.d.ts +1 -1
  258. package/dist/console/runtime/site-access.js +1 -2
  259. package/dist/console/runtime/skills.d.ts +1 -3
  260. package/dist/console/runtime/skills.js +1 -2
  261. package/dist/console/server.d.ts +7 -11
  262. package/dist/console/server.js +8 -8
  263. package/dist/console/ui.d.ts +0 -10
  264. package/dist/console/ui.js +32 -28
  265. package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
  266. package/dist/{console-route-CBuqZ4wO.js → console-route-DbdnLkkF.js} +3 -4
  267. package/dist/console.d.ts +1 -3
  268. package/dist/console.js +1 -2
  269. package/dist/{database-DyPVMjp_.d.ts → database-CPjZ3L0g.d.ts} +1 -3
  270. package/dist/{database-BdOBjPkS.js → database-CrgBUdIx.js} +3 -4
  271. package/dist/definition-catalog-1xPPtzOx.js +137 -0
  272. package/dist/definition-catalog-M5ua7JRS.js +1 -0
  273. package/dist/{definitions-BW6SvmMM.js → definitions-BFYqXchw.js} +1 -2
  274. package/dist/{definitions-DB4LbZ7T.d.ts → definitions-ChvMnA1L.d.ts} +0 -2
  275. package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
  276. package/dist/{definitions-CNq_Shkh.js → definitions-M7i2p8SR.js} +5 -6
  277. package/dist/deployment-CURATxjG.js +229 -0
  278. package/dist/deployment-l7RuKdEp.js +1 -0
  279. package/dist/{dev-peer-am78OsHH.js → dev-peer-DBq-isgi.js} +7 -6
  280. package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
  281. package/dist/{development-W5EwONyL.d.ts → development-I40mfD7B.d.ts} +1 -3
  282. package/dist/{diagnostics-9U_fYxMy.js → diagnostics-B2cqlCSz.js} +3 -3
  283. package/dist/{diagnostics-CjGiniKb.d.ts → diagnostics-BXxPggRw.d.ts} +1 -3
  284. package/dist/docs/nuxt.js +1 -2
  285. package/dist/doctor.d.ts +0 -6
  286. package/dist/doctor.js +15078 -2377
  287. package/dist/{documents-CjJTCrY8.js → documents-BOYwZ5g4.js} +7 -8
  288. package/dist/{documents-qrHHqlNU.js → documents-Ck_iub9w.js} +4 -5
  289. package/dist/{documents-BASIRZ91.d.ts → documents-DxK0tdjA.d.ts} +3 -5
  290. package/dist/{documents-CboVhYFz.d.ts → documents-LtkKCxtu.d.ts} +4 -8
  291. package/dist/durability/operations.d.ts +2 -4
  292. package/dist/durability/operations.js +3 -4
  293. package/dist/email/vue.d.ts +1 -0
  294. package/dist/email/vue.js +2 -0
  295. package/dist/{entries-Bj-jPs_J.js → entries-UFs9n1MB.js} +2 -3
  296. package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
  297. package/dist/{error-diagnostics-Bm3JKYjz.js → error-diagnostics-CBtvqI30.js} +33 -22
  298. package/dist/{operation-definition-a5keEpCd.js → error-diagnostics-kKXseq8d.js} +11 -169
  299. package/dist/error-diagnostics.ts +33 -23
  300. package/dist/{optional-owners-BNA2OX6z.js → features-BXRKlmtN.js} +57 -345
  301. package/dist/features-CD5i5I8V.js +1 -0
  302. package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
  303. package/dist/gateways/testing.d.ts +1 -0
  304. package/dist/gateways/testing.js +2 -0
  305. package/dist/github-login-W-vaahWP.js +6 -0
  306. package/dist/{host-CkL0jjBq.js → host-DeNPYIeV.js} +1 -2
  307. package/dist/{http-error-Bs6e8_-8.js → http-error-BorAxJYM.js} +1 -2
  308. package/dist/index.d.ts +2 -8
  309. package/dist/index.js +5 -6
  310. package/dist/inspect-CWwAuL-B.js +47 -0
  311. package/dist/internal/agent-invocations-libsql.js +1 -2
  312. package/dist/internal/disabled-redis-driver.d.ts +1 -3
  313. package/dist/internal/disabled-redis-driver.js +2 -3
  314. package/dist/internal/disabled-upstash-driver.d.ts +1 -3
  315. package/dist/internal/disabled-upstash-driver.js +2 -3
  316. package/dist/internal/test-loader.d.ts +1 -3
  317. package/dist/internal/test-loader.js +2 -3
  318. package/dist/internal/test-server.js +2 -3
  319. package/dist/{internal-BreyUsQ6.js → internal-0C_CC601.js} +1 -2
  320. package/dist/{internal-CO4OqqaS.d.ts → internal-CKocv79I.d.ts} +3 -7
  321. package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
  322. package/dist/{invocation-page-undo-DIZ-s3xT.js → invocation-page-undo-BEi-rO0Q.js} +5 -6
  323. package/dist/{invocations-CK_-G540.js → invocations-8NThe8Bx.js} +5 -6
  324. package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
  325. package/dist/logs/client.d.ts +19 -0
  326. package/dist/logs/client.js +11 -0
  327. package/dist/logs/host.d.ts +2 -4
  328. package/dist/logs/host.js +1 -2
  329. package/dist/logs/memory.d.ts +1 -1
  330. package/dist/logs/memory.js +1 -2
  331. package/dist/logs/source.d.ts +1 -1
  332. package/dist/logs/source.js +1 -2
  333. package/dist/logs.d.ts +2 -2
  334. package/dist/logs.js +2 -2
  335. package/dist/{mcp-client-CTbTbn7d.js → mcp-client-Bkh-khvr.js} +1 -2
  336. package/dist/{mcp-client-By4zk0vU.js → mcp-client-DiObFpDS.js} +35 -22
  337. package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-Q2XbUXuP.d.ts} +1 -4
  338. package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
  339. package/dist/{media-BHpQ-4jw.js → media-CAKz9yrp.js} +8 -9
  340. package/dist/{media-library-NaOMBKWS.js → media-library-BDX89xXA.js} +5 -6
  341. package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
  342. package/dist/{memory-DTmq-Z6x.js → memory-D3EJS_Bp.js} +21 -10
  343. package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
  344. package/dist/nuxt-server-auto-imports-4aT5BD4u.js +74 -0
  345. package/dist/{nuxt-server-imports-DH60Z7LA.js → nuxt-server-imports-BdJqiVhT.js} +10 -18
  346. package/dist/nuxt.d.ts +1 -3
  347. package/dist/nuxt.js +339 -189
  348. package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
  349. package/dist/{operation-contributions-DpkO_iSU.d.ts → operation-contributions-BCcQVlGb.d.ts} +1 -3
  350. package/dist/{operation-contributions-BdS0z3tx.js → operation-contributions-D10pjkJF.js} +4 -5
  351. package/dist/operation-definition-DTpNvLd8.js +164 -0
  352. package/dist/{operation-registry-BogGwk_I.js → operation-registry-DfQbL7vE.js} +1 -2
  353. package/dist/{operation-rpc-DI9txNxK.js → operation-rpc-BMdfapja.js} +3 -4
  354. package/dist/{operations-EOdyctDc.js → operations-CD_mu_Ww.js} +86 -9
  355. package/dist/operations-D7ENc68Y.js +1 -0
  356. package/dist/{operations-B0689BG1.d.ts → operations-DgFhA1WE.d.ts} +8 -6
  357. package/dist/{operations-CWP9dF3i.js → operations-vRLiH7dh.js} +35 -46
  358. package/dist/optional-owners-DAfShdgV.js +353 -0
  359. package/dist/out-Cw5Tvr92.js +20989 -0
  360. package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
  361. package/dist/page/pill.iife.js +25 -27
  362. package/dist/{page-tool-CRCK1RHV.d.ts → page-tool-BUnUbuSy.d.ts} +6 -7
  363. package/dist/{page-tools-BkSSBFoi.js → page-tools-BQzwuAHD.js} +28 -12
  364. package/dist/{page-tools-sw4I-Nqx.d.ts → page-tools-UwsfvH-B.d.ts} +2 -4
  365. package/dist/{page-tools-shared-D3fFoEV2.js → page-tools-shared-hJcG_xk8.js} +8 -5
  366. package/dist/{inspect-CDw7e0vK.js → pathe.M-eThtNZ-D4EC7Wue.js} +2 -31
  367. package/dist/{plugins-BqAtIEX2.d.ts → plugins-BpiTVULl.d.ts} +252 -262
  368. package/dist/{plugins-B-DpgDPB.js → plugins-H6-MQrsn.js} +3483 -797
  369. package/dist/presets/workspace.js +1 -2
  370. package/dist/project-BxyyclTE.js +58 -0
  371. package/dist/{project-CufkVP1u.d.ts → project-DKBIHOf4.d.ts} +16 -4
  372. package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
  373. package/dist/{project-link-D-6UefhA.js → project-link-CeS0T8Pr.js} +57 -9
  374. package/dist/{project-link-BuOzBH9f.d.ts → project-link-isfdRO3Q.d.ts} +42 -6
  375. package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
  376. package/dist/project-session--GN7MduT.js +764 -0
  377. package/dist/{projects-CAcXztf4.js → projects-BRp0iseV.js} +1 -2
  378. package/dist/{projects-Ddvl9EJp.d.ts → projects-mgPxrKZr.d.ts} +0 -2
  379. package/dist/{registry-zw6aE2N9.js → registry-B8JE5NY-.js} +1 -2
  380. package/dist/{registry-CDKLACCZ.js → registry-CnPC-gNu.js} +1 -2
  381. package/dist/{request-D7h3SQ92.d.ts → request-BC_krbEr.d.ts} +2 -4
  382. package/dist/request-CJCPyu2B.d.ts +70 -0
  383. package/dist/{request-DbFfYmCu.js → request-CQ8TkHLh.js} +4 -5
  384. package/dist/{request-DE8w_cSM.js → request-Cl68STwT.js} +7 -8
  385. package/dist/request-origin-pzWr9UUu.js +37 -0
  386. package/dist/rolldown-runtime-DegdyBIC.js +25 -0
  387. package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
  388. package/dist/{rpc-DIUA61pv.js → rpc-D3tsx5lZ.js} +1 -2
  389. package/dist/{rpc-7nlHSv3y.d.ts → rpc-oijgKQtD.d.ts} +0 -2
  390. package/dist/{runtime-YLWfdrtO.js → runtime-CAbuQGMP.js} +3 -4
  391. package/dist/{runtime-DQuHg7OO.js → runtime-CRJsqVTa.js} +2 -3
  392. package/dist/{runtime-B_btezs1.d.ts → runtime-Cf8R1Ztr.d.ts} +0 -2
  393. package/dist/{runtime-DxfJOfCd.js → runtime-CyPZMiyK.js} +2 -3
  394. package/dist/{runtime-OsEDfbM9.js → runtime-F0CTqBFx.js} +5 -6
  395. package/dist/{runtime-feature-guard-B64MMW9I.js → runtime-feature-guard-DpUn4Oxc.js} +91 -10
  396. package/dist/scan-module-B1A24jqP.js +1 -0
  397. package/dist/{scan-module-Df58L_6T.js → scan-module-BfZvDBxb.js} +2 -4
  398. package/dist/{schema-form-C-fy3xaU.d.ts → schema-form-Bl79Bdm-.d.ts} +0 -2
  399. package/dist/{secret-Dy5uqvq9.js → secret-D2KL_o2h.js} +2 -3
  400. package/dist/{sections-Do7X4Nwt.d.ts → sections-0qrBvGbf.d.ts} +0 -4
  401. package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
  402. package/dist/{sections-BogiCmtz.d.ts → sections-BTfWK14a.d.ts} +4 -6
  403. package/dist/{sections-DumoLKQN.js → sections-BiCOk9qP.js} +1 -2
  404. package/dist/sections-DAtgYMVz.d.ts +8 -0
  405. package/dist/{sections-et20h8w3.js → sections-HLxb9MrG.js} +14 -7
  406. package/dist/{sections.get-COiLcQ0P.d.ts → sections.get-CGmtYmfu.d.ts} +2 -4
  407. package/dist/seo/runtime.d.ts +2 -5
  408. package/dist/seo/runtime.js +3 -5
  409. package/dist/{seo-CtLywyRx.d.ts → seo-CgW5uI9L.d.ts} +0 -2
  410. package/dist/seo.d.ts +1 -1
  411. package/dist/seo.js +1 -2
  412. package/dist/{server-BRJE4t-W.js → server-DsOEa4_A.js} +5 -5
  413. package/dist/{setup-ZbA1by7W.d.ts → setup-Ca7jtBLS.d.ts} +8 -7
  414. package/dist/{setup-C-5nB7aY.js → setup-DQz_i-ee.js} +16 -5
  415. package/dist/{site-access-BmE8HGxs.js → site-access-1JIQjY11.js} +16 -16
  416. package/dist/{site-access-DxfdOel1.d.ts → site-access-CUXIbbbR.d.ts} +0 -2
  417. package/dist/{site-access-BycrwM2v.js → site-access-CmaZ-oaL.js} +1 -2
  418. package/dist/site-access-Cvmjb6aw.js +1 -0
  419. package/dist/{site-session-odJq1dYa.js → site-session-D36fr7Wf.js} +65 -40
  420. package/dist/skills/operations.d.ts +1 -5
  421. package/dist/skills/operations.js +4 -5
  422. package/dist/skills/vitehub/SKILL.md +142 -0
  423. package/dist/skills/vitehub/agents/openai.yaml +4 -0
  424. package/dist/skills/vitehub/references/agent-definitions.md +36 -0
  425. package/dist/skills/vitehub/references/bundle.md +57 -0
  426. package/dist/skills/vitehub/references/capabilities-authority.md +30 -0
  427. package/dist/skills/vitehub/references/channels-triggers.md +27 -0
  428. package/dist/skills/vitehub/references/framework-composition.md +29 -0
  429. package/dist/skills/vitehub/references/preview-contract.md +44 -0
  430. package/dist/skills/vitehub/references/primitives/auth.md +14 -0
  431. package/dist/skills/vitehub/references/primitives/blob.md +13 -0
  432. package/dist/skills/vitehub/references/primitives/browser.md +17 -0
  433. package/dist/skills/vitehub/references/primitives/cache.md +13 -0
  434. package/dist/skills/vitehub/references/primitives/channels.md +11 -0
  435. package/dist/skills/vitehub/references/primitives/connections.md +14 -0
  436. package/dist/skills/vitehub/references/primitives/content.md +13 -0
  437. package/dist/skills/vitehub/references/primitives/database.md +15 -0
  438. package/dist/skills/vitehub/references/primitives/email.md +11 -0
  439. package/dist/skills/vitehub/references/primitives/env.md +13 -0
  440. package/dist/skills/vitehub/references/primitives/kv.md +13 -0
  441. package/dist/skills/vitehub/references/primitives/markdown-template.md +13 -0
  442. package/dist/skills/vitehub/references/primitives/queue.md +14 -0
  443. package/dist/skills/vitehub/references/primitives/rate-limit.md +11 -0
  444. package/dist/skills/vitehub/references/primitives/realtime.md +19 -0
  445. package/dist/skills/vitehub/references/primitives/sandbox-task.md +11 -0
  446. package/dist/skills/vitehub/references/primitives/sandbox.md +13 -0
  447. package/dist/skills/vitehub/references/primitives/schedule.md +11 -0
  448. package/dist/skills/vitehub/references/primitives/shell.md +11 -0
  449. package/dist/skills/vitehub/references/primitives/source.md +11 -0
  450. package/dist/skills/vitehub/references/primitives/workflow.md +11 -0
  451. package/dist/skills/vitehub/references/primitives/workspace.md +11 -0
  452. package/dist/skills/vitehub/references/project-patterns.md +19 -0
  453. package/dist/skills/vitehub/references/project-shapes.md +81 -0
  454. package/dist/skills/vitehub/references/proof-recovery.md +31 -0
  455. package/dist/skills/vitehub/references/sandboxes-hosts.md +26 -0
  456. package/dist/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
  457. package/dist/skills/vitehub/references/server-primitives.md +39 -0
  458. package/dist/skills/vitehub/references/workspaces-sources-access.md +26 -0
  459. package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
  460. package/dist/skills.d.ts +1 -2
  461. package/dist/{skills.get-Bl8cBe8u.js → skills.get-DAooGWy5.js} +3 -4
  462. package/dist/skills.js +1 -2
  463. package/dist/{source-D4wWtoHh.js → source-DYFndd0W.js} +2 -3
  464. package/dist/{source-S-LChQvw.d.ts → source-DemBtwla.d.ts} +0 -2
  465. package/dist/{stored-Dhv2qsQv.js → stored-J3TetMKf.js} +1 -2
  466. package/dist/task/operations.d.ts +1 -5
  467. package/dist/task/operations.js +3 -4
  468. package/dist/test/register.js +2 -3
  469. package/dist/test.d.ts +0 -4
  470. package/dist/test.js +1 -2
  471. package/dist/{ticket-Pr_8ZtXW.d.ts → ticket-BFWwevWN.d.ts} +0 -2
  472. package/dist/{ticket-Cudn1dq3.js → ticket-BwsnryuU.js} +2 -3
  473. package/dist/{tickets-C_0Fhc00.js → tickets-Cj9_y3gw.js} +14 -16
  474. package/dist/ui/motion/core.d.ts +1 -0
  475. package/dist/ui/motion/core.js +2 -0
  476. package/dist/ui/motion.d.ts +1 -0
  477. package/dist/ui/motion.js +2 -0
  478. package/dist/ui/vite.js +1 -2
  479. package/dist/{usage-CoQXs5nW.d.ts → usage-BduF04ks.d.ts} +0 -2
  480. package/dist/{usage-B4taNt4a.js → usage-ZV3TBMzE.js} +6 -5
  481. package/dist/{usage-index-BsGAFzyq.js → usage-index-CR_xTrXO.js} +3 -4
  482. package/dist/{version-DNmSsk5r.js → version-CAhBr673.js} +59 -21
  483. package/dist/{vite-stage-mmtwQIMA.js → vite-stage-Dmo4RgnK.js} +32 -8
  484. package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
  485. package/dist/workspace/blob-database/postgres.d.ts +1 -0
  486. package/dist/workspace/blob-database/postgres.js +2 -0
  487. package/dist/{workspace-history-CraoERnc.js → workspace-history-B52xib2J.js} +3 -4
  488. package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
  489. package/package.json +190 -149
  490. package/dist/agents-BoWau_ei.js +0 -2
  491. package/dist/cli-config-UAGTmuFa.js +0 -2
  492. package/dist/console/runtime/server/page-session.d.ts +0 -2
  493. package/dist/console/runtime/server/page-session.js +0 -5
  494. package/dist/console-lazy-views-DXnIkdyd.js +0 -2
  495. package/dist/operations-CAQmIxGK.js +0 -2
  496. package/dist/project-C4N_Zcjl.js +0 -30
  497. package/dist/request-origin-Bq7mDQG9.js +0 -23
  498. package/dist/scan-module-D_3X08mj.js +0 -2
  499. package/dist/sections-CyrXbbkG.d.ts +0 -10
  500. package/dist/site-access-BbJUe5QI.js +0 -2
  501. /package/dist/{agent/channels.d.ts → channels/adapters.d.ts} +0 -0
  502. /package/dist/{agent/channels.js → channels/adapters.js} +0 -0
@@ -1,8 +1,6 @@
1
1
  import { PluginOption } from "vite";
2
2
  import { MaybePromise as MaybePromise$1, RuntimeDiagnosticError, TraceEventContentPolicy, TraceEventLogEntry } from "@vite-hub/runtime";
3
3
  import { EnvOptions, EnvOptions as EnvOptions$1, EnvRuntimeConfigOptions, EnvVariableDeclaration } from "@vite-hub/env";
4
- //#region ../internal/dist/deployment.d.ts
5
- //#region src/deployment.d.ts
6
4
  /** The host that ViteHub builds for: the `host` option of `vitehub()` and the value of `VITEHUB_HOST`. */
7
5
  type ViteHubHost = "cloudflare" | "deno" | "netlify" | "node" | "vercel";
8
6
  /**
@@ -12,8 +10,6 @@ type ViteHubHost = "cloudflare" | "deno" | "netlify" | "node" | "vercel";
12
10
  * `vitehub()` uses this result when `host` is omitted, and `"node"` when it is `undefined`.
13
11
  */
14
12
  declare function detectHost(env?: Record<string, string | undefined>): ViteHubHost | undefined;
15
- //#endregion
16
- //#region src/cache-storage.d.ts
17
13
  /** Storage for Nitro's `cache` mount, used by `defineCachedFunction()` and `defineCachedEventHandler()`. */
18
14
  type CacheOptions = {
19
15
  driver: "cloudflare";
@@ -31,8 +27,6 @@ type CacheOptions = {
31
27
  } | {
32
28
  driver: "vercel";
33
29
  };
34
- //#endregion
35
- //#region ../database/dist/types-CKHGU06S.d.ts
36
30
  interface RuntimeEnvDeclarationLike {
37
31
  default?: unknown;
38
32
  kind: "env-variable";
@@ -117,9 +111,10 @@ interface DatabaseIntegrationOptions {
117
111
  backup?: boolean | MigrationBackupOptions;
118
112
  };
119
113
  /**
120
- * Applies the pending migrations of each Cloudflare D1 binding as part of the deploy, before the Worker deploys. The
121
- * generated deploy command in `nitro.json` runs `wrangler d1 migrations apply <binding> --remote` first, so
122
- * `nitro deploy --prebuilt`, Workers Builds and `vitehub deploy` stop when a migration fails. The build fails with
114
+ * Adds `wrangler d1 migrations apply <binding> --remote` steps before the deploy command in `nitro.json`.
115
+ * For the generated `wrangler deploy --config` command, `vitehub deploy` applies these steps without a prompt and
116
+ * stops before deploying if one fails. `nitro deploy --prebuilt` and Workers Builds do not use the saved command:
117
+ * put the migration steps in their deploy command. The build fails with
123
118
  * `DATABASE_MIGRATE_ON_DEPLOY_UNSUPPORTED` for another host, or for a database without a D1 binding.
124
119
  */
125
120
  migrateOnDeploy?: boolean;
@@ -131,10 +126,6 @@ type DatabaseNuxtIntegrationOptions = false | DatabaseIntegrationOptions & Parti
131
126
  type DatabaseOptions = false | DatabaseIntegrationOptions & Partial<DatabaseRuntimeD1Options> & {
132
127
  connection?: DatabaseConnectionConfig;
133
128
  };
134
- //#endregion
135
- //#region ../comments/dist/vite.d.ts
136
- //#endregion
137
- //#region src/live-vite.d.ts
138
129
  /** Module paths that generated files import. The `vite-hub` distribution passes its own subpaths. */
139
130
  interface CommentsImports {
140
131
  /** Exports `defineCommentsPlugin`, `createCommentsHandler`, and `viteHubPageSessionHandler`. */
@@ -155,6 +146,8 @@ interface CommentsImports {
155
146
  blob: string;
156
147
  /** Exports `checkRateLimit`, which counts guest writes when Rate Limit counts in a shared KV store. */
157
148
  rateLimit: string;
149
+ /** `@vite-hub/webhooks`: the member endpoints that `defineComments({ send })` delivers to. */
150
+ webhooks: string;
158
151
  }
159
152
  /** Options of `comments()`, for apps that use Comments without `vite-hub`. */
160
153
  interface CommentsOptions {
@@ -205,22 +198,23 @@ interface CommentsVitePluginOptions {
205
198
  */
206
199
  rateLimit?: boolean;
207
200
  }
208
- //#endregion
209
- //#region src/vite.d.ts
210
201
  type HubCommentsOptions = CommentsVitePluginOptions & {
211
202
  /** Import paths of the comment operations. `vite-hub` passes its own subpaths. */
212
203
  operationsImports?: {
213
204
  operations?: string;
214
205
  };
215
206
  };
216
- //#endregion
217
- //#region src/health-vite.d.ts
207
+ /** A primitive that the health route can check. */
208
+ type HealthCheck = "database" | "kv" | "blob";
218
209
  interface HealthOptions {
219
210
  /** The route that answers the health check. Default: `/_vitehub/health`. */
220
211
  route?: string;
212
+ /**
213
+ * The primitives that the route checks. Default: each of `database`, `kv`, and `blob` that the app turns on. `[]`
214
+ * checks nothing and answers with the version and commit only.
215
+ */
216
+ checks?: readonly HealthCheck[];
221
217
  }
222
- //#endregion
223
- //#region src/deploy-options.d.ts
224
218
  interface DeployOptions {
225
219
  /**
226
220
  * Paths that `vitehub deploy` requests on the deployed URL after each deploy, such as `["/", "/api/products"]`. Each
@@ -235,8 +229,6 @@ interface DeployOptions {
235
229
  */
236
230
  indexNow?: boolean;
237
231
  }
238
- //#endregion
239
- //#region src/seo/vite.d.ts
240
232
  /** `vitehub({ seo })`. */
241
233
  interface SeoOptions {
242
234
  /**
@@ -258,8 +250,6 @@ interface SeoOptions {
258
250
  disallow?: readonly string[];
259
251
  };
260
252
  }
261
- //#endregion
262
- //#region src/security-vite.d.ts
263
253
  /** The headers that built output sends by default. */
264
254
  declare const defaultSecurityHeaders: {
265
255
  readonly "Strict-Transport-Security": "max-age=31536000";
@@ -289,8 +279,6 @@ interface SecurityOptions {
289
279
  */
290
280
  maxBodySize?: number | `${number}${ByteUnit}`;
291
281
  }
292
- //#endregion
293
- //#region src/request-policy-vite.d.ts
294
282
  /** `sameOriginWrites` options of `vitehub()`. */
295
283
  interface SameOriginWritesOptions {
296
284
  /**
@@ -299,8 +287,6 @@ interface SameOriginWritesOptions {
299
287
  */
300
288
  exclude?: string[];
301
289
  }
302
- //#endregion
303
- //#region src/redirects-vite.d.ts
304
290
  /** `redirects` options of `vitehub()`. */
305
291
  interface RedirectsOptions {
306
292
  /**
@@ -322,161 +308,6 @@ interface RedirectsOptions {
322
308
  */
323
309
  previewHosts?: string[];
324
310
  }
325
- //#endregion
326
- //#region src/console/vite.d.ts
327
- /**
328
- * The Console options. `console: true` is the same as `console: {}`.
329
- * The app serves one Console route, `POST /_vitehub/rpc`. It takes only requests that the ViteHub Console or the CLI
330
- * signed with an Ed25519 key whose public key is in a `VITEHUB_CONSOLE_KEY_<NAME>` runtime env var.
331
- */
332
- interface ConsoleOptions {
333
- /**
334
- * `false` takes calls without a signature, from this machine only, for `vite dev`. A production build fails. Leave it
335
- * out to take only signed calls.
336
- */
337
- auth?: false;
338
- /**
339
- * Server file that default-exports `defineConsoleAuthorize()`. Every Console call runs it after the signature check.
340
- * It returns `true`, `false`, a `Response`, or `{ sections }` to allow only some Console sections.
341
- */
342
- authorize?: string;
343
- /**
344
- * Let Console administrators open the app as one of its users. Off by default. It needs app Auth with Better Auth's
345
- * `admin` plugin and `events.store`, so that every start and stop is recorded.
346
- */
347
- impersonation?: boolean;
348
- /** Let the Console start Agent Invocations and run manual Schedules. Defaults to `true` in development and `false` in production builds. */
349
- invoke?: boolean;
350
- /**
351
- * Sections to leave out of this Console, such as `{ content: false }`. A hidden section has no navigation entry and
352
- * no Console routes. It does not change the primitive itself: the app still reads and writes its content.
353
- */
354
- sections?: Readonly<Record<string, false>>;
355
- /**
356
- * `false` leaves the **Console** link out of the page tools pill. Then HTML pages get no page tools script, unless
357
- * another page tool, such as Comments, is on. Site access needs the pill, so the Console has no Site access section.
358
- */
359
- pill?: false;
360
- /**
361
- * Show the MCP client section: it connects to MCP servers as the person who signed in to the Console, with OAuth or a
362
- * token. It lists the servers that the app announces in its RFC 9728 metadata, such as its own `/mcp`.
363
- */
364
- mcpClient?: boolean;
365
- }
366
- //#endregion
367
- //#region src/systemd.d.ts
368
- /** `systemd` options of `vitehub()`. */
369
- interface SystemdOptions {
370
- /** The unit name without `.service`. Defaults to the deployment name: `vitehub({ name })`, else the package.json name. */
371
- name?: string;
372
- /** `User=` of a system unit. Omit it for a user unit (`systemctl --user`). */
373
- user?: string;
374
- /** `Group=` of a system unit. */
375
- group?: string;
376
- /**
377
- * Absolute app directory on the server, where the unit starts the server entry and where relative data paths resolve.
378
- * Defaults to the project root of the build.
379
- */
380
- workingDirectory?: string;
381
- /** Optional environment file, relative to `workingDirectory`. Defaults to `.env`. `false` reads no file. */
382
- environmentFile?: string | false;
383
- /** `Environment=` variables, such as `{ PORT: "3000" }`. */
384
- environment?: Record<string, string>;
385
- }
386
- //#endregion
387
- //#region src/observability-vite.d.ts
388
- /** Self-contained options for the evlog Nitro module. */
389
- interface ObservabilityEvlogOptions {
390
- enabled?: boolean;
391
- pretty?: boolean;
392
- silent?: boolean;
393
- env?: Partial<Record<"service" | "environment" | "version" | "commitHash" | "region", string>>;
394
- include?: string[];
395
- exclude?: string[];
396
- routes?: Record<string, {
397
- service: string;
398
- }>;
399
- minLevel?: "debug" | "info" | "warn" | "error";
400
- dev?: "evlog" | "nitro" | "both" | {
401
- frameworkOverlay?: boolean;
402
- prettyError?: {
403
- snippet?: boolean;
404
- stackDepth?: number;
405
- compact?: boolean;
406
- detail?: "full" | "guidance";
407
- };
408
- };
409
- sampling?: {
410
- rates?: Partial<Record<"debug" | "info" | "warn" | "error", number>>;
411
- keep?: Array<{
412
- status?: number;
413
- duration?: number;
414
- path?: string;
415
- }>;
416
- };
417
- redact?: boolean | {
418
- paths?: string[];
419
- patterns?: RegExp[];
420
- builtins?: false | Array<"creditCard" | "email" | "ipv4" | "phone" | "jwt" | "bearer" | "iban">;
421
- replacement?: string | ((matched: unknown, context: {
422
- path: string;
423
- key: string;
424
- groups?: Array<string | undefined>;
425
- }) => string);
426
- transform?: (event: Record<string, unknown> & {
427
- timestamp: string;
428
- level: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
429
- service: string;
430
- environment: string;
431
- version?: string;
432
- commitHash?: string;
433
- region?: string;
434
- duration?: string;
435
- durationMs?: number;
436
- }) => void;
437
- };
438
- }
439
- /** Where the Console and `vitehub logs` read logs. */
440
- type LogsOptions = {
441
- source: string;
442
- } | {
443
- maxEntries?: number;
444
- maxEntryBytes?: number;
445
- };
446
- interface ObservabilityOptions {
447
- /**
448
- * Service name on every event and log. Set it to install `useObservability()`: Agent telemetry, PostHog export, and
449
- * papercut reports.
450
- */
451
- service?: string;
452
- /** Defaults to `NODE_ENV`, then `development`. */
453
- environment?: string;
454
- /** Export events, exceptions, and failed request logs to PostHog. Requires `service`. */
455
- posthog?: {
456
- /** Server Env reference, for example `env({ secret: true, source: env.source("POSTHOG_API_KEY") })`. */
457
- apiKey: EnvVariableDeclaration | string;
458
- /** Defaults to `https://us.i.posthog.com`. */
459
- host?: string;
460
- };
461
- /** Options for the evlog Nitro module, such as `sampling`, `redact`, and `pretty`. */
462
- evlog?: ObservabilityEvlogOptions;
463
- /** Durable papercut reports, backed by the Console invocation journal. Requires `service`. */
464
- papercuts?: true | {
465
- eventPrefix?: string;
466
- uuidNamespace?: string;
467
- intervalMs?: number;
468
- };
469
- /** Queue bound for best-effort events and for the log buffer. Defaults to 1,000. */
470
- maxPending?: number;
471
- /**
472
- * Send uncaught browser errors to `POST /_vitehub/browser-errors`. The server logs each one as an error on the
473
- * request's Evlog event. Same origin only, 16 KiB at most, and 20 reports a minute for each address.
474
- */
475
- browserErrors?: boolean;
476
- }
477
- //#endregion
478
- //#region ../workspace/dist/types-1Z-tKK3g.d.ts
479
- //#region src/core/types.d.ts
480
311
  type WorkspaceContent = string | Uint8Array;
481
312
  type WorkspaceContentStream = ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>;
482
313
  interface ReadFileOptions {
@@ -752,6 +583,22 @@ interface WorkspaceHistoryExtensions {
752
583
  merge?(options: WorkspaceMergeOptions): Promise<WorkspaceRevision | null>;
753
584
  /** Open a pull request from one ref into another. */
754
585
  openPullRequest?(options: WorkspaceOpenPullRequestOptions): Promise<WorkspacePullRequest>;
586
+ /**
587
+ * Delete a ref. Returns false when it does not exist and no `ifHead` was supplied. Deleting `main` or the Store's
588
+ * working ref throws `WORKSPACE_DEFAULT_REF_DELETE`.
589
+ * Blob + Database also deletes the ref's revisions and file bytes not used by other revisions. GitHub only deletes
590
+ * the branch; commits and their bytes may still be readable by SHA.
591
+ */
592
+ deleteRef?(options: WorkspaceHistoryDeleteRefOptions): Promise<boolean>;
593
+ }
594
+ interface WorkspaceHistoryDeleteRefOptions {
595
+ /** The ref to delete, such as `run-42`. */
596
+ ref: string;
597
+ /**
598
+ * The expected head of `ref`. A mismatch throws `WORKSPACE_CONFLICT`. Blob + Database checks the head atomically
599
+ * with ref deletion. GitHub checks the head before sending an unconditional branch deletion request.
600
+ */
601
+ ifHead?: string;
755
602
  }
756
603
  /** Run the Workspace commit policy on a prepared merge before the Store advances its destination ref. */
757
604
  type WorkspaceMergeCommit = (options: WorkspaceStoreHistoryCommitOptions, apply: (checked: WorkspaceStoreHistoryCommitOptions) => Promise<WorkspaceRevision>) => Promise<WorkspaceRevision>;
@@ -762,8 +609,12 @@ interface WorkspaceStoreHistory extends WorkspaceHistoryReader, Omit<WorkspaceHi
762
609
  interface WorkspaceDiffEntry {
763
610
  path: string;
764
611
  type: "added" | "modified" | "removed";
765
- before?: WorkspaceSnapshot["entries"][string];
766
- after?: WorkspaceSnapshot["entries"][string];
612
+ before?: WorkspaceSnapshot["entries"][string] & {
613
+ mediaType?: string;
614
+ };
615
+ after?: WorkspaceSnapshot["entries"][string] & {
616
+ mediaType?: string;
617
+ };
767
618
  }
768
619
  interface WorkspaceDiff {
769
620
  from?: string;
@@ -781,6 +632,12 @@ interface WorkspaceStore {
781
632
  writeFileStream?(path: string, file: WorkspaceStreamFile): Promise<WorkspaceStat & {
782
633
  digest: string;
783
634
  }>;
635
+ /**
636
+ * Creates new files without replacing existing paths, then sets the metadata keys. Call `onWrite` with each file's
637
+ * path after it is created, so the Workspace can roll back those files if a later write fails. Startup Source
638
+ * materialization uses this for new files. Without it, each file and key is written on its own.
639
+ */
640
+ writeFiles?(files: readonly WorkspaceFile[], meta?: Readonly<Record<string, unknown>>, onWrite?: (path: string) => void): Promise<void>;
784
641
  list(prefix?: string, options?: ListOptions): Promise<WorkspaceEntry[]>;
785
642
  glob(pattern: string | string[], options?: GlobOptions): Promise<WorkspaceEntry[]>;
786
643
  stat(path: string): Promise<WorkspaceStat | undefined>;
@@ -860,9 +717,6 @@ interface WorkspaceOptions {
860
717
  assets?: boolean | string[];
861
718
  store?: WorkspaceStoreOptions;
862
719
  }
863
- //#endregion
864
- //#region ../sandbox/dist/index-DsoQAUb7.d.ts
865
- //#region src/internal/network-policy.d.ts
866
720
  /**
867
721
  * The outbound network of a Sandbox. The `vercel` and `cloudflare` runtimes take this form.
868
722
  * - `"allow-all"`: no limit. This is the default.
@@ -873,8 +727,6 @@ interface WorkspaceOptions {
873
727
  type SandboxNetworkPolicy = "allow-all" | "deny-all" | {
874
728
  allow: readonly string[];
875
729
  };
876
- //#endregion
877
- //#region src/vercel.d.ts
878
730
  type VercelSandboxSource = {
879
731
  depth?: number;
880
732
  revision?: string;
@@ -901,10 +753,6 @@ type VercelSandboxNetworkPolicy = "allow-all" | "deny-all" | {
901
753
  deny?: readonly string[];
902
754
  };
903
755
  };
904
- //#endregion
905
- //#region ../agent/dist/types-CMop_fX7.d.ts
906
- //#endregion
907
- //#region src/agent-invocation.d.ts
908
756
  type AgentInvocationStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
909
757
  type AgentInvocationAnnotationValue = boolean | number | string | null;
910
758
  type AgentInvocationRecordStatus = AgentInvocationStatus;
@@ -917,6 +765,7 @@ interface AgentInvocationWorkflowBinding {
917
765
  interface AgentInvocationRecord {
918
766
  /** Durable provider dispatch intent and acknowledged physical identity. */
919
767
  workflow?: AgentInvocationWorkflowBinding;
768
+ executionMode?: "inline" | "workflow";
920
769
  agentName?: string;
921
770
  annotations?: Record<string, AgentInvocationAnnotationValue>;
922
771
  /** Capability IDs observed during this Invocation, including uses omitted from a truncated trace. */
@@ -1117,8 +966,6 @@ interface AgentInvocationsOptions {
1117
966
  /** Time to wait for one store operation before the journal treats it as unconfirmed. Default 1000 ms; maximum 60000 ms. Raise it for a store in a distant region. */
1118
967
  storeTimeoutMs?: number;
1119
968
  }
1120
- //#endregion
1121
- //#region src/retention.d.ts
1122
969
  /** Units of a retention duration string: milliseconds, seconds, minutes, hours, days, and weeks. */
1123
970
  type AgentRetentionDurationUnit = "ms" | "s" | "m" | "h" | "d" | "w";
1124
971
  /** A duration such as `"14d"`, `"12h"`, `"30m"`, or `"1.5h"`. */
@@ -1146,14 +993,13 @@ interface AgentRetentionPolicy {
1146
993
  */
1147
994
  maxSize?: false | number | AgentRetentionSize;
1148
995
  }
1149
- //#endregion
1150
- //#region src/invocations/app.d.ts
1151
996
  /** Built-in Invocation journal stores. `database` uses the app's ViteHub Database. `memory` keeps records in the server process. */
1152
997
  type AgentInvocationsStoreName = "database" | "memory";
1153
998
  type AgentInvocationsJournalOptions = Omit<AgentInvocationsOptions, "store">;
1154
999
  /**
1155
1000
  * Options of the default journal, which ViteHub installs for Agents that set no journal.
1156
- * It is local SQLite at `.vitehub/data/agent-invocations.sqlite`, or D1 in a Cloudflare production build.
1001
+ * It is local SQLite at `.vitehub/data/agent-invocations.sqlite`, D1 in a Cloudflare production build, or the
1002
+ * `default` Database in a Node production build when that Database uses Postgres.
1157
1003
  */
1158
1004
  interface AgentInvocationsDefaultJournal {
1159
1005
  /**
@@ -1165,7 +1011,7 @@ interface AgentInvocationsDefaultJournal {
1165
1011
  observations?: AgentInvocationObservationOptions;
1166
1012
  /**
1167
1013
  * Remove old terminal records by `maxAge`, `maxRecords`, or `maxSize`. SQLite and libSQL keep every record by default.
1168
- * The D1 journal defaults to 30 days and 10,000 records, and does not support `maxSize`.
1014
+ * The D1 and Postgres Database journals default to 30 days and 10,000 records, and do not support `maxSize`.
1169
1015
  */
1170
1016
  retention?: AgentRetentionPolicy;
1171
1017
  database?: never;
@@ -1182,8 +1028,6 @@ type AgentInvocationsDefault = AgentInvocationsStoreName | false | AgentInvocati
1182
1028
  store: "memory";
1183
1029
  database?: never;
1184
1030
  });
1185
- //#endregion
1186
- //#region src/types.d.ts
1187
1031
  type AgentRuntimeName = "cloudflare-agents" | "deno" | "unknown" | "vercel" | "vite";
1188
1032
  type AgentRuntime = "auto" | AgentRuntimeName;
1189
1033
  type AgentExecution = "inline" | "sandbox" | "workflow";
@@ -1260,10 +1104,36 @@ interface AgentChannelsOptions {
1260
1104
  */
1261
1105
  simulate?: boolean;
1262
1106
  }
1107
+ /**
1108
+ * The `ai` seed of the AI emulator. The emulator validates it when `vite dev` starts, and a seed that it rejects fails
1109
+ * with `AGENT_EMULATOR_RULES_INVALID`. This type does not import the optional `@emulators/ai` package, so the config
1110
+ * types work without it. `EmulatedModelSeed` from `@vite-hub/agent/test/emulate-models` is the full upstream type.
1111
+ */
1112
+ interface AgentModelsEmulateSeed {
1113
+ /** Scripted rules. Each rule needs an `id`, a `match`, and one of `reply`, `variants`, or `error`. */
1114
+ rules?: readonly object[];
1115
+ /** When `true`, a request that no rule matches fails with the missing rule. */
1116
+ strict?: boolean;
1117
+ timing?: object;
1118
+ random?: {
1119
+ seed?: number;
1120
+ };
1121
+ models?: readonly string[];
1122
+ }
1123
+ interface AgentModelsOptions {
1124
+ /**
1125
+ * In `vite dev`, start the AI emulator (`@emulators/ai`) on a free loopback port and run every model Driver Agent on
1126
+ * it with no AI key. `true` uses the default answers; a seed object sets the rules.
1127
+ * The plugin sets `VITEHUB_MODELS=emulate` and `VITEHUB_EMULATE_URL` in `vite dev` only. A build does not start the
1128
+ * emulator. It needs the optional packages `@emulators/core` and `@emulators/ai`.
1129
+ */
1130
+ emulate?: boolean | AgentModelsEmulateSeed;
1131
+ }
1263
1132
  interface AgentOptions$1 {
1264
1133
  /** Prepare startup Workspace sources on a persistent Nitro host. */
1265
1134
  preparation?: AgentPreparationOptions;
1266
1135
  channels?: AgentChannelsOptions;
1136
+ models?: AgentModelsOptions;
1267
1137
  cli?: false | AgentCliOptions;
1268
1138
  execution?: AgentExecution;
1269
1139
  eval?: AgentEvalOptions;
@@ -1277,8 +1147,153 @@ interface AgentOptions$1 {
1277
1147
  */
1278
1148
  shutdown?: false | AgentShutdownOptions;
1279
1149
  }
1280
- //#endregion
1281
- //#region ../blob/dist/types-CcPFXhpt.d.ts
1150
+ /**
1151
+ * The Console options. `console: true` is the same as `console: {}`.
1152
+ * The app serves one Console route, `POST /_vitehub/rpc`. It takes only requests that the ViteHub Console or the CLI
1153
+ * signed with an Ed25519 key whose public key is in a `VITEHUB_CONSOLE_KEY_<NAME>` runtime env var.
1154
+ */
1155
+ interface ConsoleOptions {
1156
+ /**
1157
+ * `false` takes calls without a signature, from this machine only, for `vite dev`. A production build fails. Leave it
1158
+ * out to take only signed calls.
1159
+ */
1160
+ auth?: false;
1161
+ /**
1162
+ * Server file that default-exports `defineConsoleAuthorize()`. Every Console call runs it after the signature check.
1163
+ * It returns `true`, `false`, a `Response`, or `{ sections }` to allow only some Console sections.
1164
+ */
1165
+ authorize?: string;
1166
+ /**
1167
+ * Let Console administrators open the app as one of its users. Off by default. It needs app Auth with Better Auth's
1168
+ * `admin` plugin and `events.store`, so that every start and stop is recorded.
1169
+ */
1170
+ impersonation?: boolean;
1171
+ /** Let the Console start Agent Invocations and run manual Schedules. Defaults to `true` in development and `false` in production builds. */
1172
+ invoke?: boolean;
1173
+ /**
1174
+ * Sections to leave out of this Console, such as `{ content: false }`. A hidden section has no navigation entry and
1175
+ * no Console routes. It does not change the primitive itself: the app still reads and writes its content.
1176
+ */
1177
+ sections?: Readonly<Record<string, false>>;
1178
+ /**
1179
+ * `false` leaves the **Console** link out of the page tools pill. Then HTML pages get no page tools script, unless
1180
+ * another page tool, such as Comments, is on. Site access needs the pill, so the Console has no Site access section.
1181
+ */
1182
+ pill?: false;
1183
+ /**
1184
+ * Show the MCP client section: it connects to MCP servers as the person who signed in to the Console, with OAuth or a
1185
+ * token. It lists the servers that the app announces in its RFC 9728 metadata, such as its own `/mcp`.
1186
+ */
1187
+ mcpClient?: boolean;
1188
+ }
1189
+ /** `systemd` options of `vitehub()`. */
1190
+ interface SystemdOptions {
1191
+ /** The unit name without `.service`. Defaults to the deployment name: `vitehub({ name })`, else the package.json name. */
1192
+ name?: string;
1193
+ /** `User=` of a system unit. Omit it for a user unit (`systemctl --user`). */
1194
+ user?: string;
1195
+ /** `Group=` of a system unit. */
1196
+ group?: string;
1197
+ /**
1198
+ * Absolute app directory on the server, where the unit starts the server entry and where relative data paths resolve.
1199
+ * Defaults to the project root of the build.
1200
+ */
1201
+ workingDirectory?: string;
1202
+ /** Optional environment file, relative to `workingDirectory`. Defaults to `.env`. `false` reads no file. */
1203
+ environmentFile?: string | false;
1204
+ /** `Environment=` variables, such as `{ PORT: "3000" }`. */
1205
+ environment?: Record<string, string>;
1206
+ }
1207
+ /** Self-contained options for the evlog Nitro module. */
1208
+ interface ObservabilityEvlogOptions {
1209
+ enabled?: boolean;
1210
+ pretty?: boolean;
1211
+ silent?: boolean;
1212
+ env?: Partial<Record<"service" | "environment" | "version" | "commitHash" | "region", string>>;
1213
+ include?: string[];
1214
+ exclude?: string[];
1215
+ routes?: Record<string, {
1216
+ service: string;
1217
+ }>;
1218
+ minLevel?: "debug" | "info" | "warn" | "error";
1219
+ dev?: "evlog" | "nitro" | "both" | {
1220
+ frameworkOverlay?: boolean;
1221
+ prettyError?: {
1222
+ snippet?: boolean;
1223
+ stackDepth?: number;
1224
+ compact?: boolean;
1225
+ detail?: "full" | "guidance";
1226
+ };
1227
+ };
1228
+ sampling?: {
1229
+ rates?: Partial<Record<"debug" | "info" | "warn" | "error", number>>;
1230
+ keep?: Array<{
1231
+ status?: number;
1232
+ duration?: number;
1233
+ path?: string;
1234
+ }>;
1235
+ };
1236
+ redact?: boolean | {
1237
+ paths?: string[];
1238
+ patterns?: RegExp[];
1239
+ builtins?: false | Array<"creditCard" | "email" | "ipv4" | "phone" | "jwt" | "bearer" | "iban">;
1240
+ replacement?: string | ((matched: unknown, context: {
1241
+ path: string;
1242
+ key: string;
1243
+ groups?: Array<string | undefined>;
1244
+ }) => string);
1245
+ transform?: (event: Record<string, unknown> & {
1246
+ timestamp: string;
1247
+ level: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
1248
+ service: string;
1249
+ environment: string;
1250
+ version?: string;
1251
+ commitHash?: string;
1252
+ region?: string;
1253
+ duration?: string;
1254
+ durationMs?: number;
1255
+ }) => void;
1256
+ };
1257
+ }
1258
+ /** Where the Console and `vitehub logs` read logs. */
1259
+ type LogsOptions = {
1260
+ source: string;
1261
+ } | {
1262
+ maxEntries?: number;
1263
+ maxEntryBytes?: number;
1264
+ };
1265
+ interface ObservabilityOptions {
1266
+ /**
1267
+ * Service name on every event and log. Set it to install `useObservability()`: Agent telemetry, PostHog export, and
1268
+ * papercut reports.
1269
+ */
1270
+ service?: string;
1271
+ /** Defaults to `NODE_ENV`, then `development`. */
1272
+ environment?: string;
1273
+ /** Export events, exceptions, and failed request logs to PostHog. Requires `service`. */
1274
+ posthog?: {
1275
+ /** Server Env reference, for example `env({ secret: true, source: env.source("POSTHOG_API_KEY") })`. */
1276
+ apiKey: EnvVariableDeclaration | string;
1277
+ /** Defaults to `https://us.i.posthog.com`. */
1278
+ host?: string;
1279
+ };
1280
+ /** Options for the evlog Nitro module, such as `sampling`, `redact`, and `pretty`. */
1281
+ evlog?: ObservabilityEvlogOptions;
1282
+ /** Durable papercut reports, backed by the Console invocation journal. Requires `service`. */
1283
+ papercuts?: true | {
1284
+ eventPrefix?: string;
1285
+ uuidNamespace?: string;
1286
+ intervalMs?: number;
1287
+ };
1288
+ /** Queue bound for best-effort events and for the log buffer. Defaults to 1,000. */
1289
+ maxPending?: number;
1290
+ /**
1291
+ * Send uncaught browser errors, and the reports of `reportBrowserError()` from `vite-hub/logs/client`, to
1292
+ * `POST /_vitehub/browser-errors`. The server logs each one on the request's Evlog event. Same origin only, 16 KiB
1293
+ * at most, and 20 reports a minute for each address.
1294
+ */
1295
+ browserErrors?: boolean;
1296
+ }
1282
1297
  /**
1283
1298
  * Built-in transformer names. `auto` picks the Cloudflare Images binding, then sharp, then passthrough. `photon` uses
1284
1299
  * `@cf-wasm/photon` on every host and is never picked by `auto`.
@@ -1300,8 +1315,6 @@ interface BlobImagesOptions {
1300
1315
  /** Defaults to `auto`. */
1301
1316
  transformer?: BlobImageTransformerName;
1302
1317
  }
1303
- //#endregion
1304
- //#region ../blob/dist/types-FTerpSjG.d.ts
1305
1318
  /**
1306
1319
  * Cloudflare R2 jurisdiction that keeps bucket data in one region.
1307
1320
  * @see https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions
@@ -1452,26 +1465,15 @@ type BlobOptions = false | BlobStoresConfig | (BlobModuleBaseOptions & HostedBlo
1452
1465
  } & Partial<Pick<ResolvedCloudflareR2BlobStoreConfig, "binding" | "bucketName" | "jurisdiction">>) | (BlobModuleBaseOptions & HostedBlobStoreConfig & {
1453
1466
  driver?: undefined;
1454
1467
  } & Partial<Pick<NetlifyBlobsStoreConfig, "name">>) | (BlobModuleBaseOptions & BlobStoreConfig);
1455
- //#endregion
1456
- //#region ../browser/dist/types-lA5LsVzt.d.ts
1457
- //#region src/types.d.ts
1458
1468
  type BrowserEngine = "chromium" | "kitesurf";
1459
- //#endregion
1460
- //#region ../browser/dist/vite.d.ts
1461
- //#endregion
1462
- //#region src/vite.d.ts
1463
1469
  interface BrowserOptions {
1464
1470
  binding?: string;
1465
1471
  engine?: BrowserEngine;
1466
1472
  remote?: boolean;
1467
1473
  }
1468
- //#endregion
1469
- //#region ../channels/dist/vite.d.ts
1470
1474
  interface ChannelsOptions {
1471
1475
  projectRoot?: string;
1472
1476
  }
1473
- //#endregion
1474
- //#region ../connections/dist/types-M5OXTk-z.d.ts
1475
1477
  /**
1476
1478
  * How long the database keeps Connection activity. Connections write one activity event per
1477
1479
  * provider request. Each limit is a positive integer.
@@ -1482,8 +1484,6 @@ interface ConnectionActivityRetention {
1482
1484
  /** Keep at most this many events, the newest first. Defaults to 10,000. */
1483
1485
  maxRecords?: number;
1484
1486
  }
1485
- //#endregion
1486
- //#region ../connections/dist/vite.d.ts
1487
1487
  interface ConnectionsVitePluginOptions {
1488
1488
  /** Agent name used to select a function-form `vitehub({ publicUrl })` origin. */
1489
1489
  agentName?: string;
@@ -1519,9 +1519,12 @@ interface ConnectionsVitePluginOptions {
1519
1519
  */
1520
1520
  projectRoot?: string;
1521
1521
  }
1522
- //#endregion
1523
- //#region ../email/dist/vite.d.ts
1524
- type EmailDriverName = "cloudflare" | "log" | "resend";
1522
+ type EmailDriverName = "cloudflare" | "log" | "resend" | "smtp";
1523
+ /**
1524
+ * The path of a module, relative to the project root, that default-exports a driver factory. The factory receives
1525
+ * `email.options` with Env values resolved, and returns an `EmailDriver`.
1526
+ */
1527
+ type EmailDriverModulePath = `./${string}` | `../${string}`;
1525
1528
  /** Development outbox options. The outbox is active only in `vite dev`. */
1526
1529
  interface EmailOutboxOptions {
1527
1530
  /**
@@ -1532,7 +1535,8 @@ interface EmailOutboxOptions {
1532
1535
  limit?: number;
1533
1536
  }
1534
1537
  interface EmailOptions {
1535
- driver: EmailDriverName;
1538
+ /** A built-in driver, or the path of a driver module, for example `"./server/email-driver.ts"`. */
1539
+ driver: EmailDriverName | EmailDriverModulePath;
1536
1540
  options?: EnvRuntimeConfigOptions;
1537
1541
  /**
1538
1542
  * Development outbox. In `vite dev`, `email.send()` records each message. `false` disables the outbox, and then
@@ -1548,8 +1552,6 @@ interface EmailOptions {
1548
1552
  */
1549
1553
  remote?: boolean;
1550
1554
  }
1551
- //#endregion
1552
- //#region ../kv/dist/types-Dv-OSXZC.d.ts
1553
1555
  interface CloudflareKVStoreConfig {
1554
1556
  driver: "cloudflare";
1555
1557
  binding?: string;
@@ -1597,7 +1599,7 @@ interface DatabaseKVStoreConfig {
1597
1599
  driver: "database";
1598
1600
  /**
1599
1601
  * The Database that keeps the keys, in the table `vitehub_kv`. Default `"default"`. The store creates the table when
1600
- * it is missing. Postgres and libSQL work. D1 does not.
1602
+ * it is missing. Postgres, libSQL, and Cloudflare D1 work.
1601
1603
  */
1602
1604
  database?: string;
1603
1605
  /** A Database store uses the Database of the app, in `vite dev` too. */
@@ -1630,8 +1632,6 @@ interface KVStoresConfig {
1630
1632
  stores: Record<string, KVStoreConfig>;
1631
1633
  }
1632
1634
  type KVOptions = KVStoreConfig | InferredKVStoreConfig | KVStoresConfig | false;
1633
- //#endregion
1634
- //#region ../mcp/dist/index-DBxZC3vY.d.ts
1635
1635
  /** An icon that clients show for the server. `src` is an `https:` or `data:` URI. */
1636
1636
  interface McpIcon {
1637
1637
  src: string;
@@ -1640,11 +1640,8 @@ interface McpIcon {
1640
1640
  sizes?: string[];
1641
1641
  theme?: "light" | "dark";
1642
1642
  }
1643
- //#endregion
1644
- //#region src/index.d.ts
1645
1643
  declare global {
1646
1644
  namespace ViteHub {
1647
- /** Generated declarations set `hooks` to the type of the default export of `server/mcp.ts`. */
1648
1645
  interface McpRegistry {}
1649
1646
  }
1650
1647
  }
@@ -1681,8 +1678,6 @@ interface McpOptions {
1681
1678
  /** The name, title, version, description, website, and icons that MCP clients show. */
1682
1679
  serverInfo?: McpServerInfoOptions;
1683
1680
  }
1684
- //#endregion
1685
- //#region ../rate-limit/dist/types-OzukEqHf.d.ts
1686
1681
  /**
1687
1682
  * `kv` counts in the default KV store, shared by every server process when KV uses `redis`, `database`, or `upstash`.
1688
1683
  * With another KV driver, it counts in process memory and prints a warning at boot.
@@ -1695,8 +1690,6 @@ interface RateLimitOptions {
1695
1690
  projectRoot?: string;
1696
1691
  scanDirs?: string[];
1697
1692
  }
1698
- //#endregion
1699
- //#region ../realtime/dist/types-Cvm0G3VJ.d.ts
1700
1693
  interface RealtimeOptions {
1701
1694
  /**
1702
1695
  * The driver that runs the rooms. `auto` (default) picks Durable Objects on Cloudflare and memory on the dev server. A
@@ -1713,10 +1706,6 @@ interface RealtimeOptions {
1713
1706
  namespace?: string;
1714
1707
  projectRoot?: string;
1715
1708
  }
1716
- //#endregion
1717
- //#region ../sandbox/dist/module-types-BoOZiNN4.d.ts
1718
- //#endregion
1719
- //#region src/task/size.d.ts
1720
1709
  /** The size of the machine that runs every Sandbox Task. Both values are minimums. */
1721
1710
  interface SandboxTaskSizeOptions {
1722
1711
  /** Minimum vCPUs. ViteHub picks the smallest provider size that gives at least this many. */
@@ -1767,13 +1756,7 @@ type AgentSandboxTaskConfig = SandboxTaskDefinitionDriverOptions | ({
1767
1756
  driver?: undefined;
1768
1757
  name?: string;
1769
1758
  } & SandboxTaskSizeOptions & SandboxTaskDevOptions);
1770
- //#endregion
1771
- //#region ../sandbox/dist/task/vite.d.ts
1772
- //#endregion
1773
- //#region src/task/vite.d.ts
1774
1759
  type SandboxTaskOptions = AgentSandboxTaskConfig | false;
1775
- //#endregion
1776
- //#region ../schedule/dist/vite.d.ts
1777
1760
  interface ScheduleProcessRuntimeOptions {
1778
1761
  catchUpMs?: number;
1779
1762
  concurrency?: number;
@@ -1793,8 +1776,14 @@ interface ScheduleOptions {
1793
1776
  projectRoot?: string;
1794
1777
  runtime?: ScheduleProcessRuntimeOptions;
1795
1778
  }
1796
- //#endregion
1797
- //#region ../workflow/dist/types-Dsmwsdlv.d.ts
1779
+ /** `webContainer` options of `vitehub()`. */
1780
+ interface WebContainerOptions {
1781
+ /**
1782
+ * Pages that boot a WebContainer. `/playground` matches that path only. `/playground/**` matches it and every path below it.
1783
+ * Other pages keep their headers, so cross-origin embeds there keep working.
1784
+ */
1785
+ routes: readonly string[];
1786
+ }
1798
1787
  interface WorkflowSharedOptions {
1799
1788
  binding?: string;
1800
1789
  name?: string;
@@ -1857,9 +1846,6 @@ interface InferredWorkflowDriverOptions extends WorkflowSharedOptions {
1857
1846
  type WorkflowDriverOptions = CloudflareWorkflowDriverOptions | OpenWorkflowDriverOptions | VercelWorkflowDriverOptions;
1858
1847
  type WorkflowModuleDriverOptions = InferredWorkflowDriverOptions | WorkflowDriverOptions;
1859
1848
  type WorkflowOptions = false | WorkflowModuleDriverOptions;
1860
- //#endregion
1861
- //#region ../i18n/dist/locales-DIWHfY3L.d.ts
1862
- //#region src/locales.d.ts
1863
1849
  /** The `i18n` option of `vitehub()` and `vite-hub/nuxt`. */
1864
1850
  interface I18nOptions {
1865
1851
  /**
@@ -1879,8 +1865,6 @@ interface I18nOptions {
1879
1865
  */
1880
1866
  workspace?: string;
1881
1867
  }
1882
- //#endregion
1883
- //#region ../queue/dist/types-CiuSIPR0.d.ts
1884
1868
  interface QueueSharedOptions {
1885
1869
  cache?: boolean;
1886
1870
  }
@@ -1894,7 +1878,6 @@ interface VercelQueueModuleDriverOptions extends QueueSharedOptions {
1894
1878
  region?: string;
1895
1879
  }
1896
1880
  interface LocalQueueModuleDriverOptions extends QueueSharedOptions {
1897
- /** Directory of the stored jobs, relative to the working directory. Defaults to `.vitehub/data/queue`. */
1898
1881
  base?: string;
1899
1882
  driver: "local";
1900
1883
  }
@@ -1907,14 +1890,13 @@ type QueueOptions = false | (QueueSharedOptions & {
1907
1890
  namePrefix?: string;
1908
1891
  driver?: undefined;
1909
1892
  }) | QueueModuleDriverOptions;
1910
- //#endregion
1911
- //#region src/plugins.d.ts
1912
1893
  /** Agent options of `vitehub()`. */
1913
1894
  interface AgentOptions extends AgentOptions$1 {
1914
1895
  /**
1915
1896
  * Invocation journal for Agent Definitions from `vite-hub/agent` that do not set `invocations`. The Console reads it.
1916
1897
  * Omit it, or pass `{ databaseUrl, observations, retention }`, for the default journal: local SQLite at
1917
- * `.vitehub/data/agent-invocations.sqlite`, or the D1 binding of the default Database in a Cloudflare production build.
1898
+ * `.vitehub/data/agent-invocations.sqlite`, the D1 binding of the default Database in a Cloudflare production build,
1899
+ * or the Postgres `default` Database in a Node production build.
1918
1900
  * `"database"` uses the app's ViteHub Database. `"memory"` keeps records in the server process. `false` records no journal.
1919
1901
  * Requires Nitro-hosted Agents. Netlify and `runtime: "deno"` require `false` and journals on each Agent Definition.
1920
1902
  */
@@ -1981,10 +1963,11 @@ interface ViteHubOptions {
1981
1963
  */
1982
1964
  redirects?: RedirectsOptions;
1983
1965
  /**
1984
- * Trust the `X-Forwarded-Proto` header of a proxy that ends TLS, such as Caddy or nginx. When its first value is
1985
- * `https` and the server sees `http:`, the request URL becomes `https:` before any middleware or route runs, so URLs
1986
- * built from the request start with `https://`. It never reads `X-Forwarded-Host`. Turn it on only when a proxy that
1987
- * you run sets the header. Default: `false`.
1966
+ * Trust `X-Forwarded-Proto` from a proxy that ends TLS, such as Caddy or nginx. When
1967
+ * the first `X-Forwarded-Proto` value is `https` and the server sees `http:`, the request URL becomes `https:` before
1968
+ * any middleware or route runs, so URLs built from the request start with `https://`. On the Node host only, the client
1969
+ * address becomes the last `X-Forwarded-For` value, which the proxy adds. It never reads `X-Forwarded-Host`.
1970
+ * Turn it on only when a proxy that you run sets the trusted headers. Default: `false`.
1988
1971
  */
1989
1972
  trustProxy?: boolean;
1990
1973
  /**
@@ -2003,6 +1986,13 @@ interface ViteHubOptions {
2003
1986
  * to a larger request body. It adds no Content Security Policy.
2004
1987
  */
2005
1988
  security?: SecurityOptions;
1989
+ /**
1990
+ * Pages that boot a WebContainer, such as `{ routes: ["/playground/**"] }`. They send the cross-origin isolation
1991
+ * headers in `vite dev`, `vite preview`, and built output. In Nuxt, a link into or out of these pages loads a new
1992
+ * document, because the headers come with the document. `/playground` matches that path only. `/playground/**`
1993
+ * matches it and every path below it. Other pages keep their headers. Needs `@vite-hub/web-container`.
1994
+ */
1995
+ webContainer?: WebContainerOptions;
2006
1996
  agent?: boolean | AgentOptions;
2007
1997
  /** `false` turns Auth off. `server/auth.ts` turns it on, and `defineAuth()` in that file holds every Auth option. */
2008
1998
  auth?: boolean;
@@ -2088,7 +2078,8 @@ interface ViteHubOptions {
2088
2078
  * Messages in the source language, translated per request: `{ i18n: { locales: ["en", "es"] } }`. The first locale is
2089
2079
  * the language of the code. Write ``t`Save` `` in templates, and import `t` from `vite-hub/i18n` in scripts and server
2090
2080
  * code. Translations are records in `locales/<locale>/`, and `vitehub i18n status` shows what is missing. Needs
2091
- * Nitro 3: Nuxt 5, or Vite with Nitro 3.
2081
+ * Nitro 3: Nuxt 4.7 or newer with the `nitro` package, Nuxt 5, or Vite with Nitro 3. On Nuxt 4, use i18n without
2082
+ * `i18n.workspace`.
2092
2083
  */
2093
2084
  i18n?: I18nOptions;
2094
2085
  /**
@@ -2139,5 +2130,4 @@ interface ViteHubOptions {
2139
2130
  type ViteHubQueueOptions = QueueOptions;
2140
2131
  /** Sandbox Task options accepted by the framework distribution: the options of `hubSandboxTask()`. */
2141
2132
  type ViteHubSandboxTaskOptions = Exclude<SandboxTaskOptions, false>;
2142
- //#endregion
2143
- export { SameOriginWritesOptions as A, detectHost as B, WorkspaceOptions as C, SystemdOptions as D, ObservabilityOptions as E, HealthOptions as F, DatabaseNuxtIntegrationOptions as I, DatabaseOptions as L, SecurityOptions as M, SeoOptions as N, ConsoleOptions as O, DeployOptions as P, CacheOptions as R, AgentInvocationsDefaultJournal as S, ObservabilityEvlogOptions as T, EmailOptions as _, ViteHubDeviceOptions as a, BlobOptions as b, ViteHubQueueOptions as c, WorkflowOptions as d, ScheduleOptions as f, KVOptions as g, RateLimitOptions as h, EnvOptions$1 as i, SecurityHeaders as j, RedirectsOptions as k, QueueOptions as l, RealtimeOptions as m, CloudflareOptions as n, ViteHubNodeOptions as o, SandboxTaskOptions as p, ConnectionsOptions as r, ViteHubOptions as s, AgentOptions as t, I18nOptions as u, ChannelsOptions as v, LogsOptions as w, AgentInvocationsDefault as x, BrowserOptions as y, ViteHubHost as z };
2133
+ export { RedirectsOptions as A, ViteHubHost as B, ObservabilityEvlogOptions as C, AgentInvocationsDefault as D, ConsoleOptions as E, DeployOptions as F, HealthOptions as I, DatabaseNuxtIntegrationOptions as L, SecurityHeaders as M, SecurityOptions as N, AgentInvocationsDefaultJournal as O, SeoOptions as P, DatabaseOptions as R, LogsOptions as S, SystemdOptions as T, detectHost as V, KVOptions as _, ViteHubDeviceOptions as a, BrowserOptions as b, ViteHubQueueOptions as c, WorkflowOptions as d, WebContainerOptions as f, RateLimitOptions as g, RealtimeOptions as h, EnvOptions$1 as i, SameOriginWritesOptions as j, WorkspaceOptions as k, QueueOptions as l, SandboxTaskOptions as m, CloudflareOptions as n, ViteHubNodeOptions as o, ScheduleOptions as p, ConnectionsOptions as r, ViteHubOptions as s, AgentOptions as t, I18nOptions as u, EmailOptions as v, ObservabilityOptions as w, BlobOptions as x, ChannelsOptions as y, CacheOptions as z };