vite-hub 0.0.4 → 0.3.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 (1432) hide show
  1. package/README.md +265 -14
  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-F0YP5D5E.js +439 -0
  17. package/dist/access-policy-B_DCpZUt.js +73 -0
  18. package/dist/access-policy-BsB3QVe5.d.ts +109 -0
  19. package/dist/account-Bsu-LBOF.d.ts +195 -0
  20. package/dist/agent/capabilities.d.ts +1 -20
  21. package/dist/agent/capabilities.js +1 -7
  22. package/dist/agent/invocations/database.d.ts +1 -0
  23. package/dist/agent/invocations/database.js +2 -0
  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/observability.d.ts +1 -0
  29. package/dist/agent/observability.js +2 -0
  30. package/dist/agent/page.d.ts +1 -0
  31. package/dist/agent/page.js +2 -0
  32. package/dist/agent/process.d.ts +1 -0
  33. package/dist/agent/process.js +2 -0
  34. package/dist/agent/state.d.ts +1 -0
  35. package/dist/agent/state.js +2 -0
  36. package/dist/agent/ui/vue.d.ts +1 -0
  37. package/dist/agent/ui/vue.js +2 -0
  38. package/dist/agent/ui.d.ts +1 -0
  39. package/dist/agent/ui.js +2 -0
  40. package/dist/agent/vite.d.ts +1 -0
  41. package/dist/agent/vite.js +2 -0
  42. package/dist/agent-invocations.post-DIm8tJV2.js +423 -0
  43. package/dist/agent.d.ts +1 -7
  44. package/dist/agent.js +1 -31
  45. package/dist/agents-C94A4N9u.d.ts +29 -0
  46. package/dist/agents-DnHexzTJ.js +123 -0
  47. package/dist/agents-y5hBFHUQ.js +2 -0
  48. package/dist/auth/abilities.d.ts +1 -0
  49. package/dist/auth/abilities.js +2 -0
  50. package/dist/auth/database.d.ts +1 -0
  51. package/dist/auth/database.js +2 -0
  52. package/dist/auth/forward.d.ts +1 -0
  53. package/dist/auth/forward.js +2 -0
  54. package/dist/auth/mcp.d.ts +1 -0
  55. package/dist/auth/mcp.js +2 -0
  56. package/dist/auth/presets.d.ts +1 -0
  57. package/dist/auth/presets.js +2 -0
  58. package/dist/auth/schema.d.ts +1 -0
  59. package/dist/auth/schema.js +2 -0
  60. package/dist/auth-BFVHYizM.d.ts +120 -0
  61. package/dist/auth-operations-GcQk0O0X.js +34 -0
  62. package/dist/auth-types-DWpTBZvp.d.ts +90 -0
  63. package/dist/bin.d.ts +1 -1
  64. package/dist/bin.js +318 -50
  65. package/dist/blob/client.d.ts +1 -0
  66. package/dist/blob/client.js +2 -0
  67. package/dist/blob/media.d.ts +1 -0
  68. package/dist/blob/media.js +2 -0
  69. package/dist/blob/nuxt-image.d.ts +3 -0
  70. package/dist/blob/nuxt-image.js +3 -0
  71. package/dist/blob/vue.d.ts +1 -0
  72. package/dist/blob/vue.js +2 -0
  73. package/dist/blob-BRV6_wZa.js +26 -0
  74. package/dist/blob-CiUmptIp.d.ts +9 -0
  75. package/dist/bundle.d.ts +1 -0
  76. package/dist/bundle.js +2 -0
  77. package/dist/cache/operations.d.ts +5 -0
  78. package/dist/cache/operations.js +51 -0
  79. package/dist/cache.d.ts +28 -0
  80. package/dist/cache.js +219 -0
  81. package/dist/cli-DjoDGgT4.js +36 -0
  82. package/dist/cli-config--rAg6V-a.js +2 -0
  83. package/dist/cli-config-Bpjjfz5j.js +105 -0
  84. package/dist/cloudflare-env-lookup-DKXdr4P_.js +16 -0
  85. package/dist/cloudflare-prerender.mjs +3 -0
  86. package/dist/cloudflare-workers.d.ts +12 -0
  87. package/dist/cms/access.d.ts +1 -0
  88. package/dist/cms/access.js +2 -0
  89. package/dist/cms/vite.d.ts +1 -0
  90. package/dist/cms/vite.js +2 -0
  91. package/dist/cms.d.ts +3 -0
  92. package/dist/cms.js +3 -0
  93. package/dist/comments/anchor.d.ts +1 -0
  94. package/dist/comments/anchor.js +2 -0
  95. package/dist/comments/client.d.ts +1 -0
  96. package/dist/comments/client.js +2 -0
  97. package/dist/comments/database/postgres.d.ts +1 -0
  98. package/dist/comments/database/postgres.js +2 -0
  99. package/dist/comments/database.d.ts +1 -0
  100. package/dist/comments/database.js +2 -0
  101. package/dist/comments/realtime.d.ts +1 -0
  102. package/dist/comments/realtime.js +2 -0
  103. package/dist/comments/rpc.d.ts +1 -0
  104. package/dist/comments/rpc.js +2 -0
  105. package/dist/comments/runtime/auth.d.ts +1 -0
  106. package/dist/comments/runtime/auth.js +2 -0
  107. package/dist/comments/runtime.d.ts +1 -0
  108. package/dist/comments/runtime.js +2 -0
  109. package/dist/comments/server.d.ts +1 -0
  110. package/dist/comments/server.js +2 -0
  111. package/dist/comments/testing.d.ts +1 -0
  112. package/dist/comments/testing.js +2 -0
  113. package/dist/comments.d.ts +1 -0
  114. package/dist/comments.js +2 -0
  115. package/dist/connections/agent.d.ts +1 -0
  116. package/dist/connections/agent.js +2 -0
  117. package/dist/connections/chatgpt.d.ts +1 -0
  118. package/dist/connections/chatgpt.js +2 -0
  119. package/dist/connections/google.d.ts +1 -0
  120. package/dist/connections/google.js +2 -0
  121. package/dist/connections/operations.d.ts +1 -0
  122. package/dist/connections/operations.js +2 -0
  123. package/dist/connections/server.d.ts +1 -0
  124. package/dist/connections/server.js +2 -0
  125. package/dist/connections.d.ts +1 -0
  126. package/dist/connections.js +2 -0
  127. package/dist/console/auth-types.d.ts +2 -0
  128. package/dist/console/auth-types.js +1 -0
  129. package/dist/console/auth.d.ts +6 -0
  130. package/dist/console/auth.js +9 -0
  131. package/dist/console/runtime/auth-operations.d.ts +35 -0
  132. package/dist/console/runtime/auth-operations.js +2 -0
  133. package/dist/console/runtime/client/account-views.d.ts +17 -0
  134. package/dist/console/runtime/client/account-views.js +8 -0
  135. package/dist/console/runtime/client/account.d.ts +2 -0
  136. package/dist/console/runtime/client/account.js +1125 -0
  137. package/dist/console/runtime/client/add-primitive.ts +59 -0
  138. package/dist/console/runtime/client/app-identity.ts +44 -0
  139. package/dist/console/runtime/client/appearance.d.ts +62 -0
  140. package/dist/console/runtime/client/appearance.js +87 -0
  141. package/dist/console/runtime/client/auth-management.ts +67 -0
  142. package/dist/console/runtime/client/blob-media.d.ts +46 -0
  143. package/dist/console/runtime/client/blob-media.js +257 -0
  144. package/dist/console/runtime/client/command-search.ts +103 -0
  145. package/dist/console/runtime/client/comment-thread.d.ts +33 -0
  146. package/dist/console/runtime/client/comment-thread.js +62 -0
  147. package/dist/console/runtime/client/document-cache.ts +13 -0
  148. package/dist/console/runtime/client/documents.d.ts +3 -0
  149. package/dist/console/runtime/client/documents.js +2 -0
  150. package/dist/console/runtime/client/editor.d.ts +83 -0
  151. package/dist/console/runtime/client/editor.js +269 -0
  152. package/dist/console/runtime/client/env-groups.d.ts +28 -0
  153. package/dist/console/runtime/client/env-groups.js +39 -0
  154. package/dist/console/runtime/client/env-status.d.ts +35 -0
  155. package/dist/console/runtime/client/env-status.js +68 -0
  156. package/dist/console/runtime/client/format.d.ts +91 -0
  157. package/dist/console/runtime/client/format.js +2 -0
  158. package/dist/console/runtime/client/format.ts +267 -0
  159. package/dist/console/runtime/client/highlight-languages.ts +27 -0
  160. package/dist/console/runtime/client/invocation-deletion.d.ts +17 -0
  161. package/dist/console/runtime/client/invocation-deletion.js +25 -0
  162. package/dist/console/runtime/client/invocation.d.ts +28 -0
  163. package/dist/console/runtime/client/invocation.js +81 -0
  164. package/dist/console/runtime/client/live.d.ts +67 -0
  165. package/dist/console/runtime/client/live.js +158 -0
  166. package/dist/console/runtime/client/mcp-client.d.ts +58 -0
  167. package/dist/console/runtime/client/mcp-client.js +125 -0
  168. package/dist/console/runtime/client/media-library.d.ts +2 -0
  169. package/dist/console/runtime/client/media-library.js +2 -0
  170. package/dist/console/runtime/client/media-uploads.d.ts +33 -0
  171. package/dist/console/runtime/client/media-uploads.js +97 -0
  172. package/dist/console/runtime/client/media.d.ts +2 -0
  173. package/dist/console/runtime/client/media.js +13 -0
  174. package/dist/console/runtime/client/operation-view.d.ts +44 -0
  175. package/dist/console/runtime/client/operation-view.js +161 -0
  176. package/dist/console/runtime/client/presence.d.ts +98 -0
  177. package/dist/console/runtime/client/presence.js +255 -0
  178. package/dist/console/runtime/client/preview.d.ts +86 -0
  179. package/dist/console/runtime/client/preview.js +125 -0
  180. package/dist/console/runtime/client/problem.d.ts +19 -0
  181. package/dist/console/runtime/client/problem.js +59 -0
  182. package/dist/console/runtime/client/project-link.d.ts +2 -0
  183. package/dist/console/runtime/client/project-link.js +2 -0
  184. package/dist/console/runtime/client/project-session.d.ts +221 -0
  185. package/dist/console/runtime/client/project-session.js +723 -0
  186. package/dist/console/runtime/client/project.d.ts +48 -0
  187. package/dist/console/runtime/client/project.js +2 -0
  188. package/dist/console/runtime/client/projects.d.ts +2 -0
  189. package/dist/console/runtime/client/projects.js +2 -0
  190. package/dist/console/runtime/client/publish.d.ts +12 -0
  191. package/dist/console/runtime/client/publish.js +18 -0
  192. package/dist/console/runtime/client/rate-limit.d.ts +36 -0
  193. package/dist/console/runtime/client/rate-limit.js +96 -0
  194. package/dist/console/runtime/client/read-only.d.ts +9 -0
  195. package/dist/console/runtime/client/read-only.js +12 -0
  196. package/dist/console/runtime/client/request.d.ts +55 -8
  197. package/dist/console/runtime/client/request.js +2 -133
  198. package/dist/console/runtime/client/route-query.d.ts +60 -0
  199. package/dist/console/runtime/client/route-query.js +2 -0
  200. package/dist/console/runtime/client/schedule-run.d.ts +13 -0
  201. package/dist/console/runtime/client/schedule-run.js +47 -0
  202. package/dist/console/runtime/client/schema-form.d.ts +2 -0
  203. package/dist/console/runtime/client/schema-form.js +296 -0
  204. package/dist/console/runtime/client/sections.d.ts +2 -12
  205. package/dist/console/runtime/client/sections.js +2 -41
  206. package/dist/console/runtime/client/sidebar.ts +84 -0
  207. package/dist/console/runtime/client/site-access.d.ts +32 -0
  208. package/dist/console/runtime/client/site-access.js +932 -0
  209. package/dist/console/runtime/client/stored.d.ts +33 -0
  210. package/dist/console/runtime/client/stored.js +2 -0
  211. package/dist/console/runtime/client/ticket.d.ts +2 -0
  212. package/dist/console/runtime/client/ticket.js +2 -0
  213. package/dist/console/runtime/client/toast.d.ts +39 -0
  214. package/dist/console/runtime/client/toast.js +35 -0
  215. package/dist/console/runtime/client/workflow.d.ts +20 -0
  216. package/dist/console/runtime/client/workflow.js +79 -0
  217. package/dist/console/runtime/components/console-account-api-keys.vue +195 -0
  218. package/dist/console/runtime/components/console-account-env.vue +286 -0
  219. package/dist/console/runtime/components/console-account-home.vue +427 -0
  220. package/dist/console/runtime/components/console-account-link.vue +68 -0
  221. package/dist/console/runtime/components/console-account-menu.vue +126 -0
  222. package/dist/console/runtime/components/console-account-rename.vue +67 -0
  223. package/dist/console/runtime/components/console-account-settings.vue +184 -0
  224. package/dist/console/runtime/components/console-account-setup.vue +82 -0
  225. package/dist/console/runtime/components/console-account-shell.vue +339 -0
  226. package/dist/console/runtime/components/console-account-sign-in.vue +152 -0
  227. package/dist/console/runtime/components/console-account-snippet.vue +89 -0
  228. package/dist/console/runtime/components/console-account-team-settings.vue +131 -0
  229. package/dist/console/runtime/components/console-account-team.vue +199 -0
  230. package/dist/console/runtime/components/console-account-unlink.vue +52 -0
  231. package/dist/console/runtime/components/console-activity-feed.vue +69 -0
  232. package/dist/console/runtime/components/console-add-primitive.vue +176 -0
  233. package/dist/console/runtime/components/console-agent-list.ts +61 -0
  234. package/dist/console/runtime/components/console-agent-session.vue +301 -0
  235. package/dist/console/runtime/components/console-app-crumb.vue +52 -0
  236. package/dist/console/runtime/components/console-app-logo.vue +44 -0
  237. package/dist/console/runtime/components/console-app-settings.vue +271 -0
  238. package/dist/console/runtime/components/console-app.vue +894 -669
  239. package/dist/console/runtime/components/console-auth-action.vue +241 -0
  240. package/dist/console/runtime/components/console-auth-activity.vue +162 -0
  241. package/dist/console/runtime/components/console-auth-chart.vue +105 -0
  242. package/dist/console/runtime/components/console-auth-detail.vue +379 -0
  243. package/dist/console/runtime/components/console-auth-event-list.vue +79 -0
  244. package/dist/console/runtime/components/console-auth-event-setup.vue +39 -0
  245. package/dist/console/runtime/components/console-auth-overview.vue +95 -0
  246. package/dist/console/runtime/components/console-auth-user-events.vue +62 -0
  247. package/dist/console/runtime/components/console-auth.vue +651 -0
  248. package/dist/console/runtime/components/console-blob-detail.vue +83 -0
  249. package/dist/console/runtime/components/console-blob.vue +160 -300
  250. package/dist/console/runtime/components/console-cache.vue +358 -0
  251. package/dist/console/runtime/components/console-code-text.vue +18 -0
  252. package/dist/console/runtime/components/console-comark-component.vue +146 -0
  253. package/dist/console/runtime/components/console-comment-thread.vue +320 -0
  254. package/dist/console/runtime/components/console-confirm.vue +46 -0
  255. package/dist/console/runtime/components/console-connection-state.vue +40 -0
  256. package/dist/console/runtime/components/console-connection.ts +18 -0
  257. package/dist/console/runtime/components/console-database-model.ts +51 -6
  258. package/dist/console/runtime/components/console-database.vue +310 -380
  259. package/dist/console/runtime/components/console-definitions.vue +491 -306
  260. package/dist/console/runtime/components/console-document-dashboard.vue +473 -0
  261. package/dist/console/runtime/components/console-document-diff.vue +43 -0
  262. package/dist/console/runtime/components/console-document-editor.vue +2806 -0
  263. package/dist/console/runtime/components/console-document-history.vue +118 -0
  264. package/dist/console/runtime/components/console-document-list.vue +575 -0
  265. package/dist/console/runtime/components/console-document-preview.vue +409 -0
  266. package/dist/console/runtime/components/console-document-settings.vue +106 -0
  267. package/dist/console/runtime/components/console-documents.vue +544 -0
  268. package/dist/console/runtime/components/console-env-details.vue +49 -0
  269. package/dist/console/runtime/components/console-env.vue +322 -0
  270. package/dist/console/runtime/components/console-facts.ts +13 -0
  271. package/dist/console/runtime/components/console-frame.vue +201 -1
  272. package/dist/console/runtime/components/console-home.vue +575 -155
  273. package/dist/console/runtime/components/console-icon.vue +19 -0
  274. package/dist/console/runtime/components/console-invocation-composer.vue +155 -0
  275. package/dist/console/runtime/components/console-kv.vue +225 -235
  276. package/dist/console/runtime/components/console-lazy-views.ts +2 -0
  277. package/dist/console/runtime/components/console-loading.vue +29 -0
  278. package/dist/console/runtime/components/console-mark.vue +3 -8
  279. package/dist/console/runtime/components/console-markdown-editor.vue +681 -0
  280. package/dist/console/runtime/components/console-mcp-callback.vue +76 -0
  281. package/dist/console/runtime/components/console-mcp-client.vue +255 -0
  282. package/dist/console/runtime/components/console-mcp-connect.vue +162 -0
  283. package/dist/console/runtime/components/console-mcp-connection.vue +219 -0
  284. package/dist/console/runtime/components/console-mcp-content.vue +157 -0
  285. package/dist/console/runtime/components/console-mcp-items.vue +346 -0
  286. package/dist/console/runtime/components/console-media-browser.vue +956 -0
  287. package/dist/console/runtime/components/console-media-crops.vue +168 -0
  288. package/dist/console/runtime/components/console-media-detail.vue +278 -0
  289. package/dist/console/runtime/components/console-media-dialog.vue +74 -0
  290. package/dist/console/runtime/components/console-media-field.vue +161 -0
  291. package/dist/console/runtime/components/console-media-focal.vue +138 -0
  292. package/dist/console/runtime/components/console-media-library.vue +132 -0
  293. package/dist/console/runtime/components/console-media-move.vue +161 -0
  294. package/dist/console/runtime/components/console-media-picker.vue +196 -0
  295. package/dist/console/runtime/components/console-media-uploads.vue +75 -0
  296. package/dist/console/runtime/components/console-new-chat.ts +27 -0
  297. package/dist/console/runtime/components/console-operation-view.vue +327 -0
  298. package/dist/console/runtime/components/console-page-changes.vue +207 -0
  299. package/dist/console/runtime/components/console-page-header.vue +82 -0
  300. package/dist/console/runtime/components/console-page-toolbar.vue +41 -0
  301. package/dist/console/runtime/components/console-presence-avatars.vue +74 -0
  302. package/dist/console/runtime/components/console-project-switcher.vue +212 -0
  303. package/dist/console/runtime/components/console-property-list.vue +41 -0
  304. package/dist/console/runtime/components/console-property-row.vue +59 -0
  305. package/dist/console/runtime/components/console-rail.vue +237 -0
  306. package/dist/console/runtime/components/console-rate-limit.vue +175 -0
  307. package/dist/console/runtime/components/console-relative-time.vue +74 -0
  308. package/dist/console/runtime/components/console-schema-date-input.vue +88 -0
  309. package/dist/console/runtime/components/console-schema-field.vue +450 -0
  310. package/dist/console/runtime/components/console-schema-form.vue +76 -0
  311. package/dist/console/runtime/components/console-schema-list.vue +157 -0
  312. package/dist/console/runtime/components/console-search-palette.vue +1051 -0
  313. package/dist/console/runtime/components/console-search.vue +17 -424
  314. package/dist/console/runtime/components/console-section-icon.vue +18 -0
  315. package/dist/console/runtime/components/console-section.vue +68 -0
  316. package/dist/console/runtime/components/console-seo-panel.vue +261 -0
  317. package/dist/console/runtime/components/console-session-actions.vue +158 -0
  318. package/dist/console/runtime/components/console-session-bootstrap.ts +0 -26
  319. package/dist/console/runtime/components/console-session-cancel.vue +89 -0
  320. package/dist/console/runtime/components/console-session-code-language.ts +32 -0
  321. package/dist/console/runtime/components/console-session-code-preview.vue +42 -40
  322. package/dist/console/runtime/components/console-session-copy-link.vue +11 -0
  323. package/dist/console/runtime/components/console-session-inspector.vue +392 -235
  324. package/dist/console/runtime/components/console-session-loading.vue +19 -27
  325. package/dist/console/runtime/components/console-session-navbar.vue +44 -27
  326. package/dist/console/runtime/components/console-session-trace.vue +30 -84
  327. package/dist/console/runtime/components/console-session.css +438 -818
  328. package/dist/console/runtime/components/console-settings-card.vue +76 -0
  329. package/dist/console/runtime/components/console-settings-value.vue +46 -0
  330. package/dist/console/runtime/components/console-settings.vue +100 -0
  331. package/dist/console/runtime/components/console-setup-hint.vue +15 -0
  332. package/dist/console/runtime/components/console-sidebar-item.vue +62 -0
  333. package/dist/console/runtime/components/console-sidebar-trigger.vue +34 -0
  334. package/dist/console/runtime/components/console-sidebar.vue +352 -0
  335. package/dist/console/runtime/components/console-site.vue +370 -0
  336. package/dist/console/runtime/components/console-skill-file.vue +73 -0
  337. package/dist/console/runtime/components/console-skill-tree.vue +62 -0
  338. package/dist/console/runtime/components/console-skills.vue +193 -0
  339. package/dist/console/runtime/components/console-stat-grid.vue +64 -0
  340. package/dist/console/runtime/components/console-state.vue +150 -0
  341. package/dist/console/runtime/components/console-toaster.vue +75 -0
  342. package/dist/console/runtime/components/console-usage-chart.vue +210 -0
  343. package/dist/console/runtime/components/console-usage-model-detail.vue +138 -0
  344. package/dist/console/runtime/components/console-usage-model.ts +376 -0
  345. package/dist/console/runtime/components/console-usage-share-bar.vue +48 -0
  346. package/dist/console/runtime/components/console-usage.vue +1086 -508
  347. package/dist/console/runtime/components/console-user-menu.vue +42 -0
  348. package/dist/console/runtime/components/console-value.vue +36 -0
  349. package/dist/console/runtime/components/console-workflow-actions.vue +174 -0
  350. package/dist/console/runtime/components/console-workspace-browser.vue +507 -0
  351. package/dist/console/runtime/components/console-workspace-file.ts +12 -0
  352. package/dist/console/runtime/components/console-workspace-history.vue +76 -0
  353. package/dist/console/runtime/components/console-wrap.ts +10 -0
  354. package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +165 -0
  355. package/dist/console/runtime/components/invocation/agent-invocation-list.ts +260 -0
  356. package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +112 -0
  357. package/dist/console/runtime/components/invocation/agent-invocation.ts +1991 -0
  358. package/dist/console/runtime/components/invocation/index.ts +8 -0
  359. package/dist/console/runtime/components/invocation/internal/brand-icons.ts +65 -0
  360. package/dist/console/runtime/components/invocation/internal/channel-icon.ts +51 -0
  361. package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +745 -0
  362. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +173 -0
  363. package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +167 -0
  364. package/dist/console/runtime/components/invocation/internal/invocation-page-changes.ts +64 -0
  365. package/dist/console/runtime/components/invocation/internal/payload-text.ts +27 -0
  366. package/dist/console/runtime/components/invocation/internal/url.ts +8 -0
  367. package/dist/console/runtime/components/invocation/invocation-display.ts +56 -0
  368. package/dist/console/runtime/components/invocation/invocation.css +2789 -0
  369. package/dist/console/runtime/components/invocation/types.ts +97 -0
  370. package/dist/console/runtime/console-route.d.ts +15 -9
  371. package/dist/console/runtime/console-route.js +2 -37
  372. package/dist/console/runtime/definitions.d.ts +2 -2
  373. package/dist/console/runtime/definitions.js +2 -15
  374. package/dist/console/runtime/diagnostics.ts +287 -0
  375. package/dist/console/runtime/mcp-client.d.ts +2 -0
  376. package/dist/console/runtime/mcp-client.js +2 -0
  377. package/dist/console/runtime/page/loader.js +142 -0
  378. package/dist/console/runtime/page-tool/page-tool.js +10 -0
  379. package/dist/console/runtime/public/skills/index.json +47 -0
  380. package/dist/console/runtime/public/skills/vitehub/SKILL.md +99 -0
  381. package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +4 -0
  382. package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +36 -0
  383. package/dist/console/runtime/public/skills/vitehub/references/bundle.md +57 -0
  384. package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +30 -0
  385. package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +27 -0
  386. package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +29 -0
  387. package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +36 -0
  388. package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +14 -0
  389. package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +13 -0
  390. package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +17 -0
  391. package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +13 -0
  392. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +11 -0
  393. package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +14 -0
  394. package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +13 -0
  395. package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +15 -0
  396. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +11 -0
  397. package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +13 -0
  398. package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +13 -0
  399. package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +13 -0
  400. package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +14 -0
  401. package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +11 -0
  402. package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +19 -0
  403. package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +11 -0
  404. package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox.md +13 -0
  405. package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +11 -0
  406. package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +11 -0
  407. package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +11 -0
  408. package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +11 -0
  409. package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +11 -0
  410. package/dist/console/runtime/public/skills/vitehub/references/project-patterns.md +19 -0
  411. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +81 -0
  412. package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +31 -0
  413. package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +26 -0
  414. package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
  415. package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +39 -0
  416. package/dist/console/runtime/public/skills/vitehub/references/workspaces-sources-access.md +26 -0
  417. package/dist/console/runtime/rpc.d.ts +2 -35
  418. package/dist/console/runtime/rpc.js +2 -16
  419. package/dist/console/runtime/sections.d.ts +2 -2
  420. package/dist/console/runtime/sections.js +2 -126
  421. package/dist/console/runtime/server/access-policy.d.ts +2 -0
  422. package/dist/console/runtime/server/access-policy.js +2 -0
  423. package/dist/console/runtime/server/agents.get.d.ts +10 -5
  424. package/dist/console/runtime/server/agents.get.js +18 -10
  425. package/dist/console/runtime/server/auth.d.ts +2 -0
  426. package/dist/console/runtime/server/auth.js +81 -0
  427. package/dist/console/runtime/server/blob.d.ts +2 -2
  428. package/dist/console/runtime/server/blob.js +2 -18
  429. package/dist/console/runtime/server/channel-replay.d.ts +23 -0
  430. package/dist/console/runtime/server/channel-replay.js +52 -0
  431. package/dist/console/runtime/server/database.d.ts +1 -1
  432. package/dist/console/runtime/server/database.get.d.ts +34 -6
  433. package/dist/console/runtime/server/database.get.js +77 -40
  434. package/dist/console/runtime/server/database.js +1 -16
  435. package/dist/console/runtime/server/definitions.d.ts +2 -2
  436. package/dist/console/runtime/server/definitions.get.d.ts +10 -9
  437. package/dist/console/runtime/server/definitions.get.js +76 -15
  438. package/dist/console/runtime/server/definitions.js +2 -22
  439. package/dist/console/runtime/server/development.d.ts +2 -0
  440. package/dist/console/runtime/server/development.js +2 -0
  441. package/dist/console/runtime/server/documents.d.ts +2 -0
  442. package/dist/console/runtime/server/documents.js +3 -0
  443. package/dist/console/runtime/server/env.d.ts +6 -0
  444. package/dist/console/runtime/server/env.get.d.ts +9 -0
  445. package/dist/console/runtime/server/env.get.js +16 -0
  446. package/dist/console/runtime/server/env.js +2 -0
  447. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +6 -5
  448. package/dist/console/runtime/server/invocation-capabilities.get.js +14 -11
  449. package/dist/console/runtime/server/invocation-workspace.get.d.ts +8 -0
  450. package/dist/console/runtime/server/invocation-workspace.get.js +77 -0
  451. package/dist/console/runtime/server/invocation.get.d.ts +36 -25
  452. package/dist/console/runtime/server/invocation.get.js +140 -25
  453. package/dist/console/runtime/server/invocations.get.d.ts +12 -5
  454. package/dist/console/runtime/server/invocations.get.js +56 -69
  455. package/dist/console/runtime/server/logs.get.d.ts +16 -0
  456. package/dist/console/runtime/server/logs.get.js +56 -0
  457. package/dist/console/runtime/server/mcp-client-operations.d.ts +5 -0
  458. package/dist/console/runtime/server/mcp-client-operations.js +139 -0
  459. package/dist/console/runtime/server/operation-contributions.d.ts +2 -0
  460. package/dist/console/runtime/server/operation-contributions.js +2 -0
  461. package/dist/console/runtime/server/page-auth.d.ts +18 -0
  462. package/dist/console/runtime/server/page-auth.js +44 -0
  463. package/dist/console/runtime/server/page-session.d.ts +2 -0
  464. package/dist/console/runtime/server/page-session.js +5 -0
  465. package/dist/console/runtime/server/page-tool.d.ts +2 -0
  466. package/dist/console/runtime/server/page-tool.js +105 -0
  467. package/dist/console/runtime/server/rpc.d.ts +27 -0
  468. package/dist/console/runtime/server/rpc.js +222 -0
  469. package/dist/console/runtime/server/runtime.d.ts +2 -0
  470. package/dist/console/runtime/server/runtime.js +2 -0
  471. package/dist/console/runtime/server/search.get.d.ts +2 -6
  472. package/dist/console/runtime/server/search.get.js +97 -2
  473. package/dist/console/runtime/server/sections.d.ts +6 -2
  474. package/dist/console/runtime/server/sections.get.d.ts +2 -9
  475. package/dist/console/runtime/server/sections.get.js +47 -9
  476. package/dist/console/runtime/server/sections.js +7 -16
  477. package/dist/console/runtime/server/setup.d.ts +5 -0
  478. package/dist/console/runtime/server/setup.js +5 -0
  479. package/dist/console/runtime/server/site-entry.d.ts +24 -0
  480. package/dist/console/runtime/server/site-entry.js +142 -0
  481. package/dist/console/runtime/server/site-session.d.ts +85 -0
  482. package/dist/console/runtime/server/site-session.js +2 -0
  483. package/dist/console/runtime/server/status.get.d.ts +16 -0
  484. package/dist/console/runtime/server/status.get.js +30 -0
  485. package/dist/console/runtime/server/tickets.d.ts +2 -0
  486. package/dist/console/runtime/server/tickets.js +2 -0
  487. package/dist/console/runtime/server/usage.get.d.ts +7 -3
  488. package/dist/console/runtime/server/usage.get.js +74 -26
  489. package/dist/console/runtime/server/workspace-files.get.d.ts +12 -0
  490. package/dist/console/runtime/server/workspace-files.get.js +55 -0
  491. package/dist/console/runtime/site-access.d.ts +2 -0
  492. package/dist/console/runtime/site-access.js +2 -0
  493. package/dist/console/runtime/skills.d.ts +18 -0
  494. package/dist/console/runtime/skills.js +17 -0
  495. package/dist/console/server.d.ts +33 -7
  496. package/dist/console/server.js +9 -28
  497. package/dist/console/ui.d.ts +217 -0
  498. package/dist/console/ui.js +3233 -0
  499. package/dist/console-lazy-views-DXnIkdyd.js +2 -0
  500. package/dist/console-route-COvNB_Xj.js +49 -0
  501. package/dist/console.d.ts +3 -2
  502. package/dist/content/client.d.ts +1 -0
  503. package/dist/content/client.js +2 -0
  504. package/dist/content/collections.d.ts +1 -0
  505. package/dist/content/collections.js +2 -0
  506. package/dist/content/database.d.ts +1 -0
  507. package/dist/content/database.js +2 -0
  508. package/dist/content/editor.d.ts +1 -0
  509. package/dist/content/editor.js +2 -0
  510. package/dist/content/markdown.d.ts +1 -0
  511. package/dist/content/markdown.js +2 -0
  512. package/dist/content/preview.d.ts +1 -0
  513. package/dist/content/preview.js +2 -0
  514. package/dist/content/realtime.d.ts +1 -0
  515. package/dist/content/realtime.js +2 -0
  516. package/dist/content/sqlite.d.ts +1 -0
  517. package/dist/content/sqlite.js +2 -0
  518. package/dist/content.d.ts +1 -0
  519. package/dist/content.js +2 -0
  520. package/dist/database-BVyhAxq-.d.ts +6 -0
  521. package/dist/database-J7M0B3ED.js +17 -0
  522. package/dist/decisions/vue.d.ts +1 -0
  523. package/dist/decisions/vue.js +2 -0
  524. package/dist/decisions.d.ts +1 -0
  525. package/dist/decisions.js +2 -0
  526. package/dist/definitions-BDRkT5-f.js +336 -0
  527. package/dist/definitions-CGTWTj67.d.ts +19 -0
  528. package/dist/definitions-CxDT8D8Y.d.ts +243 -0
  529. package/dist/definitions-bepsXY5G.js +98 -0
  530. package/dist/dev-peer-am78OsHH.js +472 -0
  531. package/dist/development-BzeSHZGH.js +18 -0
  532. package/dist/development-DgaQ05jw.d.ts +9 -0
  533. package/dist/device/vue.d.ts +1 -0
  534. package/dist/device/vue.js +2 -0
  535. package/dist/device.d.ts +1 -0
  536. package/dist/device.js +2 -0
  537. package/dist/diagnostics-CjGiniKb.d.ts +11 -0
  538. package/dist/diagnostics-D0DefmQj.js +79 -0
  539. package/dist/docs/assistant.d.ts +1 -0
  540. package/dist/docs/assistant.js +2 -0
  541. package/dist/docs/nuxt.d.ts +3 -0
  542. package/dist/docs/nuxt.js +3 -0
  543. package/dist/docs/server.d.ts +1 -0
  544. package/dist/docs/server.js +2 -0
  545. package/dist/docs.d.ts +1 -0
  546. package/dist/docs.js +2 -0
  547. package/dist/doctor.d.ts +13 -0
  548. package/dist/doctor.js +3096 -0
  549. package/dist/documents-8US1nUgK.js +547 -0
  550. package/dist/documents-C97WMaJZ.d.ts +474 -0
  551. package/dist/documents-DwPfR-fz.js +136 -0
  552. package/dist/documents-RVHsQKFw.d.ts +87 -0
  553. package/dist/durability/operations.d.ts +5 -0
  554. package/dist/durability/operations.js +28 -0
  555. package/dist/email/test.d.ts +1 -0
  556. package/dist/email/test.js +2 -0
  557. package/dist/entries-D48wVEaS.js +142 -0
  558. package/dist/env/bridge.d.ts +1 -0
  559. package/dist/env/bridge.js +2 -0
  560. package/dist/env/database.d.ts +1 -0
  561. package/dist/env/database.js +2 -0
  562. package/dist/env/seal.d.ts +1 -0
  563. package/dist/env/seal.js +2 -0
  564. package/dist/env-Dg1I_DWr.js +11 -0
  565. package/dist/error-diagnostics-C2rjmOlX.js +630 -0
  566. package/dist/error-diagnostics.ts +639 -0
  567. package/dist/forge.d.ts +1 -0
  568. package/dist/forge.js +2 -0
  569. package/dist/format-BOYlanIZ.js +304 -0
  570. package/dist/forms/client.d.ts +1 -0
  571. package/dist/forms/client.js +2 -0
  572. package/dist/forms/database.d.ts +1 -0
  573. package/dist/forms/database.js +2 -0
  574. package/dist/forms/formisch.d.ts +1 -0
  575. package/dist/forms/formisch.js +2 -0
  576. package/dist/forms/operations.d.ts +1 -0
  577. package/dist/forms/operations.js +2 -0
  578. package/dist/forms/runtime.d.ts +1 -0
  579. package/dist/forms/runtime.js +2 -0
  580. package/dist/forms/vue.d.ts +1 -0
  581. package/dist/forms/vue.js +2 -0
  582. package/dist/forms.d.ts +1 -0
  583. package/dist/forms.js +2 -0
  584. package/dist/gateways/ai-sdk.d.ts +1 -0
  585. package/dist/gateways/ai-sdk.js +2 -0
  586. package/dist/gateways.d.ts +1 -0
  587. package/dist/gateways.js +2 -0
  588. package/dist/host-CkL0jjBq.js +11 -0
  589. package/dist/http-error-Bs6e8_-8.js +30 -0
  590. package/dist/i18n/runtime.d.ts +1 -0
  591. package/dist/i18n/runtime.js +2 -0
  592. package/dist/i18n/server.d.ts +1 -0
  593. package/dist/i18n/server.js +2 -0
  594. package/dist/i18n/vue.d.ts +1 -0
  595. package/dist/i18n/vue.js +2 -0
  596. package/dist/i18n.d.ts +1 -0
  597. package/dist/i18n.js +2 -0
  598. package/dist/index.d.ts +7 -2
  599. package/dist/index.js +39 -3
  600. package/dist/inspect-CDw7e0vK.js +127 -0
  601. package/dist/internal/agent-invocations-libsql.d.ts +2 -0
  602. package/dist/internal/agent-invocations-libsql.js +2 -0
  603. package/dist/internal/disabled-redis-driver.d.ts +3 -0
  604. package/dist/internal/disabled-redis-driver.js +7 -0
  605. package/dist/internal/disabled-upstash-driver.d.ts +3 -0
  606. package/dist/internal/disabled-upstash-driver.js +7 -0
  607. package/dist/internal/test-loader.d.ts +8 -0
  608. package/dist/internal/test-loader.js +75 -0
  609. package/dist/internal/test-server.d.ts +1 -0
  610. package/dist/internal/test-server.js +84 -0
  611. package/dist/internal-BP_O70ic.d.ts +59 -0
  612. package/dist/internal-BreyUsQ6.js +31 -0
  613. package/dist/invariant-DolT9EEx.js +22 -0
  614. package/dist/invocation-page-undo-BkUau8X7.js +54 -0
  615. package/dist/invocations-CsucCJuq.js +86 -0
  616. package/dist/limits-BUlwWYQE.js +34 -0
  617. package/dist/logs/host.d.ts +6 -0
  618. package/dist/logs/host.js +2 -0
  619. package/dist/logs/memory.d.ts +2 -0
  620. package/dist/logs/memory.js +2 -0
  621. package/dist/logs/source.d.ts +2 -0
  622. package/dist/logs/source.js +2 -0
  623. package/dist/logs.d.ts +3 -0
  624. package/dist/logs.js +3 -0
  625. package/dist/markdown-template/file.d.ts +1 -0
  626. package/dist/markdown-template/file.js +2 -0
  627. package/dist/mcp-client-CTbTbn7d.js +10 -0
  628. package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
  629. package/dist/mcp-client-D0mUt18v.js +1024 -0
  630. package/dist/mcp.d.ts +1 -0
  631. package/dist/mcp.js +2 -0
  632. package/dist/media-library-BChf8XOd.js +279 -0
  633. package/dist/media-library-CEo-Ye2B.d.ts +212 -0
  634. package/dist/media-uKX4Wy-c.d.ts +74 -0
  635. package/dist/media-wZMY6f2M.js +478 -0
  636. package/dist/memory-2bbl4hcV.d.ts +19 -0
  637. package/dist/memory-DhirB6SA.js +86 -0
  638. package/dist/nuxt-server-imports-Lnaf5Fe-.js +97 -0
  639. package/dist/nuxt.d.ts +14 -60
  640. package/dist/nuxt.js +966 -374
  641. package/dist/object-D8pRdprI.js +15 -0
  642. package/dist/operation-contributions-DflAv5AC.js +50 -0
  643. package/dist/operation-contributions-fZyVo662.d.ts +21 -0
  644. package/dist/operation-definition-Bn8V2hab.js +430 -0
  645. package/dist/operation-registry-BogGwk_I.js +22 -0
  646. package/dist/operation-rpc-DI9txNxK.js +158 -0
  647. package/dist/operations-B6N-ja8x.js +863 -0
  648. package/dist/operations-DX9EkHwb.d.ts +153 -0
  649. package/dist/operations-Dj_cp-UK.js +235 -0
  650. package/dist/operations-H9q0QB2C.js +2 -0
  651. package/dist/operations.d.ts +1 -0
  652. package/dist/operations.js +2 -0
  653. package/dist/optional-owners-Crm6kVS5.js +889 -0
  654. package/dist/owned-paths-BnjT0FhU.js +15 -0
  655. package/dist/page/pill.iife.js +70 -0
  656. package/dist/page-tool-BCRyx3pM.d.ts +68 -0
  657. package/dist/page-tools-BkSSBFoi.js +444 -0
  658. package/dist/page-tools-shared-D3fFoEV2.js +122 -0
  659. package/dist/page-tools-sw4I-Nqx.d.ts +23 -0
  660. package/dist/plugins-5uDXr9Km.d.ts +2124 -0
  661. package/dist/plugins-DQ8pF-38.js +11325 -0
  662. package/dist/presets/babysitter/server.d.ts +1 -0
  663. package/dist/presets/babysitter/server.js +2 -0
  664. package/dist/presets/babysitter.d.ts +1 -0
  665. package/dist/presets/babysitter.js +2 -0
  666. package/dist/presets/labeller.d.ts +1 -0
  667. package/dist/presets/labeller.js +2 -0
  668. package/dist/presets/workspace.d.ts +3 -0
  669. package/dist/presets/workspace.js +3 -0
  670. package/dist/project-5EN7JaXI.d.ts +26 -0
  671. package/dist/project-C2dnB9Kf.js +30 -0
  672. package/dist/project-DOeM0zg3.js +57 -0
  673. package/dist/project-link-D_XQvBOC.d.ts +94 -0
  674. package/dist/project-link-Qi7nltHM.js +149 -0
  675. package/dist/project-root-v6ba4tn7.js +12 -0
  676. package/dist/projects-CAcXztf4.js +154 -0
  677. package/dist/projects-Ddvl9EJp.d.ts +66 -0
  678. package/dist/rate-limit/drivers/cloudflare.d.ts +1 -0
  679. package/dist/rate-limit/drivers/cloudflare.js +2 -0
  680. package/dist/rate-limit/drivers/kv.d.ts +1 -0
  681. package/dist/rate-limit/drivers/kv.js +2 -0
  682. package/dist/rate-limit/drivers/memory.d.ts +1 -0
  683. package/dist/rate-limit/drivers/memory.js +2 -0
  684. package/dist/realtime/agent.d.ts +1 -0
  685. package/dist/realtime/agent.js +2 -0
  686. package/dist/realtime/bus.d.ts +1 -0
  687. package/dist/realtime/bus.js +2 -0
  688. package/dist/realtime/client.d.ts +1 -0
  689. package/dist/realtime/client.js +2 -0
  690. package/dist/registry-CDKLACCZ.js +16 -0
  691. package/dist/registry-zw6aE2N9.js +18 -0
  692. package/dist/request-BUYAlAJl.js +162 -0
  693. package/dist/request-D7h3SQ92.d.ts +21 -0
  694. package/dist/request-origin-Bq7mDQG9.js +23 -0
  695. package/dist/request-yCybBeqT.js +468 -0
  696. package/dist/route-query-CRVWXIrc.js +222 -0
  697. package/dist/rpc-7nlHSv3y.d.ts +37 -0
  698. package/dist/rpc-DIUA61pv.js +4 -0
  699. package/dist/runtime/durability.d.ts +1 -0
  700. package/dist/runtime/durability.js +2 -0
  701. package/dist/runtime-B_btezs1.d.ts +7 -0
  702. package/dist/runtime-DG34DLXc.js +55 -0
  703. package/dist/runtime-DM8Z6KLT.js +10 -0
  704. package/dist/runtime-DxfJOfCd.js +25 -0
  705. package/dist/runtime-YLWfdrtO.js +65 -0
  706. package/dist/runtime-feature-guard-rpZz1eMF.js +55 -0
  707. package/dist/sandbox/ssh.d.ts +1 -0
  708. package/dist/sandbox/ssh.js +2 -0
  709. package/dist/sandbox/task.d.ts +1 -0
  710. package/dist/sandbox/task.js +2 -0
  711. package/dist/scan-module-BTeOuZsp.js +2 -0
  712. package/dist/scan-module-DlHQ8a0X.js +148 -0
  713. package/dist/schedule/os.d.ts +1 -0
  714. package/dist/schedule/os.js +2 -0
  715. package/dist/schedule/runtime/kv.d.ts +1 -0
  716. package/dist/schedule/runtime/kv.js +2 -0
  717. package/dist/schema-form-C-fy3xaU.d.ts +79 -0
  718. package/dist/secret-AZLhaNyr.js +44 -0
  719. package/dist/sections-4xyBoiar.d.ts +159 -0
  720. package/dist/sections-ACHVTCWn.d.ts +10 -0
  721. package/dist/sections-BriKrBgN.d.ts +57 -0
  722. package/dist/sections-C83x0slv.js +13 -0
  723. package/dist/sections-CUJyQA9d.js +122 -0
  724. package/dist/sections-D6AM5Gy5.js +369 -0
  725. package/dist/sections.get-1lHjyKCI.d.ts +20 -0
  726. package/dist/seo/runtime.d.ts +64 -0
  727. package/dist/seo/runtime.js +123 -0
  728. package/dist/seo-CtLywyRx.d.ts +24 -0
  729. package/dist/seo.d.ts +2 -0
  730. package/dist/seo.js +17 -0
  731. package/dist/server-DbjFYSeU.js +18 -0
  732. package/dist/setup-C-5nB7aY.js +22 -0
  733. package/dist/setup-DLZFzuLv.d.ts +12 -0
  734. package/dist/site-access-Bhsty_v4.js +2 -0
  735. package/dist/site-access-BycrwM2v.js +18 -0
  736. package/dist/site-access-CyRtc0gZ.js +292 -0
  737. package/dist/site-access-DxfdOel1.d.ts +55 -0
  738. package/dist/site-session-Jf21TVw8.js +272 -0
  739. package/dist/skills/operations.d.ts +17 -0
  740. package/dist/skills/operations.js +51 -0
  741. package/dist/skills-DdpSMiCI.js +500 -0
  742. package/dist/skills.d.ts +197 -0
  743. package/dist/skills.get-CHQMzSD_.js +48 -0
  744. package/dist/skills.js +2 -0
  745. package/dist/source/drizzle.d.ts +1 -0
  746. package/dist/source/drizzle.js +2 -0
  747. package/dist/source/server.d.ts +1 -24
  748. package/dist/source/server.js +1 -24
  749. package/dist/source/vite.d.ts +1 -8
  750. package/dist/source/vite.js +2 -18
  751. package/dist/source-S-LChQvw.d.ts +59 -0
  752. package/dist/source-w9BHUwyO.js +60 -0
  753. package/dist/source.d.ts +1 -66
  754. package/dist/source.js +1 -103
  755. package/dist/stored-Dhv2qsQv.js +40 -0
  756. package/dist/sync/client.d.ts +1 -0
  757. package/dist/sync/client.js +2 -0
  758. package/dist/sync/database.d.ts +1 -0
  759. package/dist/sync/database.js +2 -0
  760. package/dist/sync/operations.d.ts +1 -0
  761. package/dist/sync/operations.js +2 -0
  762. package/dist/sync/runtime.d.ts +1 -0
  763. package/dist/sync/runtime.js +2 -0
  764. package/dist/sync/vue.d.ts +1 -0
  765. package/dist/sync/vue.js +2 -0
  766. package/dist/sync.d.ts +1 -0
  767. package/dist/sync.js +2 -0
  768. package/dist/task/operations.d.ts +22 -0
  769. package/dist/task/operations.js +36 -0
  770. package/dist/test/register.d.ts +1 -0
  771. package/dist/test/register.js +68 -0
  772. package/dist/test.d.ts +175 -0
  773. package/dist/test.js +49 -0
  774. package/dist/ticket-Pr_8ZtXW.d.ts +14 -0
  775. package/dist/ticket-RKQF6Wy9.js +31 -0
  776. package/dist/tickets-CfJhT7d0.js +358 -0
  777. package/dist/ui/markdown-editor.d.ts +1 -0
  778. package/dist/ui/markdown-editor.js +2 -0
  779. package/dist/ui/playground.d.ts +1 -0
  780. package/dist/ui/playground.js +2 -0
  781. package/dist/ui/styles.css +2 -2562
  782. package/dist/ui/theme.css +2 -0
  783. package/dist/ui/theme.d.ts +1 -0
  784. package/dist/ui/theme.js +2 -0
  785. package/dist/ui/workspace.d.ts +1 -0
  786. package/dist/ui/workspace.js +2 -0
  787. package/dist/usage-Bc0YY_ka.js +569 -0
  788. package/dist/usage-CoQXs5nW.d.ts +22 -0
  789. package/dist/usage-index-CMMT4cXQ.js +335 -0
  790. package/dist/version-DDRL_OYz.js +1080 -0
  791. package/dist/vue-router-C68IU1jM.d.ts +1914 -0
  792. package/dist/web-container/connect.d.ts +1 -0
  793. package/dist/web-container/connect.js +2 -0
  794. package/dist/web-container/env.d.ts +1 -0
  795. package/dist/web-container/env.js +2 -0
  796. package/dist/web-container/snapshot.d.ts +1 -0
  797. package/dist/web-container/snapshot.js +2 -0
  798. package/dist/web-container.d.ts +1 -0
  799. package/dist/web-container.js +2 -0
  800. package/dist/webhooks/database.d.ts +1 -0
  801. package/dist/webhooks/database.js +2 -0
  802. package/dist/webhooks/operations.d.ts +1 -0
  803. package/dist/webhooks/operations.js +2 -0
  804. package/dist/webhooks/runtime.d.ts +1 -0
  805. package/dist/webhooks/runtime.js +2 -0
  806. package/dist/webhooks.d.ts +1 -0
  807. package/dist/webhooks.js +2 -0
  808. package/dist/workflow/openworkflow.d.ts +1 -0
  809. package/dist/workflow/openworkflow.js +2 -0
  810. package/dist/workspace/blob-database.d.ts +1 -0
  811. package/dist/workspace/blob-database.js +2 -0
  812. package/dist/workspace/checkout.d.ts +1 -0
  813. package/dist/workspace/checkout.js +2 -0
  814. package/dist/workspace/files.d.ts +1 -0
  815. package/dist/workspace/files.js +2 -0
  816. package/dist/workspace/lineage.d.ts +1 -0
  817. package/dist/workspace/lineage.js +2 -0
  818. package/dist/workspace-history-CeVwBB6Q.d.ts +52 -0
  819. package/dist/workspace-history-l47NPVSy.js +248 -0
  820. package/package.json +1320 -207
  821. package/dist/_internal/agent/cloudflare/state.d.ts +0 -1
  822. package/dist/_internal/agent/cloudflare/state.js +0 -2
  823. package/dist/_internal/agent/cloudflare.d.ts +0 -1
  824. package/dist/_internal/agent/cloudflare.js +0 -2
  825. package/dist/_internal/agent/eve.d.ts +0 -1
  826. package/dist/_internal/agent/eve.js +0 -2
  827. package/dist/_internal/agent/runtime/workflow.d.ts +0 -1
  828. package/dist/_internal/agent/runtime/workflow.js +0 -2
  829. package/dist/_internal/agent/server/internal.d.ts +0 -1
  830. package/dist/_internal/agent/server/internal.js +0 -2
  831. package/dist/_internal/agent/server/workspace.d.ts +0 -1
  832. package/dist/_internal/agent/server/workspace.js +0 -2
  833. package/dist/_internal/agent/server.d.ts +0 -1
  834. package/dist/_internal/agent/server.js +0 -2
  835. package/dist/_internal/agent/state/sqlite.d.ts +0 -1
  836. package/dist/_internal/agent/state/sqlite.js +0 -2
  837. package/dist/_internal/agent.d.ts +0 -1
  838. package/dist/_internal/agent.js +0 -2
  839. package/dist/_internal/blob/runtime/state.d.ts +0 -1
  840. package/dist/_internal/blob/runtime/state.js +0 -2
  841. package/dist/_internal/blob.d.ts +0 -1
  842. package/dist/_internal/blob.js +0 -2
  843. package/dist/_internal/database/runtime/state.d.ts +0 -4
  844. package/dist/_internal/database/runtime/state.js +0 -5
  845. package/dist/_internal/kv/runtime/disabled-upstash.d.ts +0 -4
  846. package/dist/_internal/kv/runtime/disabled-upstash.js +0 -6
  847. package/dist/_internal/kv.d.ts +0 -1
  848. package/dist/_internal/kv.js +0 -2
  849. package/dist/_internal/markdown-template.d.ts +0 -2
  850. package/dist/_internal/markdown-template.js +0 -2
  851. package/dist/_internal/rate-limit/runtime.d.ts +0 -1
  852. package/dist/_internal/rate-limit/runtime.js +0 -2
  853. package/dist/_internal/sandbox/runtime/state.d.ts +0 -1
  854. package/dist/_internal/sandbox/runtime/state.js +0 -2
  855. package/dist/_internal/schedule/runtime/driver.d.ts +0 -1
  856. package/dist/_internal/schedule/runtime/driver.js +0 -2
  857. package/dist/_internal/schedule/runtime/process.d.ts +0 -1
  858. package/dist/_internal/schedule/runtime/process.js +0 -2
  859. package/dist/_internal/schedule/runtime/static.d.ts +0 -1
  860. package/dist/_internal/schedule/runtime/static.js +0 -2
  861. package/dist/_internal/schedule/runtime.d.ts +0 -1
  862. package/dist/_internal/schedule/runtime.js +0 -2
  863. package/dist/_internal/schedule.d.ts +0 -1
  864. package/dist/_internal/schedule.js +0 -2
  865. package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +0 -1
  866. package/dist/_internal/workflow/runtime/cloudflare-runner.js +0 -2
  867. package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +0 -1
  868. package/dist/_internal/workflow/runtime/cloudflare-vite.js +0 -2
  869. package/dist/_internal/workflow/runtime/execute.d.ts +0 -1
  870. package/dist/_internal/workflow/runtime/execute.js +0 -2
  871. package/dist/_internal/workflow/runtime/state.d.ts +0 -1
  872. package/dist/_internal/workflow/runtime/state.js +0 -2
  873. package/dist/_internal/workflow/runtime/vercel-vite.d.ts +0 -1
  874. package/dist/_internal/workflow/runtime/vercel-vite.js +0 -2
  875. package/dist/_internal/workflow.d.ts +0 -1
  876. package/dist/_internal/workflow.js +0 -2
  877. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.d.ts +0 -1
  878. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js +0 -2
  879. package/dist/_internal/workspace/internal/runtime/hosted.d.ts +0 -1
  880. package/dist/_internal/workspace/internal/runtime/hosted.js +0 -2
  881. package/dist/_internal/workspace/internal/runtime/state.d.ts +0 -1
  882. package/dist/_internal/workspace/internal/runtime/state.js +0 -2
  883. package/dist/_internal/workspace/runtime.d.ts +0 -1
  884. package/dist/_internal/workspace/runtime.js +0 -2
  885. package/dist/_internal/workspace.d.ts +0 -1
  886. package/dist/_internal/workspace.js +0 -2
  887. package/dist/agent/invocations/sqlite.d.ts +0 -1
  888. package/dist/agent/invocations/sqlite.js +0 -2
  889. package/dist/agent/runtime/process.d.ts +0 -1
  890. package/dist/agent/runtime/process.js +0 -2
  891. package/dist/agent/state/sqlite.d.ts +0 -1
  892. package/dist/agent/state/sqlite.js +0 -2
  893. package/dist/agents-DGL-2SS3.js +0 -53
  894. package/dist/blob/content-type.d.ts +0 -1
  895. package/dist/blob/content-type.js +0 -2
  896. package/dist/blob-_CeYUuZh.d.ts +0 -8
  897. package/dist/box.d.ts +0 -1
  898. package/dist/box.js +0 -2
  899. package/dist/browser/actions.d.ts +0 -1
  900. package/dist/browser/actions.js +0 -2
  901. package/dist/console/runtime/client/time.d.ts +0 -4
  902. package/dist/console/runtime/client/time.js +0 -8
  903. package/dist/console/runtime/components/console-brand.vue +0 -37
  904. package/dist/console/runtime/components/console-health-model.ts +0 -54
  905. package/dist/console/runtime/components/console-health.vue +0 -236
  906. package/dist/console/runtime/components/console-primitive-switcher.vue +0 -69
  907. package/dist/console/runtime/components/console-provider.vue +0 -12
  908. package/dist/console/runtime/pages/agents.vue +0 -58
  909. package/dist/console/runtime/pages/blob.vue +0 -30
  910. package/dist/console/runtime/pages/databases.vue +0 -67
  911. package/dist/console/runtime/pages/index.vue +0 -29
  912. package/dist/console/runtime/pages/kv.vue +0 -68
  913. package/dist/console/runtime/pages/queues.vue +0 -30
  914. package/dist/console/runtime/pages/rate-limits.vue +0 -30
  915. package/dist/console/runtime/pages/sandboxes.vue +0 -27
  916. package/dist/console/runtime/pages/schedules.vue +0 -30
  917. package/dist/console/runtime/pages/workflows.vue +0 -30
  918. package/dist/console/runtime/pages/workspaces.vue +0 -30
  919. package/dist/console/runtime/public/console/chunks/ChatMessage-CVruGJWM.js +0 -1
  920. package/dist/console/runtime/public/console/chunks/ChatPrompt-BmTjPf5_.js +0 -1
  921. package/dist/console/runtime/public/console/chunks/ChatPromptSubmit-DcxguvaS.js +0 -1
  922. package/dist/console/runtime/public/console/chunks/ChatReasoning-DIMO2K2F.js +0 -1
  923. package/dist/console/runtime/public/console/chunks/ChatShimmer-C613EbHI.js +0 -1
  924. package/dist/console/runtime/public/console/chunks/ChatTool-DDmc-ZK6.js +0 -1
  925. package/dist/console/runtime/public/console/chunks/Collapsible-C0CXnWpw.js +0 -1
  926. package/dist/console/runtime/public/console/chunks/CollapsibleTrigger-CmJucLnT.js +0 -1
  927. package/dist/console/runtime/public/console/chunks/Icon-D-AnqCok.js +0 -1
  928. package/dist/console/runtime/public/console/chunks/abap-LtYK6g-v-CLvhMVsD.js +0 -1
  929. package/dist/console/runtime/public/console/chunks/actionscript-3-Czo0lKSf--17pq3dv.js +0 -1
  930. package/dist/console/runtime/public/console/chunks/ada-twHwrVWN-C5qYipkI.js +0 -1
  931. package/dist/console/runtime/public/console/chunks/andromeeda-DnSv6o6l-vGVdxbeo.js +0 -1
  932. package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +0 -1
  933. package/dist/console/runtime/public/console/chunks/angular-html-Ct-40ew8-D8X9MCxo.js +0 -1
  934. package/dist/console/runtime/public/console/chunks/angular-html-DTyieMYv.js +0 -1
  935. package/dist/console/runtime/public/console/chunks/angular-ts-D3gV1N-x.js +0 -1
  936. package/dist/console/runtime/public/console/chunks/angular-ts-D6akBVit-CAEqTior.js +0 -1
  937. package/dist/console/runtime/public/console/chunks/apache-BIl2qPOf-U0d_L8uA.js +0 -1
  938. package/dist/console/runtime/public/console/chunks/apex-BkQQFAhi-VAyPSnFM.js +0 -1
  939. package/dist/console/runtime/public/console/chunks/apl-Cxjn4xYu-QUZjoXcb.js +0 -1
  940. package/dist/console/runtime/public/console/chunks/applescript-CJ80B5XJ-CCn79oCD.js +0 -1
  941. package/dist/console/runtime/public/console/chunks/ara-IxnQjO6j-4CJ0cIlV.js +0 -1
  942. package/dist/console/runtime/public/console/chunks/asciidoc-Dsw6zvwf-DE70LPWp.js +0 -1
  943. package/dist/console/runtime/public/console/chunks/asm-wBDSgBbA-Cmm7eHzH.js +0 -1
  944. package/dist/console/runtime/public/console/chunks/astro-BPVTb8uX-BMHg0UsI.js +0 -1
  945. package/dist/console/runtime/public/console/chunks/astro-CLAWI0Fn.js +0 -1
  946. package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +0 -1
  947. package/dist/console/runtime/public/console/chunks/aurora-x-XJ5I8rFc-CDeNXAV0.js +0 -1
  948. package/dist/console/runtime/public/console/chunks/awk-D6dA05Ye-BWXHIvNe.js +0 -1
  949. package/dist/console/runtime/public/console/chunks/ayu-dark-CBRGL64--DluEY0Gj.js +0 -1
  950. package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +0 -1
  951. package/dist/console/runtime/public/console/chunks/ayu-light-BlrCS3Ih-C3h-C4tm.js +0 -1
  952. package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +0 -1
  953. package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +0 -1
  954. package/dist/console/runtime/public/console/chunks/ayu-mirage-CqpTmLcF-Bqwy1Gya.js +0 -1
  955. package/dist/console/runtime/public/console/chunks/ballerina-DIdXD2KH-B7ZEbQpA.js +0 -1
  956. package/dist/console/runtime/public/console/chunks/bat-hQslfzu--Bo4NYOV-.js +0 -1
  957. package/dist/console/runtime/public/console/chunks/beancount-CXtOQ8oS-D-usSTwE.js +0 -1
  958. package/dist/console/runtime/public/console/chunks/berry-CgA2ea0_-DKpUyyne.js +0 -1
  959. package/dist/console/runtime/public/console/chunks/bibtex-BzgdqG3s-Ci_nEsc7.js +0 -1
  960. package/dist/console/runtime/public/console/chunks/bicep-CZ338dSk-CUHmPFLl.js +0 -1
  961. package/dist/console/runtime/public/console/chunks/bird2-GLyzhwkD-C6vDhewU.js +0 -1
  962. package/dist/console/runtime/public/console/chunks/blade-0LMawyyw-CZBPwR53.js +0 -1
  963. package/dist/console/runtime/public/console/chunks/blade-CP_mgflB.js +0 -1
  964. package/dist/console/runtime/public/console/chunks/bsl-0NWGiiFE-mk7PqslV.js +0 -1
  965. package/dist/console/runtime/public/console/chunks/bundle-web-DTJmdyvB.js +0 -13
  966. package/dist/console/runtime/public/console/chunks/c-BhmuwSav.js +0 -1
  967. package/dist/console/runtime/public/console/chunks/c-Dc0_AVM6-CjS7AEt5.js +0 -1
  968. package/dist/console/runtime/public/console/chunks/c3-BLXk7BLN-BFHwR3_K.js +0 -1
  969. package/dist/console/runtime/public/console/chunks/cadence-B1ELWULD-CQ2zXKGN.js +0 -1
  970. package/dist/console/runtime/public/console/chunks/cairo-DjG4M3vq-xb-J0v0e.js +0 -1
  971. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-3VR1Za6u.js +0 -1
  972. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-COUg_LSX-3VR1Za6u.js +0 -1
  973. package/dist/console/runtime/public/console/chunks/catppuccin-latte-DwIHMF0Q.js +0 -1
  974. package/dist/console/runtime/public/console/chunks/catppuccin-latte-r30LFfsa-DwIHMF0Q.js +0 -1
  975. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-D-EwZyPh-DYnBP6_5.js +0 -1
  976. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-DYnBP6_5.js +0 -1
  977. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-C6RD5yh3-DYhrFGRu.js +0 -1
  978. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DYhrFGRu.js +0 -1
  979. package/dist/console/runtime/public/console/chunks/chunk-DK3Fl9T5.js +0 -1
  980. package/dist/console/runtime/public/console/chunks/clarity-2iIoRiLx-SemFz856.js +0 -1
  981. package/dist/console/runtime/public/console/chunks/clojure-DDsQ0FaV-DqKBuwfJ.js +0 -1
  982. package/dist/console/runtime/public/console/chunks/cmake-DPsCB_V6-Bj61d0ZC.js +0 -1
  983. package/dist/console/runtime/public/console/chunks/cobol-CocL1RYn-DoHa8rFw.js +0 -1
  984. package/dist/console/runtime/public/console/chunks/codeowners-CxEKPWu0-C8r90Shi.js +0 -1
  985. package/dist/console/runtime/public/console/chunks/codeql-BwdvwJnv-oeQT6MSM.js +0 -1
  986. package/dist/console/runtime/public/console/chunks/coffee-DtqnQNu5-Ca3s2Keu.js +0 -1
  987. package/dist/console/runtime/public/console/chunks/coffee-PUiKoj8Q.js +0 -1
  988. package/dist/console/runtime/public/console/chunks/common-lisp-DJtwvW4V-Cv5bFMCO.js +0 -1
  989. package/dist/console/runtime/public/console/chunks/coq-Ds6Ye5el-BrsZFFmf.js +0 -1
  990. package/dist/console/runtime/public/console/chunks/cpp-CxycoGSa.js +0 -1
  991. package/dist/console/runtime/public/console/chunks/cpp-Mb4ikSI3-tLY9dtiu.js +0 -1
  992. package/dist/console/runtime/public/console/chunks/crystal-D4OMbAh_-C9omPlZ-.js +0 -1
  993. package/dist/console/runtime/public/console/chunks/csharp-CFKaLbHg-oqKa8noW.js +0 -1
  994. package/dist/console/runtime/public/console/chunks/css-DLlZbWMi.js +0 -1
  995. package/dist/console/runtime/public/console/chunks/css-DTzmO9U0-CbxoEllx.js +0 -1
  996. package/dist/console/runtime/public/console/chunks/csv-DqIVFkK7-Dx-8-gkx.js +0 -1
  997. package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +0 -1
  998. package/dist/console/runtime/public/console/chunks/cue-B5KneM5p-CE9AQfxI.js +0 -1
  999. package/dist/console/runtime/public/console/chunks/cypher-D8Bb8Cq2-ClKdZ_lG.js +0 -1
  1000. package/dist/console/runtime/public/console/chunks/d-BQY8TDgQ-qD-0Kul2.js +0 -1
  1001. package/dist/console/runtime/public/console/chunks/dark-plus-BCxGtnt0-Cs2F2srj.js +0 -1
  1002. package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +0 -1
  1003. package/dist/console/runtime/public/console/chunks/dart-C6DUdjib-CnvKMtbv.js +0 -1
  1004. package/dist/console/runtime/public/console/chunks/dax-S-Noo-ku-BkyTk9wS.js +0 -1
  1005. package/dist/console/runtime/public/console/chunks/desktop-BgOb7Aj4-Dlh5hvp9.js +0 -1
  1006. package/dist/console/runtime/public/console/chunks/diff-Blb4MjsC-woXpYk--.js +0 -1
  1007. package/dist/console/runtime/public/console/chunks/docker-PC1tuYpa-IyjqRm3v.js +0 -1
  1008. package/dist/console/runtime/public/console/chunks/dotenv-Dkdv7Sm2-_5a1GRtc.js +0 -1
  1009. package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +0 -1
  1010. package/dist/console/runtime/public/console/chunks/dracula-fPErIccy-BHWKrbxM.js +0 -1
  1011. package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +0 -1
  1012. package/dist/console/runtime/public/console/chunks/dracula-soft-BrQbqXs8-5eyTD99u.js +0 -1
  1013. package/dist/console/runtime/public/console/chunks/dream-maker-CngiPd8U-DW3nJb8Q.js +0 -1
  1014. package/dist/console/runtime/public/console/chunks/edge-DrFNu-N9-BY3pzybO.js +0 -1
  1015. package/dist/console/runtime/public/console/chunks/elixir-OpZyQ8Ht-CwWfuiQ1.js +0 -1
  1016. package/dist/console/runtime/public/console/chunks/elm-CjX_545P-Dn-DqM39.js +0 -1
  1017. package/dist/console/runtime/public/console/chunks/emacs-lisp-DxhFFVu_-B4R74twV.js +0 -1
  1018. package/dist/console/runtime/public/console/chunks/erb-trZRdc47-DRBdWH-D.js +0 -1
  1019. package/dist/console/runtime/public/console/chunks/erlang-BJeTH9QH-BfDtvnHZ.js +0 -1
  1020. package/dist/console/runtime/public/console/chunks/everforest-dark-gTeBQCos-sB-x3p7T.js +0 -1
  1021. package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +0 -1
  1022. package/dist/console/runtime/public/console/chunks/everforest-light-DUjxsp-2-Df2xbC6M.js +0 -1
  1023. package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +0 -1
  1024. package/dist/console/runtime/public/console/chunks/fennel-B3wtZRne-DQxkIbk2.js +0 -1
  1025. package/dist/console/runtime/public/console/chunks/fish-D7qAeWQz-BJitypiv.js +0 -1
  1026. package/dist/console/runtime/public/console/chunks/fluent-BjfpB34g-C03EYrpw.js +0 -1
  1027. package/dist/console/runtime/public/console/chunks/fortran-fixed-form-B_eBTsj9-C2-rkbip.js +0 -1
  1028. package/dist/console/runtime/public/console/chunks/fortran-free-form-yxJ7igsv-CYNrtFtB.js +0 -1
  1029. package/dist/console/runtime/public/console/chunks/fsharp-UvrT6oWG-LCdvSpj6.js +0 -1
  1030. package/dist/console/runtime/public/console/chunks/gdresource-Dl9wvKCd-C3MGX-jo.js +0 -1
  1031. package/dist/console/runtime/public/console/chunks/gdscript-jjgTGGzd-Cp2uCuqX.js +0 -1
  1032. package/dist/console/runtime/public/console/chunks/gdshader-D7JfdFV3-CBce3t8t.js +0 -1
  1033. package/dist/console/runtime/public/console/chunks/genie-DnK2KWIP-CV2tkWYe.js +0 -1
  1034. package/dist/console/runtime/public/console/chunks/gherkin-D6Lr12YQ-DExj1W_8.js +0 -1
  1035. package/dist/console/runtime/public/console/chunks/git-commit-2LMniMoO-CfgJCLX7.js +0 -1
  1036. package/dist/console/runtime/public/console/chunks/git-rebase-DUOURRPN-DbPsFIae.js +0 -1
  1037. package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +0 -1
  1038. package/dist/console/runtime/public/console/chunks/github-dark-Dg1hl_QD-C-LZuMrd.js +0 -1
  1039. package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +0 -1
  1040. package/dist/console/runtime/public/console/chunks/github-dark-default-Dym2P842-DXG-b-1a.js +0 -1
  1041. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-7iDMx266-Bx1FflLF.js +0 -1
  1042. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +0 -1
  1043. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +0 -1
  1044. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-DkV2fyPG-B_tTalzw.js +0 -1
  1045. package/dist/console/runtime/public/console/chunks/github-light-BQKYgor9-EUqPIrTm.js +0 -1
  1046. package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +0 -1
  1047. package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +0 -1
  1048. package/dist/console/runtime/public/console/chunks/github-light-default-BZhIfzqQ-BXViO-2h.js +0 -1
  1049. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +0 -1
  1050. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-C7zHfx4C-B68TUdTA.js +0 -1
  1051. package/dist/console/runtime/public/console/chunks/gleam-CTllUdfC-CSRkHgEL.js +0 -1
  1052. package/dist/console/runtime/public/console/chunks/glimmer-js-D_32hFh8-Dv_1Q6fk.js +0 -1
  1053. package/dist/console/runtime/public/console/chunks/glimmer-ts-CVt002zd-PmMLyqBp.js +0 -1
  1054. package/dist/console/runtime/public/console/chunks/glsl-8MDrjpMp.js +0 -1
  1055. package/dist/console/runtime/public/console/chunks/glsl-pHhzolba-D3h1XPFw.js +0 -1
  1056. package/dist/console/runtime/public/console/chunks/gn-DDjbVPF4-ilITqXS6.js +0 -1
  1057. package/dist/console/runtime/public/console/chunks/gnuplot-DgWvVXI8-7GGW24-e.js +0 -1
  1058. package/dist/console/runtime/public/console/chunks/go-aXtTCanQ-rLFTqkRN.js +0 -1
  1059. package/dist/console/runtime/public/console/chunks/graphql-BjqekQIR-CtUxCAnJ.js +0 -1
  1060. package/dist/console/runtime/public/console/chunks/graphql-C4iAGs1_.js +0 -1
  1061. package/dist/console/runtime/public/console/chunks/groovy-Bw2Ku4bU-CacY0gHj.js +0 -1
  1062. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +0 -1
  1063. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-CQiwpF03-C820rvS2.js +0 -1
  1064. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BKe6XKBS-BPjhmG05.js +0 -1
  1065. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +0 -1
  1066. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-Cz6U6pa4-MrdJrrXF.js +0 -1
  1067. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +0 -1
  1068. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +0 -1
  1069. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-DgU_i19B-BC_s9l72.js +0 -1
  1070. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +0 -1
  1071. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-D64I06ER-BAWPOn9u.js +0 -1
  1072. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-B-YxAs1L-BSMLrYjP.js +0 -1
  1073. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +0 -1
  1074. package/dist/console/runtime/public/console/chunks/hack-BITNGzgt-BwY4KWmq.js +0 -1
  1075. package/dist/console/runtime/public/console/chunks/haml-BJGeH8A5.js +0 -1
  1076. package/dist/console/runtime/public/console/chunks/haml-DVwRP8W9-C4Ue42xj.js +0 -1
  1077. package/dist/console/runtime/public/console/chunks/handlebars-OC1LcHwO.js +0 -1
  1078. package/dist/console/runtime/public/console/chunks/handlebars-T3TJj8Il-BLQCwuJT.js +0 -1
  1079. package/dist/console/runtime/public/console/chunks/haskell-CfGsE1Cf-D8IpX4py.js +0 -1
  1080. package/dist/console/runtime/public/console/chunks/haxe-B0odltAZ-OTjmBuCE.js +0 -1
  1081. package/dist/console/runtime/public/console/chunks/hcl-DHg_Osgo-Dh228itO.js +0 -1
  1082. package/dist/console/runtime/public/console/chunks/hjson-Cuaphql8-CxZEssPk.js +0 -1
  1083. package/dist/console/runtime/public/console/chunks/hlsl-BJLUNfne-Cvrh5tZx.js +0 -1
  1084. package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +0 -1
  1085. package/dist/console/runtime/public/console/chunks/horizon-DYoumREk-CE9ld1lL.js +0 -1
  1086. package/dist/console/runtime/public/console/chunks/horizon-bright-CPyV7XIA-DSNQnXHK.js +0 -1
  1087. package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +0 -1
  1088. package/dist/console/runtime/public/console/chunks/houston-B3NWfq0V-CsvMBhTu.js +0 -1
  1089. package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +0 -1
  1090. package/dist/console/runtime/public/console/chunks/html-CamevgpM-BbT95zHF.js +0 -1
  1091. package/dist/console/runtime/public/console/chunks/html-Cs160JwT.js +0 -1
  1092. package/dist/console/runtime/public/console/chunks/html-derivative-GiQ9zDJU.js +0 -1
  1093. package/dist/console/runtime/public/console/chunks/html-derivative-jMOJf6rB-Kh3SdD3S.js +0 -1
  1094. package/dist/console/runtime/public/console/chunks/http-BEHztmFP-BxphIJE7.js +0 -1
  1095. package/dist/console/runtime/public/console/chunks/http-Cgwuv9UR.js +0 -1
  1096. package/dist/console/runtime/public/console/chunks/hurl-DMKCZZMv.js +0 -1
  1097. package/dist/console/runtime/public/console/chunks/hurl-LmFBxrwm-CGo4dqUD.js +0 -1
  1098. package/dist/console/runtime/public/console/chunks/hxml-BQ4V4Tez-BaHUc7lX.js +0 -1
  1099. package/dist/console/runtime/public/console/chunks/hy-CJKxDzbh-CZbG8q4J.js +0 -1
  1100. package/dist/console/runtime/public/console/chunks/imba-96qKoJCa-DsUTQ-LC.js +0 -1
  1101. package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +0 -1
  1102. package/dist/console/runtime/public/console/chunks/ini-C24lZfdM-B5eOa1yu.js +0 -1
  1103. package/dist/console/runtime/public/console/chunks/java-CUcXVav_.js +0 -1
  1104. package/dist/console/runtime/public/console/chunks/java-Cfowl-Ex-BnGnzH2k.js +0 -1
  1105. package/dist/console/runtime/public/console/chunks/javascript-C4sF7sej-B29qPxDa.js +0 -1
  1106. package/dist/console/runtime/public/console/chunks/javascript-DrVpc-sp.js +0 -1
  1107. package/dist/console/runtime/public/console/chunks/jinja-C17UUgXU.js +0 -1
  1108. package/dist/console/runtime/public/console/chunks/jinja-CCAEwzP4-PaInFpq5.js +0 -1
  1109. package/dist/console/runtime/public/console/chunks/jison-BKCoBkyT-BRL7eVgb.js +0 -1
  1110. package/dist/console/runtime/public/console/chunks/jison-ByjIV4zh.js +0 -1
  1111. package/dist/console/runtime/public/console/chunks/json-E4f3l6hr-DuNL0Aj9.js +0 -1
  1112. package/dist/console/runtime/public/console/chunks/json-qhed-kSA.js +0 -1
  1113. package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +0 -1
  1114. package/dist/console/runtime/public/console/chunks/json5-xULSgPQI-BR5RXkoi.js +0 -1
  1115. package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +0 -1
  1116. package/dist/console/runtime/public/console/chunks/jsonc-Cu6rqcrJ-CYpm1nAK.js +0 -1
  1117. package/dist/console/runtime/public/console/chunks/jsonl-Bp0qqr10-CmCQp5Yx.js +0 -1
  1118. package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +0 -1
  1119. package/dist/console/runtime/public/console/chunks/jsonnet-BafgE6cE-CJTPZ8u_.js +0 -1
  1120. package/dist/console/runtime/public/console/chunks/jssm-Dx5A5sBR-DXw9l8Rf.js +0 -1
  1121. package/dist/console/runtime/public/console/chunks/jsx-BZjOirBP-Dga5sQe3.js +0 -1
  1122. package/dist/console/runtime/public/console/chunks/jsx-C-HlKHLe.js +0 -1
  1123. package/dist/console/runtime/public/console/chunks/julia-Ca_tGyZB.js +0 -1
  1124. package/dist/console/runtime/public/console/chunks/julia-nEdJo0dp-CJRta6ZT.js +0 -1
  1125. package/dist/console/runtime/public/console/chunks/just-Brtw3q7S-DmytbepJ.js +0 -1
  1126. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-CXtmUGW6.js +0 -1
  1127. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DExkuQAs-CXtmUGW6.js +0 -1
  1128. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BN08jTvb.js +0 -1
  1129. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-qdYh7_RY-BN08jTvb.js +0 -1
  1130. package/dist/console/runtime/public/console/chunks/kanagawa-wave-CSW_hADG-CTweb8Dz.js +0 -1
  1131. package/dist/console/runtime/public/console/chunks/kanagawa-wave-CTweb8Dz.js +0 -1
  1132. package/dist/console/runtime/public/console/chunks/kdl-DkTyxPcj-CsD5j6eV.js +0 -1
  1133. package/dist/console/runtime/public/console/chunks/kotlin-BHE8CoV9-DhhofPvG.js +0 -1
  1134. package/dist/console/runtime/public/console/chunks/kusto-6FdaWTzR-C7mF5XQf.js +0 -1
  1135. package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +0 -1
  1136. package/dist/console/runtime/public/console/chunks/laserwave-DkfjiLxA-C_8bwKvT.js +0 -1
  1137. package/dist/console/runtime/public/console/chunks/latex-QHQNiZDD-fcyJN6QK.js +0 -1
  1138. package/dist/console/runtime/public/console/chunks/lean-BwOKScIt-CewbzKMR.js +0 -1
  1139. package/dist/console/runtime/public/console/chunks/less-BzbdhFUi-DVTAwKKz.js +0 -1
  1140. package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +0 -1
  1141. package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +0 -1
  1142. package/dist/console/runtime/public/console/chunks/light-plus-DuO6rXxZ-DVQuIRkW.js +0 -1
  1143. package/dist/console/runtime/public/console/chunks/liquid-DYQ7uW5u-JGNMHTpg.js +0 -1
  1144. package/dist/console/runtime/public/console/chunks/llvm-uY68ROGz-Cm23YOpf.js +0 -1
  1145. package/dist/console/runtime/public/console/chunks/log-Dad54gsi-BNLmms1o.js +0 -1
  1146. package/dist/console/runtime/public/console/chunks/logo-DTXV8SKw-Cluzi2Zq.js +0 -1
  1147. package/dist/console/runtime/public/console/chunks/lua-BhkUWs1q-CVcL4bwV.js +0 -1
  1148. package/dist/console/runtime/public/console/chunks/luau-YC4aaMmR-FMPmPwt6.js +0 -1
  1149. package/dist/console/runtime/public/console/chunks/make-B2ukzWs3-Dixweg8N.js +0 -1
  1150. package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +0 -1
  1151. package/dist/console/runtime/public/console/chunks/markdown-CkmxmzqY-BYOwaDjH.js +0 -1
  1152. package/dist/console/runtime/public/console/chunks/marko-BHWvxp04-U7nYXRKW.js +0 -1
  1153. package/dist/console/runtime/public/console/chunks/marko-DmV4Eg2F.js +0 -1
  1154. package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +0 -1
  1155. package/dist/console/runtime/public/console/chunks/material-theme-C_YrwKEa-Bm3Qr25_.js +0 -1
  1156. package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +0 -1
  1157. package/dist/console/runtime/public/console/chunks/material-theme-darker-DB3YVCla-2IIEA8gg.js +0 -1
  1158. package/dist/console/runtime/public/console/chunks/material-theme-lighter-D2fgNrBK-uhdI0v04.js +0 -1
  1159. package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +0 -1
  1160. package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +0 -1
  1161. package/dist/console/runtime/public/console/chunks/material-theme-ocean-DVy172Rs-CHQ94UKr.js +0 -1
  1162. package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +0 -1
  1163. package/dist/console/runtime/public/console/chunks/material-theme-palenight-uMMwIfpG-B5W6OYN7.js +0 -1
  1164. package/dist/console/runtime/public/console/chunks/matlab-CfRK6IMC-D7qyCx1q.js +0 -1
  1165. package/dist/console/runtime/public/console/chunks/mdc-BVkdQPZX.js +0 -1
  1166. package/dist/console/runtime/public/console/chunks/mdc-Dg7VPYLa-CshLRYP7.js +0 -1
  1167. package/dist/console/runtime/public/console/chunks/mdx-BK9ZufRc-DQZ5AkYe.js +0 -1
  1168. package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +0 -1
  1169. package/dist/console/runtime/public/console/chunks/mermaid-r7OoIYpE-Bk4SNUv9.js +0 -1
  1170. package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +0 -1
  1171. package/dist/console/runtime/public/console/chunks/min-dark-C7Ec8I_2-BSWPekZh.js +0 -1
  1172. package/dist/console/runtime/public/console/chunks/min-light-Be6foA7m-DDpmG2fV.js +0 -1
  1173. package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +0 -1
  1174. package/dist/console/runtime/public/console/chunks/mipsasm-EL46Y4Xg-BMqwQI7S.js +0 -1
  1175. package/dist/console/runtime/public/console/chunks/mojo-YCzvCoMT-BgCJLMeH.js +0 -1
  1176. package/dist/console/runtime/public/console/chunks/monokai-CREPpJ3k-CdkpiU2Y.js +0 -1
  1177. package/dist/console/runtime/public/console/chunks/monokai-CdkpiU2Y.js +0 -1
  1178. package/dist/console/runtime/public/console/chunks/moonbit-B_9L5rST-CaWjb8XO.js +0 -1
  1179. package/dist/console/runtime/public/console/chunks/move-Dqi5fhOb-B1IS1UjX.js +0 -1
  1180. package/dist/console/runtime/public/console/chunks/narrat-D9rrR0H5-_X_XdTYD.js +0 -1
  1181. package/dist/console/runtime/public/console/chunks/nextflow-CgUAk9iA-CTMUe4Ca.js +0 -1
  1182. package/dist/console/runtime/public/console/chunks/nextflow-groovy-CdFFX-gF-DJMQeKeT.js +0 -1
  1183. package/dist/console/runtime/public/console/chunks/nginx-Q-E8IJvs-DiQO9reH.js +0 -1
  1184. package/dist/console/runtime/public/console/chunks/night-owl-CqqbiLON-DhmEMT88.js +0 -1
  1185. package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +0 -1
  1186. package/dist/console/runtime/public/console/chunks/night-owl-light-B9vYgGRt-eJ-hLW7d.js +0 -1
  1187. package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +0 -1
  1188. package/dist/console/runtime/public/console/chunks/nim-CNcTuF14-W9Ucwkhx.js +0 -1
  1189. package/dist/console/runtime/public/console/chunks/nix-Bm1Ax-Z3-IvuFDN5E.js +0 -1
  1190. package/dist/console/runtime/public/console/chunks/nord-BZ9DVmcN-Cb4Vim4T.js +0 -1
  1191. package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +0 -1
  1192. package/dist/console/runtime/public/console/chunks/nushell-r7hBzeS_-DcLAeLz5.js +0 -1
  1193. package/dist/console/runtime/public/console/chunks/objective-c-6dJF64Dt-D1A_Heim.js +0 -1
  1194. package/dist/console/runtime/public/console/chunks/objective-cpp-_ooRQ-PY-BsSzOQcm.js +0 -1
  1195. package/dist/console/runtime/public/console/chunks/ocaml-vm1Y8An6-O90oeIOV.js +0 -1
  1196. package/dist/console/runtime/public/console/chunks/odin-vjOJSyfV-B1RWQWA5.js +0 -1
  1197. package/dist/console/runtime/public/console/chunks/one-dark-pro-CLwyXe_n.js +0 -1
  1198. package/dist/console/runtime/public/console/chunks/one-dark-pro-Ev8UPkf4-CLwyXe_n.js +0 -1
  1199. package/dist/console/runtime/public/console/chunks/one-light-CzxBC38_-D7Lr4KcI.js +0 -1
  1200. package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +0 -1
  1201. package/dist/console/runtime/public/console/chunks/openscad-jn-f1Ocl-BUDT5pXO.js +0 -1
  1202. package/dist/console/runtime/public/console/chunks/pascal-D8-gNZ2I-4ZHwLPI5.js +0 -1
  1203. package/dist/console/runtime/public/console/chunks/perl-Bbgb6Twx-CHGXAzGq.js +0 -1
  1204. package/dist/console/runtime/public/console/chunks/php-CBOR45_G-D5pyod9R.js +0 -1
  1205. package/dist/console/runtime/public/console/chunks/php-J5BBb-PR.js +0 -1
  1206. package/dist/console/runtime/public/console/chunks/pierre-code-view-DYpF5M8R-BiohFcCD.js +0 -1511
  1207. package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +0 -1
  1208. package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +0 -1
  1209. package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +0 -1
  1210. package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +0 -1
  1211. package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +0 -1
  1212. package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +0 -1
  1213. package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +0 -1
  1214. package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +0 -1
  1215. package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +0 -1
  1216. package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +0 -1
  1217. package/dist/console/runtime/public/console/chunks/pkl-C7lWzykI-ot-7Btpt.js +0 -1
  1218. package/dist/console/runtime/public/console/chunks/plastic-BGkJ2das-DQwYfKfQ.js +0 -1
  1219. package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +0 -1
  1220. package/dist/console/runtime/public/console/chunks/plsql-DCNXypXO-DGHpHOYJ.js +0 -1
  1221. package/dist/console/runtime/public/console/chunks/po-IjpR1yHO-BiJDBrnU.js +0 -1
  1222. package/dist/console/runtime/public/console/chunks/poimandres-CpnMgZuc-DRFjx7u4.js +0 -1
  1223. package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +0 -1
  1224. package/dist/console/runtime/public/console/chunks/polar-4pN1JrJ8-C7UOKdEL.js +0 -1
  1225. package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +0 -1
  1226. package/dist/console/runtime/public/console/chunks/postcss-D1gKt4z_-BXeXVLqQ.js +0 -1
  1227. package/dist/console/runtime/public/console/chunks/powerquery-SrvS_NBM-DNMTfnFr.js +0 -1
  1228. package/dist/console/runtime/public/console/chunks/powershell-CpTLv_ai-DshXNtvi.js +0 -1
  1229. package/dist/console/runtime/public/console/chunks/prisma-BWfa4-tI-BsRQq5mF.js +0 -1
  1230. package/dist/console/runtime/public/console/chunks/prolog-Bacii3Ue-iXnhIJG7.js +0 -1
  1231. package/dist/console/runtime/public/console/chunks/proto-ClkOcAW0-DB4EqR-F.js +0 -1
  1232. package/dist/console/runtime/public/console/chunks/pug-CfJcGJfh.js +0 -1
  1233. package/dist/console/runtime/public/console/chunks/pug-Cn_U_o_I-Cw4zFEpZ.js +0 -1
  1234. package/dist/console/runtime/public/console/chunks/puppet-CQlPp728-CDv2pdJW.js +0 -1
  1235. package/dist/console/runtime/public/console/chunks/purescript-CLpaGMbw-9MfHhQsQ.js +0 -1
  1236. package/dist/console/runtime/public/console/chunks/python-BjnOIxPe-gzcpVVnB.js +0 -1
  1237. package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +0 -1
  1238. package/dist/console/runtime/public/console/chunks/qml-DNlrbxJT-B_IzAFFX.js +0 -1
  1239. package/dist/console/runtime/public/console/chunks/qmldir-Dz8ttxjf-DCQb3MpD.js +0 -1
  1240. package/dist/console/runtime/public/console/chunks/qss-Iltvkn1C-Fe1Jh2GI.js +0 -1
  1241. package/dist/console/runtime/public/console/chunks/r-Dzep-lPg.js +0 -1
  1242. package/dist/console/runtime/public/console/chunks/r-VqTZMNY_-EnO4GoeC.js +0 -1
  1243. package/dist/console/runtime/public/console/chunks/racket-DRv7j6nv-DcIDlBhZ.js +0 -1
  1244. package/dist/console/runtime/public/console/chunks/raku-DI9yGpeW-B3gFvitq.js +0 -1
  1245. package/dist/console/runtime/public/console/chunks/razor-Bw2un3e8-CtGvw0jo.js +0 -1
  1246. package/dist/console/runtime/public/console/chunks/red-CJ3rzSJv.js +0 -1
  1247. package/dist/console/runtime/public/console/chunks/red-EHiRGXSv-CJ3rzSJv.js +0 -1
  1248. package/dist/console/runtime/public/console/chunks/reg-DpJf71oO-CRGYupPL.js +0 -1
  1249. package/dist/console/runtime/public/console/chunks/regexp-5HbFqwky-C3xQXL6t.js +0 -1
  1250. package/dist/console/runtime/public/console/chunks/regexp-R83qIIH_.js +0 -1
  1251. package/dist/console/runtime/public/console/chunks/rel-BT0iIKKw-BtDbiS_P.js +0 -1
  1252. package/dist/console/runtime/public/console/chunks/riscv-CvzikGLb-Ckw8ddFX.js +0 -1
  1253. package/dist/console/runtime/public/console/chunks/ron-DzAo6FTJ-VUp2lXgN.js +0 -1
  1254. package/dist/console/runtime/public/console/chunks/rose-pine-BthvhNj6.js +0 -1
  1255. package/dist/console/runtime/public/console/chunks/rose-pine-DTI-z1Qp-BthvhNj6.js +0 -1
  1256. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-BIiGXpWs-Dg85fqjY.js +0 -1
  1257. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-Dg85fqjY.js +0 -1
  1258. package/dist/console/runtime/public/console/chunks/rose-pine-moon-DU4wt90U-hon4tzzS.js +0 -1
  1259. package/dist/console/runtime/public/console/chunks/rose-pine-moon-hon4tzzS.js +0 -1
  1260. package/dist/console/runtime/public/console/chunks/rosmsg-CyYq6XdT-CAekHB0j.js +0 -1
  1261. package/dist/console/runtime/public/console/chunks/rst-BZPDb03W-BDIwqmQR.js +0 -1
  1262. package/dist/console/runtime/public/console/chunks/ruby-BbVp0_gQ-BUOn3oxT.js +0 -1
  1263. package/dist/console/runtime/public/console/chunks/rust-COBzcmTx-Cfkwpbl8.js +0 -1
  1264. package/dist/console/runtime/public/console/chunks/sas-DSkdG4wF-BE4zxtJ7.js +0 -1
  1265. package/dist/console/runtime/public/console/chunks/sass-DI2zJwx7-DXrisJhu.js +0 -1
  1266. package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +0 -1
  1267. package/dist/console/runtime/public/console/chunks/scala-CtSYTRYT-DKOlJaKm.js +0 -1
  1268. package/dist/console/runtime/public/console/chunks/scheme-D3A2QBtM-DQCgrYNe.js +0 -1
  1269. package/dist/console/runtime/public/console/chunks/scss-BQ7uffpQ-D2aPazKS.js +0 -1
  1270. package/dist/console/runtime/public/console/chunks/scss-DTeHeodw.js +0 -1
  1271. package/dist/console/runtime/public/console/chunks/sdbl-CdQg5gu1-bTVj8UrX.js +0 -1
  1272. package/dist/console/runtime/public/console/chunks/shaderlab-CWP9wBCf-C6U2tjWC.js +0 -1
  1273. package/dist/console/runtime/public/console/chunks/shellscript-B42c0JAn-D5OxpxEd.js +0 -1
  1274. package/dist/console/runtime/public/console/chunks/shellscript-CLZ0U2zV.js +0 -1
  1275. package/dist/console/runtime/public/console/chunks/shellsession-Oc9-NqAv-C1K_F4Is.js +0 -1
  1276. package/dist/console/runtime/public/console/chunks/slack-dark-BS2AOOdo-DnToyrRv.js +0 -1
  1277. package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +0 -1
  1278. package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +0 -1
  1279. package/dist/console/runtime/public/console/chunks/slack-ochin-Nc7Cucwk-B2OO5cIa.js +0 -1
  1280. package/dist/console/runtime/public/console/chunks/smalltalk-BEQkVl4K-B16xEiuN.js +0 -1
  1281. package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +0 -1
  1282. package/dist/console/runtime/public/console/chunks/snazzy-light-C2ghKZXY-4G7pJPwS.js +0 -1
  1283. package/dist/console/runtime/public/console/chunks/solarized-dark-DV17i1UV.js +0 -1
  1284. package/dist/console/runtime/public/console/chunks/solarized-dark-UHgjRWhr-DV17i1UV.js +0 -1
  1285. package/dist/console/runtime/public/console/chunks/solarized-light-B-Zcwve2-DSh2HLQt.js +0 -1
  1286. package/dist/console/runtime/public/console/chunks/solarized-light-DSh2HLQt.js +0 -1
  1287. package/dist/console/runtime/public/console/chunks/solidity-lB9VjfB9-CKzVLygQ.js +0 -1
  1288. package/dist/console/runtime/public/console/chunks/soy-tgh9u9aW-Cm_LtJoW.js +0 -1
  1289. package/dist/console/runtime/public/console/chunks/sparql-B4t0ZbEe-CXgkFCv7.js +0 -1
  1290. package/dist/console/runtime/public/console/chunks/splunk-xP_ZjUH2-BC2Px7Mm.js +0 -1
  1291. package/dist/console/runtime/public/console/chunks/sql-C7n9abzK.js +0 -1
  1292. package/dist/console/runtime/public/console/chunks/sql-CrPlEQn4-COghB3-E.js +0 -1
  1293. package/dist/console/runtime/public/console/chunks/ssh-config-DXFPABYp-BgfXC-Er.js +0 -1
  1294. package/dist/console/runtime/public/console/chunks/stata-D_KqT8cj-oQQpG6t_.js +0 -1
  1295. package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +0 -1
  1296. package/dist/console/runtime/public/console/chunks/stylus-ZZDn1yUO-B6D30XZt.js +0 -1
  1297. package/dist/console/runtime/public/console/chunks/surrealql-C0KhgoyZ-DqXNFH_A.js +0 -1
  1298. package/dist/console/runtime/public/console/chunks/svelte-CRpWSJAY.js +0 -1
  1299. package/dist/console/runtime/public/console/chunks/svelte-DuHT0xxw-Bs0TxuUS.js +0 -1
  1300. package/dist/console/runtime/public/console/chunks/swift-BTPQlRLK-DonLKvLd.js +0 -1
  1301. package/dist/console/runtime/public/console/chunks/synthwave-84-CPtGYwOz-nFMaYfgc.js +0 -1
  1302. package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +0 -1
  1303. package/dist/console/runtime/public/console/chunks/system-verilog-BEoxaBuU-DJ5XKQeo.js +0 -1
  1304. package/dist/console/runtime/public/console/chunks/systemd-DFbUltlW-BxMlprV5.js +0 -1
  1305. package/dist/console/runtime/public/console/chunks/talonscript-CLxaFu-b-CohzipZa.js +0 -1
  1306. package/dist/console/runtime/public/console/chunks/tasl-_AAbKiWM-DMoTqEGO.js +0 -1
  1307. package/dist/console/runtime/public/console/chunks/tcl-DLe0Tsfm-CZd0xW_V.js +0 -1
  1308. package/dist/console/runtime/public/console/chunks/templ-DF54artD-BPb_zNLV.js +0 -1
  1309. package/dist/console/runtime/public/console/chunks/terraform-v0KN9QQh-DswuEJGm.js +0 -1
  1310. package/dist/console/runtime/public/console/chunks/tex-Bbhb8xAP-9R8lE_en.js +0 -1
  1311. package/dist/console/runtime/public/console/chunks/tokyo-night-BKYoawWu-oM2G3aXe.js +0 -1
  1312. package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +0 -1
  1313. package/dist/console/runtime/public/console/chunks/toml-B7BHZIqX-CcmNWLt0.js +0 -1
  1314. package/dist/console/runtime/public/console/chunks/ts-tags-DH1AB-Ri-CgEe3BFX.js +0 -1
  1315. package/dist/console/runtime/public/console/chunks/ts-tags-DJjZLMnt.js +0 -1
  1316. package/dist/console/runtime/public/console/chunks/tsv-BorGVq2Z-sltzmVWM.js +0 -1
  1317. package/dist/console/runtime/public/console/chunks/tsx-B7QamQLF.js +0 -1
  1318. package/dist/console/runtime/public/console/chunks/tsx-BR8s1Lhs-DiW36VFk.js +0 -1
  1319. package/dist/console/runtime/public/console/chunks/turtle-BEG5g_eT-ByJddavk.js +0 -1
  1320. package/dist/console/runtime/public/console/chunks/tv-WsfYJXat.js +0 -1
  1321. package/dist/console/runtime/public/console/chunks/twig-DziFF7iU-DLOFbR4k.js +0 -1
  1322. package/dist/console/runtime/public/console/chunks/typescript-D8TR6ff2-CCKRkaRI.js +0 -1
  1323. package/dist/console/runtime/public/console/chunks/typescript-DzLO-qqB.js +0 -1
  1324. package/dist/console/runtime/public/console/chunks/typespec-C_R5TbvO-BRdr0IET.js +0 -1
  1325. package/dist/console/runtime/public/console/chunks/typst-BV9w0z8--DI99ib-x.js +0 -1
  1326. package/dist/console/runtime/public/console/chunks/v-DfbeXLo8-DETTlOr0.js +0 -1
  1327. package/dist/console/runtime/public/console/chunks/vala-BnnASFsX-zf12oZj6.js +0 -1
  1328. package/dist/console/runtime/public/console/chunks/vb-DU29mvss-Djn5o6TS.js +0 -1
  1329. package/dist/console/runtime/public/console/chunks/verilog-BW5U03XW-CiiDBU1e.js +0 -1
  1330. package/dist/console/runtime/public/console/chunks/vesper-ClvmKzqD-DdrHHSXu.js +0 -1
  1331. package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +0 -1
  1332. package/dist/console/runtime/public/console/chunks/vhdl-Co2XFKY7-BroJfC0k.js +0 -1
  1333. package/dist/console/runtime/public/console/chunks/viml-BReTXeDA-DvXPmvsu.js +0 -1
  1334. package/dist/console/runtime/public/console/chunks/vitesse-black-BY6Qtyq--fwtXNY1n.js +0 -1
  1335. package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +0 -1
  1336. package/dist/console/runtime/public/console/chunks/vitesse-dark-BT-v_EgR-BZCL-v6S.js +0 -1
  1337. package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +0 -1
  1338. package/dist/console/runtime/public/console/chunks/vitesse-light-Box8ZFz6-VbXTXTou.js +0 -1
  1339. package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +0 -1
  1340. package/dist/console/runtime/public/console/chunks/vue-BRy8iDCZ-CL7P9CNz.js +0 -1
  1341. package/dist/console/runtime/public/console/chunks/vue-CQQ6_PvN.js +0 -1
  1342. package/dist/console/runtime/public/console/chunks/vue-html-B24bjO_3-BY2skbNe.js +0 -1
  1343. package/dist/console/runtime/public/console/chunks/vue-html-Ce5SCNOK.js +0 -1
  1344. package/dist/console/runtime/public/console/chunks/vue-vine-DKH1_YEZ.js +0 -1
  1345. package/dist/console/runtime/public/console/chunks/vue-vine-l7O7Mg81-CFWzX3HC.js +0 -1
  1346. package/dist/console/runtime/public/console/chunks/vue.runtime.esm-bundler-COh-O3z7.js +0 -3
  1347. package/dist/console/runtime/public/console/chunks/vyper-C6KGx0YU-CgoNMtux.js +0 -1
  1348. package/dist/console/runtime/public/console/chunks/wasm-BRCjOXGL-BnjxR4X6.js +0 -1
  1349. package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +0 -1
  1350. package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +0 -1
  1351. package/dist/console/runtime/public/console/chunks/wasm-gNIKwGlD-ByWQv1Qj.js +0 -1
  1352. package/dist/console/runtime/public/console/chunks/wenyan-BeysbCrW-C8pVoKbM.js +0 -1
  1353. package/dist/console/runtime/public/console/chunks/wgsl-1s5rV5xS-BsKzXJz4.js +0 -1
  1354. package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +0 -1
  1355. package/dist/console/runtime/public/console/chunks/wikitext-wjhjmmzD-ClFFjSW2.js +0 -1
  1356. package/dist/console/runtime/public/console/chunks/wit-CeQiCbz_-DdvCle-K.js +0 -1
  1357. package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +0 -1
  1358. package/dist/console/runtime/public/console/chunks/wolfram-CcZPfnLd-DLL8P-h_.js +0 -1
  1359. package/dist/console/runtime/public/console/chunks/xml-CduVPlYa-BZCwbgEk.js +0 -1
  1360. package/dist/console/runtime/public/console/chunks/xml-G-voesMw.js +0 -1
  1361. package/dist/console/runtime/public/console/chunks/xsl-BeH_vLTK-DeKk-5KU.js +0 -1
  1362. package/dist/console/runtime/public/console/chunks/yaml-Cb0uRU1q-CkSC4c4u.js +0 -1
  1363. package/dist/console/runtime/public/console/chunks/yaml-rwi0_p6S.js +0 -1
  1364. package/dist/console/runtime/public/console/chunks/zenscript-BoijL7rl-BnlCZFoB.js +0 -1
  1365. package/dist/console/runtime/public/console/chunks/zig-lTQvxhLD-CMLA9XwU.js +0 -1
  1366. package/dist/console/runtime/public/console/console-Bwq3z75a.css +0 -3
  1367. package/dist/console/runtime/public/console/console-Cl-xrMah.js +0 -1371
  1368. package/dist/console/runtime/server/blob.get.d.ts +0 -25
  1369. package/dist/console/runtime/server/blob.get.js +0 -74
  1370. package/dist/console/runtime/server/devframe.d.ts +0 -13
  1371. package/dist/console/runtime/server/devframe.js +0 -133
  1372. package/dist/console/runtime/server/kv.d.ts +0 -2
  1373. package/dist/console/runtime/server/kv.get.d.ts +0 -24
  1374. package/dist/console/runtime/server/kv.get.js +0 -236
  1375. package/dist/console/runtime/server/kv.js +0 -18
  1376. package/dist/console/runtime/server/page.get.d.ts +0 -6
  1377. package/dist/console/runtime/server/page.get.js +0 -33
  1378. package/dist/database/drizzle.d.ts +0 -16
  1379. package/dist/database/drizzle.js +0 -9
  1380. package/dist/database-CW-WjW4u.d.ts +0 -8
  1381. package/dist/definitions-BHmB22eM.d.ts +0 -7
  1382. package/dist/definitions-CfSmoS5G.d.ts +0 -17
  1383. package/dist/email/server.d.ts +0 -1
  1384. package/dist/email/server.js +0 -2
  1385. package/dist/env/presets.d.ts +0 -1
  1386. package/dist/env/presets.js +0 -2
  1387. package/dist/env/provider.d.ts +0 -1
  1388. package/dist/env/provider.js +0 -2
  1389. package/dist/env/schema.d.ts +0 -1
  1390. package/dist/env/schema.js +0 -2
  1391. package/dist/env/secret.d.ts +0 -1
  1392. package/dist/env/secret.js +0 -2
  1393. package/dist/index-B072hyCd.d.ts +0 -59
  1394. package/dist/internal-12r-XCbk.d.ts +0 -20
  1395. package/dist/internal-DzLLx0iR.js +0 -304
  1396. package/dist/invocations-qwMRTSy7.js +0 -364
  1397. package/dist/kv-DLGscNQ_.d.ts +0 -8
  1398. package/dist/request-DxBwxGnk.js +0 -72
  1399. package/dist/request-NErg_P5m.d.ts +0 -43
  1400. package/dist/runtime/node.d.ts +0 -1
  1401. package/dist/runtime/node.js +0 -2
  1402. package/dist/schedule/runtime/driver.d.ts +0 -1
  1403. package/dist/schedule/runtime/driver.js +0 -2
  1404. package/dist/search.get-ClTCn-mh.js +0 -100
  1405. package/dist/sections-7HoMOIGH.d.ts +0 -9
  1406. package/dist/sections-DVsqeLAF.d.ts +0 -100
  1407. package/dist/server-BFxDhCzA.d.ts +0 -78
  1408. package/dist/shell/providers/cloudflare.d.ts +0 -1
  1409. package/dist/shell/providers/cloudflare.js +0 -2
  1410. package/dist/source/content/client.d.ts +0 -1
  1411. package/dist/source/content/client.js +0 -2
  1412. package/dist/source/content.d.ts +0 -1
  1413. package/dist/source/content.js +0 -2
  1414. package/dist/source/file.d.ts +0 -1
  1415. package/dist/source/file.js +0 -2
  1416. package/dist/source/github.d.ts +0 -1
  1417. package/dist/source/github.js +0 -2
  1418. package/dist/source/glob.d.ts +0 -1
  1419. package/dist/source/glob.js +0 -2
  1420. package/dist/source/markdown.d.ts +0 -1
  1421. package/dist/source/markdown.js +0 -2
  1422. package/dist/src-XEJGHDr9.js +0 -5247
  1423. package/dist/types-BucGTJnk.js +0 -168
  1424. package/dist/ui/nuxt.d.ts +0 -3
  1425. package/dist/ui/nuxt.js +0 -3
  1426. package/dist/usage-CoZa_8fx.js +0 -361
  1427. package/dist/workspace/collections/client.d.ts +0 -1
  1428. package/dist/workspace/collections/client.js +0 -2
  1429. package/dist/workspace/collections.d.ts +0 -1
  1430. package/dist/workspace/collections.js +0 -2
  1431. package/dist/workspace/publish.d.ts +0 -1
  1432. package/dist/workspace/publish.js +0 -2
@@ -0,0 +1,1991 @@
1
+ import { consoleDateTime, consoleDuration } from "../../client/format.ts";
2
+ import { useIntervalFn, useMounted, useNow } from "@vueuse/core";
3
+ import { channelIcon } from "./internal/channel-icon.ts";
4
+ import { invocationBrand, invocationBrandMark, invocationModelMaker, invocationModelName } from "./internal/invocation-brand.ts";
5
+ import { computed, defineAsyncComponent, defineComponent, getCurrentInstance, h, nextTick, onBeforeUnmount, ref, useId, type PropType, type DefineComponent, type ComponentOptionsMixin, Suspense, watch } from "vue";
6
+ import type { AgentInvocationConfiguration, AgentInvocationView } from "./types.ts";
7
+ import {
8
+ agentInvocationContext,
9
+ agentInvocationExternalUrl,
10
+ agentInvocationProject,
11
+ agentInvocationTitle,
12
+ } from "./invocation-display.ts";
13
+ import {
14
+ agentConfigurationSummary,
15
+ channelDeliverySummary,
16
+ invocationActivities,
17
+ invocationActivityTitle,
18
+ invocationTruncationNotice,
19
+ invocationToolUsage,
20
+ latestInvocationTokens,
21
+ stringAttribute,
22
+ terminalText,
23
+ type InvocationActivity,
24
+ invocationActivityDetail,
25
+ } from "./internal/invocation-activity.ts";
26
+ import { AgentInvocationTimeline, invocationTimeline } from "./agent-invocation-timeline.ts";
27
+
28
+ export { invocationActivities } from "./internal/invocation-activity.ts";
29
+ import { buildInvocationConversation, type InvocationConversation } from "./internal/invocation-conversation.ts";
30
+ import { payloadText } from "./internal/payload-text.ts";
31
+ import { isSafeExternalUrl } from "./internal/url.ts";
32
+ import { Markdown, ToolList, useCopy } from "@vite-hub/ui";
33
+
34
+ const InvocationPatchDiff = defineAsyncComponent(() => import("../console-lazy-views.ts").then(module => module.PatchDiff));
35
+
36
+ function statusLabel(status: AgentInvocationView["status"]): string {
37
+ const labels = {
38
+ cancelled: "Cancelled",
39
+ completed: "Completed",
40
+ failed: "Failed",
41
+ pending: "Queued",
42
+ running: "Working",
43
+ };
44
+ return Object.hasOwn(labels, status) ? labels[status] : "Unknown";
45
+ }
46
+
47
+ function compactCommand(command: string): string {
48
+ const normalized = command.replaceAll(/\s+/g, " ").trim();
49
+ return normalized.length > 96 ? `${normalized.slice(0, 95)}…` : normalized;
50
+ }
51
+
52
+ function formatTokens(value: number | undefined): string | undefined {
53
+ if (value === undefined || value <= 0) return;
54
+ if (value < 1_000) return `${value} tokens`;
55
+ return `${new Intl.NumberFormat("en", { maximumFractionDigits: 1, notation: "compact" }).format(value)} tokens`;
56
+ }
57
+
58
+ function formatDuration(startedAt: string | undefined, completedAt: string | undefined): string | undefined {
59
+ if (!startedAt || !completedAt) return;
60
+ return consoleDuration(Date.parse(completedAt) - Date.parse(startedAt), { wholeSeconds: true });
61
+ }
62
+
63
+ /** Elapsed time of a live session as `m:ss`, or `h:mm:ss` after the first hour. */
64
+ function formatElapsed(startedAt: string | undefined, now: Date | undefined): string | undefined {
65
+ if (!startedAt || !now) return;
66
+ const elapsed = now.getTime() - Date.parse(startedAt);
67
+ if (!Number.isFinite(elapsed) || elapsed < 0) return;
68
+ const seconds = Math.floor(elapsed / 1_000);
69
+ const minutes = Math.floor(seconds / 60) % 60;
70
+ const hours = Math.floor(seconds / 3_600);
71
+ const pad = (value: number) => String(value).padStart(2, "0");
72
+ return hours ? `${hours}:${pad(minutes)}:${pad(seconds % 60)}` : `${minutes}:${pad(seconds % 60)}`;
73
+ }
74
+
75
+ function driverLabel(configuration: AgentInvocationConfiguration): string | undefined {
76
+ const driver = configuration.driver;
77
+ const model = driver?.model;
78
+ return [
79
+ driver?.kind,
80
+ model?.provider ?? driver?.provider,
81
+ model?.id,
82
+ ].filter(Boolean).join(" · ") || undefined;
83
+ }
84
+
85
+ function workspaceLabel(configuration: AgentInvocationConfiguration): string | undefined {
86
+ const workspace = configuration.workspace;
87
+ return workspace ? [workspace.name, workspace.mode].filter(Boolean).join(" · ") : undefined;
88
+ }
89
+
90
+ function markdown(value: string | undefined, className: string) {
91
+ if (!value) return null;
92
+ return h(Suspense, null, {
93
+ default: () => h(Markdown, { class: className, value }),
94
+ fallback: () => h("p", { class: className }, value),
95
+ });
96
+ }
97
+
98
+ export function workspaceArtifactPath(value: string): string | undefined {
99
+ // Separate URL metadata before decoding literal filename delimiters.
100
+ const pathname = value.split(/[?#]/, 1)[0]!;
101
+ const match = /^\/workspace\/[^/]+\/(.+)$/.exec(pathname);
102
+ if (!match) return;
103
+ const path = (() => { try { return decodeURIComponent(match[1]!); } catch { return match[1]!; } })();
104
+ if (!path || path.startsWith("/") || path.includes("\\") || path.split("/").some(part => !part || part === "." || part === "..")) return;
105
+ return path;
106
+ }
107
+
108
+ function renderFolderIcon() {
109
+ return h("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [
110
+ h("path", { d: "M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z", "stroke-linecap": "round", "stroke-linejoin": "round" }),
111
+ ]);
112
+ }
113
+
114
+ type InspectTarget = "agent" | "workspace";
115
+ type InspectHandler = (target: InspectTarget, path?: string) => void;
116
+
117
+
118
+ function payloadPreview(value: unknown, text: string): string {
119
+ const source = typeof value === "string" ? value : text.replaceAll(/\s+/g, " ");
120
+ const compact = source.trim();
121
+ return compact.length > 112 ? `${compact.slice(0, 111)}…` : compact || "Empty payload";
122
+ }
123
+
124
+ type InvocationErrorValue = NonNullable<AgentInvocationView["error"]>;
125
+
126
+ /**
127
+ * A failed run, at the end of the thread where the run stopped (Vercel's failed build, Railway's diagnosis): what
128
+ * failed, how to fix it, and the full diagnostic to copy. A plain element, not UAlert, so it looks the same in the
129
+ * standalone Console and in hosts that register Nuxt UI. It is a record, not a live alert, so opening an old session
130
+ * does not interrupt a screen reader.
131
+ */
132
+ const InvocationError = defineComponent({
133
+ name: "InvocationError",
134
+ props: {
135
+ error: { required: true, type: Object as PropType<InvocationErrorValue> },
136
+ },
137
+ setup(props) {
138
+ const titleId = useId();
139
+ const detailsId = useId();
140
+ const detailsOpen = ref(false);
141
+ const clipboard = useCopy();
142
+ const copyStatus = computed(() => clipboard.copied.value ? "copied" : clipboard.failed.value ? "failed" : undefined);
143
+ const copyError = () => clipboard.copy(() => payloadText(diagnosticPayload(props.error)));
144
+
145
+ return () => {
146
+ const error = props.error;
147
+ const payload = diagnosticPayload(error);
148
+ // Match Console request errors' HTTPS-only policy; keep the original URL in the diagnostic.
149
+ const docs = error.docs?.startsWith("https://") && isSafeExternalUrl(error.docs) ? error.docs : undefined;
150
+ // The message alone repeats the card; any other field is worth a details view.
151
+ const hasDetails = Object.keys(payload).length > 1;
152
+ // The name and status qualify the code; a plain "Error" name says nothing.
153
+ const meta = [error.name && error.name !== "Error" ? error.name : undefined, error.code === undefined ? undefined : String(error.code), error.status ?? error.statusCode]
154
+ .filter(value => value !== undefined && value !== "")
155
+ .join(" · ");
156
+ return h("section", { class: "vh-invocation-error", "aria-labelledby": titleId, "data-slot": "invocation-error" }, [
157
+ h("header", { class: "vh-invocation-error__header" }, [
158
+ h("svg", { class: "vh-invocation-error__icon", "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [
159
+ h("circle", { cx: "12", cy: "12", r: "9" }),
160
+ h("path", { d: "m15 9-6 6m0-6 6 6", "stroke-linecap": "round" }),
161
+ ]),
162
+ h("h3", { class: "vh-invocation-error__title", id: titleId }, "Run failed"),
163
+ meta ? h("code", { class: "vh-invocation-error__code", title: meta }, meta) : null,
164
+ ]),
165
+ // A leading namespace such as "[vitehub]" repeats the source; the copied diagnostic keeps the full message.
166
+ h("p", { class: "vh-invocation-error__message" }, error.message.replace(/^\[[\w./-]+\]\s*/, "")),
167
+ error.fix ? h("div", { class: "vh-invocation-error__fix" }, [
168
+ h("p", { class: "vh-invocation-error__label" }, "How to fix"),
169
+ h("p", error.fix),
170
+ ]) : null,
171
+ h("div", { class: "vh-invocation-error__actions" }, [
172
+ docs ? h("a", { class: "vh-invocation-error__action", href: docs, rel: "noreferrer", target: "_blank" }, [
173
+ "Read the docs",
174
+ h("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [h("path", { d: "M7 17 17 7M8 7h9v9", "stroke-linecap": "round", "stroke-linejoin": "round" })]),
175
+ ]) : null,
176
+ h("button", { class: "vh-invocation-error__action", type: "button", onClick: copyError }, [
177
+ copyIcon(copyStatus.value === "copied"),
178
+ copyStatus.value === "copied" ? "Copied" : copyStatus.value === "failed" ? "Copy failed" : "Copy error",
179
+ ]),
180
+ hasDetails ? h("button", {
181
+ "aria-controls": detailsId,
182
+ "aria-expanded": detailsOpen.value ? "true" : "false",
183
+ class: "vh-invocation-error__action",
184
+ type: "button",
185
+ onClick: () => detailsOpen.value = !detailsOpen.value,
186
+ }, [
187
+ h("svg", { class: "vh-invocation-error__chevron", "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [h("path", { d: "m9 6 6 6-6 6", "stroke-linecap": "round", "stroke-linejoin": "round" })]),
188
+ "Details",
189
+ ]) : null,
190
+ h("span", { "aria-live": "polite", "data-slot": "visually-hidden", role: "status" }, copyStatus.value === "copied" ? "Error copied" : copyStatus.value === "failed" ? "Could not copy the error" : ""),
191
+ ]),
192
+ hasDetails ? h("pre", { class: "vh-invocation-error__details", hidden: !detailsOpen.value, id: detailsId }, payloadText(payload)) : null,
193
+ ]);
194
+ };
195
+ },
196
+ });
197
+
198
+ function invocationTimestamp(invocation: AgentInvocationView) {
199
+ const value = [invocation.startedAt, invocation.createdAt].find(value => value && Number.isFinite(Date.parse(value)));
200
+ if (!value) return null;
201
+ const date = new Date(value);
202
+ return h("time", {
203
+ class: "vh-invocation-session__timestamp",
204
+ datetime: date.toISOString(),
205
+ title: date.toLocaleString("en", { dateStyle: "full", timeStyle: "long" }),
206
+ }, date.toLocaleString("en", { dateStyle: "medium", timeStyle: "short" }));
207
+ }
208
+
209
+ /** Every diagnostic field of a failed run, for the details view and the copied error. */
210
+ function diagnosticPayload(error: InvocationErrorValue): Record<string, unknown> {
211
+ const details: Record<string, unknown> = { message: error.message };
212
+ if (error.fix) details.fix = error.fix;
213
+ if (error.docs) details.docs = error.docs;
214
+ if (error.sources?.length) details.sources = error.sources;
215
+ if (error.code !== undefined) details.code = error.code;
216
+ if (error.requestId) details.requestId = error.requestId;
217
+ if (error.status !== undefined) details.status = error.status;
218
+ if (error.statusCode !== undefined) details.statusCode = error.statusCode;
219
+ if (error.details) details.details = error.details;
220
+ if (error.cause) details.cause = error.cause;
221
+ if (error.errors?.length) details.errors = error.errors;
222
+ return details;
223
+ }
224
+
225
+ function jsonValueLabel(value: unknown): string {
226
+ if (typeof value === "string") return JSON.stringify(value);
227
+ if (value === null) return "null";
228
+ if (typeof value === "object") return Array.isArray(value) ? `Array(${value.length})` : "Object";
229
+ return String(value);
230
+ }
231
+
232
+ function matchingPayloadRows(
233
+ value: unknown,
234
+ query: string,
235
+ path = "$",
236
+ result: { rows: Array<{ path: string; value: string }>; truncated: boolean } = { rows: [], truncated: false },
237
+ depth = 0,
238
+ ) {
239
+ const label = jsonValueLabel(value);
240
+ if (`${path} ${label}`.toLocaleLowerCase().includes(query)) {
241
+ if (result.rows.length >= 500) {
242
+ result.truncated = true;
243
+ return result;
244
+ }
245
+ result.rows.push({ path, value: label });
246
+ }
247
+ if (typeof value !== "object" || value === null || depth >= 12) return result;
248
+ for (const [key, item] of Object.entries(value)) {
249
+ matchingPayloadRows(item, query, Array.isArray(value) ? `${path}[${key}]` : `${path}.${key}`, result, depth + 1);
250
+ if (result.truncated) break;
251
+ }
252
+ return result;
253
+ }
254
+
255
+ function renderPayloadTree(
256
+ value: unknown,
257
+ label?: string,
258
+ depth = 0,
259
+ budget: { remaining: number } = { remaining: 500 },
260
+ ): ReturnType<typeof h> {
261
+ budget.remaining--;
262
+ if (budget.remaining < 0) {
263
+ return h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden");
264
+ }
265
+ if (depth >= 12 && typeof value === "object" && value !== null) {
266
+ return h("li", { class: "vh-invocation-payload__leaf" }, [
267
+ label ? h("code", { class: "vh-invocation-payload__key" }, label) : null,
268
+ h("code", { class: "vh-invocation-payload__value" }, "Nested content hidden"),
269
+ ]);
270
+ }
271
+ if (typeof value !== "object" || value === null) {
272
+ return h("li", { class: "vh-invocation-payload__leaf" }, [
273
+ label ? h("code", { class: "vh-invocation-payload__key" }, label) : null,
274
+ h("code", { class: "vh-invocation-payload__value", "data-type": value === null ? "null" : typeof value }, jsonValueLabel(value)),
275
+ ]);
276
+ }
277
+ const entries = Object.entries(value);
278
+ const children: ReturnType<typeof h>[] = [];
279
+ for (let index = 0; index < entries.length; index++) {
280
+ if (budget.remaining <= 0) break;
281
+ if (budget.remaining === 1) {
282
+ budget.remaining--;
283
+ children.push(h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden"));
284
+ break;
285
+ }
286
+ const [key, item] = entries[index]!;
287
+ children.push(renderPayloadTree(item, key, depth + 1, budget));
288
+ }
289
+ return h("li", { class: "vh-invocation-payload__branch" }, [
290
+ h("details", { open: depth < 1 }, [
291
+ h("summary", [
292
+ label ? h("code", { class: "vh-invocation-payload__key" }, label) : null,
293
+ h("span", Array.isArray(value) ? `Array(${entries.length})` : `{${entries.length}}`),
294
+ ]),
295
+ h("ul", children),
296
+ ]),
297
+ ]);
298
+ }
299
+
300
+ const InvocationPayload = defineComponent({
301
+ name: "InvocationPayload",
302
+ props: {
303
+ label: { required: true, type: String },
304
+ value: { required: true },
305
+ },
306
+ setup(props) {
307
+ const mode = ref<"tree" | "raw">("tree");
308
+ const query = ref("");
309
+ const open = ref(false);
310
+ const { copied, copy, failed: copyFailed } = useCopy({ duration: 1_600 });
311
+ const text = computed(() => payloadText(props.value));
312
+ const normalized = computed<unknown>(() => {
313
+ if (typeof props.value !== "object" || props.value === null) return props.value;
314
+ try {
315
+ return JSON.parse(text.value);
316
+ } catch {
317
+ return text.value;
318
+ }
319
+ });
320
+ const structured = computed(() => typeof normalized.value === "object" && normalized.value !== null);
321
+ const matches = computed(() => query.value
322
+ ? matchingPayloadRows(normalized.value, query.value.toLocaleLowerCase())
323
+ : { rows: [], truncated: false });
324
+ const rawMatches = computed(() => {
325
+ if (!query.value) return text.value;
326
+ const normalizedQuery = query.value.toLocaleLowerCase();
327
+ return text.value.split("\n").filter(line => line.toLocaleLowerCase().includes(normalizedQuery)).join("\n");
328
+ });
329
+
330
+ const copyPayload = () => copy(text.value);
331
+
332
+ // SAFETY: DOM toggle events for this details element expose HTMLDetailsElement as currentTarget.
333
+ return () => h("details", {
334
+ class: "vh-invocation-event__payload",
335
+ // SAFETY: DOM toggle events for this details element expose HTMLDetailsElement as currentTarget.
336
+ onToggle: (event: Event) => { open.value = (event.currentTarget as HTMLDetailsElement).open; },
337
+ open: open.value,
338
+ }, [
339
+ h("summary", [
340
+ h("strong", props.label),
341
+ h("code", payloadPreview(props.value, text.value)),
342
+ renderDisclosureChevron("vh-invocation-event__disclosure"),
343
+ ]),
344
+ open.value ? h("div", { class: "vh-invocation-payload__content" }, [
345
+ h("div", { class: "vh-invocation-payload__toolbar" }, [
346
+ structured.value ? h("div", { "aria-label": `${props.label} view`, class: "vh-invocation-payload__modes", role: "group" }, [
347
+ h("button", { "aria-pressed": mode.value === "tree", onClick: () => { mode.value = "tree"; }, type: "button" }, "Tree"),
348
+ h("button", { "aria-pressed": mode.value === "raw", onClick: () => { mode.value = "raw"; }, type: "button" }, "Raw"),
349
+ ]) : null,
350
+ structured.value || text.value.length > 240
351
+ ? h("label", { class: "vh-invocation-payload__search" }, [
352
+ h("span", { "data-slot": "visually-hidden" }, `Search ${props.label}`),
353
+ h("input", {
354
+ // SAFETY: Input events for this rendered control expose HTMLInputElement as target.
355
+ onInput: (event: Event) => { query.value = (event.target as HTMLInputElement).value; },
356
+ placeholder: "Search payload",
357
+ type: "search",
358
+ value: query.value,
359
+ }),
360
+ ])
361
+ : null,
362
+ h("button", { class: "vh-invocation-payload__copy", onClick: () => void copyPayload(), type: "button" }, copied.value ? "Copied" : "Copy"),
363
+ ]),
364
+ h("span", { "aria-live": "polite", "data-slot": "visually-hidden", role: "status" }, copyFailed.value ? `${props.label} could not be copied` : copied.value ? `${props.label} copied` : ""),
365
+ query.value && structured.value && mode.value === "tree"
366
+ ? matches.value.rows.length
367
+ ? h("ol", { class: "vh-invocation-payload__matches" }, [
368
+ ...matches.value.rows.map(match => h("li", [
369
+ h("code", match.path),
370
+ h("code", match.value),
371
+ ])),
372
+ matches.value.truncated ? h("li", "More matches hidden. Refine your search.") : null,
373
+ ])
374
+ : h("p", { class: "vh-invocation-payload__empty" }, "No matching fields")
375
+ : structured.value && mode.value === "tree"
376
+ ? h("ul", { class: "vh-invocation-payload__tree" }, [renderPayloadTree(normalized.value)])
377
+ : rawMatches.value
378
+ ? h("pre", rawMatches.value)
379
+ : h("p", { class: "vh-invocation-payload__empty" }, "No matching content"),
380
+ ]) : null,
381
+ ]);
382
+ },
383
+ });
384
+
385
+ const messageRoleLabels: Record<NonNullable<InvocationActivity["role"]>, string> = {
386
+ assistant: "Assistant",
387
+ system: "System",
388
+ tool: "Tool",
389
+ user: "You",
390
+ };
391
+
392
+ interface MessageRendering {
393
+ author?: string;
394
+ copy: (activity: InvocationActivity) => void;
395
+ copiedId?: string;
396
+ copyStatus?: "copied" | "failed";
397
+ promptId?: string;
398
+ sentAt?: string;
399
+ now: Date;
400
+ /** Second-resolution clock that only ticks while the session is live. */
401
+ liveNow?: Date;
402
+ mounted: boolean;
403
+ }
404
+
405
+ function renderMessage(
406
+ activity: InvocationActivity,
407
+ expanded: ReadonlySet<string>,
408
+ toggleExpanded: (id: string) => void,
409
+ messageRendering: MessageRendering,
410
+ insideWork = false,
411
+ ) {
412
+ const body = activity.body ?? "";
413
+ const collapsible = activity.role === "user" && (body.length > 720 || body.split(/\r?\n/).length > 12);
414
+ const isExpanded = expanded.has(activity.id);
415
+ const sentAt = messageTimestamp(activity, messageRendering.now, messageRendering.mounted, activity.id === messageRendering.promptId ? messageRendering.sentAt : undefined);
416
+ const copyStatus = messageRendering.copiedId === activity.id ? messageRendering.copyStatus : undefined;
417
+ const commentary = activity.attributes["message.phase"] === "commentary";
418
+ // Inside the work list, an assistant message is a progress note, even when the driver does not mark it as commentary.
419
+ const progressNote = insideWork && activity.role === "assistant";
420
+ const hasMessageMeta = (activity.role === "user" || activity.role === "assistant") && !progressNote;
421
+ // The prompt names its known author; other user messages come from the viewer.
422
+ const author = activity.id === messageRendering.promptId ? messageRendering.author : undefined;
423
+ const roleLabel = author ?? messageRoleLabels[activity.role ?? "assistant"];
424
+ return h(
425
+ "li",
426
+ {
427
+ class: "vh-invocation-message",
428
+ "data-phase": commentary ? "commentary" : undefined,
429
+ "data-role": activity.role,
430
+ key: activity.id,
431
+ },
432
+ [
433
+ progressNote
434
+ ? h("span", { "data-slot": "visually-hidden" }, `${roleLabel} message`)
435
+ : h("span", { class: "vh-invocation-message__role" }, roleLabel),
436
+ activity.attributes["input.mode"] === "steer"
437
+ ? h("small", { class: "vh-invocation-message__method" }, "Steered")
438
+ : null,
439
+ h("div", {
440
+ class: "vh-invocation-message__content",
441
+ "data-collapsed": collapsible && !isExpanded ? "true" : undefined,
442
+ }, [markdown(body, "vh-invocation-message__body")]),
443
+ renderTruncationNotice(activity),
444
+ collapsible
445
+ ? h("button", {
446
+ "aria-expanded": String(isExpanded),
447
+ class: "vh-invocation-message__more",
448
+ onClick: () => toggleExpanded(activity.id),
449
+ type: "button",
450
+ }, isExpanded ? "Show less" : "Read more")
451
+ : null,
452
+ hasMessageMeta
453
+ ? h("footer", { class: "vh-invocation-message__meta" }, [
454
+ author ? h("span", { class: "vh-invocation-message__author" }, author) : null,
455
+ sentAt ? h("time", { datetime: sentAt.value, title: sentAt.title }, sentAt.short) : null,
456
+ h("button", {
457
+ "aria-label": copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
458
+ class: "vh-invocation-message__copy",
459
+ onClick: () => messageRendering.copy(activity),
460
+ title: copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
461
+ type: "button",
462
+ }, copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : [renderCopyIcon()]),
463
+ copyStatus ? h("span", { "data-slot": "visually-hidden", "aria-live": "polite", role: "status" }, copyStatus === "copied" ? "Message copied" : "Message could not be copied") : null,
464
+ ])
465
+ : null,
466
+ ],
467
+ );
468
+ }
469
+
470
+ function messageTimestamp(activity: InvocationActivity, now: Date, mounted: boolean, sentAt?: string): { short: string; title: string; value: string } | undefined {
471
+ const value = sentAt ?? stringAttribute(activity.attributes, "channel.sentAt")
472
+ ?? stringAttribute(activity.attributes, "input.sentAt")
473
+ ?? activity.startedAt;
474
+ if (!value || !Number.isFinite(Date.parse(value))) return;
475
+ const date = new Date(value);
476
+ if (!mounted) return { short: date.toISOString(), title: date.toISOString(), value };
477
+ const time = new Intl.DateTimeFormat("en", { hour: "numeric", minute: "2-digit" }).format(date);
478
+ const startOfToday = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
479
+ const startOfMessageDay = new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime();
480
+ const dayDifference = Math.round((startOfToday - startOfMessageDay) / 86_400_000);
481
+ const dateOptions: Intl.DateTimeFormatOptions = { day: "numeric", month: "numeric" };
482
+ if (date.getFullYear() !== now.getFullYear()) dateOptions.year = "numeric";
483
+ const short = dayDifference <= 0
484
+ ? time
485
+ : dayDifference === 1
486
+ ? `Yesterday at ${time}`
487
+ : `${new Intl.DateTimeFormat("en", dateOptions).format(date)} ${time}`;
488
+ return {
489
+ short,
490
+ title: consoleDateTime(value),
491
+ value,
492
+ };
493
+ }
494
+
495
+ function renderCopyIcon() {
496
+ return h("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [
497
+ h("rect", { height: "13", rx: "2", width: "13", x: "8", y: "8" }),
498
+ h("path", { d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3" }),
499
+ ]);
500
+ }
501
+
502
+ type ActivityIcon =
503
+ | "activity"
504
+ | "alert"
505
+ | "action"
506
+ | "approval"
507
+ | "brain"
508
+ | "change"
509
+ | "check"
510
+ | "command"
511
+ | "cpu"
512
+ | "eye"
513
+ | "folder"
514
+ | "github"
515
+ | "label"
516
+ | "message"
517
+ | "pull-request"
518
+ | "search"
519
+ | "tool";
520
+
521
+ function activityIcon(activity: InvocationActivity): ActivityIcon {
522
+ const name = String(activity.attributes["tool.name"] ?? "").toLocaleLowerCase();
523
+ if (activity.command) return "command";
524
+ if (activity.kind === "error") return "alert";
525
+ if (activity.kind === "change") return "change";
526
+ if (name.includes("read") || name.includes("image") || name.includes("view")) return "eye";
527
+ if (name.includes("search") || name.includes("find")) return "search";
528
+ if (activity.kind === "reasoning" || activity.kind === "model") return "brain";
529
+ if (activity.kind === "run") return "activity";
530
+ if (activity.kind === "approval") return "approval";
531
+ if (activity.kind === "delivery") {
532
+ const delivery = String(activity.attributes["channel.effect.kind"] ?? "").toLocaleLowerCase();
533
+ if (delivery === "reaction") return "eye";
534
+ if (["reply", "status", "update"].includes(delivery)) return "message";
535
+ return "action";
536
+ }
537
+ if (activity.kind === "action") return "check";
538
+ if (activity.kind === "preparation") {
539
+ const title = invocationActivityTitle(activity).toLocaleLowerCase();
540
+ if (title.includes("pull request")) return "pull-request";
541
+ if (title.includes("github")) return "github";
542
+ if (title.includes("workspace")) return "folder";
543
+ if (title.includes("agent")) return "cpu";
544
+ if (title.includes("prompt")) return "message";
545
+ return "check";
546
+ }
547
+ if (activity.kind === "system") return "cpu";
548
+ return activity.kind === "tool" ? "tool" : "activity";
549
+ }
550
+
551
+ const activityIconPaths: Record<ActivityIcon, readonly string[]> = {
552
+ activity: ["M12 12h.01"],
553
+ alert: ["M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20", "M12 8v4", "M12 16h.01"],
554
+ action: ["M13 2 3 14h9l-1 8 10-12h-9z"],
555
+ approval: ["M12 3v12", "m8 11 4 4 4-4", "M5 21h14"],
556
+ // Lucide `brain`, the same mark T3 Code uses for a thinking step.
557
+ brain: ["M12 18V5m3 8a4.17 4.17 0 0 1-3-4a4.17 4.17 0 0 1-3 4m8.598-6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", "M17.997 5.125a4 4 0 0 1 2.526 5.77", "M18 18a4 4 0 0 0 2-7.464", "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", "M6 18a4 4 0 0 1-2-7.464", "M6.003 5.125a4 4 0 0 0-2.526 5.77"],
558
+ change: ["M12 20h9", "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],
559
+ check: ["m5 12 4 4L19 6"],
560
+ command: ["m4 17 6-6-6-6", "M12 19h8"],
561
+ cpu: ["M9 9h6v6H9z", "M9 2v3", "M15 2v3", "M9 19v3", "M15 19v3", "M2 9h3", "M2 15h3", "M19 9h3", "M19 15h3", "M5 5h14v14H5z"],
562
+ eye: ["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12", "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"],
563
+ folder: ["M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"],
564
+ github: ["M15 22v-4a4.8 4.8 0 0 0-1-3.5c3.28-.36 6.72-1.61 6.72-7A5.4 5.4 0 0 0 19.22 3.77 5.07 5.07 0 0 0 19.13.32S17.95-.04 15 1.8a13.38 13.38 0 0 0-6 0C6.05-.04 4.87.32 4.87.32A5.07 5.07 0 0 0 4.78 3.77a5.4 5.4 0 0 0-1.5 3.78c0 5.42 3.44 6.61 6.72 7A4.8 4.8 0 0 0 9 18v4", "M9 18c-4.51 2-5-2-7-2"],
565
+ label: ["M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l4.58-4.58a2.426 2.426 0 0 0 0-3.42z", "M7.5 7.5h.01"],
566
+ message: ["M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z"],
567
+ "pull-request": [
568
+ "M6 9v12",
569
+ "M18 15V8a2 2 0 0 0-2-2h-3",
570
+ "M6 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6",
571
+ "M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6",
572
+ ],
573
+ search: ["m21 21-4.35-4.35", "M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16"],
574
+ tool: ["M14.7 6.3a4 4 0 0 0-5 5L3 18l3 3 6.7-6.7a4 4 0 0 0 5-5l-2.5 2.5-3-3Z"],
575
+ };
576
+
577
+ function renderActivityIcon(activity: InvocationActivity) {
578
+ const declaredIcon = activity.toolDisplay?.icon;
579
+ const Icon = declaredIcon ? getCurrentInstance()?.appContext.components.UIcon : undefined;
580
+ return h("span", {
581
+ class: "vh-invocation-event__icon",
582
+ "data-failed": activity.status === "failed" ? "true" : undefined,
583
+ "data-icon": Icon ? declaredIcon : activityIcon(activity),
584
+ "aria-hidden": "true",
585
+ }, [
586
+ Icon ? h(Icon, { name: declaredIcon }) : renderActivityIconSvg(activityIcon(activity)),
587
+ activity.status === "failed"
588
+ ? h("svg", {
589
+ class: "vh-invocation-event__failure-icon",
590
+ fill: "currentColor",
591
+ viewBox: "0 0 24 24",
592
+ }, [
593
+ h("path", {
594
+ "clip-rule": "evenodd",
595
+ d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2V7Zm0 9h2v2h-2v-2Z",
596
+ "fill-rule": "evenodd",
597
+ stroke: "none",
598
+ }),
599
+ ])
600
+ : null,
601
+ ]);
602
+ }
603
+
604
+ function renderNamedActivityIcon(icon: ActivityIcon) {
605
+ return h("span", { class: "vh-invocation-event__icon", "data-icon": icon, "aria-hidden": "true" }, [
606
+ renderActivityIconSvg(icon),
607
+ ]);
608
+ }
609
+
610
+ function renderActivityIconSvg(icon: ActivityIcon) {
611
+ return h("svg", { fill: "none", viewBox: "0 0 24 24" }, activityIconPaths[icon].map(path => h("path", {
612
+ d: path,
613
+ "stroke-linecap": "round",
614
+ "stroke-linejoin": "round",
615
+ })));
616
+ }
617
+
618
+ function imageViewPath(activity: InvocationActivity): string | undefined {
619
+ const name = String(activity.attributes["tool.name"] ?? "").trim().toLocaleLowerCase();
620
+ if (name !== "image view" && name !== "view image" && name !== "view_image") return;
621
+ for (const key of ["tool.input", "tool.output"]) {
622
+ const payload = activity.attributes[key];
623
+ if (typeof payload !== "object" || payload === null || Array.isArray(payload)) continue;
624
+ const item = "item" in payload && typeof payload.item === "object" && payload.item !== null && !Array.isArray(payload.item) ? payload.item : payload;
625
+ if ("path" in item && typeof item.path === "string" && item.path) return item.path;
626
+ if (!("commandActions" in item) || !Array.isArray(item.commandActions)) continue;
627
+ for (const value of item.commandActions) {
628
+ if (typeof value === "object" && value !== null && !Array.isArray(value) && "path" in value && typeof value.path === "string" && value.path) return value.path;
629
+ }
630
+ }
631
+ return activity.preview?.startsWith("/") ? activity.preview : undefined;
632
+ }
633
+
634
+ function imageViewDetails(activity: InvocationActivity, path: string) {
635
+ const evidence: Record<string, unknown> = { path };
636
+ if (activity.attributes["tool.input"] !== undefined) evidence.input = activity.attributes["tool.input"];
637
+ if (activity.attributes["tool.output"] !== undefined) evidence.output = activity.attributes["tool.output"];
638
+ if (activity.attributes["tool.error"] !== undefined) evidence.error = activity.attributes["tool.error"];
639
+ return h("section", { class: "vh-invocation-image-details", "aria-label": "Image view details" }, [
640
+ h("strong", "Path"),
641
+ h("code", path),
642
+ h("strong", "Raw details"),
643
+ h("pre", payloadText(evidence)),
644
+ ]);
645
+ }
646
+
647
+ function renderEvent(activity: InvocationActivity, inspect: InspectHandler, openActivities: ReadonlySet<string>, setActivityOpen: (id: string, open: boolean) => void) {
648
+ const command = activity.command;
649
+ const viewedImagePath = imageViewPath(activity);
650
+ const tokenLabel = activity.kind === "reasoning" || activity.kind === "model"
651
+ ? formatTokens(activity.reasoningTokens)
652
+ : undefined;
653
+ const suffix = viewedImagePath?.split("/").filter(Boolean).at(-1)
654
+ ?? agentConfigurationSummary(activity)
655
+ ?? channelDeliverySummary(activity)
656
+ ?? (activity.preview ? compactCommand(activity.preview) : tokenLabel);
657
+ const hasPayloads = activity.kind === "tool" && (
658
+ activity.attributes["tool.input"] !== undefined
659
+ || activity.attributes["tool.output"] !== undefined
660
+ || activity.attributes["tool.error"] !== undefined
661
+ );
662
+ const capturedDeliveryBody = activity.kind === "delivery"
663
+ ? activity.attributes["channel.effect.content"]
664
+ : undefined;
665
+ const deliveryBody = typeof capturedDeliveryBody === "string" && capturedDeliveryBody.trim()
666
+ ? capturedDeliveryBody
667
+ : undefined;
668
+ const visibleDelivery = Boolean(deliveryBody);
669
+ const deliveryFailure = activity.kind === "delivery"
670
+ ? stringAttribute(activity.attributes, "error.message")
671
+ : undefined;
672
+ const hasDetails = Boolean(deliveryFailure || activity.truncated)
673
+ || (!visibleDelivery && (activity.patches.length > 0 || Boolean(command || hasPayloads || activity.body || activity.truncated)));
674
+ const skillReads = activity.skills ?? (activity.skill ? [activity.skill] : []);
675
+ const inspectTarget = skillReads.length === 1 ? "workspace" : activity.attributes["vitehub.inspect.target"] ?? (activity.name === "vitehub.agent.configured" ? "agent" : undefined);
676
+ const inspectPath = activity.skill?.path;
677
+ const inspectable = inspectTarget === "agent" || inspectTarget === "workspace";
678
+ const title = skillReads.length
679
+ ? h("span", { class: "vh-invocation-event__title" }, skillReads.flatMap((skill, index) => [
680
+ index ? h("span", { "aria-hidden": "true" }, " · ") : null,
681
+ h("button", {
682
+ class: "vh-invocation-event__title vh-invocation-event__title-link",
683
+ onClick: (event: Event) => {
684
+ event.preventDefault();
685
+ event.stopPropagation();
686
+ inspect("workspace", skill.path);
687
+ },
688
+ type: "button",
689
+ }, `Read ${skill.name} skill`),
690
+ ]))
691
+ : h("span", { class: "vh-invocation-event__title" }, viewedImagePath ? "View image" : invocationActivityTitle(activity));
692
+ const summaryContent = [
693
+ activity.name === "vitehub.agent.configured"
694
+ ? frameworkMark()
695
+ : activity.kind === "delivery"
696
+ ? h("span", { class: "vh-invocation-event__icon", "data-icon": "channel" }, [channelIcon(activityChannel(activity))])
697
+ : renderActivityIcon(activity),
698
+ title,
699
+ activity.status === "failed" ? h("span", { "data-slot": "visually-hidden" }, "Failed") : null,
700
+ suffix ? h("code", { class: "vh-invocation-event__suffix" }, suffix) : null,
701
+ hasDetails
702
+ ? renderDisclosureChevron("vh-invocation-event__disclosure")
703
+ : null,
704
+ ];
705
+ const summary = inspectable && !hasDetails
706
+ ? h("button", {
707
+ class: "vh-invocation-event__summary",
708
+ onClick: () => inspect(inspectTarget, inspectPath),
709
+ type: "button",
710
+ }, summaryContent)
711
+ : h(hasDetails ? "summary" : "div", { class: "vh-invocation-event__summary" }, summaryContent);
712
+ return h("li", {
713
+ class: "vh-invocation-activity",
714
+ "data-activity-id": activity.id,
715
+ "data-inspectable": inspectable ? "true" : undefined,
716
+ "data-kind": activity.kind,
717
+ "data-status": activity.status,
718
+ key: activity.id,
719
+ }, [
720
+ h(hasDetails ? "details" : "div", {
721
+ class: "vh-invocation-event",
722
+ open: hasDetails ? openActivities.has(activity.id) : undefined,
723
+ onToggle: hasDetails
724
+ ? (event: Event) => setActivityOpen(activity.id, (event.currentTarget as HTMLDetailsElement).open)
725
+ : undefined,
726
+ }, [
727
+ summary,
728
+ hasDetails ? h("div", { class: "vh-invocation-event__details" }, [
729
+ deliveryFailure
730
+ ? h("p", { class: "vh-invocation-event__failure" }, deliveryFailure)
731
+ : null,
732
+ activity.patches.length
733
+ ? openActivities.has(activity.id)
734
+ ? h("div", { class: "vh-invocation-event__diffs" }, activity.patches.map((patch, index) => h(InvocationPatchDiff, { key: index, patch })))
735
+ : null
736
+ : command
737
+ ? h("div", { class: "vh-invocation-command" }, [
738
+ h("div", { class: "vh-invocation-command__bar" }, [
739
+ h("code", command.command),
740
+ command.exitCode !== undefined
741
+ ? h("span", { "data-failed": command.exitCode !== 0 }, `exit ${command.exitCode}`)
742
+ : null,
743
+ ]),
744
+ command.cwd ? h("div", { class: "vh-invocation-command__cwd" }, command.cwd) : null,
745
+ command.output ? h("pre", terminalText(command.output)) : null,
746
+ renderCommandError(activity.attributes["tool.error"]),
747
+ ])
748
+ : viewedImagePath
749
+ ? imageViewDetails(activity, viewedImagePath)
750
+ : hasPayloads
751
+ ? h("div", { class: "vh-invocation-event__payloads" }, [
752
+ renderEventPayload("Input", activity.attributes["tool.input"]),
753
+ renderEventPayload("Output", activity.attributes["tool.output"]),
754
+ renderEventPayload("Error", activity.attributes["tool.error"]),
755
+ ].filter(Boolean))
756
+ : activity.kind !== "delivery" && activity.body
757
+ ? h("div", { class: "vh-invocation-event__body" }, [markdown(activity.body, "vh-invocation-event__markdown")])
758
+ : null,
759
+ renderTruncationNotice(activity),
760
+ inspectable
761
+ ? h("button", {
762
+ class: "vh-invocation-event__inspect",
763
+ onClick: () => inspect(inspectTarget, inspectPath),
764
+ type: "button",
765
+ }, `Inspect ${inspectTarget}`)
766
+ : null,
767
+ ]) : null,
768
+ ]),
769
+ deliveryBody
770
+ ? h("div", { class: "vh-invocation-delivery__body" }, [markdown(deliveryBody, "vh-invocation-event__markdown")])
771
+ : null,
772
+ ]);
773
+ }
774
+
775
+ function renderTruncationNotice(activity: InvocationActivity, tag: "p" | "span" = "p") {
776
+ const notice = invocationTruncationNotice(activity);
777
+ return notice ? h(tag, { class: "vh-invocation-event__notice" }, notice) : null;
778
+ }
779
+
780
+ function renderEventPayload(label: string, value: unknown) {
781
+ if (value === undefined) return null;
782
+ return h(InvocationPayload, { label, value });
783
+ }
784
+
785
+ function renderCommandError(value: unknown) {
786
+ if (value === undefined) return null;
787
+ let text: string;
788
+ if (typeof value === "string") text = value;
789
+ else {
790
+ try {
791
+ text = Object.prototype.toString.call(value) === "[object String]" ? String(value) : payloadText(value);
792
+ } catch {
793
+ try { text = payloadText(value); }
794
+ catch { text = "[Unable to display payload]"; }
795
+ }
796
+ }
797
+ return h("section", { class: "vh-invocation-event__payload" }, [
798
+ h("strong", "Error"),
799
+ h("pre", text),
800
+ ]);
801
+ }
802
+
803
+ function activityDetail(activity: InvocationActivity): string | undefined {
804
+ return invocationActivityDetail(activity);
805
+ }
806
+
807
+ function renderPreparationAction(activity: InvocationActivity, inspect: InspectHandler) {
808
+ const target = activity.attributes["vitehub.inspect.target"];
809
+ if (target !== "workspace" && target !== "agent") return;
810
+ return h("button", {
811
+ "aria-label": target === "workspace" ? "Open Workspace" : "Open Invocation details",
812
+ class: "vh-invocation-preparation__action",
813
+ onClick: () => inspect(target),
814
+ type: "button",
815
+ }, [renderNamedActivityIcon(target === "workspace" ? "folder" : "cpu")]);
816
+ }
817
+
818
+ function renderPreparationContext(invocation: AgentInvocationView, url: string | undefined) {
819
+ const repository = invocation.annotations?.["github.repository"];
820
+ const pullRequest = invocation.annotations?.["github.pullRequest"];
821
+ if (typeof repository !== "string" || (typeof pullRequest !== "number" && typeof pullRequest !== "string")) {
822
+ return h("code", agentInvocationContext(invocation));
823
+ }
824
+ return h("span", { class: "vh-invocation-preparation__context" }, [
825
+ h("code", repository),
826
+ h("span", { "aria-hidden": "true" }, "·"),
827
+ url
828
+ ? h("a", {
829
+ href: url,
830
+ onClick: (event: MouseEvent) => event.stopPropagation(),
831
+ rel: "noreferrer",
832
+ target: "_blank",
833
+ }, `PR #${pullRequest}`)
834
+ : h("code", `PR #${pullRequest}`),
835
+ ]);
836
+ }
837
+
838
+ function renderPreparationDetail(activity: InvocationActivity, url: string | undefined) {
839
+ const detail = activityDetail(activity);
840
+ if (!detail) return;
841
+ const compact = compactCommand(detail);
842
+ if (!url || !invocationActivityTitle(activity).toLocaleLowerCase().includes("pull request")) {
843
+ return h("code", compact);
844
+ }
845
+ const match = compact.match(/^(.*?)\s*·\s*(PR #\d+)$/);
846
+ if (!match) return h("code", compact);
847
+ return h("span", { class: "vh-invocation-preparation__context" }, [
848
+ h("code", match[1]),
849
+ h("span", { "aria-hidden": "true" }, "·"),
850
+ h("a", { href: url, rel: "noreferrer", target: "_blank" }, match[2]),
851
+ ]);
852
+ }
853
+
854
+ function renderDisclosureChevron(className: string) {
855
+ return h("svg", { "aria-hidden": "true", class: className, fill: "none", viewBox: "0 0 24 24" }, [
856
+ h("path", { d: "m6 9 6 6 6-6", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }),
857
+ ]);
858
+ }
859
+
860
+ function frameworkMark() {
861
+ return h("svg", { viewBox: "0 0 20 18", fill: "currentColor", "aria-hidden": "true", class: "vh-invocation-framework-mark" }, [
862
+ h("path", { d: "M19.734 8.156 15.576.844A1.66 1.66 0 0 0 14.135 0H5.819C5.226 0 4.677.32 4.38.844L.222 8.156a1.71 1.71 0 0 0 0 1.688l4.158 7.312c.297.523.846.844 1.439.844h8.316c.593 0 1.142-.32 1.438-.844l4.158-7.312c.3-.523.3-1.165.003-1.688Z" }),
863
+ ]);
864
+ }
865
+
866
+ function activityChannel(activity: InvocationActivity): string {
867
+ const channel = stringAttribute(activity.attributes, "channel.delivery.provider")
868
+ ?? stringAttribute(activity.attributes, "channel.provider")
869
+ ?? stringAttribute(activity.attributes, "channel.id")
870
+ ?? "chat";
871
+ return channel.toLocaleLowerCase() === "msteams" ? "teams" : channel;
872
+ }
873
+
874
+ function renderPreparationGroup(
875
+ activities: readonly InvocationActivity[],
876
+ invocation: AgentInvocationView,
877
+ inspect: InspectHandler,
878
+ ) {
879
+ const url = agentInvocationExternalUrl(invocation);
880
+ const failedActivity = activities.find(activity => activity.status === "failed");
881
+ return h("li", {
882
+ class: "vh-invocation-preparation",
883
+ key: `preparation:${activities[0]?.id}`,
884
+ }, [
885
+ h("details", { class: "vh-invocation-preparation__details" }, [
886
+ h("summary", { class: "vh-invocation-preparation__summary" }, [
887
+ failedActivity ? renderActivityIcon(failedActivity) : renderNamedActivityIcon("folder"),
888
+ h("strong", failedActivity ? "Session preparation failed" : "Prepared workspace"),
889
+ failedActivity ? renderPreparationContext(invocation, url) : null,
890
+ failedActivity ? h("small", `${activities.length} steps`) : null,
891
+ renderDisclosureChevron("vh-invocation-preparation__disclosure"),
892
+ ]),
893
+ h("ol", { class: "vh-invocation-preparation__steps" }, activities.map(activity => renderPreparationStep(activity, url, inspect))),
894
+ ]),
895
+ ]);
896
+ }
897
+
898
+ function renderPreparationStep(activity: InvocationActivity, url: string | undefined, inspect: InspectHandler) {
899
+ return h("li", {
900
+ class: "vh-invocation-preparation__step",
901
+ "data-activity-id": activity.id,
902
+ "data-kind": "preparation",
903
+ "data-status": activity.status,
904
+ key: activity.id,
905
+ }, [
906
+ renderActivityIcon(activity),
907
+ h("strong", invocationActivityTitle(activity)),
908
+ renderPreparationDetail(activity, url),
909
+ renderPreparationAction(activity, inspect),
910
+ activity.body ? h("p", { class: "vh-invocation-preparation__body" }, activity.body) : null,
911
+ renderTruncationNotice(activity),
912
+ ]);
913
+ }
914
+
915
+ function activityGroup(activity: InvocationActivity | undefined): string | undefined {
916
+ if (!activity) return;
917
+ if (activity.name === "vitehub.agent.configured") return "agent-configuration-lifecycle";
918
+ if (/^agent\.capability\.(?:input|output|configure|prepare|resolve|close)$/.test(activity.name)) return "agent-capability-lifecycle";
919
+ return stringAttribute(activity.attributes, "vitehub.activity.group");
920
+ }
921
+
922
+ function renderCapabilityGroup(
923
+ activities: readonly InvocationActivity[],
924
+ inspect: InspectHandler,
925
+ openActivities: ReadonlySet<string>,
926
+ setActivityOpen: (id: string, open: boolean) => void,
927
+ ) {
928
+ const capabilities = [...new Set(activities.flatMap(activity => {
929
+ const id = stringAttribute(activity.attributes, "agent.capability.id");
930
+ return id ? [id] : [];
931
+ }))];
932
+ const failures = activities.filter(activity => activity.status === "failed").length;
933
+ const phases = new Set(activities.map(activity => activity.name.split(".").at(-1)));
934
+ const summary = capabilities.length
935
+ ? `${capabilities.length} ${capabilities.length === 1 ? "capability" : "capabilities"}`
936
+ : `${activities.length} ${activities.length === 1 ? "event" : "events"}`;
937
+ return h("li", { class: "vh-invocation-capabilities", key: `capabilities:${activities[0]?.id}` }, [
938
+ h("details", { class: "vh-invocation-capabilities__details" }, [
939
+ h("summary", { class: "vh-invocation-capabilities__summary" }, [
940
+ renderNamedActivityIcon("tool"),
941
+ h("span", { class: "vh-invocation-event__title" }, failures
942
+ ? `Capability activity failed · ${summary}`
943
+ : !capabilities.length
944
+ ? `Capability activity · ${summary}`
945
+ : [...phases].every(phase => phase === "close")
946
+ ? `Closed ${summary}`
947
+ : [...phases].every(phase => phase === "output" || phase === "close")
948
+ ? `Finalized ${summary}`
949
+ : `Prepared ${summary}`),
950
+ renderDisclosureChevron("vh-invocation-capabilities__disclosure"),
951
+ ]),
952
+ h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map(activity => renderEvent(activity, inspect, openActivities, setActivityOpen))),
953
+ ]),
954
+ ]);
955
+ }
956
+
957
+ function renderAgentConfigurationGroup(activities: readonly InvocationActivity[], inspect: InspectHandler) {
958
+ const activity = activities[0]!;
959
+ return h("li", {
960
+ class: "vh-invocation-capabilities",
961
+ "data-activity-id": activity.id,
962
+ "data-kind": activity.kind,
963
+ "data-status": activity.status,
964
+ key: `configuration:${activity.id}`,
965
+ }, [
966
+ h("details", { class: "vh-invocation-capabilities__details" }, [
967
+ h("summary", { class: "vh-invocation-capabilities__summary" }, [
968
+ h("span", { "aria-hidden": "true", class: "vh-invocation-event__icon" }, [frameworkMark()]),
969
+ h("span", { class: "vh-invocation-event__title" }, invocationActivityTitle(activity)),
970
+ agentConfigurationSummary(activity) ? h("code", { class: "vh-invocation-event__suffix" }, agentConfigurationSummary(activity)) : null,
971
+ renderDisclosureChevron("vh-invocation-capabilities__disclosure"),
972
+ ]),
973
+ h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map(item => h("li", { key: item.id }, [
974
+ item.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(item.body, "vh-invocation-event__markdown")]) : null,
975
+ renderTruncationNotice(item),
976
+ h("button", { class: "vh-invocation-event__inspect", onClick: () => inspect("agent"), type: "button" }, "Inspect agent"),
977
+ ]))),
978
+ ]),
979
+ ]);
980
+ }
981
+
982
+ function labelStyle(color: string | undefined): Record<string, string> {
983
+ const normalized = color?.replace(/^#/, "");
984
+ if (!normalized || !/^[\da-f]{6}$/i.test(normalized)) return {};
985
+ const red = Number.parseInt(normalized.slice(0, 2), 16);
986
+ const green = Number.parseInt(normalized.slice(2, 4), 16);
987
+ const blue = Number.parseInt(normalized.slice(4, 6), 16);
988
+ const luminance = (red * 299 + green * 587 + blue * 114) / 1_000;
989
+ return {
990
+ "--vh-invocation-label-bg": `#${normalized}`,
991
+ // The label color is GitHub data. Its text is the darkest or lightest neutral, whichever keeps it readable.
992
+ "--vh-invocation-label-fg": luminance > 150 ? "var(--ui-color-neutral-900)" : "var(--ui-color-neutral-50)",
993
+ };
994
+ }
995
+
996
+ function renderLabelChip(activity: InvocationActivity) {
997
+ const name = stringAttribute(activity.attributes, "github.label.name");
998
+ if (!name) return;
999
+ return h("span", {
1000
+ class: "vh-invocation-lifecycle__label",
1001
+ "data-operation": stringAttribute(activity.attributes, "github.label.operation"),
1002
+ style: labelStyle(stringAttribute(activity.attributes, "github.label.color")),
1003
+ }, name);
1004
+ }
1005
+
1006
+ function groupedActivityTitle(activity: InvocationActivity): string {
1007
+ if (!stringAttribute(activity.attributes, "github.label.name")) return invocationActivityTitle(activity);
1008
+ const operation = stringAttribute(activity.attributes, "github.label.operation")?.toLocaleLowerCase();
1009
+ if (activity.status === "failed") {
1010
+ if (operation === "add" || operation === "added") return "Failed to add label";
1011
+ if (operation === "remove" || operation === "removed") return "Failed to remove label";
1012
+ return "Failed to update label";
1013
+ }
1014
+ if (operation === "add" || operation === "added") return "Added label";
1015
+ if (operation === "remove" || operation === "removed") return "Removed label";
1016
+ return "Updated label";
1017
+ }
1018
+
1019
+ function renderGroupedActivityIcon(activity: InvocationActivity) {
1020
+ if (activity.status === "failed") return renderActivityIcon(activity);
1021
+ if (stringAttribute(activity.attributes, "github.label.name")) return renderNamedActivityIcon("label");
1022
+ const delivery = stringAttribute(activity.attributes, "channel.effect.kind")?.toLocaleLowerCase();
1023
+ if (delivery === "reaction") {
1024
+ const intent = stringAttribute(activity.attributes, "channel.effect.intent")?.toLocaleLowerCase();
1025
+ const reaction = intent === "completed"
1026
+ ? { label: "hooray", value: "🎉" }
1027
+ : intent === "failed"
1028
+ ? { label: "confused", value: "😕" }
1029
+ : { label: "eyes", value: "👀" };
1030
+ return h("span", { "aria-label": reaction.label, class: "vh-invocation-lifecycle__emoji", role: "img" }, reaction.value);
1031
+ }
1032
+ if (["reply", "status", "update"].includes(delivery ?? "")) return channelIcon(activityChannel(activity));
1033
+ return renderActivityIcon(activity);
1034
+ }
1035
+
1036
+ function renderActivityGroup(
1037
+ group: string,
1038
+ activities: readonly InvocationActivity[],
1039
+ inspect: InspectHandler,
1040
+ ) {
1041
+ return h("li", {
1042
+ class: "vh-invocation-lifecycle",
1043
+ "data-activity-group": group,
1044
+ key: `activity-group:${group}:${activities[0]?.id}`,
1045
+ }, [
1046
+ h("ol", { "aria-label": group, class: "vh-invocation-lifecycle__rows" }, activities.map(activity => {
1047
+ const target = activity.attributes["vitehub.inspect.target"];
1048
+ const inspectable = target === "agent" || target === "workspace";
1049
+ const rowContent = [
1050
+ renderGroupedActivityIcon(activity),
1051
+ h("span", { class: "vh-invocation-lifecycle__title" }, groupedActivityTitle(activity)),
1052
+ renderLabelChip(activity),
1053
+ !stringAttribute(activity.attributes, "github.label.name") && channelDeliverySummary(activity)
1054
+ ? h("code", { class: "vh-invocation-lifecycle__detail" }, channelDeliverySummary(activity))
1055
+ : null,
1056
+ activity.status === "failed" && activity.body
1057
+ ? h("span", { class: "vh-invocation-lifecycle__failure" }, activity.body)
1058
+ : null,
1059
+ renderTruncationNotice(activity, "span"),
1060
+ ];
1061
+ return h("li", {
1062
+ "data-activity-id": activity.id,
1063
+ "data-kind": activity.kind,
1064
+ "data-status": activity.status,
1065
+ key: activity.id,
1066
+ }, [
1067
+ inspectable
1068
+ ? h("button", { class: "vh-invocation-lifecycle__row", onClick: () => inspect(target), type: "button" }, rowContent)
1069
+ : h("div", { class: "vh-invocation-lifecycle__row" }, rowContent),
1070
+ ]);
1071
+ })),
1072
+ ]);
1073
+ }
1074
+
1075
+ const tokenFormat = new Intl.NumberFormat("en");
1076
+
1077
+ /** A USD amount with cents. Below ten cents it keeps two significant digits, so a small run does not read as $0.00. */
1078
+ function formatUsd(usd: string): string {
1079
+ const value = Number(usd);
1080
+ const small = value > 0 && value < 0.1;
1081
+ return new Intl.NumberFormat("en", {
1082
+ currency: "USD",
1083
+ maximumFractionDigits: small ? Math.min(6, 1 - Math.floor(Math.log10(value))) : 2,
1084
+ minimumFractionDigits: 2,
1085
+ style: "currency",
1086
+ }).format(value);
1087
+ }
1088
+
1089
+ /**
1090
+ * Tokens and cost of the session. The cost shows only when the run recorded one. An estimate says so in its label, and
1091
+ * its tooltip names where the prices come from, such as models.dev. Token types without tokens are left out.
1092
+ */
1093
+ function inspectorUsage(
1094
+ usage: AgentInvocationView["usage"],
1095
+ partition: AgentInvocationView["usage"],
1096
+ totalTokens: number | undefined,
1097
+ ) {
1098
+ const cost = usage?.cost;
1099
+ const usd = cost?.usd !== undefined && Number.isFinite(Number(cost.usd)) ? cost.usd : undefined;
1100
+ // A record without a decimal amount can still carry the text that its runtime formatted, such as "~$0.02".
1101
+ const costText = usd === undefined ? cost?.display || undefined : formatUsd(usd);
1102
+ const rows = ([
1103
+ ["Input", partition?.inputTokens],
1104
+ ["Cached input", partition?.cachedInputTokens],
1105
+ ["Cache writes", partition?.cacheWriteTokens],
1106
+ ["Output", partition?.outputTokens],
1107
+ ["Reasoning", partition?.reasoningTokens],
1108
+ ] as const).flatMap(([label, value]) => !value ? [] : [h("div", [h("dt", label), h("dd", tokenFormat.format(value))])]);
1109
+ if (costText === undefined && totalTokens === undefined && !rows.length) return null;
1110
+ const estimated = cost?.estimated === true;
1111
+ const costNote = estimated
1112
+ ? cost.source && cost.source !== "provider" ? `Estimated from ${cost.source}` : "Estimated"
1113
+ : cost?.estimated === false ? "Reported by the provider" : undefined;
1114
+ const costTitle = [usd === undefined ? undefined : `$${usd}`, costNote].filter(Boolean).join(", ") || undefined;
1115
+ return inspectorSection("Usage", h("div", { class: "vh-invocation-inspector__usage", "data-slot": "invocation-usage" }, [
1116
+ h("dl", { class: "vh-invocation-inspector__metrics" }, [
1117
+ costText === undefined ? null : h("div", { title: costTitle }, [
1118
+ h("dt", estimated ? "Estimated cost" : "Cost"),
1119
+ h("dd", costText),
1120
+ ]),
1121
+ totalTokens === undefined ? null : h("div", [
1122
+ h("dt", "Tokens"),
1123
+ h("dd", tokenFormat.format(totalTokens)),
1124
+ ]),
1125
+ ]),
1126
+ rows.length ? h("dl", { class: "vh-invocation-inspector__list vh-invocation-inspector__list--numbers" }, rows) : null,
1127
+ ]));
1128
+ }
1129
+
1130
+ /** Skills that the harness offered the Agent, one chip each. The description and source are in the tooltip. */
1131
+ function inspectorSkills(skills: readonly { description?: string; name: string; source?: string }[]) {
1132
+ const list = h("ul", { class: "vh-invocation-inspector__chips" }, skills.map(skill => h("li", {
1133
+ key: skill.name,
1134
+ title: [skill.description, skill.source ? `Source: ${skill.source}` : undefined].filter(Boolean).join("\n") || undefined,
1135
+ }, skill.name)));
1136
+ return skills.length > 12
1137
+ ? inspectorDisclosure("Skills", String(skills.length), list)
1138
+ : h("div", { class: "vh-invocation-inspector__group" }, [
1139
+ h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Skills"), h("small", skills.length)]),
1140
+ list,
1141
+ ]);
1142
+ }
1143
+
1144
+ /** MCP servers that the harness connected. A dot shows the status it recorded. */
1145
+ function inspectorMcpServers(servers: readonly { name: string; status?: string }[]) {
1146
+ return h("div", { class: "vh-invocation-inspector__group" }, [
1147
+ h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "MCP servers"), h("small", servers.length)]),
1148
+ h("ul", { class: "vh-invocation-inspector__chips" }, servers.map(server => h("li", {
1149
+ key: server.name,
1150
+ title: server.status ? `${server.name}: ${server.status}` : undefined,
1151
+ }, [
1152
+ server.status ? h("span", { "aria-hidden": "true", class: "vh-invocation-inspector__dot", "data-status": server.status }) : null,
1153
+ server.name,
1154
+ server.status ? h("span", { "data-slot": "visually-hidden" }, `, ${server.status}`) : null,
1155
+ ]))),
1156
+ ]);
1157
+ }
1158
+
1159
+ /** Recorded entries with a string `name`. The configuration is untrusted JSON. */
1160
+ function namedEntries<T extends { name: string }>(value: unknown): T[] {
1161
+ if (!Array.isArray(value)) return [];
1162
+ return value.filter((entry): entry is T => entry instanceof Object && typeof Reflect.get(entry, "name") === "string" && Reflect.get(entry, "name") !== "");
1163
+ }
1164
+
1165
+ function inspectorSection(title: string, body: ReturnType<typeof h>) {
1166
+ return h("section", [h("h4", title), body]);
1167
+ }
1168
+
1169
+ function traceTimeline(invocation: AgentInvocationView, selectActivity: (id: string) => void) {
1170
+ if (!invocationTimeline(invocation).length) return null;
1171
+ return inspectorSection("Trace timeline", h(AgentInvocationTimeline, { invocation, onSelectActivity: selectActivity }));
1172
+ }
1173
+
1174
+ function inspectorRow(label: string, value: string | number | undefined) {
1175
+ if (value === undefined || value === "") return null;
1176
+ return h("div", [h("dt", label), h("dd", String(value))]);
1177
+ }
1178
+
1179
+ /** The tail of an identifier, so the row gives a visual check without disclosing the whole value. */
1180
+ function shortIdentifier(value: string): string {
1181
+ return value.length > 8 ? `…${value.slice(-6)}` : "…";
1182
+ }
1183
+
1184
+ function copyIcon(copied: boolean) {
1185
+ return h(
1186
+ "svg",
1187
+ { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" },
1188
+ copied
1189
+ ? [h("path", { d: "m5 12 4 4L19 6", "stroke-linecap": "round", "stroke-linejoin": "round" })]
1190
+ : [
1191
+ h("rect", { height: "13", rx: "2", width: "13", x: "8", y: "8" }),
1192
+ h("path", {
1193
+ d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3",
1194
+ "stroke-linecap": "round",
1195
+ "stroke-linejoin": "round",
1196
+ }),
1197
+ ],
1198
+ );
1199
+ }
1200
+
1201
+ function statusIcon(status: AgentInvocationView["status"]) {
1202
+ const paths: Record<AgentInvocationView["status"], readonly string[]> = {
1203
+ cancelled: ["M18 6 6 18", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
1204
+ completed: ["m5 12 4 4L19 6"],
1205
+ failed: ["M18 6 6 18", "m6 6 12 12"],
1206
+ pending: ["M12 8v4l3 2", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
1207
+ running: ["M21 12a9 9 0 1 1-6.219-8.56"],
1208
+ };
1209
+ const iconPaths = Object.hasOwn(paths, status) ? paths[status] : ["M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18"];
1210
+ return h(
1211
+ "svg",
1212
+ { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" },
1213
+ iconPaths.map((path) =>
1214
+ h("path", {
1215
+ d: path,
1216
+ "stroke-linecap": "round",
1217
+ "stroke-linejoin": "round",
1218
+ }),
1219
+ ),
1220
+ );
1221
+ }
1222
+
1223
+ function sourcePresentation(source: string | { id: string; repository?: string }) {
1224
+ const id = typeof source === "string" ? source : source.id;
1225
+ const repository = typeof source === "string"
1226
+ ? /^(?:gh|github):([\w.-]+\/[\w.-]+)(?:\/.*)?$/.exec(source)?.[1]
1227
+ : /^[\w.-]+\/[\w.-]+$/.test(source.repository ?? "") ? source.repository : undefined;
1228
+ return repository
1229
+ ? { href: `https://github.com/${repository}`, icon: channelIcon("github"), label: id, title: `${id}: ${repository}` }
1230
+ : { label: id };
1231
+ }
1232
+
1233
+ function inspectorSources(sources: NonNullable<AgentInvocationConfiguration["workspace"]>["sources"] & readonly unknown[]) {
1234
+ return h("div", { class: "vh-invocation-inspector__group" }, [
1235
+ h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Sources"), h("small", sources.length)]),
1236
+ h("div", { class: "vh-invocation-inspector__badges" }, sources.map((source) => {
1237
+ const presentation = sourcePresentation(source);
1238
+ const children = [presentation.icon, h("span", presentation.label)];
1239
+ return presentation.href
1240
+ ? h("a", { class: "vh-invocation-inspector__badge", href: presentation.href, rel: "noreferrer", target: "_blank", title: presentation.title }, children)
1241
+ : h("span", { class: "vh-invocation-inspector__badge" }, children);
1242
+ })),
1243
+ ]);
1244
+ }
1245
+
1246
+ function inspectorChannels(channels: NonNullable<AgentInvocationConfiguration["channels"]>) {
1247
+ return h("div", { class: "vh-invocation-inspector__group" }, [
1248
+ h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Channels"), h("small", channels.length)]),
1249
+ h("div", { class: "vh-invocation-inspector__badges" }, channels.map((channel) => {
1250
+ return h("span", { class: "vh-invocation-inspector__badge" }, [
1251
+ channelIcon(channel.kind),
1252
+ h("span", channel.id),
1253
+ ]);
1254
+ })),
1255
+ ]);
1256
+ }
1257
+
1258
+ function isRecordedChannel(value: unknown): value is NonNullable<AgentInvocationConfiguration["channels"]>[number] {
1259
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
1260
+ // SAFETY: The guard above establishes a non-null, non-array object; its field values remain unknown until checked below.
1261
+ const channel = value as Record<string, unknown>;
1262
+ return Object.hasOwn(channel, "id")
1263
+ && typeof channel.id === "string"
1264
+ && Object.hasOwn(channel, "kind")
1265
+ && typeof channel.kind === "string";
1266
+ }
1267
+
1268
+ /** Runtime names that mean nothing to a reader on their own. */
1269
+ const runtimeLabels: Readonly<Record<string, { label: string; title: string }>> = {
1270
+ import: { label: "Imported session", title: "This session ran outside ViteHub. Its session file was imported." },
1271
+ };
1272
+
1273
+ /** Model, provider, and runtime as rows. The provider row shows only when it is not the company that made the model. */
1274
+ function inspectorExecution(configuration: AgentInvocationConfiguration) {
1275
+ const model = configuration.driver?.model;
1276
+ const modelId = model?.id;
1277
+ const maker = invocationModelMaker(modelId);
1278
+ const provider = invocationBrand(model?.provider ?? configuration.driver?.provider);
1279
+ const runtime = configuration.runtime?.name;
1280
+ if (!modelId && !provider && (!runtime || runtime === "unknown")) return null;
1281
+ const runtimeLabel = runtime && Object.hasOwn(runtimeLabels, runtime) ? runtimeLabels[runtime] : undefined;
1282
+ return h("dl", { class: "vh-invocation-inspector__list vh-invocation-execution" }, [
1283
+ modelId ? h("div", [
1284
+ h("dt", "Model"),
1285
+ h("dd", { class: "vh-invocation-execution__model", title: maker ? `${modelId} by ${maker.label}` : modelId }, [
1286
+ invocationBrandMark(maker ?? provider ?? { id: "fallback", label: "Model" }, "vh-invocation-execution__model-icon"),
1287
+ h("span", invocationModelName(modelId)),
1288
+ ]),
1289
+ ]) : null,
1290
+ provider && provider.id !== maker?.id ? h("div", [
1291
+ h("dt", "Provider"),
1292
+ h("dd", { class: "vh-invocation-execution__provider" }, [
1293
+ invocationBrandMark(provider, "vh-invocation-execution__provider-icon"),
1294
+ h("span", provider.label),
1295
+ ]),
1296
+ ]) : null,
1297
+ runtime && runtime !== "unknown" ? h("div", [
1298
+ h("dt", "Runtime"),
1299
+ h("dd", { title: runtimeLabel?.title }, runtimeLabel?.label ?? runtime),
1300
+ ]) : null,
1301
+ ]);
1302
+ }
1303
+
1304
+ function inspectorTools(
1305
+ tools: NonNullable<AgentInvocationConfiguration["tools"]>,
1306
+ counts: ReadonlyMap<string, number>,
1307
+ selectTool: (name: string) => void,
1308
+ ) {
1309
+ const rows = [...tools].sort((left, right) =>
1310
+ (counts.get(right.name) ?? 0) - (counts.get(left.name) ?? 0)
1311
+ || left.name.localeCompare(right.name),
1312
+ );
1313
+ const used = rows.filter(tool => (counts.get(tool.name) ?? 0) > 0).length;
1314
+ return h("div", { class: "vh-invocation-inspector__group" }, [
1315
+ h("div", { class: "vh-invocation-inspector__group-heading" }, [
1316
+ h("strong", "Tools"),
1317
+ h("small", `${used} of ${rows.length} used`),
1318
+ ]),
1319
+ h(ToolList, { calls: Object.fromEntries(counts), onSelect: selectTool, tools: rows }),
1320
+ ]);
1321
+ }
1322
+
1323
+ function inspectorDisclosure(
1324
+ title: string,
1325
+ summary: string,
1326
+ body: ReturnType<typeof h>,
1327
+ ) {
1328
+ return h(
1329
+ "details",
1330
+ { class: "vh-invocation-inspector__group vh-invocation-inspector__disclosure" },
1331
+ [
1332
+ h("summary", { class: "vh-invocation-inspector__group-heading" }, [
1333
+ h("strong", title),
1334
+ h("small", summary),
1335
+ renderDisclosureChevron("vh-invocation-inspector__chevron"),
1336
+ ]),
1337
+ body,
1338
+ ],
1339
+ );
1340
+ }
1341
+
1342
+ function renderConfiguration(
1343
+ configuration: AgentInvocationConfiguration,
1344
+ invocation: AgentInvocationView,
1345
+ showSources: boolean,
1346
+ showCapabilities: boolean,
1347
+ selectTool: (name: string) => void,
1348
+ ) {
1349
+ const recordedTools = Array.isArray(configuration.tools) ? configuration.tools : [];
1350
+ const tools = recordedTools.filter(tool => tool && typeof tool.name === "string");
1351
+ const channelsCatalogMalformed = configuration.channels !== undefined && !Array.isArray(configuration.channels);
1352
+ const recordedChannels = Array.isArray(configuration.channels) ? configuration.channels : [];
1353
+ const channels = recordedChannels.filter(isRecordedChannel);
1354
+ configuration = {
1355
+ ...configuration,
1356
+ channels,
1357
+ tools,
1358
+ truncated: configuration.truncated || tools.length !== recordedTools.length || channelsCatalogMalformed
1359
+ || channels.length !== recordedChannels.length,
1360
+ };
1361
+ const skills = namedEntries<{ description?: string; name: string; source?: string }>(configuration.skills);
1362
+ const mcpServers = namedEntries<{ name: string; status?: string }>(configuration.mcpServers);
1363
+ const driver = driverLabel(configuration);
1364
+ const workspace = workspaceLabel(configuration);
1365
+ const setup = [
1366
+ inspectorRow("Driver", driver),
1367
+ inspectorRow("Runtime", configuration.runtime?.name === "unknown" ? undefined : configuration.runtime?.name),
1368
+ inspectorRow("Workspace", workspace),
1369
+ ].filter((item) => item !== null);
1370
+ const execution = inspectorExecution(configuration);
1371
+ const groups = [
1372
+ execution,
1373
+ !execution && setup.length
1374
+ ? h("div", { class: "vh-invocation-inspector__group" }, [
1375
+ h("div", { class: "vh-invocation-inspector__group-heading" }, [
1376
+ h("strong", "Execution"),
1377
+ ]),
1378
+ h("dl", { class: "vh-invocation-inspector__list" }, setup),
1379
+ ])
1380
+ : null,
1381
+ showSources && configuration.workspace?.sources?.length
1382
+ ? inspectorSources(configuration.workspace.sources)
1383
+ : null,
1384
+ configuration.channels?.length
1385
+ ? inspectorChannels(configuration.channels)
1386
+ : null,
1387
+ showCapabilities && configuration.capabilities?.length
1388
+ ? h("div", { class: "vh-invocation-inspector__group" }, [
1389
+ h("div", { class: "vh-invocation-inspector__group-heading" }, [
1390
+ h("strong", "Capabilities"),
1391
+ h("small", configuration.capabilities.length),
1392
+ ]),
1393
+ h(
1394
+ "div",
1395
+ { class: "vh-invocation-inspector__stack" },
1396
+ configuration.capabilities.map((capability) => {
1397
+ const tools = configuration.tools?.filter(tool => tool.capabilityId === capability.id) || [];
1398
+ return h("details", { class: "vh-invocation-inspector__item-disclosure", key: capability.id }, [
1399
+ h("summary", [
1400
+ h("code", capability.id),
1401
+ h("small", tools.length ? `${tools.length} tool${tools.length === 1 ? "" : "s"}` : "Configuration"),
1402
+ renderDisclosureChevron("vh-invocation-inspector__chevron"),
1403
+ ]),
1404
+ tools.length ? h(ToolList, { tools, calls: Object.fromEntries(invocationToolUsage(invocation)), onSelect: selectTool }) : null,
1405
+ capability.metadata ? h("details", { class: "vh-invocation-inspector__settings" }, [
1406
+ h("summary", "Configuration"),
1407
+ h("pre", payloadText(capability.metadata)),
1408
+ ]) : null,
1409
+ !tools.length && !capability.metadata ? h("p", "No tools or configuration recorded.") : null,
1410
+ ]);
1411
+ }),
1412
+ ),
1413
+ ])
1414
+ : null,
1415
+ configuration.tools?.some(tool => !showCapabilities || !configuration.capabilities?.some(capability => capability.id === tool.capabilityId))
1416
+ ? inspectorTools(configuration.tools.filter(tool => !showCapabilities || !configuration.capabilities?.some(capability => capability.id === tool.capabilityId)), invocationToolUsage(invocation), selectTool)
1417
+ : null,
1418
+ skills.length ? inspectorSkills(skills) : null,
1419
+ mcpServers.length ? inspectorMcpServers(mcpServers) : null,
1420
+ configuration.instructions?.length
1421
+ ? inspectorDisclosure(
1422
+ "Instructions",
1423
+ `${configuration.instructions.length} block${configuration.instructions.length === 1 ? "" : "s"}`,
1424
+ h(
1425
+ "pre",
1426
+ { class: "vh-invocation-inspector__instructions" },
1427
+ configuration.instructions.join("\n\n"),
1428
+ ),
1429
+ )
1430
+ : null,
1431
+ ].filter((item) => item !== null);
1432
+ return groups.length || configuration.truncated
1433
+ ? [inspectorSection("Agent setup", h("div", { class: "vh-invocation-inspector__groups" }, [
1434
+ configuration.truncated
1435
+ ? h("p", { class: "vh-invocation-inspector__notice", role: "note" },
1436
+ "Some setup values were shortened when this run was recorded.")
1437
+ : null,
1438
+ ...groups,
1439
+ ]))]
1440
+ : [];
1441
+ }
1442
+
1443
+ function renderInvocationActivity(
1444
+ activity: InvocationActivity,
1445
+ expanded: ReadonlySet<string>,
1446
+ toggleExpanded: (id: string) => void,
1447
+ inspect: InspectHandler,
1448
+ messageRendering: MessageRendering,
1449
+ openActivities: ReadonlySet<string>,
1450
+ setActivityOpen: (id: string, open: boolean) => void,
1451
+ insideWork = false,
1452
+ ) {
1453
+ return activity.kind === "message"
1454
+ ? renderMessage(activity, expanded, toggleExpanded, messageRendering, insideWork)
1455
+ : renderEvent(activity, inspect, openActivities, setActivityOpen);
1456
+ }
1457
+
1458
+ function renderActivitySequence(
1459
+ activities: readonly InvocationActivity[],
1460
+ invocation: AgentInvocationView,
1461
+ expanded: ReadonlySet<string>,
1462
+ toggleExpanded: (id: string) => void,
1463
+ inspect: InspectHandler,
1464
+ messageRendering: MessageRendering,
1465
+ openActivities: ReadonlySet<string>,
1466
+ setActivityOpen: (id: string, open: boolean) => void,
1467
+ insideWork = false,
1468
+ ) {
1469
+ const rendered = [];
1470
+ for (let index = 0; index < activities.length;) {
1471
+ const group = activityGroup(activities[index]!);
1472
+ if (group) {
1473
+ let end = index + 1;
1474
+ while (activityGroup(activities[end]) === group) end += 1;
1475
+ rendered.push(group === "agent-capability-lifecycle"
1476
+ ? renderCapabilityGroup(activities.slice(index, end), inspect, openActivities, setActivityOpen)
1477
+ : group === "agent-configuration-lifecycle"
1478
+ ? renderAgentConfigurationGroup(activities.slice(index, end), inspect)
1479
+ : renderActivityGroup(group, activities.slice(index, end), inspect));
1480
+ index = end;
1481
+ continue;
1482
+ }
1483
+ if (activities[index]!.kind !== "preparation") {
1484
+ rendered.push(renderInvocationActivity(activities[index]!, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork));
1485
+ index += 1;
1486
+ continue;
1487
+ }
1488
+ let end = index + 1;
1489
+ while (activities[end]?.kind === "preparation") end += 1;
1490
+ rendered.push(renderPreparationGroup(activities.slice(index, end), invocation, inspect));
1491
+ index = end;
1492
+ }
1493
+ return rendered;
1494
+ }
1495
+
1496
+ /** A model call without reasoning text or a token count has nothing to open, so the work list leaves it out. */
1497
+ function emptyModelStep(activity: InvocationActivity): boolean {
1498
+ return (activity.kind === "model" || activity.kind === "reasoning")
1499
+ && !activity.body?.trim()
1500
+ && !activity.reasoningTokens
1501
+ && !activity.truncated;
1502
+ }
1503
+
1504
+ function renderWorkSummary(
1505
+ activities: readonly InvocationActivity[],
1506
+ invocation: AgentInvocationView,
1507
+ expanded: ReadonlySet<string>,
1508
+ open: boolean,
1509
+ setOpen: (open: boolean) => void,
1510
+ toggleExpanded: (id: string) => void,
1511
+ inspect: InspectHandler,
1512
+ messageRendering: MessageRendering,
1513
+ openActivities: ReadonlySet<string>,
1514
+ setActivityOpen: (id: string, open: boolean) => void,
1515
+ ) {
1516
+ if (!activities.length) return null;
1517
+ const active = invocation.status === "pending" || invocation.status === "running";
1518
+ const detailsOpen = active || open;
1519
+ const endedAt = invocation.completedAt ?? invocation.failedAt ?? invocation.cancelledAt ?? invocation.updatedAt;
1520
+ const duration = formatDuration(invocation.startedAt, endedAt);
1521
+ const elapsed = active ? formatElapsed(invocation.startedAt, messageRendering.liveNow) : undefined;
1522
+ // A live session keeps its last step, so the list shows the model is still thinking.
1523
+ const steps = activities.filter((activity, index) => !emptyModelStep(activity) || (active && index === activities.length - 1));
1524
+ return h("li", { class: "vh-invocation-work", key: "invocation-work" }, [
1525
+ h("details", {
1526
+ class: "vh-invocation-work__details",
1527
+ // SAFETY: DOM toggle events for this details element expose HTMLDetailsElement as currentTarget.
1528
+ onToggle: (event: Event) => setOpen((event.currentTarget as HTMLDetailsElement).open),
1529
+ open: detailsOpen,
1530
+ }, [
1531
+ h("summary", { class: "vh-invocation-work__summary" }, [
1532
+ h("span", { class: "vh-invocation-work__title" }, active
1533
+ ? "Working…"
1534
+ : duration
1535
+ ? `${invocation.status === "cancelled" ? "Cancelled after" : "Worked for"} ${duration}`
1536
+ : invocation.status === "cancelled" ? "Cancelled" : "Work details"),
1537
+ elapsed ? h("time", { class: "vh-invocation-work__elapsed", datetime: invocation.startedAt }, elapsed) : null,
1538
+ renderDisclosureChevron("vh-invocation-work__disclosure"),
1539
+ ]),
1540
+ h("div", { "aria-hidden": "true", class: "vh-invocation-work__divider" }),
1541
+ detailsOpen && steps.length
1542
+ ? h("ol", { class: "vh-invocation-work__activities" }, renderActivitySequence(steps, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, true))
1543
+ : null,
1544
+ ]),
1545
+ ]);
1546
+ }
1547
+
1548
+ function renderPreviousMessages(
1549
+ messages: readonly InvocationActivity[],
1550
+ invocation: AgentInvocationView,
1551
+ expanded: ReadonlySet<string>,
1552
+ toggleExpanded: (id: string) => void,
1553
+ inspect: InspectHandler,
1554
+ messageRendering: MessageRendering,
1555
+ openActivities: ReadonlySet<string>,
1556
+ setActivityOpen: (id: string, open: boolean) => void,
1557
+ ) {
1558
+ if (!messages.length) return null;
1559
+ return h("li", { class: "vh-invocation-history", key: "invocation-history" }, [
1560
+ h("details", { class: "vh-invocation-history__details" }, [
1561
+ h("summary", { class: "vh-invocation-history__summary" }, [
1562
+ h("span", `${messages.length} previous ${messages.length === 1 ? "message" : "messages"}`),
1563
+ renderDisclosureChevron("vh-invocation-history__disclosure"),
1564
+ ]),
1565
+ h("ol", { class: "vh-invocation-history__messages" },
1566
+ renderActivitySequence(messages, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)),
1567
+ ]),
1568
+ ]);
1569
+ }
1570
+
1571
+ function invocationPromptMetadata(invocation: AgentInvocationView, promptId: string | undefined) {
1572
+ if (promptId === undefined) return {};
1573
+ const triggeredBy = stringAttribute(invocation.annotations ?? {}, "triggeredBy");
1574
+ const observationAttributes = invocation.observations
1575
+ .map(observation => observation.attributes ?? {})
1576
+ .find(attributes => stringAttribute(attributes, "agent.invoker.label") || stringAttribute(attributes, "agent.invoker.id"));
1577
+ const author = triggeredBy?.trim()
1578
+ ? triggeredBy.trim()
1579
+ : stringAttribute(observationAttributes ?? {}, "agent.invoker.label")
1580
+ ?? stringAttribute(observationAttributes ?? {}, "agent.invoker.id");
1581
+ return { author, promptId, sentAt: stringAttribute(invocation.annotations ?? {}, "channel.sentAt") };
1582
+ }
1583
+
1584
+ function renderInvocationActivities(
1585
+ conversation: InvocationConversation,
1586
+ invocation: AgentInvocationView,
1587
+ expanded: ReadonlySet<string>,
1588
+ workOpen: boolean,
1589
+ setWorkOpen: (open: boolean) => void,
1590
+ toggleExpanded: (id: string) => void,
1591
+ inspect: InspectHandler,
1592
+ messageRendering: MessageRendering,
1593
+ openActivities: ReadonlySet<string>,
1594
+ setActivityOpen: (id: string, open: boolean) => void,
1595
+ ) {
1596
+ if (conversation.kind === "activities") {
1597
+ return renderActivitySequence(conversation.activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen);
1598
+ }
1599
+ return [
1600
+ renderPreviousMessages(conversation.history, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
1601
+ conversation.prompt ? renderInvocationActivity(conversation.prompt, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) : null,
1602
+ renderWorkSummary(conversation.work, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
1603
+ ...conversation.answers.map(activity => renderInvocationActivity(activity, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)),
1604
+ ...renderActivitySequence(conversation.followup, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
1605
+ ].filter(item => item !== null);
1606
+ }
1607
+
1608
+ // The public `vite-hub/console/ui` entry emits declarations with isolatedDeclarations, so the
1609
+ // exported components spell out the prop and emit options that `defineComponent` infers.
1610
+ type AgentInvocationPropOptions = {
1611
+ header: { default: boolean; type: BooleanConstructor };
1612
+ invocation: { required: true; type: PropType<AgentInvocationView> };
1613
+ selectedActivityId: { default: undefined; type: StringConstructor };
1614
+ workspaceInspectable: { default: boolean; type: BooleanConstructor };
1615
+ };
1616
+
1617
+ type AgentInvocationEmits = {
1618
+ inspect: (target: InspectTarget, path?: string) => boolean;
1619
+ };
1620
+
1621
+ const agentInvocation = defineComponent({
1622
+ name: "AgentInvocation",
1623
+ emits: {
1624
+ inspect: (target: InspectTarget, path?: string) => (target === "agent" || target === "workspace") && (path === undefined || typeof path === "string"),
1625
+ },
1626
+ props: {
1627
+ header: { default: true, type: Boolean },
1628
+ invocation: { required: true, type: Object as PropType<AgentInvocationView> },
1629
+ selectedActivityId: { default: undefined, type: String },
1630
+ workspaceInspectable: { default: true, type: Boolean },
1631
+ },
1632
+ setup(props, { emit, slots }) {
1633
+ const activities = computed(() => invocationActivities(props.invocation).map((activity) => {
1634
+ if (props.workspaceInspectable) return activity;
1635
+ const attributes = { ...activity.attributes };
1636
+ delete attributes["vitehub.inspect.target"];
1637
+ return { ...activity, attributes, skill: undefined, skills: undefined };
1638
+ }));
1639
+ const conversation = computed(() => buildInvocationConversation(activities.value));
1640
+ const expandedMessages = ref<ReadonlySet<string>>(new Set());
1641
+ const mounted = useMounted();
1642
+ const now = useNow({ scheduler: (tick) => useIntervalFn(tick, 60_000) });
1643
+ const liveNow = ref<Date>();
1644
+ let liveClock: ReturnType<typeof setInterval> | undefined;
1645
+ const workOpen = ref(false);
1646
+ const openActivities = ref<ReadonlySet<string>>(new Set());
1647
+ const clipboard = useCopy();
1648
+ const copiedMessageId = ref<string>();
1649
+ const messageCopy = computed<{ id: string; status: "copied" | "failed" } | undefined>(() => {
1650
+ const status = clipboard.copied.value ? "copied" : clipboard.failed.value ? "failed" : undefined;
1651
+ return copiedMessageId.value && status ? { id: copiedMessageId.value, status } : undefined;
1652
+ });
1653
+ const root = ref<HTMLElement>();
1654
+ let selectedElement: HTMLElement | undefined;
1655
+
1656
+ function toggleExpanded(id: string) {
1657
+ const next = new Set(expandedMessages.value);
1658
+ if (next.has(id)) next.delete(id);
1659
+ else next.add(id);
1660
+ expandedMessages.value = next;
1661
+ }
1662
+
1663
+ function setActivityOpen(id: string, open: boolean) {
1664
+ const next = new Set(openActivities.value);
1665
+ if (open) next.add(id);
1666
+ else next.delete(id);
1667
+ openActivities.value = next;
1668
+ }
1669
+
1670
+ function inspectWorkspaceArtifact(event: MouseEvent) {
1671
+ if (!props.workspaceInspectable || event.defaultPrevented || event.button !== 0) return;
1672
+ const target = event.target instanceof Element ? event.target.closest<HTMLAnchorElement>("a[href]") : undefined;
1673
+ const path = target ? workspaceArtifactPath(target.getAttribute("href") || "") : undefined;
1674
+ if (!path) return;
1675
+ event.preventDefault();
1676
+ emit("inspect", "workspace", path);
1677
+ }
1678
+
1679
+ function clearSelectedElement() {
1680
+ if (!selectedElement) return;
1681
+ selectedElement.removeAttribute("data-selected");
1682
+ selectedElement.removeAttribute("tabindex");
1683
+ selectedElement = undefined;
1684
+ }
1685
+
1686
+ async function copyMessage(activity: InvocationActivity) {
1687
+ copiedMessageId.value = activity.id;
1688
+ const url = agentInvocationExternalUrl(props.invocation);
1689
+ const metadata = [
1690
+ `Invocation ID: ${props.invocation.id}`,
1691
+ `Trace ID: ${props.invocation.traceId}`,
1692
+ props.invocation.agentName ? `Agent: ${props.invocation.agentName}` : undefined,
1693
+ url ? `URL: ${url}` : undefined,
1694
+ ].filter((value): value is string => value !== undefined);
1695
+ await clipboard.copy(`${activity.body ?? ""}\n\n${metadata.join("\n")}`);
1696
+ }
1697
+
1698
+ async function focusActivity(id: string | undefined) {
1699
+ if (id) {
1700
+ workOpen.value = true;
1701
+ setActivityOpen(id, true);
1702
+ }
1703
+ await nextTick();
1704
+ const target = [...(root.value?.querySelectorAll<HTMLElement>("[data-activity-id]") ?? [])]
1705
+ .find(element => element.dataset.activityId === id);
1706
+ if (target && target === selectedElement) return;
1707
+ clearSelectedElement();
1708
+ if (!id) return;
1709
+ if (!target) return;
1710
+ let details = target.closest("details");
1711
+ while (details) {
1712
+ details.open = true;
1713
+ details = details.parentElement?.closest("details") ?? null;
1714
+ }
1715
+ target.dataset.selected = "true";
1716
+ target.tabIndex = -1;
1717
+ target.focus({ preventScroll: true });
1718
+ const reduceMotion = "matchMedia" in globalThis && matchMedia("(prefers-reduced-motion: reduce)").matches;
1719
+ target.scrollIntoView?.({ behavior: reduceMotion ? "auto" : "smooth", block: "center" });
1720
+ selectedElement = target;
1721
+ }
1722
+
1723
+ watch([() => props.selectedActivityId, activities], ([id]) => void focusActivity(id), { flush: "post", immediate: true });
1724
+ watch(() => props.invocation.id, () => {
1725
+ workOpen.value = false;
1726
+ openActivities.value = new Set();
1727
+ copiedMessageId.value = undefined;
1728
+ });
1729
+ watch(() => props.invocation.status, (status, previousStatus) => {
1730
+ if ((previousStatus === "pending" || previousStatus === "running")
1731
+ && status !== "pending" && status !== "running") workOpen.value = false;
1732
+ });
1733
+ // The elapsed time of a live session ticks every second; a settled session shows its fixed duration.
1734
+ watch([() => props.invocation.status === "pending" || props.invocation.status === "running", mounted], ([live, isMounted]) => {
1735
+ if (liveClock) clearInterval(liveClock);
1736
+ liveClock = undefined;
1737
+ liveNow.value = live && isMounted ? new Date() : undefined;
1738
+ if (live && isMounted) liveClock = setInterval(() => liveNow.value = new Date(), 1_000);
1739
+ }, { immediate: true });
1740
+ onBeforeUnmount(() => {
1741
+ clearSelectedElement();
1742
+ if (liveClock) clearInterval(liveClock);
1743
+ });
1744
+
1745
+ return () => {
1746
+ const promptMetadata = invocationPromptMetadata(props.invocation, conversation.value.promptId);
1747
+ return h("article", {
1748
+ class: ["vh-invocation-session", { "vh-invocation-session--headerless": !props.header }],
1749
+ "data-status": props.invocation.status,
1750
+ "data-slot": "invocation",
1751
+ onClick: inspectWorkspaceArtifact,
1752
+ ref: root,
1753
+ }, [
1754
+ props.header ? h("header", { class: "vh-invocation-header" }, [
1755
+ h("div", { class: "vh-invocation-header__breadcrumb", title: `${agentInvocationProject(props.invocation)} / ${agentInvocationTitle(props.invocation)}` }, [
1756
+ h("span", { class: "vh-invocation-header__project-icon" }, [renderFolderIcon()]),
1757
+ h("span", { class: "vh-invocation-header__project" }, agentInvocationProject(props.invocation)),
1758
+ h("span", { "aria-hidden": "true", class: "vh-invocation-header__separator" }, "/"),
1759
+ h("h2", slots.title?.({ invocation: props.invocation }) ?? agentInvocationTitle(props.invocation)),
1760
+ ]),
1761
+ slots.actions?.({ invocation: props.invocation }),
1762
+ ]) : null,
1763
+ h("div", { class: "vh-invocation-thread" }, [
1764
+ h("div", { class: "vh-invocation-thread__content" }, [
1765
+ invocationTimestamp(props.invocation),
1766
+ h("div", {
1767
+ "aria-label": "Session thread",
1768
+ "aria-relevant": "additions text",
1769
+ role: "log",
1770
+ }, [h("ol", { class: "vh-invocation-activities" }, renderInvocationActivities(
1771
+ conversation.value,
1772
+ props.invocation,
1773
+ expandedMessages.value,
1774
+ workOpen.value,
1775
+ open => workOpen.value = open,
1776
+ toggleExpanded,
1777
+ (target, path) => path === undefined
1778
+ ? emit("inspect", target)
1779
+ : emit("inspect", target, path),
1780
+ {
1781
+ ...promptMetadata,
1782
+ now: now.value,
1783
+ liveNow: liveNow.value,
1784
+ mounted: mounted.value,
1785
+ copy: activity => void copyMessage(activity),
1786
+ copiedId: messageCopy.value?.id,
1787
+ copyStatus: messageCopy.value?.status,
1788
+ },
1789
+ openActivities.value,
1790
+ setActivityOpen,
1791
+ ))]),
1792
+ activities.value.length || props.invocation.error
1793
+ ? null
1794
+ : h("div", { class: "vh-invocation-empty", role: "status" }, [h("p", "Waiting for the first update…")]),
1795
+ props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null,
1796
+ slots.footer?.({ invocation: props.invocation }),
1797
+ ]),
1798
+ ]),
1799
+ ]);
1800
+ };
1801
+ },
1802
+ });
1803
+
1804
+ export const AgentInvocation: DefineComponent<AgentInvocationPropOptions, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, AgentInvocationEmits> = agentInvocation;
1805
+
1806
+ type AgentInvocationInspectorPropOptions = {
1807
+ invocation: { required: true; type: PropType<AgentInvocationView> };
1808
+ showStatus: { default: boolean; type: BooleanConstructor };
1809
+ showCapabilities: { default: boolean; type: BooleanConstructor };
1810
+ showTimeline: { default: boolean; type: BooleanConstructor };
1811
+ showSources: { default: boolean; type: BooleanConstructor };
1812
+ showError: { default: boolean; type: BooleanConstructor };
1813
+ };
1814
+
1815
+ type AgentInvocationInspectorEmits = {
1816
+ selectActivity: (id: string) => boolean;
1817
+ };
1818
+
1819
+ const agentInvocationInspector = defineComponent({
1820
+ name: "AgentInvocationInspector",
1821
+ emits: {
1822
+ selectActivity: (id: string) => Boolean(id),
1823
+ },
1824
+ props: {
1825
+ invocation: { required: true, type: Object as PropType<AgentInvocationView> },
1826
+ showStatus: { default: true, type: Boolean },
1827
+ showCapabilities: { default: false, type: Boolean },
1828
+ showTimeline: { default: true, type: Boolean },
1829
+ showSources: { default: true, type: Boolean },
1830
+ showError: { default: true, type: Boolean },
1831
+ },
1832
+ setup(props, { emit, slots }) {
1833
+ const activities = computed(() => invocationActivities(props.invocation));
1834
+ const conversation = computed(() => buildInvocationConversation(activities.value));
1835
+ const clipboard = useCopy({ duration: 1_600 });
1836
+ const copyKind = ref<"invocation" | "trace">();
1837
+ const copied = computed(() => clipboard.copied.value ? copyKind.value : undefined);
1838
+ const copyError = computed(() => clipboard.failed.value ? copyKind.value : undefined);
1839
+ const metrics = computed(() => ({
1840
+ changes: activities.value.filter((activity) => activity.kind === "change").length,
1841
+ messages: (conversation.value.kind === "activities"
1842
+ ? conversation.value.activities
1843
+ : [...conversation.value.history, ...(conversation.value.prompt ? [conversation.value.prompt] : []), ...conversation.value.work, ...conversation.value.answers, ...conversation.value.followup])
1844
+ .filter(activity => activity.kind === "message").length,
1845
+ steps: activities.value.filter((activity) =>
1846
+ activity.kind !== "message" && activity.name !== "vitehub.observation.truncated"
1847
+ ).length,
1848
+ tokens: latestInvocationTokens(activities.value),
1849
+ toolCalls: [...invocationToolUsage(props.invocation).values()].reduce((total, count) => total + count, 0),
1850
+ }));
1851
+
1852
+ function selectTool(name: string) {
1853
+ const call = activities.value.find(activity => activity.attributes["tool.name"] === name);
1854
+ if (call) emit("selectActivity", call.id);
1855
+ }
1856
+
1857
+ async function copyIdentifier(kind: "invocation" | "trace", value: string | undefined) {
1858
+ if (!value) return;
1859
+ copyKind.value = kind;
1860
+ await clipboard.copy(value);
1861
+ }
1862
+
1863
+ function copyAction(kind: "invocation" | "trace", label: string, value: string | undefined) {
1864
+ if (!value) return null;
1865
+ const didCopy = copied.value === kind;
1866
+ return h(
1867
+ "button",
1868
+ {
1869
+ "aria-label": didCopy ? `${label} copied` : `Copy ${label}`,
1870
+ class: "vh-invocation-inspector__copy",
1871
+ onClick: () => void copyIdentifier(kind, value),
1872
+ type: "button",
1873
+ },
1874
+ [
1875
+ h("span", { class: "vh-invocation-inspector__copy-label" }, label),
1876
+ // The shortened value gives the reader a visual check; the full value only reaches the clipboard.
1877
+ h("code", { "aria-hidden": "true", class: "vh-invocation-inspector__copy-value" }, shortIdentifier(value)),
1878
+ h("span", { class: "vh-invocation-inspector__copy-icon" }, [copyIcon(didCopy)]),
1879
+ ],
1880
+ );
1881
+ }
1882
+
1883
+ return () => {
1884
+ const configuration = props.invocation.configuration;
1885
+ const agentName = configuration?.agent?.name ?? props.invocation.agentName;
1886
+ const usage = props.invocation.usage;
1887
+ // Older sessions can pair a thread total with only the last response's counts.
1888
+ const partition = usage?.inputTokens !== undefined && usage.outputTokens !== undefined
1889
+ && (usage.totalTokens === undefined || usage.inputTokens + usage.outputTokens === usage.totalTokens)
1890
+ ? usage
1891
+ : undefined;
1892
+ const endedAt =
1893
+ props.invocation.completedAt ?? props.invocation.failedAt ?? props.invocation.cancelledAt;
1894
+ const totalTime = formatDuration(props.invocation.startedAt, endedAt);
1895
+ const duration =
1896
+ totalTime ??
1897
+ (props.invocation.status === "pending"
1898
+ ? "Waiting to start"
1899
+ : props.invocation.status === "running"
1900
+ ? "In progress"
1901
+ : "Duration unavailable");
1902
+ return h(
1903
+ "aside",
1904
+ {
1905
+ "aria-label": "Session details",
1906
+ class: "vh-invocation-inspector",
1907
+ "data-status": props.invocation.status,
1908
+ "data-slot": "invocation-inspector",
1909
+ },
1910
+ [
1911
+ h("header", [
1912
+ h("div", [h("p", agentInvocationProject(props.invocation)), h("h3", "Invocation details")]),
1913
+ slots.actions?.({ invocation: props.invocation }),
1914
+ ]),
1915
+ h("div", { class: "vh-invocation-inspector__content" }, [
1916
+ h("span", {
1917
+ "data-slot": "visually-hidden",
1918
+ role: "status",
1919
+ }, copied.value
1920
+ ? `${copied.value === "trace" ? "Trace" : "Invocation"} ID copied`
1921
+ : copyError.value
1922
+ ? `${copyError.value === "trace" ? "Trace" : "Invocation"} ID could not be copied`
1923
+ : ""),
1924
+ h("section", { class: "vh-invocation-inspector__identity" }, [
1925
+ props.showStatus ? h(
1926
+ "div",
1927
+ {
1928
+ "aria-atomic": "true",
1929
+ "aria-live": "polite",
1930
+ class: "vh-invocation-inspector__status",
1931
+ role: "status",
1932
+ },
1933
+ [
1934
+ h("span", { class: "vh-invocation-inspector__status-icon" }, [
1935
+ statusIcon(props.invocation.status),
1936
+ ]),
1937
+ h("strong", statusLabel(props.invocation.status)),
1938
+ h("small", duration),
1939
+ ],
1940
+ ) : null,
1941
+ h("div", { class: "vh-invocation-inspector__title-row" }, [
1942
+ h("h4", { class: "vh-invocation-inspector__title" }, agentInvocationTitle(props.invocation)),
1943
+ slots.identityActions?.({ invocation: props.invocation }),
1944
+ ]),
1945
+ agentInvocationContext(props.invocation) !== props.invocation.id
1946
+ ? h("p", agentInvocationContext(props.invocation))
1947
+ : null,
1948
+ agentName
1949
+ ? h("div", { class: "vh-invocation-inspector__agent" }, [
1950
+ h("span", "Agent"),
1951
+ h("strong", agentName),
1952
+ configuration?.agent?.version
1953
+ ? h("small", `v${configuration.agent.version}`)
1954
+ : null,
1955
+ ])
1956
+ : null,
1957
+ props.showError && props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null,
1958
+ ]),
1959
+ inspectorSection(
1960
+ "Run summary",
1961
+ h("dl", { class: "vh-invocation-inspector__metrics" }, [
1962
+ h("div", [h("dt", "Messages"), h("dd", metrics.value.messages)]),
1963
+ h("div", [h("dt", "Steps"), h("dd", metrics.value.steps)]),
1964
+ h("div", [h("dt", "Tool calls"), h("dd", metrics.value.toolCalls)]),
1965
+ totalTime ? h("div", [h("dt", "Total time"), h("dd", totalTime)]) : null,
1966
+ metrics.value.changes
1967
+ ? h("div", [h("dt", "Changes"), h("dd", metrics.value.changes)])
1968
+ : null,
1969
+ ]),
1970
+ ),
1971
+ inspectorUsage(usage, partition, usage?.totalTokens ?? metrics.value.tokens),
1972
+ props.showTimeline
1973
+ ? traceTimeline(props.invocation, id => emit("selectActivity", id))
1974
+ : null,
1975
+ ...(configuration ? renderConfiguration(configuration, props.invocation, props.showSources, props.showCapabilities, selectTool) : []),
1976
+ slots.metadata?.({ invocation: props.invocation }),
1977
+ inspectorSection(
1978
+ "Identifiers",
1979
+ h("div", { class: "vh-invocation-inspector__copy-list" }, [
1980
+ copyAction("trace", "Trace ID", props.invocation.traceId),
1981
+ copyAction("invocation", "Invocation ID", props.invocation.id),
1982
+ ]),
1983
+ ),
1984
+ ]),
1985
+ ],
1986
+ );
1987
+ };
1988
+ },
1989
+ });
1990
+
1991
+ export const AgentInvocationInspector: DefineComponent<AgentInvocationInspectorPropOptions, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, AgentInvocationInspectorEmits> = agentInvocationInspector;