vite-hub 0.1.0 → 0.4.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 (1505) hide show
  1. package/README.md +177 -55
  2. package/dist/_internal/auth/internal/server.d.ts +1 -0
  3. package/dist/_internal/auth/internal/server.js +2 -0
  4. package/dist/_internal/auth/runtime/server.d.ts +1 -0
  5. package/dist/_internal/auth/runtime/server.js +2 -0
  6. package/dist/_internal/runtime/browser-errors.d.ts +22 -0
  7. package/dist/_internal/runtime/browser-errors.js +156 -0
  8. package/dist/_internal/runtime/internal/h3.d.ts +1 -0
  9. package/dist/_internal/runtime/internal/h3.js +2 -0
  10. package/dist/_internal/runtime/redirects.d.ts +37 -0
  11. package/dist/_internal/runtime/redirects.js +71 -0
  12. package/dist/_internal/runtime/request-policy.d.ts +43 -0
  13. package/dist/_internal/runtime/request-policy.js +62 -0
  14. package/dist/_internal/runtime/security.d.ts +27 -0
  15. package/dist/_internal/runtime/security.js +104 -0
  16. package/dist/access-BDST818p.js +439 -0
  17. package/dist/access-policy-CGXhO3Ee.d.ts +109 -0
  18. package/dist/access-policy-DjBKLo3c.js +73 -0
  19. package/dist/account-BnOAU055.d.ts +195 -0
  20. package/dist/agent/capabilities.d.ts +1 -24
  21. package/dist/agent/capabilities.js +1 -56
  22. package/dist/agent/invocations/database.d.ts +1 -2
  23. package/dist/agent/invocations/database.js +2 -91
  24. package/dist/agent/invocations/drizzle.d.ts +1 -0
  25. package/dist/agent/invocations/drizzle.js +2 -0
  26. package/dist/agent/invocations.d.ts +1 -0
  27. package/dist/agent/invocations.js +2 -0
  28. package/dist/agent/page.d.ts +1 -0
  29. package/dist/agent/page.js +2 -0
  30. package/dist/agent/process.d.ts +1 -0
  31. package/dist/agent/process.js +2 -0
  32. package/dist/agent/state.d.ts +1 -0
  33. package/dist/agent/state.js +2 -0
  34. package/dist/agent/ui/vue.d.ts +1 -0
  35. package/dist/agent/ui/vue.js +2 -0
  36. package/dist/agent/ui.d.ts +1 -0
  37. package/dist/agent/ui.js +2 -0
  38. package/dist/agent-invocations.post-CcPvfA0n.js +423 -0
  39. package/dist/agent.d.ts +1 -12
  40. package/dist/agent.js +1 -49
  41. package/dist/agents-BDeazoAW.js +123 -0
  42. package/dist/agents-BoWau_ei.js +2 -0
  43. package/dist/agents-C94A4N9u.d.ts +29 -0
  44. package/dist/auth/abilities.d.ts +1 -0
  45. package/dist/auth/abilities.js +2 -0
  46. package/dist/auth/database.d.ts +1 -0
  47. package/dist/auth/database.js +2 -0
  48. package/dist/auth/forward.d.ts +1 -0
  49. package/dist/auth/forward.js +2 -0
  50. package/dist/auth/mcp.d.ts +1 -0
  51. package/dist/auth/mcp.js +2 -0
  52. package/dist/auth/schema.d.ts +1 -0
  53. package/dist/auth/schema.js +2 -0
  54. package/dist/auth-BZOy7obk.d.ts +120 -0
  55. package/dist/auth-operations-GcQk0O0X.js +34 -0
  56. package/dist/auth-types-CyqhWvYF.d.ts +90 -0
  57. package/dist/bin.js +114 -128
  58. package/dist/blob/nuxt-image.d.ts +3 -0
  59. package/dist/blob/nuxt-image.js +3 -0
  60. package/dist/blob-CFLwMsjH.d.ts +9 -0
  61. package/dist/blob-CpvlM8jp.js +26 -0
  62. package/dist/bundle.d.ts +1 -0
  63. package/dist/bundle.js +2 -0
  64. package/dist/cache/operations.d.ts +5 -0
  65. package/dist/cache/operations.js +51 -0
  66. package/dist/cache.d.ts +28 -0
  67. package/dist/cache.js +219 -0
  68. package/dist/choices/vue.d.ts +1 -0
  69. package/dist/choices/vue.js +2 -0
  70. package/dist/choices.d.ts +1 -0
  71. package/dist/choices.js +2 -0
  72. package/dist/cli-config-UAGTmuFa.js +2 -0
  73. package/dist/cli-config-wxKjF2Y0.js +90 -0
  74. package/dist/cloudflare-env-lookup-DKXdr4P_.js +16 -0
  75. package/dist/cloudflare-prerender.mjs +3 -0
  76. package/dist/cloudflare-workers.d.ts +12 -0
  77. package/dist/cms/access.d.ts +1 -0
  78. package/dist/cms/access.js +2 -0
  79. package/dist/cms/vite.d.ts +1 -0
  80. package/dist/cms/vite.js +2 -0
  81. package/dist/cms.d.ts +3 -0
  82. package/dist/cms.js +3 -0
  83. package/dist/comments/testing.d.ts +1 -0
  84. package/dist/comments/testing.js +2 -0
  85. package/dist/connections/operations.d.ts +1 -0
  86. package/dist/connections/operations.js +2 -0
  87. package/dist/console/auth-types.d.ts +2 -0
  88. package/dist/console/auth-types.js +1 -0
  89. package/dist/console/auth.d.ts +6 -2
  90. package/dist/console/auth.js +9 -2
  91. package/dist/console/runtime/auth-operations.d.ts +35 -0
  92. package/dist/console/runtime/auth-operations.js +2 -0
  93. package/dist/console/runtime/client/account-views.d.ts +17 -0
  94. package/dist/console/runtime/client/account-views.js +8 -0
  95. package/dist/console/runtime/client/account.d.ts +2 -0
  96. package/dist/console/runtime/client/account.js +1125 -0
  97. package/dist/console/runtime/client/add-primitive.ts +59 -0
  98. package/dist/console/runtime/client/app-identity.ts +44 -0
  99. package/dist/console/runtime/client/auth-management.ts +21 -35
  100. package/dist/console/runtime/client/blob-media.d.ts +1 -1
  101. package/dist/console/runtime/client/blob-media.js +4 -4
  102. package/dist/console/runtime/client/command-search.ts +103 -0
  103. package/dist/console/runtime/client/comment-thread.d.ts +33 -0
  104. package/dist/console/runtime/client/comment-thread.js +62 -0
  105. package/dist/console/runtime/client/content-heads.d.ts +45 -0
  106. package/dist/console/runtime/client/content-heads.js +58 -0
  107. package/dist/console/runtime/client/document-cache.ts +13 -0
  108. package/dist/console/runtime/client/documents.d.ts +3 -430
  109. package/dist/console/runtime/client/documents.js +2 -501
  110. package/dist/console/runtime/client/editor.d.ts +9 -8
  111. package/dist/console/runtime/client/editor.js +35 -14
  112. package/dist/console/runtime/client/env-status.d.ts +31 -2
  113. package/dist/console/runtime/client/env-status.js +59 -1
  114. package/dist/console/runtime/client/format.d.ts +59 -0
  115. package/dist/console/runtime/client/format.js +2 -109
  116. package/dist/console/runtime/client/format.ts +267 -0
  117. package/dist/console/runtime/client/highlight-languages.ts +27 -0
  118. package/dist/console/runtime/client/invocation.js +4 -4
  119. package/dist/console/runtime/client/live.d.ts +3 -5
  120. package/dist/console/runtime/client/live.js +1 -8
  121. package/dist/console/runtime/client/mcp-client.d.ts +58 -0
  122. package/dist/console/runtime/client/mcp-client.js +125 -0
  123. package/dist/console/runtime/client/media-library.d.ts +2 -207
  124. package/dist/console/runtime/client/media-library.js +2 -243
  125. package/dist/console/runtime/client/media-uploads.d.ts +1 -1
  126. package/dist/console/runtime/client/media-uploads.js +1 -1
  127. package/dist/console/runtime/client/media.d.ts +2 -73
  128. package/dist/console/runtime/client/operation-view.d.ts +31 -4
  129. package/dist/console/runtime/client/operation-view.js +85 -9
  130. package/dist/console/runtime/client/presence.d.ts +1 -5
  131. package/dist/console/runtime/client/presence.js +1 -15
  132. package/dist/console/runtime/client/preview.d.ts +8 -0
  133. package/dist/console/runtime/client/preview.js +11 -1
  134. package/dist/console/runtime/client/problem.d.ts +1 -1
  135. package/dist/console/runtime/client/problem.js +3 -3
  136. package/dist/console/runtime/client/project-link.d.ts +2 -0
  137. package/dist/console/runtime/client/project-link.js +2 -0
  138. package/dist/console/runtime/client/project-session.d.ts +221 -0
  139. package/dist/console/runtime/client/project-session.js +723 -0
  140. package/dist/console/runtime/client/project.d.ts +48 -0
  141. package/dist/console/runtime/client/project.js +2 -0
  142. package/dist/console/runtime/client/projects.d.ts +2 -0
  143. package/dist/console/runtime/client/projects.js +2 -0
  144. package/dist/console/runtime/client/publish.d.ts +1 -1
  145. package/dist/console/runtime/client/rate-limit.js +2 -2
  146. package/dist/console/runtime/client/read-only.d.ts +1 -1
  147. package/dist/console/runtime/client/read-only.js +1 -1
  148. package/dist/console/runtime/client/request.d.ts +6 -12
  149. package/dist/console/runtime/client/request.js +2 -471
  150. package/dist/console/runtime/client/route-query.d.ts +60 -0
  151. package/dist/console/runtime/client/route-query.js +2 -0
  152. package/dist/console/runtime/client/schedule-run.js +2 -2
  153. package/dist/console/runtime/client/sections.d.ts +2 -26
  154. package/dist/console/runtime/client/sections.js +2 -84
  155. package/dist/console/runtime/client/sidebar.ts +84 -0
  156. package/dist/console/runtime/client/site-access.d.ts +32 -0
  157. package/dist/console/runtime/client/site-access.js +932 -0
  158. package/dist/console/runtime/client/stored.d.ts +33 -0
  159. package/dist/console/runtime/client/stored.js +2 -0
  160. package/dist/console/runtime/client/ticket.d.ts +2 -0
  161. package/dist/console/runtime/client/ticket.js +2 -0
  162. package/dist/console/runtime/client/workflow.js +3 -3
  163. package/dist/console/runtime/components/console-account-api-keys.vue +195 -0
  164. package/dist/console/runtime/components/console-account-env.vue +286 -0
  165. package/dist/console/runtime/components/console-account-home.vue +427 -0
  166. package/dist/console/runtime/components/console-account-link.vue +68 -0
  167. package/dist/console/runtime/components/console-account-menu.vue +126 -0
  168. package/dist/console/runtime/components/console-account-rename.vue +67 -0
  169. package/dist/console/runtime/components/console-account-settings.vue +184 -0
  170. package/dist/console/runtime/components/console-account-setup.vue +82 -0
  171. package/dist/console/runtime/components/console-account-shell.vue +339 -0
  172. package/dist/console/runtime/components/console-account-sign-in.vue +152 -0
  173. package/dist/console/runtime/components/console-account-snippet.vue +89 -0
  174. package/dist/console/runtime/components/console-account-team-settings.vue +131 -0
  175. package/dist/console/runtime/components/console-account-team.vue +199 -0
  176. package/dist/console/runtime/components/console-account-unlink.vue +52 -0
  177. package/dist/console/runtime/components/console-activity-feed.vue +69 -0
  178. package/dist/console/runtime/components/console-add-primitive.vue +176 -0
  179. package/dist/console/runtime/components/console-agent-session.vue +301 -0
  180. package/dist/console/runtime/components/console-app-crumb.vue +52 -0
  181. package/dist/console/runtime/components/console-app-logo.vue +44 -0
  182. package/dist/console/runtime/components/console-app-settings.vue +271 -0
  183. package/dist/console/runtime/components/console-app.vue +255 -335
  184. package/dist/console/runtime/components/console-auth-action.vue +15 -13
  185. package/dist/console/runtime/components/console-auth-activity.vue +20 -24
  186. package/dist/console/runtime/components/console-auth-chart.vue +24 -21
  187. package/dist/console/runtime/components/console-auth-detail.vue +101 -128
  188. package/dist/console/runtime/components/console-auth-event-list.vue +2 -2
  189. package/dist/console/runtime/components/console-auth-event-setup.vue +4 -4
  190. package/dist/console/runtime/components/console-auth-overview.vue +21 -33
  191. package/dist/console/runtime/components/console-auth-user-events.vue +12 -15
  192. package/dist/console/runtime/components/console-auth.vue +118 -116
  193. package/dist/console/runtime/components/console-blob-detail.vue +16 -26
  194. package/dist/console/runtime/components/console-blob.vue +89 -34
  195. package/dist/console/runtime/components/console-cache.vue +358 -0
  196. package/dist/console/runtime/components/console-code-text.vue +18 -0
  197. package/dist/console/runtime/components/console-comark-component.vue +54 -16
  198. package/dist/console/runtime/components/console-comment-thread.vue +320 -0
  199. package/dist/console/runtime/components/console-confirm.vue +46 -0
  200. package/dist/console/runtime/components/console-connection-state.vue +23 -26
  201. package/dist/console/runtime/components/console-content-heads.vue +72 -0
  202. package/dist/console/runtime/components/console-database.vue +77 -80
  203. package/dist/console/runtime/components/console-definitions.vue +163 -44
  204. package/dist/console/runtime/components/console-document-dashboard.vue +124 -135
  205. package/dist/console/runtime/components/console-document-diff.vue +2 -2
  206. package/dist/console/runtime/components/console-document-editor.vue +404 -203
  207. package/dist/console/runtime/components/console-document-history.vue +17 -17
  208. package/dist/console/runtime/components/console-document-list.vue +51 -53
  209. package/dist/console/runtime/components/console-document-preview.vue +44 -57
  210. package/dist/console/runtime/components/console-document-settings.vue +24 -26
  211. package/dist/console/runtime/components/console-documents.vue +105 -40
  212. package/dist/console/runtime/components/console-env-details.vue +8 -27
  213. package/dist/console/runtime/components/console-env.vue +109 -88
  214. package/dist/console/runtime/components/console-facts.ts +13 -0
  215. package/dist/console/runtime/components/console-frame.vue +26 -68
  216. package/dist/console/runtime/components/console-home.vue +145 -121
  217. package/dist/console/runtime/components/console-icon.vue +19 -0
  218. package/dist/console/runtime/components/console-invocation-composer.vue +4 -8
  219. package/dist/console/runtime/components/console-kv.vue +41 -47
  220. package/dist/console/runtime/components/console-lazy-views.ts +2 -0
  221. package/dist/console/runtime/components/console-loading.vue +5 -4
  222. package/dist/console/runtime/components/console-markdown-editor.vue +78 -99
  223. package/dist/console/runtime/components/console-mcp-callback.vue +76 -0
  224. package/dist/console/runtime/components/console-mcp-client.vue +255 -0
  225. package/dist/console/runtime/components/console-mcp-connect.vue +162 -0
  226. package/dist/console/runtime/components/console-mcp-connection.vue +219 -0
  227. package/dist/console/runtime/components/console-mcp-content.vue +157 -0
  228. package/dist/console/runtime/components/console-mcp-items.vue +346 -0
  229. package/dist/console/runtime/components/console-media-browser.vue +108 -138
  230. package/dist/console/runtime/components/console-media-crops.vue +13 -12
  231. package/dist/console/runtime/components/console-media-detail.vue +35 -39
  232. package/dist/console/runtime/components/console-media-dialog.vue +3 -3
  233. package/dist/console/runtime/components/console-media-field.vue +12 -36
  234. package/dist/console/runtime/components/console-media-focal.vue +15 -14
  235. package/dist/console/runtime/components/console-media-library.vue +29 -22
  236. package/dist/console/runtime/components/console-media-move.vue +9 -8
  237. package/dist/console/runtime/components/console-media-picker.vue +35 -6
  238. package/dist/console/runtime/components/console-media-uploads.vue +7 -4
  239. package/dist/console/runtime/components/console-operation-view.vue +258 -45
  240. package/dist/console/runtime/components/console-page-changes.vue +207 -0
  241. package/dist/console/runtime/components/console-page-header.vue +39 -7
  242. package/dist/console/runtime/components/console-page-toolbar.vue +16 -3
  243. package/dist/console/runtime/components/console-presence-avatars.vue +4 -3
  244. package/dist/console/runtime/components/console-project-switcher.vue +212 -0
  245. package/dist/console/runtime/components/console-property-list.vue +16 -11
  246. package/dist/console/runtime/components/console-property-row.vue +2 -1
  247. package/dist/console/runtime/components/console-rail.vue +122 -277
  248. package/dist/console/runtime/components/console-rate-limit.vue +32 -24
  249. package/dist/console/runtime/components/console-relative-time.vue +1 -1
  250. package/dist/console/runtime/components/console-schema-date-input.vue +88 -0
  251. package/dist/console/runtime/components/console-schema-field.vue +35 -89
  252. package/dist/console/runtime/components/console-schema-form.vue +6 -7
  253. package/dist/console/runtime/components/console-schema-list.vue +8 -9
  254. package/dist/console/runtime/components/console-search-palette.vue +1051 -0
  255. package/dist/console/runtime/components/console-search.vue +17 -840
  256. package/dist/console/runtime/components/console-section-icon.vue +7 -10
  257. package/dist/console/runtime/components/console-section.vue +68 -0
  258. package/dist/console/runtime/components/console-seo-panel.vue +16 -16
  259. package/dist/console/runtime/components/console-session-actions.vue +1 -3
  260. package/dist/console/runtime/components/console-session-bootstrap.ts +0 -28
  261. package/dist/console/runtime/components/console-session-cancel.vue +0 -1
  262. package/dist/console/runtime/components/console-session-code-preview.vue +10 -26
  263. package/dist/console/runtime/components/console-session-copy-link.vue +11 -0
  264. package/dist/console/runtime/components/console-session-inspector.vue +212 -92
  265. package/dist/console/runtime/components/console-session-loading.vue +12 -15
  266. package/dist/console/runtime/components/console-session-navbar.vue +9 -39
  267. package/dist/console/runtime/components/console-session-trace.vue +25 -77
  268. package/dist/console/runtime/components/console-session.css +208 -851
  269. package/dist/console/runtime/components/console-settings-card.vue +76 -0
  270. package/dist/console/runtime/components/console-settings-value.vue +46 -0
  271. package/dist/console/runtime/components/console-settings.vue +100 -0
  272. package/dist/console/runtime/components/console-setup-hint.vue +3 -8
  273. package/dist/console/runtime/components/console-sidebar-item.vue +62 -0
  274. package/dist/console/runtime/components/console-sidebar-trigger.vue +34 -0
  275. package/dist/console/runtime/components/console-sidebar.vue +352 -0
  276. package/dist/console/runtime/components/console-site.vue +370 -0
  277. package/dist/console/runtime/components/console-skill-file.vue +73 -0
  278. package/dist/console/runtime/components/console-skill-tree.vue +62 -0
  279. package/dist/console/runtime/components/console-skills.vue +193 -0
  280. package/dist/console/runtime/components/console-stat-grid.vue +64 -0
  281. package/dist/console/runtime/components/console-state.vue +60 -75
  282. package/dist/console/runtime/components/console-toaster.vue +63 -54
  283. package/dist/console/runtime/components/console-usage-chart.vue +14 -12
  284. package/dist/console/runtime/components/console-usage-model-detail.vue +12 -18
  285. package/dist/console/runtime/components/console-usage-model.ts +20 -12
  286. package/dist/console/runtime/components/console-usage-share-bar.vue +5 -5
  287. package/dist/console/runtime/components/console-usage.vue +547 -252
  288. package/dist/console/runtime/components/console-user-menu.vue +42 -0
  289. package/dist/console/runtime/components/console-value.vue +5 -4
  290. package/dist/console/runtime/components/console-workflow-actions.vue +32 -41
  291. package/dist/console/runtime/components/console-workspace-browser.vue +507 -0
  292. package/dist/console/runtime/components/console-workspace-history.vue +23 -24
  293. package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +13 -14
  294. package/dist/console/runtime/components/invocation/agent-invocation-list.ts +22 -38
  295. package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +4 -12
  296. package/dist/console/runtime/components/invocation/agent-invocation.ts +229 -193
  297. package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
  298. package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +192 -55
  299. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +25 -0
  300. package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +20 -7
  301. package/dist/console/runtime/components/invocation/internal/invocation-page-changes.ts +64 -0
  302. package/dist/console/runtime/components/invocation/internal/payload-text.ts +3 -5
  303. package/dist/console/runtime/components/invocation/invocation.css +485 -428
  304. package/dist/console/runtime/components/invocation/types.ts +9 -1
  305. package/dist/console/runtime/console-route.js +1 -48
  306. package/dist/console/runtime/definitions.d.ts +2 -2
  307. package/dist/console/runtime/definitions.js +1 -293
  308. package/dist/console/runtime/diagnostics.ts +287 -0
  309. package/dist/console/runtime/mcp-client.d.ts +2 -0
  310. package/dist/console/runtime/mcp-client.js +2 -0
  311. package/dist/console/runtime/page/loader.js +138 -18
  312. package/dist/console/runtime/page-tool/page-tool.js +10 -0
  313. package/dist/console/runtime/public/skills/index.json +1 -0
  314. package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -39
  315. package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +1 -1
  316. package/dist/console/runtime/public/skills/vitehub/references/bundle.md +57 -0
  317. package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +1 -1
  318. package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +4 -3
  319. package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +2 -2
  320. package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +11 -3
  321. package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +1 -3
  322. package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +3 -3
  323. package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +1 -1
  324. package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +2 -2
  325. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +3 -5
  326. package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +0 -2
  327. package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +1 -1
  328. package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +4 -2
  329. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +0 -2
  330. package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +2 -2
  331. package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +2 -2
  332. package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
  333. package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +0 -2
  334. package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +1 -3
  335. package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +4 -4
  336. package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +0 -2
  337. package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +1 -3
  338. package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +0 -2
  339. package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +0 -2
  340. package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +0 -2
  341. package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +1 -3
  342. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +20 -0
  343. package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +2 -0
  344. package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +10 -1
  345. package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +1 -1
  346. package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +1 -1
  347. package/dist/console/runtime/rpc.d.ts +2 -36
  348. package/dist/console/runtime/rpc.js +1 -3
  349. package/dist/console/runtime/sections.d.ts +2 -2
  350. package/dist/console/runtime/sections.js +2 -351
  351. package/dist/console/runtime/server/access-policy.d.ts +2 -0
  352. package/dist/console/runtime/server/access-policy.js +2 -0
  353. package/dist/console/runtime/server/agents.get.d.ts +4 -7
  354. package/dist/console/runtime/server/agents.get.js +6 -9
  355. package/dist/console/runtime/server/auth.d.ts +2 -0
  356. package/dist/console/runtime/server/auth.js +81 -0
  357. package/dist/console/runtime/server/blob.d.ts +2 -2
  358. package/dist/console/runtime/server/blob.js +2 -19
  359. package/dist/console/runtime/server/channel-replay.d.ts +20 -8
  360. package/dist/console/runtime/server/channel-replay.js +27 -55
  361. package/dist/console/runtime/server/database.d.ts +1 -1
  362. package/dist/console/runtime/server/database.get.d.ts +19 -10
  363. package/dist/console/runtime/server/database.get.js +40 -34
  364. package/dist/console/runtime/server/database.js +1 -17
  365. package/dist/console/runtime/server/definitions.d.ts +1 -1
  366. package/dist/console/runtime/server/definitions.get.d.ts +8 -8
  367. package/dist/console/runtime/server/definitions.get.js +37 -23
  368. package/dist/console/runtime/server/definitions.js +1 -96
  369. package/dist/console/runtime/server/development.d.ts +2 -0
  370. package/dist/console/runtime/server/development.js +2 -0
  371. package/dist/console/runtime/server/documents.d.ts +2 -2
  372. package/dist/console/runtime/server/documents.js +3 -111
  373. package/dist/console/runtime/server/env.d.ts +3 -15
  374. package/dist/console/runtime/server/env.get.d.ts +5 -5
  375. package/dist/console/runtime/server/env.get.js +9 -22
  376. package/dist/console/runtime/server/env.js +2 -42
  377. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +5 -6
  378. package/dist/console/runtime/server/invocation-capabilities.get.js +8 -13
  379. package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -37
  380. package/dist/console/runtime/server/invocation-workspace.get.js +35 -201
  381. package/dist/console/runtime/server/invocation.get.d.ts +2 -2
  382. package/dist/console/runtime/server/invocation.get.js +35 -27
  383. package/dist/console/runtime/server/invocations.get.d.ts +12 -6
  384. package/dist/console/runtime/server/invocations.get.js +45 -60
  385. package/dist/console/runtime/server/logs.get.d.ts +8 -5
  386. package/dist/console/runtime/server/logs.get.js +25 -14
  387. package/dist/console/runtime/server/mcp-client-operations.d.ts +5 -0
  388. package/dist/console/runtime/server/mcp-client-operations.js +139 -0
  389. package/dist/console/runtime/server/operation-contributions.d.ts +2 -0
  390. package/dist/console/runtime/server/operation-contributions.js +2 -0
  391. package/dist/console/runtime/server/page-auth.d.ts +18 -0
  392. package/dist/console/runtime/server/page-auth.js +44 -0
  393. package/dist/console/runtime/server/page-session.d.ts +1 -1
  394. package/dist/console/runtime/server/page-session.js +1 -1
  395. package/dist/console/runtime/server/page-tool.d.ts +2 -0
  396. package/dist/console/runtime/server/page-tool.js +105 -0
  397. package/dist/console/runtime/server/rpc.d.ts +16 -11
  398. package/dist/console/runtime/server/rpc.js +120 -113
  399. package/dist/console/runtime/server/runtime.d.ts +2 -0
  400. package/dist/console/runtime/server/runtime.js +2 -0
  401. package/dist/console/runtime/server/search.get.d.ts +1 -6
  402. package/dist/console/runtime/server/search.get.js +3 -9
  403. package/dist/console/runtime/server/sections.d.ts +6 -4
  404. package/dist/console/runtime/server/sections.get.d.ts +2 -22
  405. package/dist/console/runtime/server/sections.get.js +37 -13
  406. package/dist/console/runtime/server/sections.js +7 -4
  407. package/dist/console/runtime/server/setup.d.ts +5 -0
  408. package/dist/console/runtime/server/setup.js +5 -0
  409. package/dist/console/runtime/server/site-entry.d.ts +24 -0
  410. package/dist/console/runtime/server/site-entry.js +145 -0
  411. package/dist/console/runtime/server/site-session.d.ts +89 -0
  412. package/dist/console/runtime/server/site-session.js +2 -0
  413. package/dist/console/runtime/server/status.get.d.ts +7 -4
  414. package/dist/console/runtime/server/status.get.js +12 -22
  415. package/dist/console/runtime/server/tickets.d.ts +2 -0
  416. package/dist/console/runtime/server/tickets.js +2 -0
  417. package/dist/console/runtime/server/usage.get.d.ts +7 -4
  418. package/dist/console/runtime/server/usage.get.js +16 -23
  419. package/dist/console/runtime/server/workspace-files.get.d.ts +12 -0
  420. package/dist/console/runtime/server/workspace-files.get.js +55 -0
  421. package/dist/console/runtime/site-access.d.ts +2 -0
  422. package/dist/console/runtime/site-access.js +2 -0
  423. package/dist/console/runtime/skills.d.ts +18 -0
  424. package/dist/console/runtime/skills.js +17 -0
  425. package/dist/console/server.d.ts +20 -9
  426. package/dist/console/server.js +9 -34
  427. package/dist/console/ui.d.ts +16 -0
  428. package/dist/console/ui.js +487 -368
  429. package/dist/console-lazy-views-DXnIkdyd.js +2 -0
  430. package/dist/console-route-CBuqZ4wO.js +49 -0
  431. package/dist/console.d.ts +1 -1
  432. package/dist/content/collections.d.ts +1 -0
  433. package/dist/content/collections.js +2 -0
  434. package/dist/content/markdown.d.ts +1 -0
  435. package/dist/content/markdown.js +2 -0
  436. package/dist/content/preview.d.ts +1 -0
  437. package/dist/content/preview.js +2 -0
  438. package/dist/content/sqlite.d.ts +1 -0
  439. package/dist/content/sqlite.js +2 -0
  440. package/dist/content.d.ts +1 -2
  441. package/dist/content.js +0 -1
  442. package/dist/database-BdOBjPkS.js +17 -0
  443. package/dist/database-DyPVMjp_.d.ts +6 -0
  444. package/dist/definitions-BW6SvmMM.js +337 -0
  445. package/dist/definitions-CNq_Shkh.js +98 -0
  446. package/dist/definitions-DB4LbZ7T.d.ts +245 -0
  447. package/dist/definitions-Dbgxfz3I.d.ts +19 -0
  448. package/dist/dev-peer-am78OsHH.js +472 -0
  449. package/dist/development-W5EwONyL.d.ts +12 -0
  450. package/dist/development-zLxOp-AO.js +28 -0
  451. package/dist/device/vue.d.ts +1 -0
  452. package/dist/device/vue.js +2 -0
  453. package/dist/device.d.ts +1 -0
  454. package/dist/device.js +2 -0
  455. package/dist/diagnostics-9U_fYxMy.js +79 -0
  456. package/dist/diagnostics-CjGiniKb.d.ts +11 -0
  457. package/dist/docs/assistant.d.ts +1 -0
  458. package/dist/docs/assistant.js +2 -0
  459. package/dist/docs/nuxt.d.ts +3 -0
  460. package/dist/docs/nuxt.js +3 -0
  461. package/dist/docs/server.d.ts +1 -0
  462. package/dist/docs/server.js +2 -0
  463. package/dist/docs.d.ts +1 -0
  464. package/dist/docs.js +2 -0
  465. package/dist/doctor.d.ts +7 -2
  466. package/dist/doctor.js +2956 -296
  467. package/dist/documents-BASIRZ91.d.ts +474 -0
  468. package/dist/documents-CboVhYFz.d.ts +87 -0
  469. package/dist/documents-CjJTCrY8.js +136 -0
  470. package/dist/documents-qrHHqlNU.js +547 -0
  471. package/dist/durability/operations.d.ts +5 -0
  472. package/dist/durability/operations.js +28 -0
  473. package/dist/email/test.d.ts +1 -0
  474. package/dist/email/test.js +2 -0
  475. package/dist/entries-Bj-jPs_J.js +142 -0
  476. package/dist/env-Dg1I_DWr.js +11 -0
  477. package/dist/error-diagnostics-Bm3JKYjz.js +638 -0
  478. package/dist/error-diagnostics.ts +636 -151
  479. package/dist/forge.d.ts +1 -0
  480. package/dist/forge.js +2 -0
  481. package/dist/format-BOYlanIZ.js +304 -0
  482. package/dist/forms/client.d.ts +1 -0
  483. package/dist/forms/client.js +2 -0
  484. package/dist/forms/database.d.ts +1 -0
  485. package/dist/forms/database.js +2 -0
  486. package/dist/forms/formisch.d.ts +1 -0
  487. package/dist/forms/formisch.js +2 -0
  488. package/dist/forms/operations.d.ts +1 -0
  489. package/dist/forms/operations.js +2 -0
  490. package/dist/forms/runtime.d.ts +1 -0
  491. package/dist/forms/runtime.js +2 -0
  492. package/dist/forms/vue.d.ts +1 -0
  493. package/dist/forms/vue.js +2 -0
  494. package/dist/forms.d.ts +1 -0
  495. package/dist/forms.js +2 -0
  496. package/dist/gateways/ai-sdk.d.ts +1 -0
  497. package/dist/gateways/ai-sdk.js +2 -0
  498. package/dist/host-CkL0jjBq.js +11 -0
  499. package/dist/http-error-Bs6e8_-8.js +30 -0
  500. package/dist/i18n/runtime.d.ts +1 -0
  501. package/dist/i18n/runtime.js +2 -0
  502. package/dist/i18n/server.d.ts +1 -0
  503. package/dist/i18n/server.js +2 -0
  504. package/dist/i18n/vue.d.ts +1 -0
  505. package/dist/i18n/vue.js +2 -0
  506. package/dist/i18n.d.ts +1 -0
  507. package/dist/i18n.js +2 -0
  508. package/dist/index.d.ts +20 -3
  509. package/dist/index.js +43 -2
  510. package/dist/inspect-CDw7e0vK.js +127 -0
  511. package/dist/internal/agent-invocations-libsql.d.ts +2 -0
  512. package/dist/internal/agent-invocations-libsql.js +2 -0
  513. package/dist/internal/disabled-redis-driver.d.ts +3 -0
  514. package/dist/internal/disabled-redis-driver.js +7 -0
  515. package/dist/internal/disabled-upstash-driver.d.ts +3 -0
  516. package/dist/internal/disabled-upstash-driver.js +7 -0
  517. package/dist/internal/test-loader.d.ts +8 -0
  518. package/dist/internal/test-loader.js +75 -0
  519. package/dist/internal/test-server.d.ts +1 -0
  520. package/dist/internal/test-server.js +84 -0
  521. package/dist/internal-BreyUsQ6.js +31 -0
  522. package/dist/internal-CO4OqqaS.d.ts +59 -0
  523. package/dist/invariant-DolT9EEx.js +22 -0
  524. package/dist/invocation-page-undo-DIZ-s3xT.js +54 -0
  525. package/dist/invocations-CK_-G540.js +86 -0
  526. package/dist/limits-BUlwWYQE.js +34 -0
  527. package/dist/logs/host.d.ts +1 -1
  528. package/dist/logs/host.js +1 -15
  529. package/dist/logs/memory.d.ts +2 -18
  530. package/dist/logs/memory.js +1 -84
  531. package/dist/logs/source.d.ts +2 -57
  532. package/dist/logs/source.js +2 -57
  533. package/dist/logs.d.ts +3 -4
  534. package/dist/logs.js +3 -4
  535. package/dist/mcp-client-By4zk0vU.js +1024 -0
  536. package/dist/mcp-client-CTbTbn7d.js +10 -0
  537. package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
  538. package/dist/mcp.d.ts +1 -0
  539. package/dist/mcp.js +2 -0
  540. package/dist/media-BHpQ-4jw.js +478 -0
  541. package/dist/media-library-D9ThbXqs.d.ts +212 -0
  542. package/dist/media-library-NaOMBKWS.js +279 -0
  543. package/dist/media-uKX4Wy-c.d.ts +74 -0
  544. package/dist/memory-2bbl4hcV.d.ts +19 -0
  545. package/dist/memory-DTmq-Z6x.js +86 -0
  546. package/dist/nuxt-server-imports-DH60Z7LA.js +98 -0
  547. package/dist/nuxt.d.ts +10 -5
  548. package/dist/nuxt.js +751 -583
  549. package/dist/object-D8pRdprI.js +15 -0
  550. package/dist/operation-contributions-BdS0z3tx.js +50 -0
  551. package/dist/operation-contributions-DpkO_iSU.d.ts +21 -0
  552. package/dist/operation-definition-a5keEpCd.js +435 -0
  553. package/dist/operation-registry-BogGwk_I.js +22 -0
  554. package/dist/operation-rpc-DI9txNxK.js +158 -0
  555. package/dist/operations-B0689BG1.d.ts +158 -0
  556. package/dist/operations-CAQmIxGK.js +2 -0
  557. package/dist/operations-CWP9dF3i.js +863 -0
  558. package/dist/operations-EOdyctDc.js +235 -0
  559. package/dist/operations.d.ts +1 -2
  560. package/dist/operations.js +2 -2
  561. package/dist/optional-owners-BNA2OX6z.js +903 -0
  562. package/dist/page/pill.iife.js +70 -0
  563. package/dist/page-tool-CRCK1RHV.d.ts +68 -0
  564. package/dist/page-tools-BkSSBFoi.js +444 -0
  565. package/dist/page-tools-shared-D3fFoEV2.js +122 -0
  566. package/dist/page-tools-sw4I-Nqx.d.ts +23 -0
  567. package/dist/plugins-B-DpgDPB.js +12070 -0
  568. package/dist/plugins-BqAtIEX2.d.ts +2143 -0
  569. package/dist/presets/workspace.d.ts +1 -0
  570. package/dist/presets/workspace.js +1 -0
  571. package/dist/project-C4N_Zcjl.js +30 -0
  572. package/dist/project-CufkVP1u.d.ts +26 -0
  573. package/dist/project-DlWTGB7h.js +57 -0
  574. package/dist/project-link-BuOzBH9f.d.ts +94 -0
  575. package/dist/project-link-D-6UefhA.js +149 -0
  576. package/dist/project-root-v6ba4tn7.js +12 -0
  577. package/dist/projects-CAcXztf4.js +154 -0
  578. package/dist/projects-Ddvl9EJp.d.ts +66 -0
  579. package/dist/rate-limit/drivers/cloudflare.d.ts +1 -0
  580. package/dist/rate-limit/drivers/cloudflare.js +2 -0
  581. package/dist/rate-limit/drivers/kv.d.ts +1 -0
  582. package/dist/rate-limit/drivers/kv.js +2 -0
  583. package/dist/rate-limit/drivers/memory.d.ts +1 -0
  584. package/dist/rate-limit/drivers/memory.js +2 -0
  585. package/dist/realtime/agent.d.ts +1 -0
  586. package/dist/realtime/agent.js +2 -0
  587. package/dist/realtime/bus.d.ts +1 -0
  588. package/dist/realtime/bus.js +2 -0
  589. package/dist/realtime/client.d.ts +1 -0
  590. package/dist/realtime/client.js +2 -0
  591. package/dist/registry-CDKLACCZ.js +16 -0
  592. package/dist/registry-zw6aE2N9.js +18 -0
  593. package/dist/request-D7h3SQ92.d.ts +21 -0
  594. package/dist/request-DE8w_cSM.js +473 -0
  595. package/dist/request-DbFfYmCu.js +162 -0
  596. package/dist/request-origin-Bq7mDQG9.js +23 -0
  597. package/dist/route-query-CRVWXIrc.js +222 -0
  598. package/dist/rpc-7nlHSv3y.d.ts +37 -0
  599. package/dist/rpc-DIUA61pv.js +4 -0
  600. package/dist/runtime/durability.d.ts +1 -0
  601. package/dist/runtime/durability.js +2 -0
  602. package/dist/runtime-B_btezs1.d.ts +7 -0
  603. package/dist/runtime-DQuHg7OO.js +10 -0
  604. package/dist/runtime-DxfJOfCd.js +25 -0
  605. package/dist/runtime-OsEDfbM9.js +55 -0
  606. package/dist/runtime-YLWfdrtO.js +65 -0
  607. package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
  608. package/dist/scan-module-D_3X08mj.js +2 -0
  609. package/dist/scan-module-Df58L_6T.js +311 -0
  610. package/dist/schedule/os.d.ts +1 -0
  611. package/dist/schedule/os.js +2 -0
  612. package/dist/secret-Dy5uqvq9.js +44 -0
  613. package/dist/sections-BogiCmtz.d.ts +57 -0
  614. package/dist/sections-C83x0slv.js +13 -0
  615. package/dist/sections-CyrXbbkG.d.ts +10 -0
  616. package/dist/sections-Do7X4Nwt.d.ts +158 -0
  617. package/dist/sections-DumoLKQN.js +368 -0
  618. package/dist/sections-et20h8w3.js +122 -0
  619. package/dist/sections.get-COiLcQ0P.d.ts +20 -0
  620. package/dist/seo/runtime.d.ts +64 -0
  621. package/dist/seo/runtime.js +123 -0
  622. package/dist/seo-CtLywyRx.d.ts +24 -0
  623. package/dist/seo.d.ts +2 -0
  624. package/dist/seo.js +17 -0
  625. package/dist/server-BRJE4t-W.js +18 -0
  626. package/dist/setup-C-5nB7aY.js +22 -0
  627. package/dist/setup-ZbA1by7W.d.ts +13 -0
  628. package/dist/site-access-BbJUe5QI.js +2 -0
  629. package/dist/site-access-BmE8HGxs.js +292 -0
  630. package/dist/site-access-BycrwM2v.js +18 -0
  631. package/dist/site-access-DxfdOel1.d.ts +55 -0
  632. package/dist/site-session-odJq1dYa.js +272 -0
  633. package/dist/skills/operations.d.ts +17 -0
  634. package/dist/skills/operations.js +51 -0
  635. package/dist/skills-DdpSMiCI.js +500 -0
  636. package/dist/skills.d.ts +197 -0
  637. package/dist/skills.get-Bl8cBe8u.js +48 -0
  638. package/dist/skills.js +2 -0
  639. package/dist/source/drizzle.d.ts +1 -0
  640. package/dist/source/drizzle.js +2 -0
  641. package/dist/source/vite.d.ts +1 -7
  642. package/dist/source/vite.js +2 -20
  643. package/dist/source-D4wWtoHh.js +60 -0
  644. package/dist/source-S-LChQvw.d.ts +59 -0
  645. package/dist/source.d.ts +1 -2
  646. package/dist/source.js +0 -1
  647. package/dist/stored-Dhv2qsQv.js +40 -0
  648. package/dist/sync/client.d.ts +1 -0
  649. package/dist/sync/client.js +2 -0
  650. package/dist/sync/database.d.ts +1 -0
  651. package/dist/sync/database.js +2 -0
  652. package/dist/sync/operations.d.ts +1 -0
  653. package/dist/sync/operations.js +2 -0
  654. package/dist/sync/runtime.d.ts +1 -0
  655. package/dist/sync/runtime.js +2 -0
  656. package/dist/sync/vue.d.ts +1 -0
  657. package/dist/sync/vue.js +2 -0
  658. package/dist/sync.d.ts +1 -0
  659. package/dist/sync.js +2 -0
  660. package/dist/task/operations.d.ts +22 -0
  661. package/dist/task/operations.js +36 -0
  662. package/dist/test/register.d.ts +1 -0
  663. package/dist/test/register.js +68 -0
  664. package/dist/test.d.ts +175 -0
  665. package/dist/test.js +49 -0
  666. package/dist/ticket-Cudn1dq3.js +31 -0
  667. package/dist/ticket-Pr_8ZtXW.d.ts +14 -0
  668. package/dist/tickets-C_0Fhc00.js +358 -0
  669. package/dist/ui/markdown-editor.d.ts +1 -0
  670. package/dist/ui/markdown-editor.js +2 -0
  671. package/dist/ui/playground.d.ts +1 -0
  672. package/dist/ui/playground.js +2 -0
  673. package/dist/ui/styles.css +2 -2662
  674. package/dist/ui/theme.css +2 -0
  675. package/dist/ui/theme.d.ts +1 -0
  676. package/dist/ui/theme.js +2 -0
  677. package/dist/ui/workspace.d.ts +1 -0
  678. package/dist/ui/workspace.js +2 -0
  679. package/dist/usage-B4taNt4a.js +569 -0
  680. package/dist/usage-index-BsGAFzyq.js +335 -0
  681. package/dist/version-DNmSsk5r.js +1083 -0
  682. package/dist/vite-stage-mmtwQIMA.js +66 -0
  683. package/dist/vue-router-C68IU1jM.d.ts +1914 -0
  684. package/dist/web-container/connect.d.ts +1 -0
  685. package/dist/web-container/connect.js +2 -0
  686. package/dist/web-container/env.d.ts +1 -0
  687. package/dist/web-container/env.js +2 -0
  688. package/dist/web-container/snapshot.d.ts +1 -0
  689. package/dist/web-container/snapshot.js +2 -0
  690. package/dist/web-container.d.ts +1 -0
  691. package/dist/web-container.js +2 -0
  692. package/dist/webhooks/database.d.ts +1 -0
  693. package/dist/webhooks/database.js +2 -0
  694. package/dist/webhooks/operations.d.ts +1 -0
  695. package/dist/webhooks/operations.js +2 -0
  696. package/dist/webhooks/runtime.d.ts +1 -0
  697. package/dist/webhooks/runtime.js +2 -0
  698. package/dist/webhooks.d.ts +1 -0
  699. package/dist/webhooks.js +2 -0
  700. package/dist/workflow/openworkflow.d.ts +1 -0
  701. package/dist/workflow/openworkflow.js +2 -0
  702. package/dist/workspace/checkout.d.ts +1 -0
  703. package/dist/workspace/checkout.js +2 -0
  704. package/dist/workspace/files.d.ts +1 -0
  705. package/dist/workspace/files.js +2 -0
  706. package/dist/workspace/lineage.d.ts +1 -0
  707. package/dist/workspace/lineage.js +2 -0
  708. package/dist/workspace-history-CeVwBB6Q.d.ts +52 -0
  709. package/dist/workspace-history-CraoERnc.js +248 -0
  710. package/package.json +690 -706
  711. package/dist/_internal/agent/cloudflare/state.d.ts +0 -1
  712. package/dist/_internal/agent/cloudflare/state.js +0 -2
  713. package/dist/_internal/agent/cloudflare.d.ts +0 -1
  714. package/dist/_internal/agent/cloudflare.js +0 -2
  715. package/dist/_internal/agent/eve.d.ts +0 -1
  716. package/dist/_internal/agent/eve.js +0 -2
  717. package/dist/_internal/agent/invocations.d.ts +0 -2
  718. package/dist/_internal/agent/invocations.js +0 -88
  719. package/dist/_internal/agent/operations.d.ts +0 -1
  720. package/dist/_internal/agent/operations.js +0 -2
  721. package/dist/_internal/agent/runtime/invocations-dev.d.ts +0 -1
  722. package/dist/_internal/agent/runtime/invocations-dev.js +0 -2
  723. package/dist/_internal/agent/runtime/process.d.ts +0 -1
  724. package/dist/_internal/agent/runtime/process.js +0 -2
  725. package/dist/_internal/agent/runtime/workflow.d.ts +0 -1
  726. package/dist/_internal/agent/runtime/workflow.js +0 -2
  727. package/dist/_internal/agent/server/internal.d.ts +0 -1
  728. package/dist/_internal/agent/server/internal.js +0 -2
  729. package/dist/_internal/agent/server/registry.d.ts +0 -1
  730. package/dist/_internal/agent/server/registry.js +0 -2
  731. package/dist/_internal/agent/server/workspace.d.ts +0 -1
  732. package/dist/_internal/agent/server/workspace.js +0 -2
  733. package/dist/_internal/agent/server.d.ts +0 -1
  734. package/dist/_internal/agent/server.js +0 -2
  735. package/dist/_internal/agent/state/sqlite.d.ts +0 -1
  736. package/dist/_internal/agent/state/sqlite.js +0 -2
  737. package/dist/_internal/agent.d.ts +0 -1
  738. package/dist/_internal/agent.js +0 -2
  739. package/dist/_internal/auth/runtime/console.d.ts +0 -1
  740. package/dist/_internal/auth/runtime/console.js +0 -2
  741. package/dist/_internal/blob/operations.d.ts +0 -1
  742. package/dist/_internal/blob/operations.js +0 -2
  743. package/dist/_internal/blob/runtime/state.d.ts +0 -1
  744. package/dist/_internal/blob/runtime/state.js +0 -2
  745. package/dist/_internal/blob.d.ts +0 -1
  746. package/dist/_internal/blob.js +0 -2
  747. package/dist/_internal/comments/operations.d.ts +0 -1
  748. package/dist/_internal/comments/operations.js +0 -2
  749. package/dist/_internal/comments/runtime/console.d.ts +0 -1
  750. package/dist/_internal/comments/runtime/console.js +0 -2
  751. package/dist/_internal/content/operations.d.ts +0 -1
  752. package/dist/_internal/content/operations.js +0 -2
  753. package/dist/_internal/content/runtime/console.d.ts +0 -1
  754. package/dist/_internal/content/runtime/console.js +0 -2
  755. package/dist/_internal/database/runtime/state.d.ts +0 -5
  756. package/dist/_internal/database/runtime/state.js +0 -7
  757. package/dist/_internal/email/operations.d.ts +0 -1
  758. package/dist/_internal/email/operations.js +0 -2
  759. package/dist/_internal/email/runtime/console.d.ts +0 -1
  760. package/dist/_internal/email/runtime/console.js +0 -2
  761. package/dist/_internal/kv/operations.d.ts +0 -1
  762. package/dist/_internal/kv/operations.js +0 -2
  763. package/dist/_internal/kv/runtime/disabled-upstash.d.ts +0 -3
  764. package/dist/_internal/kv/runtime/disabled-upstash.js +0 -7
  765. package/dist/_internal/kv.d.ts +0 -1
  766. package/dist/_internal/kv.js +0 -2
  767. package/dist/_internal/markdown-template.d.ts +0 -2
  768. package/dist/_internal/markdown-template.js +0 -2
  769. package/dist/_internal/queue/operations.d.ts +0 -1
  770. package/dist/_internal/queue/operations.js +0 -2
  771. package/dist/_internal/rate-limit/operations.d.ts +0 -1
  772. package/dist/_internal/rate-limit/operations.js +0 -2
  773. package/dist/_internal/rate-limit/runtime.d.ts +0 -1
  774. package/dist/_internal/rate-limit/runtime.js +0 -2
  775. package/dist/_internal/sandbox/task/runtime/state.d.ts +0 -1
  776. package/dist/_internal/sandbox/task/runtime/state.js +0 -2
  777. package/dist/_internal/schedule/operations.d.ts +0 -1
  778. package/dist/_internal/schedule/operations.js +0 -2
  779. package/dist/_internal/schedule/runtime/kv.d.ts +0 -1
  780. package/dist/_internal/schedule/runtime/kv.js +0 -2
  781. package/dist/_internal/schedule/runtime/process.d.ts +0 -1
  782. package/dist/_internal/schedule/runtime/process.js +0 -2
  783. package/dist/_internal/schedule/runtime/static.d.ts +0 -1
  784. package/dist/_internal/schedule/runtime/static.js +0 -2
  785. package/dist/_internal/schedule/runtime.d.ts +0 -1
  786. package/dist/_internal/schedule/runtime.js +0 -2
  787. package/dist/_internal/schedule.d.ts +0 -1
  788. package/dist/_internal/schedule.js +0 -2
  789. package/dist/_internal/task/operations.d.ts +0 -5
  790. package/dist/_internal/task/operations.js +0 -2
  791. package/dist/_internal/workflow/operations.d.ts +0 -1
  792. package/dist/_internal/workflow/operations.js +0 -2
  793. package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +0 -1
  794. package/dist/_internal/workflow/runtime/cloudflare-runner.js +0 -2
  795. package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +0 -1
  796. package/dist/_internal/workflow/runtime/cloudflare-vite.js +0 -2
  797. package/dist/_internal/workflow/runtime/execute.d.ts +0 -1
  798. package/dist/_internal/workflow/runtime/execute.js +0 -2
  799. package/dist/_internal/workflow/runtime/state.d.ts +0 -1
  800. package/dist/_internal/workflow/runtime/state.js +0 -2
  801. package/dist/_internal/workflow/runtime/vercel-vite.d.ts +0 -1
  802. package/dist/_internal/workflow/runtime/vercel-vite.js +0 -2
  803. package/dist/_internal/workflow.d.ts +0 -1
  804. package/dist/_internal/workflow.js +0 -2
  805. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.d.ts +0 -1
  806. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js +0 -2
  807. package/dist/_internal/workspace/internal/runtime/hosted.d.ts +0 -1
  808. package/dist/_internal/workspace/internal/runtime/hosted.js +0 -2
  809. package/dist/_internal/workspace/internal/runtime/state.d.ts +0 -1
  810. package/dist/_internal/workspace/internal/runtime/state.js +0 -2
  811. package/dist/_internal/workspace/operations.d.ts +0 -1
  812. package/dist/_internal/workspace/operations.js +0 -2
  813. package/dist/_internal/workspace/runtime.d.ts +0 -1
  814. package/dist/_internal/workspace/runtime.js +0 -2
  815. package/dist/_internal/workspace.d.ts +0 -1
  816. package/dist/_internal/workspace.js +0 -2
  817. package/dist/access-BhTe9yuV.js +0 -516
  818. package/dist/access-CBqnsYdj.d.ts +0 -130
  819. package/dist/agent/invocations/d1.d.ts +0 -1
  820. package/dist/agent/invocations/d1.js +0 -2
  821. package/dist/agent/invocations/sqlite.d.ts +0 -1
  822. package/dist/agent/invocations/sqlite.js +0 -2
  823. package/dist/agent/process-host.d.ts +0 -1
  824. package/dist/agent/process-host.js +0 -2
  825. package/dist/agent/runtime/process.d.ts +0 -1
  826. package/dist/agent/runtime/process.js +0 -2
  827. package/dist/agent/server/github.d.ts +0 -1
  828. package/dist/agent/server/github.js +0 -2
  829. package/dist/agent/state/sqlite.d.ts +0 -1
  830. package/dist/agent/state/sqlite.js +0 -2
  831. package/dist/agent-invocations.post-CFKMEy-h.js +0 -432
  832. package/dist/agents-BNmuN4Qa.d.ts +0 -99
  833. package/dist/agents-CVehuMFA.js +0 -118
  834. package/dist/auth/console-runtime.d.ts +0 -1
  835. package/dist/auth/console-runtime.js +0 -2
  836. package/dist/auth/console.d.ts +0 -1
  837. package/dist/auth/console.js +0 -2
  838. package/dist/auth-BSSM-qh0.js +0 -700
  839. package/dist/auth-CG8tmgH7.d.ts +0 -106
  840. package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +0 -50
  841. package/dist/auth-inline-config--vlclzm3.js +0 -18
  842. package/dist/auth-inline-config-R6q_4Iwo.d.ts +0 -30
  843. package/dist/auth-path-B7Ssonj-.js +0 -49
  844. package/dist/blob/content-type.d.ts +0 -1
  845. package/dist/blob/content-type.js +0 -2
  846. package/dist/blob-D9v5Djxw.d.ts +0 -7
  847. package/dist/browser/actions.d.ts +0 -1
  848. package/dist/browser/actions.js +0 -2
  849. package/dist/cloudflare-env-CIZCKabz.js +0 -70
  850. package/dist/comments-overlay/loader.BcGn0Hsk.js +0 -1
  851. package/dist/comments-overlay/overlay.D7vmaSrE.js +0 -2
  852. package/dist/connections/http.d.ts +0 -1
  853. package/dist/connections/http.js +0 -2
  854. package/dist/console/auth-client.d.ts +0 -8
  855. package/dist/console/auth-client.js +0 -6
  856. package/dist/console/auth-cloudflare-access.d.ts +0 -2
  857. package/dist/console/auth-cloudflare-access.js +0 -116
  858. package/dist/console/auth-inline.d.ts +0 -6
  859. package/dist/console/auth-inline.js +0 -107
  860. package/dist/console/runtime/client/build.d.ts +0 -14
  861. package/dist/console/runtime/client/build.js +0 -68
  862. package/dist/console/runtime/client/connections-management.d.ts +0 -68
  863. package/dist/console/runtime/client/connections-management.js +0 -201
  864. package/dist/console/runtime/client/env-management.d.ts +0 -20
  865. package/dist/console/runtime/client/env-management.js +0 -84
  866. package/dist/console/runtime/client/mcp.d.ts +0 -9
  867. package/dist/console/runtime/client/mcp.js +0 -14
  868. package/dist/console/runtime/client/sign-in.d.ts +0 -21
  869. package/dist/console/runtime/client/sign-in.js +0 -16
  870. package/dist/console/runtime/client/time.d.ts +0 -30
  871. package/dist/console/runtime/client/time.js +0 -106
  872. package/dist/console/runtime/components/console-connect-agent.vue +0 -59
  873. package/dist/console/runtime/components/console-connections-activity.vue +0 -76
  874. package/dist/console/runtime/components/console-connections-approvals.vue +0 -169
  875. package/dist/console/runtime/components/console-connections-details.vue +0 -295
  876. package/dist/console/runtime/components/console-connections.vue +0 -296
  877. package/dist/console/runtime/components/console-env-access.vue +0 -151
  878. package/dist/console/runtime/components/console-env-activity.vue +0 -89
  879. package/dist/console/runtime/components/console-env-managed.vue +0 -203
  880. package/dist/console/runtime/components/console-status.vue +0 -25
  881. package/dist/console/runtime/components/invocation/internal/runtime-type.ts +0 -61
  882. package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +0 -1
  883. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +0 -1
  884. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +0 -1
  885. package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +0 -1
  886. package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +0 -1
  887. package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +0 -1
  888. package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +0 -1
  889. package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +0 -1
  890. package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +0 -1
  891. package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +0 -1
  892. package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +0 -1
  893. package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +0 -1
  894. package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +0 -111
  895. package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +0 -1
  896. package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +0 -1
  897. package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +0 -1
  898. package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +0 -1
  899. package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +0 -1
  900. package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +0 -1
  901. package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +0 -1
  902. package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +0 -1
  903. package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +0 -1
  904. package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +0 -1
  905. package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +0 -1
  906. package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +0 -1
  907. package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +0 -4
  908. package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +0 -1
  909. package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +0 -1
  910. package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +0 -1
  911. package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +0 -1
  912. package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +0 -1
  913. package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +0 -1
  914. package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +0 -1
  915. package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +0 -1
  916. package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +0 -1
  917. package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +0 -1
  918. package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +0 -1
  919. package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +0 -1
  920. package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +0 -1
  921. package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +0 -1
  922. package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +0 -1
  923. package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +0 -1
  924. package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +0 -1
  925. package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +0 -1
  926. package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +0 -1
  927. package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +0 -1
  928. package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +0 -1
  929. package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +0 -1
  930. package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +0 -1
  931. package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +0 -1
  932. package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +0 -1
  933. package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +0 -1
  934. package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +0 -1
  935. package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +0 -1
  936. package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +0 -1
  937. package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +0 -1
  938. package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +0 -1
  939. package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +0 -1
  940. package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +0 -1
  941. package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +0 -1
  942. package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +0 -1
  943. package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +0 -1
  944. package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +0 -1
  945. package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +0 -1
  946. package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +0 -1
  947. package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +0 -1
  948. package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +0 -1
  949. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +0 -1
  950. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +0 -1
  951. package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +0 -1
  952. package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +0 -1
  953. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +0 -1
  954. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +0 -1
  955. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +0 -1
  956. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +0 -1
  957. package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +0 -1
  958. package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +0 -1
  959. package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +0 -1
  960. package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +0 -1
  961. package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +0 -1
  962. package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +0 -2
  963. package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +0 -1
  964. package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +0 -1
  965. package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +0 -1
  966. package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +0 -1
  967. package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +0 -85
  968. package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +0 -2
  969. package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +0 -1
  970. package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +0 -1
  971. package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +0 -6
  972. package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +0 -1
  973. package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +0 -1
  974. package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +0 -314
  975. package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +0 -1
  976. package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +0 -2
  977. package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +0 -1
  978. package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +0 -1
  979. package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +0 -1
  980. package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +0 -1
  981. package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +0 -1
  982. package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +0 -1
  983. package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +0 -1
  984. package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +0 -1
  985. package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +0 -5
  986. package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +0 -1
  987. package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +0 -1
  988. package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +0 -1
  989. package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +0 -12
  990. package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +0 -1
  991. package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +0 -1
  992. package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +0 -1
  993. package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +0 -1
  994. package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +0 -1
  995. package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +0 -1
  996. package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +0 -1
  997. package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +0 -1
  998. package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +0 -1
  999. package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +0 -1
  1000. package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +0 -1
  1001. package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +0 -1
  1002. package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +0 -1
  1003. package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +0 -1
  1004. package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +0 -1
  1005. package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +0 -1
  1006. package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +0 -1
  1007. package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +0 -1
  1008. package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +0 -1
  1009. package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +0 -1
  1010. package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +0 -1
  1011. package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +0 -1
  1012. package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +0 -1
  1013. package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +0 -1
  1014. package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +0 -1
  1015. package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +0 -1
  1016. package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +0 -1
  1017. package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +0 -1
  1018. package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +0 -1
  1019. package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +0 -141
  1020. package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +0 -1
  1021. package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +0 -1
  1022. package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +0 -1
  1023. package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +0 -1
  1024. package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +0 -1
  1025. package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +0 -1
  1026. package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +0 -1
  1027. package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +0 -1
  1028. package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +0 -1
  1029. package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +0 -1
  1030. package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +0 -1266
  1031. package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +0 -1
  1032. package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +0 -1
  1033. package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +0 -1
  1034. package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +0 -1
  1035. package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +0 -1
  1036. package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +0 -1
  1037. package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +0 -1
  1038. package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +0 -1
  1039. package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +0 -1
  1040. package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +0 -1
  1041. package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +0 -1
  1042. package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +0 -1
  1043. package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +0 -1
  1044. package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +0 -1
  1045. package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +0 -1
  1046. package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +0 -1
  1047. package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +0 -1
  1048. package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +0 -1
  1049. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +0 -1
  1050. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +0 -1
  1051. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +0 -1
  1052. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +0 -1
  1053. package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +0 -1
  1054. package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +0 -1
  1055. package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +0 -1
  1056. package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +0 -1
  1057. package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +0 -1
  1058. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +0 -1
  1059. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +0 -1
  1060. package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +0 -1
  1061. package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +0 -1
  1062. package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +0 -1
  1063. package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +0 -1
  1064. package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +0 -1
  1065. package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +0 -1
  1066. package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +0 -1
  1067. package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +0 -1
  1068. package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +0 -1
  1069. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +0 -1
  1070. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +0 -1
  1071. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +0 -1
  1072. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +0 -1
  1073. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +0 -1
  1074. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +0 -1
  1075. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +0 -1
  1076. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +0 -1
  1077. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +0 -1
  1078. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +0 -1
  1079. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +0 -1
  1080. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +0 -1
  1081. package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +0 -1
  1082. package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +0 -1
  1083. package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +0 -1
  1084. package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +0 -1
  1085. package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +0 -1
  1086. package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +0 -1
  1087. package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +0 -1
  1088. package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +0 -1
  1089. package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +0 -1
  1090. package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +0 -1
  1091. package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +0 -1
  1092. package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +0 -1
  1093. package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +0 -1
  1094. package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +0 -1
  1095. package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +0 -1
  1096. package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +0 -1
  1097. package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +0 -1
  1098. package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +0 -1
  1099. package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +0 -1
  1100. package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +0 -1
  1101. package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +0 -1
  1102. package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +0 -1
  1103. package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +0 -1
  1104. package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +0 -1
  1105. package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +0 -1
  1106. package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +0 -1
  1107. package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +0 -1
  1108. package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +0 -1
  1109. package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +0 -1
  1110. package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +0 -1
  1111. package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +0 -1
  1112. package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +0 -1
  1113. package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +0 -1
  1114. package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +0 -1
  1115. package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +0 -1
  1116. package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +0 -1
  1117. package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +0 -1
  1118. package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +0 -1
  1119. package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +0 -1
  1120. package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +0 -1
  1121. package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +0 -1
  1122. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +0 -1
  1123. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +0 -1
  1124. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +0 -1
  1125. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +0 -1
  1126. package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +0 -1
  1127. package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +0 -1
  1128. package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +0 -257
  1129. package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +0 -1
  1130. package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +0 -1
  1131. package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +0 -1
  1132. package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +0 -1
  1133. package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +0 -1
  1134. package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +0 -1
  1135. package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +0 -1
  1136. package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +0 -1
  1137. package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +0 -1
  1138. package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +0 -1
  1139. package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +0 -1
  1140. package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +0 -1
  1141. package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +0 -1
  1142. package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +0 -1
  1143. package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +0 -1
  1144. package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +0 -1
  1145. package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +0 -1
  1146. package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +0 -1
  1147. package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +0 -1
  1148. package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +0 -1
  1149. package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +0 -1
  1150. package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +0 -1
  1151. package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +0 -1
  1152. package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +0 -1
  1153. package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +0 -1
  1154. package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +0 -1
  1155. package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +0 -1
  1156. package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +0 -1
  1157. package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +0 -1
  1158. package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +0 -1
  1159. package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +0 -1
  1160. package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +0 -1
  1161. package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +0 -1
  1162. package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +0 -1
  1163. package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +0 -1
  1164. package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +0 -1
  1165. package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +0 -1
  1166. package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +0 -1
  1167. package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +0 -1
  1168. package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +0 -1
  1169. package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +0 -1
  1170. package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +0 -1
  1171. package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +0 -1
  1172. package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +0 -1
  1173. package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +0 -1
  1174. package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +0 -1
  1175. package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +0 -1
  1176. package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +0 -1
  1177. package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +0 -1
  1178. package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +0 -1
  1179. package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +0 -1
  1180. package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +0 -1
  1181. package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +0 -1
  1182. package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +0 -1
  1183. package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +0 -1
  1184. package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +0 -1
  1185. package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +0 -1
  1186. package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +0 -1
  1187. package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +0 -1
  1188. package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +0 -1
  1189. package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +0 -1
  1190. package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +0 -1
  1191. package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +0 -1
  1192. package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +0 -1
  1193. package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +0 -1
  1194. package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +0 -1
  1195. package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +0 -1
  1196. package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +0 -1
  1197. package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +0 -1
  1198. package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +0 -1
  1199. package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +0 -1
  1200. package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +0 -1
  1201. package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +0 -1
  1202. package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +0 -1
  1203. package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +0 -168
  1204. package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +0 -1
  1205. package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +0 -1
  1206. package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +0 -1
  1207. package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +0 -1
  1208. package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +0 -1
  1209. package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +0 -1
  1210. package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +0 -1
  1211. package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +0 -1
  1212. package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +0 -1
  1213. package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +0 -1
  1214. package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +0 -1
  1215. package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +0 -1
  1216. package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +0 -1
  1217. package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +0 -1
  1218. package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +0 -1
  1219. package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +0 -1
  1220. package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +0 -1
  1221. package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +0 -1
  1222. package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +0 -1
  1223. package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +0 -1
  1224. package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +0 -1
  1225. package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +0 -1
  1226. package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +0 -1
  1227. package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +0 -1
  1228. package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +0 -1
  1229. package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +0 -1
  1230. package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +0 -1
  1231. package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +0 -1
  1232. package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +0 -1
  1233. package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +0 -1
  1234. package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +0 -1
  1235. package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +0 -1
  1236. package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +0 -1
  1237. package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +0 -1
  1238. package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +0 -1
  1239. package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +0 -1
  1240. package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +0 -1
  1241. package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +0 -1
  1242. package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +0 -1
  1243. package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +0 -1
  1244. package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +0 -1
  1245. package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +0 -1
  1246. package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +0 -1
  1247. package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +0 -1
  1248. package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +0 -1
  1249. package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +0 -1
  1250. package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +0 -1
  1251. package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +0 -1
  1252. package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +0 -1
  1253. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +0 -1
  1254. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +0 -1
  1255. package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +0 -1
  1256. package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +0 -1
  1257. package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +0 -1
  1258. package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +0 -1
  1259. package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +0 -1
  1260. package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +0 -1
  1261. package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +0 -1
  1262. package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +0 -1
  1263. package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +0 -1
  1264. package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +0 -1
  1265. package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +0 -1
  1266. package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +0 -1
  1267. package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +0 -1
  1268. package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +0 -8
  1269. package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +0 -1
  1270. package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +0 -1
  1271. package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +0 -1
  1272. package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +0 -1
  1273. package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +0 -1
  1274. package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +0 -1
  1275. package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +0 -1
  1276. package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +0 -1
  1277. package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +0 -1
  1278. package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +0 -1
  1279. package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +0 -1
  1280. package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +0 -1
  1281. package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +0 -1
  1282. package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +0 -1
  1283. package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +0 -1
  1284. package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +0 -1
  1285. package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +0 -1
  1286. package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +0 -1
  1287. package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +0 -1
  1288. package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +0 -1
  1289. package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +0 -1
  1290. package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +0 -1
  1291. package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +0 -1
  1292. package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +0 -1
  1293. package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +0 -1
  1294. package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +0 -1
  1295. package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +0 -1
  1296. package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +0 -1
  1297. package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +0 -1
  1298. package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +0 -1
  1299. package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +0 -1
  1300. package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +0 -1
  1301. package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +0 -1
  1302. package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +0 -1
  1303. package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +0 -1
  1304. package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +0 -1
  1305. package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +0 -1
  1306. package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +0 -1
  1307. package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +0 -1
  1308. package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +0 -1
  1309. package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +0 -1
  1310. package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +0 -1
  1311. package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +0 -1
  1312. package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +0 -1
  1313. package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +0 -1
  1314. package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +0 -1
  1315. package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +0 -1
  1316. package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +0 -1
  1317. package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +0 -1
  1318. package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +0 -1
  1319. package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +0 -1
  1320. package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +0 -4
  1321. package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +0 -1
  1322. package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +0 -3
  1323. package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +0 -1
  1324. package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +0 -1
  1325. package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +0 -1
  1326. package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +0 -1
  1327. package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +0 -1
  1328. package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +0 -1
  1329. package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +0 -1
  1330. package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +0 -1
  1331. package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +0 -1
  1332. package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +0 -1
  1333. package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +0 -1
  1334. package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +0 -1
  1335. package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +0 -1
  1336. package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +0 -1
  1337. package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +0 -3
  1338. package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +0 -1
  1339. package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +0 -1
  1340. package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +0 -1
  1341. package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +0 -1
  1342. package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +0 -4
  1343. package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +0 -1
  1344. package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +0 -1
  1345. package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +0 -1
  1346. package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +0 -1
  1347. package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +0 -1
  1348. package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +0 -1
  1349. package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +0 -1
  1350. package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +0 -1
  1351. package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +0 -1
  1352. package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +0 -1
  1353. package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +0 -1
  1354. package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +0 -1
  1355. package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +0 -1
  1356. package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +0 -1
  1357. package/dist/console/runtime/public/console/console-QjK_HKoM.css +0 -2
  1358. package/dist/console/runtime/public/console/console-j0_7kmR5.js +0 -21
  1359. package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +0 -1
  1360. package/dist/console/runtime/server/auth-manage.d.ts +0 -7
  1361. package/dist/console/runtime/server/auth-manage.js +0 -155
  1362. package/dist/console/runtime/server/client.get.d.ts +0 -3
  1363. package/dist/console/runtime/server/client.get.js +0 -11
  1364. package/dist/console/runtime/server/env-manage.d.ts +0 -5
  1365. package/dist/console/runtime/server/env-manage.js +0 -10
  1366. package/dist/console/runtime/server/mcp-authorization-server.d.ts +0 -11
  1367. package/dist/console/runtime/server/mcp-authorization-server.js +0 -71
  1368. package/dist/console/runtime/server/mcp-discovery.d.ts +0 -7
  1369. package/dist/console/runtime/server/mcp-discovery.js +0 -20
  1370. package/dist/console/runtime/server/mcp-metadata.d.ts +0 -11
  1371. package/dist/console/runtime/server/mcp-metadata.js +0 -54
  1372. package/dist/console/runtime/server/mcp.d.ts +0 -16
  1373. package/dist/console/runtime/server/mcp.js +0 -364
  1374. package/dist/console/runtime/server/page.get.d.ts +0 -4
  1375. package/dist/console/runtime/server/page.get.js +0 -49
  1376. package/dist/console/runtime/server/schedule-run.d.ts +0 -36
  1377. package/dist/console/runtime/server/schedule-run.js +0 -213
  1378. package/dist/console/runtime/server/sign-in.d.ts +0 -5
  1379. package/dist/console/runtime/server/sign-in.js +0 -11
  1380. package/dist/content/presets/cms.d.ts +0 -2
  1381. package/dist/content/presets/cms.js +0 -2
  1382. package/dist/database/drizzle.d.ts +0 -1
  1383. package/dist/database/drizzle.js +0 -2
  1384. package/dist/database-DLPk6HVu.d.ts +0 -7
  1385. package/dist/database-hyYo7JVD.d.ts +0 -11
  1386. package/dist/definitions-BJGSpYGa.d.ts +0 -209
  1387. package/dist/definitions-Y0pIwSQm.d.ts +0 -19
  1388. package/dist/diagnostics-YTWM3K3t.js +0 -74
  1389. package/dist/diagnostics-lT85pbVx.d.ts +0 -6
  1390. package/dist/document-metadata-nXusaMSq.js +0 -6
  1391. package/dist/documents-BRt3-fIu.d.ts +0 -72
  1392. package/dist/email/server.d.ts +0 -1
  1393. package/dist/email/server.js +0 -2
  1394. package/dist/env/auth.d.ts +0 -1
  1395. package/dist/env/auth.js +0 -2
  1396. package/dist/env/http.d.ts +0 -1
  1397. package/dist/env/http.js +0 -2
  1398. package/dist/env/presets.d.ts +0 -1
  1399. package/dist/env/presets.js +0 -2
  1400. package/dist/env/provider.d.ts +0 -1
  1401. package/dist/env/provider.js +0 -2
  1402. package/dist/env/schema.d.ts +0 -1
  1403. package/dist/env/schema.js +0 -2
  1404. package/dist/env/secret.d.ts +0 -1
  1405. package/dist/env/secret.js +0 -2
  1406. package/dist/error-diagnostics-n7V-_SPy.js +0 -160
  1407. package/dist/h3-v1-request-DDGXJ9E7.js +0 -166
  1408. package/dist/index-CWk5rJOo.d.ts +0 -247
  1409. package/dist/internal-Ca7DYHpa.js +0 -311
  1410. package/dist/internal-VvXn0bX4.d.ts +0 -25
  1411. package/dist/invocations-DkjhdkpT.js +0 -1151
  1412. package/dist/invocations-TvN9ux06.d.ts +0 -47
  1413. package/dist/loopback-DAr1IFQP.js +0 -43
  1414. package/dist/media-BBybn3NP.js +0 -512
  1415. package/dist/operation-contributions-BXHKgT_w.d.ts +0 -18
  1416. package/dist/operations-4uDh4zah.js +0 -38
  1417. package/dist/operations-7RHOMAHT.js +0 -455
  1418. package/dist/operations-Bgklf9hM.d.ts +0 -149
  1419. package/dist/operations-CwqEItfA.js +0 -468
  1420. package/dist/package-BsfDnNm8.js +0 -1119
  1421. package/dist/page-tools-B3g4CQ5c.js +0 -402
  1422. package/dist/page-tools-C5dufxVz.d.ts +0 -16
  1423. package/dist/page-tools-shared-D-amu6sx.js +0 -53
  1424. package/dist/project-registry-BT7RcCcQ.js +0 -39
  1425. package/dist/registry-dSdI2Oa3.js +0 -142
  1426. package/dist/request-BT6g-Fwf.js +0 -326
  1427. package/dist/request-DOvvVgpI.d.ts +0 -52
  1428. package/dist/retention-DBXuVtQL.js +0 -257
  1429. package/dist/rolldown-runtime-8H4AJuhK.js +0 -14
  1430. package/dist/runtime/h3.d.ts +0 -2
  1431. package/dist/runtime/h3.js +0 -2
  1432. package/dist/runtime/node.d.ts +0 -1
  1433. package/dist/runtime/node.js +0 -2
  1434. package/dist/runtime-DPqC3MTX.js +0 -60
  1435. package/dist/scan-module-TmHMoGKw.js +0 -148
  1436. package/dist/secret-DrgWMRms.js +0 -47
  1437. package/dist/sections-BVtKNenQ.js +0 -108
  1438. package/dist/sections-C985LlW2.d.ts +0 -31
  1439. package/dist/sections-Drj-o4_z.d.ts +0 -141
  1440. package/dist/source/file.d.ts +0 -1
  1441. package/dist/source/file.js +0 -2
  1442. package/dist/source/files.d.ts +0 -1
  1443. package/dist/source/files.js +0 -2
  1444. package/dist/source/github.d.ts +0 -1
  1445. package/dist/source/github.js +0 -2
  1446. package/dist/source/glob.d.ts +0 -1
  1447. package/dist/source/glob.js +0 -2
  1448. package/dist/source/markdown.d.ts +0 -1
  1449. package/dist/source/markdown.js +0 -2
  1450. package/dist/src-CaqWiza-.js +0 -7910
  1451. package/dist/task.d.ts +0 -3
  1452. package/dist/task.js +0 -2
  1453. package/dist/types-BsuwNk3q.js +0 -256
  1454. package/dist/ui/attachment.d.ts +0 -1
  1455. package/dist/ui/attachment.js +0 -2
  1456. package/dist/ui/avatar-stack.d.ts +0 -1
  1457. package/dist/ui/avatar-stack.js +0 -2
  1458. package/dist/ui/bubble.d.ts +0 -1
  1459. package/dist/ui/bubble.js +0 -2
  1460. package/dist/ui/chat-message.d.ts +0 -1
  1461. package/dist/ui/chat-message.js +0 -2
  1462. package/dist/ui/chat-session.d.ts +0 -1
  1463. package/dist/ui/chat-session.js +0 -2
  1464. package/dist/ui/chat.d.ts +0 -1
  1465. package/dist/ui/chat.js +0 -2
  1466. package/dist/ui/code-block.d.ts +0 -1
  1467. package/dist/ui/code-block.js +0 -2
  1468. package/dist/ui/code-view.d.ts +0 -1
  1469. package/dist/ui/code-view.js +0 -2
  1470. package/dist/ui/comments.d.ts +0 -1
  1471. package/dist/ui/comments.js +0 -2
  1472. package/dist/ui/connection-status.d.ts +0 -1
  1473. package/dist/ui/connection-status.js +0 -2
  1474. package/dist/ui/file-diff.d.ts +0 -1
  1475. package/dist/ui/file-diff.js +0 -2
  1476. package/dist/ui/file-tree.d.ts +0 -1
  1477. package/dist/ui/file-tree.js +0 -2
  1478. package/dist/ui/file-view.d.ts +0 -1
  1479. package/dist/ui/file-view.js +0 -2
  1480. package/dist/ui/markdown.d.ts +0 -1
  1481. package/dist/ui/markdown.js +0 -2
  1482. package/dist/ui/marker.d.ts +0 -1
  1483. package/dist/ui/marker.js +0 -2
  1484. package/dist/ui/message-parts.d.ts +0 -1
  1485. package/dist/ui/message-parts.js +0 -2
  1486. package/dist/ui/message.d.ts +0 -1
  1487. package/dist/ui/message.js +0 -2
  1488. package/dist/ui/multi-file-diff.d.ts +0 -1
  1489. package/dist/ui/multi-file-diff.js +0 -2
  1490. package/dist/ui/nuxt.d.ts +0 -3
  1491. package/dist/ui/nuxt.js +0 -3
  1492. package/dist/ui/patch-diff.d.ts +0 -1
  1493. package/dist/ui/patch-diff.js +0 -2
  1494. package/dist/ui/prompt-input.d.ts +0 -1
  1495. package/dist/ui/prompt-input.js +0 -2
  1496. package/dist/ui/sync-status.d.ts +0 -1
  1497. package/dist/ui/sync-status.js +0 -2
  1498. package/dist/ui/tool-list.d.ts +0 -1
  1499. package/dist/ui/tool-list.js +0 -2
  1500. package/dist/ui/trace-run.d.ts +0 -1
  1501. package/dist/ui/trace-run.js +0 -2
  1502. package/dist/ui/trace.d.ts +0 -1
  1503. package/dist/ui/trace.js +0 -2
  1504. package/dist/ui/unresolved-file.d.ts +0 -1
  1505. package/dist/ui/unresolved-file.js +0 -2
@@ -0,0 +1,2143 @@
1
+ import { PluginOption } from "vite";
2
+ import { MaybePromise as MaybePromise$1, RuntimeDiagnosticError, TraceEventContentPolicy, TraceEventLogEntry } from "@vite-hub/runtime";
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
+ /** The host that ViteHub builds for: the `host` option of `vitehub()` and the value of `VITEHUB_HOST`. */
7
+ type ViteHubHost = "cloudflare" | "deno" | "netlify" | "node" | "vercel";
8
+ /**
9
+ * Returns the ViteHub host that this process builds or runs on, or `undefined` when no variable names a host.
10
+ * The order is `VITEHUB_HOST`, `NITRO_PRESET`, `SERVER_PRESET`, then the provider variables:
11
+ * `WORKERS_CI` (Cloudflare Workers Builds), `NETLIFY`, `NOW_BUILDER`, `VERCEL` or `VERCEL_ENV`, then `DENO_DEPLOY` or `DENO_DEPLOYMENT_ID`.
12
+ * `vitehub()` uses this result when `host` is omitted, and `"node"` when it is `undefined`.
13
+ */
14
+ declare function detectHost(env?: Record<string, string | undefined>): ViteHubHost | undefined;
15
+ //#endregion
16
+ //#region src/cache-storage.d.ts
17
+ /** Storage for Nitro's `cache` mount, used by `defineCachedFunction()` and `defineCachedEventHandler()`. */
18
+ type CacheOptions = {
19
+ driver: "cloudflare";
20
+ binding?: string;
21
+ namespaceId?: string;
22
+ } | {
23
+ driver: "kv";
24
+ base?: string;
25
+ } | {
26
+ driver: "deno-kv";
27
+ base?: string;
28
+ } | {
29
+ driver: "fs-lite";
30
+ base?: string;
31
+ } | {
32
+ driver: "vercel";
33
+ };
34
+ //#endregion
35
+ //#region ../database/dist/types-CKHGU06S.d.ts
36
+ interface RuntimeEnvDeclarationLike {
37
+ default?: unknown;
38
+ kind: "env-variable";
39
+ source?: {
40
+ kind: string;
41
+ name?: string;
42
+ names?: string[];
43
+ };
44
+ }
45
+ type DatabaseConfigValue = string | RuntimeEnvDeclarationLike;
46
+ interface CloudflareD1HttpConfig {
47
+ authToken?: DatabaseConfigValue;
48
+ url?: DatabaseConfigValue;
49
+ }
50
+ interface CloudflareD1BindingConfig {
51
+ binding?: string;
52
+ databaseId?: DatabaseConfigValue;
53
+ http?: true | CloudflareD1HttpConfig;
54
+ previewDatabaseId?: DatabaseConfigValue;
55
+ databaseName?: DatabaseConfigValue;
56
+ migrationsTable?: string;
57
+ /**
58
+ * Read from D1 read replicas through the Sessions API. Each request gets one D1 session. A request with a method
59
+ * other than GET, HEAD, or OPTIONS starts on the primary and returns a bookmark cookie, so the same client reads its
60
+ * own writes next. Only native D1 bindings use it. D1 over HTTP and SQLite ignore it.
61
+ */
62
+ readReplication?: boolean;
63
+ }
64
+ interface DatabaseConnectionConfig {
65
+ authToken?: DatabaseConfigValue;
66
+ url?: DatabaseConfigValue;
67
+ }
68
+ interface DatabaseLocalRuntimeOptions {
69
+ filename?: string;
70
+ }
71
+ interface DatabaseRuntimeD1Options {
72
+ binding?: string;
73
+ databaseId?: DatabaseConfigValue;
74
+ databaseName?: DatabaseConfigValue;
75
+ cloudflare?: Pick<CloudflareD1BindingConfig, "http">;
76
+ driver: "cloudflare";
77
+ local?: DatabaseLocalRuntimeOptions;
78
+ migrationsTable?: string;
79
+ previewDatabaseId?: DatabaseConfigValue;
80
+ /** Read from D1 read replicas. See `CloudflareD1BindingConfig.readReplication`. */
81
+ readReplication?: boolean;
82
+ }
83
+ interface MigrationBackupOptions {
84
+ /** The folder of the copies. A relative path starts at the server's working directory. Defaults to `backups` beside the database file. */
85
+ dir?: string;
86
+ /** The number of copies to keep for each database file, including the new one. Defaults to 3. */
87
+ keep?: number;
88
+ }
89
+ interface DatabaseIntegrationOptions {
90
+ cli?: false | {
91
+ drop?: false;
92
+ export?: false;
93
+ generate?: false;
94
+ migrate?: false;
95
+ reset?: false;
96
+ seed?: false;
97
+ sql?: false;
98
+ up?: false;
99
+ };
100
+ /**
101
+ * Applies pending migrations when a Node server build starts, before it handles requests. It uses the ledger and
102
+ * data loss check of `vitehub database migrate`, and a failed migration stops the server.
103
+ *
104
+ * Unset, Postgres databases of a Node build migrate on start and other databases do not. Postgres migrations hold an
105
+ * advisory lock, so several instances can start together. `true` also migrates local SQLite files, one server
106
+ * process per file. `false` turns it off.
107
+ */
108
+ migrateOnStart?: boolean | {
109
+ /** Apply migrations that drop tables or columns or delete rows. */
110
+ allowDataLoss?: boolean;
111
+ /**
112
+ * Copies each local SQLite file with `VACUUM INTO` before the server applies its pending migrations. A start with no
113
+ * pending migration, or an empty database, makes no copy. A failed copy stops the start before any migration.
114
+ * Postgres and remote libSQL fail with `DATABASE_MIGRATION_BACKUP_UNSUPPORTED`. `true` keeps the 3 newest copies in
115
+ * a `backups` folder beside the database file.
116
+ */
117
+ backup?: boolean | MigrationBackupOptions;
118
+ };
119
+ /**
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
123
+ * `DATABASE_MIGRATE_ON_DEPLOY_UNSUPPORTED` for another host, or for a database without a D1 binding.
124
+ */
125
+ migrateOnDeploy?: boolean;
126
+ projectRoot?: string;
127
+ }
128
+ type DatabaseNuxtIntegrationOptions = false | DatabaseIntegrationOptions & Partial<DatabaseRuntimeD1Options> & {
129
+ connection?: DatabaseConnectionConfig;
130
+ };
131
+ type DatabaseOptions = false | DatabaseIntegrationOptions & Partial<DatabaseRuntimeD1Options> & {
132
+ connection?: DatabaseConnectionConfig;
133
+ };
134
+ //#endregion
135
+ //#region ../comments/dist/vite.d.ts
136
+ //#endregion
137
+ //#region src/live-vite.d.ts
138
+ /** Module paths that generated files import. The `vite-hub` distribution passes its own subpaths. */
139
+ interface CommentsImports {
140
+ /** Exports `defineCommentsPlugin`, `createCommentsHandler`, and `viteHubPageSessionHandler`. */
141
+ runtime: string;
142
+ /** Exports `commentsRealtime`. */
143
+ realtime: string;
144
+ /** Exports `commentsAuthSession`. */
145
+ auth: string;
146
+ /** Exports `commentsSchema`. */
147
+ database: string;
148
+ /** Exports `databases`, the runtime Database registry. */
149
+ databases: string;
150
+ /** Exports `parseContentField`. */
151
+ contentClient: string;
152
+ /** Exports `connectDatabase`, for Workers. Its `/node` subpath also opens SQLite files. */
153
+ connect: string;
154
+ /** Exports `blob`, the Blob store that attachments go to when the app has Blob. */
155
+ blob: string;
156
+ /** Exports `checkRateLimit`, which counts guest writes when Rate Limit counts in a shared KV store. */
157
+ rateLimit: string;
158
+ }
159
+ /** Options of `comments()`, for apps that use Comments without `vite-hub`. */
160
+ interface CommentsOptions {
161
+ /**
162
+ * Where threads are stored. Comments creates its tables there on first use, so there is no migration.
163
+ *
164
+ * - Not set: `DATABASE_URL`, else `TURSO_DATABASE_URL`, else the Cloudflare D1 binding `DB`, read at runtime.
165
+ * - `"d1:COMMENTS"`: the Cloudflare D1 binding `COMMENTS`. Comments adds it to the Wrangler config.
166
+ * - `"env:COMMENTS_DATABASE_URL"`: the libSQL URL in that variable, with its token in `COMMENTS_AUTH_TOKEN`.
167
+ * - `"file:./data/comments.sqlite"`: a SQLite file on Node, relative to the server's working directory.
168
+ *
169
+ * The development server uses `.vitehub/data/comments.sqlite`, unless `database` is a file or a set variable. Under a
170
+ * Nitro Cloudflare preset, it runs in workerd, which cannot open that file, so it uses a local D1 binding `COMMENTS`
171
+ * instead, unless `database` names another location. An unset `env:` variable falls back to that local D1 database.
172
+ */
173
+ database?: string;
174
+ }
175
+ interface CommentsVitePluginOptions {
176
+ /**
177
+ * `true` turns Comments on without `server/comments.ts`, with the default `defineComments()`. `vitehub({ comments })`
178
+ * sets it. Default: Comments is on when the app has the file.
179
+ */
180
+ enabled?: boolean;
181
+ /** Whether the app configures ViteHub Auth, so Comments reads its session. Default `false`. */
182
+ auth?: boolean;
183
+ imports?: Partial<CommentsImports>;
184
+ /**
185
+ * Comments without `vite-hub`, as `comments()` sets it: it turns on without `server/comments.ts`, keeps threads in a
186
+ * SQLite file that it opens itself, and signs people in with GitHub.
187
+ */
188
+ standalone?: CommentsOptions;
189
+ /** The Database Definition that receives the tables. Default: `defineComments({ database })`, else the default or only Database. */
190
+ database?: string;
191
+ /** SQL dialect of that Database. `postgresql` uses the Postgres tables. Default `sqlite`: SQLite, libSQL, and D1. */
192
+ dialect?: "postgresql" | "sqlite";
193
+ /** Store attachments in the app's Blob store. Default `false`: uploads need `defineComments({ storeAttachment })`. */
194
+ blob?: boolean;
195
+ /**
196
+ * `false` leaves the overlay out: no `comments` page tool. The API, the operations, and the Console stay.
197
+ * `{ presence: false }` keeps the overlay without its faces and cursors, for an app that shows its own presence.
198
+ */
199
+ overlay?: false | {
200
+ presence?: false;
201
+ };
202
+ /**
203
+ * ViteHub Rate Limit counts in a KV store that every server process shares: count the guest writes of
204
+ * `defineComments({ rateLimit })` there too. Default `false`: each process counts in its memory.
205
+ */
206
+ rateLimit?: boolean;
207
+ }
208
+ //#endregion
209
+ //#region src/vite.d.ts
210
+ type HubCommentsOptions = CommentsVitePluginOptions & {
211
+ /** Import paths of the comment operations. `vite-hub` passes its own subpaths. */
212
+ operationsImports?: {
213
+ operations?: string;
214
+ };
215
+ };
216
+ //#endregion
217
+ //#region src/health-vite.d.ts
218
+ interface HealthOptions {
219
+ /** The route that answers the health check. Default: `/_vitehub/health`. */
220
+ route?: string;
221
+ }
222
+ //#endregion
223
+ //#region src/deploy-options.d.ts
224
+ interface DeployOptions {
225
+ /**
226
+ * Paths that `vitehub deploy` requests on the deployed URL after each deploy, such as `["/", "/api/products"]`. Each
227
+ * one must answer with a 2xx status, or the deploy exits with `SETUP_DEPLOY_CHECK_FAILED` and prints the command
228
+ * that rolls production back. With `health`, the health route is checked too.
229
+ */
230
+ check?: string | readonly string[];
231
+ /**
232
+ * After each production deploy that passes its checks, `vitehub deploy` sends the URLs of `<publicUrl>/sitemap.xml`
233
+ * to IndexNow, so Bing, Yandex, Seznam, Naver, and Yep crawl them again. The build serves the IndexNow key file.
234
+ * Needs a string `publicUrl`. Default: `false`.
235
+ */
236
+ indexNow?: boolean;
237
+ }
238
+ //#endregion
239
+ //#region src/seo/vite.d.ts
240
+ /** `vitehub({ seo })`. */
241
+ interface SeoOptions {
242
+ /**
243
+ * Serve `/sitemap.xml`: the Nuxt pages without a dynamic part and the static prerender routes, the published Content
244
+ * pages with a URL, and the entries of `server/sitemap.ts`. URLs start with `publicUrl`, or the request origin without
245
+ * it. `exclude` lists path prefixes to leave out, such as `/admin`. `pages: false` lists no Nuxt pages or prerender
246
+ * routes, so the list is Content and `server/sitemap.ts` only.
247
+ */
248
+ sitemap?: boolean | {
249
+ exclude?: readonly string[];
250
+ pages?: boolean;
251
+ };
252
+ /**
253
+ * `/robots.txt`, which ViteHub serves with `sitemap` unless the app has its own. It allows every crawler and names the
254
+ * sitemap. `disallow` lists paths to keep crawlers out of, such as `/api/`. Setting `robots` alone serves it too.
255
+ * `false` serves none.
256
+ */
257
+ robots?: boolean | {
258
+ disallow?: readonly string[];
259
+ };
260
+ }
261
+ //#endregion
262
+ //#region src/security-vite.d.ts
263
+ /** The headers that built output sends by default. */
264
+ declare const defaultSecurityHeaders: {
265
+ readonly "Strict-Transport-Security": "max-age=31536000";
266
+ readonly "X-Content-Type-Options": "nosniff";
267
+ readonly "Referrer-Policy": "strict-origin-when-cross-origin";
268
+ };
269
+ /**
270
+ * Response headers for `security.headers`. A key is a header name. A string replaces the default value or adds a
271
+ * header, such as `"X-Robots-Tag": "noindex"`. `false` removes a default header.
272
+ */
273
+ type SecurityHeaders = { [Name in keyof typeof defaultSecurityHeaders]?: string | false; } & Record<string, string | false>;
274
+ type ByteUnit = "b" | "kb" | "mb" | "gb" | "B" | "KB" | "MB" | "GB";
275
+ /** `security` options of `vitehub()`. */
276
+ interface SecurityOptions {
277
+ /**
278
+ * Response headers for every response that does not set them itself. By default, built output sends
279
+ * `Strict-Transport-Security: max-age=31536000`, `X-Content-Type-Options: nosniff`, and
280
+ * `Referrer-Policy: strict-origin-when-cross-origin`. An object changes, adds, or removes (`false`) one header, such as
281
+ * `"X-Frame-Options": "SAMEORIGIN"`. `false` sends no headers. When you set `headers`, `vite dev` also sends them,
282
+ * without `Strict-Transport-Security`. Static files on Cloudflare, Netlify, and Vercel get the same headers from the
283
+ * host's header config. Default: the three headers above, in built output only.
284
+ */
285
+ headers?: boolean | SecurityHeaders;
286
+ /**
287
+ * The largest request body, as bytes or a size such as `"1mb"` or `"500kb"` (1kb is 1024 bytes). A larger body gets
288
+ * 413 with the code `VITE_HUB_REQUEST_BODY_TOO_LARGE`. It applies to every route. Default: no limit.
289
+ */
290
+ maxBodySize?: number | `${number}${ByteUnit}`;
291
+ }
292
+ //#endregion
293
+ //#region src/request-policy-vite.d.ts
294
+ /** `sameOriginWrites` options of `vitehub()`. */
295
+ interface SameOriginWritesOptions {
296
+ /**
297
+ * Path prefixes that take writes from other sites, such as `/api/forms/contact` for a Form with `origins`. A prefix
298
+ * matches the path itself and the paths below it.
299
+ */
300
+ exclude?: string[];
301
+ }
302
+ //#endregion
303
+ //#region src/redirects-vite.d.ts
304
+ /** `redirects` options of `vitehub()`. */
305
+ interface RedirectsOptions {
306
+ /**
307
+ * The canonical host name, such as `"example.com"`. A request to another host, such as `www.example.com`, is
308
+ * redirected to this host with the same path and query. Local names, IP addresses, and `previewHosts` keep their host.
309
+ */
310
+ host?: string;
311
+ /** Redirect `http:` requests to `https:`. Local names, IP addresses, and `previewHosts` keep their scheme. */
312
+ https?: boolean;
313
+ /**
314
+ * `"remove"` redirects `/pricing/` to `/pricing`. `"add"` redirects `/pricing` to `/pricing/`. It applies to page
315
+ * requests only: `GET` and `HEAD`, not under `/api/` or `/_`, and without a file extension.
316
+ */
317
+ trailingSlash?: "add" | "remove";
318
+ /**
319
+ * More hosts that keep their host and scheme, such as `"staging.example.com"`. `*.` matches every subdomain. The
320
+ * preview hosts of each host always do: `*.workers.dev`, `*.pages.dev`, `*.vercel.app`, `*.netlify.app`,
321
+ * `*.deno.dev`, and `*.deno.net`.
322
+ */
323
+ previewHosts?: string[];
324
+ }
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
+ type WorkspaceContent = string | Uint8Array;
481
+ type WorkspaceContentStream = ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>;
482
+ interface ReadFileOptions {
483
+ encoding?: "utf8" | "binary";
484
+ }
485
+ type ReadFileResult<TOptions extends ReadFileOptions | undefined = undefined> = TOptions extends {
486
+ encoding: "binary";
487
+ } ? Uint8Array : string;
488
+ interface ListOptions {
489
+ exclude?: string[];
490
+ recursive?: boolean;
491
+ }
492
+ interface GlobOptions {
493
+ /** Workspace-relative directory to match patterns within. Result paths remain relative to the Workspace root. */
494
+ cwd?: string;
495
+ }
496
+ interface MkdirOptions {
497
+ recursive?: boolean;
498
+ }
499
+ interface RmOptions {
500
+ recursive?: boolean;
501
+ force?: boolean;
502
+ /** Remove only when the current file digest matches. */
503
+ ifDigest?: string | null;
504
+ }
505
+ /** The person that a snapshot or a history commit records as its author. */
506
+ interface WorkspaceAuthor {
507
+ name: string;
508
+ email: string;
509
+ }
510
+ interface SnapshotOptions {
511
+ name?: string;
512
+ /**
513
+ * Who made the change, such as the signed-in user. The GitHub and Cloudflare Artifacts Stores write it as the Git
514
+ * commit author. Stores with retained history keep it as `metadata.author` of the revision.
515
+ */
516
+ author?: WorkspaceAuthor;
517
+ }
518
+ interface DiffOptions {
519
+ from?: WorkspaceSnapshot;
520
+ }
521
+ declare global {
522
+ interface ViteHubWorkspaceNameMap {}
523
+ interface ViteHubWorkspaceAssetMap {}
524
+ interface ViteHubWorkspaceSourceResolutionContextMap {}
525
+ interface ViteHubWorkspaceScopeNameMap {}
526
+ }
527
+ interface WorkspaceFile {
528
+ path: string;
529
+ content: WorkspaceContent;
530
+ mediaType?: string;
531
+ /** JSON-safe file attributes: plain objects, dense arrays, strings, booleans, null, and finite numbers except negative zero. `source` is reserved for a string Source name. */
532
+ metadata?: Record<string, unknown>;
533
+ }
534
+ interface WorkspaceStreamFile {
535
+ path: string;
536
+ content: WorkspaceContentStream;
537
+ mediaType?: string;
538
+ /** JSON-safe file attributes: plain objects, dense arrays, strings, booleans, null, and finite numbers except negative zero. `source` is reserved for a string Source name. */
539
+ metadata?: Record<string, unknown>;
540
+ }
541
+ interface WorkspaceEntry {
542
+ path: string;
543
+ type: "file" | "directory";
544
+ size?: number;
545
+ mtime?: number;
546
+ mediaType?: string;
547
+ metadata?: Record<string, unknown>;
548
+ digest?: string;
549
+ }
550
+ interface WorkspaceStat extends WorkspaceEntry {
551
+ /** Opaque stored-file version. Must change on modification or recreation, even when bytes are unchanged. */
552
+ revision?: string;
553
+ type: "file" | "directory";
554
+ }
555
+ interface WorkspaceSnapshot {
556
+ id: string;
557
+ name?: string;
558
+ createdAt: string;
559
+ entries: Record<string, {
560
+ type: "file" | "directory";
561
+ digest?: string;
562
+ metadata?: Record<string, unknown>;
563
+ size?: number;
564
+ }>;
565
+ }
566
+ interface WorkspaceRevision {
567
+ id: string;
568
+ /** The history ref this revision was committed to. */
569
+ ref: string;
570
+ parentId: string | null;
571
+ createdAt: string;
572
+ message?: string;
573
+ metadata?: Record<string, unknown>;
574
+ /**
575
+ * How many files the revision has, and their total size. The GitHub Store leaves both out of `list()` and `head()`,
576
+ * because counting needs one more request per commit. `open(id)` reports them.
577
+ */
578
+ files?: number;
579
+ bytes?: number;
580
+ }
581
+ interface WorkspaceHistoryRefOptions {
582
+ /** Named history line inside the Workspace. Defaults to `main`. */
583
+ ref?: string;
584
+ }
585
+ interface WorkspaceHistoryCommitBase extends WorkspaceHistoryRefOptions {
586
+ /** The expected head of `ref`. Use null for the first revision on the ref. */
587
+ ifHead: string | null;
588
+ /** Expected heads of other refs that must remain unchanged for the commit. */
589
+ ifHeads?: Record<string, string | null>;
590
+ /** Observe a rejection of this commit's own `ifHead` condition. The commit still throws the error. */
591
+ onHeadConflict?: (error: unknown) => void;
592
+ /**
593
+ * With `ifHead: null`, start the new ref from this revision instead of from the ref that `history.forksFrom(ref)`
594
+ * names. Only Stores with `forksFrom` accept it. The caller has read the files of that revision.
595
+ */
596
+ startFrom?: string;
597
+ message?: string;
598
+ metadata?: Record<string, unknown>;
599
+ }
600
+ /** Store commits receive normalized files after rules, validators, hooks, and Source grants pass. */
601
+ type WorkspaceStoreHistoryCommitOptions = WorkspaceHistoryCommitBase & ({
602
+ files: Record<string, WorkspaceFile>;
603
+ changes?: never;
604
+ } | {
605
+ changes: {
606
+ put?: Record<string, WorkspaceFile>;
607
+ delete?: string[];
608
+ };
609
+ files?: never;
610
+ });
611
+ interface WorkspaceHistoryListOptions extends WorkspaceHistoryRefOptions {
612
+ cursor?: string;
613
+ limit?: number;
614
+ /** Return revisions whose file manifest changed at this file or folder path. */
615
+ path?: string;
616
+ }
617
+ interface WorkspaceHistoryListResult {
618
+ revisions: WorkspaceRevision[];
619
+ cursor?: string;
620
+ }
621
+ interface WorkspaceHistoryRef {
622
+ name: string;
623
+ head: WorkspaceRevision;
624
+ }
625
+ interface WorkspaceRevisionView {
626
+ readonly revision: WorkspaceRevision;
627
+ /** File digests, when provided, are the digests of the retained bytes: SHA-256, or the Git blob sha for the GitHub Store. Compute one with `history.digest`. */
628
+ list(path?: string, options?: ListOptions): Promise<WorkspaceEntry[]>;
629
+ stat(path: string): Promise<WorkspaceStat>;
630
+ readFile<TOptions extends ReadFileOptions | undefined = undefined>(path: string, options?: TOptions): Promise<ReadFileResult<TOptions>>;
631
+ /**
632
+ * Read many files of the revision at once, so that `readFile()` of each path needs no request. The GitHub Store reads
633
+ * them from one archive of the commit. Stores without it read each file on its own.
634
+ */
635
+ preload?(paths: readonly string[]): Promise<void>;
636
+ /**
637
+ * The last revision that changed each path on the first-parent history, including deletions. A null value means
638
+ * the path has no change. A missing key means the Store could not prove the answer. To resolve missing keys,
639
+ * or when a Store does not implement this method, compare each revision's files with those of its first parent.
640
+ */
641
+ lastChanged?(paths: readonly string[]): Promise<ReadonlyMap<string, WorkspaceLastChange | null>>;
642
+ }
643
+ /** The revision that last changed a path, as `WorkspaceRevisionView.lastChanged()` answers. */
644
+ interface WorkspaceLastChange {
645
+ /** The revision id: the commit sha for the GitHub Store. */
646
+ id: string;
647
+ /** When the revision was made, as an ISO date: the commit's author date for the GitHub Store. */
648
+ createdAt: string;
649
+ }
650
+ /** An open pull request on a forge, for a Store whose refs are branches. */
651
+ interface WorkspacePullRequest {
652
+ number: number;
653
+ url: string;
654
+ title: string;
655
+ /** The ref of the branch that the pull request merges. */
656
+ head: string;
657
+ /** The ref that it merges into. */
658
+ base: string;
659
+ /** Common ancestor of the head and base, for comparing all changes in the pull request. */
660
+ mergeBase?: string;
661
+ }
662
+ interface WorkspaceOpenPullRequestOptions {
663
+ /** The ref to merge. */
664
+ head: string;
665
+ /** The ref to merge into. */
666
+ base: string;
667
+ title: string;
668
+ body?: string;
669
+ draft?: boolean;
670
+ /** Delete the head ref after GitHub definitively rejects the pull request. Unknown outcomes keep it for recovery. */
671
+ deleteHeadOnFailure?: boolean;
672
+ /** Exclude overlapping open PRs across Store instances. Ambiguous requests retain their reservations until reconciled. */
673
+ reservation?: {
674
+ headPrefix: string;
675
+ paths: string[];
676
+ };
677
+ }
678
+ /** A file that both refs changed in different ways. Digests are the Store's (`history.digest`); null means deleted. */
679
+ interface WorkspaceMergeConflict {
680
+ /** The Workspace path. */
681
+ path: string;
682
+ /** The digest on the ref that receives the merge. */
683
+ ours: string | null;
684
+ /** The digest on the ref that is merged in. */
685
+ theirs: string | null;
686
+ /** The digest at the merge base of both refs. Null when the file did not exist there. */
687
+ base: string | null;
688
+ }
689
+ /** What `onConflict` can use while it resolves conflicts. */
690
+ interface WorkspaceMergeConflictContext {
691
+ /** Reads the bytes of a digest that a conflict names. */
692
+ read(digest: string): Promise<Uint8Array>;
693
+ }
694
+ /** What `onConflict` decided. */
695
+ interface WorkspaceMergeResolution {
696
+ /** Metadata for the merge commit. It is added to `metadata`. */
697
+ metadata?: Record<string, unknown>;
698
+ /**
699
+ * Merged text of conflicting files, by Workspace path. The merge commit writes it instead of the receiving ref's
700
+ * version. A path that is not one of the conflicts throws.
701
+ */
702
+ files?: Record<string, string>;
703
+ }
704
+ interface WorkspaceMergeOptions {
705
+ /**
706
+ * Called when the Store's own merge conflicts. With it, the Store merges everything else and calls this with the
707
+ * files that both refs changed. Each file keeps the receiving ref's version unless the resolution gives its merged
708
+ * text. Without it, a conflict throws `WORKSPACE_CONFLICT`.
709
+ */
710
+ onConflict?(conflicts: WorkspaceMergeConflict[], context: WorkspaceMergeConflictContext): WorkspaceMergeResolution | Promise<WorkspaceMergeResolution>;
711
+ /** The ref to bring in. */
712
+ from: string;
713
+ /** The ref that receives the merge. */
714
+ into: string;
715
+ /** The message of the merge commit. */
716
+ message?: string;
717
+ /** Revision metadata, kept like the metadata of a commit. */
718
+ metadata?: Record<string, unknown>;
719
+ }
720
+ interface WorkspaceHistoryReader {
721
+ /**
722
+ * The open pull requests whose head ref starts with `headPrefix`, newest first, for a Store that has them. The GitHub
723
+ * Store finds the branches with that prefix first, so it requires `headPrefix`.
724
+ */
725
+ pullRequests?(options?: {
726
+ headPrefix?: string;
727
+ }): Promise<WorkspacePullRequest[]>;
728
+ /**
729
+ * The digest of file bytes, as `WorkspaceEntry.digest` reports it for this Store: SHA-256 by default, the Git blob sha
730
+ * for the GitHub Store. Compare digests only with this function.
731
+ */
732
+ digest?(bytes: Uint8Array): Promise<string>;
733
+ /**
734
+ * The ref that a missing `ref` starts from when a commit creates it with `ifHead: null`, or undefined when the ref
735
+ * starts empty. The GitHub Store starts `draft` from the head of `published`.
736
+ */
737
+ forksFrom?(ref: string): Promise<string | undefined>;
738
+ head(options?: WorkspaceHistoryRefOptions): Promise<WorkspaceRevision | null>;
739
+ list(options?: WorkspaceHistoryListOptions): Promise<WorkspaceHistoryListResult>;
740
+ /** Refs that have at least one revision, sorted by name. */
741
+ refs(): Promise<WorkspaceHistoryRef[]>;
742
+ open(id: string): Promise<WorkspaceRevisionView>;
743
+ /** Unique uncompressed file bytes retained across committed revisions on every ref. */
744
+ usage(): Promise<{
745
+ bytes: number;
746
+ objects: number;
747
+ }>;
748
+ }
749
+ /** Writes that only some Stores have. A Store without them leaves the members out. */
750
+ interface WorkspaceHistoryExtensions {
751
+ /** Merge `from` into `into` with a merge commit. Returns null when `into` already has everything in `from`. A merge that conflicts throws `WORKSPACE_CONFLICT`. */
752
+ merge?(options: WorkspaceMergeOptions): Promise<WorkspaceRevision | null>;
753
+ /** Open a pull request from one ref into another. */
754
+ openPullRequest?(options: WorkspaceOpenPullRequestOptions): Promise<WorkspacePullRequest>;
755
+ }
756
+ /** Run the Workspace commit policy on a prepared merge before the Store advances its destination ref. */
757
+ type WorkspaceMergeCommit = (options: WorkspaceStoreHistoryCommitOptions, apply: (checked: WorkspaceStoreHistoryCommitOptions) => Promise<WorkspaceRevision>) => Promise<WorkspaceRevision>;
758
+ interface WorkspaceStoreHistory extends WorkspaceHistoryReader, Omit<WorkspaceHistoryExtensions, "merge"> {
759
+ merge?(options: WorkspaceMergeOptions, commit?: WorkspaceMergeCommit): Promise<WorkspaceRevision | null>;
760
+ commit(options: WorkspaceStoreHistoryCommitOptions): Promise<WorkspaceRevision>;
761
+ }
762
+ interface WorkspaceDiffEntry {
763
+ path: string;
764
+ type: "added" | "modified" | "removed";
765
+ before?: WorkspaceSnapshot["entries"][string];
766
+ after?: WorkspaceSnapshot["entries"][string];
767
+ }
768
+ interface WorkspaceDiff {
769
+ from?: string;
770
+ to: string;
771
+ entries: WorkspaceDiffEntry[];
772
+ }
773
+ interface WorkspaceRebaseOptions {
774
+ takeRemote?: string[];
775
+ }
776
+ interface WorkspaceStore {
777
+ history?: WorkspaceStoreHistory;
778
+ readFile(path: string): Promise<WorkspaceFile | undefined>;
779
+ writeFile(path: string, file: WorkspaceFile): Promise<void>;
780
+ writeFileConditional?(path: string, file: WorkspaceFile, ifDigest: string | null): Promise<void>;
781
+ writeFileStream?(path: string, file: WorkspaceStreamFile): Promise<WorkspaceStat & {
782
+ digest: string;
783
+ }>;
784
+ list(prefix?: string, options?: ListOptions): Promise<WorkspaceEntry[]>;
785
+ glob(pattern: string | string[], options?: GlobOptions): Promise<WorkspaceEntry[]>;
786
+ stat(path: string): Promise<WorkspaceStat | undefined>;
787
+ mkdir(path: string, options?: MkdirOptions): Promise<void>;
788
+ rm(path: string, options?: RmOptions): Promise<void>;
789
+ removeEmptyDirectory?(path: string): Promise<void>;
790
+ snapshot(options?: SnapshotOptions): Promise<WorkspaceSnapshot>;
791
+ rebase?(options?: WorkspaceRebaseOptions): Promise<void>;
792
+ diff(options?: DiffOptions): Promise<WorkspaceDiff>;
793
+ getMeta?(key: string): Promise<unknown>;
794
+ setMeta?(key: string, value: unknown, capability?: symbol): Promise<void>;
795
+ }
796
+ interface LocalWorkspaceStoreOptions {
797
+ /**
798
+ * `"git"` hides `.git` and paths that Git ignores, such as dependencies and build output, from
799
+ * listings, snapshots, and diffs. The root must be a Git checkout.
800
+ */
801
+ ignore?: "git";
802
+ /**
803
+ * Path lock scope. `"filesystem"` (default) coordinates every process that shares the root
804
+ * through lock directories under `.vitehub/locks`. `"process"` keeps the same per-path read and
805
+ * write locks in memory. Use it only when one process owns the root.
806
+ */
807
+ locks?: "filesystem" | "process";
808
+ driver?: "local";
809
+ root?: string;
810
+ }
811
+ interface MemoryWorkspaceStoreOptions {
812
+ driver: "memory";
813
+ }
814
+ interface CloudflareArtifactsWorkspaceStoreOptions {
815
+ driver: "cloudflare";
816
+ binding?: string;
817
+ namespace?: string;
818
+ repo?: string;
819
+ repoPrefix?: string;
820
+ branch?: string;
821
+ }
822
+ interface VercelBlobWorkspaceStoreOptions {
823
+ driver: "vercel";
824
+ token?: string;
825
+ /**
826
+ * A namespace under `_vitehub/workspaces/`. For example, `handbook`
827
+ * stores Workspace files under `_vitehub/workspaces/handbook/`.
828
+ */
829
+ prefix?: string;
830
+ access?: "private" | "public";
831
+ }
832
+ type GitHubWorkspaceOption = string | (() => string | undefined);
833
+ /**
834
+ * Branch names for the history refs `published` and `draft`. A history call on `published` reads or writes
835
+ * `refs.published`, and revisions on that branch report the ref `published`. A ref without an alias is its own branch name.
836
+ */
837
+ interface GitHubWorkspaceRefs {
838
+ published?: string;
839
+ draft?: string;
840
+ }
841
+ interface GitHubWorkspaceStoreOptions {
842
+ driver: "github";
843
+ branch?: GitHubWorkspaceOption;
844
+ /**
845
+ * An opaque value that the store target carries for consumers that keep their own rows next to the Workspace, such as a
846
+ * Drizzle Database. The store does not use it.
847
+ */
848
+ database?: unknown;
849
+ refs?: GitHubWorkspaceRefs;
850
+ /** The repository, as `owner/name`. Defaults to `VITEHUB_WORKSPACE_GITHUB_REPOSITORY`. */
851
+ repo?: GitHubWorkspaceOption;
852
+ /** The folder of the Workspace in the repository. An empty string is the repository root. Defaults to `.vitehub/workspaces/<workspace>`. */
853
+ root?: GitHubWorkspaceOption;
854
+ token?: GitHubWorkspaceOption;
855
+ }
856
+ type WorkspaceStoreOptions = LocalWorkspaceStoreOptions | MemoryWorkspaceStoreOptions | CloudflareArtifactsWorkspaceStoreOptions | VercelBlobWorkspaceStoreOptions | GitHubWorkspaceStoreOptions | WorkspaceStore;
857
+ interface WorkspaceOptions {
858
+ root?: string;
859
+ projectRoot?: string;
860
+ assets?: boolean | string[];
861
+ store?: WorkspaceStoreOptions;
862
+ }
863
+ //#endregion
864
+ //#region ../sandbox/dist/index-DsoQAUb7.d.ts
865
+ //#region src/internal/network-policy.d.ts
866
+ /**
867
+ * The outbound network of a Sandbox. The `vercel` and `cloudflare` runtimes take this form.
868
+ * - `"allow-all"`: no limit. This is the default.
869
+ * - `"deny-all"`: no network exit.
870
+ * - `{ allow }`: HTTP and HTTPS only to these hostnames. `"*.example.com"` matches subdomains only.
871
+ * Other protocols have no exit.
872
+ */
873
+ type SandboxNetworkPolicy = "allow-all" | "deny-all" | {
874
+ allow: readonly string[];
875
+ };
876
+ //#endregion
877
+ //#region src/vercel.d.ts
878
+ type VercelSandboxSource = {
879
+ depth?: number;
880
+ revision?: string;
881
+ type: "git";
882
+ url: string;
883
+ } | {
884
+ password: string;
885
+ username: string;
886
+ depth?: number;
887
+ revision?: string;
888
+ type: "git";
889
+ url: string;
890
+ } | {
891
+ snapshotId: string;
892
+ type: "snapshot";
893
+ } | {
894
+ type: "tarball";
895
+ url: string;
896
+ };
897
+ type VercelSandboxNetworkPolicy = "allow-all" | "deny-all" | {
898
+ allow?: readonly string[] | Readonly<Record<string, readonly unknown[]>>;
899
+ subnets?: {
900
+ allow?: readonly string[];
901
+ deny?: readonly string[];
902
+ };
903
+ };
904
+ //#endregion
905
+ //#region ../agent/dist/types-CMop_fX7.d.ts
906
+ //#endregion
907
+ //#region src/agent-invocation.d.ts
908
+ type AgentInvocationStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
909
+ type AgentInvocationAnnotationValue = boolean | number | string | null;
910
+ type AgentInvocationRecordStatus = AgentInvocationStatus;
911
+ interface AgentInvocationWorkflowBinding {
912
+ name: string;
913
+ provider: string;
914
+ /** Absent while provider acknowledgement is unknown. */
915
+ id?: string;
916
+ }
917
+ interface AgentInvocationRecord {
918
+ /** Durable provider dispatch intent and acknowledged physical identity. */
919
+ workflow?: AgentInvocationWorkflowBinding;
920
+ agentName?: string;
921
+ annotations?: Record<string, AgentInvocationAnnotationValue>;
922
+ /** Capability IDs observed during this Invocation, including uses omitted from a truncated trace. */
923
+ capabilityIds?: readonly string[];
924
+ cancelledAt?: string;
925
+ /** Driver that received this Invocation but cannot enforce a cancellation request. */
926
+ cancelNotEnforcedBy?: string;
927
+ /** True while the custom Driver dispatch state has not been durably verified. */
928
+ cancelWarningPending?: boolean;
929
+ /** Execution owner whose custom Driver dispatch is unverified. */
930
+ cancelWarningOwnerId?: string;
931
+ /** Time of the first cancellation request. The run that holds the Invocation reads it within the claim renewal interval. */
932
+ cancelRequestedAt?: string;
933
+ channelId?: string;
934
+ completedAt?: string;
935
+ createdAt: string;
936
+ cursor: string;
937
+ error?: RuntimeDiagnosticError;
938
+ failedAt?: string;
939
+ /** A failed queued attempt has another retry and can still be cancelled. */
940
+ retryPending?: boolean;
941
+ id: string;
942
+ /**
943
+ * What the Invocation did, in order. Every Driver records `agent.invocation.start` (with `input.prompt`,
944
+ * `input.messages` or `input.data`) and `agent.invocation.finish` (with `result.text`, or `result.output` for a
945
+ * structured result such as `driver.ask` answers). `driver.ask` adds `agent.tool.*` per question and
946
+ * `agent.usage.recorded` per Jev request; see `AgentAskDriver`.
947
+ *
948
+ * An Invocation started while another one runs its Driver or an outcome hook, such as `runAgent()` in
949
+ * `agent:finish`, is its child. The parent records `agent.invocation.child.start` and `agent.invocation.child.finish`
950
+ * with `agent.invocation.child.id` (the child's record `id`), `.run.id` and `.agent.name`, and on finish `.status`
951
+ * and `.durationMs`. The child's `agent.invocation.start` carries the same `agent.invocation.parent.*` attributes.
952
+ */
953
+ observations: readonly TraceEventLogEntry[];
954
+ /** Resolved retention limits for this durable Invocation. */
955
+ observationLimits?: Required<AgentInvocationObservationOptions>;
956
+ /** True when the journal dropped one or more observations. */
957
+ observationsTruncated?: boolean;
958
+ origin?: string;
959
+ startedAt?: string;
960
+ status: AgentInvocationRecordStatus;
961
+ threadId?: string;
962
+ /** A bounded title projected from retained public title observations. */
963
+ title?: string;
964
+ /** Sequence of the projected title, preserved when its observation is evicted. */
965
+ titleSequence?: number;
966
+ /**
967
+ * Shared by an Invocation and the children it starts without a trace of their own.
968
+ * The observations of a child carry `trace.parentId`, the record `id` of its parent.
969
+ */
970
+ traceId: string;
971
+ updatedAt: string;
972
+ }
973
+ interface AgentInvocationListOptions {
974
+ agentName?: string;
975
+ capabilityId?: string;
976
+ cursor?: string;
977
+ limit?: number;
978
+ search?: string;
979
+ status?: AgentInvocationRecordStatus | readonly AgentInvocationRecordStatus[];
980
+ triggeredBy?: string;
981
+ /** ISO timestamp; keeps invocations whose `updatedAt` is at or after it. Stores without an index for it may ignore it. */
982
+ updatedSince?: string;
983
+ }
984
+ /** Read options of `get()`. The record fields stay the same; only `observations` changes. */
985
+ interface AgentInvocationGetOptions {
986
+ /**
987
+ * Returns only observations with a sequence greater than this value. Pass the sequence of the last observation
988
+ * that you read to read only new observations. `0` returns all observations. It must be a non-negative safe integer.
989
+ */
990
+ afterSequence?: number;
991
+ /** Returns only observations with these exact names. An empty list returns no observations. */
992
+ observationNames?: readonly string[];
993
+ }
994
+ type AgentInvocationSummary = Omit<AgentInvocationRecord, "observations">;
995
+ interface AgentInvocationListResult {
996
+ cursor?: string;
997
+ invocations: readonly AgentInvocationSummary[];
998
+ remainingStatuses?: readonly AgentInvocationRecordStatus[];
999
+ }
1000
+ type AgentInvocationStoreCreateInput = Omit<AgentInvocationRecord, "cursor">;
1001
+ interface AgentInvocationStoreCreateResult {
1002
+ created: boolean;
1003
+ record: AgentInvocationRecord;
1004
+ }
1005
+ interface AgentInvocationStoreUpdateInput {
1006
+ workflow?: AgentInvocationWorkflowBinding;
1007
+ /** Append with a stable observation identity and a sequence assigned atomically by the store. */
1008
+ appendObservation?: Omit<TraceEventLogEntry, "sequence">;
1009
+ annotations?: AgentInvocationRecord["annotations"];
1010
+ /** Current Driver that cannot enforce cancellation. `null` clears a previous Driver's marker. */
1011
+ cancelNotEnforcedBy?: string | null;
1012
+ /** Whether custom Driver dispatch is unverified. `false` clears the pending state. */
1013
+ cancelWarningPending?: boolean;
1014
+ /** Execution owner for the pending custom Driver marker. */
1015
+ cancelWarningOwnerId?: string;
1016
+ /** Requests cancellation. A failed record with retryPending becomes cancelled; other terminal records ignore it. */
1017
+ cancelRequestedAt?: string;
1018
+ capabilityIds?: readonly string[];
1019
+ channelId?: string;
1020
+ origin?: string;
1021
+ threadId?: string;
1022
+ error?: AgentInvocationRecord["error"];
1023
+ observation?: TraceEventLogEntry;
1024
+ observationsTruncated?: boolean;
1025
+ /** Returns a `failed` record to `pending` for another attempt of the same run. Other records ignore it. */
1026
+ reopen?: true;
1027
+ /** Whether a failed queued attempt has another retry. Cleared when the record is reopened. */
1028
+ retryPending?: boolean;
1029
+ status?: AgentInvocationRecordStatus;
1030
+ timestamp: string;
1031
+ }
1032
+ interface AgentInvocationStore {
1033
+ /**
1034
+ * Prepares a store that connects on first use, such as one that loads its database client and runs migrations.
1035
+ * The journal calls it once before its first operation and waits up to 10 seconds, outside `storeTimeoutMs`.
1036
+ * Concurrent callers share the underlying open, even after a wait times out. Only a rejected open is retried.
1037
+ */
1038
+ open?(): MaybePromise$1<void>;
1039
+ claim(id: string, claimId: string, leaseMs: number, options?: {
1040
+ /** Atomically rotate only an absent claim or one of these owned generations, unless replaceExisting is true. */
1041
+ expectedClaimIds?: readonly string[];
1042
+ replaceClaimToken?: string;
1043
+ /** Requires the claimed record to have this stable identity. */
1044
+ expectedTraceId?: string;
1045
+ /** Requires the claimed record to be the observed store generation. */
1046
+ expectedCursor?: string;
1047
+ replaceExisting?: boolean;
1048
+ }): MaybePromise$1<boolean>;
1049
+ create(input: AgentInvocationStoreCreateInput): MaybePromise$1<AgentInvocationStoreCreateResult>;
1050
+ get(id: string, options?: AgentInvocationGetOptions): MaybePromise$1<AgentInvocationRecord | undefined>;
1051
+ /** Reads invocation metadata without observation payloads. */
1052
+ getSummary(id: string): MaybePromise$1<AgentInvocationSummary | undefined>;
1053
+ getClaimToken(id: string): MaybePromise$1<string | undefined>;
1054
+ list(options?: AgentInvocationListOptions): MaybePromise$1<AgentInvocationListResult>;
1055
+ listAgentNames?(): MaybePromise$1<readonly string[]>;
1056
+ listCapabilityIds?(agentName?: string): MaybePromise$1<readonly string[]>;
1057
+ listTriggeredBy?(agentName?: string): MaybePromise$1<readonly string[]>;
1058
+ release(id: string, claimId: string): MaybePromise$1<void>;
1059
+ /** Deletes one terminal record and the claim the store keeps for it. Pending and running records remain. */
1060
+ delete?(id: string): MaybePromise$1<AgentInvocationDeleteOutcome>;
1061
+ /** Deletes terminal records selected by `updatedBefore`, or by the store's configured retention when it is omitted. */
1062
+ prune?(options: AgentInvocationStorePruneOptions): MaybePromise$1<AgentInvocationPruneResult>;
1063
+ /** Updates are idempotent for observations carrying the ViteHub observation identity attribute. */
1064
+ update(id: string, input: AgentInvocationStoreUpdateInput, claimId?: string): MaybePromise$1<AgentInvocationRecord | undefined>;
1065
+ }
1066
+ /** `not-terminal` means the record is pending or running and was kept. */
1067
+ type AgentInvocationDeleteOutcome = "deleted" | "not-found" | "not-terminal";
1068
+ interface AgentInvocationStorePruneOptions {
1069
+ /** Report the selected record IDs without deleting them. */
1070
+ dryRun?: boolean;
1071
+ /** ISO timestamp. Selects terminal records last updated before this time. */
1072
+ updatedBefore?: string;
1073
+ }
1074
+ interface AgentInvocationPruneResult {
1075
+ /** True when the store reported the selection without deleting it. */
1076
+ dryRun: boolean;
1077
+ /** Deleted record IDs, or the IDs a dry run selected. */
1078
+ ids: readonly string[];
1079
+ /**
1080
+ * Set when the store applies a maxSize limit. Bytes are the live data of the database, without free pages.
1081
+ * `afterBytes` above `budgetBytes` means that only pending or running records remain to delete.
1082
+ */
1083
+ size?: {
1084
+ beforeBytes: number;
1085
+ afterBytes: number;
1086
+ budgetBytes: number;
1087
+ };
1088
+ }
1089
+ interface AgentInvocationObservationOptions {
1090
+ /** Retained observations, including lifecycle outcomes. Default 32768; maximum 32768. */
1091
+ maxCount?: number;
1092
+ /** Maximum content string length in UTF-16 code units. Default 65536; maximum 1048576. */
1093
+ maxStringLength?: number;
1094
+ /** Maximum UTF-8 bytes of the serialized observations array. Default 16 MiB; maximum 64 MiB. Updates fail if configuration truncation evidence cannot fit. */
1095
+ maxBytes?: number;
1096
+ /** Time to drain queued observations before terminal recovery. Default 1000 ms; maximum 60000 ms. */
1097
+ flushTimeoutMs?: number;
1098
+ }
1099
+ interface AgentInvocationsOptions {
1100
+ /** Retain resolved instructions and tool contracts independently of other trace content. Defaults to metadata. */
1101
+ configuration?: TraceEventContentPolicy;
1102
+ content?: TraceEventContentPolicy;
1103
+ /**
1104
+ * How journal storage failures affect a run. Defaults to `"best-effort"`.
1105
+ * `"best-effort"`: a run starts when the store does not confirm its claim, running state, or first cancellation check. It stops only when the store reports another owner or a cancellation request.
1106
+ * `"strict"`: a run does not start until the store confirms these writes and reads.
1107
+ * Channel replay is always strict, because the journal claim is its duplicate protection.
1108
+ */
1109
+ enforcement?: "best-effort" | "strict";
1110
+ metadataContent?: readonly string[];
1111
+ observations?: AgentInvocationObservationOptions;
1112
+ /** Rewrite an observation after the content policy and before the store receives it. Return undefined to drop it. A throwing hook drops the observation. */
1113
+ redact?: (observation: AgentInvocationRecord["observations"][number]) => AgentInvocationRecord["observations"][number] | undefined;
1114
+ /** Rewrite the error stored on a failed invocation. Return undefined to store no error details. A throwing hook stores no error details. */
1115
+ redactError?: (error: NonNullable<AgentInvocationRecord["error"]>) => AgentInvocationRecord["error"];
1116
+ store: AgentInvocationStore;
1117
+ /** 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
+ storeTimeoutMs?: number;
1119
+ }
1120
+ //#endregion
1121
+ //#region src/retention.d.ts
1122
+ /** Units of a retention duration string: milliseconds, seconds, minutes, hours, days, and weeks. */
1123
+ type AgentRetentionDurationUnit = "ms" | "s" | "m" | "h" | "d" | "w";
1124
+ /** A duration such as `"14d"`, `"12h"`, `"30m"`, or `"1.5h"`. */
1125
+ type AgentRetentionDuration = `${number}${AgentRetentionDurationUnit}`;
1126
+ /** Units of a retention size string. They are 1024-based and case-insensitive: `1KB` is 1024 bytes. */
1127
+ type AgentRetentionSizeUnit = "B" | "KB" | "MB" | "GB" | "TB" | "b" | "kb" | "mb" | "gb" | "tb";
1128
+ /**
1129
+ * A size such as `"500MB"` or `"3 GB"`, or a percent such as `"45%"`.
1130
+ * A percent is a share of the capacity of the volume that holds the store. It counts only the store's own bytes.
1131
+ */
1132
+ type AgentRetentionSize = `${number}${AgentRetentionSizeUnit}` | `${number} ${AgentRetentionSizeUnit}` | `${number}%`;
1133
+ /**
1134
+ * Retention limits for stored data. All limits that are set apply together: the oldest data that can be removed goes first,
1135
+ * until every limit holds. `false` disables a limit. An omitted limit uses the store's default.
1136
+ * Pending and running Agent Invocations are never removed by retention.
1137
+ */
1138
+ interface AgentRetentionPolicy {
1139
+ /** Maximum age, measured from the last update. A number is milliseconds. A string is a duration such as `"14d"`. */
1140
+ maxAge?: false | number | AgentRetentionDuration;
1141
+ /** Maximum number of records. Stores may apply it periodically, so the count can briefly exceed it. */
1142
+ maxRecords?: false | number;
1143
+ /**
1144
+ * Maximum size. A number is bytes. A string is a size such as `"500MB"`, or a percent of the volume such as `"45%"`.
1145
+ * Stores apply it periodically, so the size can briefly exceed it. Not every store supports it.
1146
+ */
1147
+ maxSize?: false | number | AgentRetentionSize;
1148
+ }
1149
+ //#endregion
1150
+ //#region src/invocations/app.d.ts
1151
+ /** Built-in Invocation journal stores. `database` uses the app's ViteHub Database. `memory` keeps records in the server process. */
1152
+ type AgentInvocationsStoreName = "database" | "memory";
1153
+ type AgentInvocationsJournalOptions = Omit<AgentInvocationsOptions, "store">;
1154
+ /**
1155
+ * 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.
1157
+ */
1158
+ interface AgentInvocationsDefaultJournal {
1159
+ /**
1160
+ * A `file:` or libSQL URL for the journal. A relative `file:` path resolves from the ViteHub project root.
1161
+ * `VITEHUB_AGENT_INVOCATIONS_DATABASE_URL` overrides it at runtime.
1162
+ */
1163
+ databaseUrl?: string;
1164
+ /** Observation count, string length, byte budget, and flush timeout of each record. */
1165
+ observations?: AgentInvocationObservationOptions;
1166
+ /**
1167
+ * 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`.
1169
+ */
1170
+ retention?: AgentRetentionPolicy;
1171
+ database?: never;
1172
+ store?: never;
1173
+ }
1174
+ /**
1175
+ * The app-wide `agent.invocations` value. Omit it, or pass the default journal options, for the default journal.
1176
+ * `false` records no journal. Function options, such as `redact`, belong in a per-Agent setting.
1177
+ */
1178
+ type AgentInvocationsDefault = AgentInvocationsStoreName | false | AgentInvocationsDefaultJournal | Omit<AgentInvocationsJournalOptions, "redact" | "redactError"> & ({
1179
+ store: "database";
1180
+ database?: string;
1181
+ } | {
1182
+ store: "memory";
1183
+ database?: never;
1184
+ });
1185
+ //#endregion
1186
+ //#region src/types.d.ts
1187
+ type AgentRuntimeName = "cloudflare-agents" | "deno" | "unknown" | "vercel" | "vite";
1188
+ type AgentRuntime = "auto" | AgentRuntimeName;
1189
+ type AgentExecution = "inline" | "sandbox" | "workflow";
1190
+ /** Agent State in libSQL. `auto` also selects Cloudflare state on Cloudflare when no `url` is set. */
1191
+ interface AgentSqlStateProviderOptions {
1192
+ /**
1193
+ * The libSQL auth token. Declare where it comes from, so the token stays out of the server bundle:
1194
+ * `env({ secret: true, source: env.source("TURSO_AUTH_TOKEN") })`. `VITEHUB_AGENT_STATE_AUTH_TOKEN` wins when it is set.
1195
+ */
1196
+ authToken?: EnvVariableDeclaration;
1197
+ driver?: "auto" | "libsql" | "sqlite";
1198
+ /** Persistent file databases default to WAL. Select delete for network-backed volumes. */
1199
+ journalMode?: "wal" | "delete";
1200
+ tablePrefix?: string;
1201
+ url?: string;
1202
+ }
1203
+ /** Agent State in a Cloudflare Durable Object. */
1204
+ interface AgentCloudflareStateProviderOptions {
1205
+ driver: "cloudflare";
1206
+ }
1207
+ /** Agent State in process memory. It does not survive a restart. */
1208
+ interface AgentMemoryStateProviderOptions {
1209
+ driver: "memory";
1210
+ }
1211
+ type AgentStateProviderOptions = AgentSqlStateProviderOptions | AgentCloudflareStateProviderOptions | AgentMemoryStateProviderOptions;
1212
+ interface AgentProvidersOptions {
1213
+ state?: AgentStateProviderOptions;
1214
+ }
1215
+ interface AgentEvalOptions {
1216
+ cache?: boolean;
1217
+ forceRerunTriggers?: string[];
1218
+ hideTable?: boolean;
1219
+ maxConcurrency?: number;
1220
+ scoreThreshold?: number;
1221
+ server?: {
1222
+ port?: number;
1223
+ };
1224
+ setupFiles?: string[];
1225
+ testTimeout?: number;
1226
+ trialCount?: number;
1227
+ }
1228
+ type AgentCliOptions = Record<never, never>;
1229
+ type AgentRouteOption = boolean | string;
1230
+ interface AgentWebhookAlias {
1231
+ agent: string;
1232
+ webhook: string;
1233
+ }
1234
+ interface AgentRoutesOptions {
1235
+ /** Additional public paths handled by an existing Agent webhook, without an HTTP proxy. */
1236
+ aliases?: Record<string, AgentWebhookAlias>;
1237
+ discordGateway?: AgentRouteOption;
1238
+ inspection?: AgentRouteOption;
1239
+ }
1240
+ interface AgentPreparationOptions {
1241
+ workspace: string;
1242
+ requireNonEmpty?: boolean;
1243
+ retryDelayMs?: number;
1244
+ /** Readiness probe path. Defaults to /_vitehub/ready. */
1245
+ route?: string;
1246
+ }
1247
+ interface AgentShutdownOptions {
1248
+ /**
1249
+ * Default for `VITEHUB_SHUTDOWN_DRAIN_MS`, the shared budget of every ViteHub shutdown drain,
1250
+ * such as inline Chat invocations and active webhook queue deliveries. The variable wins when
1251
+ * it is set. Defaults to 0, which interrupts the work at once.
1252
+ */
1253
+ drainMs?: number;
1254
+ }
1255
+ interface AgentChannelsOptions {
1256
+ /**
1257
+ * In `vite dev`, run the Slack, Discord, Teams, and Telegram Channels on a simulated chat with no provider
1258
+ * credentials. Each Channel's webhook route then accepts AI SDK chat requests and streams the reply.
1259
+ * The plugin sets `VITEHUB_CHANNELS=simulate` in `vite dev` only; the runtime ignores it when `NODE_ENV` is `production`.
1260
+ */
1261
+ simulate?: boolean;
1262
+ }
1263
+ interface AgentOptions$1 {
1264
+ /** Prepare startup Workspace sources on a persistent Nitro host. */
1265
+ preparation?: AgentPreparationOptions;
1266
+ channels?: AgentChannelsOptions;
1267
+ cli?: false | AgentCliOptions;
1268
+ execution?: AgentExecution;
1269
+ eval?: AgentEvalOptions;
1270
+ imports?: boolean;
1271
+ providers?: AgentProvidersOptions;
1272
+ routes?: AgentRoutesOptions;
1273
+ runtime?: AgentRuntime;
1274
+ /**
1275
+ * Drain inline Chat invocations when a persistent server stops. ViteHub shutdown runs the
1276
+ * drain on SIGTERM and SIGINT. Set `false` to interrupt them without a drain.
1277
+ */
1278
+ shutdown?: false | AgentShutdownOptions;
1279
+ }
1280
+ //#endregion
1281
+ //#region ../blob/dist/types-CcPFXhpt.d.ts
1282
+ /**
1283
+ * Built-in transformer names. `auto` picks the Cloudflare Images binding, then sharp, then passthrough. `photon` uses
1284
+ * `@cf-wasm/photon` on every host and is never picked by `auto`.
1285
+ */
1286
+ type BlobImageTransformerName = "auto" | "cloudflare-images" | "passthrough" | "photon" | "sharp";
1287
+ /** `blob.images` options. Variants are on by default with the `auto` transformer. */
1288
+ interface BlobImagesOptions {
1289
+ /** Cloudflare Images binding name. Defaults to `IMAGES`. */
1290
+ binding?: string;
1291
+ /**
1292
+ * Largest source, in pixels, that the `photon` transformer decodes. Defaults to 4,000,000. Each megapixel costs
1293
+ * about 17 MB of WebAssembly memory, and a Worker has 128 MB, so keep it at 6,000,000 or less on Cloudflare.
1294
+ */
1295
+ maxPixels?: number;
1296
+ /** Default quality for lossy formats, from 1 to 100. Defaults to 75. */
1297
+ quality?: number;
1298
+ /** Sizes that variant widths and heights snap to. Defaults to 16 through 3840. */
1299
+ sizes?: number[];
1300
+ /** Defaults to `auto`. */
1301
+ transformer?: BlobImageTransformerName;
1302
+ }
1303
+ //#endregion
1304
+ //#region ../blob/dist/types-FTerpSjG.d.ts
1305
+ /**
1306
+ * Cloudflare R2 jurisdiction that keeps bucket data in one region.
1307
+ * @see https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions
1308
+ */
1309
+ type CloudflareR2Jurisdiction = "eu" | "fedramp" | "us";
1310
+ interface HostedBlobStoreConfig {
1311
+ /**
1312
+ * In `vite dev`, use this hosted store instead of the local `fs` store, so writes change real data. Without it,
1313
+ * `vite dev` never picks a hosted store from env or the host preset. An explicit `driver` is always used. Builds ignore it.
1314
+ */
1315
+ remote?: boolean;
1316
+ }
1317
+ interface CloudflareR2BlobStoreConfig extends HostedBlobStoreConfig {
1318
+ accountId?: string;
1319
+ accessKeyId?: string;
1320
+ binding?: string;
1321
+ bucketName?: string;
1322
+ defaultUrlExpiresIn?: number;
1323
+ driver: "cloudflare";
1324
+ /** Jurisdiction of the bucket. Sets the wrangler binding, the provisioning request, and the S3 API host. */
1325
+ jurisdiction?: CloudflareR2Jurisdiction;
1326
+ publicBaseUrl?: string;
1327
+ secretAccessKey?: string;
1328
+ }
1329
+ interface FsBlobStoreConfig {
1330
+ base?: string;
1331
+ driver: "fs";
1332
+ /** A local store cannot be remote: `remote: true` fails with `BLOB_C0018`. */
1333
+ remote?: boolean;
1334
+ /**
1335
+ * Origin of the links that `sign()` returns, such as `https://app.example`. Add the base URL of the app when it has
1336
+ * one, such as `https://app.example/app`. Without it, the links start with `/_vitehub/blob-signed/`.
1337
+ */
1338
+ urlBaseUrl?: string;
1339
+ }
1340
+ interface VercelBlobStoreConfig extends HostedBlobStoreConfig {
1341
+ access?: "private" | "public";
1342
+ allowOverwrite?: boolean;
1343
+ downloadTimeoutMs?: number;
1344
+ driver: "vercel";
1345
+ token?: string;
1346
+ }
1347
+ interface S3BlobStoreConfig extends HostedBlobStoreConfig {
1348
+ bucket: string;
1349
+ credentials?: {
1350
+ accessKeyId: string;
1351
+ secretAccessKey: string;
1352
+ sessionToken?: string;
1353
+ };
1354
+ defaultUrlExpiresIn?: number;
1355
+ driver: "s3";
1356
+ endpoint?: string;
1357
+ forcePathStyle?: boolean;
1358
+ publicBaseUrl?: string;
1359
+ region?: string;
1360
+ }
1361
+ interface GcsBlobStoreConfig extends HostedBlobStoreConfig {
1362
+ bucket: string;
1363
+ credentials?: {
1364
+ client_email: string;
1365
+ private_key: string;
1366
+ };
1367
+ defaultUrlExpiresIn?: number;
1368
+ driver: "gcs";
1369
+ keyFilename?: string;
1370
+ projectId?: string;
1371
+ publicBaseUrl?: string;
1372
+ }
1373
+ interface AzureBlobStoreConfig extends HostedBlobStoreConfig {
1374
+ accountKey?: string;
1375
+ accountName?: string;
1376
+ connectionString?: string;
1377
+ container: string;
1378
+ defaultUrlExpiresIn?: number;
1379
+ driver: "azure";
1380
+ endpoint?: string;
1381
+ publicBaseUrl?: string;
1382
+ sasToken?: string;
1383
+ }
1384
+ interface NetlifyBlobsStoreConfig extends HostedBlobStoreConfig {
1385
+ consistency?: "eventual" | "strong";
1386
+ deployScoped?: boolean;
1387
+ driver: "netlify-blobs";
1388
+ name: string;
1389
+ siteID?: string;
1390
+ token?: string;
1391
+ }
1392
+ type BlobStoreConfig = AzureBlobStoreConfig | CloudflareR2BlobStoreConfig | FsBlobStoreConfig | GcsBlobStoreConfig | MinioBlobStoreConfig | NetlifyBlobsStoreConfig | S3BlobStoreConfig | VercelBlobStoreConfig;
1393
+ interface MinioBlobStoreConfig extends HostedBlobStoreConfig {
1394
+ accessKeyId?: string;
1395
+ bucket?: string;
1396
+ defaultUrlExpiresIn?: number;
1397
+ driver: "minio";
1398
+ endpoint?: string;
1399
+ forcePathStyle?: boolean;
1400
+ publicBaseUrl?: string;
1401
+ region?: string;
1402
+ secretAccessKey?: string;
1403
+ }
1404
+ interface ResolvedCloudflareR2BlobStoreConfig extends CloudflareR2BlobStoreConfig, ResolvedBlobStoreSecrets {
1405
+ binding: string;
1406
+ /** Set only in `vite dev` for a store that the Cloudflare preset picks: without the R2 binding, the store uses this local store. */
1407
+ localFallback?: ResolvedFsBlobStoreConfig;
1408
+ }
1409
+ interface ResolvedFsBlobStoreConfig extends FsBlobStoreConfig {
1410
+ base: string;
1411
+ }
1412
+ interface ResolvedBlobStoreSecrets {
1413
+ /** The env variable that holds each credential option, by option path. The resolved config has the mask in place of the value. */
1414
+ secretEnv?: Record<string, string>;
1415
+ }
1416
+ interface BlobServeRouteOptions {
1417
+ headers?: Record<string, string>;
1418
+ publicBaseUrl?: string;
1419
+ route?: string;
1420
+ /** A key of `blob.stores`. Defaults to `"default"`. */
1421
+ store?: string;
1422
+ }
1423
+ /** Serves every object of the store to anyone who has its URL, without sign-in. */
1424
+ interface BlobPublicServeOptions extends BlobServeRouteOptions {
1425
+ access: "public";
1426
+ anonymous?: never;
1427
+ authorize?: never;
1428
+ }
1429
+ /** Serves an object only when the request passes Auth, and the `authorize` export of `server/blob.ts` when it exists. */
1430
+ interface BlobAuthorizedServeOptions extends BlobServeRouteOptions {
1431
+ /** Requires a signed-in Auth session. Export `authorize` from `server/blob.ts` to also decide each request. */
1432
+ authorize: true;
1433
+ /**
1434
+ * Also runs the `authorize` export for signed-out callers, with `session` and `user` set to `null`.
1435
+ * Requires an `authorize` export (type `BlobServeAnonymousAuthorize`).
1436
+ */
1437
+ anonymous?: boolean;
1438
+ access?: never;
1439
+ }
1440
+ /** The serve route. Choose `access: "public"` or `authorize: true`: ViteHub does not pick public access for you. */
1441
+ type BlobServeOptions = BlobPublicServeOptions | BlobAuthorizedServeOptions;
1442
+ interface BlobModuleBaseOptions {
1443
+ /** Image variants of served objects. Set `false` to always serve originals. */
1444
+ images?: false | BlobImagesOptions;
1445
+ serve?: false | BlobServeOptions;
1446
+ }
1447
+ interface BlobStoresConfig extends BlobModuleBaseOptions {
1448
+ stores: Record<string, BlobStoreConfig>;
1449
+ }
1450
+ type BlobOptions = false | BlobStoresConfig | (BlobModuleBaseOptions & HostedBlobStoreConfig & {
1451
+ driver?: undefined;
1452
+ } & Partial<Pick<ResolvedCloudflareR2BlobStoreConfig, "binding" | "bucketName" | "jurisdiction">>) | (BlobModuleBaseOptions & HostedBlobStoreConfig & {
1453
+ driver?: undefined;
1454
+ } & Partial<Pick<NetlifyBlobsStoreConfig, "name">>) | (BlobModuleBaseOptions & BlobStoreConfig);
1455
+ //#endregion
1456
+ //#region ../browser/dist/types-lA5LsVzt.d.ts
1457
+ //#region src/types.d.ts
1458
+ type BrowserEngine = "chromium" | "kitesurf";
1459
+ //#endregion
1460
+ //#region ../browser/dist/vite.d.ts
1461
+ //#endregion
1462
+ //#region src/vite.d.ts
1463
+ interface BrowserOptions {
1464
+ binding?: string;
1465
+ engine?: BrowserEngine;
1466
+ remote?: boolean;
1467
+ }
1468
+ //#endregion
1469
+ //#region ../channels/dist/vite.d.ts
1470
+ interface ChannelsOptions {
1471
+ projectRoot?: string;
1472
+ }
1473
+ //#endregion
1474
+ //#region ../connections/dist/types-M5OXTk-z.d.ts
1475
+ /**
1476
+ * How long the database keeps Connection activity. Connections write one activity event per
1477
+ * provider request. Each limit is a positive integer.
1478
+ */
1479
+ interface ConnectionActivityRetention {
1480
+ /** Delete events older than this many milliseconds. Defaults to 14 days. */
1481
+ maxAgeMs?: number;
1482
+ /** Keep at most this many events, the newest first. Defaults to 10,000. */
1483
+ maxRecords?: number;
1484
+ }
1485
+ //#endregion
1486
+ //#region ../connections/dist/vite.d.ts
1487
+ interface ConnectionsVitePluginOptions {
1488
+ /** Agent name used to select a function-form `vitehub({ publicUrl })` origin. */
1489
+ agentName?: string;
1490
+ /**
1491
+ * How long the database keeps Connection activity, one event per provider request. Defaults to
1492
+ * 14 days and at most 10,000 events. `false` keeps all activity.
1493
+ */
1494
+ activityRetention?: ConnectionActivityRetention | false;
1495
+ /**
1496
+ * Module whose default export is the access policy of the management API, in development and
1497
+ * production. Export a function that authenticates the `Request` and returns `user:<id>`, or
1498
+ * `undefined` to deny it. Export `"development"` to allow the development server without Auth.
1499
+ * Without this module, development uses `"development"`.
1500
+ */
1501
+ actor?: string;
1502
+ /** Module that exports the ViteHub Databases as `db` and `databases`. Set `false` when the app has no database. */
1503
+ database?: string | false;
1504
+ /** The Database that stores grants, approvals, and activity. Defaults to `default`. */
1505
+ databaseName?: string;
1506
+ /** Package that the generated handler imports from. */
1507
+ importBase?: string;
1508
+ /**
1509
+ * Mount the management API in production. The development server always mounts it.
1510
+ * Production requires an actor module, from `actor` or `management.actor`.
1511
+ */
1512
+ management?: boolean | {
1513
+ actor: string;
1514
+ };
1515
+ /**
1516
+ * Folder that receives `.vitehub/types/connections.d.ts`, relative to the project root. Turning Connections off
1517
+ * removes the declaration from the project root only: another app can share a custom folder, so delete a custom
1518
+ * folder's declaration by hand when no app uses it any more.
1519
+ */
1520
+ projectRoot?: string;
1521
+ }
1522
+ //#endregion
1523
+ //#region ../email/dist/vite.d.ts
1524
+ type EmailDriverName = "cloudflare" | "log" | "resend";
1525
+ /** Development outbox options. The outbox is active only in `vite dev`. */
1526
+ interface EmailOutboxOptions {
1527
+ /**
1528
+ * Number of messages to keep in memory. The oldest message is removed first. The value must be an integer from 1
1529
+ * to 1000.
1530
+ * @default 50
1531
+ */
1532
+ limit?: number;
1533
+ }
1534
+ interface EmailOptions {
1535
+ driver: EmailDriverName;
1536
+ options?: EnvRuntimeConfigOptions;
1537
+ /**
1538
+ * Development outbox. In `vite dev`, `email.send()` records each message. `false` disables the outbox, and then
1539
+ * `remote: true` is required. Build output never contains the outbox.
1540
+ * @default { limit: 50 }
1541
+ */
1542
+ outbox?: false | EmailOutboxOptions;
1543
+ /**
1544
+ * `true` makes `vite dev` send each message through the provider, after the outbox records it. Without it, a dev
1545
+ * send stays in the outbox, returns an `outbox-<n>` id with `driver: "outbox"`, and makes no provider request.
1546
+ * Builds ignore `remote`.
1547
+ * @default false
1548
+ */
1549
+ remote?: boolean;
1550
+ }
1551
+ //#endregion
1552
+ //#region ../kv/dist/types-Dv-OSXZC.d.ts
1553
+ interface CloudflareKVStoreConfig {
1554
+ driver: "cloudflare";
1555
+ binding?: string;
1556
+ /**
1557
+ * In `vite dev`, use the real namespace: ViteHub writes `remote: true` on the Wrangler binding and does not fall back
1558
+ * to the local `fs-lite` store. Writes change real data. Builds ignore it.
1559
+ */
1560
+ remote?: boolean;
1561
+ /** Cloudflare KV namespace id. When omitted, the build reads the id recorded by `vitehub provision run`. */
1562
+ namespaceId?: string;
1563
+ /** Cloudflare KV namespace title that `vitehub provision run` finds or creates when `namespaceId` is not set. */
1564
+ namespaceName?: string;
1565
+ }
1566
+ interface UpstashKVStoreConfig {
1567
+ driver: "upstash";
1568
+ /** An Upstash store is always remote, in `vite dev` too. */
1569
+ remote?: true;
1570
+ token?: string;
1571
+ url?: string;
1572
+ /**
1573
+ * Prefix of every key in Upstash. Default `vitehub:kv:<store>`, as for a Redis store, so `kv.clear()` and `kv.list()`
1574
+ * stay inside the store. An empty value uses the default.
1575
+ */
1576
+ base?: string;
1577
+ }
1578
+ interface RedisKVStoreConfig {
1579
+ driver: "redis";
1580
+ /**
1581
+ * The Redis URL, such as `redis://user:password@host:6379`. Default `env:REDIS_URL`: the server reads `REDIS_URL`
1582
+ * when the store starts, not at build time. `env:<NAME>` reads another variable. A literal URL goes into the build
1583
+ * output, so keep passwords in a variable.
1584
+ */
1585
+ url?: string;
1586
+ /**
1587
+ * Prefix of every key in Redis. Default `vitehub:kv:<store>`, which keeps keys that are not ViteHub's apart.
1588
+ * The generated store segment escapes `%`, `:`, `/`, `\`, and `?`; an empty store name uses `%`.
1589
+ * Two ViteHub apps on one Redis database share this default, so give each app its own database or `base`.
1590
+ * An empty value uses the default.
1591
+ */
1592
+ base?: string;
1593
+ /** A Redis store uses the server that `url` points to, in `vite dev` too. */
1594
+ remote?: never;
1595
+ }
1596
+ interface DatabaseKVStoreConfig {
1597
+ driver: "database";
1598
+ /**
1599
+ * 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.
1601
+ */
1602
+ database?: string;
1603
+ /** A Database store uses the Database of the app, in `vite dev` too. */
1604
+ remote?: never;
1605
+ }
1606
+ interface DenoKVStoreConfig {
1607
+ driver: "deno-kv";
1608
+ path?: string;
1609
+ /** A Deno KV store is local. */
1610
+ remote?: false;
1611
+ }
1612
+ interface FsLiteKVStoreConfig {
1613
+ driver: "fs-lite";
1614
+ base?: string;
1615
+ /** An `fs-lite` store is local. */
1616
+ remote?: false;
1617
+ }
1618
+ /** A store without `driver`. ViteHub infers the driver from the host and the env. */
1619
+ interface InferredKVStoreConfig {
1620
+ driver?: undefined;
1621
+ /**
1622
+ * In `vite dev`, the inferred store is local unless this is `true`: Upstash env and the Vercel host do not select
1623
+ * Upstash, and the Cloudflare host uses the local `fs-lite` store when the dev runtime has no KV binding. With
1624
+ * `true`, `vite dev` uses the real store, so writes change real data. Builds ignore it.
1625
+ */
1626
+ remote?: boolean;
1627
+ }
1628
+ type KVStoreConfig = CloudflareKVStoreConfig | DatabaseKVStoreConfig | DenoKVStoreConfig | FsLiteKVStoreConfig | RedisKVStoreConfig | UpstashKVStoreConfig;
1629
+ interface KVStoresConfig {
1630
+ stores: Record<string, KVStoreConfig>;
1631
+ }
1632
+ type KVOptions = KVStoreConfig | InferredKVStoreConfig | KVStoresConfig | false;
1633
+ //#endregion
1634
+ //#region ../mcp/dist/index-DBxZC3vY.d.ts
1635
+ /** An icon that clients show for the server. `src` is an `https:` or `data:` URI. */
1636
+ interface McpIcon {
1637
+ src: string;
1638
+ mimeType?: string;
1639
+ /** Sizes such as `"48x48"`, or `"any"` for a scalable image. */
1640
+ sizes?: string[];
1641
+ theme?: "light" | "dark";
1642
+ }
1643
+ //#endregion
1644
+ //#region src/index.d.ts
1645
+ declare global {
1646
+ namespace ViteHub {
1647
+ /** Generated declarations set `hooks` to the type of the default export of `server/mcp.ts`. */
1648
+ interface McpRegistry {}
1649
+ }
1650
+ }
1651
+ /** The `serverInfo` that MCP clients show. An icon `src` or `websiteUrl` that starts with `/` is a path on the request origin. */
1652
+ interface McpServerInfoOptions {
1653
+ /** Defaults to the app name. */
1654
+ name?: string;
1655
+ /** Defaults to `name`. */
1656
+ title?: string;
1657
+ /** Defaults to `"1"`. */
1658
+ version?: string;
1659
+ description?: string;
1660
+ websiteUrl?: string;
1661
+ icons?: McpIcon[];
1662
+ }
1663
+ /** Options of `vitehub({ mcp })`. */
1664
+ interface McpOptions {
1665
+ /** The route of the MCP server. Defaults to `/mcp`. */
1666
+ route?: string;
1667
+ /**
1668
+ * Require an OAuth access token from `mcpOAuth()` of `vite-hub/auth/mcp`. Defaults to `true`, and then the app needs
1669
+ * `auth`. Set `false` to let anyone call every tool, or to check callers in each handler. Set `"optional"` to serve
1670
+ * one route to everyone: anyone may list the tools and call those with `access: "public"`, and a call to another tool
1671
+ * without a token returns a tool error with an `mcp/www_authenticate` challenge, so ChatGPT asks the person to sign in.
1672
+ */
1673
+ auth?: boolean | "optional";
1674
+ /**
1675
+ * A second route, such as `/mcp`, that serves only the tools with `access: "public"`, with no sign-in. MCP clients do not
1676
+ * sign in on a route that answers without a token, so the tools that need a person stay on `route`. Needs `auth: true`.
1677
+ */
1678
+ publicRoute?: string;
1679
+ /** What `initialize` tells the Agent about the server, such as which tool to call first. Defaults to a short generic text. */
1680
+ instructions?: string;
1681
+ /** The name, title, version, description, website, and icons that MCP clients show. */
1682
+ serverInfo?: McpServerInfoOptions;
1683
+ }
1684
+ //#endregion
1685
+ //#region ../rate-limit/dist/types-OzukEqHf.d.ts
1686
+ /**
1687
+ * `kv` counts in the default KV store, shared by every server process when KV uses `redis`, `database`, or `upstash`.
1688
+ * With another KV driver, it counts in process memory and prints a warning at boot.
1689
+ */
1690
+ type RateLimitDriverName = "auto" | "cloudflare" | "kv" | "memory";
1691
+ interface RateLimitOptions {
1692
+ /** The driver of the counters. Defaults to `auto`. */
1693
+ driver?: RateLimitDriverName;
1694
+ namespace?: string;
1695
+ projectRoot?: string;
1696
+ scanDirs?: string[];
1697
+ }
1698
+ //#endregion
1699
+ //#region ../realtime/dist/types-Cvm0G3VJ.d.ts
1700
+ interface RealtimeOptions {
1701
+ /**
1702
+ * The driver that runs the rooms. `auto` (default) picks Durable Objects on Cloudflare and memory on the dev server. A
1703
+ * Node build picks when the server starts: Redis with `REDIS_URL`, else Postgres on the connection of the Default
1704
+ * Database when it is on Postgres (`REALTIME_POSTGRES_URL` overrides it), else memory. `postgres` and `redis` require
1705
+ * their connection. `memory` keeps rooms in one process.
1706
+ */
1707
+ driver?: "auto" | "cloudflare" | "memory" | "postgres" | "redis";
1708
+ /**
1709
+ * Keeps the rooms of this app apart from other apps on the same Redis or Postgres. Defaults to the `name` of
1710
+ * `vitehub()`, else the `name` in the root `package.json`, else the root folder name. `REALTIME_NAMESPACE` replaces
1711
+ * it when the server starts.
1712
+ */
1713
+ namespace?: string;
1714
+ projectRoot?: string;
1715
+ }
1716
+ //#endregion
1717
+ //#region ../sandbox/dist/module-types-BoOZiNN4.d.ts
1718
+ //#endregion
1719
+ //#region src/task/size.d.ts
1720
+ /** The size of the machine that runs every Sandbox Task. Both values are minimums. */
1721
+ interface SandboxTaskSizeOptions {
1722
+ /** Minimum vCPUs. ViteHub picks the smallest provider size that gives at least this many. */
1723
+ cpu?: number;
1724
+ /** Minimum memory in MiB. ViteHub picks the smallest provider size that gives at least this much. */
1725
+ memory?: number;
1726
+ }
1727
+ interface CloudflareSandboxTaskOptions {
1728
+ sleepAfter?: string | number;
1729
+ keepAlive?: boolean;
1730
+ normalizeId?: boolean;
1731
+ }
1732
+ interface SandboxTaskDevOptions {
1733
+ /**
1734
+ * `vite dev` runs Sandbox Tasks as processes on this machine, with no isolation and no provider account.
1735
+ * Set `true` to use the host's Sandbox in `vite dev` too.
1736
+ */
1737
+ remote?: boolean;
1738
+ }
1739
+ interface VercelSandboxTaskDriverOptions extends SandboxTaskSizeOptions, SandboxTaskDevOptions {
1740
+ driver: 'vercel';
1741
+ runtime?: string;
1742
+ ports?: number[];
1743
+ source?: VercelSandboxSource;
1744
+ /** `"allow-all"` (default), `"deny-all"`, or `{ allow: hostnames }`. Vercel also takes `subnets`. */
1745
+ networkPolicy?: VercelSandboxNetworkPolicy;
1746
+ token?: string;
1747
+ teamId?: string;
1748
+ projectId?: string;
1749
+ }
1750
+ interface CloudflareSandboxTaskDefinitionDriverOptions extends SandboxTaskSizeOptions, SandboxTaskDevOptions {
1751
+ driver: 'cloudflare';
1752
+ /** Maximum number of Containers that run at once. Defaults to 12. */
1753
+ maxInstances?: number;
1754
+ binding?: string;
1755
+ className?: string;
1756
+ migrationTag?: string;
1757
+ name?: string;
1758
+ sandboxId?: string;
1759
+ sleepAfter?: CloudflareSandboxTaskOptions['sleepAfter'];
1760
+ keepAlive?: CloudflareSandboxTaskOptions['keepAlive'];
1761
+ normalizeId?: CloudflareSandboxTaskOptions['normalizeId'];
1762
+ /** `"allow-all"` (default), `"deny-all"`, or `{ allow: hostnames }`. Applies when the Container starts. */
1763
+ networkPolicy?: SandboxNetworkPolicy;
1764
+ }
1765
+ type SandboxTaskDefinitionDriverOptions = VercelSandboxTaskDriverOptions | CloudflareSandboxTaskDefinitionDriverOptions;
1766
+ type AgentSandboxTaskConfig = SandboxTaskDefinitionDriverOptions | ({
1767
+ driver?: undefined;
1768
+ name?: string;
1769
+ } & SandboxTaskSizeOptions & SandboxTaskDevOptions);
1770
+ //#endregion
1771
+ //#region ../sandbox/dist/task/vite.d.ts
1772
+ //#endregion
1773
+ //#region src/task/vite.d.ts
1774
+ type SandboxTaskOptions = AgentSandboxTaskConfig | false;
1775
+ //#endregion
1776
+ //#region ../schedule/dist/vite.d.ts
1777
+ interface ScheduleProcessRuntimeOptions {
1778
+ catchUpMs?: number;
1779
+ concurrency?: number;
1780
+ driver: "process";
1781
+ intervalMs?: number;
1782
+ /** Milliseconds that a server holds an occurrence after it stops, before another server may run it. Defaults to `60000`. */
1783
+ leaseTtlMs?: number;
1784
+ prefix?: string;
1785
+ }
1786
+ interface ScheduleOptions {
1787
+ /**
1788
+ * Cron per Schedule name for this build's host, in place of the cron that the Schedule declares. Set it in the
1789
+ * host's build config, such as `{ cleanup: "0 0 * * *" }` for Vercel Hobby, which runs cron jobs at most once a day.
1790
+ */
1791
+ cron?: Readonly<Record<string, string>>;
1792
+ providerOutput?: "auto" | "standalone" | "nitro" | false;
1793
+ projectRoot?: string;
1794
+ runtime?: ScheduleProcessRuntimeOptions;
1795
+ }
1796
+ //#endregion
1797
+ //#region ../workflow/dist/types-Dsmwsdlv.d.ts
1798
+ interface WorkflowSharedOptions {
1799
+ binding?: string;
1800
+ name?: string;
1801
+ }
1802
+ interface CloudflareWorkflowDriverOptions extends WorkflowSharedOptions {
1803
+ driver: "cloudflare";
1804
+ }
1805
+ interface VercelWorkflowDriverOptions extends WorkflowSharedOptions {
1806
+ driver: "vercel";
1807
+ }
1808
+ interface OpenWorkflowPostgresOptions {
1809
+ namespaceId?: string;
1810
+ runMigrations?: boolean;
1811
+ schema?: string;
1812
+ url?: WorkflowRuntimeConfigValue;
1813
+ }
1814
+ interface WorkflowRuntimeEnvDeclarationLike {
1815
+ default?: unknown;
1816
+ kind: "env-variable";
1817
+ source?: {
1818
+ kind: "env";
1819
+ name: string;
1820
+ names?: string[];
1821
+ };
1822
+ }
1823
+ type WorkflowRuntimeConfigValue = string | WorkflowRuntimeEnvDeclarationLike;
1824
+ interface OpenWorkflowSqliteOptions {
1825
+ namespaceId?: string;
1826
+ path?: WorkflowRuntimeConfigValue;
1827
+ runMigrations?: boolean;
1828
+ }
1829
+ interface OpenWorkflowWorkerOptions {
1830
+ /** How many runs one worker executes at once. Defaults to 10. Each Agent turn uses two runs. */
1831
+ concurrency?: number;
1832
+ }
1833
+ /**
1834
+ * The OpenWorkflow worker that the Nitro server starts. `false` keeps the server from starting it, for apps that run
1835
+ * a separate worker process with `startOpenWorkflowWorker()`.
1836
+ */
1837
+ type OpenWorkflowWorkerOption = false | OpenWorkflowWorkerOptions;
1838
+ interface OpenWorkflowDriverOptions extends WorkflowSharedOptions {
1839
+ postgres?: OpenWorkflowPostgresOptions;
1840
+ driver: "openworkflow";
1841
+ /**
1842
+ * `vite dev` keeps runs in the local SQLite file, even when `DATABASE_URL` or `OPENWORKFLOW_POSTGRES_URL` is set.
1843
+ * `true` lets it use that storage, so the dev server can run the runs of a shared database. Builds ignore it.
1844
+ */
1845
+ remote?: boolean;
1846
+ sqlite?: OpenWorkflowSqliteOptions;
1847
+ worker?: OpenWorkflowWorkerOption;
1848
+ }
1849
+ interface InferredWorkflowDriverOptions extends WorkflowSharedOptions {
1850
+ postgres?: OpenWorkflowPostgresOptions;
1851
+ driver?: undefined;
1852
+ /** See `OpenWorkflowProviderOptions.remote`. */
1853
+ remote?: boolean;
1854
+ sqlite?: OpenWorkflowSqliteOptions;
1855
+ worker?: OpenWorkflowWorkerOption;
1856
+ }
1857
+ type WorkflowDriverOptions = CloudflareWorkflowDriverOptions | OpenWorkflowDriverOptions | VercelWorkflowDriverOptions;
1858
+ type WorkflowModuleDriverOptions = InferredWorkflowDriverOptions | WorkflowDriverOptions;
1859
+ type WorkflowOptions = false | WorkflowModuleDriverOptions;
1860
+ //#endregion
1861
+ //#region ../i18n/dist/locales-DIWHfY3L.d.ts
1862
+ //#region src/locales.d.ts
1863
+ /** The `i18n` option of `vitehub()` and `vite-hub/nuxt`. */
1864
+ interface I18nOptions {
1865
+ /**
1866
+ * Locales of the app, as BCP 47 tags. The first one is the source locale: the language that you write in the code.
1867
+ * @example ["en", "es", "de"]
1868
+ */
1869
+ locales: readonly string[];
1870
+ /**
1871
+ * Cookie that stores the locale that a user picks with `setLocale()`.
1872
+ * @default "locale"
1873
+ */
1874
+ cookie?: string;
1875
+ /**
1876
+ * Name of a Workspace with retained history that stores the translations. The server reads its `published` ref,
1877
+ * so a published translation is live without a deploy. Without it, translations are records in `locales/<locale>/`.
1878
+ * @example "translations"
1879
+ */
1880
+ workspace?: string;
1881
+ }
1882
+ //#endregion
1883
+ //#region ../queue/dist/types-CiuSIPR0.d.ts
1884
+ interface QueueSharedOptions {
1885
+ cache?: boolean;
1886
+ }
1887
+ interface CloudflareQueueModuleDriverOptions extends QueueSharedOptions {
1888
+ binding?: string;
1889
+ namePrefix?: string;
1890
+ driver: "cloudflare";
1891
+ }
1892
+ interface VercelQueueModuleDriverOptions extends QueueSharedOptions {
1893
+ driver: "vercel";
1894
+ region?: string;
1895
+ }
1896
+ interface LocalQueueModuleDriverOptions extends QueueSharedOptions {
1897
+ /** Directory of the stored jobs, relative to the working directory. Defaults to `.vitehub/data/queue`. */
1898
+ base?: string;
1899
+ driver: "local";
1900
+ }
1901
+ interface PostgresQueueModuleDriverOptions extends QueueSharedOptions {
1902
+ driver: "postgres";
1903
+ }
1904
+ type QueueModuleDriverOptions = CloudflareQueueModuleDriverOptions | LocalQueueModuleDriverOptions | PostgresQueueModuleDriverOptions | VercelQueueModuleDriverOptions;
1905
+ type QueueOptions = false | (QueueSharedOptions & {
1906
+ base?: string;
1907
+ namePrefix?: string;
1908
+ driver?: undefined;
1909
+ }) | QueueModuleDriverOptions;
1910
+ //#endregion
1911
+ //#region src/plugins.d.ts
1912
+ /** Agent options of `vitehub()`. */
1913
+ interface AgentOptions extends AgentOptions$1 {
1914
+ /**
1915
+ * Invocation journal for Agent Definitions from `vite-hub/agent` that do not set `invocations`. The Console reads it.
1916
+ * 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.
1918
+ * `"database"` uses the app's ViteHub Database. `"memory"` keeps records in the server process. `false` records no journal.
1919
+ * Requires Nitro-hosted Agents. Netlify and `runtime: "deno"` require `false` and journals on each Agent Definition.
1920
+ */
1921
+ invocations?: AgentInvocationsDefault;
1922
+ }
1923
+ /** Cloudflare options of `vitehub()`. */
1924
+ interface CloudflareOptions {
1925
+ /**
1926
+ * Writes the non-secret Server Env values set at build time to the Worker's `vars` in the generated `wrangler.json`.
1927
+ * ViteHub reads them from the process environment and the `.env` files Vite loads for the build mode. It never
1928
+ * writes a secret, a default, or a var that the Wrangler config already sets.
1929
+ */
1930
+ vars?: boolean;
1931
+ }
1932
+ /** `connections` options of `vitehub()`. */
1933
+ type ConnectionsOptions = Omit<ConnectionsVitePluginOptions, "database" | "databaseName" | "importBase"> & {
1934
+ /** The Database that stores grants, approvals, and activity, such as `"users"`. Defaults to `default`. */
1935
+ database?: string;
1936
+ };
1937
+ /** Options of the Nuxt client plugin of `@vite-hub/device`. */
1938
+ interface ViteHubDeviceOptions {
1939
+ /** The `version` of `openDevice()`. A change deletes the stored copies. Default: none, so a deploy keeps them. */
1940
+ version?: string;
1941
+ /** `false`: the plugin does not name the account from Auth, and the app calls `setDeviceAccount()`. */
1942
+ account?: false;
1943
+ }
1944
+ interface ViteHubNodeOptions {
1945
+ /**
1946
+ * The number of server instances that run this build. The server fails at boot when it is greater than 1 and a
1947
+ * primitive keeps its state in one process or on one host, such as the `fs-lite` KV store or the memory Rate Limit.
1948
+ * `VITEHUB_INSTANCES` overrides it when the server starts. Default: 1.
1949
+ */
1950
+ instances?: number;
1951
+ }
1952
+ interface ViteHubOptions {
1953
+ /** Local storage defaults for a Node host with a persistent filesystem. Relative to the working directory. */
1954
+ dataDir?: string;
1955
+ /**
1956
+ * The host to build for. When omitted, `detectHost()` reads it from `VITEHUB_HOST`, `NITRO_PRESET`,
1957
+ * `SERVER_PRESET`, or the provider variables of Cloudflare Workers Builds, Netlify, Vercel, and Deno Deploy.
1958
+ * Without any of them, ViteHub builds for `"node"`. `vitehub deploy --host` overrides it for its build.
1959
+ */
1960
+ host?: ViteHubHost;
1961
+ /**
1962
+ * The name of the app. Host resources, such as the Cloudflare Worker, use it in lower case with dashes, and the
1963
+ * Console shows it as written. Default: the `name` in `package.json`.
1964
+ */
1965
+ name?: string;
1966
+ /**
1967
+ * Public origin of the deployed application, such as `https://agents.example.com`.
1968
+ * Console links, GitHub activity links, telemetry session links, the Auth base URL, and Connections OAuth callbacks use it.
1969
+ * A function receives each discovered Agent name. Builds only; `vite dev` uses the request origin.
1970
+ * Server code reads it with `resolvePublicUrl()` from `vite-hub/runtime`. A string is also the default `--url` of
1971
+ * `vitehub channels sync` and `channels history`, and on the `cloudflare` host it adds the custom-domain route
1972
+ * unless the app configures Worker routing.
1973
+ */
1974
+ publicUrl?: string | ((agentName: string) => string);
1975
+ /**
1976
+ * Redirect every request to one canonical address. `host` sends other hosts, such as `www.example.com`, to
1977
+ * `example.com`. `https` sends `http:` to `https:`. `trailingSlash` adds or removes the slash at the end of page paths.
1978
+ * One redirect fixes all three: 301 for `GET` and `HEAD`, 308 for other methods. Local names, IP addresses, and
1979
+ * preview hosts such as `*.workers.dev` keep their host and scheme. `vite dev` never redirects. On Cloudflare, static
1980
+ * files run the Worker first so they redirect too. Redirect moved pages with Nitro `routeRules`. Default: off.
1981
+ */
1982
+ redirects?: RedirectsOptions;
1983
+ /**
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`.
1988
+ */
1989
+ trustProxy?: boolean;
1990
+ /**
1991
+ * Refuse browser writes from other origins that carry cookies, with 403, before any middleware or route runs. A
1992
+ * request is refused when its method is not GET, HEAD, or OPTIONS, it has a `Cookie` header, and its
1993
+ * `Sec-Fetch-Site` is `same-site` or `cross-site`, or its `Origin` is not the app's origin. Requests without cookies,
1994
+ * such as bearer-token clients and webhooks, pass. `exclude` lists path prefixes that take writes from other sites.
1995
+ * Default: `false`.
1996
+ */
1997
+ sameOriginWrites?: boolean | SameOriginWritesOptions;
1998
+ /**
1999
+ * Response headers and a request body limit for every route. By default, built output sends
2000
+ * `Strict-Transport-Security: max-age=31536000`, `X-Content-Type-Options: nosniff`, and
2001
+ * `Referrer-Policy: strict-origin-when-cross-origin` on each response that does not set them itself, and on static
2002
+ * files on Cloudflare, Netlify, and Vercel. `{ headers: false }` turns them off. `{ maxBodySize: "1mb" }` answers 413
2003
+ * to a larger request body. It adds no Content Security Policy.
2004
+ */
2005
+ security?: SecurityOptions;
2006
+ agent?: boolean | AgentOptions;
2007
+ /** `false` turns Auth off. `server/auth.ts` turns it on, and `defineAuth()` in that file holds every Auth option. */
2008
+ auth?: boolean;
2009
+ blob?: boolean | BlobOptions;
2010
+ browser?: boolean | BrowserOptions;
2011
+ /**
2012
+ * Storage for Nitro's `cache` mount, which `defineCachedFunction()` and `defineCachedEventHandler()` use.
2013
+ * `true` selects the host's store: Workers KV binding `CACHE`, Vercel Runtime Cache, Deno KV, or `.vitehub/data/cache` on Node.
2014
+ * Development uses `.vitehub/data/cache`.
2015
+ * `{ driver: "kv" }` stores the cache in the app's default KV store under the `nitro-cache:` prefix, in development too. It requires `kv`.
2016
+ */
2017
+ cache?: boolean | CacheOptions;
2018
+ channels?: boolean | ChannelsOptions;
2019
+ /** Options for the `node` host. Other hosts ignore them. */
2020
+ node?: ViteHubNodeOptions;
2021
+ /**
2022
+ * App-owned OAuth and API key Connections in `server/connections/`. They store grants in the `default` Database, or
2023
+ * in the Database that `database` names, and enable `database` when it is unset.
2024
+ */
2025
+ connections?: boolean | ConnectionsOptions;
2026
+ /**
2027
+ * The Console endpoint, `POST /_vitehub/rpc`, which the ViteHub Console at console.vitehub.dev and the CLI call with
2028
+ * signed requests. Off by default, but `vite dev` still serves the operation RPC for the CLI. `false` turns that RPC off too.
2029
+ * `true` takes calls signed with a key in `VITEHUB_CONSOLE_KEY_<NAME>`.
2030
+ * `{ auth: false }` takes calls without a signature, for development only.
2031
+ */
2032
+ console?: boolean | ConsoleOptions;
2033
+ /**
2034
+ * Writes a bundle report of each production build to `.vitehub/bundle/`: client and server size, the code that loads
2035
+ * at startup, and why each package is there. Read it with `vitehub bundle`. Off by default.
2036
+ */
2037
+ bundle?: boolean;
2038
+ /** Drizzle Databases in `server/databases/`. Without a Database Definition, an enabled database is one empty default Database. */
2039
+ database?: boolean | DatabaseOptions;
2040
+ /**
2041
+ * Stored reads in Nuxt, when the app installs `@vite-hub/device`. A client plugin opens the device: after hydration on
2042
+ * a page that the server rendered, else before the app mounts. With Auth, it names the account of `useUserSession()`
2043
+ * and waits for the copies to go on `signOut()`. `useStoredData`, `useStoredFetch`, `setDeviceAccount`, `clearDevice`,
2044
+ * and `inspectDevice` are auto-imported. `version` deletes the copies of another version. `account: false` leaves the
2045
+ * account to the app. `false` turns it off. A Vite app calls `openDevice()` itself.
2046
+ */
2047
+ device?: false | ViteHubDeviceOptions;
2048
+ email?: boolean | EmailOptions;
2049
+ /**
2050
+ * Public Env, Server Env, and build-time replacements in `public`, `server`, and `define`, with the options that resolve
2051
+ * them. On by default. `false` turns Env off.
2052
+ */
2053
+ env?: false | EnvOptions;
2054
+ /**
2055
+ * A health route for load balancers and container health checks, at `/_vitehub/health` unless `route` moves it.
2056
+ * It answers `{ ok, version, commit, vitehub }` and checks each Database, KV store, and Blob store of the app in `checks`. It
2057
+ * answers 503 when one fails, and never shows error text.
2058
+ */
2059
+ health?: boolean | HealthOptions;
2060
+ /**
2061
+ * What `vitehub deploy` does after it uploads the build: `check` lists paths that must answer with a 2xx status on
2062
+ * the deployed URL, and `indexNow: true` sends the sitemap URLs to IndexNow after a production deploy. With `health`,
2063
+ * the health route is checked too.
2064
+ */
2065
+ deploy?: DeployOptions;
2066
+ kv?: boolean | KVOptions;
2067
+ /**
2068
+ * Read logs in the Console and with `vitehub logs`. `true` keeps a bounded Evlog buffer in `vite dev`. A production
2069
+ * build needs `{ source }`, a server module that reads an existing backend. `{ source }` starts no logger.
2070
+ */
2071
+ logs?: boolean | LogsOptions;
2072
+ /**
2073
+ * The app MCP server at `/mcp`, with one tool per file in `server/mcp/tools/`. MCP clients sign in with `mcpOAuth()`
2074
+ * from `vite-hub/auth/mcp`, so it needs `auth`, unless `mcp: { auth: false }` lets anyone call every tool. Needs
2075
+ * `@vite-hub/mcp`.
2076
+ */
2077
+ mcp?: boolean | McpOptions;
2078
+ /**
2079
+ * Request logs through Evlog, and, with `service`, Agent telemetry and papercut reports through `useObservability()`.
2080
+ */
2081
+ observability?: boolean | ObservabilityOptions;
2082
+ /**
2083
+ * Queue Definitions in `server/queues/`. On Node, `true` uses Postgres with a Postgres Default Database, else local
2084
+ * files. An object sets Queue options, such as `cache`, or selects the Node driver with `driver`.
2085
+ */
2086
+ queue?: boolean | QueueOptions;
2087
+ /**
2088
+ * Messages in the source language, translated per request: `{ i18n: { locales: ["en", "es"] } }`. The first locale is
2089
+ * the language of the code. Write ``t`Save` `` in templates, and import `t` from `vite-hub/i18n` in scripts and server
2090
+ * 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.
2092
+ */
2093
+ i18n?: I18nOptions;
2094
+ /**
2095
+ * Comments on the app's pages. `true`, or an object with the Database, the SQL dialect, or `overlay: false` (no page
2096
+ * tool), turns it on, with `server/comments.ts` or else the default `defineComments()`, and turns the Database on
2097
+ * when `database` is unset. Default: on when the app has `server/comments.ts`. The Console does not turn it on.
2098
+ * `false` turns it off.
2099
+ */
2100
+ comments?: boolean | Pick<HubCommentsOptions, "database" | "dialect" | "overlay">;
2101
+ rateLimit?: boolean | RateLimitOptions;
2102
+ realtime?: boolean | RealtimeOptions;
2103
+ /**
2104
+ * A systemd unit for the server, written to `.output/<name>.service` by production builds on the `node` host. On by
2105
+ * default. It starts `node .output/server/index.mjs` in the project root, reads `.env` when it exists, and waits for the
2106
+ * Agent drain budget plus 30 seconds on stop. An object sets the name, user, directory, and environment. `false` writes
2107
+ * no unit. Other hosts ignore it.
2108
+ */
2109
+ systemd?: boolean | SystemdOptions;
2110
+ /** Cloudflare Worker build options. */
2111
+ cloudflare?: CloudflareOptions;
2112
+ /**
2113
+ * A Dockerfile for the server, written to `.output/Dockerfile` by production builds on the `node` host. On by default.
2114
+ * Build the image with `docker build -t <name> .output`. It runs `node .output/server/index.mjs` as the `node` user in
2115
+ * `/app`, mounts volumes for `/app/.vitehub` and a separate `dataDir`, stops on SIGTERM, and checks the `health`
2116
+ * route over HTTP when it is on. With native packages, build the app in the same Linux Node image that will run it.
2117
+ * `false` writes no Dockerfile. Other hosts ignore it.
2118
+ */
2119
+ docker?: boolean;
2120
+ /**
2121
+ * Sandbox Tasks in `server/sandbox-tasks/` and `*.sandbox-task.ts` files. Each run starts an isolated Cloudflare or
2122
+ * Vercel Sandbox. `true` uses the Sandbox of the host. An object sets the driver options, such as
2123
+ * `{ driver: "cloudflare", keepAlive: true, migrationTag: "v2" }` or `{ driver: "vercel", networkPolicy: "deny-all" }`.
2124
+ * `driver: "vercel"` also works on hosts without a Sandbox, such as `node`, with Vercel credentials. `vite dev` runs
2125
+ * each task as a local process with no isolation; `remote: true` uses the provider's Sandbox in dev too.
2126
+ */
2127
+ sandboxTask?: boolean | ViteHubSandboxTaskOptions;
2128
+ schedule?: boolean | ScheduleOptions;
2129
+ /**
2130
+ * Search engine files. `seo: { sitemap: true }` serves `/sitemap.xml` with the Nuxt pages without a dynamic part, the
2131
+ * static prerender routes, the published Content pages with a URL, and the entries of `server/sitemap.ts`, and
2132
+ * `/robots.txt` that names it unless the app has its own. URLs start with `publicUrl`, else the request origin.
2133
+ */
2134
+ seo?: SeoOptions;
2135
+ workflow?: boolean | WorkflowOptions;
2136
+ workspace?: boolean | WorkspaceOptions;
2137
+ }
2138
+ /** Queue options accepted by the framework distribution. */
2139
+ type ViteHubQueueOptions = QueueOptions;
2140
+ /** Sandbox Task options accepted by the framework distribution: the options of `hubSandboxTask()`. */
2141
+ 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 };