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,3233 @@
1
+ import { a as consoleDuration, l as consoleRelativeTime, r as consoleDateTime } from "../format-BOYlanIZ.js";
2
+ import { JSONUIProvider, Renderer } from "@json-render/vue";
3
+ import { Suspense, computed, defineAsyncComponent, defineComponent, getCurrentInstance, h, nextTick, onBeforeUnmount, onMounted, ref, useId, watch } from "vue";
4
+ import { Markdown, ToolList, useCopy } from "@vite-hub/ui";
5
+ import { useIntervalFn, useMounted, useNow } from "@vueuse/core";
6
+ //#region src/console/runtime/components/invocation/internal/payload-text.ts
7
+ function payloadText(value) {
8
+ if (typeof value === "string") return value;
9
+ const ancestors = [];
10
+ try {
11
+ return JSON.stringify(value, function(_key, item) {
12
+ if (typeof item === "bigint") return `${item}n`;
13
+ if (typeof item !== "object" || item === null) return item;
14
+ while (ancestors.length && ancestors.at(-1) !== this) ancestors.pop();
15
+ if (ancestors.includes(item)) return "[Circular]";
16
+ ancestors.push(item);
17
+ return item;
18
+ }, 2) ?? String(value);
19
+ } catch (error) {
20
+ let message;
21
+ try {
22
+ const raw = error?.message;
23
+ if (typeof raw === "string") message = raw;
24
+ else if (raw !== void 0) try {
25
+ message = String(raw);
26
+ } catch {}
27
+ } catch {}
28
+ if (message === void 0) return "[Unable to display payload]";
29
+ try {
30
+ return `[Unable to display payload: ${message}]`;
31
+ } catch {
32
+ return "[Unable to display payload]";
33
+ }
34
+ }
35
+ }
36
+ //#endregion
37
+ //#region src/console/runtime/components/invocation/internal/invocation-activity.ts
38
+ function record$1(value) {
39
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
40
+ }
41
+ const truncatedContentLabels = {
42
+ "approval.input": "Approval input",
43
+ "approval.reason": "Approval reason",
44
+ body: "Details",
45
+ "channel.effect.content": "Delivered text",
46
+ content: "Details",
47
+ "error.message": "Error",
48
+ input: "Input",
49
+ "input.messages": "Conversation history",
50
+ "input.prompt": "Conversation history",
51
+ "message.content": "Message",
52
+ output: "Output",
53
+ "result.text": "Message",
54
+ "tool.error": "Error",
55
+ "tool.input": "Input",
56
+ "tool.output": "Output",
57
+ "vitehub.activity.body": "Details",
58
+ "vitehub.activity.detail": "Details",
59
+ "vitehub.activity.progress": "Details",
60
+ "vitehub.activity.title": "Title",
61
+ "vitehub.payload.value": "Details"
62
+ };
63
+ /**
64
+ * The displayed attributes that an observation's truncation flag covers.
65
+ * `undefined` means the record is flagged but does not name its attributes, so any displayed value may be cut.
66
+ * Identity and accounting metadata are never displayed, so their truncation returns an empty list.
67
+ */
68
+ function truncatedContent(observation) {
69
+ const attributes = observation.attributes;
70
+ if (attributes?.["vitehub.observation.truncated"] !== true) return [];
71
+ const named = attributes["vitehub.observation.truncatedAttributes"];
72
+ if (!Array.isArray(named)) return void 0;
73
+ return named.filter((key) => typeof key === "string" && key in truncatedContentLabels);
74
+ }
75
+ function cutsContent(observation) {
76
+ return truncatedContent(observation)?.length !== 0;
77
+ }
78
+ /** The note that says which displayed value of an activity was shortened. */
79
+ function invocationTruncationNotice(activity) {
80
+ if (!activity.truncated) return;
81
+ const labels = [...new Set((activity.truncatedAttributes ?? []).map((key) => truncatedContentLabels[key]))];
82
+ if (!labels.length) return "Part of this activity was shortened when it was recorded.";
83
+ return `${labels.length === 1 ? labels[0] : `${labels.slice(0, -1).join(", ")} and ${labels.at(-1).toLowerCase()}`} shortened when recorded.`;
84
+ }
85
+ function messageText(value) {
86
+ const message = record$1(value);
87
+ if (!Array.isArray(message?.parts)) return;
88
+ const parts = message.parts.flatMap((part) => {
89
+ const item = record$1(part);
90
+ if (typeof item?.text === "string") return [item.text];
91
+ if (item?.type === "image" && typeof item.url === "string" && /^(https?:\/\/|\/(?!\/))/.test(item.url)) return [`\n\n![${typeof item.name === "string" ? item.name.replace(/[\[\]\r\n]/g, "") : "Attachment"}](<${item.url.replace(/[<>\r\n]/g, "")}>)\n\n`];
92
+ return [];
93
+ });
94
+ return parts.length ? parts.join("") : void 0;
95
+ }
96
+ function messageRole(value) {
97
+ return value === "assistant" || value === "system" || value === "tool" || value === "user" ? value : void 0;
98
+ }
99
+ function activityBody(attributes) {
100
+ for (const key of [
101
+ "vitehub.activity.progress",
102
+ "result.text",
103
+ "input.prompt",
104
+ "input.messages",
105
+ "vitehub.activity.body",
106
+ "message.content",
107
+ "approval.input",
108
+ "approval.reason",
109
+ "tool.error",
110
+ "error.message",
111
+ "tool.output",
112
+ "tool.input",
113
+ "content",
114
+ "body",
115
+ "output",
116
+ "input"
117
+ ]) {
118
+ const value = attributes[key];
119
+ if (value === void 0 || value === "undefined") continue;
120
+ if (typeof value === "string" && value) return value;
121
+ try {
122
+ const json = JSON.stringify(value, (_key, item) => typeof item === "bigint" ? `${item}n` : item, 2);
123
+ if (json) return json;
124
+ } catch (error) {
125
+ return error instanceof Error ? `[Unable to display payload: ${error.message}]` : "[Unable to display payload]";
126
+ }
127
+ }
128
+ }
129
+ function fileChanges(attributes) {
130
+ for (const key of ["tool.output", "tool.input"]) {
131
+ const item = record$1(record$1(attributes[key])?.item);
132
+ const fileChange = item?.type === "fileChange" || attributes["tool.name"] === "File change" || attributes["tool.name"] === "Edit";
133
+ if (!item || !fileChange || !Array.isArray(item.changes)) continue;
134
+ const paths = [];
135
+ const patches = item.changes.flatMap((value) => {
136
+ const change = record$1(value);
137
+ if (typeof change?.path !== "string") return [];
138
+ const path = change.path.split("/workspace/").at(-1) || change.path.replace(/^\/+/, "");
139
+ paths.push(path);
140
+ if (typeof change.diff !== "string" || !change.diff) return [];
141
+ return [`diff --git a/${path} b/${path}\n--- a/${path}\n+++ b/${path}\n${change.diff.endsWith("\n") ? change.diff : `${change.diff}\n`}`];
142
+ });
143
+ if (patches.length || paths.length) return {
144
+ patches,
145
+ paths
146
+ };
147
+ }
148
+ const body = attributes["vitehub.activity.body"];
149
+ if (attributes["vitehub.activity.kind"] === "change" && typeof body === "string" && /^diff --git /m.test(body)) {
150
+ const paths = [...body.matchAll(/^diff --git a\/(.+?) b\/.+$/gm)].map((match) => match[1]);
151
+ return {
152
+ patches: (body.endsWith("\n") ? body : `${body}\n`).split(/^(?=diff --git )/m).filter((patch) => patch.startsWith("diff --git ")),
153
+ paths: [...new Set(paths)]
154
+ };
155
+ }
156
+ return {
157
+ patches: [],
158
+ paths: []
159
+ };
160
+ }
161
+ function commandDetails(attributes, observations) {
162
+ const payloadFor = (key) => {
163
+ const payload = record$1(attributes[key]);
164
+ return record$1(payload?.item) ?? payload;
165
+ };
166
+ const output = payloadFor("tool.output");
167
+ const input = payloadFor("tool.input");
168
+ const command = stringAttribute([output, input].map((item) => Array.isArray(item?.commandActions) ? record$1(item.commandActions[0]) : void 0).find((candidate) => stringAttribute(candidate ?? {}, "command") !== void 0) ?? {}, "command") ?? stringAttribute(input ?? {}, "command") ?? stringAttribute(output ?? {}, "command");
169
+ if (!command) return;
170
+ const streamedOutput = observations.filter((observation) => observation.name === "agent.tool.output").map((observation) => observation.attributes?.["tool.output"]).filter((value) => typeof value === "string").join("");
171
+ const directOutput = observations.filter((observation) => /\.(finish|error)$/.test(observation.name)).map((observation) => observation.attributes?.["tool.output"]).findLast((value) => typeof value === "string");
172
+ const outputText = typeof output?.aggregatedOutput === "string" ? output.aggregatedOutput : streamedOutput ? streamedOutput : typeof directOutput === "string" ? directOutput : typeof output?.output === "string" ? output.output : typeof input?.aggregatedOutput === "string" ? input.aggregatedOutput : typeof input?.output === "string" ? input.output : void 0;
173
+ return {
174
+ command,
175
+ ...typeof input?.cwd === "string" ? { cwd: input.cwd } : typeof output?.cwd === "string" ? { cwd: output.cwd } : {},
176
+ ...typeof output?.exitCode === "number" ? { exitCode: output.exitCode } : typeof input?.exitCode === "number" ? { exitCode: input.exitCode } : {},
177
+ ...outputText !== void 0 ? { output: outputText } : {}
178
+ };
179
+ }
180
+ function skillReadDetails(attributes) {
181
+ const reads = [];
182
+ const add = (path) => {
183
+ if (path.includes("\\") || path.includes("//")) return;
184
+ const match = /^\.agents\/skills\/([^/.][^/]*)\/SKILL\.md$/.exec(path);
185
+ if (match?.[1] && !reads.some((read) => read.path === path)) reads.push({
186
+ name: match[1],
187
+ path
188
+ });
189
+ };
190
+ for (const key of ["tool.output", "tool.input"]) {
191
+ const payload = record$1(attributes[key]);
192
+ const item = record$1(payload?.item) ?? payload;
193
+ if (!item || !Array.isArray(item.commandActions)) continue;
194
+ for (const value of item.commandActions) {
195
+ const action = record$1(value);
196
+ const cwd = typeof item.cwd === "string" ? item.cwd.replace(/\/+$/, "") : void 0;
197
+ if (action?.type === "read" && typeof action.path === "string") {
198
+ add(cwd && action.path.startsWith(`${cwd}/`) ? action.path.slice(cwd.length + 1) : action.path.replace(/^\.\//, ""));
199
+ continue;
200
+ }
201
+ if (action?.type !== "unknown" || typeof action.command !== "string") continue;
202
+ const tokens = action.command.trim().split(/\s+/);
203
+ if (tokens[0] !== "cat" || tokens.length < 2 || tokens.slice(1).some((token) => token.startsWith("-") || /[\\'"`$;&|<>(){}[\]*?!]/.test(token))) continue;
204
+ for (const token of tokens.slice(1)) add(token.replace(/^\.\//, ""));
205
+ }
206
+ }
207
+ return reads;
208
+ }
209
+ function stringAttribute(attributes, ...keys) {
210
+ for (const key of keys) {
211
+ const value = attributes[key];
212
+ if (typeof value === "string" && value.trim()) return value.trim();
213
+ }
214
+ }
215
+ function payloadDetail(attributes) {
216
+ for (const key of ["tool.output", "tool.input"]) {
217
+ const payload = record$1(attributes[key]);
218
+ const item = record$1(payload?.item) ?? payload;
219
+ const detail = item && stringAttribute(item, "detail", "summary", "output", "query", "path");
220
+ if (detail) return detail.split(/\r?\n/).find(Boolean)?.trim();
221
+ }
222
+ return stringAttribute(attributes, "tool.detail", "tool.output.summary", "vitehub.activity.detail");
223
+ }
224
+ /** Sentences for common snake_case tool identifiers. Other identifiers keep their words with the underscores removed. */
225
+ const toolTitles = {
226
+ apply_patch: "Changed files",
227
+ command_execution: "Ran command",
228
+ edit_file: "Changed files",
229
+ exec_command: "Ran command",
230
+ file_change: "Changed files",
231
+ grep_search: "Searched code",
232
+ list_dir: "Listed directory",
233
+ read_file: "Read file",
234
+ run_command: "Ran command",
235
+ web_fetch: "Fetched page",
236
+ web_search: "Searched the web",
237
+ write_file: "Changed files"
238
+ };
239
+ function normalizedTitle(value) {
240
+ const trimmed = value.replace(/\s+(?:complete|completed)$/i, "").trim();
241
+ const namespaced = /^[a-z0-9-]+\.[a-z0-9_]+$/i.test(trimmed);
242
+ const name = namespaced ? trimmed.slice(trimmed.indexOf(".") + 1).replace(/^mcp_(?=[a-z0-9]+_)/i, "") : trimmed;
243
+ const known = toolTitles[name.toLocaleLowerCase()];
244
+ if (known) return known;
245
+ const title = namespaced || /^[a-z0-9]+(?:_[a-z0-9]+)+$/i.test(name) ? name.split("_").map((word) => word.toLocaleLowerCase() === "mcp" ? "MCP" : word).join(" ") : name;
246
+ return title ? title[0].toUpperCase() + title.slice(1) : "Activity";
247
+ }
248
+ /** Shows the script that `sh -lc '<script>'` wrappers run, so the row reads as the command the agent typed. */
249
+ function shellScript(command) {
250
+ const match = /^(?:\/(?:usr\/)?bin\/)?(?:ba|z|da)?sh\s+-l?c\s+(['"])([\s\S]*)\1$/.exec(command.trim());
251
+ if (!match) return command;
252
+ return match[1] === "'" ? match[2].replaceAll("'\\''", "'") : match[2].replace(/\\(["\\$`])/g, "$1");
253
+ }
254
+ function activityPreview(attributes, command, paths, title) {
255
+ const detail = (command ? shellScript(command.command) : void 0) ?? payloadDetail(attributes) ?? (paths.length ? `${paths[0]}${paths.length > 1 ? ` +${paths.length - 1} more` : ""}` : void 0);
256
+ if (!detail || normalizedTitle(detail).toLocaleLowerCase() === title.toLocaleLowerCase()) return;
257
+ return detail;
258
+ }
259
+ function activityKey(observation, anonymousMessageKey) {
260
+ const attributes = observation.attributes ?? {};
261
+ return String(attributes["step.id"] ?? attributes["tool.id"] ?? attributes["approval.id"] ?? attributes["model.call.id"] ?? (attributes["message.id"] ? `${String(attributes["message.id"])}:${String(attributes["message.phase"] ?? "message")}` : void 0) ?? (typeof attributes["message.content"] === "string" ? anonymousMessageKey : void 0) ?? `observation:${observation.sequence}`);
262
+ }
263
+ function activityKind(observation, attributes, patches) {
264
+ if (patches.length) return "change";
265
+ if (observation.name === "agent.usage.recorded") return "model";
266
+ const explicit = attributes["vitehub.activity.kind"];
267
+ if (typeof explicit === "string" && [
268
+ "action",
269
+ "approval",
270
+ "change",
271
+ "delivery",
272
+ "error",
273
+ "message",
274
+ "model",
275
+ "plan",
276
+ "preparation",
277
+ "reasoning",
278
+ "run",
279
+ "system",
280
+ "tool",
281
+ "activity"
282
+ ].includes(explicit)) return explicit;
283
+ if (attributes["channel.effect.kind"] || attributes["channel.effect.intent"] || observation.name.includes(".channel.delivery")) return "delivery";
284
+ if (observation.name === "vitehub.agent.configured") return "system";
285
+ if (attributes["tool.name"] || attributes["tool.id"] || observation.name.includes(".tool.")) return "tool";
286
+ if (attributes["approval.id"] || observation.name.includes(".approval.")) return "approval";
287
+ if (observation.type === "error" || observation.name.endsWith(".error")) return "error";
288
+ if (attributes["message.phase"] === "commentary") return "message";
289
+ if (attributes["message.phase"] === "reasoning") return "reasoning";
290
+ if (observation.name.includes(".reasoning.")) return "reasoning";
291
+ if (observation.name.includes(".model.")) return "model";
292
+ if (attributes["message.role"] || attributes["message.content"] || attributes["input.prompt"] || attributes["input.messages"] || attributes["result.text"]) return "message";
293
+ if (observation.name.includes(".invocation.")) return "run";
294
+ return "activity";
295
+ }
296
+ function numericAttribute(attributes, ...keys) {
297
+ for (const key of keys) {
298
+ const value = attributes[key];
299
+ if (typeof value === "number" && Number.isFinite(value)) return value;
300
+ }
301
+ }
302
+ function isRecordedTool(value) {
303
+ const tool = record$1(value);
304
+ return typeof tool?.name === "string" && (tool.icon === void 0 || typeof tool.icon === "string") && (tool.label === void 0 || typeof tool.label === "string");
305
+ }
306
+ function invocationActivities(invocation) {
307
+ const groups = /* @__PURE__ */ new Map();
308
+ const recordedTools = Array.isArray(invocation.configuration?.tools) ? invocation.configuration.tools : [];
309
+ const toolCatalog = new Map(recordedTools.flatMap((tool) => isRecordedTool(tool) ? [[tool.name, tool]] : []));
310
+ const traceTruncated = invocation.observationsTruncated === true || (invocation.observations?.some((observation) => observation.attributes?.["vitehub.trace.truncated"] === true) ?? false);
311
+ const hasAgentMessages = (invocation.observations ?? []).some((observation) => observation.name === "agent.message" || observation.name.startsWith("agent.message."));
312
+ let anonymousMessage = 0;
313
+ let anonymousMessageKey;
314
+ let anonymousMessagePhase;
315
+ let assistantDeltaText = "";
316
+ for (const observation of invocation.observations ?? []) {
317
+ if (observation.name === "agent.title.recorded") continue;
318
+ const originalAttributes = observation.attributes ?? {};
319
+ if (originalAttributes["vitehub.auxiliary.kind"] === "title") continue;
320
+ if (observation.name === "agent.stream.error" && originalAttributes["error.recoverable"] === true) continue;
321
+ const delta = messageText({ parts: [{ text: originalAttributes["message.content"] }] });
322
+ const role = messageRole(originalAttributes["message.role"]);
323
+ const resultText = messageText({ parts: [{ text: originalAttributes["result.text"] }] });
324
+ if (resultText && assistantDeltaText.endsWith(resultText)) continue;
325
+ if (hasAgentMessages && !resultText && (observation.name === "agent.stream.finish" || observation.name === "agent.invocation.finish")) continue;
326
+ if (delta && (role === void 0 || role === "assistant")) assistantDeltaText += delta;
327
+ const inputMessages = Array.isArray(originalAttributes["input.messages"]) ? originalAttributes["input.messages"] : Array.isArray(originalAttributes["input.prompt"]) ? originalAttributes["input.prompt"] : void 0;
328
+ if (Array.isArray(inputMessages)) {
329
+ let lastInputKey;
330
+ inputMessages.forEach((message, index) => {
331
+ const value = record$1(message);
332
+ const body = messageText(value) ?? (Array.isArray(value?.parts) ? "```json\n" + payloadText(value.parts) + "\n```" : void 0);
333
+ const role = messageRole(value?.role);
334
+ if (!body || !role) return;
335
+ const key = `input-message:${observation.sequence}:${index}`;
336
+ lastInputKey = key;
337
+ groups.set(key, [{
338
+ ...observation,
339
+ attributes: {
340
+ "message.content": body,
341
+ "message.origin": "invocation-input",
342
+ "message.id": value ? stringAttribute(value, "id") ?? key : key,
343
+ "message.role": role
344
+ },
345
+ name: "agent.input.message",
346
+ sequence: observation.sequence - (inputMessages.length - index) / (inputMessages.length + 1)
347
+ }]);
348
+ });
349
+ const historyTruncation = truncatedContent(observation) === void 0 ? { "vitehub.observation.truncated": true } : truncatedContent(observation).some((key) => key === "input.messages" || key === "input.prompt") ? {
350
+ "vitehub.observation.truncated": true,
351
+ "vitehub.observation.truncatedAttributes": ["input.messages"]
352
+ } : void 0;
353
+ const lastInput = lastInputKey === void 0 ? void 0 : groups.get(lastInputKey)?.[0];
354
+ if (lastInput && historyTruncation) lastInput.attributes = {
355
+ ...lastInput.attributes,
356
+ ...historyTruncation
357
+ };
358
+ }
359
+ const attributes = inputMessages === void 0 ? originalAttributes : Object.fromEntries(Object.entries(originalAttributes).filter(([key]) => key !== "input.messages" && key !== "input.prompt"));
360
+ if (inputMessages !== void 0 && Object.keys(attributes).length === 0) continue;
361
+ const isAnonymousMessage = stringAttribute(attributes, "message.content") !== void 0 && !attributes["message.id"];
362
+ const messagePhase = stringAttribute(attributes, "message.phase") ?? "message";
363
+ if (isAnonymousMessage && (!anonymousMessageKey || anonymousMessagePhase !== messagePhase)) {
364
+ anonymousMessageKey = `message:assistant:${anonymousMessage++}`;
365
+ anonymousMessagePhase = messagePhase;
366
+ } else if (!isAnonymousMessage) {
367
+ anonymousMessageKey = void 0;
368
+ anonymousMessagePhase = void 0;
369
+ }
370
+ const key = activityKey(observation, anonymousMessageKey);
371
+ const group = groups.get(key);
372
+ const groupedObservation = {
373
+ ...observation,
374
+ attributes
375
+ };
376
+ if (group) group.push(groupedObservation);
377
+ else groups.set(key, [groupedObservation]);
378
+ }
379
+ const completeAssistantTexts = /* @__PURE__ */ new Set();
380
+ let latestMessageSequence = -Infinity;
381
+ for (const observations of groups.values()) {
382
+ const sequence = Math.max(...observations.map((item) => item.sequence));
383
+ if (sequence > latestMessageSequence && observations.every((item) => item.name.startsWith("agent.message") || item.name === "agent.input.message")) latestMessageSequence = sequence;
384
+ }
385
+ for (const observations of groups.values()) {
386
+ if (Math.max(...observations.map((item) => item.sequence)) !== latestMessageSequence) continue;
387
+ if (observations.some(cutsContent)) continue;
388
+ if (!observations.every((item) => item.name.startsWith("agent.message") && (item.attributes?.["message.role"] === void 0 || item.attributes["message.role"] === "assistant") && item.attributes?.["message.phase"] !== "commentary")) continue;
389
+ const text = observations.map((item) => {
390
+ const content = item.attributes?.["message.content"];
391
+ return typeof content === "string" ? content : "";
392
+ }).join("").trim();
393
+ if (!text) continue;
394
+ completeAssistantTexts.add(text);
395
+ try {
396
+ const response = record$1(JSON.parse(text));
397
+ const responseText = response && stringAttribute(response, "text");
398
+ if (responseText) completeAssistantTexts.add(responseText);
399
+ } catch {}
400
+ }
401
+ const visibleActivities = [...groups.entries()].map(([id, observations]) => {
402
+ const sorted = observations.slice().sort((left, right) => left.sequence - right.sequence);
403
+ const first = sorted[0];
404
+ const attributes = Object.assign({}, ...sorted.map((item) => item.attributes ?? {}));
405
+ const messageBody = sorted.map((item) => item.attributes?.["message.content"]).filter((value) => typeof value === "string").join("");
406
+ const { patches, paths } = fileChanges(attributes);
407
+ const kind = activityKind(first, attributes, paths.length ? paths : patches);
408
+ const failed = sorted.some((item) => item.type === "error" || /\.(error|failed)$/.test(item.name)) || kind === "delivery" && Boolean(stringAttribute(attributes, "error.message")) || attributes["agent.capability.outcome"] === "error";
409
+ const approvalDenied = attributes["approval.approved"] === false;
410
+ const completed = sorted.some((item) => /\.(abort|cancelled|completed|decision|error|failed|finish|recorded)$/.test(item.name));
411
+ const role = messageRole(attributes["message.role"]) ?? (attributes["result.text"] ? "assistant" : kind === "message" ? "user" : void 0);
412
+ const command = commandDetails(attributes, sorted);
413
+ const skills = skillReadDetails(attributes);
414
+ const observedEndedAt = sorted.at(-1)?.timestamp;
415
+ const invocationEndedAt = invocation.completedAt ?? invocation.failedAt ?? invocation.cancelledAt;
416
+ const started = /\.(request|start|started)$/.test(first.name);
417
+ const unfinishedTerminalStatus = started && !completed && invocation.status !== "pending" && invocation.status !== "running" ? invocation.status === "failed" ? "failed" : "completed" : void 0;
418
+ const endedAt = unfinishedTerminalStatus ? invocationEndedAt ?? observedEndedAt : started && !completed && invocation.status === "running" ? invocation.updatedAt : observedEndedAt;
419
+ const observedDuration = Date.parse(endedAt ?? "") - Date.parse(first.timestamp);
420
+ const durationMs = numericAttribute(attributes, "tool.durationMs") ?? (Number.isFinite(observedDuration) ? Math.max(0, observedDuration) : void 0);
421
+ const terminalStartedAt = !started && endedAt && durationMs !== void 0 ? new Date(Date.parse(endedAt) - durationMs).toISOString() : void 0;
422
+ const catalogTool = kind === "tool" ? toolCatalog.get(String(attributes["tool.name"] ?? "")) : void 0;
423
+ const toolDisplay = {
424
+ ...catalogTool?.icon ? { icon: catalogTool.icon } : {},
425
+ ...catalogTool?.label ? { label: catalogTool.label } : {}
426
+ };
427
+ const draft = {
428
+ attributes,
429
+ body: patches.join("") || messageBody || activityBody(attributes),
430
+ command,
431
+ ...durationMs !== void 0 ? { durationMs } : {},
432
+ ...endedAt ? { endedAt } : {},
433
+ id,
434
+ kind,
435
+ name: first.name,
436
+ patches,
437
+ paths,
438
+ sequence: first.sequence,
439
+ ...skills.length ? {
440
+ skill: skills[0],
441
+ skills
442
+ } : {},
443
+ startedAt: terminalStartedAt ?? first.timestamp,
444
+ ...numericAttribute(attributes, "usage.reasoningTokens", "usage.reasoningOutputTokens") !== void 0 ? { reasoningTokens: numericAttribute(attributes, "usage.reasoningTokens", "usage.reasoningOutputTokens") } : {},
445
+ ...role ? { role } : {},
446
+ status: failed || approvalDenied ? "failed" : completed || !started ? "completed" : unfinishedTerminalStatus ?? "running",
447
+ ...Object.keys(toolDisplay).length ? { toolDisplay } : {},
448
+ ...sorted.some(cutsContent) && !(first.name === "agent.invocation.finish" && completeAssistantTexts.has(stringAttribute(attributes, "result.text") ?? "")) ? {
449
+ truncated: true,
450
+ ...sorted.every((item) => truncatedContent(item) !== void 0) ? { truncatedAttributes: [...new Set(sorted.flatMap((item) => truncatedContent(item)))] } : {}
451
+ } : {},
452
+ ...numericAttribute(attributes, "usage.totalTokens") !== void 0 ? { totalTokens: numericAttribute(attributes, "usage.totalTokens") } : {}
453
+ };
454
+ const title = invocationActivityTitle(draft);
455
+ return {
456
+ ...draft,
457
+ ...activityPreview(attributes, command, paths, title) ? { preview: activityPreview(attributes, command, paths, title) } : {}
458
+ };
459
+ }).sort((left, right) => left.sequence - right.sequence).filter((activity) => !(activity.kind === "run" && /^agent\.invocation\.(?:start|started)$/.test(activity.name)));
460
+ if (traceTruncated && !visibleActivities.some((activity) => activity.name === "vitehub.observation.truncated")) visibleActivities.push({
461
+ attributes: {},
462
+ id: "trace-truncated",
463
+ kind: "system",
464
+ name: "vitehub.observation.truncated",
465
+ patches: [],
466
+ paths: [],
467
+ sequence: (visibleActivities.at(-1)?.sequence ?? -1) + 1,
468
+ status: "completed"
469
+ });
470
+ return visibleActivities;
471
+ }
472
+ /** Count distinct calls per tool name. */
473
+ function invocationToolUsage(invocation) {
474
+ const counts = /* @__PURE__ */ new Map();
475
+ const seen = /* @__PURE__ */ new Set();
476
+ for (const observation of invocation.observations) {
477
+ const name = observation.attributes?.["tool.name"];
478
+ if (typeof name !== "string" || !name) continue;
479
+ const id = observation.attributes?.["tool.id"];
480
+ if (typeof id === "string" && id) {
481
+ const key = `${name}:${id}`;
482
+ if (seen.has(key)) continue;
483
+ seen.add(key);
484
+ } else if (!observation.name.endsWith(".start")) continue;
485
+ counts.set(name, (counts.get(name) ?? 0) + 1);
486
+ }
487
+ return counts;
488
+ }
489
+ function latestInvocationTokens(activities) {
490
+ const snapshots = activities.flatMap((activity) => activity.totalTokens === void 0 ? [] : [activity.totalTokens]);
491
+ return snapshots.length ? Math.max(...snapshots) : void 0;
492
+ }
493
+ /** The short detail of an activity: its command, path, or recorded detail. */
494
+ function invocationActivityDetail(activity) {
495
+ return activity.preview ?? stringAttribute(activity.attributes, "vitehub.activity.detail");
496
+ }
497
+ function invocationActivityTitle(activity) {
498
+ const explicit = activity.attributes["vitehub.activity.title"];
499
+ if (typeof explicit === "string" && explicit.trim()) return explicit.trim();
500
+ if (activity.name === "vitehub.observation.truncated") return "Trace content was truncated";
501
+ if (activity.name === "vitehub.agent.configured") return agentConfigurationTitle(activity);
502
+ if (activity.skill) return `Read ${activity.skill.name} skill`;
503
+ if (activity.kind === "preparation") return "Prepared session";
504
+ if (activity.kind === "system") return "System configuration";
505
+ if (activity.kind === "delivery") return channelDeliveryTitle(activity);
506
+ if (activity.attributes["vitehub.action.name"] === "progress-summary.update") return "Updated loading message";
507
+ if (activity.attributes["vitehub.action.name"] === "input.steered") return "Steered active session";
508
+ if (activity.kind === "action") return String(activity.attributes["channel.effect.kind"] ?? activity.attributes["vitehub.action.name"] ?? "Product action");
509
+ if (activity.kind === "plan") return "Updated plan";
510
+ if (activity.kind === "change") return normalizedTitle(String(activity.attributes["tool.name"] ?? "Changed files"));
511
+ if (activity.kind === "tool") {
512
+ if (activity.attributes["tool.name"] === "command_execution") return normalizedTitle("command_execution");
513
+ return normalizedTitle(String(activity.attributes["tool.title"] ?? activity.toolDisplay?.label ?? activity.attributes["tool.name"] ?? "Used a tool"));
514
+ }
515
+ if (activity.kind === "approval") {
516
+ if (activity.attributes["approval.approved"] === true) return "Approval granted";
517
+ if (activity.attributes["approval.approved"] === false) return "Approval denied";
518
+ return String(activity.attributes["approval.name"] ?? "Requested approval");
519
+ }
520
+ if (activity.kind === "reasoning") return "Thinking";
521
+ if (activity.kind === "model") return "Thinking";
522
+ if (activity.kind === "run") return activity.name.endsWith(".finish") ? "Finished session" : "Started session";
523
+ if (activity.kind === "error" && activity.name.startsWith("agent.invocation.")) return "Session failed";
524
+ return normalizedTitle(activity.name.replace(/\.(start|finish|error|decision|recorded)$/, "").replaceAll(".", " "));
525
+ }
526
+ function agentConfigurationTitle(activity) {
527
+ const configuration = record$1(activity.attributes["vitehub.agent.configuration"]);
528
+ if (!configuration) return "Agent configured";
529
+ const agent = stringAttribute(record$1(configuration.agent) ?? {}, "name") ?? "Agent";
530
+ const capabilities = Array.isArray(configuration.capabilities) ? configuration.capabilities.length : 0;
531
+ return capabilities ? `Configured ${agent} with ${capabilities} ${capabilities === 1 ? "capability" : "capabilities"}` : `Configured ${agent}`;
532
+ }
533
+ function agentConfigurationSummary(activity) {
534
+ if (activity.name !== "vitehub.agent.configured") return;
535
+ const configuration = record$1(activity.attributes["vitehub.agent.configuration"]);
536
+ if (!configuration) return;
537
+ const driver = record$1(configuration.driver);
538
+ const modelName = stringAttribute(record$1(driver?.model) ?? {}, "id") ?? stringAttribute(driver ?? {}, "provider");
539
+ const tools = Array.isArray(configuration.tools) ? configuration.tools.length : 0;
540
+ return [modelName, tools ? `${tools} ${tools === 1 ? "tool" : "tools"}` : void 0].filter(Boolean).join(" · ") || void 0;
541
+ }
542
+ function channelDeliveryTitle(activity) {
543
+ const rawKind = String(activity.attributes["channel.effect.kind"] ?? "").trim();
544
+ const kind = rawKind.toLocaleLowerCase();
545
+ const intent = String(activity.attributes["channel.effect.intent"] ?? "").trim().toLocaleLowerCase();
546
+ const delivery = rawKind.includes(".") ? rawKind : kind ? normalizedTitle(kind) : "Channel delivery";
547
+ if (activity.attributes["channel.effect.supported"] === false) return `${delivery} not supported`;
548
+ if (stringAttribute(activity.attributes, "channel.effect.skipped")) return `${delivery} skipped`;
549
+ if (activity.status === "failed") return `${delivery} failed`;
550
+ if (kind === "reaction") {
551
+ const reaction = {
552
+ completed: "hooray",
553
+ failed: "confused",
554
+ started: "eyes"
555
+ };
556
+ return reaction[intent] ? `Reacted with ${reaction[intent]}` : "Reaction sent";
557
+ }
558
+ if (kind === "reply") return "Reply sent";
559
+ if (kind === "status") return "Status updated";
560
+ if (kind === "title") return "Title updated";
561
+ if (kind === "update") return "Message updated";
562
+ if (rawKind.includes(".")) return rawKind;
563
+ return kind ? `${normalizedTitle(kind)} delivered` : "Channel delivery";
564
+ }
565
+ function channelDeliverySummary(activity) {
566
+ if (activity.kind !== "delivery") return;
567
+ if (activity.attributes["channel.effect.supported"] === false) return "Not supported";
568
+ const skipped = stringAttribute(activity.attributes, "channel.effect.skipped");
569
+ if (skipped) return normalizedTitle(skipped);
570
+ const kind = String(activity.attributes["channel.effect.kind"] ?? "").trim().toLocaleLowerCase();
571
+ const intent = String(activity.attributes["channel.effect.intent"] ?? "").trim();
572
+ if (!intent || kind === "reaction" && [
573
+ "completed",
574
+ "failed",
575
+ "started"
576
+ ].includes(intent.toLocaleLowerCase())) return;
577
+ return normalizedTitle(intent);
578
+ }
579
+ function terminalText(value) {
580
+ if (!value) return "";
581
+ const escape = String.fromCharCode(27);
582
+ return value.replace(new RegExp(`${escape}\\[[0-?]*[ -/]*[@-~]`, "g"), "").replaceAll("\r", "");
583
+ }
584
+ //#endregion
585
+ //#region src/console/runtime/components/invocation/agent-capability-inspector.ts
586
+ function record(value) {
587
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? Object.fromEntries(Object.entries(value)) : void 0;
588
+ }
589
+ const catalogProps = {
590
+ Stack: [],
591
+ Section: ["title"],
592
+ Text: ["text"],
593
+ KeyValue: ["label", "value"],
594
+ Tools: ["names", "mcpServer"]
595
+ };
596
+ function readOnlyValue(value, depth = 0) {
597
+ if (depth > 20) return false;
598
+ if (value === null || typeof value === "string" || typeof value === "boolean") return true;
599
+ if (typeof value === "number") return Number.isFinite(value);
600
+ if (Array.isArray(value)) return value.every((item) => readOnlyValue(item, depth + 1));
601
+ const fields = record(value);
602
+ if (!fields) return false;
603
+ return Object.entries(fields).every(([key, child]) => key.startsWith("$") ? (key === "$state" || key === "$item") && typeof child === "string" && (child === "" || child.startsWith("/")) : readOnlyValue(child, depth + 1));
604
+ }
605
+ /** Validate a bounded, read-only subset of JSON Render before passing it to the renderer. */
606
+ function capabilityInspectionSpec(value) {
607
+ const view = record(value);
608
+ const elements = record(view?.elements);
609
+ if (!view || typeof view.root !== "string" || !elements || !Object.hasOwn(elements, view.root)) return;
610
+ if (Object.keys(view).some((key) => key !== "root" && key !== "elements")) return;
611
+ if (Object.keys(elements).length > 128) return;
612
+ const parsed = {};
613
+ for (const [id, value] of Object.entries(elements)) {
614
+ if ([
615
+ "__proto__",
616
+ "prototype",
617
+ "constructor"
618
+ ].includes(id)) return;
619
+ const element = record(value);
620
+ const props = record(element?.props);
621
+ if (!element || !props || typeof element.type !== "string" || !Object.hasOwn(catalogProps, element.type)) return;
622
+ if (Object.keys(element).some((key) => ![
623
+ "type",
624
+ "props",
625
+ "children",
626
+ "repeat"
627
+ ].includes(key))) return;
628
+ const allowedProps = catalogProps[element.type];
629
+ if (Object.keys(props).some((key) => !allowedProps.includes(key)) || !readOnlyValue(props)) return;
630
+ const children = element.children;
631
+ if (children !== void 0 && (!Array.isArray(children) || !children.every((child) => typeof child === "string" && Object.hasOwn(elements, child)))) return;
632
+ const repeat = record(element.repeat);
633
+ if (element.repeat !== void 0 && (!repeat || typeof repeat.statePath !== "string" || !repeat.statePath.startsWith("/") || repeat.key !== void 0 && typeof repeat.key !== "string" || Object.keys(repeat).some((key) => key !== "statePath" && key !== "key"))) return;
634
+ parsed[id] = {
635
+ type: element.type,
636
+ props,
637
+ ...Array.isArray(children) ? { children: children.filter((child) => typeof child === "string") } : {},
638
+ ...repeat && typeof repeat.statePath === "string" ? { repeat: {
639
+ statePath: repeat.statePath,
640
+ ...typeof repeat.key === "string" ? { key: repeat.key } : {}
641
+ } } : {}
642
+ };
643
+ }
644
+ let remaining = 512;
645
+ const visit = (id, ancestors) => {
646
+ if (--remaining < 0 || ancestors.size > 20 || ancestors.has(id)) return false;
647
+ const next = /* @__PURE__ */ new Set([...ancestors, id]);
648
+ return parsed[id].children?.every((child) => visit(child, next)) ?? true;
649
+ };
650
+ return visit(view.root, /* @__PURE__ */ new Set()) ? {
651
+ root: view.root,
652
+ elements: parsed
653
+ } : void 0;
654
+ }
655
+ function safeInspectionState(value) {
656
+ const text = payloadText(value);
657
+ try {
658
+ return record(JSON.parse(text));
659
+ } catch {
660
+ return;
661
+ }
662
+ }
663
+ function display(value) {
664
+ if (value === void 0 || value === null) return "Not recorded";
665
+ return typeof value === "string" ? value : JSON.stringify(value, null, 2);
666
+ }
667
+ function catalogComponent(render) {
668
+ return defineComponent({
669
+ inheritAttrs: false,
670
+ props: { element: {
671
+ type: Object,
672
+ required: true
673
+ } },
674
+ setup(props, { slots }) {
675
+ return () => render(props.element.props, slots.default?.());
676
+ }
677
+ });
678
+ }
679
+ const AgentCapabilityInspector = defineComponent({
680
+ name: "AgentCapabilityInspector",
681
+ emits: {
682
+ /** Emitted with the first recorded call of a tool the viewer selects. */
683
+ selectActivity: (id) => Boolean(id) },
684
+ props: { invocation: {
685
+ type: Object,
686
+ required: true
687
+ } },
688
+ setup(props, { emit }) {
689
+ const selectedId = ref();
690
+ const calls = computed(() => Object.fromEntries(invocationToolUsage(props.invocation)));
691
+ function selectTool(name) {
692
+ const call = invocationActivities(props.invocation).find((activity) => activity.attributes["tool.name"] === name);
693
+ if (call) emit("selectActivity", call.id);
694
+ }
695
+ const capabilities = computed(() => props.invocation.configuration?.capabilities ?? []);
696
+ const selected = computed(() => capabilities.value.find((capability) => capability.id === selectedId.value) ?? capabilities.value[0]);
697
+ const tools = computed(() => props.invocation.configuration?.tools?.filter((tool) => tool.capabilityId === selected.value?.id) ?? []);
698
+ const spec = computed(() => capabilityInspectionSpec(selected.value?.inspection?.view));
699
+ const safeState = computed(() => safeInspectionState(selected.value?.inspection?.state));
700
+ watch(() => props.invocation.id, () => {
701
+ selectedId.value = void 0;
702
+ });
703
+ const registry = {
704
+ Stack: catalogComponent((_props, children) => h("div", { class: "vh-capability-inspector__stack" }, [children])),
705
+ Section: catalogComponent((props, children) => h("section", { class: "vh-capability-inspector__section" }, [h("h3", display(props.title)), children])),
706
+ Text: catalogComponent((props) => props.text ? h("p", display(props.text)) : null),
707
+ KeyValue: catalogComponent((props) => h("dl", { class: "vh-capability-inspector__value" }, [h("dt", display(props.label)), h("dd", display(props.value))])),
708
+ Tools: catalogComponent((props) => {
709
+ const names = Array.isArray(props.names) ? props.names : void 0;
710
+ const selectedTools = tools.value.filter((tool) => (!Object.hasOwn(props, "names") || names?.includes(tool.name)) && (!Object.hasOwn(props, "mcpServer") || typeof props.mcpServer === "string" && tool.mcp?.server === props.mcpServer));
711
+ return selectedTools.length ? h(ToolList, {
712
+ calls: calls.value,
713
+ onSelect: selectTool,
714
+ tools: selectedTools
715
+ }) : h("p", { class: "vh-capability-inspector__empty" }, "No tool contracts recorded.");
716
+ })
717
+ };
718
+ return () => h("div", { class: "vh-capability-inspector" }, [
719
+ props.invocation.configuration?.truncated ? h("p", { role: "status" }, "Captured configuration was truncated. Some capabilities or contracts may be missing.") : null,
720
+ capabilities.value.length ? h("nav", {
721
+ class: "vh-capability-inspector__navigation",
722
+ "aria-label": "Capabilities"
723
+ }, capabilities.value.map((capability) => h("button", {
724
+ type: "button",
725
+ "aria-pressed": selected.value?.id === capability.id,
726
+ onClick: () => {
727
+ selectedId.value = capability.id;
728
+ }
729
+ }, capability.inspection?.label ?? capability.id))) : h("p", { class: "vh-capability-inspector__empty" }, "No capabilities recorded for this Invocation."),
730
+ selected.value ? h("div", {
731
+ class: "vh-capability-inspector__content",
732
+ key: `${props.invocation.id}:${selected.value.id}`
733
+ }, [
734
+ h("h2", selected.value.inspection?.label ?? selected.value.id),
735
+ selected.value.inspection?.truncated ? h("p", { role: "status" }, "Capability inspection was truncated. Some recorded data is missing.") : null,
736
+ selected.value.inspection?.label && selected.value.inspection.label !== selected.value.id ? h("code", selected.value.id) : null,
737
+ spec.value && safeState.value !== void 0 ? h(JSONUIProvider, {
738
+ registry,
739
+ initialState: safeState.value
740
+ }, { default: () => h(Renderer, {
741
+ spec: spec.value,
742
+ registry
743
+ }) }) : [
744
+ selected.value.inspection && (!selected.value.inspection.state || selected.value.inspection.view) ? h("p", { class: "vh-capability-inspector__empty" }, selected.value.inspection.view && !spec.value ? "This view is unavailable. Recorded tools and data are shown below." : "Inspection data was not recorded. Configuration capture may be disabled for this run.") : null,
745
+ tools.value.length ? h(ToolList, {
746
+ calls: calls.value,
747
+ onSelect: selectTool,
748
+ tools: tools.value
749
+ }) : null,
750
+ selected.value.inspection?.state ? h("pre", payloadText(selected.value.inspection.state)) : null,
751
+ selected.value.metadata ? h("details", [h("summary", "Configuration"), h("pre", payloadText(selected.value.metadata))]) : null,
752
+ !tools.value.length && !selected.value.metadata && !selected.value.inspection ? h("p", "No tools or configuration recorded.") : null
753
+ ]
754
+ ]) : null
755
+ ]);
756
+ }
757
+ });
758
+ //#endregion
759
+ //#region src/console/runtime/components/invocation/internal/channel-icon.ts
760
+ const channelMarks = {
761
+ "teams": {
762
+ "label": "Microsoft Teams",
763
+ "body": "<path fill=\"currentColor\" d=\"M112 104a8 8 0 0 1-8 8h-8v40a8 8 0 0 1-16 0v-40h-8a8 8 0 0 1 0-16h32a8 8 0 0 1 8 8m120-11.26V152a40 40 0 0 1-36.63 39.85a64 64 0 0 1-118.7.15H40a16 16 0 0 1-16-16V80a16 16 0 0 1 16-16h56.81a40 40 0 0 1 73.31-28.85A32 32 0 0 1 211.69 80h7.57A12.76 12.76 0 0 1 232 92.74M112 56a23.8 23.8 0 0 0 1.38 8H136a16 16 0 0 1 15.07 10.68A24 24 0 1 0 112 56m24 120V80H40v96zm48-80h-32v80a16 16 0 0 1-16 16H94.44A48 48 0 0 0 184 168Zm16-32a16 16 0 0 0-24.4-13.6A39.9 39.9 0 0 1 168 80h16a16 16 0 0 0 16-16m16 32h-16v72a63 63 0 0 1-.36 6.75A24 24 0 0 0 216 152Z\"/>"
764
+ },
765
+ "slack": {
766
+ "label": "Slack",
767
+ "body": "<path fill=\"currentColor\" d=\"M221.13 128A32 32 0 0 0 184 76.31V56a32 32 0 0 0-56-21.13A32 32 0 0 0 76.31 72H56a32 32 0 0 0-21.13 56A32 32 0 0 0 72 179.69V200a32 32 0 0 0 56 21.13A32 32 0 0 0 179.69 184H200a32 32 0 0 0 21.13-56M72 152a16 16 0 1 1-16-16h16Zm48 48a16 16 0 0 1-32 0v-48a16 16 0 0 1 16-16h16Zm0-80H56a16 16 0 0 1 0-32h48a16 16 0 0 1 16 16Zm0-48h-16a16 16 0 1 1 16-16Zm16-16a16 16 0 0 1 32 0v48a16 16 0 0 1-16 16h-16Zm16 160a16 16 0 0 1-16-16v-16h16a16 16 0 0 1 0 32m48-48h-48a16 16 0 0 1-16-16v-16h64a16 16 0 0 1 0 32m0-48h-16v-16a16 16 0 1 1 16 16\"/>"
768
+ },
769
+ "discord": {
770
+ "label": "Discord",
771
+ "body": "<path fill=\"currentColor\" d=\"M104 140a12 12 0 1 1-12-12a12 12 0 0 1 12 12m60-12a12 12 0 1 0 12 12a12 12 0 0 0-12-12m74.45 64.9l-67 29.71a16.17 16.17 0 0 1-21.71-9.1l-8.11-22q-6.72.45-13.63.46t-13.63-.46l-8.11 22a16.18 16.18 0 0 1-21.71 9.1l-67-29.71a15.93 15.93 0 0 1-9.06-18.51L38 58a16.07 16.07 0 0 1 13-11.86l36.06-5.93a16.22 16.22 0 0 1 18.26 11.88l3.26 12.84Q118.11 64 128 64t19.4.93l3.26-12.84a16.21 16.21 0 0 1 18.26-11.88L205 46.14A16.07 16.07 0 0 1 218 58l29.53 116.38a15.93 15.93 0 0 1-9.08 18.52M232 178.28L202.47 62h-.08l-36.06-6a.17.17 0 0 0-.17 0l-2.83 11.14c5 .94 10 2.06 14.83 3.42A8 8 0 0 1 176 86.31a8 8 0 0 1-2.16-.3A172.3 172.3 0 0 0 128 80a172.3 172.3 0 0 0-45.84 6a8 8 0 1 1-4.32-15.4c4.82-1.36 9.78-2.48 14.82-3.42L89.83 56h-.12l-36.1 5.93a.2.2 0 0 0-.09 0L24 178.33L91 208a.23.23 0 0 0 .22 0L98 189.72a173 173 0 0 1-20.14-4.32a8 8 0 0 1 4.3-15.4a172 172 0 0 0 45.84 6a172 172 0 0 0 45.84-6a8 8 0 0 1 4.32 15.41a173 173 0 0 1-20.16 4.31l6.75 18.28a.22.22 0 0 0 .21 0Z\"/>"
772
+ },
773
+ "telegram": {
774
+ "label": "Telegram",
775
+ "body": "<path fill=\"currentColor\" d=\"M228.88 26.19a9 9 0 0 0-9.16-1.57L17.06 103.93a14.22 14.22 0 0 0 2.43 27.21L72 141.45V200a15.92 15.92 0 0 0 10 14.83a15.91 15.91 0 0 0 17.51-3.73l25.32-26.26L165 220a15.88 15.88 0 0 0 10.51 4a16.3 16.3 0 0 0 5-.79a15.85 15.85 0 0 0 10.67-11.63L231.77 35a9 9 0 0 0-2.89-8.81m-61.14 36l-89.59 64.16l-49.6-9.73ZM88 200v-47.48l24.79 21.74Zm87.53 8l-82.68-72.5l119-85.29Z\"/>"
776
+ },
777
+ "github": {
778
+ "label": "GitHub",
779
+ "viewBox": "0 0 16 16",
780
+ "body": "<path fill=\"currentColor\" d=\"M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656\"/>"
781
+ },
782
+ "web-chat": {
783
+ "label": "Web chat",
784
+ "body": "<path fill=\"currentColor\" d=\"M168 112a8 8 0 0 1-8 8H96a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8m-8 24H96a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16m72-8a104 104 0 0 1-152.88 91.82l-34.05 11.35a16 16 0 0 1-20.24-20.24l11.35-34.05A104 104 0 1 1 232 128m-16 0a88 88 0 1 0-164.19 44.06a8 8 0 0 1 .66 6.54L40 216l37.4-12.47a7.9 7.9 0 0 1 2.53-.42a8 8 0 0 1 4 1.08A88 88 0 0 0 216 128\"/>"
785
+ },
786
+ "http": {
787
+ "label": "HTTP",
788
+ "body": "<path fill=\"currentColor\" d=\"M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m87.62 96h-39.83c-1.79-36.51-15.85-62.33-27.38-77.6a88.19 88.19 0 0 1 67.22 77.6ZM96.23 136h63.54c-2.31 41.61-22.23 67.11-31.77 77c-9.55-9.9-29.46-35.4-31.77-77m0-16c2.31-41.61 22.23-67.11 31.77-77c9.55 9.93 29.46 35.43 31.77 77Zm11.36-77.6C96.06 57.67 82 83.49 80.21 120H40.37a88.19 88.19 0 0 1 67.22-77.6M40.37 136h39.84c1.82 36.51 15.85 62.33 27.38 77.6A88.19 88.19 0 0 1 40.37 136m108 77.6c11.53-15.27 25.56-41.09 27.38-77.6h39.84a88.19 88.19 0 0 1-67.18 77.6Z\"/>"
789
+ }
790
+ };
791
+ const genericChannelMark = { body: "<path fill=\"currentColor\" d=\"M128 88a40 40 0 1 0 40 40a40 40 0 0 0-40-40m0 64a24 24 0 1 1 24-24a24 24 0 0 1-24 24m73.71 7.14a80 80 0 0 1-14.08 22.2a8 8 0 0 1-11.92-10.67a63.95 63.95 0 0 0 0-85.33a8 8 0 1 1 11.92-10.67a80.08 80.08 0 0 1 14.08 84.47M69 103.09a64 64 0 0 0 11.26 67.58a8 8 0 0 1-11.92 10.67a79.93 79.93 0 0 1 0-106.67a8 8 0 1 1 11.95 10.67A63.8 63.8 0 0 0 69 103.09M248 128a119.58 119.58 0 0 1-34.29 84a8 8 0 1 1-11.42-11.2a103.9 103.9 0 0 0 0-145.56A8 8 0 1 1 213.71 44A119.58 119.58 0 0 1 248 128M53.71 200.78A8 8 0 1 1 42.29 212a119.87 119.87 0 0 1 0-168a8 8 0 1 1 11.42 11.2a103.9 103.9 0 0 0 0 145.56Z\"/>" };
792
+ function channelIcon(channel) {
793
+ const normalized = channel.toLowerCase().replace(/^msteams$/, "teams").replace(/^microsoft[ ._-]?/, "").replace(/^github-pull-request(?:-comment)?$/, "github");
794
+ const knownMark = Object.hasOwn(channelMarks, normalized) ? channelMarks[normalized] : void 0;
795
+ const mark = knownMark ?? genericChannelMark;
796
+ const label = knownMark?.label ?? channel;
797
+ return h("span", {
798
+ class: "vh-channel-icon vh-invocation-list__channel",
799
+ title: label,
800
+ "aria-label": label
801
+ }, [h("svg", {
802
+ width: "1em",
803
+ height: "1em",
804
+ viewBox: knownMark?.viewBox ?? "0 0 256 256",
805
+ fill: "currentColor",
806
+ "aria-hidden": "true",
807
+ innerHTML: mark.body
808
+ })]);
809
+ }
810
+ //#endregion
811
+ //#region src/console/runtime/components/invocation/internal/brand-icons.ts
812
+ /**
813
+ * @license
814
+ * AI brand marks from Lobe Icons (@lobehub/icons-static-svg 1.95.1).
815
+ * https://github.com/lobehub/lobe-icons
816
+ *
817
+ * MIT License
818
+ *
819
+ * Copyright (c) 2023 LobeHub
820
+ *
821
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
822
+ * of this software and associated documentation files (the "Software"), to deal
823
+ * in the Software without restriction, including without limitation the rights
824
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
825
+ * copies of the Software, and to permit persons to whom the Software is
826
+ * furnished to do so, subject to the following conditions:
827
+ *
828
+ * The above copyright notice and this permission notice shall be included in all
829
+ * copies or substantial portions of the Software.
830
+ *
831
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
832
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
833
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
834
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
835
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
836
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
837
+ * SOFTWARE.
838
+ */
839
+ /** Monochrome 24 x 24 marks that render with `currentColor`. */
840
+ const brandIcons = {
841
+ anthropic: [{ d: "M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z" }],
842
+ aws: [{ d: "M6.763 11.212c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 01-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 01-.287-.375 6.18 6.18 0 01-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.39-.384-.59-.894-.59-1.533 0-.678.24-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272-.09.04-.184.075-.28.104a.488.488 0 01-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 01.224-.167 4.577 4.577 0 011.005-.36 4.84 4.84 0 011.246-.151c.95 0 1.644.216 2.091.647.44.43.662 1.085.662 1.963v2.586h.016zm-3.24 1.214c.263 0 .534-.048.822-.144a1.78 1.78 0 00.758-.51 1.27 1.27 0 00.272-.512c.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 00-.735-.136 6.02 6.02 0 00-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 6.726a1.398 1.398 0 01-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 01.32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 01.311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 01-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 01-.303.08h-.687c-.15 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32L12.32 7.747l-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08l-.686.001zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 01-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.32.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 00.415-.758.777.777 0 00-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 01-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .36.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 01.24.2.43.43 0 01.071.263v.375c0 .168-.064.256-.184.256a.83.83 0 01-.303-.096 3.652 3.652 0 00-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.16.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926a2.157 2.157 0 01-.583.703c-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167z" }, { d: "M.378 15.475c3.384 1.963 7.56 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.44-.2.814.287.383.607-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351zm23.531-.2c.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151l.175-.439c.343-.88.802-2.198.52-2.555-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399z" }],
843
+ azure: [
844
+ {
845
+ d: "M18.397 15.296H7.4a.51.51 0 00-.347.882l7.066 6.595c.206.192.477.298.758.298h6.226l-2.706-7.775z",
846
+ fillOpacity: ".75"
847
+ },
848
+ {
849
+ d: "M8.295.857c-.477 0-.9.304-1.053.756L.495 21.605a1.11 1.11 0 001.052 1.466h5.43c.477 0 .9-.304 1.053-.755l1.341-3.975-2.318-2.163a.51.51 0 01.347-.882h3L15.271.857H8.295z",
850
+ fillOpacity: ".5"
851
+ },
852
+ { d: "M17.193 1.613a1.11 1.11 0 00-1.052-.756h-7.81.035c.477 0 .9.304 1.052.756l6.748 19.992a1.11 1.11 0 01-1.052 1.466h-.12 7.895a1.11 1.11 0 001.052-1.466L17.193 1.613z" }
853
+ ],
854
+ bedrock: [{ d: "M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z" }],
855
+ cerebras: [{
856
+ clipRule: "evenodd",
857
+ d: "M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z"
858
+ }, { d: "M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z" }],
859
+ cloudflare: [{ d: "M16.493 17.4c.135-.52.08-.983-.161-1.338-.215-.328-.592-.519-1.05-.519l-8.663-.109a.148.148 0 01-.135-.082c-.027-.054-.027-.109-.027-.163.027-.082.108-.164.189-.164l8.744-.11c1.05-.054 2.153-.9 2.556-1.937l.511-1.31c.027-.055.027-.11.027-.164C17.92 8.91 15.66 7 12.942 7c-2.503 0-4.628 1.638-5.381 3.903a2.432 2.432 0 00-1.803-.491c-1.21.109-2.153 1.092-2.287 2.32-.027.328 0 .628.054.9C1.56 13.688 0 15.326 0 17.319c0 .19.027.355.027.545 0 .082.08.137.161.137h15.983c.08 0 .188-.055.215-.164l.107-.437" }, { d: "M19.238 11.75h-.242c-.054 0-.108.054-.135.109l-.35 1.2c-.134.52-.08.983.162 1.338.215.328.592.518 1.05.518l1.855.11c.054 0 .108.027.135.082.027.054.027.109.027.163-.027.082-.108.164-.188.164l-1.91.11c-1.05.054-2.153.9-2.557 1.937l-.134.355c-.027.055.026.137.107.137h6.592c.081 0 .162-.055.162-.137.107-.41.188-.846.188-1.31-.027-2.62-2.153-4.777-4.762-4.777" }],
860
+ cohere: [
861
+ {
862
+ clipRule: "evenodd",
863
+ d: "M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z"
864
+ },
865
+ {
866
+ clipRule: "evenodd",
867
+ d: "M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z"
868
+ },
869
+ { d: "M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z" }
870
+ ],
871
+ deepseek: [{ d: "M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z" }],
872
+ fireworks: [{
873
+ clipRule: "evenodd",
874
+ d: "M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z"
875
+ }],
876
+ google: [
877
+ { d: "M23 12.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124 1.014-.797 2.542-2.294 3.569l-.021.136 3.332 2.53.23.022C21.779 18.417 23 15.593 23 12.245z" },
878
+ { d: "M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z" },
879
+ { d: "M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z" },
880
+ { d: "M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z" }
881
+ ],
882
+ groq: [{ d: "M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z" }],
883
+ huggingface: [{ d: "M16.781 3.277c2.997 1.704 4.844 4.851 4.844 8.258 0 .995-.155 1.955-.443 2.857a1.332 1.332 0 011.125.4 1.41 1.41 0 01.2 1.723c.204.165.352.385.428.632l.017.062c.06.222.12.69-.2 1.166.244.37.279.836.093 1.236-.255.57-.893 1.018-2.128 1.5l-.202.078-.131.048c-.478.173-.89.295-1.061.345l-.086.024c-.89.243-1.808.375-2.732.394-1.32 0-2.3-.36-2.923-1.067a9.852 9.852 0 01-3.18.018C9.778 21.647 8.802 22 7.494 22a11.249 11.249 0 01-2.541-.343l-.221-.06-.273-.08a16.574 16.574 0 01-1.175-.405c-1.237-.483-1.875-.93-2.13-1.501-.186-.4-.151-.867.093-1.236a1.42 1.42 0 01-.2-1.166c.069-.273.226-.516.447-.694a1.41 1.41 0 01.2-1.722c.233-.248.557-.391.917-.407l.078-.001a9.385 9.385 0 01-.44-2.85c0-3.407 1.847-6.554 4.844-8.258a9.822 9.822 0 019.687 0zM4.188 14.758c.125.687 2.357 2.35 2.14 2.707-.19.315-.796-.239-.948-.386l-.041-.04-.168-.147c-.561-.479-2.304-1.9-2.74-1.432-.43.46.119.859 1.055 1.42l.784.467.136.083c1.045.643 1.12.84.95 1.113-.188.295-3.07-2.1-3.34-1.083-.27 1.011 2.942 1.304 2.744 2.006-.2.7-2.265-1.324-2.685-.537-.425.79 2.913 1.718 2.94 1.725l.16.04.175.042c1.227.284 3.565.65 4.435-.604.673-.973.64-1.709-.248-2.61l-.057-.057c-.945-.928-1.495-2.288-1.495-2.288l-.017-.058-.025-.072c-.082-.22-.284-.639-.63-.584-.46.073-.798 1.21.12 1.933l.05.038c.977.721-.195 1.21-.573.534l-.058-.104-.143-.25c-.463-.799-1.282-2.111-1.739-2.397-.532-.332-.907-.148-.782.541zm14.842-.541c-.533.335-1.563 2.074-1.94 2.751a.613.613 0 01-.687.302.436.436 0 01-.176-.098.303.303 0 01-.049-.06l-.014-.028-.008-.02-.007-.019-.003-.013-.003-.017a.289.289 0 01-.004-.048c0-.12.071-.266.25-.427.026-.024.054-.047.084-.07l.047-.036c.022-.016.043-.032.063-.049.883-.71.573-1.81.131-1.917l-.031-.006-.056-.004a.368.368 0 00-.062.006l-.028.005-.042.014-.039.017-.028.015-.028.019-.036.027-.023.02c-.173.158-.273.428-.31.542l-.016.054s-.53 1.309-1.439 2.234l-.054.054c-.365.358-.596.69-.702 1.018-.143.437-.066.868.21 1.353.055.097.117.195.187.296.882 1.275 3.282.876 4.494.59l.286-.07.25-.074c.276-.084.736-.233 1.2-.42l.188-.077.065-.028.064-.028.124-.056.081-.038c.529-.252.964-.543.994-.827l.001-.036a.299.299 0 00-.037-.139c-.094-.176-.271-.212-.491-.168l-.045.01c-.044.01-.09.024-.136.04l-.097.035-.054.022c-.559.23-1.238.705-1.607.745h.006a.452.452 0 01-.05.003h-.024l-.024-.003-.023-.005c-.068-.016-.116-.06-.14-.142a.22.22 0 01-.005-.1c.062-.345.958-.595 1.713-.91l.066-.028c.528-.224.97-.483.985-.832v-.04a.47.47 0 00-.016-.098c-.048-.18-.175-.251-.36-.251-.785 0-2.55 1.36-2.92 1.36-.025 0-.048-.007-.058-.024a.6.6 0 01-.046-.088c-.1-.238.068-.462 1.06-1.066l.209-.126c.538-.32 1.01-.588 1.341-.831.29-.212.475-.406.503-.6l.003-.028c.008-.113-.038-.227-.147-.344a.266.266 0 00-.07-.054l-.034-.015-.013-.005a.403.403 0 00-.13-.02c-.162 0-.369.07-.595.18-.637.313-1.431.952-1.826 1.285l-.249.215-.033.033c-.08.078-.288.27-.493.386l-.071.037-.041.019a.535.535 0 01-.122.036h.005a.346.346 0 01-.031.003l.01-.001-.013.001c-.079.005-.145-.021-.19-.095a.113.113 0 01-.014-.065c.027-.465 2.034-1.991 2.152-2.642l.009-.048c.1-.65-.271-.817-.791-.493zM11.938 2.984c-4.798 0-8.688 3.829-8.688 8.55 0 .692.083 1.364.24 2.008l.008-.009c.252-.298.612-.46 1.017-.46.355.008.699.117.993.312.22.14.465.384.715.694.261-.372.69-.598 1.15-.605.852 0 1.367.728 1.562 1.383l.047.105.06.127c.192.396.595 1.139 1.143 1.68 1.06 1.04 1.324 2.115.8 3.266a8.865 8.865 0 002.024-.014c-.505-1.12-.26-2.17.74-3.186l.066-.066c.695-.684 1.157-1.69 1.252-1.912.195-.655.708-1.383 1.56-1.383.46.007.889.233 1.15.605.25-.31.495-.553.718-.694a1.87 1.87 0 01.99-.312c.357 0 .682.126.925.36.14-.61.215-1.245.215-1.898 0-4.722-3.89-8.55-8.687-8.55zm1.857 8.926l.439-.212c.553-.264.89-.383.89.152 0 1.093-.771 3.208-3.155 3.262h-.184c-2.325-.052-3.116-2.06-3.156-3.175l-.001-.087c0-1.107 1.452.586 3.25.586.716 0 1.379-.272 1.917-.526zm4.017-3.143c.45 0 .813.358.813.8 0 .441-.364.8-.813.8a.806.806 0 01-.812-.8c0-.442.364-.8.812-.8zm-11.624 0c.448 0 .812.358.812.8 0 .441-.364.8-.812.8a.806.806 0 01-.813-.8c0-.442.364-.8.813-.8zm7.79-.841c.32-.384.846-.54 1.33-.394.483.146.83.564.878 1.06.048.495-.212.97-.659 1.203-.322.168-.447-.477-.767-.585l.002-.003c-.287-.098-.772.362-.925.079a1.215 1.215 0 01.14-1.36zm-4.323 0c.322.384.377.92.14 1.36-.152.283-.64-.177-.925-.079l.003.003c-.108.036-.194.134-.273.24l-.118.165c-.11.15-.22.262-.377.18a1.226 1.226 0 01-.658-1.204c.048-.495.395-.913.878-1.059a1.262 1.262 0 011.33.394z" }],
884
+ meta: [{ d: "M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z" }],
885
+ minimax: [{ d: "M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z" }],
886
+ mistral: [{
887
+ clipRule: "evenodd",
888
+ d: "M3.428 3.4h3.429v3.428h3.429v3.429h-.002 3.431V6.828h3.427V3.4h3.43v13.714H24v3.429H13.714v-3.428h-3.428v-3.429h-3.43v3.428h3.43v3.429H0v-3.429h3.428V3.4zm10.286 13.715h3.428v-3.429h-3.427v3.429z"
889
+ }],
890
+ moonshot: [{ d: "M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z" }],
891
+ nvidia: [{ d: "M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z" }],
892
+ ollama: [{ d: "M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z" }],
893
+ openai: [{ d: "M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z" }],
894
+ openrouter: [{ d: "M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z" }],
895
+ perplexity: [{ d: "M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z" }],
896
+ qwen: [{ d: "M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z" }],
897
+ replicate: [{ d: "M22 10.552v2.26h-7.932V22H11.54V10.552H22zM22 2v2.264H4.528V22H2V2h20zm0 4.276V8.54H9.296V22H6.768V6.276H22z" }],
898
+ together: [
899
+ { d: "M23.197 4.503A6 6 0 0015 2.307a5.973 5.973 0 00-2.995 4.933l5.996.008v.515h-5.996c.039.937.298 1.87.8 2.74a6 6 0 1010.39-6z" },
900
+ { d: "M.805 4.5A6 6 0 003 12.697a5.972 5.972 0 005.77.127L5.779 7.627l.446-.257 2.997 5.192A6 6 0 10.804 4.5z" },
901
+ { d: "M12 23.894a6 6 0 005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005 5.189-.444-.258 2.997-5.192A6 6 0 1012 23.894z" }
902
+ ],
903
+ xai: [{ d: "M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z" }],
904
+ zai: [{ d: "M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z" }]
905
+ };
906
+ //#endregion
907
+ //#region src/console/runtime/components/invocation/internal/invocation-brand.ts
908
+ const brands = {
909
+ alibaba: {
910
+ icon: "qwen",
911
+ label: "Alibaba"
912
+ },
913
+ anthropic: {
914
+ icon: "anthropic",
915
+ label: "Anthropic"
916
+ },
917
+ aws: {
918
+ icon: "aws",
919
+ label: "AWS"
920
+ },
921
+ azure: {
922
+ icon: "azure",
923
+ label: "Azure"
924
+ },
925
+ bedrock: {
926
+ icon: "bedrock",
927
+ label: "Amazon Bedrock"
928
+ },
929
+ cerebras: {
930
+ icon: "cerebras",
931
+ label: "Cerebras"
932
+ },
933
+ "claude-code": {
934
+ icon: "anthropic",
935
+ label: "Claude Code"
936
+ },
937
+ cloudflare: {
938
+ icon: "cloudflare",
939
+ label: "Cloudflare"
940
+ },
941
+ codex: {
942
+ icon: "openai",
943
+ label: "Codex"
944
+ },
945
+ cohere: {
946
+ icon: "cohere",
947
+ label: "Cohere"
948
+ },
949
+ deepseek: {
950
+ icon: "deepseek",
951
+ label: "DeepSeek"
952
+ },
953
+ fireworks: {
954
+ icon: "fireworks",
955
+ label: "Fireworks AI"
956
+ },
957
+ google: {
958
+ icon: "google",
959
+ label: "Google"
960
+ },
961
+ groq: {
962
+ icon: "groq",
963
+ label: "Groq"
964
+ },
965
+ huggingface: {
966
+ icon: "huggingface",
967
+ label: "Hugging Face"
968
+ },
969
+ meta: {
970
+ icon: "meta",
971
+ label: "Meta"
972
+ },
973
+ minimax: {
974
+ icon: "minimax",
975
+ label: "MiniMax"
976
+ },
977
+ mistral: {
978
+ icon: "mistral",
979
+ label: "Mistral AI"
980
+ },
981
+ moonshot: {
982
+ icon: "moonshot",
983
+ label: "Moonshot AI"
984
+ },
985
+ nvidia: {
986
+ icon: "nvidia",
987
+ label: "NVIDIA"
988
+ },
989
+ ollama: {
990
+ icon: "ollama",
991
+ label: "Ollama"
992
+ },
993
+ openai: {
994
+ icon: "openai",
995
+ label: "OpenAI"
996
+ },
997
+ openrouter: {
998
+ icon: "openrouter",
999
+ label: "OpenRouter"
1000
+ },
1001
+ perplexity: {
1002
+ icon: "perplexity",
1003
+ label: "Perplexity"
1004
+ },
1005
+ qwen: {
1006
+ icon: "qwen",
1007
+ label: "Qwen"
1008
+ },
1009
+ replicate: {
1010
+ icon: "replicate",
1011
+ label: "Replicate"
1012
+ },
1013
+ together: {
1014
+ icon: "together",
1015
+ label: "Together AI"
1016
+ },
1017
+ xai: {
1018
+ icon: "xai",
1019
+ label: "xAI"
1020
+ },
1021
+ zai: {
1022
+ icon: "zai",
1023
+ label: "Z.AI"
1024
+ }
1025
+ };
1026
+ const providerAliases = {
1027
+ "alibaba-cloud": "alibaba",
1028
+ "amazon-bedrock": "bedrock",
1029
+ "amazon-web-services": "aws",
1030
+ amazon: "aws",
1031
+ "fireworks-ai": "fireworks",
1032
+ "google-vertex": "google",
1033
+ "hugging-face": "huggingface",
1034
+ "microsoft-azure": "azure",
1035
+ mistralai: "mistral",
1036
+ "moonshot-ai": "moonshot",
1037
+ moonshotai: "moonshot",
1038
+ "together-ai": "together",
1039
+ togetherai: "together",
1040
+ vertex: "google",
1041
+ "vertex-ai": "google",
1042
+ "x-ai": "xai",
1043
+ "z-ai": "zai",
1044
+ zhipu: "zai"
1045
+ };
1046
+ const modelFamilies = [
1047
+ ["claude", "anthropic"],
1048
+ ["codestral", "mistral"],
1049
+ ["command", "cohere"],
1050
+ ["deepseek", "deepseek"],
1051
+ ["devstral", "mistral"],
1052
+ ["gemini", "google"],
1053
+ ["gemma", "google"],
1054
+ ["glm", "zai"],
1055
+ ["gpt", "openai"],
1056
+ ["grok", "xai"],
1057
+ ["kimi", "moonshot"],
1058
+ ["llama", "meta"],
1059
+ ["minimax", "minimax"],
1060
+ ["mistral", "mistral"],
1061
+ ["qwen", "qwen"]
1062
+ ];
1063
+ function isBrandId(value) {
1064
+ return Object.hasOwn(brands, value);
1065
+ }
1066
+ function brandId(value) {
1067
+ if (isBrandId(value)) return value;
1068
+ if (Object.hasOwn(providerAliases, value)) return providerAliases[value];
1069
+ }
1070
+ function brand(id) {
1071
+ return {
1072
+ id,
1073
+ ...brands[id]
1074
+ };
1075
+ }
1076
+ /** Resolve a provider or driver id such as `openrouter`, `anthropic.messages`, or `z-ai`. */
1077
+ function invocationBrand(value) {
1078
+ const id = value?.trim().toLocaleLowerCase();
1079
+ if (!id) return;
1080
+ const known = brandId(id) ?? brandId(id.split(/[.:/]/)[0] ?? "") ?? (id.includes("openrouter") ? "openrouter" : void 0);
1081
+ if (known) return brand(known);
1082
+ return {
1083
+ id: "fallback",
1084
+ label: id.split(/[._-]/g).filter(Boolean).map((part) => part.length <= 3 ? part.toLocaleUpperCase() : `${part[0]?.toLocaleUpperCase() ?? ""}${part.slice(1)}`).join(" ")
1085
+ };
1086
+ }
1087
+ /** Resolve the company that made a model from ids such as `anthropic/claude-sonnet-4.5` or `gpt-5.6`. */
1088
+ function invocationModelMaker(modelId) {
1089
+ const id = modelId?.trim().toLocaleLowerCase();
1090
+ if (!id) return;
1091
+ const segments = id.split("/");
1092
+ const owner = segments.length > 1 ? brandId(segments[0] ?? "") : void 0;
1093
+ if (owner) return brand(owner);
1094
+ const name = segments.at(-1) ?? "";
1095
+ const family = modelFamilies.find(([prefix]) => name.startsWith(prefix));
1096
+ return family ? brand(family[1]) : void 0;
1097
+ }
1098
+ function invocationBrandMark(value, className) {
1099
+ if (!value) return null;
1100
+ if (value.id === "fallback") return h("svg", {
1101
+ "aria-hidden": "true",
1102
+ class: `vh-invocation-brand__logo ${className}`,
1103
+ fill: "none",
1104
+ stroke: "currentColor",
1105
+ "stroke-width": 1.5,
1106
+ viewBox: "0 0 24 24"
1107
+ }, [h("rect", {
1108
+ height: 14,
1109
+ rx: 3,
1110
+ width: 14,
1111
+ x: 5,
1112
+ y: 5
1113
+ }), h("path", { d: "M9 2v3m6-3v3M9 19v3m6-3v3M2 9h3m-3 6h3m14-6h3m-3 6h3M9 9h6v6H9z" })]);
1114
+ const paths = brandIcons[value.icon];
1115
+ return h("svg", {
1116
+ "aria-hidden": "true",
1117
+ class: `vh-invocation-brand__logo ${className}`,
1118
+ "data-brand": value.id,
1119
+ "fill-rule": "evenodd",
1120
+ viewBox: "0 0 24 24"
1121
+ }, paths.map((path) => h("path", {
1122
+ "clip-rule": path.clipRule,
1123
+ d: path.d,
1124
+ "fill-opacity": path.fillOpacity
1125
+ })));
1126
+ }
1127
+ /**
1128
+ * A readable name for a model id: `claude-haiku-5-5` is "Claude Haiku 5.5", `gpt-6-luna` is "GPT 6 Luna". Version
1129
+ * numbers that the id splits with dashes join with a dot, and a trailing date snapshot such as `20250929` is dropped.
1130
+ */
1131
+ function invocationModelName(value) {
1132
+ const parts = (value.split("/").at(-1) ?? "").split("-").filter(Boolean);
1133
+ if (parts.length > 1 && /^\d{8}$/.test(parts.at(-1) ?? "")) parts.pop();
1134
+ const words = [];
1135
+ for (const part of parts) {
1136
+ const previous = words.at(-1);
1137
+ if (previous !== void 0 && /^\d{1,2}$/.test(part) && /^\d+(\.\d+)*$/.test(previous)) words[words.length - 1] = `${previous}.${part}`;
1138
+ else words.push(part);
1139
+ }
1140
+ return words.map((part) => {
1141
+ const lower = part.toLocaleLowerCase();
1142
+ if (/^(ai|gpt|glm|llm|vlm)$/.test(lower)) return lower.toLocaleUpperCase();
1143
+ if (/^\d+[a-z]$/i.test(part)) return part.toLocaleUpperCase();
1144
+ return `${part[0]?.toLocaleUpperCase() ?? ""}${part.slice(1)}`;
1145
+ }).join(" ") || "Configured model";
1146
+ }
1147
+ //#endregion
1148
+ //#region src/console/runtime/components/invocation/internal/url.ts
1149
+ function isSafeExternalUrl(value) {
1150
+ try {
1151
+ const protocol = new URL(value).protocol;
1152
+ return protocol === "http:" || protocol === "https:";
1153
+ } catch {
1154
+ return false;
1155
+ }
1156
+ }
1157
+ //#endregion
1158
+ //#region src/console/runtime/components/invocation/invocation-display.ts
1159
+ function annotation(source, key) {
1160
+ const value = source.annotations?.[key];
1161
+ return typeof value === "string" && value.trim() ? value.trim() : void 0;
1162
+ }
1163
+ function agentInvocationTitle(source) {
1164
+ return source.title ?? annotation(source, "github.title") ?? source.agentName ?? "Agent Invocation";
1165
+ }
1166
+ function agentInvocationContext(source) {
1167
+ const repository = annotation(source, "github.repository");
1168
+ const pullRequest = source.annotations?.["github.pullRequest"];
1169
+ if (repository && (typeof pullRequest === "string" || typeof pullRequest === "number")) return `${repository} · PR #${pullRequest}`;
1170
+ return annotation(source, "triggeredBy") ?? source.threadId ?? source.origin ?? source.channelId ?? source.id;
1171
+ }
1172
+ function agentInvocationProject(source) {
1173
+ return annotation(source, "github.repository")?.split("/").at(-1) ?? source.configuration?.workspace?.name ?? source.agentName ?? "Workspace";
1174
+ }
1175
+ function agentInvocationExternalUrl(source) {
1176
+ const value = annotation(source, "github.url");
1177
+ return value && isSafeExternalUrl(value) ? value : void 0;
1178
+ }
1179
+ //#endregion
1180
+ //#region src/console/runtime/components/invocation/agent-invocation-timeline.ts
1181
+ /** ViteHub owns preparation, delivery, and its own tools; the Agent owns the rest. */
1182
+ function timelineOwner(activity) {
1183
+ const tool = String(activity.attributes["tool.name"] ?? "").toLocaleLowerCase();
1184
+ if (activity.kind === "preparation" || activity.kind === "action" || activity.kind === "system" || activity.kind === "delivery" || activity.name.startsWith("vitehub.") || tool === "materialize_sources" || tool.startsWith("vitehub_")) return "vitehub";
1185
+ return "agent";
1186
+ }
1187
+ /** The timed, non-message activities of an Invocation in start order, with their offset from the start. */
1188
+ function invocationTimeline(invocation, activities = invocationActivities(invocation)) {
1189
+ const items = activities.filter((activity) => activity.kind !== "message" && Number.isFinite(Date.parse(activity.startedAt ?? ""))).sort((a, b) => Date.parse(a.startedAt ?? "") - Date.parse(b.startedAt ?? "") || a.sequence - b.sequence);
1190
+ if (!items.length) return [];
1191
+ const invocationStart = Date.parse(invocation.startedAt ?? invocation.createdAt ?? "");
1192
+ const observedStarts = items.map((activity) => Date.parse(activity.startedAt ?? "")).filter(Number.isFinite);
1193
+ const zero = Number.isFinite(invocationStart) ? invocationStart : Math.min(...observedStarts);
1194
+ return items.map((activity) => {
1195
+ const started = Date.parse(activity.startedAt ?? "");
1196
+ const durationMs = Number.isFinite(activity.durationMs) ? activity.durationMs ?? 0 : 0;
1197
+ const offsetMs = Number.isFinite(started) ? Math.max(0, started - zero) : 0;
1198
+ const timing = [offsetMs ? `+${consoleDuration(offsetMs)}` : "start", durationMs ? consoleDuration(durationMs) : void 0].filter(Boolean).join(" · ");
1199
+ const item = {
1200
+ activity,
1201
+ durationMs,
1202
+ id: activity.id,
1203
+ offsetMs,
1204
+ owner: timelineOwner(activity),
1205
+ timing,
1206
+ title: invocationActivityTitle(activity)
1207
+ };
1208
+ const detail = invocationActivityDetail(activity);
1209
+ if (detail) item.detail = detail;
1210
+ return item;
1211
+ });
1212
+ }
1213
+ /** One row for each timed step of an Invocation: who ran it, what it did, and when. */
1214
+ const AgentInvocationTimeline = defineComponent({
1215
+ name: "AgentInvocationTimeline",
1216
+ emits: { selectActivity: (id) => Boolean(id) },
1217
+ props: { invocation: {
1218
+ required: true,
1219
+ type: Object
1220
+ } },
1221
+ setup(props, { emit, slots }) {
1222
+ const items = computed(() => invocationTimeline(props.invocation));
1223
+ return () => h("div", {
1224
+ class: "vh-invocation-timeline",
1225
+ "data-slot": "invocation-timeline"
1226
+ }, [items.value.length ? h("ol", { class: "vh-invocation-timeline__rows" }, items.value.map((item) => h("li", { key: `timeline:${item.id}` }, [h("button", {
1227
+ class: "vh-invocation-timeline__row",
1228
+ "data-activity-id": item.id,
1229
+ "data-owner": item.owner,
1230
+ "data-status": item.activity.status,
1231
+ onClick: () => emit("selectActivity", item.id),
1232
+ title: item.detail ? `${item.title} — ${item.detail}` : item.title,
1233
+ type: "button"
1234
+ }, [
1235
+ h("span", {
1236
+ "aria-hidden": "true",
1237
+ class: "vh-invocation-timeline__dot"
1238
+ }),
1239
+ h("span", { "data-slot": "visually-hidden" }, `${item.owner === "vitehub" ? "ViteHub" : "Agent"}${item.activity.status === "failed" ? ", failed" : ""}: `),
1240
+ h("span", { class: "vh-invocation-timeline__heading" }, [h("strong", item.title), item.detail ? h("code", { class: "vh-invocation-timeline__detail" }, item.detail) : null]),
1241
+ h("time", { class: "vh-invocation-timeline__time" }, item.timing)
1242
+ ])]))) : slots.empty?.() ?? h("p", { class: "vh-invocation-timeline__empty" }, "No timed steps recorded.")]);
1243
+ }
1244
+ });
1245
+ //#endregion
1246
+ //#region src/console/runtime/components/invocation/internal/invocation-conversation.ts
1247
+ /** Selects the current turn and separates visible answers from their work receipts. */
1248
+ function buildInvocationConversation(activities) {
1249
+ const inputActivities = withoutInitialDriverEcho(activities);
1250
+ const promptId = inputActivities[promptActivityIndex(inputActivities)]?.id;
1251
+ const orderedActivities = inputActivities.filter((activity) => activity.kind !== "message" || isVisibleMessage(activity));
1252
+ const firstUser = promptActivityIndex(orderedActivities);
1253
+ const lastUser = orderedActivities.findLastIndex((activity) => activity.kind === "message" && activity.role === "user");
1254
+ const lastAssistant = orderedActivities.findLastIndex((activity, index) => index > lastUser && activity.kind === "message" && activity.role === "assistant" && activity.attributes["message.phase"] !== "commentary");
1255
+ const tail = orderedActivities.slice(firstUser + 1);
1256
+ const finalBody = lastAssistant >= 0 ? orderedActivities[lastAssistant].body?.trim() : void 0;
1257
+ const answers = new Set(uniqueDeliveredAnswers(tail, new Set(finalBody ? [finalBody] : [])));
1258
+ const metadata = {
1259
+ deliveredAnswerCount: answers.size,
1260
+ promptId
1261
+ };
1262
+ if (firstUser < 0 && !orderedActivities.some(isDeliveredAnswer)) return {
1263
+ ...metadata,
1264
+ kind: "activities",
1265
+ activities: orderedActivities
1266
+ };
1267
+ const history = orderedActivities.slice(0, Math.max(firstUser, 0)).filter(isVisibleMessage);
1268
+ const workBeforePrompt = orderedActivities.slice(0, Math.max(firstUser, 0)).filter((activity) => activity.kind !== "message");
1269
+ const prompt = orderedActivities[firstUser];
1270
+ if (lastAssistant >= 0 && orderedActivities.slice(lastAssistant + 1).some((activity) => activity.kind === "message" && activity.role === "assistant" && activity.attributes["message.phase"] === "commentary")) {
1271
+ const beforeAnswer = orderedActivities.slice(firstUser + 1, lastAssistant).filter((activity) => !repeatsPrompt(activity, prompt));
1272
+ const followup = orderedActivities.slice(lastAssistant);
1273
+ return {
1274
+ ...metadata,
1275
+ kind: "conversation",
1276
+ history,
1277
+ prompt,
1278
+ work: coalesceAgentConfiguration([
1279
+ ...workBeforePrompt,
1280
+ ...beforeAnswer,
1281
+ ...followup.filter((activity) => activity.kind === "delivery")
1282
+ ]).map((activity) => isDeliveredAnswer(activity) ? deliveryReceipt(activity) : activity),
1283
+ answers: beforeAnswer.filter((activity) => answers.has(activity)).map(deliveryAnswer),
1284
+ followup: followup.flatMap((activity) => answers.has(activity) ? [deliveryAnswer(activity)] : activity.kind === "delivery" ? [] : [activity])
1285
+ };
1286
+ }
1287
+ return {
1288
+ ...metadata,
1289
+ kind: "conversation",
1290
+ history,
1291
+ prompt,
1292
+ work: coalesceAgentConfiguration([...workBeforePrompt, ...tail.filter((activity, offset) => firstUser + 1 + offset !== lastAssistant && !repeatsPrompt(activity, prompt))]).map((activity) => isDeliveredAnswer(activity) ? deliveryReceipt(activity) : activity),
1293
+ answers: [...[...answers].map(deliveryAnswer), ...lastAssistant >= 0 ? [orderedActivities[lastAssistant]] : []].sort((left, right) => left.sequence - right.sequence),
1294
+ followup: []
1295
+ };
1296
+ }
1297
+ function withoutInitialDriverEcho(activities) {
1298
+ const lastInput = activities.findLastIndex((activity) => activity.attributes["message.origin"] === "invocation-input");
1299
+ const prompt = activities[lastInput];
1300
+ if (!prompt || prompt.role !== "user") return activities;
1301
+ const firstMessage = activities.findIndex((activity, index) => index > lastInput && activity.kind === "message");
1302
+ const echo = activities[firstMessage];
1303
+ if (!echo || echo.name !== "agent.input.message" || echo.role !== "user" || echo.attributes["input.mode"] === "steer" || echo.truncated || prompt.truncated || echo.body?.trim() !== prompt.body?.trim()) return activities;
1304
+ return activities.filter((_, index) => index !== firstMessage);
1305
+ }
1306
+ function repeatsPrompt(activity, prompt) {
1307
+ const promptMessageId = prompt && stringAttribute(prompt.attributes, "message.id");
1308
+ return Boolean(promptMessageId) && activity !== prompt && activity.kind === "message" && activity.role === "user" && activity.attributes["input.mode"] !== "steer" && stringAttribute(activity.attributes, "message.id") === promptMessageId && (activity.body?.trim() ?? "") === (prompt.body?.trim() ?? "");
1309
+ }
1310
+ function promptActivityIndex(activities) {
1311
+ for (let index = 0; index < activities.length; index += 1) {
1312
+ const activity = activities[index];
1313
+ if (activity.kind === "message" && activity.role === "user" && activity.name !== "agent.input.message" && activity.attributes["input.mode"] !== "steer") return index;
1314
+ }
1315
+ const inputPrompt = activities.findLastIndex((activity) => activity.role === "user" && activity.attributes["message.origin"] === "invocation-input");
1316
+ if (inputPrompt >= 0) return inputPrompt;
1317
+ for (let index = activities.length - 1; index >= 0; index -= 1) {
1318
+ const activity = activities[index];
1319
+ if (activity.kind === "message" && activity.role === "user" && activity.attributes["input.mode"] !== "steer") return index;
1320
+ }
1321
+ return -1;
1322
+ }
1323
+ function isVisibleMessage(activity) {
1324
+ return activity.kind === "message" && Boolean(activity.body?.trim());
1325
+ }
1326
+ function coalesceAgentConfiguration(activities) {
1327
+ let latestConfiguration = -1;
1328
+ for (let index = activities.length - 1; index >= 0; index -= 1) if (activities[index].name === "vitehub.agent.configured") {
1329
+ latestConfiguration = index;
1330
+ break;
1331
+ }
1332
+ return latestConfiguration < 0 ? [...activities] : activities.filter((activity, index) => activity.name !== "vitehub.agent.configured" || index === latestConfiguration);
1333
+ }
1334
+ const answerDeliveryKinds = /* @__PURE__ */ new Set(["reply", "update"]);
1335
+ function deliveryContent(activity) {
1336
+ const content = activity.attributes["channel.effect.content"];
1337
+ return typeof content === "string" && content.trim() ? content : void 0;
1338
+ }
1339
+ function isDeliveredAnswer(activity) {
1340
+ return activity.kind === "delivery" && activity.status === "completed" && activity.attributes["channel.effect.supported"] !== false && !stringAttribute(activity.attributes, "channel.effect.skipped") && answerDeliveryKinds.has(stringAttribute(activity.attributes, "channel.effect.kind")?.toLocaleLowerCase() ?? "") && deliveryContent(activity) !== void 0;
1341
+ }
1342
+ function uniqueDeliveredAnswers(activities, bodies) {
1343
+ return activities.filter((activity) => {
1344
+ if (!isDeliveredAnswer(activity)) return false;
1345
+ const body = deliveryContent(activity).trim();
1346
+ if (bodies.has(body)) return false;
1347
+ bodies.add(body);
1348
+ return true;
1349
+ });
1350
+ }
1351
+ function deliveryReceipt(activity) {
1352
+ const truncatedAttributes = activity.truncatedAttributes?.filter((key) => key !== "channel.effect.content");
1353
+ return {
1354
+ ...activity,
1355
+ attributes: Object.fromEntries(Object.entries(activity.attributes).filter(([key]) => key !== "channel.effect.content")),
1356
+ ...truncatedAttributes ? {
1357
+ truncated: activity.truncated && truncatedAttributes.length > 0,
1358
+ truncatedAttributes
1359
+ } : {}
1360
+ };
1361
+ }
1362
+ function deliveryAnswer(activity) {
1363
+ return {
1364
+ ...activity,
1365
+ body: deliveryContent(activity),
1366
+ id: `${activity.id}:answer`,
1367
+ kind: "message",
1368
+ role: "assistant"
1369
+ };
1370
+ }
1371
+ //#endregion
1372
+ //#region src/console/runtime/components/invocation/agent-invocation.ts
1373
+ const InvocationPatchDiff = defineAsyncComponent(() => import("../console-lazy-views-DXnIkdyd.js").then((module) => module.PatchDiff));
1374
+ function statusLabel(status) {
1375
+ const labels = {
1376
+ cancelled: "Cancelled",
1377
+ completed: "Completed",
1378
+ failed: "Failed",
1379
+ pending: "Queued",
1380
+ running: "Working"
1381
+ };
1382
+ return Object.hasOwn(labels, status) ? labels[status] : "Unknown";
1383
+ }
1384
+ function compactCommand(command) {
1385
+ const normalized = command.replaceAll(/\s+/g, " ").trim();
1386
+ return normalized.length > 96 ? `${normalized.slice(0, 95)}…` : normalized;
1387
+ }
1388
+ function formatTokens(value) {
1389
+ if (value === void 0 || value <= 0) return;
1390
+ if (value < 1e3) return `${value} tokens`;
1391
+ return `${new Intl.NumberFormat("en", {
1392
+ maximumFractionDigits: 1,
1393
+ notation: "compact"
1394
+ }).format(value)} tokens`;
1395
+ }
1396
+ function formatDuration(startedAt, completedAt) {
1397
+ if (!startedAt || !completedAt) return;
1398
+ return consoleDuration(Date.parse(completedAt) - Date.parse(startedAt), { wholeSeconds: true });
1399
+ }
1400
+ /** Elapsed time of a live session as `m:ss`, or `h:mm:ss` after the first hour. */
1401
+ function formatElapsed(startedAt, now) {
1402
+ if (!startedAt || !now) return;
1403
+ const elapsed = now.getTime() - Date.parse(startedAt);
1404
+ if (!Number.isFinite(elapsed) || elapsed < 0) return;
1405
+ const seconds = Math.floor(elapsed / 1e3);
1406
+ const minutes = Math.floor(seconds / 60) % 60;
1407
+ const hours = Math.floor(seconds / 3600);
1408
+ const pad = (value) => String(value).padStart(2, "0");
1409
+ return hours ? `${hours}:${pad(minutes)}:${pad(seconds % 60)}` : `${minutes}:${pad(seconds % 60)}`;
1410
+ }
1411
+ function driverLabel(configuration) {
1412
+ const driver = configuration.driver;
1413
+ const model = driver?.model;
1414
+ return [
1415
+ driver?.kind,
1416
+ model?.provider ?? driver?.provider,
1417
+ model?.id
1418
+ ].filter(Boolean).join(" · ") || void 0;
1419
+ }
1420
+ function workspaceLabel(configuration) {
1421
+ const workspace = configuration.workspace;
1422
+ return workspace ? [workspace.name, workspace.mode].filter(Boolean).join(" · ") : void 0;
1423
+ }
1424
+ function markdown(value, className) {
1425
+ if (!value) return null;
1426
+ return h(Suspense, null, {
1427
+ default: () => h(Markdown, {
1428
+ class: className,
1429
+ value
1430
+ }),
1431
+ fallback: () => h("p", { class: className }, value)
1432
+ });
1433
+ }
1434
+ function workspaceArtifactPath(value) {
1435
+ const pathname = value.split(/[?#]/, 1)[0];
1436
+ const match = /^\/workspace\/[^/]+\/(.+)$/.exec(pathname);
1437
+ if (!match) return;
1438
+ const path = (() => {
1439
+ try {
1440
+ return decodeURIComponent(match[1]);
1441
+ } catch {
1442
+ return match[1];
1443
+ }
1444
+ })();
1445
+ if (!path || path.startsWith("/") || path.includes("\\") || path.split("/").some((part) => !part || part === "." || part === "..")) return;
1446
+ return path;
1447
+ }
1448
+ function renderFolderIcon() {
1449
+ return h("svg", {
1450
+ "aria-hidden": "true",
1451
+ fill: "none",
1452
+ viewBox: "0 0 24 24"
1453
+ }, [h("path", {
1454
+ d: "M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
1455
+ "stroke-linecap": "round",
1456
+ "stroke-linejoin": "round"
1457
+ })]);
1458
+ }
1459
+ function payloadPreview(value, text) {
1460
+ const compact = (typeof value === "string" ? value : text.replaceAll(/\s+/g, " ")).trim();
1461
+ return compact.length > 112 ? `${compact.slice(0, 111)}…` : compact || "Empty payload";
1462
+ }
1463
+ /**
1464
+ * A failed run, at the end of the thread where the run stopped (Vercel's failed build, Railway's diagnosis): what
1465
+ * failed, how to fix it, and the full diagnostic to copy. A plain element, not UAlert, so it looks the same in the
1466
+ * standalone Console and in hosts that register Nuxt UI. It is a record, not a live alert, so opening an old session
1467
+ * does not interrupt a screen reader.
1468
+ */
1469
+ const InvocationError = defineComponent({
1470
+ name: "InvocationError",
1471
+ props: { error: {
1472
+ required: true,
1473
+ type: Object
1474
+ } },
1475
+ setup(props) {
1476
+ const titleId = useId();
1477
+ const detailsId = useId();
1478
+ const detailsOpen = ref(false);
1479
+ const clipboard = useCopy();
1480
+ const copyStatus = computed(() => clipboard.copied.value ? "copied" : clipboard.failed.value ? "failed" : void 0);
1481
+ const copyError = () => clipboard.copy(() => payloadText(diagnosticPayload(props.error)));
1482
+ return () => {
1483
+ const error = props.error;
1484
+ const payload = diagnosticPayload(error);
1485
+ const docs = error.docs?.startsWith("https://") && isSafeExternalUrl(error.docs) ? error.docs : void 0;
1486
+ const hasDetails = Object.keys(payload).length > 1;
1487
+ const meta = [
1488
+ error.name && error.name !== "Error" ? error.name : void 0,
1489
+ error.code === void 0 ? void 0 : String(error.code),
1490
+ error.status ?? error.statusCode
1491
+ ].filter((value) => value !== void 0 && value !== "").join(" · ");
1492
+ return h("section", {
1493
+ class: "vh-invocation-error",
1494
+ "aria-labelledby": titleId,
1495
+ "data-slot": "invocation-error"
1496
+ }, [
1497
+ h("header", { class: "vh-invocation-error__header" }, [
1498
+ h("svg", {
1499
+ class: "vh-invocation-error__icon",
1500
+ "aria-hidden": "true",
1501
+ fill: "none",
1502
+ viewBox: "0 0 24 24"
1503
+ }, [h("circle", {
1504
+ cx: "12",
1505
+ cy: "12",
1506
+ r: "9"
1507
+ }), h("path", {
1508
+ d: "m15 9-6 6m0-6 6 6",
1509
+ "stroke-linecap": "round"
1510
+ })]),
1511
+ h("h3", {
1512
+ class: "vh-invocation-error__title",
1513
+ id: titleId
1514
+ }, "Run failed"),
1515
+ meta ? h("code", {
1516
+ class: "vh-invocation-error__code",
1517
+ title: meta
1518
+ }, meta) : null
1519
+ ]),
1520
+ h("p", { class: "vh-invocation-error__message" }, error.message.replace(/^\[[\w./-]+\]\s*/, "")),
1521
+ error.fix ? h("div", { class: "vh-invocation-error__fix" }, [h("p", { class: "vh-invocation-error__label" }, "How to fix"), h("p", error.fix)]) : null,
1522
+ h("div", { class: "vh-invocation-error__actions" }, [
1523
+ docs ? h("a", {
1524
+ class: "vh-invocation-error__action",
1525
+ href: docs,
1526
+ rel: "noreferrer",
1527
+ target: "_blank"
1528
+ }, ["Read the docs", h("svg", {
1529
+ "aria-hidden": "true",
1530
+ fill: "none",
1531
+ viewBox: "0 0 24 24"
1532
+ }, [h("path", {
1533
+ d: "M7 17 17 7M8 7h9v9",
1534
+ "stroke-linecap": "round",
1535
+ "stroke-linejoin": "round"
1536
+ })])]) : null,
1537
+ h("button", {
1538
+ class: "vh-invocation-error__action",
1539
+ type: "button",
1540
+ onClick: copyError
1541
+ }, [copyIcon(copyStatus.value === "copied"), copyStatus.value === "copied" ? "Copied" : copyStatus.value === "failed" ? "Copy failed" : "Copy error"]),
1542
+ hasDetails ? h("button", {
1543
+ "aria-controls": detailsId,
1544
+ "aria-expanded": detailsOpen.value ? "true" : "false",
1545
+ class: "vh-invocation-error__action",
1546
+ type: "button",
1547
+ onClick: () => detailsOpen.value = !detailsOpen.value
1548
+ }, [h("svg", {
1549
+ class: "vh-invocation-error__chevron",
1550
+ "aria-hidden": "true",
1551
+ fill: "none",
1552
+ viewBox: "0 0 24 24"
1553
+ }, [h("path", {
1554
+ d: "m9 6 6 6-6 6",
1555
+ "stroke-linecap": "round",
1556
+ "stroke-linejoin": "round"
1557
+ })]), "Details"]) : null,
1558
+ h("span", {
1559
+ "aria-live": "polite",
1560
+ "data-slot": "visually-hidden",
1561
+ role: "status"
1562
+ }, copyStatus.value === "copied" ? "Error copied" : copyStatus.value === "failed" ? "Could not copy the error" : "")
1563
+ ]),
1564
+ hasDetails ? h("pre", {
1565
+ class: "vh-invocation-error__details",
1566
+ hidden: !detailsOpen.value,
1567
+ id: detailsId
1568
+ }, payloadText(payload)) : null
1569
+ ]);
1570
+ };
1571
+ }
1572
+ });
1573
+ function invocationTimestamp(invocation) {
1574
+ const value = [invocation.startedAt, invocation.createdAt].find((value) => value && Number.isFinite(Date.parse(value)));
1575
+ if (!value) return null;
1576
+ const date = new Date(value);
1577
+ return h("time", {
1578
+ class: "vh-invocation-session__timestamp",
1579
+ datetime: date.toISOString(),
1580
+ title: date.toLocaleString("en", {
1581
+ dateStyle: "full",
1582
+ timeStyle: "long"
1583
+ })
1584
+ }, date.toLocaleString("en", {
1585
+ dateStyle: "medium",
1586
+ timeStyle: "short"
1587
+ }));
1588
+ }
1589
+ /** Every diagnostic field of a failed run, for the details view and the copied error. */
1590
+ function diagnosticPayload(error) {
1591
+ const details = { message: error.message };
1592
+ if (error.fix) details.fix = error.fix;
1593
+ if (error.docs) details.docs = error.docs;
1594
+ if (error.sources?.length) details.sources = error.sources;
1595
+ if (error.code !== void 0) details.code = error.code;
1596
+ if (error.requestId) details.requestId = error.requestId;
1597
+ if (error.status !== void 0) details.status = error.status;
1598
+ if (error.statusCode !== void 0) details.statusCode = error.statusCode;
1599
+ if (error.details) details.details = error.details;
1600
+ if (error.cause) details.cause = error.cause;
1601
+ if (error.errors?.length) details.errors = error.errors;
1602
+ return details;
1603
+ }
1604
+ function jsonValueLabel(value) {
1605
+ if (typeof value === "string") return JSON.stringify(value);
1606
+ if (value === null) return "null";
1607
+ if (typeof value === "object") return Array.isArray(value) ? `Array(${value.length})` : "Object";
1608
+ return String(value);
1609
+ }
1610
+ function matchingPayloadRows(value, query, path = "$", result = {
1611
+ rows: [],
1612
+ truncated: false
1613
+ }, depth = 0) {
1614
+ const label = jsonValueLabel(value);
1615
+ if (`${path} ${label}`.toLocaleLowerCase().includes(query)) {
1616
+ if (result.rows.length >= 500) {
1617
+ result.truncated = true;
1618
+ return result;
1619
+ }
1620
+ result.rows.push({
1621
+ path,
1622
+ value: label
1623
+ });
1624
+ }
1625
+ if (typeof value !== "object" || value === null || depth >= 12) return result;
1626
+ for (const [key, item] of Object.entries(value)) {
1627
+ matchingPayloadRows(item, query, Array.isArray(value) ? `${path}[${key}]` : `${path}.${key}`, result, depth + 1);
1628
+ if (result.truncated) break;
1629
+ }
1630
+ return result;
1631
+ }
1632
+ function renderPayloadTree(value, label, depth = 0, budget = { remaining: 500 }) {
1633
+ budget.remaining--;
1634
+ if (budget.remaining < 0) return h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden");
1635
+ if (depth >= 12 && typeof value === "object" && value !== null) return h("li", { class: "vh-invocation-payload__leaf" }, [label ? h("code", { class: "vh-invocation-payload__key" }, label) : null, h("code", { class: "vh-invocation-payload__value" }, "Nested content hidden")]);
1636
+ if (typeof value !== "object" || value === null) return h("li", { class: "vh-invocation-payload__leaf" }, [label ? h("code", { class: "vh-invocation-payload__key" }, label) : null, h("code", {
1637
+ class: "vh-invocation-payload__value",
1638
+ "data-type": value === null ? "null" : typeof value
1639
+ }, jsonValueLabel(value))]);
1640
+ const entries = Object.entries(value);
1641
+ const children = [];
1642
+ for (let index = 0; index < entries.length; index++) {
1643
+ if (budget.remaining <= 0) break;
1644
+ if (budget.remaining === 1) {
1645
+ budget.remaining--;
1646
+ children.push(h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden"));
1647
+ break;
1648
+ }
1649
+ const [key, item] = entries[index];
1650
+ children.push(renderPayloadTree(item, key, depth + 1, budget));
1651
+ }
1652
+ return h("li", { class: "vh-invocation-payload__branch" }, [h("details", { open: depth < 1 }, [h("summary", [label ? h("code", { class: "vh-invocation-payload__key" }, label) : null, h("span", Array.isArray(value) ? `Array(${entries.length})` : `{${entries.length}}`)]), h("ul", children)])]);
1653
+ }
1654
+ const InvocationPayload = defineComponent({
1655
+ name: "InvocationPayload",
1656
+ props: {
1657
+ label: {
1658
+ required: true,
1659
+ type: String
1660
+ },
1661
+ value: { required: true }
1662
+ },
1663
+ setup(props) {
1664
+ const mode = ref("tree");
1665
+ const query = ref("");
1666
+ const open = ref(false);
1667
+ const { copied, copy, failed: copyFailed } = useCopy({ duration: 1600 });
1668
+ const text = computed(() => payloadText(props.value));
1669
+ const normalized = computed(() => {
1670
+ if (typeof props.value !== "object" || props.value === null) return props.value;
1671
+ try {
1672
+ return JSON.parse(text.value);
1673
+ } catch {
1674
+ return text.value;
1675
+ }
1676
+ });
1677
+ const structured = computed(() => typeof normalized.value === "object" && normalized.value !== null);
1678
+ const matches = computed(() => query.value ? matchingPayloadRows(normalized.value, query.value.toLocaleLowerCase()) : {
1679
+ rows: [],
1680
+ truncated: false
1681
+ });
1682
+ const rawMatches = computed(() => {
1683
+ if (!query.value) return text.value;
1684
+ const normalizedQuery = query.value.toLocaleLowerCase();
1685
+ return text.value.split("\n").filter((line) => line.toLocaleLowerCase().includes(normalizedQuery)).join("\n");
1686
+ });
1687
+ const copyPayload = () => copy(text.value);
1688
+ return () => h("details", {
1689
+ class: "vh-invocation-event__payload",
1690
+ onToggle: (event) => {
1691
+ open.value = event.currentTarget.open;
1692
+ },
1693
+ open: open.value
1694
+ }, [h("summary", [
1695
+ h("strong", props.label),
1696
+ h("code", payloadPreview(props.value, text.value)),
1697
+ renderDisclosureChevron("vh-invocation-event__disclosure")
1698
+ ]), open.value ? h("div", { class: "vh-invocation-payload__content" }, [
1699
+ h("div", { class: "vh-invocation-payload__toolbar" }, [
1700
+ structured.value ? h("div", {
1701
+ "aria-label": `${props.label} view`,
1702
+ class: "vh-invocation-payload__modes",
1703
+ role: "group"
1704
+ }, [h("button", {
1705
+ "aria-pressed": mode.value === "tree",
1706
+ onClick: () => {
1707
+ mode.value = "tree";
1708
+ },
1709
+ type: "button"
1710
+ }, "Tree"), h("button", {
1711
+ "aria-pressed": mode.value === "raw",
1712
+ onClick: () => {
1713
+ mode.value = "raw";
1714
+ },
1715
+ type: "button"
1716
+ }, "Raw")]) : null,
1717
+ structured.value || text.value.length > 240 ? h("label", { class: "vh-invocation-payload__search" }, [h("span", { "data-slot": "visually-hidden" }, `Search ${props.label}`), h("input", {
1718
+ onInput: (event) => {
1719
+ query.value = event.target.value;
1720
+ },
1721
+ placeholder: "Search payload",
1722
+ type: "search",
1723
+ value: query.value
1724
+ })]) : null,
1725
+ h("button", {
1726
+ class: "vh-invocation-payload__copy",
1727
+ onClick: () => void copyPayload(),
1728
+ type: "button"
1729
+ }, copied.value ? "Copied" : "Copy")
1730
+ ]),
1731
+ h("span", {
1732
+ "aria-live": "polite",
1733
+ "data-slot": "visually-hidden",
1734
+ role: "status"
1735
+ }, copyFailed.value ? `${props.label} could not be copied` : copied.value ? `${props.label} copied` : ""),
1736
+ query.value && structured.value && mode.value === "tree" ? matches.value.rows.length ? h("ol", { class: "vh-invocation-payload__matches" }, [...matches.value.rows.map((match) => h("li", [h("code", match.path), h("code", match.value)])), matches.value.truncated ? h("li", "More matches hidden. Refine your search.") : null]) : h("p", { class: "vh-invocation-payload__empty" }, "No matching fields") : structured.value && mode.value === "tree" ? h("ul", { class: "vh-invocation-payload__tree" }, [renderPayloadTree(normalized.value)]) : rawMatches.value ? h("pre", rawMatches.value) : h("p", { class: "vh-invocation-payload__empty" }, "No matching content")
1737
+ ]) : null]);
1738
+ }
1739
+ });
1740
+ const messageRoleLabels = {
1741
+ assistant: "Assistant",
1742
+ system: "System",
1743
+ tool: "Tool",
1744
+ user: "You"
1745
+ };
1746
+ function renderMessage(activity, expanded, toggleExpanded, messageRendering, insideWork = false) {
1747
+ const body = activity.body ?? "";
1748
+ const collapsible = activity.role === "user" && (body.length > 720 || body.split(/\r?\n/).length > 12);
1749
+ const isExpanded = expanded.has(activity.id);
1750
+ const sentAt = messageTimestamp(activity, messageRendering.now, messageRendering.mounted, activity.id === messageRendering.promptId ? messageRendering.sentAt : void 0);
1751
+ const copyStatus = messageRendering.copiedId === activity.id ? messageRendering.copyStatus : void 0;
1752
+ const commentary = activity.attributes["message.phase"] === "commentary";
1753
+ const progressNote = insideWork && activity.role === "assistant";
1754
+ const hasMessageMeta = (activity.role === "user" || activity.role === "assistant") && !progressNote;
1755
+ const author = activity.id === messageRendering.promptId ? messageRendering.author : void 0;
1756
+ const roleLabel = author ?? messageRoleLabels[activity.role ?? "assistant"];
1757
+ return h("li", {
1758
+ class: "vh-invocation-message",
1759
+ "data-phase": commentary ? "commentary" : void 0,
1760
+ "data-role": activity.role,
1761
+ key: activity.id
1762
+ }, [
1763
+ progressNote ? h("span", { "data-slot": "visually-hidden" }, `${roleLabel} message`) : h("span", { class: "vh-invocation-message__role" }, roleLabel),
1764
+ activity.attributes["input.mode"] === "steer" ? h("small", { class: "vh-invocation-message__method" }, "Steered") : null,
1765
+ h("div", {
1766
+ class: "vh-invocation-message__content",
1767
+ "data-collapsed": collapsible && !isExpanded ? "true" : void 0
1768
+ }, [markdown(body, "vh-invocation-message__body")]),
1769
+ renderTruncationNotice(activity),
1770
+ collapsible ? h("button", {
1771
+ "aria-expanded": String(isExpanded),
1772
+ class: "vh-invocation-message__more",
1773
+ onClick: () => toggleExpanded(activity.id),
1774
+ type: "button"
1775
+ }, isExpanded ? "Show less" : "Read more") : null,
1776
+ hasMessageMeta ? h("footer", { class: "vh-invocation-message__meta" }, [
1777
+ author ? h("span", { class: "vh-invocation-message__author" }, author) : null,
1778
+ sentAt ? h("time", {
1779
+ datetime: sentAt.value,
1780
+ title: sentAt.title
1781
+ }, sentAt.short) : null,
1782
+ h("button", {
1783
+ "aria-label": copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
1784
+ class: "vh-invocation-message__copy",
1785
+ onClick: () => messageRendering.copy(activity),
1786
+ title: copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
1787
+ type: "button"
1788
+ }, copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : [renderCopyIcon()]),
1789
+ copyStatus ? h("span", {
1790
+ "data-slot": "visually-hidden",
1791
+ "aria-live": "polite",
1792
+ role: "status"
1793
+ }, copyStatus === "copied" ? "Message copied" : "Message could not be copied") : null
1794
+ ]) : null
1795
+ ]);
1796
+ }
1797
+ function messageTimestamp(activity, now, mounted, sentAt) {
1798
+ const value = sentAt ?? stringAttribute(activity.attributes, "channel.sentAt") ?? stringAttribute(activity.attributes, "input.sentAt") ?? activity.startedAt;
1799
+ if (!value || !Number.isFinite(Date.parse(value))) return;
1800
+ const date = new Date(value);
1801
+ if (!mounted) return {
1802
+ short: date.toISOString(),
1803
+ title: date.toISOString(),
1804
+ value
1805
+ };
1806
+ const time = new Intl.DateTimeFormat("en", {
1807
+ hour: "numeric",
1808
+ minute: "2-digit"
1809
+ }).format(date);
1810
+ const startOfToday = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
1811
+ const startOfMessageDay = new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime();
1812
+ const dayDifference = Math.round((startOfToday - startOfMessageDay) / 864e5);
1813
+ const dateOptions = {
1814
+ day: "numeric",
1815
+ month: "numeric"
1816
+ };
1817
+ if (date.getFullYear() !== now.getFullYear()) dateOptions.year = "numeric";
1818
+ return {
1819
+ short: dayDifference <= 0 ? time : dayDifference === 1 ? `Yesterday at ${time}` : `${new Intl.DateTimeFormat("en", dateOptions).format(date)} ${time}`,
1820
+ title: consoleDateTime(value),
1821
+ value
1822
+ };
1823
+ }
1824
+ function renderCopyIcon() {
1825
+ return h("svg", {
1826
+ "aria-hidden": "true",
1827
+ fill: "none",
1828
+ viewBox: "0 0 24 24"
1829
+ }, [h("rect", {
1830
+ height: "13",
1831
+ rx: "2",
1832
+ width: "13",
1833
+ x: "8",
1834
+ y: "8"
1835
+ }), h("path", { d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3" })]);
1836
+ }
1837
+ function activityIcon(activity) {
1838
+ const name = String(activity.attributes["tool.name"] ?? "").toLocaleLowerCase();
1839
+ if (activity.command) return "command";
1840
+ if (activity.kind === "error") return "alert";
1841
+ if (activity.kind === "change") return "change";
1842
+ if (name.includes("read") || name.includes("image") || name.includes("view")) return "eye";
1843
+ if (name.includes("search") || name.includes("find")) return "search";
1844
+ if (activity.kind === "reasoning" || activity.kind === "model") return "brain";
1845
+ if (activity.kind === "run") return "activity";
1846
+ if (activity.kind === "approval") return "approval";
1847
+ if (activity.kind === "delivery") {
1848
+ const delivery = String(activity.attributes["channel.effect.kind"] ?? "").toLocaleLowerCase();
1849
+ if (delivery === "reaction") return "eye";
1850
+ if ([
1851
+ "reply",
1852
+ "status",
1853
+ "update"
1854
+ ].includes(delivery)) return "message";
1855
+ return "action";
1856
+ }
1857
+ if (activity.kind === "action") return "check";
1858
+ if (activity.kind === "preparation") {
1859
+ const title = invocationActivityTitle(activity).toLocaleLowerCase();
1860
+ if (title.includes("pull request")) return "pull-request";
1861
+ if (title.includes("github")) return "github";
1862
+ if (title.includes("workspace")) return "folder";
1863
+ if (title.includes("agent")) return "cpu";
1864
+ if (title.includes("prompt")) return "message";
1865
+ return "check";
1866
+ }
1867
+ if (activity.kind === "system") return "cpu";
1868
+ return activity.kind === "tool" ? "tool" : "activity";
1869
+ }
1870
+ const activityIconPaths = {
1871
+ activity: ["M12 12h.01"],
1872
+ alert: [
1873
+ "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20",
1874
+ "M12 8v4",
1875
+ "M12 16h.01"
1876
+ ],
1877
+ action: ["M13 2 3 14h9l-1 8 10-12h-9z"],
1878
+ approval: [
1879
+ "M12 3v12",
1880
+ "m8 11 4 4 4-4",
1881
+ "M5 21h14"
1882
+ ],
1883
+ brain: [
1884
+ "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",
1885
+ "M17.997 5.125a4 4 0 0 1 2.526 5.77",
1886
+ "M18 18a4 4 0 0 0 2-7.464",
1887
+ "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",
1888
+ "M6 18a4 4 0 0 1-2-7.464",
1889
+ "M6.003 5.125a4 4 0 0 0-2.526 5.77"
1890
+ ],
1891
+ change: ["M12 20h9", "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],
1892
+ check: ["m5 12 4 4L19 6"],
1893
+ command: ["m4 17 6-6-6-6", "M12 19h8"],
1894
+ cpu: [
1895
+ "M9 9h6v6H9z",
1896
+ "M9 2v3",
1897
+ "M15 2v3",
1898
+ "M9 19v3",
1899
+ "M15 19v3",
1900
+ "M2 9h3",
1901
+ "M2 15h3",
1902
+ "M19 9h3",
1903
+ "M19 15h3",
1904
+ "M5 5h14v14H5z"
1905
+ ],
1906
+ 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"],
1907
+ folder: ["M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"],
1908
+ 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"],
1909
+ 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"],
1910
+ message: ["M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z"],
1911
+ "pull-request": [
1912
+ "M6 9v12",
1913
+ "M18 15V8a2 2 0 0 0-2-2h-3",
1914
+ "M6 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6",
1915
+ "M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6"
1916
+ ],
1917
+ search: ["m21 21-4.35-4.35", "M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16"],
1918
+ 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"]
1919
+ };
1920
+ function renderActivityIcon(activity) {
1921
+ const declaredIcon = activity.toolDisplay?.icon;
1922
+ const Icon = declaredIcon ? getCurrentInstance()?.appContext.components.UIcon : void 0;
1923
+ return h("span", {
1924
+ class: "vh-invocation-event__icon",
1925
+ "data-failed": activity.status === "failed" ? "true" : void 0,
1926
+ "data-icon": Icon ? declaredIcon : activityIcon(activity),
1927
+ "aria-hidden": "true"
1928
+ }, [Icon ? h(Icon, { name: declaredIcon }) : renderActivityIconSvg(activityIcon(activity)), activity.status === "failed" ? h("svg", {
1929
+ class: "vh-invocation-event__failure-icon",
1930
+ fill: "currentColor",
1931
+ viewBox: "0 0 24 24"
1932
+ }, [h("path", {
1933
+ "clip-rule": "evenodd",
1934
+ d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2V7Zm0 9h2v2h-2v-2Z",
1935
+ "fill-rule": "evenodd",
1936
+ stroke: "none"
1937
+ })]) : null]);
1938
+ }
1939
+ function renderNamedActivityIcon(icon) {
1940
+ return h("span", {
1941
+ class: "vh-invocation-event__icon",
1942
+ "data-icon": icon,
1943
+ "aria-hidden": "true"
1944
+ }, [renderActivityIconSvg(icon)]);
1945
+ }
1946
+ function renderActivityIconSvg(icon) {
1947
+ return h("svg", {
1948
+ fill: "none",
1949
+ viewBox: "0 0 24 24"
1950
+ }, activityIconPaths[icon].map((path) => h("path", {
1951
+ d: path,
1952
+ "stroke-linecap": "round",
1953
+ "stroke-linejoin": "round"
1954
+ })));
1955
+ }
1956
+ function imageViewPath(activity) {
1957
+ const name = String(activity.attributes["tool.name"] ?? "").trim().toLocaleLowerCase();
1958
+ if (name !== "image view" && name !== "view image" && name !== "view_image") return;
1959
+ for (const key of ["tool.input", "tool.output"]) {
1960
+ const payload = activity.attributes[key];
1961
+ if (typeof payload !== "object" || payload === null || Array.isArray(payload)) continue;
1962
+ const item = "item" in payload && typeof payload.item === "object" && payload.item !== null && !Array.isArray(payload.item) ? payload.item : payload;
1963
+ if ("path" in item && typeof item.path === "string" && item.path) return item.path;
1964
+ if (!("commandActions" in item) || !Array.isArray(item.commandActions)) continue;
1965
+ for (const value of item.commandActions) if (typeof value === "object" && value !== null && !Array.isArray(value) && "path" in value && typeof value.path === "string" && value.path) return value.path;
1966
+ }
1967
+ return activity.preview?.startsWith("/") ? activity.preview : void 0;
1968
+ }
1969
+ function imageViewDetails(activity, path) {
1970
+ const evidence = { path };
1971
+ if (activity.attributes["tool.input"] !== void 0) evidence.input = activity.attributes["tool.input"];
1972
+ if (activity.attributes["tool.output"] !== void 0) evidence.output = activity.attributes["tool.output"];
1973
+ if (activity.attributes["tool.error"] !== void 0) evidence.error = activity.attributes["tool.error"];
1974
+ return h("section", {
1975
+ class: "vh-invocation-image-details",
1976
+ "aria-label": "Image view details"
1977
+ }, [
1978
+ h("strong", "Path"),
1979
+ h("code", path),
1980
+ h("strong", "Raw details"),
1981
+ h("pre", payloadText(evidence))
1982
+ ]);
1983
+ }
1984
+ function renderEvent(activity, inspect, openActivities, setActivityOpen) {
1985
+ const command = activity.command;
1986
+ const viewedImagePath = imageViewPath(activity);
1987
+ const tokenLabel = activity.kind === "reasoning" || activity.kind === "model" ? formatTokens(activity.reasoningTokens) : void 0;
1988
+ const suffix = viewedImagePath?.split("/").filter(Boolean).at(-1) ?? agentConfigurationSummary(activity) ?? channelDeliverySummary(activity) ?? (activity.preview ? compactCommand(activity.preview) : tokenLabel);
1989
+ const hasPayloads = activity.kind === "tool" && (activity.attributes["tool.input"] !== void 0 || activity.attributes["tool.output"] !== void 0 || activity.attributes["tool.error"] !== void 0);
1990
+ const capturedDeliveryBody = activity.kind === "delivery" ? activity.attributes["channel.effect.content"] : void 0;
1991
+ const deliveryBody = typeof capturedDeliveryBody === "string" && capturedDeliveryBody.trim() ? capturedDeliveryBody : void 0;
1992
+ const visibleDelivery = Boolean(deliveryBody);
1993
+ const deliveryFailure = activity.kind === "delivery" ? stringAttribute(activity.attributes, "error.message") : void 0;
1994
+ const hasDetails = Boolean(deliveryFailure || activity.truncated) || !visibleDelivery && (activity.patches.length > 0 || Boolean(command || hasPayloads || activity.body || activity.truncated));
1995
+ const skillReads = activity.skills ?? (activity.skill ? [activity.skill] : []);
1996
+ const inspectTarget = skillReads.length === 1 ? "workspace" : activity.attributes["vitehub.inspect.target"] ?? (activity.name === "vitehub.agent.configured" ? "agent" : void 0);
1997
+ const inspectPath = activity.skill?.path;
1998
+ const inspectable = inspectTarget === "agent" || inspectTarget === "workspace";
1999
+ const title = skillReads.length ? h("span", { class: "vh-invocation-event__title" }, skillReads.flatMap((skill, index) => [index ? h("span", { "aria-hidden": "true" }, " · ") : null, h("button", {
2000
+ class: "vh-invocation-event__title vh-invocation-event__title-link",
2001
+ onClick: (event) => {
2002
+ event.preventDefault();
2003
+ event.stopPropagation();
2004
+ inspect("workspace", skill.path);
2005
+ },
2006
+ type: "button"
2007
+ }, `Read ${skill.name} skill`)])) : h("span", { class: "vh-invocation-event__title" }, viewedImagePath ? "View image" : invocationActivityTitle(activity));
2008
+ const summaryContent = [
2009
+ activity.name === "vitehub.agent.configured" ? frameworkMark() : activity.kind === "delivery" ? h("span", {
2010
+ class: "vh-invocation-event__icon",
2011
+ "data-icon": "channel"
2012
+ }, [channelIcon(activityChannel(activity))]) : renderActivityIcon(activity),
2013
+ title,
2014
+ activity.status === "failed" ? h("span", { "data-slot": "visually-hidden" }, "Failed") : null,
2015
+ suffix ? h("code", { class: "vh-invocation-event__suffix" }, suffix) : null,
2016
+ hasDetails ? renderDisclosureChevron("vh-invocation-event__disclosure") : null
2017
+ ];
2018
+ const summary = inspectable && !hasDetails ? h("button", {
2019
+ class: "vh-invocation-event__summary",
2020
+ onClick: () => inspect(inspectTarget, inspectPath),
2021
+ type: "button"
2022
+ }, summaryContent) : h(hasDetails ? "summary" : "div", { class: "vh-invocation-event__summary" }, summaryContent);
2023
+ return h("li", {
2024
+ class: "vh-invocation-activity",
2025
+ "data-activity-id": activity.id,
2026
+ "data-inspectable": inspectable ? "true" : void 0,
2027
+ "data-kind": activity.kind,
2028
+ "data-status": activity.status,
2029
+ key: activity.id
2030
+ }, [h(hasDetails ? "details" : "div", {
2031
+ class: "vh-invocation-event",
2032
+ open: hasDetails ? openActivities.has(activity.id) : void 0,
2033
+ onToggle: hasDetails ? (event) => setActivityOpen(activity.id, event.currentTarget.open) : void 0
2034
+ }, [summary, hasDetails ? h("div", { class: "vh-invocation-event__details" }, [
2035
+ deliveryFailure ? h("p", { class: "vh-invocation-event__failure" }, deliveryFailure) : null,
2036
+ activity.patches.length ? openActivities.has(activity.id) ? h("div", { class: "vh-invocation-event__diffs" }, activity.patches.map((patch, index) => h(InvocationPatchDiff, {
2037
+ key: index,
2038
+ patch
2039
+ }))) : null : command ? h("div", { class: "vh-invocation-command" }, [
2040
+ h("div", { class: "vh-invocation-command__bar" }, [h("code", command.command), command.exitCode !== void 0 ? h("span", { "data-failed": command.exitCode !== 0 }, `exit ${command.exitCode}`) : null]),
2041
+ command.cwd ? h("div", { class: "vh-invocation-command__cwd" }, command.cwd) : null,
2042
+ command.output ? h("pre", terminalText(command.output)) : null,
2043
+ renderCommandError(activity.attributes["tool.error"])
2044
+ ]) : viewedImagePath ? imageViewDetails(activity, viewedImagePath) : hasPayloads ? h("div", { class: "vh-invocation-event__payloads" }, [
2045
+ renderEventPayload("Input", activity.attributes["tool.input"]),
2046
+ renderEventPayload("Output", activity.attributes["tool.output"]),
2047
+ renderEventPayload("Error", activity.attributes["tool.error"])
2048
+ ].filter(Boolean)) : activity.kind !== "delivery" && activity.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(activity.body, "vh-invocation-event__markdown")]) : null,
2049
+ renderTruncationNotice(activity),
2050
+ inspectable ? h("button", {
2051
+ class: "vh-invocation-event__inspect",
2052
+ onClick: () => inspect(inspectTarget, inspectPath),
2053
+ type: "button"
2054
+ }, `Inspect ${inspectTarget}`) : null
2055
+ ]) : null]), deliveryBody ? h("div", { class: "vh-invocation-delivery__body" }, [markdown(deliveryBody, "vh-invocation-event__markdown")]) : null]);
2056
+ }
2057
+ function renderTruncationNotice(activity, tag = "p") {
2058
+ const notice = invocationTruncationNotice(activity);
2059
+ return notice ? h(tag, { class: "vh-invocation-event__notice" }, notice) : null;
2060
+ }
2061
+ function renderEventPayload(label, value) {
2062
+ if (value === void 0) return null;
2063
+ return h(InvocationPayload, {
2064
+ label,
2065
+ value
2066
+ });
2067
+ }
2068
+ function renderCommandError(value) {
2069
+ if (value === void 0) return null;
2070
+ let text;
2071
+ if (typeof value === "string") text = value;
2072
+ else try {
2073
+ text = Object.prototype.toString.call(value) === "[object String]" ? String(value) : payloadText(value);
2074
+ } catch {
2075
+ try {
2076
+ text = payloadText(value);
2077
+ } catch {
2078
+ text = "[Unable to display payload]";
2079
+ }
2080
+ }
2081
+ return h("section", { class: "vh-invocation-event__payload" }, [h("strong", "Error"), h("pre", text)]);
2082
+ }
2083
+ function activityDetail(activity) {
2084
+ return invocationActivityDetail(activity);
2085
+ }
2086
+ function renderPreparationAction(activity, inspect) {
2087
+ const target = activity.attributes["vitehub.inspect.target"];
2088
+ if (target !== "workspace" && target !== "agent") return;
2089
+ return h("button", {
2090
+ "aria-label": target === "workspace" ? "Open Workspace" : "Open Invocation details",
2091
+ class: "vh-invocation-preparation__action",
2092
+ onClick: () => inspect(target),
2093
+ type: "button"
2094
+ }, [renderNamedActivityIcon(target === "workspace" ? "folder" : "cpu")]);
2095
+ }
2096
+ function renderPreparationContext(invocation, url) {
2097
+ const repository = invocation.annotations?.["github.repository"];
2098
+ const pullRequest = invocation.annotations?.["github.pullRequest"];
2099
+ if (typeof repository !== "string" || typeof pullRequest !== "number" && typeof pullRequest !== "string") return h("code", agentInvocationContext(invocation));
2100
+ return h("span", { class: "vh-invocation-preparation__context" }, [
2101
+ h("code", repository),
2102
+ h("span", { "aria-hidden": "true" }, "·"),
2103
+ url ? h("a", {
2104
+ href: url,
2105
+ onClick: (event) => event.stopPropagation(),
2106
+ rel: "noreferrer",
2107
+ target: "_blank"
2108
+ }, `PR #${pullRequest}`) : h("code", `PR #${pullRequest}`)
2109
+ ]);
2110
+ }
2111
+ function renderPreparationDetail(activity, url) {
2112
+ const detail = activityDetail(activity);
2113
+ if (!detail) return;
2114
+ const compact = compactCommand(detail);
2115
+ if (!url || !invocationActivityTitle(activity).toLocaleLowerCase().includes("pull request")) return h("code", compact);
2116
+ const match = compact.match(/^(.*?)\s*·\s*(PR #\d+)$/);
2117
+ if (!match) return h("code", compact);
2118
+ return h("span", { class: "vh-invocation-preparation__context" }, [
2119
+ h("code", match[1]),
2120
+ h("span", { "aria-hidden": "true" }, "·"),
2121
+ h("a", {
2122
+ href: url,
2123
+ rel: "noreferrer",
2124
+ target: "_blank"
2125
+ }, match[2])
2126
+ ]);
2127
+ }
2128
+ function renderDisclosureChevron(className) {
2129
+ return h("svg", {
2130
+ "aria-hidden": "true",
2131
+ class: className,
2132
+ fill: "none",
2133
+ viewBox: "0 0 24 24"
2134
+ }, [h("path", {
2135
+ d: "m6 9 6 6 6-6",
2136
+ stroke: "currentColor",
2137
+ "stroke-linecap": "round",
2138
+ "stroke-linejoin": "round",
2139
+ "stroke-width": "2"
2140
+ })]);
2141
+ }
2142
+ function frameworkMark() {
2143
+ return h("svg", {
2144
+ viewBox: "0 0 20 18",
2145
+ fill: "currentColor",
2146
+ "aria-hidden": "true",
2147
+ class: "vh-invocation-framework-mark"
2148
+ }, [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" })]);
2149
+ }
2150
+ function activityChannel(activity) {
2151
+ const channel = stringAttribute(activity.attributes, "channel.delivery.provider") ?? stringAttribute(activity.attributes, "channel.provider") ?? stringAttribute(activity.attributes, "channel.id") ?? "chat";
2152
+ return channel.toLocaleLowerCase() === "msteams" ? "teams" : channel;
2153
+ }
2154
+ function renderPreparationGroup(activities, invocation, inspect) {
2155
+ const url = agentInvocationExternalUrl(invocation);
2156
+ const failedActivity = activities.find((activity) => activity.status === "failed");
2157
+ return h("li", {
2158
+ class: "vh-invocation-preparation",
2159
+ key: `preparation:${activities[0]?.id}`
2160
+ }, [h("details", { class: "vh-invocation-preparation__details" }, [h("summary", { class: "vh-invocation-preparation__summary" }, [
2161
+ failedActivity ? renderActivityIcon(failedActivity) : renderNamedActivityIcon("folder"),
2162
+ h("strong", failedActivity ? "Session preparation failed" : "Prepared workspace"),
2163
+ failedActivity ? renderPreparationContext(invocation, url) : null,
2164
+ failedActivity ? h("small", `${activities.length} steps`) : null,
2165
+ renderDisclosureChevron("vh-invocation-preparation__disclosure")
2166
+ ]), h("ol", { class: "vh-invocation-preparation__steps" }, activities.map((activity) => renderPreparationStep(activity, url, inspect)))])]);
2167
+ }
2168
+ function renderPreparationStep(activity, url, inspect) {
2169
+ return h("li", {
2170
+ class: "vh-invocation-preparation__step",
2171
+ "data-activity-id": activity.id,
2172
+ "data-kind": "preparation",
2173
+ "data-status": activity.status,
2174
+ key: activity.id
2175
+ }, [
2176
+ renderActivityIcon(activity),
2177
+ h("strong", invocationActivityTitle(activity)),
2178
+ renderPreparationDetail(activity, url),
2179
+ renderPreparationAction(activity, inspect),
2180
+ activity.body ? h("p", { class: "vh-invocation-preparation__body" }, activity.body) : null,
2181
+ renderTruncationNotice(activity)
2182
+ ]);
2183
+ }
2184
+ function activityGroup(activity) {
2185
+ if (!activity) return;
2186
+ if (activity.name === "vitehub.agent.configured") return "agent-configuration-lifecycle";
2187
+ if (/^agent\.capability\.(?:input|output|configure|prepare|resolve|close)$/.test(activity.name)) return "agent-capability-lifecycle";
2188
+ return stringAttribute(activity.attributes, "vitehub.activity.group");
2189
+ }
2190
+ function renderCapabilityGroup(activities, inspect, openActivities, setActivityOpen) {
2191
+ const capabilities = [...new Set(activities.flatMap((activity) => {
2192
+ const id = stringAttribute(activity.attributes, "agent.capability.id");
2193
+ return id ? [id] : [];
2194
+ }))];
2195
+ const failures = activities.filter((activity) => activity.status === "failed").length;
2196
+ const phases = new Set(activities.map((activity) => activity.name.split(".").at(-1)));
2197
+ const summary = capabilities.length ? `${capabilities.length} ${capabilities.length === 1 ? "capability" : "capabilities"}` : `${activities.length} ${activities.length === 1 ? "event" : "events"}`;
2198
+ return h("li", {
2199
+ class: "vh-invocation-capabilities",
2200
+ key: `capabilities:${activities[0]?.id}`
2201
+ }, [h("details", { class: "vh-invocation-capabilities__details" }, [h("summary", { class: "vh-invocation-capabilities__summary" }, [
2202
+ renderNamedActivityIcon("tool"),
2203
+ h("span", { class: "vh-invocation-event__title" }, failures ? `Capability activity failed · ${summary}` : !capabilities.length ? `Capability activity · ${summary}` : [...phases].every((phase) => phase === "close") ? `Closed ${summary}` : [...phases].every((phase) => phase === "output" || phase === "close") ? `Finalized ${summary}` : `Prepared ${summary}`),
2204
+ renderDisclosureChevron("vh-invocation-capabilities__disclosure")
2205
+ ]), h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map((activity) => renderEvent(activity, inspect, openActivities, setActivityOpen)))])]);
2206
+ }
2207
+ function renderAgentConfigurationGroup(activities, inspect) {
2208
+ const activity = activities[0];
2209
+ return h("li", {
2210
+ class: "vh-invocation-capabilities",
2211
+ "data-activity-id": activity.id,
2212
+ "data-kind": activity.kind,
2213
+ "data-status": activity.status,
2214
+ key: `configuration:${activity.id}`
2215
+ }, [h("details", { class: "vh-invocation-capabilities__details" }, [h("summary", { class: "vh-invocation-capabilities__summary" }, [
2216
+ h("span", {
2217
+ "aria-hidden": "true",
2218
+ class: "vh-invocation-event__icon"
2219
+ }, [frameworkMark()]),
2220
+ h("span", { class: "vh-invocation-event__title" }, invocationActivityTitle(activity)),
2221
+ agentConfigurationSummary(activity) ? h("code", { class: "vh-invocation-event__suffix" }, agentConfigurationSummary(activity)) : null,
2222
+ renderDisclosureChevron("vh-invocation-capabilities__disclosure")
2223
+ ]), h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map((item) => h("li", { key: item.id }, [
2224
+ item.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(item.body, "vh-invocation-event__markdown")]) : null,
2225
+ renderTruncationNotice(item),
2226
+ h("button", {
2227
+ class: "vh-invocation-event__inspect",
2228
+ onClick: () => inspect("agent"),
2229
+ type: "button"
2230
+ }, "Inspect agent")
2231
+ ])))])]);
2232
+ }
2233
+ function labelStyle(color) {
2234
+ const normalized = color?.replace(/^#/, "");
2235
+ if (!normalized || !/^[\da-f]{6}$/i.test(normalized)) return {};
2236
+ const red = Number.parseInt(normalized.slice(0, 2), 16);
2237
+ const green = Number.parseInt(normalized.slice(2, 4), 16);
2238
+ const blue = Number.parseInt(normalized.slice(4, 6), 16);
2239
+ const luminance = (red * 299 + green * 587 + blue * 114) / 1e3;
2240
+ return {
2241
+ "--vh-invocation-label-bg": `#${normalized}`,
2242
+ "--vh-invocation-label-fg": luminance > 150 ? "var(--ui-color-neutral-900)" : "var(--ui-color-neutral-50)"
2243
+ };
2244
+ }
2245
+ function renderLabelChip(activity) {
2246
+ const name = stringAttribute(activity.attributes, "github.label.name");
2247
+ if (!name) return;
2248
+ return h("span", {
2249
+ class: "vh-invocation-lifecycle__label",
2250
+ "data-operation": stringAttribute(activity.attributes, "github.label.operation"),
2251
+ style: labelStyle(stringAttribute(activity.attributes, "github.label.color"))
2252
+ }, name);
2253
+ }
2254
+ function groupedActivityTitle(activity) {
2255
+ if (!stringAttribute(activity.attributes, "github.label.name")) return invocationActivityTitle(activity);
2256
+ const operation = stringAttribute(activity.attributes, "github.label.operation")?.toLocaleLowerCase();
2257
+ if (activity.status === "failed") {
2258
+ if (operation === "add" || operation === "added") return "Failed to add label";
2259
+ if (operation === "remove" || operation === "removed") return "Failed to remove label";
2260
+ return "Failed to update label";
2261
+ }
2262
+ if (operation === "add" || operation === "added") return "Added label";
2263
+ if (operation === "remove" || operation === "removed") return "Removed label";
2264
+ return "Updated label";
2265
+ }
2266
+ function renderGroupedActivityIcon(activity) {
2267
+ if (activity.status === "failed") return renderActivityIcon(activity);
2268
+ if (stringAttribute(activity.attributes, "github.label.name")) return renderNamedActivityIcon("label");
2269
+ const delivery = stringAttribute(activity.attributes, "channel.effect.kind")?.toLocaleLowerCase();
2270
+ if (delivery === "reaction") {
2271
+ const intent = stringAttribute(activity.attributes, "channel.effect.intent")?.toLocaleLowerCase();
2272
+ const reaction = intent === "completed" ? {
2273
+ label: "hooray",
2274
+ value: "🎉"
2275
+ } : intent === "failed" ? {
2276
+ label: "confused",
2277
+ value: "😕"
2278
+ } : {
2279
+ label: "eyes",
2280
+ value: "👀"
2281
+ };
2282
+ return h("span", {
2283
+ "aria-label": reaction.label,
2284
+ class: "vh-invocation-lifecycle__emoji",
2285
+ role: "img"
2286
+ }, reaction.value);
2287
+ }
2288
+ if ([
2289
+ "reply",
2290
+ "status",
2291
+ "update"
2292
+ ].includes(delivery ?? "")) return channelIcon(activityChannel(activity));
2293
+ return renderActivityIcon(activity);
2294
+ }
2295
+ function renderActivityGroup(group, activities, inspect) {
2296
+ return h("li", {
2297
+ class: "vh-invocation-lifecycle",
2298
+ "data-activity-group": group,
2299
+ key: `activity-group:${group}:${activities[0]?.id}`
2300
+ }, [h("ol", {
2301
+ "aria-label": group,
2302
+ class: "vh-invocation-lifecycle__rows"
2303
+ }, activities.map((activity) => {
2304
+ const target = activity.attributes["vitehub.inspect.target"];
2305
+ const inspectable = target === "agent" || target === "workspace";
2306
+ const rowContent = [
2307
+ renderGroupedActivityIcon(activity),
2308
+ h("span", { class: "vh-invocation-lifecycle__title" }, groupedActivityTitle(activity)),
2309
+ renderLabelChip(activity),
2310
+ !stringAttribute(activity.attributes, "github.label.name") && channelDeliverySummary(activity) ? h("code", { class: "vh-invocation-lifecycle__detail" }, channelDeliverySummary(activity)) : null,
2311
+ activity.status === "failed" && activity.body ? h("span", { class: "vh-invocation-lifecycle__failure" }, activity.body) : null,
2312
+ renderTruncationNotice(activity, "span")
2313
+ ];
2314
+ return h("li", {
2315
+ "data-activity-id": activity.id,
2316
+ "data-kind": activity.kind,
2317
+ "data-status": activity.status,
2318
+ key: activity.id
2319
+ }, [inspectable ? h("button", {
2320
+ class: "vh-invocation-lifecycle__row",
2321
+ onClick: () => inspect(target),
2322
+ type: "button"
2323
+ }, rowContent) : h("div", { class: "vh-invocation-lifecycle__row" }, rowContent)]);
2324
+ }))]);
2325
+ }
2326
+ const tokenFormat = new Intl.NumberFormat("en");
2327
+ /** A USD amount with cents. Below ten cents it keeps two significant digits, so a small run does not read as $0.00. */
2328
+ function formatUsd(usd) {
2329
+ const value = Number(usd);
2330
+ const small = value > 0 && value < .1;
2331
+ return new Intl.NumberFormat("en", {
2332
+ currency: "USD",
2333
+ maximumFractionDigits: small ? Math.min(6, 1 - Math.floor(Math.log10(value))) : 2,
2334
+ minimumFractionDigits: 2,
2335
+ style: "currency"
2336
+ }).format(value);
2337
+ }
2338
+ /**
2339
+ * Tokens and cost of the session. The cost shows only when the run recorded one. An estimate says so in its label, and
2340
+ * its tooltip names where the prices come from, such as models.dev. Token types without tokens are left out.
2341
+ */
2342
+ function inspectorUsage(usage, partition, totalTokens) {
2343
+ const cost = usage?.cost;
2344
+ const usd = cost?.usd !== void 0 && Number.isFinite(Number(cost.usd)) ? cost.usd : void 0;
2345
+ const costText = usd === void 0 ? cost?.display || void 0 : formatUsd(usd);
2346
+ const rows = [
2347
+ ["Input", partition?.inputTokens],
2348
+ ["Cached input", partition?.cachedInputTokens],
2349
+ ["Cache writes", partition?.cacheWriteTokens],
2350
+ ["Output", partition?.outputTokens],
2351
+ ["Reasoning", partition?.reasoningTokens]
2352
+ ].flatMap(([label, value]) => !value ? [] : [h("div", [h("dt", label), h("dd", tokenFormat.format(value))])]);
2353
+ if (costText === void 0 && totalTokens === void 0 && !rows.length) return null;
2354
+ const estimated = cost?.estimated === true;
2355
+ const costNote = estimated ? cost.source && cost.source !== "provider" ? `Estimated from ${cost.source}` : "Estimated" : cost?.estimated === false ? "Reported by the provider" : void 0;
2356
+ const costTitle = [usd === void 0 ? void 0 : `$${usd}`, costNote].filter(Boolean).join(", ") || void 0;
2357
+ return inspectorSection("Usage", h("div", {
2358
+ class: "vh-invocation-inspector__usage",
2359
+ "data-slot": "invocation-usage"
2360
+ }, [h("dl", { class: "vh-invocation-inspector__metrics" }, [costText === void 0 ? null : h("div", { title: costTitle }, [h("dt", estimated ? "Estimated cost" : "Cost"), h("dd", costText)]), totalTokens === void 0 ? null : h("div", [h("dt", "Tokens"), h("dd", tokenFormat.format(totalTokens))])]), rows.length ? h("dl", { class: "vh-invocation-inspector__list vh-invocation-inspector__list--numbers" }, rows) : null]));
2361
+ }
2362
+ /** Skills that the harness offered the Agent, one chip each. The description and source are in the tooltip. */
2363
+ function inspectorSkills(skills) {
2364
+ const list = h("ul", { class: "vh-invocation-inspector__chips" }, skills.map((skill) => h("li", {
2365
+ key: skill.name,
2366
+ title: [skill.description, skill.source ? `Source: ${skill.source}` : void 0].filter(Boolean).join("\n") || void 0
2367
+ }, skill.name)));
2368
+ return skills.length > 12 ? inspectorDisclosure("Skills", String(skills.length), list) : h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Skills"), h("small", skills.length)]), list]);
2369
+ }
2370
+ /** MCP servers that the harness connected. A dot shows the status it recorded. */
2371
+ function inspectorMcpServers(servers) {
2372
+ return h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "MCP servers"), h("small", servers.length)]), h("ul", { class: "vh-invocation-inspector__chips" }, servers.map((server) => h("li", {
2373
+ key: server.name,
2374
+ title: server.status ? `${server.name}: ${server.status}` : void 0
2375
+ }, [
2376
+ server.status ? h("span", {
2377
+ "aria-hidden": "true",
2378
+ class: "vh-invocation-inspector__dot",
2379
+ "data-status": server.status
2380
+ }) : null,
2381
+ server.name,
2382
+ server.status ? h("span", { "data-slot": "visually-hidden" }, `, ${server.status}`) : null
2383
+ ])))]);
2384
+ }
2385
+ /** Recorded entries with a string `name`. The configuration is untrusted JSON. */
2386
+ function namedEntries(value) {
2387
+ if (!Array.isArray(value)) return [];
2388
+ return value.filter((entry) => entry instanceof Object && typeof Reflect.get(entry, "name") === "string" && Reflect.get(entry, "name") !== "");
2389
+ }
2390
+ function inspectorSection(title, body) {
2391
+ return h("section", [h("h4", title), body]);
2392
+ }
2393
+ function traceTimeline(invocation, selectActivity) {
2394
+ if (!invocationTimeline(invocation).length) return null;
2395
+ return inspectorSection("Trace timeline", h(AgentInvocationTimeline, {
2396
+ invocation,
2397
+ onSelectActivity: selectActivity
2398
+ }));
2399
+ }
2400
+ function inspectorRow(label, value) {
2401
+ if (value === void 0 || value === "") return null;
2402
+ return h("div", [h("dt", label), h("dd", String(value))]);
2403
+ }
2404
+ /** The tail of an identifier, so the row gives a visual check without disclosing the whole value. */
2405
+ function shortIdentifier(value) {
2406
+ return value.length > 8 ? `…${value.slice(-6)}` : "…";
2407
+ }
2408
+ function copyIcon(copied) {
2409
+ return h("svg", {
2410
+ "aria-hidden": "true",
2411
+ fill: "none",
2412
+ viewBox: "0 0 24 24"
2413
+ }, copied ? [h("path", {
2414
+ d: "m5 12 4 4L19 6",
2415
+ "stroke-linecap": "round",
2416
+ "stroke-linejoin": "round"
2417
+ })] : [h("rect", {
2418
+ height: "13",
2419
+ rx: "2",
2420
+ width: "13",
2421
+ x: "8",
2422
+ y: "8"
2423
+ }), h("path", {
2424
+ d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3",
2425
+ "stroke-linecap": "round",
2426
+ "stroke-linejoin": "round"
2427
+ })]);
2428
+ }
2429
+ function statusIcon$1(status) {
2430
+ const paths = {
2431
+ cancelled: ["M18 6 6 18", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
2432
+ completed: ["m5 12 4 4L19 6"],
2433
+ failed: ["M18 6 6 18", "m6 6 12 12"],
2434
+ pending: ["M12 8v4l3 2", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
2435
+ running: ["M21 12a9 9 0 1 1-6.219-8.56"]
2436
+ };
2437
+ const iconPaths = Object.hasOwn(paths, status) ? paths[status] : ["M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18"];
2438
+ return h("svg", {
2439
+ "aria-hidden": "true",
2440
+ fill: "none",
2441
+ viewBox: "0 0 24 24"
2442
+ }, iconPaths.map((path) => h("path", {
2443
+ d: path,
2444
+ "stroke-linecap": "round",
2445
+ "stroke-linejoin": "round"
2446
+ })));
2447
+ }
2448
+ function sourcePresentation(source) {
2449
+ const id = typeof source === "string" ? source : source.id;
2450
+ const repository = typeof source === "string" ? /^(?:gh|github):([\w.-]+\/[\w.-]+)(?:\/.*)?$/.exec(source)?.[1] : /^[\w.-]+\/[\w.-]+$/.test(source.repository ?? "") ? source.repository : void 0;
2451
+ return repository ? {
2452
+ href: `https://github.com/${repository}`,
2453
+ icon: channelIcon("github"),
2454
+ label: id,
2455
+ title: `${id}: ${repository}`
2456
+ } : { label: id };
2457
+ }
2458
+ function inspectorSources(sources) {
2459
+ return h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Sources"), h("small", sources.length)]), h("div", { class: "vh-invocation-inspector__badges" }, sources.map((source) => {
2460
+ const presentation = sourcePresentation(source);
2461
+ const children = [presentation.icon, h("span", presentation.label)];
2462
+ return presentation.href ? h("a", {
2463
+ class: "vh-invocation-inspector__badge",
2464
+ href: presentation.href,
2465
+ rel: "noreferrer",
2466
+ target: "_blank",
2467
+ title: presentation.title
2468
+ }, children) : h("span", { class: "vh-invocation-inspector__badge" }, children);
2469
+ }))]);
2470
+ }
2471
+ function inspectorChannels(channels) {
2472
+ return h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Channels"), h("small", channels.length)]), h("div", { class: "vh-invocation-inspector__badges" }, channels.map((channel) => {
2473
+ return h("span", { class: "vh-invocation-inspector__badge" }, [channelIcon(channel.kind), h("span", channel.id)]);
2474
+ }))]);
2475
+ }
2476
+ function isRecordedChannel(value) {
2477
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
2478
+ const channel = value;
2479
+ return Object.hasOwn(channel, "id") && typeof channel.id === "string" && Object.hasOwn(channel, "kind") && typeof channel.kind === "string";
2480
+ }
2481
+ /** Runtime names that mean nothing to a reader on their own. */
2482
+ const runtimeLabels = { import: {
2483
+ label: "Imported session",
2484
+ title: "This session ran outside ViteHub. Its session file was imported."
2485
+ } };
2486
+ /** Model, provider, and runtime as rows. The provider row shows only when it is not the company that made the model. */
2487
+ function inspectorExecution(configuration) {
2488
+ const model = configuration.driver?.model;
2489
+ const modelId = model?.id;
2490
+ const maker = invocationModelMaker(modelId);
2491
+ const provider = invocationBrand(model?.provider ?? configuration.driver?.provider);
2492
+ const runtime = configuration.runtime?.name;
2493
+ if (!modelId && !provider && (!runtime || runtime === "unknown")) return null;
2494
+ const runtimeLabel = runtime && Object.hasOwn(runtimeLabels, runtime) ? runtimeLabels[runtime] : void 0;
2495
+ return h("dl", { class: "vh-invocation-inspector__list vh-invocation-execution" }, [
2496
+ modelId ? h("div", [h("dt", "Model"), h("dd", {
2497
+ class: "vh-invocation-execution__model",
2498
+ title: maker ? `${modelId} by ${maker.label}` : modelId
2499
+ }, [invocationBrandMark(maker ?? provider ?? {
2500
+ id: "fallback",
2501
+ label: "Model"
2502
+ }, "vh-invocation-execution__model-icon"), h("span", invocationModelName(modelId))])]) : null,
2503
+ provider && provider.id !== maker?.id ? h("div", [h("dt", "Provider"), h("dd", { class: "vh-invocation-execution__provider" }, [invocationBrandMark(provider, "vh-invocation-execution__provider-icon"), h("span", provider.label)])]) : null,
2504
+ runtime && runtime !== "unknown" ? h("div", [h("dt", "Runtime"), h("dd", { title: runtimeLabel?.title }, runtimeLabel?.label ?? runtime)]) : null
2505
+ ]);
2506
+ }
2507
+ function inspectorTools(tools, counts, selectTool) {
2508
+ const rows = [...tools].sort((left, right) => (counts.get(right.name) ?? 0) - (counts.get(left.name) ?? 0) || left.name.localeCompare(right.name));
2509
+ const used = rows.filter((tool) => (counts.get(tool.name) ?? 0) > 0).length;
2510
+ return h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Tools"), h("small", `${used} of ${rows.length} used`)]), h(ToolList, {
2511
+ calls: Object.fromEntries(counts),
2512
+ onSelect: selectTool,
2513
+ tools: rows
2514
+ })]);
2515
+ }
2516
+ function inspectorDisclosure(title, summary, body) {
2517
+ return h("details", { class: "vh-invocation-inspector__group vh-invocation-inspector__disclosure" }, [h("summary", { class: "vh-invocation-inspector__group-heading" }, [
2518
+ h("strong", title),
2519
+ h("small", summary),
2520
+ renderDisclosureChevron("vh-invocation-inspector__chevron")
2521
+ ]), body]);
2522
+ }
2523
+ function renderConfiguration(configuration, invocation, showSources, showCapabilities, selectTool) {
2524
+ const recordedTools = Array.isArray(configuration.tools) ? configuration.tools : [];
2525
+ const tools = recordedTools.filter((tool) => tool && typeof tool.name === "string");
2526
+ const channelsCatalogMalformed = configuration.channels !== void 0 && !Array.isArray(configuration.channels);
2527
+ const recordedChannels = Array.isArray(configuration.channels) ? configuration.channels : [];
2528
+ const channels = recordedChannels.filter(isRecordedChannel);
2529
+ configuration = {
2530
+ ...configuration,
2531
+ channels,
2532
+ tools,
2533
+ truncated: configuration.truncated || tools.length !== recordedTools.length || channelsCatalogMalformed || channels.length !== recordedChannels.length
2534
+ };
2535
+ const skills = namedEntries(configuration.skills);
2536
+ const mcpServers = namedEntries(configuration.mcpServers);
2537
+ const driver = driverLabel(configuration);
2538
+ const workspace = workspaceLabel(configuration);
2539
+ const setup = [
2540
+ inspectorRow("Driver", driver),
2541
+ inspectorRow("Runtime", configuration.runtime?.name === "unknown" ? void 0 : configuration.runtime?.name),
2542
+ inspectorRow("Workspace", workspace)
2543
+ ].filter((item) => item !== null);
2544
+ const execution = inspectorExecution(configuration);
2545
+ const groups = [
2546
+ execution,
2547
+ !execution && setup.length ? h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Execution")]), h("dl", { class: "vh-invocation-inspector__list" }, setup)]) : null,
2548
+ showSources && configuration.workspace?.sources?.length ? inspectorSources(configuration.workspace.sources) : null,
2549
+ configuration.channels?.length ? inspectorChannels(configuration.channels) : null,
2550
+ showCapabilities && configuration.capabilities?.length ? h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Capabilities"), h("small", configuration.capabilities.length)]), h("div", { class: "vh-invocation-inspector__stack" }, configuration.capabilities.map((capability) => {
2551
+ const tools = configuration.tools?.filter((tool) => tool.capabilityId === capability.id) || [];
2552
+ return h("details", {
2553
+ class: "vh-invocation-inspector__item-disclosure",
2554
+ key: capability.id
2555
+ }, [
2556
+ h("summary", [
2557
+ h("code", capability.id),
2558
+ h("small", tools.length ? `${tools.length} tool${tools.length === 1 ? "" : "s"}` : "Configuration"),
2559
+ renderDisclosureChevron("vh-invocation-inspector__chevron")
2560
+ ]),
2561
+ tools.length ? h(ToolList, {
2562
+ tools,
2563
+ calls: Object.fromEntries(invocationToolUsage(invocation)),
2564
+ onSelect: selectTool
2565
+ }) : null,
2566
+ capability.metadata ? h("details", { class: "vh-invocation-inspector__settings" }, [h("summary", "Configuration"), h("pre", payloadText(capability.metadata))]) : null,
2567
+ !tools.length && !capability.metadata ? h("p", "No tools or configuration recorded.") : null
2568
+ ]);
2569
+ }))]) : null,
2570
+ configuration.tools?.some((tool) => !showCapabilities || !configuration.capabilities?.some((capability) => capability.id === tool.capabilityId)) ? inspectorTools(configuration.tools.filter((tool) => !showCapabilities || !configuration.capabilities?.some((capability) => capability.id === tool.capabilityId)), invocationToolUsage(invocation), selectTool) : null,
2571
+ skills.length ? inspectorSkills(skills) : null,
2572
+ mcpServers.length ? inspectorMcpServers(mcpServers) : null,
2573
+ configuration.instructions?.length ? inspectorDisclosure("Instructions", `${configuration.instructions.length} block${configuration.instructions.length === 1 ? "" : "s"}`, h("pre", { class: "vh-invocation-inspector__instructions" }, configuration.instructions.join("\n\n"))) : null
2574
+ ].filter((item) => item !== null);
2575
+ return groups.length || configuration.truncated ? [inspectorSection("Agent setup", h("div", { class: "vh-invocation-inspector__groups" }, [configuration.truncated ? h("p", {
2576
+ class: "vh-invocation-inspector__notice",
2577
+ role: "note"
2578
+ }, "Some setup values were shortened when this run was recorded.") : null, ...groups]))] : [];
2579
+ }
2580
+ function renderInvocationActivity(activity, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork = false) {
2581
+ return activity.kind === "message" ? renderMessage(activity, expanded, toggleExpanded, messageRendering, insideWork) : renderEvent(activity, inspect, openActivities, setActivityOpen);
2582
+ }
2583
+ function renderActivitySequence(activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork = false) {
2584
+ const rendered = [];
2585
+ for (let index = 0; index < activities.length;) {
2586
+ const group = activityGroup(activities[index]);
2587
+ if (group) {
2588
+ let end = index + 1;
2589
+ while (activityGroup(activities[end]) === group) end += 1;
2590
+ rendered.push(group === "agent-capability-lifecycle" ? renderCapabilityGroup(activities.slice(index, end), inspect, openActivities, setActivityOpen) : group === "agent-configuration-lifecycle" ? renderAgentConfigurationGroup(activities.slice(index, end), inspect) : renderActivityGroup(group, activities.slice(index, end), inspect));
2591
+ index = end;
2592
+ continue;
2593
+ }
2594
+ if (activities[index].kind !== "preparation") {
2595
+ rendered.push(renderInvocationActivity(activities[index], expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork));
2596
+ index += 1;
2597
+ continue;
2598
+ }
2599
+ let end = index + 1;
2600
+ while (activities[end]?.kind === "preparation") end += 1;
2601
+ rendered.push(renderPreparationGroup(activities.slice(index, end), invocation, inspect));
2602
+ index = end;
2603
+ }
2604
+ return rendered;
2605
+ }
2606
+ /** A model call without reasoning text or a token count has nothing to open, so the work list leaves it out. */
2607
+ function emptyModelStep(activity) {
2608
+ return (activity.kind === "model" || activity.kind === "reasoning") && !activity.body?.trim() && !activity.reasoningTokens && !activity.truncated;
2609
+ }
2610
+ function renderWorkSummary(activities, invocation, expanded, open, setOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
2611
+ if (!activities.length) return null;
2612
+ const active = invocation.status === "pending" || invocation.status === "running";
2613
+ const detailsOpen = active || open;
2614
+ const endedAt = invocation.completedAt ?? invocation.failedAt ?? invocation.cancelledAt ?? invocation.updatedAt;
2615
+ const duration = formatDuration(invocation.startedAt, endedAt);
2616
+ const elapsed = active ? formatElapsed(invocation.startedAt, messageRendering.liveNow) : void 0;
2617
+ const steps = activities.filter((activity, index) => !emptyModelStep(activity) || active && index === activities.length - 1);
2618
+ return h("li", {
2619
+ class: "vh-invocation-work",
2620
+ key: "invocation-work"
2621
+ }, [h("details", {
2622
+ class: "vh-invocation-work__details",
2623
+ onToggle: (event) => setOpen(event.currentTarget.open),
2624
+ open: detailsOpen
2625
+ }, [
2626
+ h("summary", { class: "vh-invocation-work__summary" }, [
2627
+ h("span", { class: "vh-invocation-work__title" }, active ? "Working…" : duration ? `${invocation.status === "cancelled" ? "Cancelled after" : "Worked for"} ${duration}` : invocation.status === "cancelled" ? "Cancelled" : "Work details"),
2628
+ elapsed ? h("time", {
2629
+ class: "vh-invocation-work__elapsed",
2630
+ datetime: invocation.startedAt
2631
+ }, elapsed) : null,
2632
+ renderDisclosureChevron("vh-invocation-work__disclosure")
2633
+ ]),
2634
+ h("div", {
2635
+ "aria-hidden": "true",
2636
+ class: "vh-invocation-work__divider"
2637
+ }),
2638
+ detailsOpen && steps.length ? h("ol", { class: "vh-invocation-work__activities" }, renderActivitySequence(steps, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, true)) : null
2639
+ ])]);
2640
+ }
2641
+ function renderPreviousMessages(messages, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
2642
+ if (!messages.length) return null;
2643
+ return h("li", {
2644
+ class: "vh-invocation-history",
2645
+ key: "invocation-history"
2646
+ }, [h("details", { class: "vh-invocation-history__details" }, [h("summary", { class: "vh-invocation-history__summary" }, [h("span", `${messages.length} previous ${messages.length === 1 ? "message" : "messages"}`), renderDisclosureChevron("vh-invocation-history__disclosure")]), h("ol", { class: "vh-invocation-history__messages" }, renderActivitySequence(messages, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen))])]);
2647
+ }
2648
+ function invocationPromptMetadata(invocation, promptId) {
2649
+ if (promptId === void 0) return {};
2650
+ const triggeredBy = stringAttribute(invocation.annotations ?? {}, "triggeredBy");
2651
+ const observationAttributes = invocation.observations.map((observation) => observation.attributes ?? {}).find((attributes) => stringAttribute(attributes, "agent.invoker.label") || stringAttribute(attributes, "agent.invoker.id"));
2652
+ return {
2653
+ author: triggeredBy?.trim() ? triggeredBy.trim() : stringAttribute(observationAttributes ?? {}, "agent.invoker.label") ?? stringAttribute(observationAttributes ?? {}, "agent.invoker.id"),
2654
+ promptId,
2655
+ sentAt: stringAttribute(invocation.annotations ?? {}, "channel.sentAt")
2656
+ };
2657
+ }
2658
+ function renderInvocationActivities(conversation, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
2659
+ if (conversation.kind === "activities") return renderActivitySequence(conversation.activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen);
2660
+ return [
2661
+ renderPreviousMessages(conversation.history, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
2662
+ conversation.prompt ? renderInvocationActivity(conversation.prompt, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) : null,
2663
+ renderWorkSummary(conversation.work, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
2664
+ ...conversation.answers.map((activity) => renderInvocationActivity(activity, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)),
2665
+ ...renderActivitySequence(conversation.followup, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)
2666
+ ].filter((item) => item !== null);
2667
+ }
2668
+ const AgentInvocation = defineComponent({
2669
+ name: "AgentInvocation",
2670
+ emits: { inspect: (target, path) => (target === "agent" || target === "workspace") && (path === void 0 || typeof path === "string") },
2671
+ props: {
2672
+ header: {
2673
+ default: true,
2674
+ type: Boolean
2675
+ },
2676
+ invocation: {
2677
+ required: true,
2678
+ type: Object
2679
+ },
2680
+ selectedActivityId: {
2681
+ default: void 0,
2682
+ type: String
2683
+ },
2684
+ workspaceInspectable: {
2685
+ default: true,
2686
+ type: Boolean
2687
+ }
2688
+ },
2689
+ setup(props, { emit, slots }) {
2690
+ const activities = computed(() => invocationActivities(props.invocation).map((activity) => {
2691
+ if (props.workspaceInspectable) return activity;
2692
+ const attributes = { ...activity.attributes };
2693
+ delete attributes["vitehub.inspect.target"];
2694
+ return {
2695
+ ...activity,
2696
+ attributes,
2697
+ skill: void 0,
2698
+ skills: void 0
2699
+ };
2700
+ }));
2701
+ const conversation = computed(() => buildInvocationConversation(activities.value));
2702
+ const expandedMessages = ref(/* @__PURE__ */ new Set());
2703
+ const mounted = useMounted();
2704
+ const now = useNow({ scheduler: (tick) => useIntervalFn(tick, 6e4) });
2705
+ const liveNow = ref();
2706
+ let liveClock;
2707
+ const workOpen = ref(false);
2708
+ const openActivities = ref(/* @__PURE__ */ new Set());
2709
+ const clipboard = useCopy();
2710
+ const copiedMessageId = ref();
2711
+ const messageCopy = computed(() => {
2712
+ const status = clipboard.copied.value ? "copied" : clipboard.failed.value ? "failed" : void 0;
2713
+ return copiedMessageId.value && status ? {
2714
+ id: copiedMessageId.value,
2715
+ status
2716
+ } : void 0;
2717
+ });
2718
+ const root = ref();
2719
+ let selectedElement;
2720
+ function toggleExpanded(id) {
2721
+ const next = new Set(expandedMessages.value);
2722
+ if (next.has(id)) next.delete(id);
2723
+ else next.add(id);
2724
+ expandedMessages.value = next;
2725
+ }
2726
+ function setActivityOpen(id, open) {
2727
+ const next = new Set(openActivities.value);
2728
+ if (open) next.add(id);
2729
+ else next.delete(id);
2730
+ openActivities.value = next;
2731
+ }
2732
+ function inspectWorkspaceArtifact(event) {
2733
+ if (!props.workspaceInspectable || event.defaultPrevented || event.button !== 0) return;
2734
+ const target = event.target instanceof Element ? event.target.closest("a[href]") : void 0;
2735
+ const path = target ? workspaceArtifactPath(target.getAttribute("href") || "") : void 0;
2736
+ if (!path) return;
2737
+ event.preventDefault();
2738
+ emit("inspect", "workspace", path);
2739
+ }
2740
+ function clearSelectedElement() {
2741
+ if (!selectedElement) return;
2742
+ selectedElement.removeAttribute("data-selected");
2743
+ selectedElement.removeAttribute("tabindex");
2744
+ selectedElement = void 0;
2745
+ }
2746
+ async function copyMessage(activity) {
2747
+ copiedMessageId.value = activity.id;
2748
+ const url = agentInvocationExternalUrl(props.invocation);
2749
+ const metadata = [
2750
+ `Invocation ID: ${props.invocation.id}`,
2751
+ `Trace ID: ${props.invocation.traceId}`,
2752
+ props.invocation.agentName ? `Agent: ${props.invocation.agentName}` : void 0,
2753
+ url ? `URL: ${url}` : void 0
2754
+ ].filter((value) => value !== void 0);
2755
+ await clipboard.copy(`${activity.body ?? ""}\n\n${metadata.join("\n")}`);
2756
+ }
2757
+ async function focusActivity(id) {
2758
+ if (id) {
2759
+ workOpen.value = true;
2760
+ setActivityOpen(id, true);
2761
+ }
2762
+ await nextTick();
2763
+ const target = [...root.value?.querySelectorAll("[data-activity-id]") ?? []].find((element) => element.dataset.activityId === id);
2764
+ if (target && target === selectedElement) return;
2765
+ clearSelectedElement();
2766
+ if (!id) return;
2767
+ if (!target) return;
2768
+ let details = target.closest("details");
2769
+ while (details) {
2770
+ details.open = true;
2771
+ details = details.parentElement?.closest("details") ?? null;
2772
+ }
2773
+ target.dataset.selected = "true";
2774
+ target.tabIndex = -1;
2775
+ target.focus({ preventScroll: true });
2776
+ const reduceMotion = "matchMedia" in globalThis && matchMedia("(prefers-reduced-motion: reduce)").matches;
2777
+ target.scrollIntoView?.({
2778
+ behavior: reduceMotion ? "auto" : "smooth",
2779
+ block: "center"
2780
+ });
2781
+ selectedElement = target;
2782
+ }
2783
+ watch([() => props.selectedActivityId, activities], ([id]) => void focusActivity(id), {
2784
+ flush: "post",
2785
+ immediate: true
2786
+ });
2787
+ watch(() => props.invocation.id, () => {
2788
+ workOpen.value = false;
2789
+ openActivities.value = /* @__PURE__ */ new Set();
2790
+ copiedMessageId.value = void 0;
2791
+ });
2792
+ watch(() => props.invocation.status, (status, previousStatus) => {
2793
+ if ((previousStatus === "pending" || previousStatus === "running") && status !== "pending" && status !== "running") workOpen.value = false;
2794
+ });
2795
+ watch([() => props.invocation.status === "pending" || props.invocation.status === "running", mounted], ([live, isMounted]) => {
2796
+ if (liveClock) clearInterval(liveClock);
2797
+ liveClock = void 0;
2798
+ liveNow.value = live && isMounted ? /* @__PURE__ */ new Date() : void 0;
2799
+ if (live && isMounted) liveClock = setInterval(() => liveNow.value = /* @__PURE__ */ new Date(), 1e3);
2800
+ }, { immediate: true });
2801
+ onBeforeUnmount(() => {
2802
+ clearSelectedElement();
2803
+ if (liveClock) clearInterval(liveClock);
2804
+ });
2805
+ return () => {
2806
+ const promptMetadata = invocationPromptMetadata(props.invocation, conversation.value.promptId);
2807
+ return h("article", {
2808
+ class: ["vh-invocation-session", { "vh-invocation-session--headerless": !props.header }],
2809
+ "data-status": props.invocation.status,
2810
+ "data-slot": "invocation",
2811
+ onClick: inspectWorkspaceArtifact,
2812
+ ref: root
2813
+ }, [props.header ? h("header", { class: "vh-invocation-header" }, [h("div", {
2814
+ class: "vh-invocation-header__breadcrumb",
2815
+ title: `${agentInvocationProject(props.invocation)} / ${agentInvocationTitle(props.invocation)}`
2816
+ }, [
2817
+ h("span", { class: "vh-invocation-header__project-icon" }, [renderFolderIcon()]),
2818
+ h("span", { class: "vh-invocation-header__project" }, agentInvocationProject(props.invocation)),
2819
+ h("span", {
2820
+ "aria-hidden": "true",
2821
+ class: "vh-invocation-header__separator"
2822
+ }, "/"),
2823
+ h("h2", slots.title?.({ invocation: props.invocation }) ?? agentInvocationTitle(props.invocation))
2824
+ ]), slots.actions?.({ invocation: props.invocation })]) : null, h("div", { class: "vh-invocation-thread" }, [h("div", { class: "vh-invocation-thread__content" }, [
2825
+ invocationTimestamp(props.invocation),
2826
+ h("div", {
2827
+ "aria-label": "Session thread",
2828
+ "aria-relevant": "additions text",
2829
+ role: "log"
2830
+ }, [h("ol", { class: "vh-invocation-activities" }, renderInvocationActivities(conversation.value, props.invocation, expandedMessages.value, workOpen.value, (open) => workOpen.value = open, toggleExpanded, (target, path) => path === void 0 ? emit("inspect", target) : emit("inspect", target, path), {
2831
+ ...promptMetadata,
2832
+ now: now.value,
2833
+ liveNow: liveNow.value,
2834
+ mounted: mounted.value,
2835
+ copy: (activity) => void copyMessage(activity),
2836
+ copiedId: messageCopy.value?.id,
2837
+ copyStatus: messageCopy.value?.status
2838
+ }, openActivities.value, setActivityOpen))]),
2839
+ activities.value.length || props.invocation.error ? null : h("div", {
2840
+ class: "vh-invocation-empty",
2841
+ role: "status"
2842
+ }, [h("p", "Waiting for the first update…")]),
2843
+ props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null,
2844
+ slots.footer?.({ invocation: props.invocation })
2845
+ ])])]);
2846
+ };
2847
+ }
2848
+ });
2849
+ const AgentInvocationInspector = defineComponent({
2850
+ name: "AgentInvocationInspector",
2851
+ emits: { selectActivity: (id) => Boolean(id) },
2852
+ props: {
2853
+ invocation: {
2854
+ required: true,
2855
+ type: Object
2856
+ },
2857
+ showStatus: {
2858
+ default: true,
2859
+ type: Boolean
2860
+ },
2861
+ showCapabilities: {
2862
+ default: false,
2863
+ type: Boolean
2864
+ },
2865
+ showTimeline: {
2866
+ default: true,
2867
+ type: Boolean
2868
+ },
2869
+ showSources: {
2870
+ default: true,
2871
+ type: Boolean
2872
+ },
2873
+ showError: {
2874
+ default: true,
2875
+ type: Boolean
2876
+ }
2877
+ },
2878
+ setup(props, { emit, slots }) {
2879
+ const activities = computed(() => invocationActivities(props.invocation));
2880
+ const conversation = computed(() => buildInvocationConversation(activities.value));
2881
+ const clipboard = useCopy({ duration: 1600 });
2882
+ const copyKind = ref();
2883
+ const copied = computed(() => clipboard.copied.value ? copyKind.value : void 0);
2884
+ const copyError = computed(() => clipboard.failed.value ? copyKind.value : void 0);
2885
+ const metrics = computed(() => ({
2886
+ changes: activities.value.filter((activity) => activity.kind === "change").length,
2887
+ messages: (conversation.value.kind === "activities" ? conversation.value.activities : [
2888
+ ...conversation.value.history,
2889
+ ...conversation.value.prompt ? [conversation.value.prompt] : [],
2890
+ ...conversation.value.work,
2891
+ ...conversation.value.answers,
2892
+ ...conversation.value.followup
2893
+ ]).filter((activity) => activity.kind === "message").length,
2894
+ steps: activities.value.filter((activity) => activity.kind !== "message" && activity.name !== "vitehub.observation.truncated").length,
2895
+ tokens: latestInvocationTokens(activities.value),
2896
+ toolCalls: [...invocationToolUsage(props.invocation).values()].reduce((total, count) => total + count, 0)
2897
+ }));
2898
+ function selectTool(name) {
2899
+ const call = activities.value.find((activity) => activity.attributes["tool.name"] === name);
2900
+ if (call) emit("selectActivity", call.id);
2901
+ }
2902
+ async function copyIdentifier(kind, value) {
2903
+ if (!value) return;
2904
+ copyKind.value = kind;
2905
+ await clipboard.copy(value);
2906
+ }
2907
+ function copyAction(kind, label, value) {
2908
+ if (!value) return null;
2909
+ const didCopy = copied.value === kind;
2910
+ return h("button", {
2911
+ "aria-label": didCopy ? `${label} copied` : `Copy ${label}`,
2912
+ class: "vh-invocation-inspector__copy",
2913
+ onClick: () => void copyIdentifier(kind, value),
2914
+ type: "button"
2915
+ }, [
2916
+ h("span", { class: "vh-invocation-inspector__copy-label" }, label),
2917
+ h("code", {
2918
+ "aria-hidden": "true",
2919
+ class: "vh-invocation-inspector__copy-value"
2920
+ }, shortIdentifier(value)),
2921
+ h("span", { class: "vh-invocation-inspector__copy-icon" }, [copyIcon(didCopy)])
2922
+ ]);
2923
+ }
2924
+ return () => {
2925
+ const configuration = props.invocation.configuration;
2926
+ const agentName = configuration?.agent?.name ?? props.invocation.agentName;
2927
+ const usage = props.invocation.usage;
2928
+ const partition = usage?.inputTokens !== void 0 && usage.outputTokens !== void 0 && (usage.totalTokens === void 0 || usage.inputTokens + usage.outputTokens === usage.totalTokens) ? usage : void 0;
2929
+ const endedAt = props.invocation.completedAt ?? props.invocation.failedAt ?? props.invocation.cancelledAt;
2930
+ const totalTime = formatDuration(props.invocation.startedAt, endedAt);
2931
+ const duration = totalTime ?? (props.invocation.status === "pending" ? "Waiting to start" : props.invocation.status === "running" ? "In progress" : "Duration unavailable");
2932
+ return h("aside", {
2933
+ "aria-label": "Session details",
2934
+ class: "vh-invocation-inspector",
2935
+ "data-status": props.invocation.status,
2936
+ "data-slot": "invocation-inspector"
2937
+ }, [h("header", [h("div", [h("p", agentInvocationProject(props.invocation)), h("h3", "Invocation details")]), slots.actions?.({ invocation: props.invocation })]), h("div", { class: "vh-invocation-inspector__content" }, [
2938
+ h("span", {
2939
+ "data-slot": "visually-hidden",
2940
+ role: "status"
2941
+ }, copied.value ? `${copied.value === "trace" ? "Trace" : "Invocation"} ID copied` : copyError.value ? `${copyError.value === "trace" ? "Trace" : "Invocation"} ID could not be copied` : ""),
2942
+ h("section", { class: "vh-invocation-inspector__identity" }, [
2943
+ props.showStatus ? h("div", {
2944
+ "aria-atomic": "true",
2945
+ "aria-live": "polite",
2946
+ class: "vh-invocation-inspector__status",
2947
+ role: "status"
2948
+ }, [
2949
+ h("span", { class: "vh-invocation-inspector__status-icon" }, [statusIcon$1(props.invocation.status)]),
2950
+ h("strong", statusLabel(props.invocation.status)),
2951
+ h("small", duration)
2952
+ ]) : null,
2953
+ h("div", { class: "vh-invocation-inspector__title-row" }, [h("h4", { class: "vh-invocation-inspector__title" }, agentInvocationTitle(props.invocation)), slots.identityActions?.({ invocation: props.invocation })]),
2954
+ agentInvocationContext(props.invocation) !== props.invocation.id ? h("p", agentInvocationContext(props.invocation)) : null,
2955
+ agentName ? h("div", { class: "vh-invocation-inspector__agent" }, [
2956
+ h("span", "Agent"),
2957
+ h("strong", agentName),
2958
+ configuration?.agent?.version ? h("small", `v${configuration.agent.version}`) : null
2959
+ ]) : null,
2960
+ props.showError && props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null
2961
+ ]),
2962
+ inspectorSection("Run summary", h("dl", { class: "vh-invocation-inspector__metrics" }, [
2963
+ h("div", [h("dt", "Messages"), h("dd", metrics.value.messages)]),
2964
+ h("div", [h("dt", "Steps"), h("dd", metrics.value.steps)]),
2965
+ h("div", [h("dt", "Tool calls"), h("dd", metrics.value.toolCalls)]),
2966
+ totalTime ? h("div", [h("dt", "Total time"), h("dd", totalTime)]) : null,
2967
+ metrics.value.changes ? h("div", [h("dt", "Changes"), h("dd", metrics.value.changes)]) : null
2968
+ ])),
2969
+ inspectorUsage(usage, partition, usage?.totalTokens ?? metrics.value.tokens),
2970
+ props.showTimeline ? traceTimeline(props.invocation, (id) => emit("selectActivity", id)) : null,
2971
+ ...configuration ? renderConfiguration(configuration, props.invocation, props.showSources, props.showCapabilities, selectTool) : [],
2972
+ slots.metadata?.({ invocation: props.invocation }),
2973
+ inspectorSection("Identifiers", h("div", { class: "vh-invocation-inspector__copy-list" }, [copyAction("trace", "Trace ID", props.invocation.traceId), copyAction("invocation", "Invocation ID", props.invocation.id)]))
2974
+ ])]);
2975
+ };
2976
+ }
2977
+ });
2978
+ //#endregion
2979
+ //#region src/console/runtime/components/invocation/agent-invocation-list.ts
2980
+ /** The status words of the session list. Console search uses them too. */
2981
+ function invocationStatusLabel(status) {
2982
+ const labels = {
2983
+ cancelled: "Cancelled",
2984
+ completed: "Done",
2985
+ failed: "Failed",
2986
+ pending: "Queued",
2987
+ running: "Working"
2988
+ };
2989
+ return Object.hasOwn(labels, status) ? labels[status] : "Unknown";
2990
+ }
2991
+ const invocationListPaginationThreshold = 636;
2992
+ const recencyGroups = [
2993
+ {
2994
+ id: "today",
2995
+ label: "Today"
2996
+ },
2997
+ {
2998
+ id: "yesterday",
2999
+ label: "Yesterday"
3000
+ },
3001
+ {
3002
+ id: "week",
3003
+ label: "Previous 7 days"
3004
+ },
3005
+ {
3006
+ id: "older",
3007
+ label: "Older"
3008
+ }
3009
+ ];
3010
+ function recencyGroup(value, now) {
3011
+ const time = value ? Date.parse(value) : NaN;
3012
+ if (!Number.isFinite(time)) return "older";
3013
+ const today = new Date(now);
3014
+ today.setHours(0, 0, 0, 0);
3015
+ const startOfDay = (offset) => new Date(today.getFullYear(), today.getMonth(), today.getDate() - offset).getTime();
3016
+ if (time >= startOfDay(0)) return "today";
3017
+ if (time >= startOfDay(1)) return "yesterday";
3018
+ if (time >= startOfDay(7)) return "week";
3019
+ return "older";
3020
+ }
3021
+ function groupByRecency(items, now) {
3022
+ const buckets = /* @__PURE__ */ new Map();
3023
+ for (const item of items) {
3024
+ const id = recencyGroup(item.updatedAt ?? item.startedAt, now);
3025
+ const bucket = buckets.get(id);
3026
+ if (bucket) bucket.push(item);
3027
+ else buckets.set(id, [item]);
3028
+ }
3029
+ return recencyGroups.flatMap((group) => {
3030
+ const groupItems = buckets.get(group.id);
3031
+ return groupItems ? [{
3032
+ ...group,
3033
+ items: groupItems
3034
+ }] : [];
3035
+ });
3036
+ }
3037
+ function statusIcon(status) {
3038
+ const paths = {
3039
+ cancelled: [
3040
+ "M7 7l10 10",
3041
+ "M17 7 7 17",
3042
+ "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
3043
+ ],
3044
+ completed: ["m8 12 2.5 2.5L16 9", "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"],
3045
+ failed: [
3046
+ "m9 9 6 6",
3047
+ "m15 9-6 6",
3048
+ "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
3049
+ ],
3050
+ pending: ["M12 7v5l3 2", "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"],
3051
+ running: ["M21 12a9 9 0 1 1-6.219-8.56"]
3052
+ };
3053
+ const iconPaths = Object.hasOwn(paths, status) ? paths[status] : ["M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18"];
3054
+ return h("svg", {
3055
+ "aria-hidden": "true",
3056
+ fill: "none",
3057
+ viewBox: "0 0 24 24"
3058
+ }, iconPaths.map((path) => h("path", {
3059
+ d: path,
3060
+ "stroke-linecap": "round",
3061
+ "stroke-linejoin": "round"
3062
+ })));
3063
+ }
3064
+ function renderItem(item, selectedId, now, select, projectIconSlot, harnessSlot) {
3065
+ const timestamp = item.status === "running" ? item.startedAt ?? item.updatedAt : item.updatedAt;
3066
+ const time = consoleRelativeTime(timestamp, now);
3067
+ const state = h("span", {
3068
+ class: "vh-invocation-list__state",
3069
+ title: item.description
3070
+ }, [
3071
+ item.status === "completed" ? h("span", { "data-slot": "visually-hidden" }, invocationStatusLabel(item.status)) : h("span", { class: "vh-invocation-list__state-icon" }, [statusIcon(item.status)]),
3072
+ item.status === "completed" ? null : h("span", invocationStatusLabel(item.status)),
3073
+ time ? h("time", {
3074
+ "aria-label": time.label,
3075
+ datetime: timestamp,
3076
+ title: time.label
3077
+ }, time.short) : null
3078
+ ]);
3079
+ const title = h("strong", {
3080
+ class: "vh-invocation-list__title",
3081
+ title: item.title
3082
+ }, item.title);
3083
+ return h("li", { key: item.id }, [h("button", {
3084
+ "aria-current": selectedId === item.id ? "true" : void 0,
3085
+ "aria-description": item.description,
3086
+ class: "vh-invocation-list__item",
3087
+ "data-focus-inset": "",
3088
+ "data-invocation-id": item.id,
3089
+ "data-relative-time": time?.short,
3090
+ "data-status": item.status,
3091
+ onClick: () => select(item),
3092
+ type: "button"
3093
+ }, [...item.project || projectIconSlot ? [h("span", { class: "vh-invocation-list__context" }, [
3094
+ projectIconSlot ? h("span", { class: "vh-invocation-list__project-icon" }, projectIconSlot({ item })) : null,
3095
+ item.project ? h("span", {
3096
+ class: "vh-invocation-list__project",
3097
+ title: item.project
3098
+ }, item.project) : null,
3099
+ state
3100
+ ]), title] : [h("span", { class: "vh-invocation-list__headline" }, [title, state])], item.context || harnessSlot || item.channel ? h("span", { class: "vh-invocation-list__meta" }, [
3101
+ item.context ? h("span", {
3102
+ class: "vh-invocation-list__branch",
3103
+ title: item.context
3104
+ }, item.context) : null,
3105
+ harnessSlot ? h("span", { class: "vh-invocation-list__harness" }, harnessSlot({ item })) : null,
3106
+ item.channel ? channelIcon(item.channel) : null
3107
+ ]) : null])]);
3108
+ }
3109
+ const AgentInvocationList = defineComponent({
3110
+ name: "AgentInvocationList",
3111
+ props: {
3112
+ ariaLabel: {
3113
+ default: "Agent sessions",
3114
+ type: String
3115
+ },
3116
+ continuationKey: [Number, String],
3117
+ /** Groups rows under Today, Yesterday, Previous 7 days, and Older. Requires `now`. */
3118
+ groupBy: String,
3119
+ hasMore: Boolean,
3120
+ items: {
3121
+ required: true,
3122
+ type: Array
3123
+ },
3124
+ loading: Boolean,
3125
+ now: Number,
3126
+ remainingStatuses: Array,
3127
+ retryKey: [Number, String],
3128
+ selectedId: String
3129
+ },
3130
+ emits: {
3131
+ endReached: () => true,
3132
+ select: (_item) => true
3133
+ },
3134
+ setup(props, { emit, slots }) {
3135
+ const viewport = ref(null);
3136
+ const requestedLength = ref();
3137
+ let focusedItemBeforeUpdate;
3138
+ const paginationKey = computed(() => props.items.map((item) => `${item.id}:${item.status}`).join("\0"));
3139
+ let resizeObserver;
3140
+ const requestMoreIfNeeded = () => {
3141
+ const element = viewport.value;
3142
+ const length = props.items.length;
3143
+ if (!element || element.clientHeight <= 0 || !props.hasMore || props.loading || !length || requestedLength.value === length) return false;
3144
+ if (element.scrollTop + element.clientHeight >= element.scrollHeight - invocationListPaginationThreshold) {
3145
+ requestedLength.value = length;
3146
+ emit("endReached");
3147
+ return true;
3148
+ }
3149
+ return false;
3150
+ };
3151
+ const requestMoreAutomatically = () => requestMoreIfNeeded();
3152
+ const requestMoreOnScroll = () => requestMoreIfNeeded();
3153
+ watch([
3154
+ () => props.items.length,
3155
+ paginationKey,
3156
+ () => props.hasMore,
3157
+ () => props.loading
3158
+ ], ([length, key], [previous, previousKey]) => {
3159
+ if (length < previous || length === previous && key !== previousKey) requestedLength.value = void 0;
3160
+ requestMoreAutomatically();
3161
+ }, { flush: "post" });
3162
+ watch(() => props.retryKey, () => {
3163
+ requestedLength.value = void 0;
3164
+ requestMoreIfNeeded();
3165
+ });
3166
+ watch(() => props.continuationKey, () => {
3167
+ requestedLength.value = void 0;
3168
+ requestMoreAutomatically();
3169
+ });
3170
+ const mounted = ref(false);
3171
+ onMounted(() => {
3172
+ mounted.value = true;
3173
+ requestMoreAutomatically();
3174
+ if ("ResizeObserver" in globalThis && viewport.value) {
3175
+ resizeObserver = new ResizeObserver(requestMoreAutomatically);
3176
+ resizeObserver.observe(viewport.value);
3177
+ }
3178
+ });
3179
+ onBeforeUnmount(() => resizeObserver?.disconnect());
3180
+ const select = (item) => emit("select", item);
3181
+ const rememberFocusedItem = () => {
3182
+ const element = document.activeElement;
3183
+ focusedItemBeforeUpdate = element instanceof HTMLButtonElement && element.classList.contains("vh-invocation-list__item") && viewport.value?.contains(element) && element.dataset.invocationId ? {
3184
+ element,
3185
+ id: element.dataset.invocationId
3186
+ } : void 0;
3187
+ };
3188
+ const restoreMovedItemFocus = async () => {
3189
+ const focused = focusedItemBeforeUpdate;
3190
+ focusedItemBeforeUpdate = void 0;
3191
+ if (!focused || focused.element.isConnected) return;
3192
+ await nextTick();
3193
+ const element = [...viewport.value?.querySelectorAll("[data-invocation-id]") ?? []].find((candidate) => candidate.dataset.invocationId === focused.id);
3194
+ if (!element) return;
3195
+ element.focus();
3196
+ };
3197
+ const renderRow = (item) => renderItem(item, props.selectedId, props.now, select, slots.projectIcon, slots.harness);
3198
+ const renderRows = () => {
3199
+ const busy = props.loading ? "true" : void 0;
3200
+ if (props.groupBy !== "recency" || props.now === void 0 || !mounted.value) return h("ul", {
3201
+ "aria-busy": busy,
3202
+ class: "vh-invocation-list__group-items"
3203
+ }, props.items.map(renderRow));
3204
+ return h("div", {
3205
+ "aria-busy": busy,
3206
+ class: "vh-invocation-list__groups"
3207
+ }, groupByRecency(props.items, props.now).map((group) => h("section", {
3208
+ class: "vh-invocation-list__group",
3209
+ "data-group": group.id,
3210
+ key: group.id
3211
+ }, [h("h3", { class: "vh-invocation-list__group-heading" }, [h("span", { class: "vh-invocation-list__group-label" }, group.label)]), h("ul", { class: "vh-invocation-list__group-items" }, group.items.map(renderRow))])));
3212
+ };
3213
+ return () => h("nav", {
3214
+ "aria-label": props.ariaLabel,
3215
+ class: "vh-invocation-list",
3216
+ onScroll: requestMoreOnScroll,
3217
+ onVnodeBeforeUpdate: rememberFocusedItem,
3218
+ onVnodeUpdated: restoreMovedItemFocus,
3219
+ ref: viewport
3220
+ }, [
3221
+ slots.header?.({ items: props.items }),
3222
+ props.items.length === 0 ? slots.empty?.() ?? h("p", { class: "vh-invocation-list__empty" }, "No sessions yet.") : null,
3223
+ props.items.length ? renderRows() : null,
3224
+ props.loading && props.items.length ? slots.loading?.() ?? h("p", {
3225
+ class: "vh-invocation-list__loading",
3226
+ role: "status"
3227
+ }, "Loading sessions…") : null,
3228
+ slots.footer?.({ items: props.items })
3229
+ ]);
3230
+ }
3231
+ });
3232
+ //#endregion
3233
+ export { AgentCapabilityInspector, AgentInvocation, AgentInvocationInspector, AgentInvocationList, agentInvocationContext, agentInvocationTitle };