vite-hub 0.0.4 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1281) hide show
  1. package/README.md +130 -3
  2. package/dist/_internal/agent/invocations.d.ts +2 -0
  3. package/dist/_internal/agent/invocations.js +88 -0
  4. package/dist/_internal/agent/operations.d.ts +1 -0
  5. package/dist/_internal/agent/operations.js +2 -0
  6. package/dist/_internal/agent/runtime/invocations-dev.d.ts +1 -0
  7. package/dist/_internal/agent/runtime/invocations-dev.js +2 -0
  8. package/dist/_internal/agent/runtime/process.d.ts +1 -0
  9. package/dist/_internal/agent/runtime/process.js +2 -0
  10. package/dist/_internal/agent/server/registry.d.ts +1 -0
  11. package/dist/_internal/agent/server/registry.js +2 -0
  12. package/dist/_internal/auth/runtime/console.d.ts +1 -0
  13. package/dist/_internal/auth/runtime/console.js +2 -0
  14. package/dist/_internal/blob/operations.d.ts +1 -0
  15. package/dist/_internal/blob/operations.js +2 -0
  16. package/dist/_internal/comments/operations.d.ts +1 -0
  17. package/dist/_internal/comments/operations.js +2 -0
  18. package/dist/_internal/comments/runtime/console.d.ts +1 -0
  19. package/dist/_internal/comments/runtime/console.js +2 -0
  20. package/dist/_internal/content/operations.d.ts +1 -0
  21. package/dist/_internal/content/operations.js +2 -0
  22. package/dist/_internal/content/runtime/console.d.ts +1 -0
  23. package/dist/_internal/content/runtime/console.js +2 -0
  24. package/dist/_internal/database/runtime/state.d.ts +4 -3
  25. package/dist/_internal/database/runtime/state.js +4 -2
  26. package/dist/_internal/email/operations.d.ts +1 -0
  27. package/dist/_internal/email/operations.js +2 -0
  28. package/dist/_internal/email/runtime/console.d.ts +1 -0
  29. package/dist/_internal/email/runtime/console.js +2 -0
  30. package/dist/_internal/kv/operations.d.ts +1 -0
  31. package/dist/_internal/kv/operations.js +2 -0
  32. package/dist/_internal/kv/runtime/disabled-upstash.d.ts +2 -3
  33. package/dist/_internal/kv/runtime/disabled-upstash.js +2 -1
  34. package/dist/_internal/queue/operations.d.ts +1 -0
  35. package/dist/_internal/queue/operations.js +2 -0
  36. package/dist/_internal/rate-limit/operations.d.ts +1 -0
  37. package/dist/_internal/rate-limit/operations.js +2 -0
  38. package/dist/_internal/sandbox/task/runtime/state.d.ts +1 -0
  39. package/dist/_internal/sandbox/task/runtime/state.js +2 -0
  40. package/dist/_internal/schedule/operations.d.ts +1 -0
  41. package/dist/_internal/schedule/operations.js +2 -0
  42. package/dist/_internal/schedule/runtime/kv.d.ts +1 -0
  43. package/dist/_internal/schedule/runtime/kv.js +2 -0
  44. package/dist/_internal/task/operations.d.ts +5 -0
  45. package/dist/_internal/task/operations.js +2 -0
  46. package/dist/_internal/workflow/operations.d.ts +1 -0
  47. package/dist/_internal/workflow/operations.js +2 -0
  48. package/dist/_internal/workspace/operations.d.ts +1 -0
  49. package/dist/_internal/workspace/operations.js +2 -0
  50. package/dist/access-BhTe9yuV.js +516 -0
  51. package/dist/access-CBqnsYdj.d.ts +130 -0
  52. package/dist/agent/capabilities.d.ts +12 -8
  53. package/dist/agent/capabilities.js +50 -1
  54. package/dist/agent/invocations/d1.d.ts +1 -0
  55. package/dist/agent/invocations/d1.js +2 -0
  56. package/dist/agent/invocations/database.d.ts +2 -0
  57. package/dist/agent/invocations/database.js +91 -0
  58. package/dist/agent/observability.d.ts +1 -0
  59. package/dist/agent/observability.js +2 -0
  60. package/dist/agent/process-host.d.ts +1 -0
  61. package/dist/agent/process-host.js +2 -0
  62. package/dist/agent/server/github.d.ts +1 -0
  63. package/dist/agent/server/github.js +2 -0
  64. package/dist/agent/vite.d.ts +1 -0
  65. package/dist/agent/vite.js +2 -0
  66. package/dist/agent-invocations.post-CFKMEy-h.js +432 -0
  67. package/dist/agent.d.ts +8 -3
  68. package/dist/agent.js +25 -7
  69. package/dist/agents-BNmuN4Qa.d.ts +99 -0
  70. package/dist/agents-CVehuMFA.js +118 -0
  71. package/dist/auth/console-runtime.d.ts +1 -0
  72. package/dist/auth/console-runtime.js +2 -0
  73. package/dist/auth/console.d.ts +1 -0
  74. package/dist/auth/console.js +2 -0
  75. package/dist/auth/presets.d.ts +1 -0
  76. package/dist/auth/presets.js +2 -0
  77. package/dist/auth-BSSM-qh0.js +700 -0
  78. package/dist/auth-CG8tmgH7.d.ts +106 -0
  79. package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +50 -0
  80. package/dist/auth-inline-config--vlclzm3.js +18 -0
  81. package/dist/auth-inline-config-R6q_4Iwo.d.ts +30 -0
  82. package/dist/auth-path-B7Ssonj-.js +49 -0
  83. package/dist/bin.d.ts +1 -1
  84. package/dist/bin.js +300 -10
  85. package/dist/blob/client.d.ts +1 -0
  86. package/dist/blob/client.js +2 -0
  87. package/dist/blob/media.d.ts +1 -0
  88. package/dist/blob/media.js +2 -0
  89. package/dist/blob/vue.d.ts +1 -0
  90. package/dist/blob/vue.js +2 -0
  91. package/dist/blob-D9v5Djxw.d.ts +7 -0
  92. package/dist/cloudflare-env-CIZCKabz.js +70 -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-overlay/loader.BcGn0Hsk.js +1 -0
  112. package/dist/comments-overlay/overlay.D7vmaSrE.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/http.d.ts +1 -0
  122. package/dist/connections/http.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-client.d.ts +8 -0
  128. package/dist/console/auth-client.js +6 -0
  129. package/dist/console/auth-cloudflare-access.d.ts +2 -0
  130. package/dist/console/auth-cloudflare-access.js +116 -0
  131. package/dist/console/auth-inline.d.ts +6 -0
  132. package/dist/console/auth-inline.js +107 -0
  133. package/dist/console/auth.d.ts +2 -0
  134. package/dist/console/auth.js +2 -0
  135. package/dist/console/runtime/client/appearance.d.ts +62 -0
  136. package/dist/console/runtime/client/appearance.js +87 -0
  137. package/dist/console/runtime/client/auth-management.ts +81 -0
  138. package/dist/console/runtime/client/blob-media.d.ts +46 -0
  139. package/dist/console/runtime/client/blob-media.js +257 -0
  140. package/dist/console/runtime/client/build.d.ts +14 -0
  141. package/dist/console/runtime/client/build.js +68 -0
  142. package/dist/console/runtime/client/connections-management.d.ts +68 -0
  143. package/dist/console/runtime/client/connections-management.js +201 -0
  144. package/dist/console/runtime/client/documents.d.ts +430 -0
  145. package/dist/console/runtime/client/documents.js +501 -0
  146. package/dist/console/runtime/client/editor.d.ts +82 -0
  147. package/dist/console/runtime/client/editor.js +248 -0
  148. package/dist/console/runtime/client/env-groups.d.ts +28 -0
  149. package/dist/console/runtime/client/env-groups.js +39 -0
  150. package/dist/console/runtime/client/env-management.d.ts +20 -0
  151. package/dist/console/runtime/client/env-management.js +84 -0
  152. package/dist/console/runtime/client/env-status.d.ts +6 -0
  153. package/dist/console/runtime/client/env-status.js +10 -0
  154. package/dist/console/runtime/client/format.d.ts +32 -0
  155. package/dist/console/runtime/client/format.js +109 -0
  156. package/dist/console/runtime/client/invocation-deletion.d.ts +17 -0
  157. package/dist/console/runtime/client/invocation-deletion.js +25 -0
  158. package/dist/console/runtime/client/invocation.d.ts +28 -0
  159. package/dist/console/runtime/client/invocation.js +81 -0
  160. package/dist/console/runtime/client/live.d.ts +69 -0
  161. package/dist/console/runtime/client/live.js +165 -0
  162. package/dist/console/runtime/client/mcp.d.ts +9 -0
  163. package/dist/console/runtime/client/mcp.js +14 -0
  164. package/dist/console/runtime/client/media-library.d.ts +207 -0
  165. package/dist/console/runtime/client/media-library.js +243 -0
  166. package/dist/console/runtime/client/media-uploads.d.ts +33 -0
  167. package/dist/console/runtime/client/media-uploads.js +97 -0
  168. package/dist/console/runtime/client/media.d.ts +73 -0
  169. package/dist/console/runtime/client/media.js +13 -0
  170. package/dist/console/runtime/client/operation-view.d.ts +17 -0
  171. package/dist/console/runtime/client/operation-view.js +85 -0
  172. package/dist/console/runtime/client/presence.d.ts +102 -0
  173. package/dist/console/runtime/client/presence.js +269 -0
  174. package/dist/console/runtime/client/preview.d.ts +78 -0
  175. package/dist/console/runtime/client/preview.js +115 -0
  176. package/dist/console/runtime/client/problem.d.ts +19 -0
  177. package/dist/console/runtime/client/problem.js +59 -0
  178. package/dist/console/runtime/client/publish.d.ts +12 -0
  179. package/dist/console/runtime/client/publish.js +18 -0
  180. package/dist/console/runtime/client/rate-limit.d.ts +36 -0
  181. package/dist/console/runtime/client/rate-limit.js +96 -0
  182. package/dist/console/runtime/client/read-only.d.ts +9 -0
  183. package/dist/console/runtime/client/read-only.js +12 -0
  184. package/dist/console/runtime/client/request.d.ts +61 -8
  185. package/dist/console/runtime/client/request.js +394 -56
  186. package/dist/console/runtime/client/schedule-run.d.ts +13 -0
  187. package/dist/console/runtime/client/schedule-run.js +47 -0
  188. package/dist/console/runtime/client/schema-form.d.ts +2 -0
  189. package/dist/console/runtime/client/schema-form.js +296 -0
  190. package/dist/console/runtime/client/sections.d.ts +22 -8
  191. package/dist/console/runtime/client/sections.js +47 -4
  192. package/dist/console/runtime/client/sign-in.d.ts +21 -0
  193. package/dist/console/runtime/client/sign-in.js +16 -0
  194. package/dist/console/runtime/client/time.d.ts +29 -3
  195. package/dist/console/runtime/client/time.js +99 -1
  196. package/dist/console/runtime/client/toast.d.ts +39 -0
  197. package/dist/console/runtime/client/toast.js +35 -0
  198. package/dist/console/runtime/client/workflow.d.ts +20 -0
  199. package/dist/console/runtime/client/workflow.js +79 -0
  200. package/dist/console/runtime/components/console-agent-list.ts +61 -0
  201. package/dist/console/runtime/components/console-app.vue +768 -463
  202. package/dist/console/runtime/components/console-auth-action.vue +239 -0
  203. package/dist/console/runtime/components/console-auth-activity.vue +166 -0
  204. package/dist/console/runtime/components/console-auth-chart.vue +102 -0
  205. package/dist/console/runtime/components/console-auth-detail.vue +406 -0
  206. package/dist/console/runtime/components/console-auth-event-list.vue +79 -0
  207. package/dist/console/runtime/components/console-auth-event-setup.vue +39 -0
  208. package/dist/console/runtime/components/console-auth-overview.vue +107 -0
  209. package/dist/console/runtime/components/console-auth-user-events.vue +65 -0
  210. package/dist/console/runtime/components/console-auth.vue +649 -0
  211. package/dist/console/runtime/components/console-blob-detail.vue +93 -0
  212. package/dist/console/runtime/components/console-blob.vue +106 -301
  213. package/dist/console/runtime/components/console-comark-component.vue +108 -0
  214. package/dist/console/runtime/components/console-connect-agent.vue +59 -0
  215. package/dist/console/runtime/components/console-connection-state.vue +43 -0
  216. package/dist/console/runtime/components/console-connection.ts +18 -0
  217. package/dist/console/runtime/components/console-connections-activity.vue +76 -0
  218. package/dist/console/runtime/components/console-connections-approvals.vue +169 -0
  219. package/dist/console/runtime/components/console-connections-details.vue +295 -0
  220. package/dist/console/runtime/components/console-connections.vue +296 -0
  221. package/dist/console/runtime/components/console-database-model.ts +51 -6
  222. package/dist/console/runtime/components/console-database.vue +268 -335
  223. package/dist/console/runtime/components/console-definitions.vue +371 -305
  224. package/dist/console/runtime/components/console-document-dashboard.vue +492 -0
  225. package/dist/console/runtime/components/console-document-diff.vue +43 -0
  226. package/dist/console/runtime/components/console-document-editor.vue +2605 -0
  227. package/dist/console/runtime/components/console-document-history.vue +118 -0
  228. package/dist/console/runtime/components/console-document-list.vue +577 -0
  229. package/dist/console/runtime/components/console-document-preview.vue +422 -0
  230. package/dist/console/runtime/components/console-document-settings.vue +108 -0
  231. package/dist/console/runtime/components/console-documents.vue +480 -0
  232. package/dist/console/runtime/components/console-env-access.vue +151 -0
  233. package/dist/console/runtime/components/console-env-activity.vue +89 -0
  234. package/dist/console/runtime/components/console-env-details.vue +68 -0
  235. package/dist/console/runtime/components/console-env-managed.vue +203 -0
  236. package/dist/console/runtime/components/console-env.vue +301 -0
  237. package/dist/console/runtime/components/console-frame.vue +243 -1
  238. package/dist/console/runtime/components/console-home.vue +548 -152
  239. package/dist/console/runtime/components/console-invocation-composer.vue +159 -0
  240. package/dist/console/runtime/components/console-kv.vue +219 -223
  241. package/dist/console/runtime/components/console-loading.vue +28 -0
  242. package/dist/console/runtime/components/console-mark.vue +3 -8
  243. package/dist/console/runtime/components/console-markdown-editor.vue +705 -0
  244. package/dist/console/runtime/components/console-media-browser.vue +986 -0
  245. package/dist/console/runtime/components/console-media-crops.vue +167 -0
  246. package/dist/console/runtime/components/console-media-detail.vue +282 -0
  247. package/dist/console/runtime/components/console-media-dialog.vue +74 -0
  248. package/dist/console/runtime/components/console-media-field.vue +185 -0
  249. package/dist/console/runtime/components/console-media-focal.vue +137 -0
  250. package/dist/console/runtime/components/console-media-library.vue +125 -0
  251. package/dist/console/runtime/components/console-media-move.vue +160 -0
  252. package/dist/console/runtime/components/console-media-picker.vue +167 -0
  253. package/dist/console/runtime/components/console-media-uploads.vue +72 -0
  254. package/dist/console/runtime/components/console-new-chat.ts +27 -0
  255. package/dist/console/runtime/components/console-operation-view.vue +114 -0
  256. package/dist/console/runtime/components/console-page-header.vue +50 -0
  257. package/dist/console/runtime/components/console-page-toolbar.vue +28 -0
  258. package/dist/console/runtime/components/console-presence-avatars.vue +73 -0
  259. package/dist/console/runtime/components/console-property-list.vue +36 -0
  260. package/dist/console/runtime/components/console-property-row.vue +58 -0
  261. package/dist/console/runtime/components/console-rail.vue +392 -0
  262. package/dist/console/runtime/components/console-rate-limit.vue +167 -0
  263. package/dist/console/runtime/components/console-relative-time.vue +74 -0
  264. package/dist/console/runtime/components/console-schema-field.vue +504 -0
  265. package/dist/console/runtime/components/console-schema-form.vue +77 -0
  266. package/dist/console/runtime/components/console-schema-list.vue +158 -0
  267. package/dist/console/runtime/components/console-search.vue +473 -57
  268. package/dist/console/runtime/components/console-section-icon.vue +21 -0
  269. package/dist/console/runtime/components/console-seo-panel.vue +261 -0
  270. package/dist/console/runtime/components/console-session-actions.vue +160 -0
  271. package/dist/console/runtime/components/console-session-bootstrap.ts +3 -1
  272. package/dist/console/runtime/components/console-session-cancel.vue +90 -0
  273. package/dist/console/runtime/components/console-session-code-language.ts +32 -0
  274. package/dist/console/runtime/components/console-session-code-preview.vue +57 -39
  275. package/dist/console/runtime/components/console-session-inspector.vue +221 -184
  276. package/dist/console/runtime/components/console-session-loading.vue +7 -12
  277. package/dist/console/runtime/components/console-session-navbar.vue +70 -23
  278. package/dist/console/runtime/components/console-session-trace.vue +9 -11
  279. package/dist/console/runtime/components/console-session.css +353 -90
  280. package/dist/console/runtime/components/console-setup-hint.vue +20 -0
  281. package/dist/console/runtime/components/console-state.vue +165 -0
  282. package/dist/console/runtime/components/console-status.vue +25 -0
  283. package/dist/console/runtime/components/console-toaster.vue +66 -0
  284. package/dist/console/runtime/components/console-usage-chart.vue +208 -0
  285. package/dist/console/runtime/components/console-usage-model-detail.vue +144 -0
  286. package/dist/console/runtime/components/console-usage-model.ts +368 -0
  287. package/dist/console/runtime/components/console-usage-share-bar.vue +48 -0
  288. package/dist/console/runtime/components/console-usage.vue +781 -498
  289. package/dist/console/runtime/components/console-value.vue +35 -0
  290. package/dist/console/runtime/components/console-workflow-actions.vue +183 -0
  291. package/dist/console/runtime/components/console-workspace-file.ts +12 -0
  292. package/dist/console/runtime/components/console-workspace-history.vue +77 -0
  293. package/dist/console/runtime/components/console-wrap.ts +10 -0
  294. package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +166 -0
  295. package/dist/console/runtime/components/invocation/agent-invocation-list.ts +276 -0
  296. package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +120 -0
  297. package/dist/console/runtime/components/invocation/agent-invocation.ts +1968 -0
  298. package/dist/console/runtime/components/invocation/index.ts +8 -0
  299. package/dist/console/runtime/components/invocation/internal/brand-icons.ts +65 -0
  300. package/dist/console/runtime/components/invocation/internal/channel-icon.ts +51 -0
  301. package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +663 -0
  302. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +148 -0
  303. package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +162 -0
  304. package/dist/console/runtime/components/invocation/internal/payload-text.ts +29 -0
  305. package/dist/console/runtime/components/invocation/internal/runtime-type.ts +61 -0
  306. package/dist/console/runtime/components/invocation/internal/url.ts +8 -0
  307. package/dist/console/runtime/components/invocation/invocation-display.ts +56 -0
  308. package/dist/console/runtime/components/invocation/invocation.css +2748 -0
  309. package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +1 -0
  310. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +1 -0
  311. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +1 -0
  312. package/dist/console/runtime/components/invocation/types.ts +89 -0
  313. package/dist/console/runtime/console-route.d.ts +15 -9
  314. package/dist/console/runtime/console-route.js +36 -24
  315. package/dist/console/runtime/definitions.d.ts +2 -2
  316. package/dist/console/runtime/definitions.js +290 -11
  317. package/dist/console/runtime/page/loader.js +22 -0
  318. package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +1 -0
  319. package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +1 -0
  320. package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +1 -0
  321. package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +1 -0
  322. package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +1 -0
  323. package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +1 -0
  324. package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +1 -0
  325. package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +1 -0
  326. package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +1 -0
  327. package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +111 -0
  328. package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +1 -0
  329. package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +1 -0
  330. package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +1 -0
  331. package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +1 -0
  332. package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +1 -0
  333. package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +1 -0
  334. package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +1 -0
  335. package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +1 -0
  336. package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +1 -0
  337. package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +1 -0
  338. package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +1 -0
  339. package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +1 -0
  340. package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +4 -0
  341. package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +1 -0
  342. package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +1 -0
  343. package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +1 -0
  344. package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +1 -0
  345. package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +1 -0
  346. package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +1 -0
  347. package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +1 -0
  348. package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +1 -0
  349. package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +1 -0
  350. package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +1 -0
  351. package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +1 -0
  352. package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +1 -0
  353. package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +1 -0
  354. package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +1 -0
  355. package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +1 -0
  356. package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +1 -0
  357. package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +1 -0
  358. package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +1 -0
  359. package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +1 -0
  360. package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +1 -0
  361. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +1 -0
  362. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +1 -0
  363. package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +1 -0
  364. package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +1 -0
  365. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +1 -0
  366. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +1 -0
  367. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +1 -0
  368. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +1 -0
  369. package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +1 -0
  370. package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +1 -0
  371. package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +1 -0
  372. package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +2 -0
  373. package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +1 -0
  374. package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +85 -0
  375. package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +2 -0
  376. package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +1 -0
  377. package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +1 -0
  378. package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +6 -0
  379. package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +1 -0
  380. package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +1 -0
  381. package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +314 -0
  382. package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +1 -0
  383. package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +2 -0
  384. package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +1 -0
  385. package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +1 -0
  386. package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +1 -0
  387. package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +1 -0
  388. package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +1 -0
  389. package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +1 -0
  390. package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +1 -0
  391. package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +1 -0
  392. package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +5 -0
  393. package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +1 -0
  394. package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +1 -0
  395. package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +1 -0
  396. package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +12 -0
  397. package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +1 -0
  398. package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +1 -0
  399. package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +1 -0
  400. package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +1 -0
  401. package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +1 -0
  402. package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +1 -0
  403. package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +1 -0
  404. package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +1 -0
  405. package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +1 -0
  406. package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +1 -0
  407. package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +1 -0
  408. package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +1 -0
  409. package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +1 -0
  410. package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +1 -0
  411. package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +1 -0
  412. package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +141 -0
  413. package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +1 -0
  414. package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +1 -0
  415. package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +1 -0
  416. package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +1 -0
  417. package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +1 -0
  418. package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +1266 -0
  419. package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +1 -0
  420. package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +1 -0
  421. package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +1 -0
  422. package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +1 -0
  423. package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +1 -0
  424. package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +1 -0
  425. package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +1 -0
  426. package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +1 -0
  427. package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +1 -0
  428. package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +1 -0
  429. package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +1 -0
  430. package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +1 -0
  431. package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +1 -0
  432. package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +1 -0
  433. package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +1 -0
  434. package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +1 -0
  435. package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +1 -0
  436. package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +1 -0
  437. package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +1 -0
  438. package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +1 -0
  439. package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +1 -0
  440. package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +1 -0
  441. package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +1 -0
  442. package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +1 -0
  443. package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +1 -0
  444. package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +1 -0
  445. package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +1 -0
  446. package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +1 -0
  447. package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +1 -0
  448. package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +1 -0
  449. package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +1 -0
  450. package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +1 -0
  451. package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +1 -0
  452. package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +1 -0
  453. package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +1 -0
  454. package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +1 -0
  455. package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +1 -0
  456. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +1 -0
  457. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +1 -0
  458. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +1 -0
  459. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +1 -0
  460. package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +1 -0
  461. package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +1 -0
  462. package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +257 -0
  463. package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +1 -0
  464. package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +1 -0
  465. package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +1 -0
  466. package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +1 -0
  467. package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +1 -0
  468. package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +1 -0
  469. package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +1 -0
  470. package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +1 -0
  471. package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +1 -0
  472. package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +1 -0
  473. package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +1 -0
  474. package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +1 -0
  475. package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +1 -0
  476. package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +1 -0
  477. package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +1 -0
  478. package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +1 -0
  479. package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +1 -0
  480. package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +1 -0
  481. package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +1 -0
  482. package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +1 -0
  483. package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +1 -0
  484. package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +1 -0
  485. package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +1 -0
  486. package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +1 -0
  487. package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +1 -0
  488. package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +1 -0
  489. package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +1 -0
  490. package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +1 -0
  491. package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +168 -0
  492. package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +1 -0
  493. package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +1 -0
  494. package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +1 -0
  495. package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +1 -0
  496. package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +1 -0
  497. package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +1 -0
  498. package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +1 -0
  499. package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +1 -0
  500. package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +1 -0
  501. package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +1 -0
  502. package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +1 -0
  503. package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +1 -0
  504. package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +1 -0
  505. package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +1 -0
  506. package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +1 -0
  507. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +1 -0
  508. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +1 -0
  509. package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +1 -0
  510. package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +1 -0
  511. package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +1 -0
  512. package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +1 -0
  513. package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +1 -0
  514. package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +1 -0
  515. package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +1 -0
  516. package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +1 -0
  517. package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +1 -0
  518. package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +8 -0
  519. package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +1 -0
  520. package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +1 -0
  521. package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +1 -0
  522. package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +1 -0
  523. package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +1 -0
  524. package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +1 -0
  525. package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +1 -0
  526. package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +1 -0
  527. package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +1 -0
  528. package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +1 -0
  529. package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +1 -0
  530. package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +1 -0
  531. package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +1 -0
  532. package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +1 -0
  533. package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +1 -0
  534. package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +1 -0
  535. package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +1 -0
  536. package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +1 -0
  537. package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +1 -0
  538. package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +1 -0
  539. package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +1 -0
  540. package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +1 -0
  541. package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +1 -0
  542. package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +1 -0
  543. package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +1 -0
  544. package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +1 -0
  545. package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +1 -0
  546. package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +1 -0
  547. package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +1 -0
  548. package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +1 -0
  549. package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +4 -0
  550. package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +1 -0
  551. package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +3 -0
  552. package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +1 -0
  553. package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +1 -0
  554. package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +1 -0
  555. package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +3 -0
  556. package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +1 -0
  557. package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +1 -0
  558. package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +1 -0
  559. package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +1 -0
  560. package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +4 -0
  561. package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +1 -0
  562. package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +1 -0
  563. package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +1 -0
  564. package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +1 -0
  565. package/dist/console/runtime/public/console/console-QjK_HKoM.css +2 -0
  566. package/dist/console/runtime/public/console/console-j0_7kmR5.js +21 -0
  567. package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +1 -0
  568. package/dist/console/runtime/public/skills/index.json +46 -0
  569. package/dist/console/runtime/public/skills/vitehub/SKILL.md +88 -0
  570. package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +4 -0
  571. package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +36 -0
  572. package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +30 -0
  573. package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +26 -0
  574. package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +29 -0
  575. package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +36 -0
  576. package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +16 -0
  577. package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +13 -0
  578. package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +17 -0
  579. package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +13 -0
  580. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +13 -0
  581. package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +16 -0
  582. package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +13 -0
  583. package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +13 -0
  584. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +13 -0
  585. package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +13 -0
  586. package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +13 -0
  587. package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +13 -0
  588. package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +16 -0
  589. package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +13 -0
  590. package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +19 -0
  591. package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +13 -0
  592. package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox.md +13 -0
  593. package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +13 -0
  594. package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +13 -0
  595. package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +13 -0
  596. package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +13 -0
  597. package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +13 -0
  598. package/dist/console/runtime/public/skills/vitehub/references/project-patterns.md +19 -0
  599. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +61 -0
  600. package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +29 -0
  601. package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +17 -0
  602. package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
  603. package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +39 -0
  604. package/dist/console/runtime/public/skills/vitehub/references/workspaces-sources-access.md +26 -0
  605. package/dist/console/runtime/rpc.d.ts +27 -26
  606. package/dist/console/runtime/rpc.js +2 -14
  607. package/dist/console/runtime/sections.d.ts +2 -2
  608. package/dist/console/runtime/sections.js +280 -55
  609. package/dist/console/runtime/server/agents.get.d.ts +11 -3
  610. package/dist/console/runtime/server/agents.get.js +18 -7
  611. package/dist/console/runtime/server/auth-manage.d.ts +7 -0
  612. package/dist/console/runtime/server/auth-manage.js +155 -0
  613. package/dist/console/runtime/server/blob.d.ts +1 -1
  614. package/dist/console/runtime/server/blob.js +3 -2
  615. package/dist/console/runtime/server/channel-replay.d.ts +11 -0
  616. package/dist/console/runtime/server/channel-replay.js +80 -0
  617. package/dist/console/runtime/server/client.get.d.ts +3 -0
  618. package/dist/console/runtime/server/client.get.js +11 -0
  619. package/dist/console/runtime/server/database.d.ts +1 -1
  620. package/dist/console/runtime/server/database.get.d.ts +23 -4
  621. package/dist/console/runtime/server/database.get.js +49 -18
  622. package/dist/console/runtime/server/database.js +3 -2
  623. package/dist/console/runtime/server/definitions.d.ts +2 -2
  624. package/dist/console/runtime/server/definitions.get.d.ts +9 -8
  625. package/dist/console/runtime/server/definitions.get.js +57 -10
  626. package/dist/console/runtime/server/definitions.js +87 -12
  627. package/dist/console/runtime/server/documents.d.ts +2 -0
  628. package/dist/console/runtime/server/documents.js +111 -0
  629. package/dist/console/runtime/server/env-manage.d.ts +5 -0
  630. package/dist/console/runtime/server/env-manage.js +10 -0
  631. package/dist/console/runtime/server/env.d.ts +18 -0
  632. package/dist/console/runtime/server/env.get.d.ts +9 -0
  633. package/dist/console/runtime/server/env.get.js +29 -0
  634. package/dist/console/runtime/server/env.js +42 -0
  635. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +5 -3
  636. package/dist/console/runtime/server/invocation-capabilities.get.js +13 -5
  637. package/dist/console/runtime/server/invocation-workspace.get.d.ts +42 -0
  638. package/dist/console/runtime/server/invocation-workspace.get.js +243 -0
  639. package/dist/console/runtime/server/invocation.get.d.ts +36 -25
  640. package/dist/console/runtime/server/invocation.get.js +117 -10
  641. package/dist/console/runtime/server/invocations.get.d.ts +4 -3
  642. package/dist/console/runtime/server/invocations.get.js +30 -28
  643. package/dist/console/runtime/server/logs.get.d.ts +13 -0
  644. package/dist/console/runtime/server/logs.get.js +45 -0
  645. package/dist/console/runtime/server/mcp-authorization-server.d.ts +11 -0
  646. package/dist/console/runtime/server/mcp-authorization-server.js +71 -0
  647. package/dist/console/runtime/server/mcp-discovery.d.ts +7 -0
  648. package/dist/console/runtime/server/mcp-discovery.js +20 -0
  649. package/dist/console/runtime/server/mcp-metadata.d.ts +11 -0
  650. package/dist/console/runtime/server/mcp-metadata.js +54 -0
  651. package/dist/console/runtime/server/mcp.d.ts +16 -0
  652. package/dist/console/runtime/server/mcp.js +364 -0
  653. package/dist/console/runtime/server/page-session.d.ts +2 -0
  654. package/dist/console/runtime/server/page-session.js +5 -0
  655. package/dist/console/runtime/server/page.get.d.ts +3 -5
  656. package/dist/console/runtime/server/page.get.js +29 -13
  657. package/dist/console/runtime/server/rpc.d.ts +22 -0
  658. package/dist/console/runtime/server/rpc.js +215 -0
  659. package/dist/console/runtime/server/schedule-run.d.ts +36 -0
  660. package/dist/console/runtime/server/schedule-run.js +213 -0
  661. package/dist/console/runtime/server/search.get.d.ts +5 -4
  662. package/dist/console/runtime/server/search.get.js +103 -2
  663. package/dist/console/runtime/server/sections.d.ts +4 -2
  664. package/dist/console/runtime/server/sections.get.d.ts +17 -4
  665. package/dist/console/runtime/server/sections.get.js +22 -8
  666. package/dist/console/runtime/server/sections.js +4 -16
  667. package/dist/console/runtime/server/sign-in.d.ts +5 -0
  668. package/dist/console/runtime/server/sign-in.js +11 -0
  669. package/dist/console/runtime/server/status.get.d.ts +13 -0
  670. package/dist/console/runtime/server/status.get.js +40 -0
  671. package/dist/console/runtime/server/usage.get.d.ts +4 -3
  672. package/dist/console/runtime/server/usage.get.js +75 -20
  673. package/dist/console/server.d.ts +22 -7
  674. package/dist/console/server.js +23 -17
  675. package/dist/console/ui.d.ts +201 -0
  676. package/dist/console/ui.js +3215 -0
  677. package/dist/console.d.ts +3 -2
  678. package/dist/content/client.d.ts +1 -0
  679. package/dist/content/client.js +2 -0
  680. package/dist/content/database.d.ts +1 -0
  681. package/dist/content/database.js +2 -0
  682. package/dist/content/editor.d.ts +1 -0
  683. package/dist/content/editor.js +2 -0
  684. package/dist/content/presets/cms.d.ts +2 -0
  685. package/dist/content/presets/cms.js +2 -0
  686. package/dist/content/realtime.d.ts +1 -0
  687. package/dist/content/realtime.js +2 -0
  688. package/dist/content.d.ts +2 -0
  689. package/dist/content.js +3 -0
  690. package/dist/database/drizzle.d.ts +1 -16
  691. package/dist/database/drizzle.js +1 -8
  692. package/dist/database-DLPk6HVu.d.ts +7 -0
  693. package/dist/database-hyYo7JVD.d.ts +11 -0
  694. package/dist/definitions-BJGSpYGa.d.ts +209 -0
  695. package/dist/definitions-Y0pIwSQm.d.ts +19 -0
  696. package/dist/diagnostics-YTWM3K3t.js +74 -0
  697. package/dist/diagnostics-lT85pbVx.d.ts +6 -0
  698. package/dist/doctor.d.ts +8 -0
  699. package/dist/doctor.js +417 -0
  700. package/dist/document-metadata-nXusaMSq.js +6 -0
  701. package/dist/documents-BRt3-fIu.d.ts +72 -0
  702. package/dist/env/auth.d.ts +1 -0
  703. package/dist/env/auth.js +2 -0
  704. package/dist/env/bridge.d.ts +1 -0
  705. package/dist/env/bridge.js +2 -0
  706. package/dist/env/database.d.ts +1 -0
  707. package/dist/env/database.js +2 -0
  708. package/dist/env/http.d.ts +1 -0
  709. package/dist/env/http.js +2 -0
  710. package/dist/env/seal.d.ts +1 -0
  711. package/dist/env/seal.js +2 -0
  712. package/dist/error-diagnostics-n7V-_SPy.js +160 -0
  713. package/dist/error-diagnostics.ts +162 -0
  714. package/dist/gateways.d.ts +1 -0
  715. package/dist/gateways.js +2 -0
  716. package/dist/h3-v1-request-DDGXJ9E7.js +166 -0
  717. package/dist/index-CWk5rJOo.d.ts +247 -0
  718. package/dist/index.d.ts +3 -2
  719. package/dist/index.js +1 -2
  720. package/dist/internal-Ca7DYHpa.js +311 -0
  721. package/dist/internal-VvXn0bX4.d.ts +25 -0
  722. package/dist/invocations-DkjhdkpT.js +1151 -0
  723. package/dist/invocations-TvN9ux06.d.ts +47 -0
  724. package/dist/logs/host.d.ts +6 -0
  725. package/dist/logs/host.js +16 -0
  726. package/dist/logs/memory.d.ts +18 -0
  727. package/dist/logs/memory.js +85 -0
  728. package/dist/logs/source.d.ts +57 -0
  729. package/dist/logs/source.js +57 -0
  730. package/dist/logs.d.ts +4 -0
  731. package/dist/logs.js +4 -0
  732. package/dist/loopback-DAr1IFQP.js +43 -0
  733. package/dist/markdown-template/file.d.ts +1 -0
  734. package/dist/markdown-template/file.js +2 -0
  735. package/dist/media-BBybn3NP.js +512 -0
  736. package/dist/nuxt.d.ts +6 -57
  737. package/dist/nuxt.js +683 -232
  738. package/dist/operation-contributions-BXHKgT_w.d.ts +18 -0
  739. package/dist/operations-4uDh4zah.js +38 -0
  740. package/dist/operations-7RHOMAHT.js +455 -0
  741. package/dist/operations-Bgklf9hM.d.ts +149 -0
  742. package/dist/operations-CwqEItfA.js +468 -0
  743. package/dist/operations.d.ts +2 -0
  744. package/dist/operations.js +2 -0
  745. package/dist/owned-paths-BnjT0FhU.js +15 -0
  746. package/dist/package-BsfDnNm8.js +1119 -0
  747. package/dist/page-tools-B3g4CQ5c.js +402 -0
  748. package/dist/page-tools-C5dufxVz.d.ts +16 -0
  749. package/dist/page-tools-shared-D-amu6sx.js +53 -0
  750. package/dist/presets/babysitter/server.d.ts +1 -0
  751. package/dist/presets/babysitter/server.js +2 -0
  752. package/dist/presets/babysitter.d.ts +1 -0
  753. package/dist/presets/babysitter.js +2 -0
  754. package/dist/presets/labeller.d.ts +1 -0
  755. package/dist/presets/labeller.js +2 -0
  756. package/dist/presets/workspace.d.ts +2 -0
  757. package/dist/presets/workspace.js +2 -0
  758. package/dist/project-registry-BT7RcCcQ.js +39 -0
  759. package/dist/registry-dSdI2Oa3.js +142 -0
  760. package/dist/request-BT6g-Fwf.js +326 -0
  761. package/dist/request-DOvvVgpI.d.ts +52 -0
  762. package/dist/retention-DBXuVtQL.js +257 -0
  763. package/dist/rolldown-runtime-8H4AJuhK.js +14 -0
  764. package/dist/runtime/h3.d.ts +2 -0
  765. package/dist/runtime/h3.js +2 -0
  766. package/dist/runtime-DPqC3MTX.js +60 -0
  767. package/dist/sandbox/ssh.d.ts +1 -0
  768. package/dist/sandbox/ssh.js +2 -0
  769. package/dist/sandbox/task.d.ts +1 -0
  770. package/dist/sandbox/task.js +2 -0
  771. package/dist/scan-module-TmHMoGKw.js +148 -0
  772. package/dist/schedule/runtime/kv.d.ts +1 -0
  773. package/dist/schedule/runtime/kv.js +2 -0
  774. package/dist/schema-form-C-fy3xaU.d.ts +79 -0
  775. package/dist/secret-DrgWMRms.js +47 -0
  776. package/dist/sections-BVtKNenQ.js +108 -0
  777. package/dist/sections-C985LlW2.d.ts +31 -0
  778. package/dist/sections-Drj-o4_z.d.ts +141 -0
  779. package/dist/source/files.d.ts +1 -0
  780. package/dist/source/files.js +2 -0
  781. package/dist/source/server.d.ts +1 -24
  782. package/dist/source/server.js +1 -24
  783. package/dist/source/vite.d.ts +4 -5
  784. package/dist/source/vite.js +3 -1
  785. package/dist/source.d.ts +1 -65
  786. package/dist/source.js +2 -103
  787. package/dist/src-CaqWiza-.js +7910 -0
  788. package/dist/task.d.ts +3 -0
  789. package/dist/task.js +2 -0
  790. package/dist/types-BsuwNk3q.js +256 -0
  791. package/dist/ui/attachment.d.ts +1 -0
  792. package/dist/ui/attachment.js +2 -0
  793. package/dist/ui/avatar-stack.d.ts +1 -0
  794. package/dist/ui/avatar-stack.js +2 -0
  795. package/dist/ui/bubble.d.ts +1 -0
  796. package/dist/ui/bubble.js +2 -0
  797. package/dist/ui/chat-message.d.ts +1 -0
  798. package/dist/ui/chat-message.js +2 -0
  799. package/dist/ui/chat-session.d.ts +1 -0
  800. package/dist/ui/chat-session.js +2 -0
  801. package/dist/ui/chat.d.ts +1 -0
  802. package/dist/ui/chat.js +2 -0
  803. package/dist/ui/code-block.d.ts +1 -0
  804. package/dist/ui/code-block.js +2 -0
  805. package/dist/ui/code-view.d.ts +1 -0
  806. package/dist/ui/code-view.js +2 -0
  807. package/dist/ui/comments.d.ts +1 -0
  808. package/dist/ui/comments.js +2 -0
  809. package/dist/ui/connection-status.d.ts +1 -0
  810. package/dist/ui/connection-status.js +2 -0
  811. package/dist/ui/file-diff.d.ts +1 -0
  812. package/dist/ui/file-diff.js +2 -0
  813. package/dist/ui/file-tree.d.ts +1 -0
  814. package/dist/ui/file-tree.js +2 -0
  815. package/dist/ui/file-view.d.ts +1 -0
  816. package/dist/ui/file-view.js +2 -0
  817. package/dist/ui/markdown.d.ts +1 -0
  818. package/dist/ui/markdown.js +2 -0
  819. package/dist/ui/marker.d.ts +1 -0
  820. package/dist/ui/marker.js +2 -0
  821. package/dist/ui/message-parts.d.ts +1 -0
  822. package/dist/ui/message-parts.js +2 -0
  823. package/dist/ui/message.d.ts +1 -0
  824. package/dist/ui/message.js +2 -0
  825. package/dist/ui/multi-file-diff.d.ts +1 -0
  826. package/dist/ui/multi-file-diff.js +2 -0
  827. package/dist/ui/patch-diff.d.ts +1 -0
  828. package/dist/ui/patch-diff.js +2 -0
  829. package/dist/ui/prompt-input.d.ts +1 -0
  830. package/dist/ui/prompt-input.js +2 -0
  831. package/dist/ui/styles.css +2134 -2034
  832. package/dist/ui/sync-status.d.ts +1 -0
  833. package/dist/ui/sync-status.js +2 -0
  834. package/dist/ui/tool-list.d.ts +1 -0
  835. package/dist/ui/tool-list.js +2 -0
  836. package/dist/ui/trace-run.d.ts +1 -0
  837. package/dist/ui/trace-run.js +2 -0
  838. package/dist/ui/trace.d.ts +1 -0
  839. package/dist/ui/trace.js +2 -0
  840. package/dist/ui/unresolved-file.d.ts +1 -0
  841. package/dist/ui/unresolved-file.js +2 -0
  842. package/dist/usage-CoQXs5nW.d.ts +22 -0
  843. package/dist/workspace/blob-database.d.ts +1 -0
  844. package/dist/workspace/blob-database.js +2 -0
  845. package/package.json +1326 -197
  846. package/dist/_internal/sandbox/runtime/state.d.ts +0 -1
  847. package/dist/_internal/sandbox/runtime/state.js +0 -2
  848. package/dist/_internal/schedule/runtime/driver.d.ts +0 -1
  849. package/dist/_internal/schedule/runtime/driver.js +0 -2
  850. package/dist/agents-DGL-2SS3.js +0 -53
  851. package/dist/blob-_CeYUuZh.d.ts +0 -8
  852. package/dist/box.d.ts +0 -1
  853. package/dist/box.js +0 -2
  854. package/dist/console/runtime/components/console-brand.vue +0 -37
  855. package/dist/console/runtime/components/console-health-model.ts +0 -54
  856. package/dist/console/runtime/components/console-health.vue +0 -236
  857. package/dist/console/runtime/components/console-primitive-switcher.vue +0 -69
  858. package/dist/console/runtime/components/console-provider.vue +0 -12
  859. package/dist/console/runtime/pages/agents.vue +0 -58
  860. package/dist/console/runtime/pages/blob.vue +0 -30
  861. package/dist/console/runtime/pages/databases.vue +0 -67
  862. package/dist/console/runtime/pages/index.vue +0 -29
  863. package/dist/console/runtime/pages/kv.vue +0 -68
  864. package/dist/console/runtime/pages/queues.vue +0 -30
  865. package/dist/console/runtime/pages/rate-limits.vue +0 -30
  866. package/dist/console/runtime/pages/sandboxes.vue +0 -27
  867. package/dist/console/runtime/pages/schedules.vue +0 -30
  868. package/dist/console/runtime/pages/workflows.vue +0 -30
  869. package/dist/console/runtime/pages/workspaces.vue +0 -30
  870. package/dist/console/runtime/public/console/chunks/ChatMessage-CVruGJWM.js +0 -1
  871. package/dist/console/runtime/public/console/chunks/ChatPrompt-BmTjPf5_.js +0 -1
  872. package/dist/console/runtime/public/console/chunks/ChatPromptSubmit-DcxguvaS.js +0 -1
  873. package/dist/console/runtime/public/console/chunks/ChatReasoning-DIMO2K2F.js +0 -1
  874. package/dist/console/runtime/public/console/chunks/ChatShimmer-C613EbHI.js +0 -1
  875. package/dist/console/runtime/public/console/chunks/ChatTool-DDmc-ZK6.js +0 -1
  876. package/dist/console/runtime/public/console/chunks/Collapsible-C0CXnWpw.js +0 -1
  877. package/dist/console/runtime/public/console/chunks/CollapsibleTrigger-CmJucLnT.js +0 -1
  878. package/dist/console/runtime/public/console/chunks/Icon-D-AnqCok.js +0 -1
  879. package/dist/console/runtime/public/console/chunks/actionscript-3-Czo0lKSf--17pq3dv.js +0 -1
  880. package/dist/console/runtime/public/console/chunks/ada-twHwrVWN-C5qYipkI.js +0 -1
  881. package/dist/console/runtime/public/console/chunks/angular-html-Ct-40ew8-D8X9MCxo.js +0 -1
  882. package/dist/console/runtime/public/console/chunks/angular-html-DTyieMYv.js +0 -1
  883. package/dist/console/runtime/public/console/chunks/angular-ts-D3gV1N-x.js +0 -1
  884. package/dist/console/runtime/public/console/chunks/angular-ts-D6akBVit-CAEqTior.js +0 -1
  885. package/dist/console/runtime/public/console/chunks/apex-BkQQFAhi-VAyPSnFM.js +0 -1
  886. package/dist/console/runtime/public/console/chunks/apl-Cxjn4xYu-QUZjoXcb.js +0 -1
  887. package/dist/console/runtime/public/console/chunks/asciidoc-Dsw6zvwf-DE70LPWp.js +0 -1
  888. package/dist/console/runtime/public/console/chunks/astro-BPVTb8uX-BMHg0UsI.js +0 -1
  889. package/dist/console/runtime/public/console/chunks/astro-CLAWI0Fn.js +0 -1
  890. package/dist/console/runtime/public/console/chunks/bat-hQslfzu--Bo4NYOV-.js +0 -1
  891. package/dist/console/runtime/public/console/chunks/beancount-CXtOQ8oS-D-usSTwE.js +0 -1
  892. package/dist/console/runtime/public/console/chunks/bird2-GLyzhwkD-C6vDhewU.js +0 -1
  893. package/dist/console/runtime/public/console/chunks/blade-0LMawyyw-CZBPwR53.js +0 -1
  894. package/dist/console/runtime/public/console/chunks/blade-CP_mgflB.js +0 -1
  895. package/dist/console/runtime/public/console/chunks/bsl-0NWGiiFE-mk7PqslV.js +0 -1
  896. package/dist/console/runtime/public/console/chunks/bundle-web-DTJmdyvB.js +0 -13
  897. package/dist/console/runtime/public/console/chunks/c-BhmuwSav.js +0 -1
  898. package/dist/console/runtime/public/console/chunks/c-Dc0_AVM6-CjS7AEt5.js +0 -1
  899. package/dist/console/runtime/public/console/chunks/c3-BLXk7BLN-BFHwR3_K.js +0 -1
  900. package/dist/console/runtime/public/console/chunks/cairo-DjG4M3vq-xb-J0v0e.js +0 -1
  901. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-3VR1Za6u.js +0 -1
  902. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-COUg_LSX-3VR1Za6u.js +0 -1
  903. package/dist/console/runtime/public/console/chunks/catppuccin-latte-DwIHMF0Q.js +0 -1
  904. package/dist/console/runtime/public/console/chunks/catppuccin-latte-r30LFfsa-DwIHMF0Q.js +0 -1
  905. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-D-EwZyPh-DYnBP6_5.js +0 -1
  906. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-DYnBP6_5.js +0 -1
  907. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-C6RD5yh3-DYhrFGRu.js +0 -1
  908. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DYhrFGRu.js +0 -1
  909. package/dist/console/runtime/public/console/chunks/clarity-2iIoRiLx-SemFz856.js +0 -1
  910. package/dist/console/runtime/public/console/chunks/cobol-CocL1RYn-DoHa8rFw.js +0 -1
  911. package/dist/console/runtime/public/console/chunks/coffee-DtqnQNu5-Ca3s2Keu.js +0 -1
  912. package/dist/console/runtime/public/console/chunks/coffee-PUiKoj8Q.js +0 -1
  913. package/dist/console/runtime/public/console/chunks/coq-Ds6Ye5el-BrsZFFmf.js +0 -1
  914. package/dist/console/runtime/public/console/chunks/cpp-CxycoGSa.js +0 -1
  915. package/dist/console/runtime/public/console/chunks/cpp-Mb4ikSI3-tLY9dtiu.js +0 -1
  916. package/dist/console/runtime/public/console/chunks/crystal-D4OMbAh_-C9omPlZ-.js +0 -1
  917. package/dist/console/runtime/public/console/chunks/csharp-CFKaLbHg-oqKa8noW.js +0 -1
  918. package/dist/console/runtime/public/console/chunks/css-DLlZbWMi.js +0 -1
  919. package/dist/console/runtime/public/console/chunks/css-DTzmO9U0-CbxoEllx.js +0 -1
  920. package/dist/console/runtime/public/console/chunks/csv-DqIVFkK7-Dx-8-gkx.js +0 -1
  921. package/dist/console/runtime/public/console/chunks/dart-C6DUdjib-CnvKMtbv.js +0 -1
  922. package/dist/console/runtime/public/console/chunks/docker-PC1tuYpa-IyjqRm3v.js +0 -1
  923. package/dist/console/runtime/public/console/chunks/dotenv-Dkdv7Sm2-_5a1GRtc.js +0 -1
  924. package/dist/console/runtime/public/console/chunks/edge-DrFNu-N9-BY3pzybO.js +0 -1
  925. package/dist/console/runtime/public/console/chunks/elixir-OpZyQ8Ht-CwWfuiQ1.js +0 -1
  926. package/dist/console/runtime/public/console/chunks/elm-CjX_545P-Dn-DqM39.js +0 -1
  927. package/dist/console/runtime/public/console/chunks/emacs-lisp-DxhFFVu_-B4R74twV.js +0 -1
  928. package/dist/console/runtime/public/console/chunks/erb-trZRdc47-DRBdWH-D.js +0 -1
  929. package/dist/console/runtime/public/console/chunks/erlang-BJeTH9QH-BfDtvnHZ.js +0 -1
  930. package/dist/console/runtime/public/console/chunks/fortran-fixed-form-B_eBTsj9-C2-rkbip.js +0 -1
  931. package/dist/console/runtime/public/console/chunks/fsharp-UvrT6oWG-LCdvSpj6.js +0 -1
  932. package/dist/console/runtime/public/console/chunks/gdresource-Dl9wvKCd-C3MGX-jo.js +0 -1
  933. package/dist/console/runtime/public/console/chunks/gdscript-jjgTGGzd-Cp2uCuqX.js +0 -1
  934. package/dist/console/runtime/public/console/chunks/git-commit-2LMniMoO-CfgJCLX7.js +0 -1
  935. package/dist/console/runtime/public/console/chunks/git-rebase-DUOURRPN-DbPsFIae.js +0 -1
  936. package/dist/console/runtime/public/console/chunks/glimmer-js-D_32hFh8-Dv_1Q6fk.js +0 -1
  937. package/dist/console/runtime/public/console/chunks/glimmer-ts-CVt002zd-PmMLyqBp.js +0 -1
  938. package/dist/console/runtime/public/console/chunks/glsl-8MDrjpMp.js +0 -1
  939. package/dist/console/runtime/public/console/chunks/glsl-pHhzolba-D3h1XPFw.js +0 -1
  940. package/dist/console/runtime/public/console/chunks/gn-DDjbVPF4-ilITqXS6.js +0 -1
  941. package/dist/console/runtime/public/console/chunks/graphql-BjqekQIR-CtUxCAnJ.js +0 -1
  942. package/dist/console/runtime/public/console/chunks/graphql-C4iAGs1_.js +0 -1
  943. package/dist/console/runtime/public/console/chunks/hack-BITNGzgt-BwY4KWmq.js +0 -1
  944. package/dist/console/runtime/public/console/chunks/haml-BJGeH8A5.js +0 -1
  945. package/dist/console/runtime/public/console/chunks/haml-DVwRP8W9-C4Ue42xj.js +0 -1
  946. package/dist/console/runtime/public/console/chunks/handlebars-OC1LcHwO.js +0 -1
  947. package/dist/console/runtime/public/console/chunks/handlebars-T3TJj8Il-BLQCwuJT.js +0 -1
  948. package/dist/console/runtime/public/console/chunks/haxe-B0odltAZ-OTjmBuCE.js +0 -1
  949. package/dist/console/runtime/public/console/chunks/html-CamevgpM-BbT95zHF.js +0 -1
  950. package/dist/console/runtime/public/console/chunks/html-Cs160JwT.js +0 -1
  951. package/dist/console/runtime/public/console/chunks/html-derivative-GiQ9zDJU.js +0 -1
  952. package/dist/console/runtime/public/console/chunks/html-derivative-jMOJf6rB-Kh3SdD3S.js +0 -1
  953. package/dist/console/runtime/public/console/chunks/http-BEHztmFP-BxphIJE7.js +0 -1
  954. package/dist/console/runtime/public/console/chunks/http-Cgwuv9UR.js +0 -1
  955. package/dist/console/runtime/public/console/chunks/hurl-DMKCZZMv.js +0 -1
  956. package/dist/console/runtime/public/console/chunks/hurl-LmFBxrwm-CGo4dqUD.js +0 -1
  957. package/dist/console/runtime/public/console/chunks/hxml-BQ4V4Tez-BaHUc7lX.js +0 -1
  958. package/dist/console/runtime/public/console/chunks/imba-96qKoJCa-DsUTQ-LC.js +0 -1
  959. package/dist/console/runtime/public/console/chunks/java-CUcXVav_.js +0 -1
  960. package/dist/console/runtime/public/console/chunks/java-Cfowl-Ex-BnGnzH2k.js +0 -1
  961. package/dist/console/runtime/public/console/chunks/javascript-C4sF7sej-B29qPxDa.js +0 -1
  962. package/dist/console/runtime/public/console/chunks/javascript-DrVpc-sp.js +0 -1
  963. package/dist/console/runtime/public/console/chunks/jinja-C17UUgXU.js +0 -1
  964. package/dist/console/runtime/public/console/chunks/jinja-CCAEwzP4-PaInFpq5.js +0 -1
  965. package/dist/console/runtime/public/console/chunks/jison-BKCoBkyT-BRL7eVgb.js +0 -1
  966. package/dist/console/runtime/public/console/chunks/jison-ByjIV4zh.js +0 -1
  967. package/dist/console/runtime/public/console/chunks/json-E4f3l6hr-DuNL0Aj9.js +0 -1
  968. package/dist/console/runtime/public/console/chunks/json-qhed-kSA.js +0 -1
  969. package/dist/console/runtime/public/console/chunks/json5-xULSgPQI-BR5RXkoi.js +0 -1
  970. package/dist/console/runtime/public/console/chunks/jsonc-Cu6rqcrJ-CYpm1nAK.js +0 -1
  971. package/dist/console/runtime/public/console/chunks/jsonl-Bp0qqr10-CmCQp5Yx.js +0 -1
  972. package/dist/console/runtime/public/console/chunks/jsx-BZjOirBP-Dga5sQe3.js +0 -1
  973. package/dist/console/runtime/public/console/chunks/jsx-C-HlKHLe.js +0 -1
  974. package/dist/console/runtime/public/console/chunks/julia-Ca_tGyZB.js +0 -1
  975. package/dist/console/runtime/public/console/chunks/julia-nEdJo0dp-CJRta6ZT.js +0 -1
  976. package/dist/console/runtime/public/console/chunks/just-Brtw3q7S-DmytbepJ.js +0 -1
  977. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-CXtmUGW6.js +0 -1
  978. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DExkuQAs-CXtmUGW6.js +0 -1
  979. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BN08jTvb.js +0 -1
  980. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-qdYh7_RY-BN08jTvb.js +0 -1
  981. package/dist/console/runtime/public/console/chunks/kanagawa-wave-CSW_hADG-CTweb8Dz.js +0 -1
  982. package/dist/console/runtime/public/console/chunks/kanagawa-wave-CTweb8Dz.js +0 -1
  983. package/dist/console/runtime/public/console/chunks/latex-QHQNiZDD-fcyJN6QK.js +0 -1
  984. package/dist/console/runtime/public/console/chunks/less-BzbdhFUi-DVTAwKKz.js +0 -1
  985. package/dist/console/runtime/public/console/chunks/liquid-DYQ7uW5u-JGNMHTpg.js +0 -1
  986. package/dist/console/runtime/public/console/chunks/llvm-uY68ROGz-Cm23YOpf.js +0 -1
  987. package/dist/console/runtime/public/console/chunks/lua-BhkUWs1q-CVcL4bwV.js +0 -1
  988. package/dist/console/runtime/public/console/chunks/luau-YC4aaMmR-FMPmPwt6.js +0 -1
  989. package/dist/console/runtime/public/console/chunks/markdown-CkmxmzqY-BYOwaDjH.js +0 -1
  990. package/dist/console/runtime/public/console/chunks/marko-BHWvxp04-U7nYXRKW.js +0 -1
  991. package/dist/console/runtime/public/console/chunks/marko-DmV4Eg2F.js +0 -1
  992. package/dist/console/runtime/public/console/chunks/mdc-BVkdQPZX.js +0 -1
  993. package/dist/console/runtime/public/console/chunks/mdc-Dg7VPYLa-CshLRYP7.js +0 -1
  994. package/dist/console/runtime/public/console/chunks/mdx-BK9ZufRc-DQZ5AkYe.js +0 -1
  995. package/dist/console/runtime/public/console/chunks/mermaid-r7OoIYpE-Bk4SNUv9.js +0 -1
  996. package/dist/console/runtime/public/console/chunks/mojo-YCzvCoMT-BgCJLMeH.js +0 -1
  997. package/dist/console/runtime/public/console/chunks/monokai-CREPpJ3k-CdkpiU2Y.js +0 -1
  998. package/dist/console/runtime/public/console/chunks/monokai-CdkpiU2Y.js +0 -1
  999. package/dist/console/runtime/public/console/chunks/moonbit-B_9L5rST-CaWjb8XO.js +0 -1
  1000. package/dist/console/runtime/public/console/chunks/move-Dqi5fhOb-B1IS1UjX.js +0 -1
  1001. package/dist/console/runtime/public/console/chunks/nextflow-CgUAk9iA-CTMUe4Ca.js +0 -1
  1002. package/dist/console/runtime/public/console/chunks/nextflow-groovy-CdFFX-gF-DJMQeKeT.js +0 -1
  1003. package/dist/console/runtime/public/console/chunks/nginx-Q-E8IJvs-DiQO9reH.js +0 -1
  1004. package/dist/console/runtime/public/console/chunks/nim-CNcTuF14-W9Ucwkhx.js +0 -1
  1005. package/dist/console/runtime/public/console/chunks/nushell-r7hBzeS_-DcLAeLz5.js +0 -1
  1006. package/dist/console/runtime/public/console/chunks/one-dark-pro-CLwyXe_n.js +0 -1
  1007. package/dist/console/runtime/public/console/chunks/one-dark-pro-Ev8UPkf4-CLwyXe_n.js +0 -1
  1008. package/dist/console/runtime/public/console/chunks/perl-Bbgb6Twx-CHGXAzGq.js +0 -1
  1009. package/dist/console/runtime/public/console/chunks/php-CBOR45_G-D5pyod9R.js +0 -1
  1010. package/dist/console/runtime/public/console/chunks/php-J5BBb-PR.js +0 -1
  1011. package/dist/console/runtime/public/console/chunks/pierre-code-view-DYpF5M8R-BiohFcCD.js +0 -1511
  1012. package/dist/console/runtime/public/console/chunks/postcss-D1gKt4z_-BXeXVLqQ.js +0 -1
  1013. package/dist/console/runtime/public/console/chunks/powershell-CpTLv_ai-DshXNtvi.js +0 -1
  1014. package/dist/console/runtime/public/console/chunks/prisma-BWfa4-tI-BsRQq5mF.js +0 -1
  1015. package/dist/console/runtime/public/console/chunks/pug-CfJcGJfh.js +0 -1
  1016. package/dist/console/runtime/public/console/chunks/pug-Cn_U_o_I-Cw4zFEpZ.js +0 -1
  1017. package/dist/console/runtime/public/console/chunks/python-BjnOIxPe-gzcpVVnB.js +0 -1
  1018. package/dist/console/runtime/public/console/chunks/qml-DNlrbxJT-B_IzAFFX.js +0 -1
  1019. package/dist/console/runtime/public/console/chunks/r-Dzep-lPg.js +0 -1
  1020. package/dist/console/runtime/public/console/chunks/r-VqTZMNY_-EnO4GoeC.js +0 -1
  1021. package/dist/console/runtime/public/console/chunks/razor-Bw2un3e8-CtGvw0jo.js +0 -1
  1022. package/dist/console/runtime/public/console/chunks/red-CJ3rzSJv.js +0 -1
  1023. package/dist/console/runtime/public/console/chunks/red-EHiRGXSv-CJ3rzSJv.js +0 -1
  1024. package/dist/console/runtime/public/console/chunks/regexp-5HbFqwky-C3xQXL6t.js +0 -1
  1025. package/dist/console/runtime/public/console/chunks/regexp-R83qIIH_.js +0 -1
  1026. package/dist/console/runtime/public/console/chunks/rose-pine-BthvhNj6.js +0 -1
  1027. package/dist/console/runtime/public/console/chunks/rose-pine-DTI-z1Qp-BthvhNj6.js +0 -1
  1028. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-BIiGXpWs-Dg85fqjY.js +0 -1
  1029. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-Dg85fqjY.js +0 -1
  1030. package/dist/console/runtime/public/console/chunks/rose-pine-moon-DU4wt90U-hon4tzzS.js +0 -1
  1031. package/dist/console/runtime/public/console/chunks/rose-pine-moon-hon4tzzS.js +0 -1
  1032. package/dist/console/runtime/public/console/chunks/rst-BZPDb03W-BDIwqmQR.js +0 -1
  1033. package/dist/console/runtime/public/console/chunks/ruby-BbVp0_gQ-BUOn3oxT.js +0 -1
  1034. package/dist/console/runtime/public/console/chunks/rust-COBzcmTx-Cfkwpbl8.js +0 -1
  1035. package/dist/console/runtime/public/console/chunks/sas-DSkdG4wF-BE4zxtJ7.js +0 -1
  1036. package/dist/console/runtime/public/console/chunks/sass-DI2zJwx7-DXrisJhu.js +0 -1
  1037. package/dist/console/runtime/public/console/chunks/scala-CtSYTRYT-DKOlJaKm.js +0 -1
  1038. package/dist/console/runtime/public/console/chunks/scss-BQ7uffpQ-D2aPazKS.js +0 -1
  1039. package/dist/console/runtime/public/console/chunks/scss-DTeHeodw.js +0 -1
  1040. package/dist/console/runtime/public/console/chunks/shaderlab-CWP9wBCf-C6U2tjWC.js +0 -1
  1041. package/dist/console/runtime/public/console/chunks/shellscript-B42c0JAn-D5OxpxEd.js +0 -1
  1042. package/dist/console/runtime/public/console/chunks/shellscript-CLZ0U2zV.js +0 -1
  1043. package/dist/console/runtime/public/console/chunks/shellsession-Oc9-NqAv-C1K_F4Is.js +0 -1
  1044. package/dist/console/runtime/public/console/chunks/smalltalk-BEQkVl4K-B16xEiuN.js +0 -1
  1045. package/dist/console/runtime/public/console/chunks/solarized-dark-DV17i1UV.js +0 -1
  1046. package/dist/console/runtime/public/console/chunks/solarized-dark-UHgjRWhr-DV17i1UV.js +0 -1
  1047. package/dist/console/runtime/public/console/chunks/solarized-light-B-Zcwve2-DSh2HLQt.js +0 -1
  1048. package/dist/console/runtime/public/console/chunks/solarized-light-DSh2HLQt.js +0 -1
  1049. package/dist/console/runtime/public/console/chunks/solidity-lB9VjfB9-CKzVLygQ.js +0 -1
  1050. package/dist/console/runtime/public/console/chunks/soy-tgh9u9aW-Cm_LtJoW.js +0 -1
  1051. package/dist/console/runtime/public/console/chunks/sparql-B4t0ZbEe-CXgkFCv7.js +0 -1
  1052. package/dist/console/runtime/public/console/chunks/sql-C7n9abzK.js +0 -1
  1053. package/dist/console/runtime/public/console/chunks/sql-CrPlEQn4-COghB3-E.js +0 -1
  1054. package/dist/console/runtime/public/console/chunks/stata-D_KqT8cj-oQQpG6t_.js +0 -1
  1055. package/dist/console/runtime/public/console/chunks/stylus-ZZDn1yUO-B6D30XZt.js +0 -1
  1056. package/dist/console/runtime/public/console/chunks/surrealql-C0KhgoyZ-DqXNFH_A.js +0 -1
  1057. package/dist/console/runtime/public/console/chunks/svelte-CRpWSJAY.js +0 -1
  1058. package/dist/console/runtime/public/console/chunks/svelte-DuHT0xxw-Bs0TxuUS.js +0 -1
  1059. package/dist/console/runtime/public/console/chunks/swift-BTPQlRLK-DonLKvLd.js +0 -1
  1060. package/dist/console/runtime/public/console/chunks/system-verilog-BEoxaBuU-DJ5XKQeo.js +0 -1
  1061. package/dist/console/runtime/public/console/chunks/templ-DF54artD-BPb_zNLV.js +0 -1
  1062. package/dist/console/runtime/public/console/chunks/tex-Bbhb8xAP-9R8lE_en.js +0 -1
  1063. package/dist/console/runtime/public/console/chunks/ts-tags-DH1AB-Ri-CgEe3BFX.js +0 -1
  1064. package/dist/console/runtime/public/console/chunks/ts-tags-DJjZLMnt.js +0 -1
  1065. package/dist/console/runtime/public/console/chunks/tsx-B7QamQLF.js +0 -1
  1066. package/dist/console/runtime/public/console/chunks/tsx-BR8s1Lhs-DiW36VFk.js +0 -1
  1067. package/dist/console/runtime/public/console/chunks/tv-WsfYJXat.js +0 -1
  1068. package/dist/console/runtime/public/console/chunks/twig-DziFF7iU-DLOFbR4k.js +0 -1
  1069. package/dist/console/runtime/public/console/chunks/typescript-D8TR6ff2-CCKRkaRI.js +0 -1
  1070. package/dist/console/runtime/public/console/chunks/typescript-DzLO-qqB.js +0 -1
  1071. package/dist/console/runtime/public/console/chunks/typespec-C_R5TbvO-BRdr0IET.js +0 -1
  1072. package/dist/console/runtime/public/console/chunks/typst-BV9w0z8--DI99ib-x.js +0 -1
  1073. package/dist/console/runtime/public/console/chunks/v-DfbeXLo8-DETTlOr0.js +0 -1
  1074. package/dist/console/runtime/public/console/chunks/vb-DU29mvss-Djn5o6TS.js +0 -1
  1075. package/dist/console/runtime/public/console/chunks/verilog-BW5U03XW-CiiDBU1e.js +0 -1
  1076. package/dist/console/runtime/public/console/chunks/vue-BRy8iDCZ-CL7P9CNz.js +0 -1
  1077. package/dist/console/runtime/public/console/chunks/vue-CQQ6_PvN.js +0 -1
  1078. package/dist/console/runtime/public/console/chunks/vue-html-B24bjO_3-BY2skbNe.js +0 -1
  1079. package/dist/console/runtime/public/console/chunks/vue-html-Ce5SCNOK.js +0 -1
  1080. package/dist/console/runtime/public/console/chunks/vue-vine-DKH1_YEZ.js +0 -1
  1081. package/dist/console/runtime/public/console/chunks/vue-vine-l7O7Mg81-CFWzX3HC.js +0 -1
  1082. package/dist/console/runtime/public/console/chunks/vue.runtime.esm-bundler-COh-O3z7.js +0 -3
  1083. package/dist/console/runtime/public/console/chunks/wasm-BRCjOXGL-BnjxR4X6.js +0 -1
  1084. package/dist/console/runtime/public/console/chunks/wasm-gNIKwGlD-ByWQv1Qj.js +0 -1
  1085. package/dist/console/runtime/public/console/chunks/wgsl-1s5rV5xS-BsKzXJz4.js +0 -1
  1086. package/dist/console/runtime/public/console/chunks/wit-CeQiCbz_-DdvCle-K.js +0 -1
  1087. package/dist/console/runtime/public/console/chunks/xml-CduVPlYa-BZCwbgEk.js +0 -1
  1088. package/dist/console/runtime/public/console/chunks/xml-G-voesMw.js +0 -1
  1089. package/dist/console/runtime/public/console/chunks/xsl-BeH_vLTK-DeKk-5KU.js +0 -1
  1090. package/dist/console/runtime/public/console/chunks/yaml-Cb0uRU1q-CkSC4c4u.js +0 -1
  1091. package/dist/console/runtime/public/console/chunks/yaml-rwi0_p6S.js +0 -1
  1092. package/dist/console/runtime/public/console/console-Bwq3z75a.css +0 -3
  1093. package/dist/console/runtime/public/console/console-Cl-xrMah.js +0 -1371
  1094. package/dist/console/runtime/server/blob.get.d.ts +0 -25
  1095. package/dist/console/runtime/server/blob.get.js +0 -74
  1096. package/dist/console/runtime/server/devframe.d.ts +0 -13
  1097. package/dist/console/runtime/server/devframe.js +0 -133
  1098. package/dist/console/runtime/server/kv.d.ts +0 -2
  1099. package/dist/console/runtime/server/kv.get.d.ts +0 -24
  1100. package/dist/console/runtime/server/kv.get.js +0 -236
  1101. package/dist/console/runtime/server/kv.js +0 -18
  1102. package/dist/database-CW-WjW4u.d.ts +0 -8
  1103. package/dist/definitions-BHmB22eM.d.ts +0 -7
  1104. package/dist/definitions-CfSmoS5G.d.ts +0 -17
  1105. package/dist/index-B072hyCd.d.ts +0 -59
  1106. package/dist/internal-12r-XCbk.d.ts +0 -20
  1107. package/dist/internal-DzLLx0iR.js +0 -304
  1108. package/dist/invocations-qwMRTSy7.js +0 -364
  1109. package/dist/kv-DLGscNQ_.d.ts +0 -8
  1110. package/dist/request-DxBwxGnk.js +0 -72
  1111. package/dist/request-NErg_P5m.d.ts +0 -43
  1112. package/dist/schedule/runtime/driver.d.ts +0 -1
  1113. package/dist/schedule/runtime/driver.js +0 -2
  1114. package/dist/search.get-ClTCn-mh.js +0 -100
  1115. package/dist/sections-7HoMOIGH.d.ts +0 -9
  1116. package/dist/sections-DVsqeLAF.d.ts +0 -100
  1117. package/dist/server-BFxDhCzA.d.ts +0 -78
  1118. package/dist/shell/providers/cloudflare.d.ts +0 -1
  1119. package/dist/shell/providers/cloudflare.js +0 -2
  1120. package/dist/source/content/client.d.ts +0 -1
  1121. package/dist/source/content/client.js +0 -2
  1122. package/dist/source/content.d.ts +0 -1
  1123. package/dist/source/content.js +0 -2
  1124. package/dist/src-XEJGHDr9.js +0 -5247
  1125. package/dist/types-BucGTJnk.js +0 -168
  1126. package/dist/usage-CoZa_8fx.js +0 -361
  1127. package/dist/workspace/collections/client.d.ts +0 -1
  1128. package/dist/workspace/collections/client.js +0 -2
  1129. package/dist/workspace/collections.d.ts +0 -1
  1130. package/dist/workspace/collections.js +0 -2
  1131. package/dist/workspace/publish.d.ts +0 -1
  1132. package/dist/workspace/publish.js +0 -2
  1133. /package/dist/console/runtime/public/console/chunks/{abap-LtYK6g-v-CLvhMVsD.js → abap-CLvhMVsD.js} +0 -0
  1134. /package/dist/console/runtime/public/console/chunks/{andromeeda-DnSv6o6l-vGVdxbeo.js → andromeeda-BASpqCeJ-vGVdxbeo.js} +0 -0
  1135. /package/dist/console/runtime/public/console/chunks/{apache-BIl2qPOf-U0d_L8uA.js → apache-U0d_L8uA.js} +0 -0
  1136. /package/dist/console/runtime/public/console/chunks/{applescript-CJ80B5XJ-CCn79oCD.js → applescript-CCn79oCD.js} +0 -0
  1137. /package/dist/console/runtime/public/console/chunks/{ara-IxnQjO6j-4CJ0cIlV.js → ara-4CJ0cIlV.js} +0 -0
  1138. /package/dist/console/runtime/public/console/chunks/{asm-wBDSgBbA-Cmm7eHzH.js → asm-Cmm7eHzH.js} +0 -0
  1139. /package/dist/console/runtime/public/console/chunks/{aurora-x-XJ5I8rFc-CDeNXAV0.js → aurora-x-DugsLcii-CDeNXAV0.js} +0 -0
  1140. /package/dist/console/runtime/public/console/chunks/{awk-D6dA05Ye-BWXHIvNe.js → awk-BWXHIvNe.js} +0 -0
  1141. /package/dist/console/runtime/public/console/chunks/{ayu-dark-CBRGL64--DluEY0Gj.js → ayu-dark-BT3qdi3o-DluEY0Gj.js} +0 -0
  1142. /package/dist/console/runtime/public/console/chunks/{ayu-light-BlrCS3Ih-C3h-C4tm.js → ayu-light-BVZyHoh9-C3h-C4tm.js} +0 -0
  1143. /package/dist/console/runtime/public/console/chunks/{ayu-mirage-CqpTmLcF-Bqwy1Gya.js → ayu-mirage-XFwUVZQZ-Bqwy1Gya.js} +0 -0
  1144. /package/dist/console/runtime/public/console/chunks/{ballerina-DIdXD2KH-B7ZEbQpA.js → ballerina-B7ZEbQpA.js} +0 -0
  1145. /package/dist/console/runtime/public/console/chunks/{berry-CgA2ea0_-DKpUyyne.js → berry-DKpUyyne.js} +0 -0
  1146. /package/dist/console/runtime/public/console/chunks/{bibtex-BzgdqG3s-Ci_nEsc7.js → bibtex-Ci_nEsc7.js} +0 -0
  1147. /package/dist/console/runtime/public/console/chunks/{bicep-CZ338dSk-CUHmPFLl.js → bicep-CUHmPFLl.js} +0 -0
  1148. /package/dist/console/runtime/public/console/chunks/{cadence-B1ELWULD-CQ2zXKGN.js → cadence-CQ2zXKGN.js} +0 -0
  1149. /package/dist/console/runtime/public/console/chunks/{clojure-DDsQ0FaV-DqKBuwfJ.js → clojure-DqKBuwfJ.js} +0 -0
  1150. /package/dist/console/runtime/public/console/chunks/{cmake-DPsCB_V6-Bj61d0ZC.js → cmake-Bj61d0ZC.js} +0 -0
  1151. /package/dist/console/runtime/public/console/chunks/{codeowners-CxEKPWu0-C8r90Shi.js → codeowners-C8r90Shi.js} +0 -0
  1152. /package/dist/console/runtime/public/console/chunks/{codeql-BwdvwJnv-oeQT6MSM.js → codeql-oeQT6MSM.js} +0 -0
  1153. /package/dist/console/runtime/public/console/chunks/{common-lisp-DJtwvW4V-Cv5bFMCO.js → common-lisp-Cv5bFMCO.js} +0 -0
  1154. /package/dist/console/runtime/public/console/chunks/{cue-B5KneM5p-CE9AQfxI.js → cue-CE9AQfxI.js} +0 -0
  1155. /package/dist/console/runtime/public/console/chunks/{cypher-D8Bb8Cq2-ClKdZ_lG.js → cypher-ClKdZ_lG.js} +0 -0
  1156. /package/dist/console/runtime/public/console/chunks/{d-BQY8TDgQ-qD-0Kul2.js → d-qD-0Kul2.js} +0 -0
  1157. /package/dist/console/runtime/public/console/chunks/{dark-plus-BCxGtnt0-Cs2F2srj.js → dark-plus-BGuiqa1B-Cs2F2srj.js} +0 -0
  1158. /package/dist/console/runtime/public/console/chunks/{dax-S-Noo-ku-BkyTk9wS.js → dax-BkyTk9wS.js} +0 -0
  1159. /package/dist/console/runtime/public/console/chunks/{desktop-BgOb7Aj4-Dlh5hvp9.js → desktop-Dlh5hvp9.js} +0 -0
  1160. /package/dist/console/runtime/public/console/chunks/{diff-Blb4MjsC-woXpYk--.js → diff-woXpYk--.js} +0 -0
  1161. /package/dist/console/runtime/public/console/chunks/{dracula-fPErIccy-BHWKrbxM.js → dracula-0CVA2XY5-BHWKrbxM.js} +0 -0
  1162. /package/dist/console/runtime/public/console/chunks/{dracula-soft-BrQbqXs8-5eyTD99u.js → dracula-soft-Dk9bpbVU-5eyTD99u.js} +0 -0
  1163. /package/dist/console/runtime/public/console/chunks/{dream-maker-CngiPd8U-DW3nJb8Q.js → dream-maker-DW3nJb8Q.js} +0 -0
  1164. /package/dist/console/runtime/public/console/chunks/{everforest-dark-gTeBQCos-sB-x3p7T.js → everforest-dark-CRjTbhh5-sB-x3p7T.js} +0 -0
  1165. /package/dist/console/runtime/public/console/chunks/{everforest-light-DUjxsp-2-Df2xbC6M.js → everforest-light-CEeYFLn8-Df2xbC6M.js} +0 -0
  1166. /package/dist/console/runtime/public/console/chunks/{fennel-B3wtZRne-DQxkIbk2.js → fennel-DQxkIbk2.js} +0 -0
  1167. /package/dist/console/runtime/public/console/chunks/{fish-D7qAeWQz-BJitypiv.js → fish-BJitypiv.js} +0 -0
  1168. /package/dist/console/runtime/public/console/chunks/{fluent-BjfpB34g-C03EYrpw.js → fluent-C03EYrpw.js} +0 -0
  1169. /package/dist/console/runtime/public/console/chunks/{fortran-free-form-yxJ7igsv-CYNrtFtB.js → fortran-free-form-CYNrtFtB.js} +0 -0
  1170. /package/dist/console/runtime/public/console/chunks/{gdshader-D7JfdFV3-CBce3t8t.js → gdshader-CBce3t8t.js} +0 -0
  1171. /package/dist/console/runtime/public/console/chunks/{genie-DnK2KWIP-CV2tkWYe.js → genie-CV2tkWYe.js} +0 -0
  1172. /package/dist/console/runtime/public/console/chunks/{gherkin-D6Lr12YQ-DExj1W_8.js → gherkin-DExj1W_8.js} +0 -0
  1173. /package/dist/console/runtime/public/console/chunks/{github-dark-Dg1hl_QD-C-LZuMrd.js → github-dark-BXgKmOw_-C-LZuMrd.js} +0 -0
  1174. /package/dist/console/runtime/public/console/chunks/{github-dark-default-Dym2P842-DXG-b-1a.js → github-dark-default-DzJQXksd-DXG-b-1a.js} +0 -0
  1175. /package/dist/console/runtime/public/console/chunks/{github-dark-dimmed-7iDMx266-Bx1FflLF.js → github-dark-dimmed-B1pEmGtS-Bx1FflLF.js} +0 -0
  1176. /package/dist/console/runtime/public/console/chunks/{github-dark-high-contrast-DkV2fyPG-B_tTalzw.js → github-dark-high-contrast-BkHIa6jc-B_tTalzw.js} +0 -0
  1177. /package/dist/console/runtime/public/console/chunks/{github-light-BQKYgor9-EUqPIrTm.js → github-light-BKRlUbaB-EUqPIrTm.js} +0 -0
  1178. /package/dist/console/runtime/public/console/chunks/{github-light-default-BZhIfzqQ-BXViO-2h.js → github-light-default-BU3eYkzs-BXViO-2h.js} +0 -0
  1179. /package/dist/console/runtime/public/console/chunks/{github-light-high-contrast-C7zHfx4C-B68TUdTA.js → github-light-high-contrast-B3MumDcI-B68TUdTA.js} +0 -0
  1180. /package/dist/console/runtime/public/console/chunks/{gleam-CTllUdfC-CSRkHgEL.js → gleam-CSRkHgEL.js} +0 -0
  1181. /package/dist/console/runtime/public/console/chunks/{gnuplot-DgWvVXI8-7GGW24-e.js → gnuplot-7GGW24-e.js} +0 -0
  1182. /package/dist/console/runtime/public/console/chunks/{go-aXtTCanQ-rLFTqkRN.js → go-rLFTqkRN.js} +0 -0
  1183. /package/dist/console/runtime/public/console/chunks/{groovy-Bw2Ku4bU-CacY0gHj.js → groovy-CacY0gHj.js} +0 -0
  1184. /package/dist/console/runtime/public/console/chunks/{gruvbox-dark-hard-CQiwpF03-C820rvS2.js → gruvbox-dark-hard-B0ecF443-C820rvS2.js} +0 -0
  1185. /package/dist/console/runtime/public/console/chunks/{gruvbox-dark-medium-BKe6XKBS-BPjhmG05.js → gruvbox-dark-medium-BQnpC39k-BPjhmG05.js} +0 -0
  1186. /package/dist/console/runtime/public/console/chunks/{gruvbox-dark-soft-Cz6U6pa4-MrdJrrXF.js → gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js} +0 -0
  1187. /package/dist/console/runtime/public/console/chunks/{gruvbox-light-hard-DgU_i19B-BC_s9l72.js → gruvbox-light-hard-CuB_LOJr-BC_s9l72.js} +0 -0
  1188. /package/dist/console/runtime/public/console/chunks/{gruvbox-light-medium-D64I06ER-BAWPOn9u.js → gruvbox-light-medium-idDHgxjs-BAWPOn9u.js} +0 -0
  1189. /package/dist/console/runtime/public/console/chunks/{gruvbox-light-soft-B-YxAs1L-BSMLrYjP.js → gruvbox-light-soft-CfWH49MY-BSMLrYjP.js} +0 -0
  1190. /package/dist/console/runtime/public/console/chunks/{haskell-CfGsE1Cf-D8IpX4py.js → haskell-D8IpX4py.js} +0 -0
  1191. /package/dist/console/runtime/public/console/chunks/{hcl-DHg_Osgo-Dh228itO.js → hcl-Dh228itO.js} +0 -0
  1192. /package/dist/console/runtime/public/console/chunks/{hjson-Cuaphql8-CxZEssPk.js → hjson-CxZEssPk.js} +0 -0
  1193. /package/dist/console/runtime/public/console/chunks/{hlsl-BJLUNfne-Cvrh5tZx.js → hlsl-Cvrh5tZx.js} +0 -0
  1194. /package/dist/console/runtime/public/console/chunks/{horizon-bright-CPyV7XIA-DSNQnXHK.js → horizon-bright-Ba6M8QSV-DSNQnXHK.js} +0 -0
  1195. /package/dist/console/runtime/public/console/chunks/{horizon-DYoumREk-CE9ld1lL.js → horizon-h92C5OlZ-CE9ld1lL.js} +0 -0
  1196. /package/dist/console/runtime/public/console/chunks/{houston-B3NWfq0V-CsvMBhTu.js → houston-EQnPegWq-CsvMBhTu.js} +0 -0
  1197. /package/dist/console/runtime/public/console/chunks/{hy-CJKxDzbh-CZbG8q4J.js → hy-CZbG8q4J.js} +0 -0
  1198. /package/dist/console/runtime/public/console/chunks/{ini-C24lZfdM-B5eOa1yu.js → ini-B5eOa1yu.js} +0 -0
  1199. /package/dist/console/runtime/public/console/chunks/{jsonnet-BafgE6cE-CJTPZ8u_.js → jsonnet-CJTPZ8u_.js} +0 -0
  1200. /package/dist/console/runtime/public/console/chunks/{jssm-Dx5A5sBR-DXw9l8Rf.js → jssm-DXw9l8Rf.js} +0 -0
  1201. /package/dist/console/runtime/public/console/chunks/{kdl-DkTyxPcj-CsD5j6eV.js → kdl-CsD5j6eV.js} +0 -0
  1202. /package/dist/console/runtime/public/console/chunks/{kotlin-BHE8CoV9-DhhofPvG.js → kotlin-DhhofPvG.js} +0 -0
  1203. /package/dist/console/runtime/public/console/chunks/{kusto-6FdaWTzR-C7mF5XQf.js → kusto-C7mF5XQf.js} +0 -0
  1204. /package/dist/console/runtime/public/console/chunks/{laserwave-DkfjiLxA-C_8bwKvT.js → laserwave-IxBH_3yW-C_8bwKvT.js} +0 -0
  1205. /package/dist/console/runtime/public/console/chunks/{lean-BwOKScIt-CewbzKMR.js → lean-CewbzKMR.js} +0 -0
  1206. /package/dist/console/runtime/public/console/chunks/{light-plus-DuO6rXxZ-DVQuIRkW.js → light-plus-S8JBx6is-DVQuIRkW.js} +0 -0
  1207. /package/dist/console/runtime/public/console/chunks/{log-Dad54gsi-BNLmms1o.js → log-BNLmms1o.js} +0 -0
  1208. /package/dist/console/runtime/public/console/chunks/{logo-DTXV8SKw-Cluzi2Zq.js → logo-Cluzi2Zq.js} +0 -0
  1209. /package/dist/console/runtime/public/console/chunks/{make-B2ukzWs3-Dixweg8N.js → make-Dixweg8N.js} +0 -0
  1210. /package/dist/console/runtime/public/console/chunks/{material-theme-C_YrwKEa-Bm3Qr25_.js → material-theme-D1f3HBq--Bm3Qr25_.js} +0 -0
  1211. /package/dist/console/runtime/public/console/chunks/{material-theme-darker-DB3YVCla-2IIEA8gg.js → material-theme-darker-ExzYhT0j-2IIEA8gg.js} +0 -0
  1212. /package/dist/console/runtime/public/console/chunks/{material-theme-lighter-D2fgNrBK-uhdI0v04.js → material-theme-lighter-D6gH9nnA-uhdI0v04.js} +0 -0
  1213. /package/dist/console/runtime/public/console/chunks/{material-theme-ocean-DVy172Rs-CHQ94UKr.js → material-theme-ocean-D1w5BPAa-CHQ94UKr.js} +0 -0
  1214. /package/dist/console/runtime/public/console/chunks/{material-theme-palenight-uMMwIfpG-B5W6OYN7.js → material-theme-palenight-CkqWmVpF-B5W6OYN7.js} +0 -0
  1215. /package/dist/console/runtime/public/console/chunks/{matlab-CfRK6IMC-D7qyCx1q.js → matlab-D7qyCx1q.js} +0 -0
  1216. /package/dist/console/runtime/public/console/chunks/{min-dark-C7Ec8I_2-BSWPekZh.js → min-dark-npsJH98j-BSWPekZh.js} +0 -0
  1217. /package/dist/console/runtime/public/console/chunks/{min-light-Be6foA7m-DDpmG2fV.js → min-light-DUk1XsVt-DDpmG2fV.js} +0 -0
  1218. /package/dist/console/runtime/public/console/chunks/{mipsasm-EL46Y4Xg-BMqwQI7S.js → mipsasm-BMqwQI7S.js} +0 -0
  1219. /package/dist/console/runtime/public/console/chunks/{narrat-D9rrR0H5-_X_XdTYD.js → narrat-_X_XdTYD.js} +0 -0
  1220. /package/dist/console/runtime/public/console/chunks/{night-owl-CqqbiLON-DhmEMT88.js → night-owl-BS7V-av_-DhmEMT88.js} +0 -0
  1221. /package/dist/console/runtime/public/console/chunks/{night-owl-light-B9vYgGRt-eJ-hLW7d.js → night-owl-light-CZtRawYE-eJ-hLW7d.js} +0 -0
  1222. /package/dist/console/runtime/public/console/chunks/{nix-Bm1Ax-Z3-IvuFDN5E.js → nix-IvuFDN5E.js} +0 -0
  1223. /package/dist/console/runtime/public/console/chunks/{nord-BZ9DVmcN-Cb4Vim4T.js → nord-BFh54Nqz-Cb4Vim4T.js} +0 -0
  1224. /package/dist/console/runtime/public/console/chunks/{objective-c-6dJF64Dt-D1A_Heim.js → objective-c-D1A_Heim.js} +0 -0
  1225. /package/dist/console/runtime/public/console/chunks/{objective-cpp-_ooRQ-PY-BsSzOQcm.js → objective-cpp-BsSzOQcm.js} +0 -0
  1226. /package/dist/console/runtime/public/console/chunks/{ocaml-vm1Y8An6-O90oeIOV.js → ocaml-O90oeIOV.js} +0 -0
  1227. /package/dist/console/runtime/public/console/chunks/{odin-vjOJSyfV-B1RWQWA5.js → odin-B1RWQWA5.js} +0 -0
  1228. /package/dist/console/runtime/public/console/chunks/{one-light-CzxBC38_-D7Lr4KcI.js → one-light-gmHK3iK6-D7Lr4KcI.js} +0 -0
  1229. /package/dist/console/runtime/public/console/chunks/{openscad-jn-f1Ocl-BUDT5pXO.js → openscad-BUDT5pXO.js} +0 -0
  1230. /package/dist/console/runtime/public/console/chunks/{pascal-D8-gNZ2I-4ZHwLPI5.js → pascal-4ZHwLPI5.js} +0 -0
  1231. /package/dist/console/runtime/public/console/chunks/{pkl-C7lWzykI-ot-7Btpt.js → pkl-ot-7Btpt.js} +0 -0
  1232. /package/dist/console/runtime/public/console/chunks/{plastic-BGkJ2das-DQwYfKfQ.js → plastic-DtdaCjub-DQwYfKfQ.js} +0 -0
  1233. /package/dist/console/runtime/public/console/chunks/{plsql-DCNXypXO-DGHpHOYJ.js → plsql-DGHpHOYJ.js} +0 -0
  1234. /package/dist/console/runtime/public/console/chunks/{po-IjpR1yHO-BiJDBrnU.js → po-BiJDBrnU.js} +0 -0
  1235. /package/dist/console/runtime/public/console/chunks/{poimandres-CpnMgZuc-DRFjx7u4.js → poimandres-Hdda6aHK-DRFjx7u4.js} +0 -0
  1236. /package/dist/console/runtime/public/console/chunks/{polar-4pN1JrJ8-C7UOKdEL.js → polar-C7UOKdEL.js} +0 -0
  1237. /package/dist/console/runtime/public/console/chunks/{powerquery-SrvS_NBM-DNMTfnFr.js → powerquery-DNMTfnFr.js} +0 -0
  1238. /package/dist/console/runtime/public/console/chunks/{prolog-Bacii3Ue-iXnhIJG7.js → prolog-iXnhIJG7.js} +0 -0
  1239. /package/dist/console/runtime/public/console/chunks/{proto-ClkOcAW0-DB4EqR-F.js → proto-DB4EqR-F.js} +0 -0
  1240. /package/dist/console/runtime/public/console/chunks/{puppet-CQlPp728-CDv2pdJW.js → puppet-CDv2pdJW.js} +0 -0
  1241. /package/dist/console/runtime/public/console/chunks/{purescript-CLpaGMbw-9MfHhQsQ.js → purescript-9MfHhQsQ.js} +0 -0
  1242. /package/dist/console/runtime/public/console/chunks/{qmldir-Dz8ttxjf-DCQb3MpD.js → qmldir-DCQb3MpD.js} +0 -0
  1243. /package/dist/console/runtime/public/console/chunks/{qss-Iltvkn1C-Fe1Jh2GI.js → qss-Fe1Jh2GI.js} +0 -0
  1244. /package/dist/console/runtime/public/console/chunks/{racket-DRv7j6nv-DcIDlBhZ.js → racket-DcIDlBhZ.js} +0 -0
  1245. /package/dist/console/runtime/public/console/chunks/{raku-DI9yGpeW-B3gFvitq.js → raku-B3gFvitq.js} +0 -0
  1246. /package/dist/console/runtime/public/console/chunks/{reg-DpJf71oO-CRGYupPL.js → reg-CRGYupPL.js} +0 -0
  1247. /package/dist/console/runtime/public/console/chunks/{rel-BT0iIKKw-BtDbiS_P.js → rel-BtDbiS_P.js} +0 -0
  1248. /package/dist/console/runtime/public/console/chunks/{riscv-CvzikGLb-Ckw8ddFX.js → riscv-Ckw8ddFX.js} +0 -0
  1249. /package/dist/console/runtime/public/console/chunks/{chunk-DK3Fl9T5.js → rolldown-runtime-DK3Fl9T5.js} +0 -0
  1250. /package/dist/console/runtime/public/console/chunks/{ron-DzAo6FTJ-VUp2lXgN.js → ron-VUp2lXgN.js} +0 -0
  1251. /package/dist/console/runtime/public/console/chunks/{rosmsg-CyYq6XdT-CAekHB0j.js → rosmsg-CAekHB0j.js} +0 -0
  1252. /package/dist/console/runtime/public/console/chunks/{scheme-D3A2QBtM-DQCgrYNe.js → scheme-DQCgrYNe.js} +0 -0
  1253. /package/dist/console/runtime/public/console/chunks/{sdbl-CdQg5gu1-bTVj8UrX.js → sdbl-bTVj8UrX.js} +0 -0
  1254. /package/dist/console/runtime/public/console/chunks/{slack-dark-BS2AOOdo-DnToyrRv.js → slack-dark-v8P_eXr6-DnToyrRv.js} +0 -0
  1255. /package/dist/console/runtime/public/console/chunks/{slack-ochin-Nc7Cucwk-B2OO5cIa.js → slack-ochin-D8SyEdKz-B2OO5cIa.js} +0 -0
  1256. /package/dist/console/runtime/public/console/chunks/{snazzy-light-C2ghKZXY-4G7pJPwS.js → snazzy-light-BtkQkvXb-4G7pJPwS.js} +0 -0
  1257. /package/dist/console/runtime/public/console/chunks/{splunk-xP_ZjUH2-BC2Px7Mm.js → splunk-BC2Px7Mm.js} +0 -0
  1258. /package/dist/console/runtime/public/console/chunks/{ssh-config-DXFPABYp-BgfXC-Er.js → ssh-config-BgfXC-Er.js} +0 -0
  1259. /package/dist/console/runtime/public/console/chunks/{synthwave-84-CPtGYwOz-nFMaYfgc.js → synthwave-84-DcsXCF_c-nFMaYfgc.js} +0 -0
  1260. /package/dist/console/runtime/public/console/chunks/{systemd-DFbUltlW-BxMlprV5.js → systemd-BxMlprV5.js} +0 -0
  1261. /package/dist/console/runtime/public/console/chunks/{talonscript-CLxaFu-b-CohzipZa.js → talonscript-CohzipZa.js} +0 -0
  1262. /package/dist/console/runtime/public/console/chunks/{tasl-_AAbKiWM-DMoTqEGO.js → tasl-DMoTqEGO.js} +0 -0
  1263. /package/dist/console/runtime/public/console/chunks/{tcl-DLe0Tsfm-CZd0xW_V.js → tcl-CZd0xW_V.js} +0 -0
  1264. /package/dist/console/runtime/public/console/chunks/{terraform-v0KN9QQh-DswuEJGm.js → terraform-DswuEJGm.js} +0 -0
  1265. /package/dist/console/runtime/public/console/chunks/{tokyo-night-BKYoawWu-oM2G3aXe.js → tokyo-night-Bvpqduda-oM2G3aXe.js} +0 -0
  1266. /package/dist/console/runtime/public/console/chunks/{toml-B7BHZIqX-CcmNWLt0.js → toml-CcmNWLt0.js} +0 -0
  1267. /package/dist/console/runtime/public/console/chunks/{tsv-BorGVq2Z-sltzmVWM.js → tsv-sltzmVWM.js} +0 -0
  1268. /package/dist/console/runtime/public/console/chunks/{turtle-BEG5g_eT-ByJddavk.js → turtle-ByJddavk.js} +0 -0
  1269. /package/dist/console/runtime/public/console/chunks/{vala-BnnASFsX-zf12oZj6.js → vala-zf12oZj6.js} +0 -0
  1270. /package/dist/console/runtime/public/console/chunks/{vesper-ClvmKzqD-DdrHHSXu.js → vesper-CfxmMOy3-DdrHHSXu.js} +0 -0
  1271. /package/dist/console/runtime/public/console/chunks/{vhdl-Co2XFKY7-BroJfC0k.js → vhdl-BroJfC0k.js} +0 -0
  1272. /package/dist/console/runtime/public/console/chunks/{viml-BReTXeDA-DvXPmvsu.js → viml-DvXPmvsu.js} +0 -0
  1273. /package/dist/console/runtime/public/console/chunks/{vitesse-black-BY6Qtyq--fwtXNY1n.js → vitesse-black-D9-_1mjV-fwtXNY1n.js} +0 -0
  1274. /package/dist/console/runtime/public/console/chunks/{vitesse-dark-BT-v_EgR-BZCL-v6S.js → vitesse-dark-DlSMLlr9-BZCL-v6S.js} +0 -0
  1275. /package/dist/console/runtime/public/console/chunks/{vitesse-light-Box8ZFz6-VbXTXTou.js → vitesse-light-KRWWWztf-VbXTXTou.js} +0 -0
  1276. /package/dist/console/runtime/public/console/chunks/{vyper-C6KGx0YU-CgoNMtux.js → vyper-CgoNMtux.js} +0 -0
  1277. /package/dist/console/runtime/public/console/chunks/{wenyan-BeysbCrW-C8pVoKbM.js → wenyan-C8pVoKbM.js} +0 -0
  1278. /package/dist/console/runtime/public/console/chunks/{wikitext-wjhjmmzD-ClFFjSW2.js → wikitext-ClFFjSW2.js} +0 -0
  1279. /package/dist/console/runtime/public/console/chunks/{wolfram-CcZPfnLd-DLL8P-h_.js → wolfram-DLL8P-h_.js} +0 -0
  1280. /package/dist/console/runtime/public/console/chunks/{zenscript-BoijL7rl-BnlCZFoB.js → zenscript-BnlCZFoB.js} +0 -0
  1281. /package/dist/console/runtime/public/console/chunks/{zig-lTQvxhLD-CMLA9XwU.js → zig-CMLA9XwU.js} +0 -0
@@ -0,0 +1,3215 @@
1
+ import { runtimeErrorDiagnostics } from "@vite-hub/runtime";
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 { ToolList } from "@vite-hub/ui/tool-list";
5
+ import { useIntervalFn, useMounted, useNow } from "@vueuse/core";
6
+ import { Markdown } from "@vite-hub/ui/markdown";
7
+ //#region src/console/runtime/components/invocation/internal/runtime-type.ts
8
+ function isCallableRepresentation(value) {
9
+ if (value === null || value === void 0 || Object(value) !== value) return false;
10
+ try {
11
+ Function.prototype.toString.call(value);
12
+ return true;
13
+ } catch {
14
+ return false;
15
+ }
16
+ }
17
+ /** Parses JavaScript runtime representation categories at UI boundaries. */
18
+ function hasRuntimeType(value, expected) {
19
+ if (expected === "undefined") return value === void 0;
20
+ if (expected === "object" && value === null) return true;
21
+ if (value === null || value === void 0) return false;
22
+ const isPrimitive = Object(value) !== value;
23
+ if (!isPrimitive) {
24
+ if (expected === "function") return isCallableRepresentation(value);
25
+ return expected === "object" && !isCallableRepresentation(value);
26
+ }
27
+ const tag = Object.prototype.toString.call(value);
28
+ switch (expected) {
29
+ case "bigint": return isPrimitive && tag === "[object BigInt]";
30
+ case "boolean": return isPrimitive && tag === "[object Boolean]";
31
+ case "function": return false;
32
+ case "number": return isPrimitive && tag === "[object Number]";
33
+ case "object": return false;
34
+ case "string": return isPrimitive && tag === "[object String]";
35
+ case "symbol": return isPrimitive && tag === "[object Symbol]";
36
+ }
37
+ throw runtimeErrorDiagnostics.RUNTIME_R0008({ message: `Unsupported runtime type: ${expected}` });
38
+ }
39
+ function runtimeType(value) {
40
+ if (value === void 0) return "undefined";
41
+ if (value === null) return "object";
42
+ if (isCallableRepresentation(value)) return "function";
43
+ if (Object(value) === value) return "object";
44
+ const tag = Object.prototype.toString.call(value);
45
+ if (tag === "[object BigInt]") return "bigint";
46
+ if (tag === "[object Boolean]") return "boolean";
47
+ if (tag === "[object Number]") return "number";
48
+ if (tag === "[object String]") return "string";
49
+ return "symbol";
50
+ }
51
+ //#endregion
52
+ //#region src/console/runtime/components/invocation/internal/payload-text.ts
53
+ function payloadText(value) {
54
+ if (hasRuntimeType(value, "string")) return value;
55
+ const ancestors = [];
56
+ try {
57
+ return JSON.stringify(value, function(_key, item) {
58
+ if (hasRuntimeType(item, "bigint")) return `${item}n`;
59
+ if (!hasRuntimeType(item, "object") || item === null) return item;
60
+ while (ancestors.length && ancestors.at(-1) !== this) ancestors.pop();
61
+ if (ancestors.includes(item)) return "[Circular]";
62
+ ancestors.push(item);
63
+ return item;
64
+ }, 2) ?? String(value);
65
+ } catch (error) {
66
+ let message;
67
+ try {
68
+ const raw = error?.message;
69
+ if (typeof raw === "string") message = raw;
70
+ else if (raw !== void 0) try {
71
+ message = String(raw);
72
+ } catch {}
73
+ } catch {}
74
+ if (message === void 0) return "[Unable to display payload]";
75
+ try {
76
+ return `[Unable to display payload: ${message}]`;
77
+ } catch {
78
+ return "[Unable to display payload]";
79
+ }
80
+ }
81
+ }
82
+ //#endregion
83
+ //#region src/console/runtime/components/invocation/internal/invocation-activity.ts
84
+ function record$1(value) {
85
+ return value !== null && hasRuntimeType(value, "object") && !Array.isArray(value) ? value : void 0;
86
+ }
87
+ function messageText(value) {
88
+ const message = record$1(value);
89
+ if (!Array.isArray(message?.parts)) return;
90
+ const parts = message.parts.flatMap((part) => {
91
+ const item = record$1(part);
92
+ if (hasRuntimeType(item?.text, "string")) return [item.text];
93
+ if (item?.type === "image" && hasRuntimeType(item.url, "string") && /^(https?:\/\/|\/(?!\/))/.test(item.url)) return [`\n\n![${hasRuntimeType(item.name, "string") ? item.name.replace(/[\[\]\r\n]/g, "") : "Attachment"}](<${item.url.replace(/[<>\r\n]/g, "")}>)\n\n`];
94
+ return [];
95
+ });
96
+ return parts.length ? parts.join("") : void 0;
97
+ }
98
+ function messageRole(value) {
99
+ return value === "assistant" || value === "system" || value === "tool" || value === "user" ? value : void 0;
100
+ }
101
+ function activityBody(attributes) {
102
+ for (const key of [
103
+ "vitehub.activity.progress",
104
+ "result.text",
105
+ "input.prompt",
106
+ "input.messages",
107
+ "vitehub.activity.body",
108
+ "message.content",
109
+ "approval.input",
110
+ "approval.reason",
111
+ "tool.error",
112
+ "error.message",
113
+ "tool.output",
114
+ "tool.input",
115
+ "content",
116
+ "body",
117
+ "output",
118
+ "input"
119
+ ]) {
120
+ const value = attributes[key];
121
+ if (value === void 0 || value === "undefined") continue;
122
+ if (hasRuntimeType(value, "string") && value) return value;
123
+ try {
124
+ const json = JSON.stringify(value, (_key, item) => hasRuntimeType(item, "bigint") ? `${item}n` : item, 2);
125
+ if (json) return json;
126
+ } catch (error) {
127
+ return error instanceof Error ? `[Unable to display payload: ${error.message}]` : "[Unable to display payload]";
128
+ }
129
+ }
130
+ }
131
+ function fileChanges(attributes) {
132
+ for (const key of ["tool.output", "tool.input"]) {
133
+ const item = record$1(record$1(attributes[key])?.item);
134
+ const fileChange = item?.type === "fileChange" || attributes["tool.name"] === "File change" || attributes["tool.name"] === "Edit";
135
+ if (!item || !fileChange || !Array.isArray(item.changes)) continue;
136
+ const paths = [];
137
+ const patches = item.changes.flatMap((value) => {
138
+ const change = record$1(value);
139
+ if (!hasRuntimeType(change?.path, "string")) return [];
140
+ const path = change.path.split("/workspace/").at(-1) || change.path.replace(/^\/+/, "");
141
+ paths.push(path);
142
+ if (!hasRuntimeType(change.diff, "string") || !change.diff) return [];
143
+ return [`diff --git a/${path} b/${path}\n--- a/${path}\n+++ b/${path}\n${change.diff.endsWith("\n") ? change.diff : `${change.diff}\n`}`];
144
+ });
145
+ if (patches.length || paths.length) return {
146
+ patches,
147
+ paths
148
+ };
149
+ }
150
+ const body = attributes["vitehub.activity.body"];
151
+ if (attributes["vitehub.activity.kind"] === "change" && hasRuntimeType(body, "string") && /^diff --git /m.test(body)) {
152
+ const paths = [...body.matchAll(/^diff --git a\/(.+?) b\/.+$/gm)].map((match) => match[1]);
153
+ return {
154
+ patches: (body.endsWith("\n") ? body : `${body}\n`).split(/^(?=diff --git )/m).filter((patch) => patch.startsWith("diff --git ")),
155
+ paths: [...new Set(paths)]
156
+ };
157
+ }
158
+ return {
159
+ patches: [],
160
+ paths: []
161
+ };
162
+ }
163
+ function commandDetails(attributes, observations) {
164
+ const payloadFor = (key) => {
165
+ const payload = record$1(attributes[key]);
166
+ return record$1(payload?.item) ?? payload;
167
+ };
168
+ const output = payloadFor("tool.output");
169
+ const input = payloadFor("tool.input");
170
+ 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");
171
+ if (!command) return;
172
+ const streamedOutput = observations.filter((observation) => observation.name === "agent.tool.output").map((observation) => observation.attributes?.["tool.output"]).filter((value) => hasRuntimeType(value, "string")).join("");
173
+ const directOutput = observations.filter((observation) => /\.(finish|error)$/.test(observation.name)).map((observation) => observation.attributes?.["tool.output"]).findLast((value) => hasRuntimeType(value, "string"));
174
+ const outputText = hasRuntimeType(output?.aggregatedOutput, "string") ? output.aggregatedOutput : streamedOutput ? streamedOutput : hasRuntimeType(directOutput, "string") ? directOutput : hasRuntimeType(output?.output, "string") ? output.output : hasRuntimeType(input?.aggregatedOutput, "string") ? input.aggregatedOutput : hasRuntimeType(input?.output, "string") ? input.output : void 0;
175
+ return {
176
+ command,
177
+ ...hasRuntimeType(input?.cwd, "string") ? { cwd: input.cwd } : hasRuntimeType(output?.cwd, "string") ? { cwd: output.cwd } : {},
178
+ ...hasRuntimeType(output?.exitCode, "number") ? { exitCode: output.exitCode } : hasRuntimeType(input?.exitCode, "number") ? { exitCode: input.exitCode } : {},
179
+ ...outputText !== void 0 ? { output: outputText } : {}
180
+ };
181
+ }
182
+ function skillReadDetails(attributes) {
183
+ const reads = [];
184
+ const add = (path) => {
185
+ if (path.includes("\\") || path.includes("//")) return;
186
+ const match = /^\.agents\/skills\/([^/.][^/]*)\/SKILL\.md$/.exec(path);
187
+ if (match?.[1] && !reads.some((read) => read.path === path)) reads.push({
188
+ name: match[1],
189
+ path
190
+ });
191
+ };
192
+ for (const key of ["tool.output", "tool.input"]) {
193
+ const payload = record$1(attributes[key]);
194
+ const item = record$1(payload?.item) ?? payload;
195
+ if (!item || !Array.isArray(item.commandActions)) continue;
196
+ for (const value of item.commandActions) {
197
+ const action = record$1(value);
198
+ const cwd = hasRuntimeType(item.cwd, "string") ? item.cwd.replace(/\/+$/, "") : void 0;
199
+ if (action?.type === "read" && hasRuntimeType(action.path, "string")) {
200
+ add(cwd && action.path.startsWith(`${cwd}/`) ? action.path.slice(cwd.length + 1) : action.path.replace(/^\.\//, ""));
201
+ continue;
202
+ }
203
+ if (action?.type !== "unknown" || !hasRuntimeType(action.command, "string")) continue;
204
+ const tokens = action.command.trim().split(/\s+/);
205
+ if (tokens[0] !== "cat" || tokens.length < 2 || tokens.slice(1).some((token) => token.startsWith("-") || /[\\'"`$;&|<>(){}[\]*?!]/.test(token))) continue;
206
+ for (const token of tokens.slice(1)) add(token.replace(/^\.\//, ""));
207
+ }
208
+ }
209
+ return reads;
210
+ }
211
+ function stringAttribute(attributes, ...keys) {
212
+ for (const key of keys) {
213
+ const value = attributes[key];
214
+ if (hasRuntimeType(value, "string") && value.trim()) return value.trim();
215
+ }
216
+ }
217
+ function payloadDetail(attributes) {
218
+ for (const key of ["tool.output", "tool.input"]) {
219
+ const payload = record$1(attributes[key]);
220
+ const item = record$1(payload?.item) ?? payload;
221
+ const detail = item && stringAttribute(item, "detail", "summary", "output", "query", "path");
222
+ if (detail) return detail.split(/\r?\n/).find(Boolean)?.trim();
223
+ }
224
+ return stringAttribute(attributes, "tool.detail", "tool.output.summary", "vitehub.activity.detail");
225
+ }
226
+ /** Sentences for common snake_case tool identifiers. Other identifiers keep their words with the underscores removed. */
227
+ const toolTitles = {
228
+ apply_patch: "Changed files",
229
+ edit_file: "Changed files",
230
+ exec_command: "Ran command",
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 known = toolTitles[trimmed.toLocaleLowerCase()];
242
+ if (known) return known;
243
+ const title = /^[a-z0-9]+(?:_[a-z0-9]+)+$/i.test(trimmed) ? trimmed.replaceAll("_", " ") : trimmed;
244
+ return title ? title[0].toUpperCase() + title.slice(1) : "Activity";
245
+ }
246
+ function activityPreview(attributes, command, paths, title) {
247
+ const detail = command?.command ?? payloadDetail(attributes) ?? (paths.length ? `${paths[0]}${paths.length > 1 ? ` +${paths.length - 1} more` : ""}` : void 0);
248
+ if (!detail || normalizedTitle(detail).toLocaleLowerCase() === title.toLocaleLowerCase()) return;
249
+ return detail;
250
+ }
251
+ function activityKey(observation, anonymousMessageKey) {
252
+ const attributes = observation.attributes ?? {};
253
+ 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}`);
254
+ }
255
+ function activityKind(observation, attributes, patches) {
256
+ if (patches.length) return "change";
257
+ if (observation.name === "agent.usage.recorded") return "model";
258
+ const explicit = attributes["vitehub.activity.kind"];
259
+ if (hasRuntimeType(explicit, "string") && [
260
+ "action",
261
+ "approval",
262
+ "change",
263
+ "delivery",
264
+ "error",
265
+ "message",
266
+ "model",
267
+ "plan",
268
+ "preparation",
269
+ "reasoning",
270
+ "run",
271
+ "system",
272
+ "tool",
273
+ "activity"
274
+ ].includes(explicit)) return explicit;
275
+ if (attributes["channel.effect.kind"] || attributes["channel.effect.intent"] || observation.name.includes(".channel.delivery")) return "delivery";
276
+ if (observation.name === "vitehub.agent.configured") return "system";
277
+ if (attributes["tool.name"] || attributes["tool.id"] || observation.name.includes(".tool.")) return "tool";
278
+ if (attributes["approval.id"] || observation.name.includes(".approval.")) return "approval";
279
+ if (observation.type === "error" || observation.name.endsWith(".error")) return "error";
280
+ if (attributes["message.phase"] === "commentary") return "message";
281
+ if (attributes["message.phase"] === "reasoning") return "reasoning";
282
+ if (observation.name.includes(".reasoning.")) return "reasoning";
283
+ if (observation.name.includes(".model.")) return "model";
284
+ if (attributes["message.role"] || attributes["message.content"] || attributes["input.prompt"] || attributes["input.messages"] || attributes["result.text"]) return "message";
285
+ if (observation.name.includes(".invocation.")) return "run";
286
+ return "activity";
287
+ }
288
+ function numericAttribute(attributes, ...keys) {
289
+ for (const key of keys) {
290
+ const value = attributes[key];
291
+ if (hasRuntimeType(value, "number") && Number.isFinite(value)) return value;
292
+ }
293
+ }
294
+ function isRecordedTool(value) {
295
+ const tool = record$1(value);
296
+ return hasRuntimeType(tool?.name, "string") && (tool.icon === void 0 || hasRuntimeType(tool.icon, "string")) && (tool.label === void 0 || hasRuntimeType(tool.label, "string"));
297
+ }
298
+ function invocationActivities(invocation) {
299
+ const groups = /* @__PURE__ */ new Map();
300
+ const recordedTools = Array.isArray(invocation.configuration?.tools) ? invocation.configuration.tools : [];
301
+ const toolCatalog = new Map(recordedTools.flatMap((tool) => isRecordedTool(tool) ? [[tool.name, tool]] : []));
302
+ const traceTruncated = invocation.observationsTruncated === true || (invocation.observations?.some((observation) => observation.attributes?.["vitehub.trace.truncated"] === true) ?? false);
303
+ const hasAgentMessages = (invocation.observations ?? []).some((observation) => observation.name === "agent.message" || observation.name.startsWith("agent.message."));
304
+ let anonymousMessage = 0;
305
+ let anonymousMessageKey;
306
+ let anonymousMessagePhase;
307
+ let assistantDeltaText = "";
308
+ for (const observation of invocation.observations ?? []) {
309
+ if (observation.name === "agent.title.recorded") continue;
310
+ const originalAttributes = observation.attributes ?? {};
311
+ if (originalAttributes["vitehub.auxiliary.kind"] === "title") continue;
312
+ if (observation.name === "agent.stream.error" && originalAttributes["error.recoverable"] === true) continue;
313
+ const delta = messageText({ parts: [{ text: originalAttributes["message.content"] }] });
314
+ const role = messageRole(originalAttributes["message.role"]);
315
+ const resultText = messageText({ parts: [{ text: originalAttributes["result.text"] }] });
316
+ if (resultText && assistantDeltaText.endsWith(resultText)) continue;
317
+ if (hasAgentMessages && !resultText && (observation.name === "agent.stream.finish" || observation.name === "agent.invocation.finish")) continue;
318
+ if (delta && (role === void 0 || role === "assistant")) assistantDeltaText += delta;
319
+ const inputMessages = Array.isArray(originalAttributes["input.messages"]) ? originalAttributes["input.messages"] : Array.isArray(originalAttributes["input.prompt"]) ? originalAttributes["input.prompt"] : void 0;
320
+ if (Array.isArray(inputMessages)) inputMessages.forEach((message, index) => {
321
+ const value = record$1(message);
322
+ const body = messageText(value) ?? (Array.isArray(value?.parts) ? "```json\n" + payloadText(value.parts) + "\n```" : void 0);
323
+ const role = messageRole(value?.role);
324
+ if (!body || !role) return;
325
+ const key = `input-message:${observation.sequence}:${index}`;
326
+ groups.set(key, [{
327
+ ...observation,
328
+ attributes: {
329
+ "message.content": body,
330
+ "message.origin": "invocation-input",
331
+ "message.id": value ? stringAttribute(value, "id") ?? key : key,
332
+ "message.role": role,
333
+ ...originalAttributes["vitehub.observation.truncated"] === true ? { "vitehub.observation.truncated": true } : {}
334
+ },
335
+ name: "agent.input.message",
336
+ sequence: observation.sequence - (inputMessages.length - index) / (inputMessages.length + 1)
337
+ }]);
338
+ });
339
+ const attributes = inputMessages === void 0 ? originalAttributes : Object.fromEntries(Object.entries(originalAttributes).filter(([key]) => key !== "input.messages" && key !== "input.prompt"));
340
+ if (inputMessages !== void 0 && Object.keys(attributes).length === 0) continue;
341
+ const isAnonymousMessage = stringAttribute(attributes, "message.content") !== void 0 && !attributes["message.id"];
342
+ const messagePhase = stringAttribute(attributes, "message.phase") ?? "message";
343
+ if (isAnonymousMessage && (!anonymousMessageKey || anonymousMessagePhase !== messagePhase)) {
344
+ anonymousMessageKey = `message:assistant:${anonymousMessage++}`;
345
+ anonymousMessagePhase = messagePhase;
346
+ } else if (!isAnonymousMessage) {
347
+ anonymousMessageKey = void 0;
348
+ anonymousMessagePhase = void 0;
349
+ }
350
+ const key = activityKey(observation, anonymousMessageKey);
351
+ const group = groups.get(key);
352
+ const groupedObservation = {
353
+ ...observation,
354
+ attributes
355
+ };
356
+ if (group) group.push(groupedObservation);
357
+ else groups.set(key, [groupedObservation]);
358
+ }
359
+ const completeAssistantTexts = /* @__PURE__ */ new Set();
360
+ let latestMessageSequence = -Infinity;
361
+ for (const observations of groups.values()) {
362
+ const sequence = Math.max(...observations.map((item) => item.sequence));
363
+ if (sequence > latestMessageSequence && observations.every((item) => item.name.startsWith("agent.message") || item.name === "agent.input.message")) latestMessageSequence = sequence;
364
+ }
365
+ for (const observations of groups.values()) {
366
+ if (Math.max(...observations.map((item) => item.sequence)) !== latestMessageSequence) continue;
367
+ if (observations.some((item) => item.attributes?.["vitehub.observation.truncated"] === true)) continue;
368
+ 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;
369
+ const text = observations.map((item) => {
370
+ const content = item.attributes?.["message.content"];
371
+ return hasRuntimeType(content, "string") ? content : "";
372
+ }).join("").trim();
373
+ if (!text) continue;
374
+ completeAssistantTexts.add(text);
375
+ try {
376
+ const response = record$1(JSON.parse(text));
377
+ const responseText = response && stringAttribute(response, "text");
378
+ if (responseText) completeAssistantTexts.add(responseText);
379
+ } catch {}
380
+ }
381
+ const visibleActivities = [...groups.entries()].map(([id, observations]) => {
382
+ const sorted = observations.slice().sort((left, right) => left.sequence - right.sequence);
383
+ const first = sorted[0];
384
+ const attributes = Object.assign({}, ...sorted.map((item) => item.attributes ?? {}));
385
+ const messageBody = sorted.map((item) => item.attributes?.["message.content"]).filter((value) => hasRuntimeType(value, "string")).join("");
386
+ const { patches, paths } = fileChanges(attributes);
387
+ const kind = activityKind(first, attributes, paths.length ? paths : patches);
388
+ 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";
389
+ const approvalDenied = attributes["approval.approved"] === false;
390
+ const completed = sorted.some((item) => /\.(abort|cancelled|completed|decision|error|failed|finish|recorded)$/.test(item.name));
391
+ const role = messageRole(attributes["message.role"]) ?? (attributes["result.text"] ? "assistant" : kind === "message" ? "user" : void 0);
392
+ const command = commandDetails(attributes, sorted);
393
+ const skills = skillReadDetails(attributes);
394
+ const observedEndedAt = sorted.at(-1)?.timestamp;
395
+ const invocationEndedAt = invocation.completedAt ?? invocation.failedAt ?? invocation.cancelledAt;
396
+ const started = /\.(request|start|started)$/.test(first.name);
397
+ const unfinishedTerminalStatus = started && !completed && invocation.status !== "pending" && invocation.status !== "running" ? invocation.status === "failed" ? "failed" : "completed" : void 0;
398
+ const endedAt = unfinishedTerminalStatus ? invocationEndedAt ?? observedEndedAt : started && !completed && invocation.status === "running" ? invocation.updatedAt : observedEndedAt;
399
+ const observedDuration = Date.parse(endedAt ?? "") - Date.parse(first.timestamp);
400
+ const durationMs = numericAttribute(attributes, "tool.durationMs") ?? (Number.isFinite(observedDuration) ? Math.max(0, observedDuration) : void 0);
401
+ const terminalStartedAt = !started && endedAt && durationMs !== void 0 ? new Date(Date.parse(endedAt) - durationMs).toISOString() : void 0;
402
+ const catalogTool = kind === "tool" ? toolCatalog.get(String(attributes["tool.name"] ?? "")) : void 0;
403
+ const toolDisplay = {
404
+ ...catalogTool?.icon ? { icon: catalogTool.icon } : {},
405
+ ...catalogTool?.label ? { label: catalogTool.label } : {}
406
+ };
407
+ const draft = {
408
+ attributes,
409
+ body: patches.join("") || messageBody || activityBody(attributes),
410
+ command,
411
+ ...durationMs !== void 0 ? { durationMs } : {},
412
+ ...endedAt ? { endedAt } : {},
413
+ id,
414
+ kind,
415
+ name: first.name,
416
+ patches,
417
+ paths,
418
+ sequence: first.sequence,
419
+ ...skills.length ? {
420
+ skill: skills[0],
421
+ skills
422
+ } : {},
423
+ startedAt: terminalStartedAt ?? first.timestamp,
424
+ ...numericAttribute(attributes, "usage.reasoningTokens", "usage.reasoningOutputTokens") !== void 0 ? { reasoningTokens: numericAttribute(attributes, "usage.reasoningTokens", "usage.reasoningOutputTokens") } : {},
425
+ ...role ? { role } : {},
426
+ status: failed || approvalDenied ? "failed" : completed || !started ? "completed" : unfinishedTerminalStatus ?? "running",
427
+ ...Object.keys(toolDisplay).length ? { toolDisplay } : {},
428
+ ...sorted.some((item) => item.attributes?.["vitehub.observation.truncated"] === true) && !(first.name === "agent.invocation.finish" && completeAssistantTexts.has(stringAttribute(attributes, "result.text") ?? "")) ? { truncated: true } : {},
429
+ ...numericAttribute(attributes, "usage.totalTokens") !== void 0 ? { totalTokens: numericAttribute(attributes, "usage.totalTokens") } : {}
430
+ };
431
+ const title = invocationActivityTitle(draft);
432
+ return {
433
+ ...draft,
434
+ ...activityPreview(attributes, command, paths, title) ? { preview: activityPreview(attributes, command, paths, title) } : {}
435
+ };
436
+ }).sort((left, right) => left.sequence - right.sequence).filter((activity) => !(activity.kind === "run" && /^agent\.invocation\.(?:start|started)$/.test(activity.name)));
437
+ if (traceTruncated && !visibleActivities.some((activity) => activity.name === "vitehub.observation.truncated")) visibleActivities.push({
438
+ attributes: {},
439
+ id: "trace-truncated",
440
+ kind: "system",
441
+ name: "vitehub.observation.truncated",
442
+ patches: [],
443
+ paths: [],
444
+ sequence: (visibleActivities.at(-1)?.sequence ?? -1) + 1,
445
+ status: "completed"
446
+ });
447
+ return visibleActivities;
448
+ }
449
+ /** Count distinct calls per tool name. */
450
+ function invocationToolUsage(invocation) {
451
+ const counts = /* @__PURE__ */ new Map();
452
+ const seen = /* @__PURE__ */ new Set();
453
+ for (const observation of invocation.observations) {
454
+ const name = observation.attributes?.["tool.name"];
455
+ if (!hasRuntimeType(name, "string") || !name) continue;
456
+ const id = observation.attributes?.["tool.id"];
457
+ if (hasRuntimeType(id, "string") && id) {
458
+ const key = `${name}:${id}`;
459
+ if (seen.has(key)) continue;
460
+ seen.add(key);
461
+ } else if (!observation.name.endsWith(".start")) continue;
462
+ counts.set(name, (counts.get(name) ?? 0) + 1);
463
+ }
464
+ return counts;
465
+ }
466
+ function latestInvocationTokens(activities) {
467
+ const snapshots = activities.flatMap((activity) => activity.totalTokens === void 0 ? [] : [activity.totalTokens]);
468
+ return snapshots.length ? Math.max(...snapshots) : void 0;
469
+ }
470
+ /** The short detail of an activity: its command, path, or recorded detail. */
471
+ function invocationActivityDetail(activity) {
472
+ return activity.preview ?? stringAttribute(activity.attributes, "vitehub.activity.detail");
473
+ }
474
+ function invocationActivityTitle(activity) {
475
+ const explicit = activity.attributes["vitehub.activity.title"];
476
+ if (hasRuntimeType(explicit, "string") && explicit.trim()) return explicit.trim();
477
+ if (activity.name === "vitehub.observation.truncated") return "Trace content was truncated";
478
+ if (activity.name === "vitehub.agent.configured") return agentConfigurationTitle(activity);
479
+ if (activity.skill) return `Read ${activity.skill.name} skill`;
480
+ if (activity.kind === "preparation") return "Prepared session";
481
+ if (activity.kind === "system") return "System configuration";
482
+ if (activity.kind === "delivery") return channelDeliveryTitle(activity);
483
+ if (activity.attributes["vitehub.action.name"] === "progress-summary.update") return "Updated loading message";
484
+ if (activity.attributes["vitehub.action.name"] === "input.steered") return "Steered active session";
485
+ if (activity.kind === "action") return String(activity.attributes["channel.effect.kind"] ?? activity.attributes["vitehub.action.name"] ?? "Product action");
486
+ if (activity.kind === "plan") return "Updated plan";
487
+ if (activity.kind === "change") return normalizedTitle(String(activity.attributes["tool.name"] ?? "Changed files"));
488
+ if (activity.kind === "tool") return normalizedTitle(String(activity.attributes["tool.title"] ?? activity.toolDisplay?.label ?? activity.attributes["tool.name"] ?? "Used a tool"));
489
+ if (activity.kind === "approval") {
490
+ if (activity.attributes["approval.approved"] === true) return "Approval granted";
491
+ if (activity.attributes["approval.approved"] === false) return "Approval denied";
492
+ return String(activity.attributes["approval.name"] ?? "Requested approval");
493
+ }
494
+ if (activity.kind === "reasoning") return "Thinking";
495
+ if (activity.kind === "model") return "Thinking";
496
+ if (activity.kind === "run") return activity.name.endsWith(".finish") ? "Finished session" : "Started session";
497
+ if (activity.kind === "error" && activity.name.startsWith("agent.invocation.")) return "Session failed";
498
+ return normalizedTitle(activity.name.replace(/\.(start|finish|error|decision|recorded)$/, "").replaceAll(".", " "));
499
+ }
500
+ function agentConfigurationTitle(activity) {
501
+ const configuration = record$1(activity.attributes["vitehub.agent.configuration"]);
502
+ if (!configuration) return "Agent configured";
503
+ const agent = stringAttribute(record$1(configuration.agent) ?? {}, "name") ?? "Agent";
504
+ const capabilities = Array.isArray(configuration.capabilities) ? configuration.capabilities.length : 0;
505
+ return capabilities ? `Configured ${agent} with ${capabilities} ${capabilities === 1 ? "capability" : "capabilities"}` : `Configured ${agent}`;
506
+ }
507
+ function agentConfigurationSummary(activity) {
508
+ if (activity.name !== "vitehub.agent.configured") return;
509
+ const configuration = record$1(activity.attributes["vitehub.agent.configuration"]);
510
+ if (!configuration) return;
511
+ const driver = record$1(configuration.driver);
512
+ const modelName = stringAttribute(record$1(driver?.model) ?? {}, "id") ?? stringAttribute(driver ?? {}, "provider");
513
+ const tools = Array.isArray(configuration.tools) ? configuration.tools.length : 0;
514
+ return [modelName, tools ? `${tools} ${tools === 1 ? "tool" : "tools"}` : void 0].filter(Boolean).join(" · ") || void 0;
515
+ }
516
+ function channelDeliveryTitle(activity) {
517
+ const rawKind = String(activity.attributes["channel.effect.kind"] ?? "").trim();
518
+ const kind = rawKind.toLocaleLowerCase();
519
+ const intent = String(activity.attributes["channel.effect.intent"] ?? "").trim().toLocaleLowerCase();
520
+ const delivery = rawKind.includes(".") ? rawKind : kind ? normalizedTitle(kind) : "Channel delivery";
521
+ if (activity.attributes["channel.effect.supported"] === false) return `${delivery} not supported`;
522
+ if (stringAttribute(activity.attributes, "channel.effect.skipped")) return `${delivery} skipped`;
523
+ if (activity.status === "failed") return `${delivery} failed`;
524
+ if (kind === "reaction") {
525
+ const reaction = {
526
+ completed: "hooray",
527
+ failed: "confused",
528
+ started: "eyes"
529
+ };
530
+ return reaction[intent] ? `Reacted with ${reaction[intent]}` : "Reaction sent";
531
+ }
532
+ if (kind === "reply") return "Reply sent";
533
+ if (kind === "status") return "Status updated";
534
+ if (kind === "title") return "Title updated";
535
+ if (kind === "update") return "Message updated";
536
+ if (rawKind.includes(".")) return rawKind;
537
+ return kind ? `${normalizedTitle(kind)} delivered` : "Channel delivery";
538
+ }
539
+ function channelDeliverySummary(activity) {
540
+ if (activity.kind !== "delivery") return;
541
+ if (activity.attributes["channel.effect.supported"] === false) return "Not supported";
542
+ const skipped = stringAttribute(activity.attributes, "channel.effect.skipped");
543
+ if (skipped) return normalizedTitle(skipped);
544
+ const kind = String(activity.attributes["channel.effect.kind"] ?? "").trim().toLocaleLowerCase();
545
+ const intent = String(activity.attributes["channel.effect.intent"] ?? "").trim();
546
+ if (!intent || kind === "reaction" && [
547
+ "completed",
548
+ "failed",
549
+ "started"
550
+ ].includes(intent.toLocaleLowerCase())) return;
551
+ return normalizedTitle(intent);
552
+ }
553
+ function terminalText(value) {
554
+ if (!value) return "";
555
+ const escape = String.fromCharCode(27);
556
+ return value.replace(new RegExp(`${escape}\\[[0-?]*[ -/]*[@-~]`, "g"), "").replaceAll("\r", "");
557
+ }
558
+ //#endregion
559
+ //#region src/console/runtime/components/invocation/agent-capability-inspector.ts
560
+ function record(value) {
561
+ return value !== null && hasRuntimeType(value, "object") && !Array.isArray(value) ? Object.fromEntries(Object.entries(value)) : void 0;
562
+ }
563
+ const catalogProps = {
564
+ Stack: [],
565
+ Section: ["title"],
566
+ Text: ["text"],
567
+ KeyValue: ["label", "value"],
568
+ Tools: ["names", "mcpServer"]
569
+ };
570
+ function readOnlyValue(value, depth = 0) {
571
+ if (depth > 20) return false;
572
+ if (value === null || hasRuntimeType(value, "string") || hasRuntimeType(value, "boolean")) return true;
573
+ if (hasRuntimeType(value, "number")) return Number.isFinite(value);
574
+ if (Array.isArray(value)) return value.every((item) => readOnlyValue(item, depth + 1));
575
+ const fields = record(value);
576
+ if (!fields) return false;
577
+ return Object.entries(fields).every(([key, child]) => key.startsWith("$") ? (key === "$state" || key === "$item") && hasRuntimeType(child, "string") && (child === "" || child.startsWith("/")) : readOnlyValue(child, depth + 1));
578
+ }
579
+ /** Validate a bounded, read-only subset of JSON Render before passing it to the renderer. */
580
+ function capabilityInspectionSpec(value) {
581
+ const view = record(value);
582
+ const elements = record(view?.elements);
583
+ if (!view || !hasRuntimeType(view.root, "string") || !elements || !Object.hasOwn(elements, view.root)) return;
584
+ if (Object.keys(view).some((key) => key !== "root" && key !== "elements")) return;
585
+ if (Object.keys(elements).length > 128) return;
586
+ const parsed = {};
587
+ for (const [id, value] of Object.entries(elements)) {
588
+ if ([
589
+ "__proto__",
590
+ "prototype",
591
+ "constructor"
592
+ ].includes(id)) return;
593
+ const element = record(value);
594
+ const props = record(element?.props);
595
+ if (!element || !props || !hasRuntimeType(element.type, "string") || !Object.hasOwn(catalogProps, element.type)) return;
596
+ if (Object.keys(element).some((key) => ![
597
+ "type",
598
+ "props",
599
+ "children",
600
+ "repeat"
601
+ ].includes(key))) return;
602
+ const allowedProps = catalogProps[element.type];
603
+ if (Object.keys(props).some((key) => !allowedProps.includes(key)) || !readOnlyValue(props)) return;
604
+ const children = element.children;
605
+ if (children !== void 0 && (!Array.isArray(children) || !children.every((child) => hasRuntimeType(child, "string") && Object.hasOwn(elements, child)))) return;
606
+ const repeat = record(element.repeat);
607
+ if (element.repeat !== void 0 && (!repeat || !hasRuntimeType(repeat.statePath, "string") || !repeat.statePath.startsWith("/") || repeat.key !== void 0 && !hasRuntimeType(repeat.key, "string") || Object.keys(repeat).some((key) => key !== "statePath" && key !== "key"))) return;
608
+ parsed[id] = {
609
+ type: element.type,
610
+ props,
611
+ ...Array.isArray(children) ? { children: children.filter((child) => hasRuntimeType(child, "string")) } : {},
612
+ ...repeat && hasRuntimeType(repeat.statePath, "string") ? { repeat: {
613
+ statePath: repeat.statePath,
614
+ ...hasRuntimeType(repeat.key, "string") ? { key: repeat.key } : {}
615
+ } } : {}
616
+ };
617
+ }
618
+ let remaining = 512;
619
+ const visit = (id, ancestors) => {
620
+ if (--remaining < 0 || ancestors.size > 20 || ancestors.has(id)) return false;
621
+ const next = /* @__PURE__ */ new Set([...ancestors, id]);
622
+ return parsed[id].children?.every((child) => visit(child, next)) ?? true;
623
+ };
624
+ return visit(view.root, /* @__PURE__ */ new Set()) ? {
625
+ root: view.root,
626
+ elements: parsed
627
+ } : void 0;
628
+ }
629
+ function safeInspectionState(value) {
630
+ const text = payloadText(value);
631
+ try {
632
+ return record(JSON.parse(text));
633
+ } catch {
634
+ return;
635
+ }
636
+ }
637
+ function display(value) {
638
+ if (value === void 0 || value === null) return "Not recorded";
639
+ return hasRuntimeType(value, "string") ? value : JSON.stringify(value, null, 2);
640
+ }
641
+ function catalogComponent(render) {
642
+ return defineComponent({
643
+ inheritAttrs: false,
644
+ props: { element: {
645
+ type: Object,
646
+ required: true
647
+ } },
648
+ setup(props, { slots }) {
649
+ return () => render(props.element.props, slots.default?.());
650
+ }
651
+ });
652
+ }
653
+ const AgentCapabilityInspector = defineComponent({
654
+ name: "AgentCapabilityInspector",
655
+ emits: {
656
+ /** Emitted with the first recorded call of a tool the viewer selects. */
657
+ selectActivity: (id) => Boolean(id) },
658
+ props: { invocation: {
659
+ type: Object,
660
+ required: true
661
+ } },
662
+ setup(props, { emit }) {
663
+ const selectedId = ref();
664
+ const calls = computed(() => Object.fromEntries(invocationToolUsage(props.invocation)));
665
+ function selectTool(name) {
666
+ const call = invocationActivities(props.invocation).find((activity) => activity.attributes["tool.name"] === name);
667
+ if (call) emit("selectActivity", call.id);
668
+ }
669
+ const capabilities = computed(() => props.invocation.configuration?.capabilities ?? []);
670
+ const selected = computed(() => capabilities.value.find((capability) => capability.id === selectedId.value) ?? capabilities.value[0]);
671
+ const tools = computed(() => props.invocation.configuration?.tools?.filter((tool) => tool.capabilityId === selected.value?.id) ?? []);
672
+ const spec = computed(() => capabilityInspectionSpec(selected.value?.inspection?.view));
673
+ const safeState = computed(() => safeInspectionState(selected.value?.inspection?.state));
674
+ watch(() => props.invocation.id, () => {
675
+ selectedId.value = void 0;
676
+ });
677
+ const registry = {
678
+ Stack: catalogComponent((_props, children) => h("div", { class: "vh-capability-inspector__stack" }, [children])),
679
+ Section: catalogComponent((props, children) => h("section", { class: "vh-capability-inspector__section" }, [h("h3", display(props.title)), children])),
680
+ Text: catalogComponent((props) => props.text ? h("p", display(props.text)) : null),
681
+ KeyValue: catalogComponent((props) => h("dl", { class: "vh-capability-inspector__value" }, [h("dt", display(props.label)), h("dd", display(props.value))])),
682
+ Tools: catalogComponent((props) => {
683
+ const names = Array.isArray(props.names) ? props.names : void 0;
684
+ const selectedTools = tools.value.filter((tool) => (!Object.hasOwn(props, "names") || names?.includes(tool.name)) && (!Object.hasOwn(props, "mcpServer") || hasRuntimeType(props.mcpServer, "string") && tool.mcp?.server === props.mcpServer));
685
+ return selectedTools.length ? h(ToolList, {
686
+ calls: calls.value,
687
+ onSelect: selectTool,
688
+ tools: selectedTools
689
+ }) : h("p", { class: "vh-capability-inspector__empty" }, "No tool contracts recorded.");
690
+ })
691
+ };
692
+ return () => h("div", { class: "vh-capability-inspector" }, [
693
+ props.invocation.configuration?.truncated ? h("p", { role: "status" }, "Captured configuration was truncated. Some capabilities or contracts may be missing.") : null,
694
+ capabilities.value.length ? h("nav", {
695
+ class: "vh-capability-inspector__navigation",
696
+ "aria-label": "Capabilities"
697
+ }, capabilities.value.map((capability) => h("button", {
698
+ type: "button",
699
+ "aria-pressed": selected.value?.id === capability.id,
700
+ onClick: () => {
701
+ selectedId.value = capability.id;
702
+ }
703
+ }, capability.inspection?.label ?? capability.id))) : h("p", { class: "vh-capability-inspector__empty" }, "No capabilities recorded for this Invocation."),
704
+ selected.value ? h("div", {
705
+ class: "vh-capability-inspector__content",
706
+ key: `${props.invocation.id}:${selected.value.id}`
707
+ }, [
708
+ h("h2", selected.value.inspection?.label ?? selected.value.id),
709
+ selected.value.inspection?.truncated ? h("p", { role: "status" }, "Capability inspection was truncated. Some recorded data is missing.") : null,
710
+ selected.value.inspection?.label && selected.value.inspection.label !== selected.value.id ? h("code", selected.value.id) : null,
711
+ spec.value && safeState.value !== void 0 ? h(JSONUIProvider, {
712
+ registry,
713
+ initialState: safeState.value
714
+ }, { default: () => h(Renderer, {
715
+ spec: spec.value,
716
+ registry
717
+ }) }) : [
718
+ 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,
719
+ tools.value.length ? h(ToolList, {
720
+ calls: calls.value,
721
+ onSelect: selectTool,
722
+ tools: tools.value
723
+ }) : null,
724
+ selected.value.inspection?.state ? h("pre", payloadText(selected.value.inspection.state)) : null,
725
+ selected.value.metadata ? h("details", [h("summary", "Configuration"), h("pre", payloadText(selected.value.metadata))]) : null,
726
+ !tools.value.length && !selected.value.metadata && !selected.value.inspection ? h("p", "No tools or configuration recorded.") : null
727
+ ]
728
+ ]) : null
729
+ ]);
730
+ }
731
+ });
732
+ //#endregion
733
+ //#region src/console/runtime/components/invocation/internal/channel-icon.ts
734
+ const channelMarks = {
735
+ "teams": {
736
+ "label": "Microsoft Teams",
737
+ "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\"/>"
738
+ },
739
+ "slack": {
740
+ "label": "Slack",
741
+ "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\"/>"
742
+ },
743
+ "discord": {
744
+ "label": "Discord",
745
+ "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\"/>"
746
+ },
747
+ "telegram": {
748
+ "label": "Telegram",
749
+ "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\"/>"
750
+ },
751
+ "github": {
752
+ "label": "GitHub",
753
+ "viewBox": "0 0 16 16",
754
+ "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\"/>"
755
+ },
756
+ "web-chat": {
757
+ "label": "Web chat",
758
+ "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\"/>"
759
+ },
760
+ "http": {
761
+ "label": "HTTP",
762
+ "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\"/>"
763
+ }
764
+ };
765
+ 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\"/>" };
766
+ function channelIcon(channel) {
767
+ const normalized = channel.toLowerCase().replace(/^msteams$/, "teams").replace(/^microsoft[ ._-]?/, "").replace(/^github-pull-request(?:-comment)?$/, "github");
768
+ const knownMark = Object.hasOwn(channelMarks, normalized) ? channelMarks[normalized] : void 0;
769
+ const mark = knownMark ?? genericChannelMark;
770
+ const label = knownMark?.label ?? channel;
771
+ return h("span", {
772
+ class: "vh-channel-icon vh-invocation-list__channel",
773
+ title: label,
774
+ "aria-label": label
775
+ }, [h("svg", {
776
+ width: "1em",
777
+ height: "1em",
778
+ viewBox: knownMark?.viewBox ?? "0 0 256 256",
779
+ fill: "currentColor",
780
+ "aria-hidden": "true",
781
+ innerHTML: mark.body
782
+ })]);
783
+ }
784
+ //#endregion
785
+ //#region src/console/runtime/components/invocation/internal/brand-icons.ts
786
+ /**
787
+ * @license
788
+ * AI brand marks from Lobe Icons (@lobehub/icons-static-svg 1.95.1).
789
+ * https://github.com/lobehub/lobe-icons
790
+ *
791
+ * MIT License
792
+ *
793
+ * Copyright (c) 2023 LobeHub
794
+ *
795
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
796
+ * of this software and associated documentation files (the "Software"), to deal
797
+ * in the Software without restriction, including without limitation the rights
798
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
799
+ * copies of the Software, and to permit persons to whom the Software is
800
+ * furnished to do so, subject to the following conditions:
801
+ *
802
+ * The above copyright notice and this permission notice shall be included in all
803
+ * copies or substantial portions of the Software.
804
+ *
805
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
806
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
807
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
808
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
809
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
810
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
811
+ * SOFTWARE.
812
+ */
813
+ /** Monochrome 24 x 24 marks that render with `currentColor`. */
814
+ const brandIcons = {
815
+ 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" }],
816
+ 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" }],
817
+ azure: [
818
+ {
819
+ 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",
820
+ fillOpacity: ".75"
821
+ },
822
+ {
823
+ 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",
824
+ fillOpacity: ".5"
825
+ },
826
+ { 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" }
827
+ ],
828
+ 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" }],
829
+ cerebras: [{
830
+ clipRule: "evenodd",
831
+ 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"
832
+ }, { 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" }],
833
+ 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" }],
834
+ cohere: [
835
+ {
836
+ clipRule: "evenodd",
837
+ 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"
838
+ },
839
+ {
840
+ clipRule: "evenodd",
841
+ 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"
842
+ },
843
+ { 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" }
844
+ ],
845
+ 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" }],
846
+ fireworks: [{
847
+ clipRule: "evenodd",
848
+ 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"
849
+ }],
850
+ google: [
851
+ { 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" },
852
+ { 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" },
853
+ { 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" },
854
+ { 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" }
855
+ ],
856
+ 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" }],
857
+ 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" }],
858
+ 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" }],
859
+ 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" }],
860
+ mistral: [{
861
+ clipRule: "evenodd",
862
+ 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"
863
+ }],
864
+ 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" }],
865
+ 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" }],
866
+ 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" }],
867
+ 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" }],
868
+ 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" }],
869
+ 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" }],
870
+ 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" }],
871
+ replicate: [{ d: "M22 10.552v2.26h-7.932V22H11.54V10.552H22zM22 2v2.264H4.528V22H2V2h20zm0 4.276V8.54H9.296V22H6.768V6.276H22z" }],
872
+ together: [
873
+ { 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" },
874
+ { 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" },
875
+ { 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" }
876
+ ],
877
+ 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" }],
878
+ 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" }]
879
+ };
880
+ //#endregion
881
+ //#region src/console/runtime/components/invocation/internal/invocation-brand.ts
882
+ const brands = {
883
+ alibaba: {
884
+ icon: "qwen",
885
+ label: "Alibaba"
886
+ },
887
+ anthropic: {
888
+ icon: "anthropic",
889
+ label: "Anthropic"
890
+ },
891
+ aws: {
892
+ icon: "aws",
893
+ label: "AWS"
894
+ },
895
+ azure: {
896
+ icon: "azure",
897
+ label: "Azure"
898
+ },
899
+ bedrock: {
900
+ icon: "bedrock",
901
+ label: "Amazon Bedrock"
902
+ },
903
+ cerebras: {
904
+ icon: "cerebras",
905
+ label: "Cerebras"
906
+ },
907
+ cloudflare: {
908
+ icon: "cloudflare",
909
+ label: "Cloudflare"
910
+ },
911
+ codex: {
912
+ icon: "openai",
913
+ label: "Codex"
914
+ },
915
+ cohere: {
916
+ icon: "cohere",
917
+ label: "Cohere"
918
+ },
919
+ deepseek: {
920
+ icon: "deepseek",
921
+ label: "DeepSeek"
922
+ },
923
+ fireworks: {
924
+ icon: "fireworks",
925
+ label: "Fireworks AI"
926
+ },
927
+ google: {
928
+ icon: "google",
929
+ label: "Google"
930
+ },
931
+ groq: {
932
+ icon: "groq",
933
+ label: "Groq"
934
+ },
935
+ huggingface: {
936
+ icon: "huggingface",
937
+ label: "Hugging Face"
938
+ },
939
+ meta: {
940
+ icon: "meta",
941
+ label: "Meta"
942
+ },
943
+ minimax: {
944
+ icon: "minimax",
945
+ label: "MiniMax"
946
+ },
947
+ mistral: {
948
+ icon: "mistral",
949
+ label: "Mistral AI"
950
+ },
951
+ moonshot: {
952
+ icon: "moonshot",
953
+ label: "Moonshot AI"
954
+ },
955
+ nvidia: {
956
+ icon: "nvidia",
957
+ label: "NVIDIA"
958
+ },
959
+ ollama: {
960
+ icon: "ollama",
961
+ label: "Ollama"
962
+ },
963
+ openai: {
964
+ icon: "openai",
965
+ label: "OpenAI"
966
+ },
967
+ openrouter: {
968
+ icon: "openrouter",
969
+ label: "OpenRouter"
970
+ },
971
+ perplexity: {
972
+ icon: "perplexity",
973
+ label: "Perplexity"
974
+ },
975
+ qwen: {
976
+ icon: "qwen",
977
+ label: "Qwen"
978
+ },
979
+ replicate: {
980
+ icon: "replicate",
981
+ label: "Replicate"
982
+ },
983
+ together: {
984
+ icon: "together",
985
+ label: "Together AI"
986
+ },
987
+ xai: {
988
+ icon: "xai",
989
+ label: "xAI"
990
+ },
991
+ zai: {
992
+ icon: "zai",
993
+ label: "Z.AI"
994
+ }
995
+ };
996
+ const providerAliases = {
997
+ "alibaba-cloud": "alibaba",
998
+ "amazon-bedrock": "bedrock",
999
+ "amazon-web-services": "aws",
1000
+ amazon: "aws",
1001
+ "fireworks-ai": "fireworks",
1002
+ "google-vertex": "google",
1003
+ "hugging-face": "huggingface",
1004
+ "microsoft-azure": "azure",
1005
+ mistralai: "mistral",
1006
+ "moonshot-ai": "moonshot",
1007
+ moonshotai: "moonshot",
1008
+ "together-ai": "together",
1009
+ togetherai: "together",
1010
+ vertex: "google",
1011
+ "vertex-ai": "google",
1012
+ "x-ai": "xai",
1013
+ "z-ai": "zai",
1014
+ zhipu: "zai"
1015
+ };
1016
+ const modelFamilies = [
1017
+ ["claude", "anthropic"],
1018
+ ["codestral", "mistral"],
1019
+ ["command", "cohere"],
1020
+ ["deepseek", "deepseek"],
1021
+ ["devstral", "mistral"],
1022
+ ["gemini", "google"],
1023
+ ["gemma", "google"],
1024
+ ["glm", "zai"],
1025
+ ["gpt", "openai"],
1026
+ ["grok", "xai"],
1027
+ ["kimi", "moonshot"],
1028
+ ["llama", "meta"],
1029
+ ["minimax", "minimax"],
1030
+ ["mistral", "mistral"],
1031
+ ["qwen", "qwen"]
1032
+ ];
1033
+ function isBrandId(value) {
1034
+ return Object.hasOwn(brands, value);
1035
+ }
1036
+ function brandId(value) {
1037
+ if (isBrandId(value)) return value;
1038
+ if (Object.hasOwn(providerAliases, value)) return providerAliases[value];
1039
+ }
1040
+ function brand(id) {
1041
+ return {
1042
+ id,
1043
+ ...brands[id]
1044
+ };
1045
+ }
1046
+ /** Resolve a provider or driver id such as `openrouter`, `anthropic.messages`, or `z-ai`. */
1047
+ function invocationBrand(value) {
1048
+ const id = value?.trim().toLocaleLowerCase();
1049
+ if (!id) return;
1050
+ const known = brandId(id) ?? brandId(id.split(/[.:/]/)[0] ?? "") ?? (id.includes("openrouter") ? "openrouter" : void 0);
1051
+ if (known) return brand(known);
1052
+ return {
1053
+ id: "fallback",
1054
+ label: id.split(/[._-]/g).filter(Boolean).map((part) => part.length <= 3 ? part.toLocaleUpperCase() : `${part[0]?.toLocaleUpperCase() ?? ""}${part.slice(1)}`).join(" ")
1055
+ };
1056
+ }
1057
+ /** Resolve the company that made a model from ids such as `anthropic/claude-sonnet-4.5` or `gpt-5.6`. */
1058
+ function invocationModelMaker(modelId) {
1059
+ const id = modelId?.trim().toLocaleLowerCase();
1060
+ if (!id) return;
1061
+ const segments = id.split("/");
1062
+ const owner = segments.length > 1 ? brandId(segments[0] ?? "") : void 0;
1063
+ if (owner) return brand(owner);
1064
+ const name = segments.at(-1) ?? "";
1065
+ const family = modelFamilies.find(([prefix]) => name.startsWith(prefix));
1066
+ return family ? brand(family[1]) : void 0;
1067
+ }
1068
+ function invocationBrandMark(value, className) {
1069
+ if (!value) return null;
1070
+ if (value.id === "fallback") return h("svg", {
1071
+ "aria-hidden": "true",
1072
+ class: `vh-invocation-brand__logo ${className}`,
1073
+ fill: "none",
1074
+ stroke: "currentColor",
1075
+ "stroke-width": 1.5,
1076
+ viewBox: "0 0 24 24"
1077
+ }, [h("rect", {
1078
+ height: 14,
1079
+ rx: 3,
1080
+ width: 14,
1081
+ x: 5,
1082
+ y: 5
1083
+ }), h("path", { d: "M9 2v3m6-3v3M9 19v3m6-3v3M2 9h3m-3 6h3m14-6h3m-3 6h3M9 9h6v6H9z" })]);
1084
+ const paths = brandIcons[value.icon];
1085
+ return h("svg", {
1086
+ "aria-hidden": "true",
1087
+ class: `vh-invocation-brand__logo ${className}`,
1088
+ "data-brand": value.id,
1089
+ "fill-rule": "evenodd",
1090
+ viewBox: "0 0 24 24"
1091
+ }, paths.map((path) => h("path", {
1092
+ "clip-rule": path.clipRule,
1093
+ d: path.d,
1094
+ "fill-opacity": path.fillOpacity
1095
+ })));
1096
+ }
1097
+ //#endregion
1098
+ //#region src/console/runtime/components/invocation/internal/url.ts
1099
+ function isSafeExternalUrl(value) {
1100
+ try {
1101
+ const protocol = new URL(value).protocol;
1102
+ return protocol === "http:" || protocol === "https:";
1103
+ } catch {
1104
+ return false;
1105
+ }
1106
+ }
1107
+ //#endregion
1108
+ //#region src/console/runtime/components/invocation/invocation-display.ts
1109
+ function annotation(source, key) {
1110
+ const value = source.annotations?.[key];
1111
+ return typeof value === "string" && value.trim() ? value.trim() : void 0;
1112
+ }
1113
+ function agentInvocationTitle(source) {
1114
+ return source.title ?? annotation(source, "github.title") ?? source.agentName ?? "Agent Invocation";
1115
+ }
1116
+ function agentInvocationContext(source) {
1117
+ const repository = annotation(source, "github.repository");
1118
+ const pullRequest = source.annotations?.["github.pullRequest"];
1119
+ if (repository && (typeof pullRequest === "string" || typeof pullRequest === "number")) return `${repository} · PR #${pullRequest}`;
1120
+ return annotation(source, "triggeredBy") ?? source.threadId ?? source.origin ?? source.channelId ?? source.id;
1121
+ }
1122
+ function agentInvocationProject(source) {
1123
+ return annotation(source, "github.repository")?.split("/").at(-1) ?? source.configuration?.workspace?.name ?? source.agentName ?? "Workspace";
1124
+ }
1125
+ function agentInvocationExternalUrl(source) {
1126
+ const value = annotation(source, "github.url");
1127
+ return value && isSafeExternalUrl(value) ? value : void 0;
1128
+ }
1129
+ //#endregion
1130
+ //#region src/console/runtime/components/invocation/agent-invocation-timeline.ts
1131
+ function formatTimelineDuration(value) {
1132
+ if (!Number.isFinite(value) || value < 0) return;
1133
+ if (value < 1e3) return `${Math.round(value)}ms`;
1134
+ if (value < 6e4) return `${new Intl.NumberFormat("en", { maximumFractionDigits: 1 }).format(value / 1e3)}s`;
1135
+ const seconds = Math.round(value / 1e3);
1136
+ return `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
1137
+ }
1138
+ /** ViteHub owns preparation, delivery, and its own tools; the Agent owns the rest. */
1139
+ function timelineOwner(activity) {
1140
+ const tool = String(activity.attributes["tool.name"] ?? "").toLocaleLowerCase();
1141
+ 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";
1142
+ return "agent";
1143
+ }
1144
+ /** The timed, non-message activities of an Invocation in start order, with their offset from the start. */
1145
+ function invocationTimeline(invocation, activities = invocationActivities(invocation)) {
1146
+ 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);
1147
+ if (!items.length) return [];
1148
+ const invocationStart = Date.parse(invocation.startedAt ?? invocation.createdAt ?? "");
1149
+ const observedStarts = items.map((activity) => Date.parse(activity.startedAt ?? "")).filter(Number.isFinite);
1150
+ const zero = Number.isFinite(invocationStart) ? invocationStart : Math.min(...observedStarts);
1151
+ return items.map((activity) => {
1152
+ const started = Date.parse(activity.startedAt ?? "");
1153
+ const durationMs = Number.isFinite(activity.durationMs) ? activity.durationMs ?? 0 : 0;
1154
+ const offsetMs = Number.isFinite(started) ? Math.max(0, started - zero) : 0;
1155
+ const timing = [offsetMs ? `+${formatTimelineDuration(offsetMs)}` : "start", durationMs ? formatTimelineDuration(durationMs) : void 0].filter(Boolean).join(" · ");
1156
+ const item = {
1157
+ activity,
1158
+ durationMs,
1159
+ id: activity.id,
1160
+ offsetMs,
1161
+ owner: timelineOwner(activity),
1162
+ timing,
1163
+ title: invocationActivityTitle(activity)
1164
+ };
1165
+ const detail = invocationActivityDetail(activity);
1166
+ if (detail) item.detail = detail;
1167
+ return item;
1168
+ });
1169
+ }
1170
+ /** One row for each timed step of an Invocation: who ran it, what it did, and when. */
1171
+ const AgentInvocationTimeline = defineComponent({
1172
+ name: "AgentInvocationTimeline",
1173
+ emits: { selectActivity: (id) => Boolean(id) },
1174
+ props: { invocation: {
1175
+ required: true,
1176
+ type: Object
1177
+ } },
1178
+ setup(props, { emit, slots }) {
1179
+ const items = computed(() => invocationTimeline(props.invocation));
1180
+ return () => h("div", {
1181
+ class: "vh-invocation-timeline",
1182
+ "data-slot": "invocation-timeline"
1183
+ }, [items.value.length ? h("ol", { class: "vh-invocation-timeline__rows" }, items.value.map((item) => h("li", { key: `timeline:${item.id}` }, [h("button", {
1184
+ class: "vh-invocation-timeline__row",
1185
+ "data-activity-id": item.id,
1186
+ "data-owner": item.owner,
1187
+ "data-status": item.activity.status,
1188
+ onClick: () => emit("selectActivity", item.id),
1189
+ title: item.detail ? `${item.title} — ${item.detail}` : item.title,
1190
+ type: "button"
1191
+ }, [
1192
+ h("span", {
1193
+ "aria-hidden": "true",
1194
+ class: "vh-invocation-timeline__dot"
1195
+ }),
1196
+ h("span", { class: "vh-visually-hidden" }, `${item.owner === "vitehub" ? "ViteHub" : "Agent"}${item.activity.status === "failed" ? ", failed" : ""}: `),
1197
+ h("span", { class: "vh-invocation-timeline__heading" }, [h("strong", item.title), item.detail ? h("code", { class: "vh-invocation-timeline__detail" }, item.detail) : null]),
1198
+ h("time", { class: "vh-invocation-timeline__time" }, item.timing)
1199
+ ])]))) : slots.empty?.() ?? h("p", { class: "vh-invocation-timeline__empty" }, "No timed steps recorded.")]);
1200
+ }
1201
+ });
1202
+ //#endregion
1203
+ //#region src/console/runtime/components/invocation/internal/invocation-conversation.ts
1204
+ /** Selects the current turn and separates visible answers from their work receipts. */
1205
+ function buildInvocationConversation(activities) {
1206
+ const inputActivities = withoutInitialDriverEcho(activities);
1207
+ const promptId = inputActivities[promptActivityIndex(inputActivities)]?.id;
1208
+ const orderedActivities = inputActivities.filter((activity) => activity.kind !== "message" || isVisibleMessage(activity));
1209
+ const firstUser = promptActivityIndex(orderedActivities);
1210
+ const lastUser = orderedActivities.findLastIndex((activity) => activity.kind === "message" && activity.role === "user");
1211
+ const lastAssistant = orderedActivities.findLastIndex((activity, index) => index > lastUser && activity.kind === "message" && activity.role === "assistant" && activity.attributes["message.phase"] !== "commentary");
1212
+ const tail = orderedActivities.slice(firstUser + 1);
1213
+ const finalBody = lastAssistant >= 0 ? orderedActivities[lastAssistant].body?.trim() : void 0;
1214
+ const answers = new Set(uniqueDeliveredAnswers(tail, new Set(finalBody ? [finalBody] : [])));
1215
+ const metadata = {
1216
+ deliveredAnswerCount: answers.size,
1217
+ promptId
1218
+ };
1219
+ if (firstUser < 0 && !orderedActivities.some(isDeliveredAnswer)) return {
1220
+ ...metadata,
1221
+ kind: "activities",
1222
+ activities: orderedActivities
1223
+ };
1224
+ const history = orderedActivities.slice(0, Math.max(firstUser, 0)).filter(isVisibleMessage);
1225
+ const workBeforePrompt = orderedActivities.slice(0, Math.max(firstUser, 0)).filter((activity) => activity.kind !== "message");
1226
+ const prompt = orderedActivities[firstUser];
1227
+ if (lastAssistant >= 0 && orderedActivities.slice(lastAssistant + 1).some((activity) => activity.kind === "message" && activity.role === "assistant" && activity.attributes["message.phase"] === "commentary")) {
1228
+ const beforeAnswer = orderedActivities.slice(firstUser + 1, lastAssistant).filter((activity) => !repeatsPrompt(activity, prompt));
1229
+ const followup = orderedActivities.slice(lastAssistant);
1230
+ return {
1231
+ ...metadata,
1232
+ kind: "conversation",
1233
+ history,
1234
+ prompt,
1235
+ work: coalesceAgentConfiguration([
1236
+ ...workBeforePrompt,
1237
+ ...beforeAnswer,
1238
+ ...followup.filter((activity) => activity.kind === "delivery")
1239
+ ]).map((activity) => isDeliveredAnswer(activity) ? deliveryReceipt(activity) : activity),
1240
+ answers: beforeAnswer.filter((activity) => answers.has(activity)).map(deliveryAnswer),
1241
+ followup: followup.flatMap((activity) => answers.has(activity) ? [deliveryAnswer(activity)] : activity.kind === "delivery" ? [] : [activity])
1242
+ };
1243
+ }
1244
+ return {
1245
+ ...metadata,
1246
+ kind: "conversation",
1247
+ history,
1248
+ prompt,
1249
+ work: coalesceAgentConfiguration([...workBeforePrompt, ...tail.filter((activity, offset) => firstUser + 1 + offset !== lastAssistant && !repeatsPrompt(activity, prompt))]).map((activity) => isDeliveredAnswer(activity) ? deliveryReceipt(activity) : activity),
1250
+ answers: [...[...answers].map(deliveryAnswer), ...lastAssistant >= 0 ? [orderedActivities[lastAssistant]] : []].sort((left, right) => left.sequence - right.sequence),
1251
+ followup: []
1252
+ };
1253
+ }
1254
+ function withoutInitialDriverEcho(activities) {
1255
+ const lastInput = activities.findLastIndex((activity) => activity.attributes["message.origin"] === "invocation-input");
1256
+ const prompt = activities[lastInput];
1257
+ if (!prompt || prompt.role !== "user") return activities;
1258
+ const firstMessage = activities.findIndex((activity, index) => index > lastInput && activity.kind === "message");
1259
+ const echo = activities[firstMessage];
1260
+ 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;
1261
+ return activities.filter((_, index) => index !== firstMessage);
1262
+ }
1263
+ function repeatsPrompt(activity, prompt) {
1264
+ const promptMessageId = prompt && stringAttribute(prompt.attributes, "message.id");
1265
+ 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() ?? "");
1266
+ }
1267
+ function promptActivityIndex(activities) {
1268
+ for (let index = 0; index < activities.length; index += 1) {
1269
+ const activity = activities[index];
1270
+ if (activity.kind === "message" && activity.role === "user" && activity.name !== "agent.input.message" && activity.attributes["input.mode"] !== "steer") return index;
1271
+ }
1272
+ const inputPrompt = activities.findLastIndex((activity) => activity.role === "user" && activity.attributes["message.origin"] === "invocation-input");
1273
+ if (inputPrompt >= 0) return inputPrompt;
1274
+ for (let index = activities.length - 1; index >= 0; index -= 1) {
1275
+ const activity = activities[index];
1276
+ if (activity.kind === "message" && activity.role === "user" && activity.attributes["input.mode"] !== "steer") return index;
1277
+ }
1278
+ return -1;
1279
+ }
1280
+ function isVisibleMessage(activity) {
1281
+ return activity.kind === "message" && Boolean(activity.body?.trim());
1282
+ }
1283
+ function coalesceAgentConfiguration(activities) {
1284
+ let latestConfiguration = -1;
1285
+ for (let index = activities.length - 1; index >= 0; index -= 1) if (activities[index].name === "vitehub.agent.configured") {
1286
+ latestConfiguration = index;
1287
+ break;
1288
+ }
1289
+ return latestConfiguration < 0 ? [...activities] : activities.filter((activity, index) => activity.name !== "vitehub.agent.configured" || index === latestConfiguration);
1290
+ }
1291
+ const answerDeliveryKinds = /* @__PURE__ */ new Set(["reply", "update"]);
1292
+ function deliveryContent(activity) {
1293
+ const content = activity.attributes["channel.effect.content"];
1294
+ return hasRuntimeType(content, "string") && content.trim() ? content : void 0;
1295
+ }
1296
+ function isDeliveredAnswer(activity) {
1297
+ 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;
1298
+ }
1299
+ function uniqueDeliveredAnswers(activities, bodies) {
1300
+ return activities.filter((activity) => {
1301
+ if (!isDeliveredAnswer(activity)) return false;
1302
+ const body = deliveryContent(activity).trim();
1303
+ if (bodies.has(body)) return false;
1304
+ bodies.add(body);
1305
+ return true;
1306
+ });
1307
+ }
1308
+ function deliveryReceipt(activity) {
1309
+ return {
1310
+ ...activity,
1311
+ attributes: Object.fromEntries(Object.entries(activity.attributes).filter(([key]) => key !== "channel.effect.content"))
1312
+ };
1313
+ }
1314
+ function deliveryAnswer(activity) {
1315
+ return {
1316
+ ...activity,
1317
+ body: deliveryContent(activity),
1318
+ id: `${activity.id}:answer`,
1319
+ kind: "message",
1320
+ role: "assistant"
1321
+ };
1322
+ }
1323
+ //#endregion
1324
+ //#region src/console/runtime/components/invocation/agent-invocation.ts
1325
+ const InvocationPatchDiff = defineAsyncComponent(() => import("@vite-hub/ui/patch-diff").then((module) => module.PatchDiff));
1326
+ function statusLabel(status) {
1327
+ const labels = {
1328
+ cancelled: "Cancelled",
1329
+ completed: "Completed",
1330
+ failed: "Failed",
1331
+ pending: "Queued",
1332
+ running: "Working"
1333
+ };
1334
+ return Object.hasOwn(labels, status) ? labels[status] : "Unknown";
1335
+ }
1336
+ function compactCommand(command) {
1337
+ const normalized = command.replaceAll(/\s+/g, " ").trim();
1338
+ return normalized.length > 96 ? `${normalized.slice(0, 95)}…` : normalized;
1339
+ }
1340
+ function formatTokens(value) {
1341
+ if (value === void 0 || value <= 0) return;
1342
+ if (value < 1e3) return `${value} tokens`;
1343
+ return `${new Intl.NumberFormat("en", {
1344
+ maximumFractionDigits: 1,
1345
+ notation: "compact"
1346
+ }).format(value)} tokens`;
1347
+ }
1348
+ function formatDuration(startedAt, completedAt) {
1349
+ if (!startedAt || !completedAt) return;
1350
+ const duration = Date.parse(completedAt) - Date.parse(startedAt);
1351
+ if (!Number.isFinite(duration) || duration < 0) return;
1352
+ const seconds = Math.round(duration / 1e3);
1353
+ if (seconds < 60) return `${seconds}s`;
1354
+ const minutes = Math.floor(seconds / 60);
1355
+ if (minutes < 60) return `${minutes}m ${seconds % 60}s`;
1356
+ return `${Math.floor(minutes / 60)}h ${minutes % 60}m`;
1357
+ }
1358
+ /** Elapsed time of a live session as `m:ss`, or `h:mm:ss` after the first hour. */
1359
+ function formatElapsed(startedAt, now) {
1360
+ if (!startedAt || !now) return;
1361
+ const elapsed = now.getTime() - Date.parse(startedAt);
1362
+ if (!Number.isFinite(elapsed) || elapsed < 0) return;
1363
+ const seconds = Math.floor(elapsed / 1e3);
1364
+ const minutes = Math.floor(seconds / 60) % 60;
1365
+ const hours = Math.floor(seconds / 3600);
1366
+ const pad = (value) => String(value).padStart(2, "0");
1367
+ return hours ? `${hours}:${pad(minutes)}:${pad(seconds % 60)}` : `${minutes}:${pad(seconds % 60)}`;
1368
+ }
1369
+ function driverLabel(configuration) {
1370
+ const driver = configuration.driver;
1371
+ const model = driver?.model;
1372
+ return [
1373
+ driver?.kind,
1374
+ model?.provider ?? driver?.provider,
1375
+ model?.id
1376
+ ].filter(Boolean).join(" · ") || void 0;
1377
+ }
1378
+ function invocationModelName(value) {
1379
+ return (value.split("/").at(-1) ?? "").split("-").filter(Boolean).map((part) => {
1380
+ const lower = part.toLocaleLowerCase();
1381
+ if (/^(ai|gpt|glm|llm|vlm)$/.test(lower)) return lower.toLocaleUpperCase();
1382
+ if (/^\d+[a-z]$/i.test(part)) return part.toLocaleUpperCase();
1383
+ return `${part[0]?.toLocaleUpperCase() ?? ""}${part.slice(1)}`;
1384
+ }).join(" ") || "Configured model";
1385
+ }
1386
+ function workspaceLabel(configuration) {
1387
+ const workspace = configuration.workspace;
1388
+ return workspace ? [workspace.name, workspace.mode].filter(Boolean).join(" · ") : void 0;
1389
+ }
1390
+ function markdown(value, className) {
1391
+ if (!value) return null;
1392
+ return h(Suspense, null, {
1393
+ default: () => h(Markdown, {
1394
+ class: className,
1395
+ value
1396
+ }),
1397
+ fallback: () => h("p", { class: className }, value)
1398
+ });
1399
+ }
1400
+ function workspaceArtifactPath(value) {
1401
+ const pathname = value.split(/[?#]/, 1)[0];
1402
+ const match = /^\/workspace\/[^/]+\/(.+)$/.exec(pathname);
1403
+ if (!match) return;
1404
+ const path = (() => {
1405
+ try {
1406
+ return decodeURIComponent(match[1]);
1407
+ } catch {
1408
+ return match[1];
1409
+ }
1410
+ })();
1411
+ if (!path || path.startsWith("/") || path.includes("\\") || path.split("/").some((part) => !part || part === "." || part === "..")) return;
1412
+ return path;
1413
+ }
1414
+ function renderFolderIcon() {
1415
+ return h("svg", {
1416
+ "aria-hidden": "true",
1417
+ fill: "none",
1418
+ viewBox: "0 0 24 24"
1419
+ }, [h("path", {
1420
+ d: "M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
1421
+ "stroke-linecap": "round",
1422
+ "stroke-linejoin": "round"
1423
+ })]);
1424
+ }
1425
+ function payloadPreview(value, text) {
1426
+ const compact = (hasRuntimeType(value, "string") ? value : text.replaceAll(/\s+/g, " ")).trim();
1427
+ return compact.length > 112 ? `${compact.slice(0, 111)}…` : compact || "Empty payload";
1428
+ }
1429
+ /**
1430
+ * A failed run, at the end of the thread where the run stopped (Vercel's failed build, Railway's diagnosis): what
1431
+ * failed, how to fix it, and the full diagnostic to copy. A plain element, not UAlert, so it looks the same in the
1432
+ * standalone Console and in hosts that register Nuxt UI. It is a record, not a live alert, so opening an old session
1433
+ * does not interrupt a screen reader.
1434
+ */
1435
+ const InvocationError = defineComponent({
1436
+ name: "InvocationError",
1437
+ props: { error: {
1438
+ required: true,
1439
+ type: Object
1440
+ } },
1441
+ setup(props) {
1442
+ const titleId = useId();
1443
+ const detailsId = useId();
1444
+ const detailsOpen = ref(false);
1445
+ const copyStatus = ref();
1446
+ let copyTimer;
1447
+ onBeforeUnmount(() => {
1448
+ if (copyTimer) clearTimeout(copyTimer);
1449
+ });
1450
+ async function copyError() {
1451
+ try {
1452
+ if (!("navigator" in globalThis) || !navigator.clipboard) throw new Error("Clipboard unavailable");
1453
+ await navigator.clipboard.writeText(payloadText(diagnosticPayload(props.error)));
1454
+ copyStatus.value = "copied";
1455
+ } catch {
1456
+ copyStatus.value = "failed";
1457
+ }
1458
+ if (copyTimer) clearTimeout(copyTimer);
1459
+ copyTimer = setTimeout(() => copyStatus.value = void 0, 2e3);
1460
+ }
1461
+ return () => {
1462
+ const error = props.error;
1463
+ const payload = diagnosticPayload(error);
1464
+ const docs = error.docs?.startsWith("https://") && isSafeExternalUrl(error.docs) ? error.docs : void 0;
1465
+ const hasDetails = Object.keys(payload).length > 1;
1466
+ const meta = [
1467
+ error.name && error.name !== "Error" ? error.name : void 0,
1468
+ error.code === void 0 ? void 0 : String(error.code),
1469
+ error.status ?? error.statusCode
1470
+ ].filter((value) => value !== void 0 && value !== "").join(" · ");
1471
+ return h("section", {
1472
+ class: "vh-invocation-error",
1473
+ "aria-labelledby": titleId,
1474
+ "data-slot": "invocation-error"
1475
+ }, [
1476
+ h("header", { class: "vh-invocation-error__header" }, [
1477
+ h("svg", {
1478
+ class: "vh-invocation-error__icon",
1479
+ "aria-hidden": "true",
1480
+ fill: "none",
1481
+ viewBox: "0 0 24 24"
1482
+ }, [h("circle", {
1483
+ cx: "12",
1484
+ cy: "12",
1485
+ r: "9"
1486
+ }), h("path", {
1487
+ d: "m15 9-6 6m0-6 6 6",
1488
+ "stroke-linecap": "round"
1489
+ })]),
1490
+ h("h3", {
1491
+ class: "vh-invocation-error__title",
1492
+ id: titleId
1493
+ }, "Run failed"),
1494
+ meta ? h("code", {
1495
+ class: "vh-invocation-error__code",
1496
+ title: meta
1497
+ }, meta) : null
1498
+ ]),
1499
+ h("p", { class: "vh-invocation-error__message" }, error.message.replace(/^\[[\w./-]+\]\s*/, "")),
1500
+ error.fix ? h("div", { class: "vh-invocation-error__fix" }, [h("p", { class: "vh-invocation-error__label" }, "How to fix"), h("p", error.fix)]) : null,
1501
+ h("div", { class: "vh-invocation-error__actions" }, [
1502
+ docs ? h("a", {
1503
+ class: "vh-invocation-error__action",
1504
+ href: docs,
1505
+ rel: "noreferrer",
1506
+ target: "_blank"
1507
+ }, ["Read the docs", h("svg", {
1508
+ "aria-hidden": "true",
1509
+ fill: "none",
1510
+ viewBox: "0 0 24 24"
1511
+ }, [h("path", {
1512
+ d: "M7 17 17 7M8 7h9v9",
1513
+ "stroke-linecap": "round",
1514
+ "stroke-linejoin": "round"
1515
+ })])]) : null,
1516
+ h("button", {
1517
+ class: "vh-invocation-error__action",
1518
+ type: "button",
1519
+ onClick: copyError
1520
+ }, [copyIcon(copyStatus.value === "copied"), copyStatus.value === "copied" ? "Copied" : copyStatus.value === "failed" ? "Copy failed" : "Copy error"]),
1521
+ hasDetails ? h("button", {
1522
+ "aria-controls": detailsId,
1523
+ "aria-expanded": detailsOpen.value ? "true" : "false",
1524
+ class: "vh-invocation-error__action",
1525
+ type: "button",
1526
+ onClick: () => detailsOpen.value = !detailsOpen.value
1527
+ }, [h("svg", {
1528
+ class: "vh-invocation-error__chevron",
1529
+ "aria-hidden": "true",
1530
+ fill: "none",
1531
+ viewBox: "0 0 24 24"
1532
+ }, [h("path", {
1533
+ d: "m9 6 6 6-6 6",
1534
+ "stroke-linecap": "round",
1535
+ "stroke-linejoin": "round"
1536
+ })]), "Details"]) : null,
1537
+ h("span", {
1538
+ "aria-live": "polite",
1539
+ class: "vh-visually-hidden",
1540
+ role: "status"
1541
+ }, copyStatus.value === "copied" ? "Error copied" : copyStatus.value === "failed" ? "Could not copy the error" : "")
1542
+ ]),
1543
+ hasDetails ? h("pre", {
1544
+ class: "vh-invocation-error__details",
1545
+ hidden: !detailsOpen.value,
1546
+ id: detailsId
1547
+ }, payloadText(payload)) : null
1548
+ ]);
1549
+ };
1550
+ }
1551
+ });
1552
+ function invocationTimestamp(invocation) {
1553
+ const value = [invocation.startedAt, invocation.createdAt].find((value) => value && Number.isFinite(Date.parse(value)));
1554
+ if (!value) return null;
1555
+ const date = new Date(value);
1556
+ return h("time", {
1557
+ class: "vh-invocation-session__timestamp",
1558
+ datetime: date.toISOString(),
1559
+ title: date.toLocaleString("en", {
1560
+ dateStyle: "full",
1561
+ timeStyle: "long"
1562
+ })
1563
+ }, date.toLocaleString("en", {
1564
+ dateStyle: "medium",
1565
+ timeStyle: "short"
1566
+ }));
1567
+ }
1568
+ /** Every diagnostic field of a failed run, for the details view and the copied error. */
1569
+ function diagnosticPayload(error) {
1570
+ const details = { message: error.message };
1571
+ if (error.fix) details.fix = error.fix;
1572
+ if (error.docs) details.docs = error.docs;
1573
+ if (error.sources?.length) details.sources = error.sources;
1574
+ if (error.code !== void 0) details.code = error.code;
1575
+ if (error.requestId) details.requestId = error.requestId;
1576
+ if (error.status !== void 0) details.status = error.status;
1577
+ if (error.statusCode !== void 0) details.statusCode = error.statusCode;
1578
+ if (error.details) details.details = error.details;
1579
+ if (error.cause) details.cause = error.cause;
1580
+ if (error.errors?.length) details.errors = error.errors;
1581
+ return details;
1582
+ }
1583
+ function jsonValueLabel(value) {
1584
+ if (hasRuntimeType(value, "string")) return JSON.stringify(value);
1585
+ if (value === null) return "null";
1586
+ if (hasRuntimeType(value, "object")) return Array.isArray(value) ? `Array(${value.length})` : "Object";
1587
+ return String(value);
1588
+ }
1589
+ function matchingPayloadRows(value, query, path = "$", result = {
1590
+ rows: [],
1591
+ truncated: false
1592
+ }, depth = 0) {
1593
+ const label = jsonValueLabel(value);
1594
+ if (`${path} ${label}`.toLocaleLowerCase().includes(query)) {
1595
+ if (result.rows.length >= 500) {
1596
+ result.truncated = true;
1597
+ return result;
1598
+ }
1599
+ result.rows.push({
1600
+ path,
1601
+ value: label
1602
+ });
1603
+ }
1604
+ if (!hasRuntimeType(value, "object") || value === null || depth >= 12) return result;
1605
+ for (const [key, item] of Object.entries(value)) {
1606
+ matchingPayloadRows(item, query, Array.isArray(value) ? `${path}[${key}]` : `${path}.${key}`, result, depth + 1);
1607
+ if (result.truncated) break;
1608
+ }
1609
+ return result;
1610
+ }
1611
+ function renderPayloadTree(value, label, depth = 0, budget = { remaining: 500 }) {
1612
+ budget.remaining--;
1613
+ if (budget.remaining < 0) return h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden");
1614
+ if (depth >= 12 && hasRuntimeType(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")]);
1615
+ if (!hasRuntimeType(value, "object") || value === null) return h("li", { class: "vh-invocation-payload__leaf" }, [label ? h("code", { class: "vh-invocation-payload__key" }, label) : null, h("code", {
1616
+ class: "vh-invocation-payload__value",
1617
+ "data-type": value === null ? "null" : runtimeType(value)
1618
+ }, jsonValueLabel(value))]);
1619
+ const entries = Object.entries(value);
1620
+ const children = [];
1621
+ for (let index = 0; index < entries.length; index++) {
1622
+ if (budget.remaining <= 0) break;
1623
+ if (budget.remaining === 1) {
1624
+ budget.remaining--;
1625
+ children.push(h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden"));
1626
+ break;
1627
+ }
1628
+ const [key, item] = entries[index];
1629
+ children.push(renderPayloadTree(item, key, depth + 1, budget));
1630
+ }
1631
+ 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)])]);
1632
+ }
1633
+ const InvocationPayload = defineComponent({
1634
+ name: "InvocationPayload",
1635
+ props: {
1636
+ label: {
1637
+ required: true,
1638
+ type: String
1639
+ },
1640
+ value: { required: true }
1641
+ },
1642
+ setup(props) {
1643
+ const mode = ref("tree");
1644
+ const query = ref("");
1645
+ const open = ref(false);
1646
+ const copied = ref(false);
1647
+ const copyFailed = ref(false);
1648
+ let copyTimer;
1649
+ const text = computed(() => payloadText(props.value));
1650
+ const normalized = computed(() => {
1651
+ if (!hasRuntimeType(props.value, "object") || props.value === null) return props.value;
1652
+ try {
1653
+ return JSON.parse(text.value);
1654
+ } catch {
1655
+ return text.value;
1656
+ }
1657
+ });
1658
+ const structured = computed(() => hasRuntimeType(normalized.value, "object") && normalized.value !== null);
1659
+ const matches = computed(() => query.value ? matchingPayloadRows(normalized.value, query.value.toLocaleLowerCase()) : {
1660
+ rows: [],
1661
+ truncated: false
1662
+ });
1663
+ const rawMatches = computed(() => {
1664
+ if (!query.value) return text.value;
1665
+ const normalizedQuery = query.value.toLocaleLowerCase();
1666
+ return text.value.split("\n").filter((line) => line.toLocaleLowerCase().includes(normalizedQuery)).join("\n");
1667
+ });
1668
+ async function copyPayload() {
1669
+ copyFailed.value = false;
1670
+ if (!("navigator" in globalThis) || !navigator.clipboard) {
1671
+ copyFailed.value = true;
1672
+ return;
1673
+ }
1674
+ try {
1675
+ await navigator.clipboard.writeText(text.value);
1676
+ copied.value = true;
1677
+ if (copyTimer) clearTimeout(copyTimer);
1678
+ copyTimer = setTimeout(() => {
1679
+ copied.value = false;
1680
+ }, 1600);
1681
+ } catch {
1682
+ copyFailed.value = true;
1683
+ }
1684
+ }
1685
+ onBeforeUnmount(() => {
1686
+ if (copyTimer) clearTimeout(copyTimer);
1687
+ });
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", { class: "vh-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
+ class: "vh-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 hasMessageMeta = (activity.role === "user" || activity.role === "assistant") && !(insideWork && commentary);
1754
+ const author = activity.id === messageRendering.promptId ? messageRendering.author : void 0;
1755
+ const roleLabel = author ?? messageRoleLabels[activity.role ?? "assistant"];
1756
+ return h("li", {
1757
+ class: "vh-invocation-message",
1758
+ "data-phase": commentary ? "commentary" : void 0,
1759
+ "data-role": activity.role,
1760
+ key: activity.id
1761
+ }, [
1762
+ insideWork && commentary ? h("span", { class: "vh-visually-hidden" }, `${roleLabel} message`) : h("span", { class: "vh-invocation-message__role" }, roleLabel),
1763
+ activity.attributes["input.mode"] === "steer" ? h("small", { class: "vh-invocation-message__method" }, "Steered") : null,
1764
+ h("div", {
1765
+ class: "vh-invocation-message__content",
1766
+ "data-collapsed": collapsible && !isExpanded ? "true" : void 0
1767
+ }, [markdown(body, "vh-invocation-message__body")]),
1768
+ activity.truncated ? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null,
1769
+ collapsible ? h("button", {
1770
+ "aria-expanded": String(isExpanded),
1771
+ class: "vh-invocation-message__more",
1772
+ onClick: () => toggleExpanded(activity.id),
1773
+ type: "button"
1774
+ }, isExpanded ? "Show less" : "Read more") : null,
1775
+ hasMessageMeta ? h("footer", { class: "vh-invocation-message__meta" }, [
1776
+ author ? h("span", { class: "vh-invocation-message__author" }, author) : null,
1777
+ sentAt ? h("time", {
1778
+ datetime: sentAt.value,
1779
+ title: sentAt.title
1780
+ }, sentAt.short) : null,
1781
+ h("button", {
1782
+ "aria-label": copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
1783
+ class: "vh-invocation-message__copy",
1784
+ onClick: () => messageRendering.copy(activity),
1785
+ title: copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
1786
+ type: "button"
1787
+ }, copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : [renderCopyIcon()]),
1788
+ copyStatus ? h("span", {
1789
+ class: "vh-visually-hidden",
1790
+ "aria-live": "polite",
1791
+ role: "status"
1792
+ }, copyStatus === "copied" ? "Message copied" : "Message could not be copied") : null
1793
+ ]) : null
1794
+ ]);
1795
+ }
1796
+ function messageTimestamp(activity, now, mounted, sentAt) {
1797
+ const value = sentAt ?? stringAttribute(activity.attributes, "channel.sentAt") ?? stringAttribute(activity.attributes, "input.sentAt") ?? activity.startedAt;
1798
+ if (!value || !Number.isFinite(Date.parse(value))) return;
1799
+ const date = new Date(value);
1800
+ if (!mounted) return {
1801
+ short: date.toISOString(),
1802
+ title: date.toISOString(),
1803
+ value
1804
+ };
1805
+ const time = new Intl.DateTimeFormat("en", {
1806
+ hour: "numeric",
1807
+ minute: "2-digit"
1808
+ }).format(date);
1809
+ const startOfToday = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
1810
+ const startOfMessageDay = new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime();
1811
+ const dayDifference = Math.round((startOfToday - startOfMessageDay) / 864e5);
1812
+ const dateOptions = {
1813
+ day: "numeric",
1814
+ month: "numeric"
1815
+ };
1816
+ if (date.getFullYear() !== now.getFullYear()) dateOptions.year = "numeric";
1817
+ return {
1818
+ short: dayDifference <= 0 ? time : dayDifference === 1 ? `Yesterday at ${time}` : `${new Intl.DateTimeFormat("en", dateOptions).format(date)} ${time}`,
1819
+ title: new Intl.DateTimeFormat("en", {
1820
+ dateStyle: "medium",
1821
+ timeStyle: "short"
1822
+ }).format(date),
1823
+ value
1824
+ };
1825
+ }
1826
+ function renderCopyIcon() {
1827
+ return h("svg", {
1828
+ "aria-hidden": "true",
1829
+ fill: "none",
1830
+ viewBox: "0 0 24 24"
1831
+ }, [h("rect", {
1832
+ height: "13",
1833
+ rx: "2",
1834
+ width: "13",
1835
+ x: "8",
1836
+ y: "8"
1837
+ }), h("path", { d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3" })]);
1838
+ }
1839
+ function activityIcon(activity) {
1840
+ const name = String(activity.attributes["tool.name"] ?? "").toLocaleLowerCase();
1841
+ if (activity.command) return "command";
1842
+ if (activity.kind === "error") return "alert";
1843
+ if (activity.kind === "change") return "change";
1844
+ if (name.includes("read") || name.includes("image") || name.includes("view")) return "eye";
1845
+ if (name.includes("search") || name.includes("find")) return "search";
1846
+ if (activity.kind === "reasoning" || activity.kind === "model") return "brain";
1847
+ if (activity.kind === "run") return "activity";
1848
+ if (activity.kind === "approval") return "approval";
1849
+ if (activity.kind === "delivery") {
1850
+ const delivery = String(activity.attributes["channel.effect.kind"] ?? "").toLocaleLowerCase();
1851
+ if (delivery === "reaction") return "eye";
1852
+ if ([
1853
+ "reply",
1854
+ "status",
1855
+ "update"
1856
+ ].includes(delivery)) return "message";
1857
+ return "action";
1858
+ }
1859
+ if (activity.kind === "action") return "check";
1860
+ if (activity.kind === "preparation") {
1861
+ const title = invocationActivityTitle(activity).toLocaleLowerCase();
1862
+ if (title.includes("pull request")) return "pull-request";
1863
+ if (title.includes("github")) return "github";
1864
+ if (title.includes("workspace")) return "folder";
1865
+ if (title.includes("agent")) return "cpu";
1866
+ if (title.includes("prompt")) return "message";
1867
+ return "check";
1868
+ }
1869
+ if (activity.kind === "system") return "cpu";
1870
+ return activity.kind === "tool" ? "tool" : "activity";
1871
+ }
1872
+ const activityIconPaths = {
1873
+ activity: ["M12 12h.01"],
1874
+ alert: [
1875
+ "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20",
1876
+ "M12 8v4",
1877
+ "M12 16h.01"
1878
+ ],
1879
+ action: ["M13 2 3 14h9l-1 8 10-12h-9z"],
1880
+ approval: [
1881
+ "M12 3v12",
1882
+ "m8 11 4 4 4-4",
1883
+ "M5 21h14"
1884
+ ],
1885
+ brain: [
1886
+ "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",
1887
+ "M17.997 5.125a4 4 0 0 1 2.526 5.77",
1888
+ "M18 18a4 4 0 0 0 2-7.464",
1889
+ "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",
1890
+ "M6 18a4 4 0 0 1-2-7.464",
1891
+ "M6.003 5.125a4 4 0 0 0-2.526 5.77"
1892
+ ],
1893
+ change: ["M12 20h9", "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],
1894
+ check: ["m5 12 4 4L19 6"],
1895
+ command: ["m4 17 6-6-6-6", "M12 19h8"],
1896
+ cpu: [
1897
+ "M9 9h6v6H9z",
1898
+ "M9 2v3",
1899
+ "M15 2v3",
1900
+ "M9 19v3",
1901
+ "M15 19v3",
1902
+ "M2 9h3",
1903
+ "M2 15h3",
1904
+ "M19 9h3",
1905
+ "M19 15h3",
1906
+ "M5 5h14v14H5z"
1907
+ ],
1908
+ 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"],
1909
+ folder: ["M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"],
1910
+ 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"],
1911
+ 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"],
1912
+ message: ["M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z"],
1913
+ "pull-request": [
1914
+ "M6 9v12",
1915
+ "M18 15V8a2 2 0 0 0-2-2h-3",
1916
+ "M6 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6",
1917
+ "M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6"
1918
+ ],
1919
+ search: ["m21 21-4.35-4.35", "M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16"],
1920
+ 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"]
1921
+ };
1922
+ function renderActivityIcon(activity) {
1923
+ const declaredIcon = activity.toolDisplay?.icon;
1924
+ const Icon = declaredIcon ? getCurrentInstance()?.appContext.components.UIcon : void 0;
1925
+ return h("span", {
1926
+ class: "vh-invocation-event__icon",
1927
+ "data-failed": activity.status === "failed" ? "true" : void 0,
1928
+ "data-icon": Icon ? declaredIcon : activityIcon(activity),
1929
+ "aria-hidden": "true"
1930
+ }, [Icon ? h(Icon, { name: declaredIcon }) : renderActivityIconSvg(activityIcon(activity)), activity.status === "failed" ? h("svg", {
1931
+ class: "vh-invocation-event__failure-icon",
1932
+ fill: "currentColor",
1933
+ viewBox: "0 0 24 24"
1934
+ }, [h("path", {
1935
+ "clip-rule": "evenodd",
1936
+ d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2V7Zm0 9h2v2h-2v-2Z",
1937
+ "fill-rule": "evenodd",
1938
+ stroke: "none"
1939
+ })]) : null]);
1940
+ }
1941
+ function renderNamedActivityIcon(icon) {
1942
+ return h("span", {
1943
+ class: "vh-invocation-event__icon",
1944
+ "data-icon": icon,
1945
+ "aria-hidden": "true"
1946
+ }, [renderActivityIconSvg(icon)]);
1947
+ }
1948
+ function renderActivityIconSvg(icon) {
1949
+ return h("svg", {
1950
+ fill: "none",
1951
+ viewBox: "0 0 24 24"
1952
+ }, activityIconPaths[icon].map((path) => h("path", {
1953
+ d: path,
1954
+ "stroke-linecap": "round",
1955
+ "stroke-linejoin": "round"
1956
+ })));
1957
+ }
1958
+ function imageViewPath(activity) {
1959
+ const name = String(activity.attributes["tool.name"] ?? "").trim().toLocaleLowerCase();
1960
+ if (name !== "image view" && name !== "view image" && name !== "view_image") return;
1961
+ for (const key of ["tool.input", "tool.output"]) {
1962
+ const payload = activity.attributes[key];
1963
+ if (!hasRuntimeType(payload, "object") || payload === null || Array.isArray(payload)) continue;
1964
+ const item = "item" in payload && hasRuntimeType(payload.item, "object") && payload.item !== null && !Array.isArray(payload.item) ? payload.item : payload;
1965
+ if ("path" in item && hasRuntimeType(item.path, "string") && item.path) return item.path;
1966
+ if (!("commandActions" in item) || !Array.isArray(item.commandActions)) continue;
1967
+ for (const value of item.commandActions) if (hasRuntimeType(value, "object") && value !== null && !Array.isArray(value) && "path" in value && hasRuntimeType(value.path, "string") && value.path) return value.path;
1968
+ }
1969
+ return activity.preview?.startsWith("/") ? activity.preview : void 0;
1970
+ }
1971
+ function imageViewDetails(activity, path) {
1972
+ const evidence = { path };
1973
+ if (activity.attributes["tool.input"] !== void 0) evidence.input = activity.attributes["tool.input"];
1974
+ if (activity.attributes["tool.output"] !== void 0) evidence.output = activity.attributes["tool.output"];
1975
+ if (activity.attributes["tool.error"] !== void 0) evidence.error = activity.attributes["tool.error"];
1976
+ return h("section", {
1977
+ class: "vh-invocation-image-details",
1978
+ "aria-label": "Image view details"
1979
+ }, [
1980
+ h("strong", "Path"),
1981
+ h("code", path),
1982
+ h("strong", "Raw details"),
1983
+ h("pre", payloadText(evidence))
1984
+ ]);
1985
+ }
1986
+ function renderEvent(activity, inspect, openActivities, setActivityOpen) {
1987
+ const command = activity.command;
1988
+ const viewedImagePath = imageViewPath(activity);
1989
+ const tokenLabel = activity.kind === "reasoning" || activity.kind === "model" ? formatTokens(activity.reasoningTokens) : void 0;
1990
+ const suffix = viewedImagePath?.split("/").filter(Boolean).at(-1) ?? agentConfigurationSummary(activity) ?? channelDeliverySummary(activity) ?? (activity.preview ? compactCommand(activity.preview) : tokenLabel);
1991
+ const hasPayloads = activity.kind === "tool" && (activity.attributes["tool.input"] !== void 0 || activity.attributes["tool.output"] !== void 0 || activity.attributes["tool.error"] !== void 0);
1992
+ const capturedDeliveryBody = activity.kind === "delivery" ? activity.attributes["channel.effect.content"] : void 0;
1993
+ const deliveryBody = hasRuntimeType(capturedDeliveryBody, "string") && capturedDeliveryBody.trim() ? capturedDeliveryBody : void 0;
1994
+ const visibleDelivery = Boolean(deliveryBody);
1995
+ const deliveryFailure = activity.kind === "delivery" ? stringAttribute(activity.attributes, "error.message") : void 0;
1996
+ const hasDetails = Boolean(deliveryFailure || activity.truncated) || !visibleDelivery && (activity.patches.length > 0 || Boolean(command || hasPayloads || activity.body || activity.truncated));
1997
+ const skillReads = activity.skills ?? (activity.skill ? [activity.skill] : []);
1998
+ const inspectTarget = skillReads.length === 1 ? "workspace" : activity.attributes["vitehub.inspect.target"] ?? (activity.name === "vitehub.agent.configured" ? "agent" : void 0);
1999
+ const inspectPath = activity.skill?.path;
2000
+ const inspectable = inspectTarget === "agent" || inspectTarget === "workspace";
2001
+ const title = skillReads.length ? h("span", { class: "vh-invocation-event__title" }, skillReads.flatMap((skill, index) => [index ? h("span", { "aria-hidden": "true" }, " · ") : null, h("button", {
2002
+ class: "vh-invocation-event__title vh-invocation-event__title-link",
2003
+ onClick: (event) => {
2004
+ event.preventDefault();
2005
+ event.stopPropagation();
2006
+ inspect("workspace", skill.path);
2007
+ },
2008
+ type: "button"
2009
+ }, `Read ${skill.name} skill`)])) : h("span", { class: "vh-invocation-event__title" }, viewedImagePath ? "View image" : invocationActivityTitle(activity));
2010
+ const summaryContent = [
2011
+ activity.name === "vitehub.agent.configured" ? frameworkMark() : activity.kind === "delivery" ? h("span", {
2012
+ class: "vh-invocation-event__icon",
2013
+ "data-icon": "channel"
2014
+ }, [channelIcon(activityChannel(activity))]) : renderActivityIcon(activity),
2015
+ title,
2016
+ activity.status === "failed" ? h("span", { class: "vh-visually-hidden" }, "Failed") : null,
2017
+ suffix ? h("code", { class: "vh-invocation-event__suffix" }, suffix) : null,
2018
+ hasDetails ? renderDisclosureChevron("vh-invocation-event__disclosure") : null
2019
+ ];
2020
+ const summary = inspectable && !hasDetails ? h("button", {
2021
+ class: "vh-invocation-event__summary",
2022
+ onClick: () => inspect(inspectTarget, inspectPath),
2023
+ type: "button"
2024
+ }, summaryContent) : h(hasDetails ? "summary" : "div", { class: "vh-invocation-event__summary" }, summaryContent);
2025
+ return h("li", {
2026
+ class: "vh-invocation-activity",
2027
+ "data-activity-id": activity.id,
2028
+ "data-inspectable": inspectable ? "true" : void 0,
2029
+ "data-kind": activity.kind,
2030
+ "data-status": activity.status,
2031
+ key: activity.id
2032
+ }, [h(hasDetails ? "details" : "div", {
2033
+ class: "vh-invocation-event",
2034
+ open: hasDetails ? openActivities.has(activity.id) : void 0,
2035
+ onToggle: hasDetails ? (event) => setActivityOpen(activity.id, event.currentTarget.open) : void 0
2036
+ }, [summary, hasDetails ? h("div", { class: "vh-invocation-event__details" }, [
2037
+ deliveryFailure ? h("p", { class: "vh-invocation-event__failure" }, deliveryFailure) : null,
2038
+ activity.truncated ? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null,
2039
+ activity.patches.length ? openActivities.has(activity.id) ? h("div", { class: "vh-invocation-event__diffs" }, activity.patches.map((patch, index) => h(InvocationPatchDiff, {
2040
+ key: index,
2041
+ patch
2042
+ }))) : null : command ? h("div", { class: "vh-invocation-command" }, [
2043
+ 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]),
2044
+ command.cwd ? h("div", { class: "vh-invocation-command__cwd" }, command.cwd) : null,
2045
+ command.output ? h("pre", terminalText(command.output)) : null,
2046
+ renderCommandError(activity.attributes["tool.error"])
2047
+ ]) : viewedImagePath ? imageViewDetails(activity, viewedImagePath) : hasPayloads ? h("div", { class: "vh-invocation-event__payloads" }, [
2048
+ renderEventPayload("Input", activity.attributes["tool.input"]),
2049
+ renderEventPayload("Output", activity.attributes["tool.output"]),
2050
+ renderEventPayload("Error", activity.attributes["tool.error"])
2051
+ ].filter(Boolean)) : activity.kind !== "delivery" && activity.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(activity.body, "vh-invocation-event__markdown")]) : null,
2052
+ inspectable ? h("button", {
2053
+ class: "vh-invocation-event__inspect",
2054
+ onClick: () => inspect(inspectTarget, inspectPath),
2055
+ type: "button"
2056
+ }, `Inspect ${inspectTarget}`) : null
2057
+ ]) : null]), deliveryBody ? h("div", { class: "vh-invocation-delivery__body" }, [markdown(deliveryBody, "vh-invocation-event__markdown")]) : null]);
2058
+ }
2059
+ function renderEventPayload(label, value) {
2060
+ if (value === void 0) return null;
2061
+ return h(InvocationPayload, {
2062
+ label,
2063
+ value
2064
+ });
2065
+ }
2066
+ function renderCommandError(value) {
2067
+ if (value === void 0) return null;
2068
+ let text;
2069
+ if (typeof value === "string") text = value;
2070
+ else try {
2071
+ text = Object.prototype.toString.call(value) === "[object String]" ? String(value) : payloadText(value);
2072
+ } catch {
2073
+ try {
2074
+ text = payloadText(value);
2075
+ } catch {
2076
+ text = "[Unable to display payload]";
2077
+ }
2078
+ }
2079
+ return h("section", { class: "vh-invocation-event__payload" }, [h("strong", "Error"), h("pre", text)]);
2080
+ }
2081
+ function activityDetail(activity) {
2082
+ return invocationActivityDetail(activity);
2083
+ }
2084
+ function renderPreparationAction(activity, inspect) {
2085
+ const target = activity.attributes["vitehub.inspect.target"];
2086
+ if (target !== "workspace" && target !== "agent") return;
2087
+ return h("button", {
2088
+ "aria-label": target === "workspace" ? "Open Workspace" : "Open Invocation details",
2089
+ class: "vh-invocation-preparation__action",
2090
+ onClick: () => inspect(target),
2091
+ type: "button"
2092
+ }, [renderNamedActivityIcon(target === "workspace" ? "folder" : "cpu")]);
2093
+ }
2094
+ function renderPreparationContext(invocation, url) {
2095
+ const repository = invocation.annotations?.["github.repository"];
2096
+ const pullRequest = invocation.annotations?.["github.pullRequest"];
2097
+ if (!hasRuntimeType(repository, "string") || !hasRuntimeType(pullRequest, "number") && !hasRuntimeType(pullRequest, "string")) return h("code", agentInvocationContext(invocation));
2098
+ return h("span", { class: "vh-invocation-preparation__context" }, [
2099
+ h("code", repository),
2100
+ h("span", { "aria-hidden": "true" }, "·"),
2101
+ url ? h("a", {
2102
+ href: url,
2103
+ onClick: (event) => event.stopPropagation(),
2104
+ rel: "noreferrer",
2105
+ target: "_blank"
2106
+ }, `PR #${pullRequest}`) : h("code", `PR #${pullRequest}`)
2107
+ ]);
2108
+ }
2109
+ function renderPreparationDetail(activity, url) {
2110
+ const detail = activityDetail(activity);
2111
+ if (!detail) return;
2112
+ const compact = compactCommand(detail);
2113
+ if (!url || !invocationActivityTitle(activity).toLocaleLowerCase().includes("pull request")) return h("code", compact);
2114
+ const match = compact.match(/^(.*?)\s*·\s*(PR #\d+)$/);
2115
+ if (!match) return h("code", compact);
2116
+ return h("span", { class: "vh-invocation-preparation__context" }, [
2117
+ h("code", match[1]),
2118
+ h("span", { "aria-hidden": "true" }, "·"),
2119
+ h("a", {
2120
+ href: url,
2121
+ rel: "noreferrer",
2122
+ target: "_blank"
2123
+ }, match[2])
2124
+ ]);
2125
+ }
2126
+ function renderDisclosureChevron(className) {
2127
+ return h("svg", {
2128
+ "aria-hidden": "true",
2129
+ class: className,
2130
+ fill: "none",
2131
+ viewBox: "0 0 24 24"
2132
+ }, [h("path", {
2133
+ d: "m6 9 6 6 6-6",
2134
+ stroke: "currentColor",
2135
+ "stroke-linecap": "round",
2136
+ "stroke-linejoin": "round",
2137
+ "stroke-width": "2"
2138
+ })]);
2139
+ }
2140
+ function frameworkMark() {
2141
+ return h("svg", {
2142
+ viewBox: "0 0 20 18",
2143
+ fill: "currentColor",
2144
+ "aria-hidden": "true",
2145
+ class: "vh-invocation-framework-mark"
2146
+ }, [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" })]);
2147
+ }
2148
+ function activityChannel(activity) {
2149
+ const channel = stringAttribute(activity.attributes, "channel.delivery.provider") ?? stringAttribute(activity.attributes, "channel.provider") ?? stringAttribute(activity.attributes, "channel.id") ?? "chat";
2150
+ return channel.toLocaleLowerCase() === "msteams" ? "teams" : channel;
2151
+ }
2152
+ function renderPreparationGroup(activities, invocation, inspect) {
2153
+ const url = agentInvocationExternalUrl(invocation);
2154
+ const failedActivity = activities.find((activity) => activity.status === "failed");
2155
+ return h("li", {
2156
+ class: "vh-invocation-preparation",
2157
+ key: `preparation:${activities[0]?.id}`
2158
+ }, [h("details", { class: "vh-invocation-preparation__details" }, [h("summary", { class: "vh-invocation-preparation__summary" }, [
2159
+ failedActivity ? renderActivityIcon(failedActivity) : renderNamedActivityIcon("folder"),
2160
+ h("strong", failedActivity ? "Session preparation failed" : "Prepared workspace"),
2161
+ failedActivity ? renderPreparationContext(invocation, url) : null,
2162
+ failedActivity ? h("small", `${activities.length} steps`) : null,
2163
+ renderDisclosureChevron("vh-invocation-preparation__disclosure")
2164
+ ]), h("ol", { class: "vh-invocation-preparation__steps" }, activities.map((activity) => renderPreparationStep(activity, url, inspect)))])]);
2165
+ }
2166
+ function renderPreparationStep(activity, url, inspect) {
2167
+ return h("li", {
2168
+ class: "vh-invocation-preparation__step",
2169
+ "data-activity-id": activity.id,
2170
+ "data-kind": "preparation",
2171
+ "data-status": activity.status,
2172
+ key: activity.id
2173
+ }, [
2174
+ renderActivityIcon(activity),
2175
+ h("strong", invocationActivityTitle(activity)),
2176
+ renderPreparationDetail(activity, url),
2177
+ renderPreparationAction(activity, inspect),
2178
+ activity.body ? h("p", { class: "vh-invocation-preparation__body" }, activity.body) : null,
2179
+ activity.truncated ? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null
2180
+ ]);
2181
+ }
2182
+ function activityGroup(activity) {
2183
+ if (!activity) return;
2184
+ if (activity.name === "vitehub.agent.configured") return "agent-configuration-lifecycle";
2185
+ if (/^agent\.capability\.(?:input|output|configure|prepare|resolve|close)$/.test(activity.name)) return "agent-capability-lifecycle";
2186
+ return stringAttribute(activity.attributes, "vitehub.activity.group");
2187
+ }
2188
+ function renderCapabilityGroup(activities, inspect, openActivities, setActivityOpen) {
2189
+ const capabilities = [...new Set(activities.flatMap((activity) => {
2190
+ const id = stringAttribute(activity.attributes, "agent.capability.id");
2191
+ return id ? [id] : [];
2192
+ }))];
2193
+ const failures = activities.filter((activity) => activity.status === "failed").length;
2194
+ const phases = new Set(activities.map((activity) => activity.name.split(".").at(-1)));
2195
+ const summary = capabilities.length ? `${capabilities.length} ${capabilities.length === 1 ? "capability" : "capabilities"}` : `${activities.length} ${activities.length === 1 ? "event" : "events"}`;
2196
+ return h("li", {
2197
+ class: "vh-invocation-capabilities",
2198
+ key: `capabilities:${activities[0]?.id}`
2199
+ }, [h("details", { class: "vh-invocation-capabilities__details" }, [h("summary", { class: "vh-invocation-capabilities__summary" }, [
2200
+ renderNamedActivityIcon("tool"),
2201
+ 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}`),
2202
+ renderDisclosureChevron("vh-invocation-capabilities__disclosure")
2203
+ ]), h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map((activity) => renderEvent(activity, inspect, openActivities, setActivityOpen)))])]);
2204
+ }
2205
+ function renderAgentConfigurationGroup(activities, inspect) {
2206
+ const activity = activities[0];
2207
+ return h("li", {
2208
+ class: "vh-invocation-capabilities",
2209
+ "data-activity-id": activity.id,
2210
+ "data-kind": activity.kind,
2211
+ "data-status": activity.status,
2212
+ key: `configuration:${activity.id}`
2213
+ }, [h("details", { class: "vh-invocation-capabilities__details" }, [h("summary", { class: "vh-invocation-capabilities__summary" }, [
2214
+ h("span", {
2215
+ "aria-hidden": "true",
2216
+ class: "vh-invocation-event__icon"
2217
+ }, [frameworkMark()]),
2218
+ h("span", { class: "vh-invocation-event__title" }, invocationActivityTitle(activity)),
2219
+ agentConfigurationSummary(activity) ? h("code", { class: "vh-invocation-event__suffix" }, agentConfigurationSummary(activity)) : null,
2220
+ renderDisclosureChevron("vh-invocation-capabilities__disclosure")
2221
+ ]), h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map((item) => h("li", { key: item.id }, [
2222
+ item.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(item.body, "vh-invocation-event__markdown")]) : null,
2223
+ item.truncated ? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null,
2224
+ h("button", {
2225
+ class: "vh-invocation-event__inspect",
2226
+ onClick: () => inspect("agent"),
2227
+ type: "button"
2228
+ }, "Inspect agent")
2229
+ ])))])]);
2230
+ }
2231
+ function labelStyle(color) {
2232
+ const normalized = color?.replace(/^#/, "");
2233
+ if (!normalized || !/^[\da-f]{6}$/i.test(normalized)) return {};
2234
+ const red = Number.parseInt(normalized.slice(0, 2), 16);
2235
+ const green = Number.parseInt(normalized.slice(2, 4), 16);
2236
+ const blue = Number.parseInt(normalized.slice(4, 6), 16);
2237
+ const luminance = (red * 299 + green * 587 + blue * 114) / 1e3;
2238
+ return {
2239
+ "--vh-invocation-label-bg": `#${normalized}`,
2240
+ "--vh-invocation-label-fg": luminance > 150 ? "#1f2328" : "#ffffff"
2241
+ };
2242
+ }
2243
+ function renderLabelChip(activity) {
2244
+ const name = stringAttribute(activity.attributes, "github.label.name");
2245
+ if (!name) return;
2246
+ return h("span", {
2247
+ class: "vh-invocation-lifecycle__label",
2248
+ "data-operation": stringAttribute(activity.attributes, "github.label.operation"),
2249
+ style: labelStyle(stringAttribute(activity.attributes, "github.label.color"))
2250
+ }, name);
2251
+ }
2252
+ function groupedActivityTitle(activity) {
2253
+ if (!stringAttribute(activity.attributes, "github.label.name")) return invocationActivityTitle(activity);
2254
+ const operation = stringAttribute(activity.attributes, "github.label.operation")?.toLocaleLowerCase();
2255
+ if (activity.status === "failed") {
2256
+ if (operation === "add" || operation === "added") return "Failed to add label";
2257
+ if (operation === "remove" || operation === "removed") return "Failed to remove label";
2258
+ return "Failed to update label";
2259
+ }
2260
+ if (operation === "add" || operation === "added") return "Added label";
2261
+ if (operation === "remove" || operation === "removed") return "Removed label";
2262
+ return "Updated label";
2263
+ }
2264
+ function renderGroupedActivityIcon(activity) {
2265
+ if (activity.status === "failed") return renderActivityIcon(activity);
2266
+ if (stringAttribute(activity.attributes, "github.label.name")) return renderNamedActivityIcon("label");
2267
+ const delivery = stringAttribute(activity.attributes, "channel.effect.kind")?.toLocaleLowerCase();
2268
+ if (delivery === "reaction") {
2269
+ const intent = stringAttribute(activity.attributes, "channel.effect.intent")?.toLocaleLowerCase();
2270
+ const reaction = intent === "completed" ? {
2271
+ label: "hooray",
2272
+ value: "🎉"
2273
+ } : intent === "failed" ? {
2274
+ label: "confused",
2275
+ value: "😕"
2276
+ } : {
2277
+ label: "eyes",
2278
+ value: "👀"
2279
+ };
2280
+ return h("span", {
2281
+ "aria-label": reaction.label,
2282
+ class: "vh-invocation-lifecycle__emoji",
2283
+ role: "img"
2284
+ }, reaction.value);
2285
+ }
2286
+ if ([
2287
+ "reply",
2288
+ "status",
2289
+ "update"
2290
+ ].includes(delivery ?? "")) return channelIcon(activityChannel(activity));
2291
+ return renderActivityIcon(activity);
2292
+ }
2293
+ function renderActivityGroup(group, activities, inspect) {
2294
+ return h("li", {
2295
+ class: "vh-invocation-lifecycle",
2296
+ "data-activity-group": group,
2297
+ key: `activity-group:${group}:${activities[0]?.id}`
2298
+ }, [h("ol", {
2299
+ "aria-label": group,
2300
+ class: "vh-invocation-lifecycle__rows"
2301
+ }, activities.map((activity) => {
2302
+ const target = activity.attributes["vitehub.inspect.target"];
2303
+ const inspectable = target === "agent" || target === "workspace";
2304
+ const rowContent = [
2305
+ renderGroupedActivityIcon(activity),
2306
+ h("span", { class: "vh-invocation-lifecycle__title" }, groupedActivityTitle(activity)),
2307
+ renderLabelChip(activity),
2308
+ !stringAttribute(activity.attributes, "github.label.name") && channelDeliverySummary(activity) ? h("code", { class: "vh-invocation-lifecycle__detail" }, channelDeliverySummary(activity)) : null,
2309
+ activity.status === "failed" && activity.body ? h("span", { class: "vh-invocation-lifecycle__failure" }, activity.body) : null,
2310
+ activity.truncated ? h("span", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null
2311
+ ];
2312
+ return h("li", {
2313
+ "data-activity-id": activity.id,
2314
+ "data-kind": activity.kind,
2315
+ "data-status": activity.status,
2316
+ key: activity.id
2317
+ }, [inspectable ? h("button", {
2318
+ class: "vh-invocation-lifecycle__row",
2319
+ onClick: () => inspect(target),
2320
+ type: "button"
2321
+ }, rowContent) : h("div", { class: "vh-invocation-lifecycle__row" }, rowContent)]);
2322
+ }))]);
2323
+ }
2324
+ function inspectorSection(title, body) {
2325
+ return h("section", [h("h4", title), body]);
2326
+ }
2327
+ function traceTimeline(invocation, selectActivity) {
2328
+ if (!invocationTimeline(invocation).length) return null;
2329
+ return inspectorSection("Trace timeline", h(AgentInvocationTimeline, {
2330
+ invocation,
2331
+ onSelectActivity: selectActivity
2332
+ }));
2333
+ }
2334
+ function inspectorRow(label, value) {
2335
+ if (value === void 0 || value === "") return null;
2336
+ return h("div", [h("dt", label), h("dd", String(value))]);
2337
+ }
2338
+ /** The tail of an identifier, so the row gives a visual check without disclosing the whole value. */
2339
+ function shortIdentifier(value) {
2340
+ return value.length > 8 ? `…${value.slice(-6)}` : "…";
2341
+ }
2342
+ function copyIcon(copied) {
2343
+ return h("svg", {
2344
+ "aria-hidden": "true",
2345
+ fill: "none",
2346
+ viewBox: "0 0 24 24"
2347
+ }, copied ? [h("path", {
2348
+ d: "m5 12 4 4L19 6",
2349
+ "stroke-linecap": "round",
2350
+ "stroke-linejoin": "round"
2351
+ })] : [h("rect", {
2352
+ height: "13",
2353
+ rx: "2",
2354
+ width: "13",
2355
+ x: "8",
2356
+ y: "8"
2357
+ }), h("path", {
2358
+ d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3",
2359
+ "stroke-linecap": "round",
2360
+ "stroke-linejoin": "round"
2361
+ })]);
2362
+ }
2363
+ function statusIcon$1(status) {
2364
+ const paths = {
2365
+ cancelled: ["M18 6 6 18", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
2366
+ completed: ["m5 12 4 4L19 6"],
2367
+ failed: ["M18 6 6 18", "m6 6 12 12"],
2368
+ pending: ["M12 8v4l3 2", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
2369
+ running: ["M21 12a9 9 0 1 1-6.219-8.56"]
2370
+ };
2371
+ const iconPaths = Object.hasOwn(paths, status) ? paths[status] : ["M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18"];
2372
+ return h("svg", {
2373
+ "aria-hidden": "true",
2374
+ fill: "none",
2375
+ viewBox: "0 0 24 24"
2376
+ }, iconPaths.map((path) => h("path", {
2377
+ d: path,
2378
+ "stroke-linecap": "round",
2379
+ "stroke-linejoin": "round"
2380
+ })));
2381
+ }
2382
+ function sourcePresentation(source) {
2383
+ const id = hasRuntimeType(source, "string") ? source : source.id;
2384
+ const repository = hasRuntimeType(source, "string") ? /^(?:gh|github):([\w.-]+\/[\w.-]+)(?:\/.*)?$/.exec(source)?.[1] : /^[\w.-]+\/[\w.-]+$/.test(source.repository ?? "") ? source.repository : void 0;
2385
+ return repository ? {
2386
+ href: `https://github.com/${repository}`,
2387
+ icon: channelIcon("github"),
2388
+ label: id,
2389
+ title: `${id}: ${repository}`
2390
+ } : { label: id };
2391
+ }
2392
+ function inspectorSources(sources) {
2393
+ 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) => {
2394
+ const presentation = sourcePresentation(source);
2395
+ const children = [presentation.icon, h("span", presentation.label)];
2396
+ return presentation.href ? h("a", {
2397
+ class: "vh-invocation-inspector__badge",
2398
+ href: presentation.href,
2399
+ rel: "noreferrer",
2400
+ target: "_blank",
2401
+ title: presentation.title
2402
+ }, children) : h("span", { class: "vh-invocation-inspector__badge" }, children);
2403
+ }))]);
2404
+ }
2405
+ function inspectorChannels(channels) {
2406
+ 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) => {
2407
+ return h("span", { class: "vh-invocation-inspector__badge" }, [channelIcon(channel.kind), h("span", channel.id)]);
2408
+ }))]);
2409
+ }
2410
+ function isRecordedChannel(value) {
2411
+ if (value === null || !hasRuntimeType(value, "object") || Array.isArray(value)) return false;
2412
+ const channel = value;
2413
+ return Object.hasOwn(channel, "id") && hasRuntimeType(channel.id, "string") && Object.hasOwn(channel, "kind") && hasRuntimeType(channel.kind, "string");
2414
+ }
2415
+ function inspectorExecution(configuration) {
2416
+ const model = configuration.driver?.model;
2417
+ const modelId = model?.id;
2418
+ const maker = invocationModelMaker(modelId);
2419
+ const provider = invocationBrand(model?.provider ?? configuration.driver?.provider);
2420
+ const runtime = configuration.runtime?.name;
2421
+ if (!modelId && !provider && (!runtime || runtime === "unknown")) return null;
2422
+ return h("div", { class: "vh-invocation-inspector__group vh-invocation-inspector__group--execution" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Model")]), h("div", { class: "vh-invocation-execution" }, [modelId || provider ? h("div", { class: "vh-invocation-execution__model" }, [invocationBrandMark(maker ?? provider ?? {
2423
+ id: "fallback",
2424
+ label: "Model"
2425
+ }, "vh-invocation-execution__model-icon"), h("div", { class: "vh-invocation-execution__details" }, [h("strong", modelId ? invocationModelName(modelId) : provider?.label), modelId && provider ? h("span", { class: "vh-invocation-execution__provider" }, [invocationBrandMark(provider, "vh-invocation-execution__provider-icon"), provider.label]) : null])]) : null, runtime && runtime !== "unknown" ? h("dl", { class: "vh-invocation-inspector__list vh-invocation-execution__runtime" }, [inspectorRow("Runtime", runtime)]) : null])]);
2426
+ }
2427
+ function inspectorTools(tools, counts, selectTool) {
2428
+ const rows = [...tools].sort((left, right) => (counts.get(right.name) ?? 0) - (counts.get(left.name) ?? 0) || left.name.localeCompare(right.name));
2429
+ const used = rows.filter((tool) => (counts.get(tool.name) ?? 0) > 0).length;
2430
+ 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, {
2431
+ calls: Object.fromEntries(counts),
2432
+ onSelect: selectTool,
2433
+ tools: rows
2434
+ })]);
2435
+ }
2436
+ function inspectorDisclosure(title, summary, body) {
2437
+ return h("details", { class: "vh-invocation-inspector__group vh-invocation-inspector__disclosure" }, [h("summary", { class: "vh-invocation-inspector__group-heading" }, [
2438
+ h("strong", title),
2439
+ h("small", summary),
2440
+ renderDisclosureChevron("vh-invocation-inspector__chevron")
2441
+ ]), body]);
2442
+ }
2443
+ function renderConfiguration(configuration, invocation, showSources, showCapabilities, selectTool) {
2444
+ const recordedTools = Array.isArray(configuration.tools) ? configuration.tools : [];
2445
+ const tools = recordedTools.filter((tool) => tool && typeof tool.name === "string");
2446
+ const channelsCatalogMalformed = configuration.channels !== void 0 && !Array.isArray(configuration.channels);
2447
+ const recordedChannels = Array.isArray(configuration.channels) ? configuration.channels : [];
2448
+ const channels = recordedChannels.filter(isRecordedChannel);
2449
+ configuration = {
2450
+ ...configuration,
2451
+ channels,
2452
+ tools,
2453
+ truncated: configuration.truncated || tools.length !== recordedTools.length || channelsCatalogMalformed || channels.length !== recordedChannels.length
2454
+ };
2455
+ const driver = driverLabel(configuration);
2456
+ const workspace = workspaceLabel(configuration);
2457
+ const setup = [
2458
+ inspectorRow("Driver", driver),
2459
+ inspectorRow("Runtime", configuration.runtime?.name === "unknown" ? void 0 : configuration.runtime?.name),
2460
+ inspectorRow("Workspace", workspace)
2461
+ ].filter((item) => item !== null);
2462
+ const execution = inspectorExecution(configuration);
2463
+ const groups = [
2464
+ execution,
2465
+ !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,
2466
+ showSources && configuration.workspace?.sources?.length ? inspectorSources(configuration.workspace.sources) : null,
2467
+ configuration.channels?.length ? inspectorChannels(configuration.channels) : null,
2468
+ 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) => {
2469
+ const tools = configuration.tools?.filter((tool) => tool.capabilityId === capability.id) || [];
2470
+ return h("details", {
2471
+ class: "vh-invocation-inspector__item-disclosure",
2472
+ key: capability.id
2473
+ }, [
2474
+ h("summary", [
2475
+ h("code", capability.id),
2476
+ h("small", tools.length ? `${tools.length} tool${tools.length === 1 ? "" : "s"}` : "Configuration"),
2477
+ renderDisclosureChevron("vh-invocation-inspector__chevron")
2478
+ ]),
2479
+ tools.length ? h(ToolList, {
2480
+ tools,
2481
+ calls: Object.fromEntries(invocationToolUsage(invocation)),
2482
+ onSelect: selectTool
2483
+ }) : null,
2484
+ capability.metadata ? h("details", { class: "vh-invocation-inspector__settings" }, [h("summary", "Configuration"), h("pre", payloadText(capability.metadata))]) : null,
2485
+ !tools.length && !capability.metadata ? h("p", "No tools or configuration recorded.") : null
2486
+ ]);
2487
+ }))]) : null,
2488
+ 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,
2489
+ 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
2490
+ ].filter((item) => item !== null);
2491
+ return groups.length || configuration.truncated ? [inspectorSection("Agent setup", h("div", { class: "vh-invocation-inspector__groups" }, [configuration.truncated ? h("p", {
2492
+ class: "vh-invocation-inspector__notice",
2493
+ role: "note"
2494
+ }, "Some setup values were shortened when this run was recorded.") : null, ...groups]))] : [];
2495
+ }
2496
+ function renderInvocationActivity(activity, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork = false) {
2497
+ return activity.kind === "message" ? renderMessage(activity, expanded, toggleExpanded, messageRendering, insideWork) : renderEvent(activity, inspect, openActivities, setActivityOpen);
2498
+ }
2499
+ function renderActivitySequence(activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork = false) {
2500
+ const rendered = [];
2501
+ for (let index = 0; index < activities.length;) {
2502
+ const group = activityGroup(activities[index]);
2503
+ if (group) {
2504
+ let end = index + 1;
2505
+ while (activityGroup(activities[end]) === group) end += 1;
2506
+ 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));
2507
+ index = end;
2508
+ continue;
2509
+ }
2510
+ if (activities[index].kind !== "preparation") {
2511
+ rendered.push(renderInvocationActivity(activities[index], expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork));
2512
+ index += 1;
2513
+ continue;
2514
+ }
2515
+ let end = index + 1;
2516
+ while (activities[end]?.kind === "preparation") end += 1;
2517
+ rendered.push(renderPreparationGroup(activities.slice(index, end), invocation, inspect));
2518
+ index = end;
2519
+ }
2520
+ return rendered;
2521
+ }
2522
+ function renderWorkSummary(activities, invocation, expanded, open, setOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
2523
+ if (!activities.length) return null;
2524
+ const active = invocation.status === "pending" || invocation.status === "running";
2525
+ const detailsOpen = active || open;
2526
+ const endedAt = invocation.completedAt ?? invocation.failedAt ?? invocation.cancelledAt ?? invocation.updatedAt;
2527
+ const duration = formatDuration(invocation.startedAt, endedAt);
2528
+ const elapsed = active ? formatElapsed(invocation.startedAt, messageRendering.liveNow) : void 0;
2529
+ return h("li", {
2530
+ class: "vh-invocation-work",
2531
+ key: "invocation-work"
2532
+ }, [h("details", {
2533
+ class: "vh-invocation-work__details",
2534
+ onToggle: (event) => setOpen(event.currentTarget.open),
2535
+ open: detailsOpen
2536
+ }, [
2537
+ h("summary", { class: "vh-invocation-work__summary" }, [
2538
+ h("span", { class: "vh-invocation-work__title" }, active ? "Working…" : duration ? `${invocation.status === "cancelled" ? "Cancelled after" : "Worked for"} ${duration}` : invocation.status === "cancelled" ? "Cancelled" : "Work details"),
2539
+ elapsed ? h("time", {
2540
+ class: "vh-invocation-work__elapsed",
2541
+ datetime: invocation.startedAt
2542
+ }, elapsed) : null,
2543
+ renderDisclosureChevron("vh-invocation-work__disclosure")
2544
+ ]),
2545
+ h("div", {
2546
+ "aria-hidden": "true",
2547
+ class: "vh-invocation-work__divider"
2548
+ }),
2549
+ detailsOpen ? h("ol", { class: "vh-invocation-work__activities" }, renderActivitySequence(activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, true)) : null
2550
+ ])]);
2551
+ }
2552
+ function renderPreviousMessages(messages, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
2553
+ if (!messages.length) return null;
2554
+ return h("li", {
2555
+ class: "vh-invocation-history",
2556
+ key: "invocation-history"
2557
+ }, [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))])]);
2558
+ }
2559
+ function invocationPromptMetadata(invocation, promptId) {
2560
+ if (promptId === void 0) return {};
2561
+ const triggeredBy = stringAttribute(invocation.annotations ?? {}, "triggeredBy");
2562
+ const observationAttributes = invocation.observations.map((observation) => observation.attributes ?? {}).find((attributes) => stringAttribute(attributes, "agent.invoker.label") || stringAttribute(attributes, "agent.invoker.id"));
2563
+ return {
2564
+ author: triggeredBy?.trim() ? triggeredBy.trim() : stringAttribute(observationAttributes ?? {}, "agent.invoker.label") ?? stringAttribute(observationAttributes ?? {}, "agent.invoker.id"),
2565
+ promptId,
2566
+ sentAt: stringAttribute(invocation.annotations ?? {}, "channel.sentAt")
2567
+ };
2568
+ }
2569
+ function renderInvocationActivities(conversation, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
2570
+ if (conversation.kind === "activities") return renderActivitySequence(conversation.activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen);
2571
+ return [
2572
+ renderPreviousMessages(conversation.history, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
2573
+ conversation.prompt ? renderInvocationActivity(conversation.prompt, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) : null,
2574
+ renderWorkSummary(conversation.work, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
2575
+ ...conversation.answers.map((activity) => renderInvocationActivity(activity, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)),
2576
+ ...renderActivitySequence(conversation.followup, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)
2577
+ ].filter((item) => item !== null);
2578
+ }
2579
+ const AgentInvocation = defineComponent({
2580
+ name: "AgentInvocation",
2581
+ emits: { inspect: (target, path) => (target === "agent" || target === "workspace") && (path === void 0 || hasRuntimeType(path, "string")) },
2582
+ props: {
2583
+ header: {
2584
+ default: true,
2585
+ type: Boolean
2586
+ },
2587
+ invocation: {
2588
+ required: true,
2589
+ type: Object
2590
+ },
2591
+ selectedActivityId: {
2592
+ default: void 0,
2593
+ type: String
2594
+ },
2595
+ workspaceInspectable: {
2596
+ default: true,
2597
+ type: Boolean
2598
+ }
2599
+ },
2600
+ setup(props, { emit, slots }) {
2601
+ const activities = computed(() => invocationActivities(props.invocation).map((activity) => {
2602
+ if (props.workspaceInspectable) return activity;
2603
+ const attributes = { ...activity.attributes };
2604
+ delete attributes["vitehub.inspect.target"];
2605
+ return {
2606
+ ...activity,
2607
+ attributes,
2608
+ skill: void 0,
2609
+ skills: void 0
2610
+ };
2611
+ }));
2612
+ const conversation = computed(() => buildInvocationConversation(activities.value));
2613
+ const expandedMessages = ref(/* @__PURE__ */ new Set());
2614
+ const mounted = useMounted();
2615
+ const now = useNow({ scheduler: (tick) => useIntervalFn(tick, 6e4) });
2616
+ const liveNow = ref();
2617
+ let liveClock;
2618
+ const workOpen = ref(false);
2619
+ const openActivities = ref(/* @__PURE__ */ new Set());
2620
+ const messageCopy = ref();
2621
+ const root = ref();
2622
+ let selectedElement;
2623
+ let copyTimer;
2624
+ function toggleExpanded(id) {
2625
+ const next = new Set(expandedMessages.value);
2626
+ if (next.has(id)) next.delete(id);
2627
+ else next.add(id);
2628
+ expandedMessages.value = next;
2629
+ }
2630
+ function setActivityOpen(id, open) {
2631
+ const next = new Set(openActivities.value);
2632
+ if (open) next.add(id);
2633
+ else next.delete(id);
2634
+ openActivities.value = next;
2635
+ }
2636
+ function inspectWorkspaceArtifact(event) {
2637
+ if (!props.workspaceInspectable || event.defaultPrevented || event.button !== 0) return;
2638
+ const target = event.target instanceof Element ? event.target.closest("a[href]") : void 0;
2639
+ const path = target ? workspaceArtifactPath(target.getAttribute("href") || "") : void 0;
2640
+ if (!path) return;
2641
+ event.preventDefault();
2642
+ emit("inspect", "workspace", path);
2643
+ }
2644
+ function clearSelectedElement() {
2645
+ if (!selectedElement) return;
2646
+ selectedElement.removeAttribute("data-selected");
2647
+ selectedElement.removeAttribute("tabindex");
2648
+ selectedElement = void 0;
2649
+ }
2650
+ async function copyMessage(activity) {
2651
+ try {
2652
+ if (!navigator.clipboard) throw new Error("Clipboard unavailable");
2653
+ const url = agentInvocationExternalUrl(props.invocation);
2654
+ const metadata = [
2655
+ `Invocation ID: ${props.invocation.id}`,
2656
+ `Trace ID: ${props.invocation.traceId}`,
2657
+ props.invocation.agentName ? `Agent: ${props.invocation.agentName}` : void 0,
2658
+ url ? `URL: ${url}` : void 0
2659
+ ].filter((value) => value !== void 0);
2660
+ await navigator.clipboard.writeText(`${activity.body ?? ""}\n\n${metadata.join("\n")}`);
2661
+ messageCopy.value = {
2662
+ id: activity.id,
2663
+ status: "copied"
2664
+ };
2665
+ } catch {
2666
+ messageCopy.value = {
2667
+ id: activity.id,
2668
+ status: "failed"
2669
+ };
2670
+ }
2671
+ if (copyTimer) clearTimeout(copyTimer);
2672
+ copyTimer = setTimeout(() => messageCopy.value = void 0, 2e3);
2673
+ }
2674
+ async function focusActivity(id) {
2675
+ if (id) {
2676
+ workOpen.value = true;
2677
+ setActivityOpen(id, true);
2678
+ }
2679
+ await nextTick();
2680
+ const target = [...root.value?.querySelectorAll("[data-activity-id]") ?? []].find((element) => element.dataset.activityId === id);
2681
+ if (target && target === selectedElement) return;
2682
+ clearSelectedElement();
2683
+ if (!id) return;
2684
+ if (!target) return;
2685
+ let details = target.closest("details");
2686
+ while (details) {
2687
+ details.open = true;
2688
+ details = details.parentElement?.closest("details") ?? null;
2689
+ }
2690
+ target.dataset.selected = "true";
2691
+ target.tabIndex = -1;
2692
+ target.focus({ preventScroll: true });
2693
+ const reduceMotion = "matchMedia" in globalThis && matchMedia("(prefers-reduced-motion: reduce)").matches;
2694
+ target.scrollIntoView?.({
2695
+ behavior: reduceMotion ? "auto" : "smooth",
2696
+ block: "center"
2697
+ });
2698
+ selectedElement = target;
2699
+ }
2700
+ watch([() => props.selectedActivityId, activities], ([id]) => void focusActivity(id), {
2701
+ flush: "post",
2702
+ immediate: true
2703
+ });
2704
+ watch(() => props.invocation.id, () => {
2705
+ workOpen.value = false;
2706
+ openActivities.value = /* @__PURE__ */ new Set();
2707
+ messageCopy.value = void 0;
2708
+ });
2709
+ watch(() => props.invocation.status, (status, previousStatus) => {
2710
+ if ((previousStatus === "pending" || previousStatus === "running") && status !== "pending" && status !== "running") workOpen.value = false;
2711
+ });
2712
+ watch([() => props.invocation.status === "pending" || props.invocation.status === "running", mounted], ([live, isMounted]) => {
2713
+ if (liveClock) clearInterval(liveClock);
2714
+ liveClock = void 0;
2715
+ liveNow.value = live && isMounted ? /* @__PURE__ */ new Date() : void 0;
2716
+ if (live && isMounted) liveClock = setInterval(() => liveNow.value = /* @__PURE__ */ new Date(), 1e3);
2717
+ }, { immediate: true });
2718
+ onBeforeUnmount(() => {
2719
+ clearSelectedElement();
2720
+ if (copyTimer) clearTimeout(copyTimer);
2721
+ if (liveClock) clearInterval(liveClock);
2722
+ });
2723
+ return () => {
2724
+ const promptMetadata = invocationPromptMetadata(props.invocation, conversation.value.promptId);
2725
+ return h("article", {
2726
+ class: ["vh-invocation-session", { "vh-invocation-session--headerless": !props.header }],
2727
+ "data-status": props.invocation.status,
2728
+ "data-slot": "invocation",
2729
+ onClick: inspectWorkspaceArtifact,
2730
+ ref: root
2731
+ }, [props.header ? h("header", { class: "vh-invocation-header" }, [h("div", {
2732
+ class: "vh-invocation-header__breadcrumb",
2733
+ title: `${agentInvocationProject(props.invocation)} / ${agentInvocationTitle(props.invocation)}`
2734
+ }, [
2735
+ h("span", { class: "vh-invocation-header__project-icon" }, [renderFolderIcon()]),
2736
+ h("span", { class: "vh-invocation-header__project" }, agentInvocationProject(props.invocation)),
2737
+ h("span", {
2738
+ "aria-hidden": "true",
2739
+ class: "vh-invocation-header__separator"
2740
+ }, "/"),
2741
+ h("h2", slots.title?.({ invocation: props.invocation }) ?? agentInvocationTitle(props.invocation))
2742
+ ]), slots.actions?.({ invocation: props.invocation })]) : null, h("div", { class: "vh-invocation-thread" }, [h("div", { class: "vh-invocation-thread__content" }, [
2743
+ invocationTimestamp(props.invocation),
2744
+ h("div", {
2745
+ "aria-label": "Session thread",
2746
+ "aria-relevant": "additions text",
2747
+ role: "log"
2748
+ }, [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), {
2749
+ ...promptMetadata,
2750
+ now: now.value,
2751
+ liveNow: liveNow.value,
2752
+ mounted: mounted.value,
2753
+ copy: (activity) => void copyMessage(activity),
2754
+ copiedId: messageCopy.value?.id,
2755
+ copyStatus: messageCopy.value?.status
2756
+ }, openActivities.value, setActivityOpen))]),
2757
+ activities.value.length || props.invocation.error ? null : h("div", {
2758
+ class: "vh-invocation-empty",
2759
+ role: "status"
2760
+ }, [h("p", "Waiting for the first update…")]),
2761
+ props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null,
2762
+ slots.footer?.({ invocation: props.invocation })
2763
+ ])])]);
2764
+ };
2765
+ }
2766
+ });
2767
+ const AgentInvocationInspector = defineComponent({
2768
+ name: "AgentInvocationInspector",
2769
+ emits: { selectActivity: (id) => Boolean(id) },
2770
+ props: {
2771
+ invocation: {
2772
+ required: true,
2773
+ type: Object
2774
+ },
2775
+ showStatus: {
2776
+ default: true,
2777
+ type: Boolean
2778
+ },
2779
+ showCapabilities: {
2780
+ default: false,
2781
+ type: Boolean
2782
+ },
2783
+ showTimeline: {
2784
+ default: true,
2785
+ type: Boolean
2786
+ },
2787
+ showSources: {
2788
+ default: true,
2789
+ type: Boolean
2790
+ },
2791
+ showError: {
2792
+ default: true,
2793
+ type: Boolean
2794
+ }
2795
+ },
2796
+ setup(props, { emit, slots }) {
2797
+ const activities = computed(() => invocationActivities(props.invocation));
2798
+ const conversation = computed(() => buildInvocationConversation(activities.value));
2799
+ const copied = ref();
2800
+ const copyError = ref();
2801
+ let copyTimer;
2802
+ const metrics = computed(() => ({
2803
+ changes: activities.value.filter((activity) => activity.kind === "change").length,
2804
+ messages: (conversation.value.kind === "activities" ? conversation.value.activities : [
2805
+ ...conversation.value.history,
2806
+ ...conversation.value.prompt ? [conversation.value.prompt] : [],
2807
+ ...conversation.value.work,
2808
+ ...conversation.value.answers,
2809
+ ...conversation.value.followup
2810
+ ]).filter((activity) => activity.kind === "message").length,
2811
+ steps: activities.value.filter((activity) => activity.kind !== "message" && activity.name !== "vitehub.observation.truncated").length,
2812
+ tokens: latestInvocationTokens(activities.value),
2813
+ toolCalls: [...invocationToolUsage(props.invocation).values()].reduce((total, count) => total + count, 0)
2814
+ }));
2815
+ function selectTool(name) {
2816
+ const call = activities.value.find((activity) => activity.attributes["tool.name"] === name);
2817
+ if (call) emit("selectActivity", call.id);
2818
+ }
2819
+ async function copyIdentifier(kind, value) {
2820
+ if (!value) return;
2821
+ copyError.value = void 0;
2822
+ await nextTick();
2823
+ if (!("navigator" in globalThis) || !navigator.clipboard) {
2824
+ copied.value = void 0;
2825
+ copyError.value = kind;
2826
+ return;
2827
+ }
2828
+ try {
2829
+ await navigator.clipboard.writeText(value);
2830
+ copied.value = kind;
2831
+ copyError.value = void 0;
2832
+ if (copyTimer) clearTimeout(copyTimer);
2833
+ copyTimer = setTimeout(() => {
2834
+ copied.value = void 0;
2835
+ }, 1600);
2836
+ } catch {
2837
+ copied.value = void 0;
2838
+ copyError.value = kind;
2839
+ }
2840
+ }
2841
+ function copyAction(kind, label, value) {
2842
+ if (!value) return null;
2843
+ const didCopy = copied.value === kind;
2844
+ return h("button", {
2845
+ "aria-label": didCopy ? `${label} copied` : `Copy ${label}`,
2846
+ class: "vh-invocation-inspector__copy",
2847
+ onClick: () => void copyIdentifier(kind, value),
2848
+ type: "button"
2849
+ }, [
2850
+ h("span", { class: "vh-invocation-inspector__copy-label" }, label),
2851
+ h("code", {
2852
+ "aria-hidden": "true",
2853
+ class: "vh-invocation-inspector__copy-value"
2854
+ }, shortIdentifier(value)),
2855
+ h("span", { class: "vh-invocation-inspector__copy-icon" }, [copyIcon(didCopy)])
2856
+ ]);
2857
+ }
2858
+ onBeforeUnmount(() => {
2859
+ if (copyTimer) clearTimeout(copyTimer);
2860
+ });
2861
+ return () => {
2862
+ const configuration = props.invocation.configuration;
2863
+ const agentName = configuration?.agent?.name ?? props.invocation.agentName;
2864
+ const usage = props.invocation.usage;
2865
+ const partition = usage?.inputTokens !== void 0 && usage.outputTokens !== void 0 && (usage.totalTokens === void 0 || usage.inputTokens + usage.outputTokens === usage.totalTokens) ? usage : void 0;
2866
+ const endedAt = props.invocation.completedAt ?? props.invocation.failedAt ?? props.invocation.cancelledAt;
2867
+ const totalTime = formatDuration(props.invocation.startedAt, endedAt);
2868
+ const duration = totalTime ?? (props.invocation.status === "pending" ? "Waiting to start" : props.invocation.status === "running" ? "In progress" : "Duration unavailable");
2869
+ return h("aside", {
2870
+ "aria-label": "Session details",
2871
+ class: "vh-invocation-inspector",
2872
+ "data-status": props.invocation.status,
2873
+ "data-slot": "invocation-inspector"
2874
+ }, [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" }, [
2875
+ h("span", {
2876
+ class: "vh-visually-hidden",
2877
+ role: "status"
2878
+ }, copied.value ? `${copied.value === "trace" ? "Trace" : "Invocation"} ID copied` : copyError.value ? `${copyError.value === "trace" ? "Trace" : "Invocation"} ID could not be copied` : ""),
2879
+ h("section", { class: "vh-invocation-inspector__identity" }, [
2880
+ props.showStatus ? h("div", {
2881
+ "aria-atomic": "true",
2882
+ "aria-live": "polite",
2883
+ class: "vh-invocation-inspector__status",
2884
+ role: "status"
2885
+ }, [
2886
+ h("span", { class: "vh-invocation-inspector__status-icon" }, [statusIcon$1(props.invocation.status)]),
2887
+ h("strong", statusLabel(props.invocation.status)),
2888
+ h("small", duration)
2889
+ ]) : null,
2890
+ h("div", { class: "vh-invocation-inspector__title-row" }, [h("h4", { class: "vh-invocation-inspector__title" }, agentInvocationTitle(props.invocation)), slots.identityActions?.({ invocation: props.invocation })]),
2891
+ agentInvocationContext(props.invocation) !== props.invocation.id ? h("p", agentInvocationContext(props.invocation)) : null,
2892
+ agentName ? h("div", { class: "vh-invocation-inspector__agent" }, [
2893
+ h("span", "Agent"),
2894
+ h("code", agentName),
2895
+ configuration?.agent?.version ? h("small", `v${configuration.agent.version}`) : null
2896
+ ]) : null,
2897
+ props.showError && props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null
2898
+ ]),
2899
+ inspectorSection("Run summary", h("dl", { class: "vh-invocation-inspector__metrics" }, [
2900
+ h("div", [h("dt", "Messages"), h("dd", metrics.value.messages)]),
2901
+ h("div", [h("dt", "Steps"), h("dd", metrics.value.steps)]),
2902
+ h("div", [h("dt", "Tool calls"), h("dd", metrics.value.toolCalls)]),
2903
+ totalTime ? h("div", [h("dt", "Total time"), h("dd", totalTime)]) : null,
2904
+ metrics.value.changes ? h("div", [h("dt", "Changes"), h("dd", metrics.value.changes)]) : null,
2905
+ inspectorRow("Tokens", (props.invocation.usage?.totalTokens ?? metrics.value.tokens) === void 0 ? "Unknown" : new Intl.NumberFormat("en").format(props.invocation.usage?.totalTokens ?? metrics.value.tokens)),
2906
+ inspectorRow(usage?.cost?.estimated === true ? "Estimated cost" : usage?.cost?.estimated === false ? "Reported cost" : "Cost", usage?.cost?.display || "Unknown"),
2907
+ ...[
2908
+ ["Input", partition?.inputTokens],
2909
+ ["Output", partition?.outputTokens],
2910
+ ["Cached", partition?.cachedInputTokens],
2911
+ ["Cache writes", partition?.cacheWriteTokens],
2912
+ ["Reasoning", partition?.reasoningTokens]
2913
+ ].flatMap(([label, value]) => value === void 0 ? [] : [inspectorRow(label, new Intl.NumberFormat("en").format(value))])
2914
+ ])),
2915
+ props.showTimeline ? traceTimeline(props.invocation, (id) => emit("selectActivity", id)) : null,
2916
+ ...configuration ? renderConfiguration(configuration, props.invocation, props.showSources, props.showCapabilities, selectTool) : [],
2917
+ slots.metadata?.({ invocation: props.invocation }),
2918
+ inspectorSection("Identifiers", h("div", { class: "vh-invocation-inspector__copy-list" }, [copyAction("trace", "Trace ID", props.invocation.traceId), copyAction("invocation", "Invocation ID", props.invocation.id)]))
2919
+ ])]);
2920
+ };
2921
+ }
2922
+ });
2923
+ //#endregion
2924
+ //#region src/console/runtime/components/invocation/agent-invocation-list.ts
2925
+ /** The status words of the session list. Console search uses them too. */
2926
+ function invocationStatusLabel(status) {
2927
+ const labels = {
2928
+ cancelled: "Cancelled",
2929
+ completed: "Done",
2930
+ failed: "Failed",
2931
+ pending: "Queued",
2932
+ running: "Working"
2933
+ };
2934
+ return Object.hasOwn(labels, status) ? labels[status] : "Unknown";
2935
+ }
2936
+ const invocationListPaginationThreshold = 636;
2937
+ const recencyGroups = [
2938
+ {
2939
+ id: "today",
2940
+ label: "Today"
2941
+ },
2942
+ {
2943
+ id: "yesterday",
2944
+ label: "Yesterday"
2945
+ },
2946
+ {
2947
+ id: "week",
2948
+ label: "Previous 7 days"
2949
+ },
2950
+ {
2951
+ id: "older",
2952
+ label: "Older"
2953
+ }
2954
+ ];
2955
+ function recencyGroup(value, now) {
2956
+ const time = value ? Date.parse(value) : NaN;
2957
+ if (!Number.isFinite(time)) return "older";
2958
+ const today = new Date(now);
2959
+ today.setHours(0, 0, 0, 0);
2960
+ const startOfDay = (offset) => new Date(today.getFullYear(), today.getMonth(), today.getDate() - offset).getTime();
2961
+ if (time >= startOfDay(0)) return "today";
2962
+ if (time >= startOfDay(1)) return "yesterday";
2963
+ if (time >= startOfDay(7)) return "week";
2964
+ return "older";
2965
+ }
2966
+ function groupByRecency(items, now) {
2967
+ const buckets = /* @__PURE__ */ new Map();
2968
+ for (const item of items) {
2969
+ const id = recencyGroup(item.updatedAt ?? item.startedAt, now);
2970
+ const bucket = buckets.get(id);
2971
+ if (bucket) bucket.push(item);
2972
+ else buckets.set(id, [item]);
2973
+ }
2974
+ return recencyGroups.flatMap((group) => {
2975
+ const groupItems = buckets.get(group.id);
2976
+ return groupItems ? [{
2977
+ ...group,
2978
+ items: groupItems
2979
+ }] : [];
2980
+ });
2981
+ }
2982
+ function relativeTime(value, now) {
2983
+ if (!value || now === void 0) return;
2984
+ const elapsed = now - Date.parse(value);
2985
+ if (!Number.isFinite(elapsed) || elapsed < 0) return;
2986
+ if (elapsed < 6e4) return {
2987
+ label: "now",
2988
+ short: "now"
2989
+ };
2990
+ if (elapsed < 36e5) {
2991
+ const minutes = Math.floor(elapsed / 6e4);
2992
+ return {
2993
+ label: new Intl.RelativeTimeFormat("en").format(-minutes, "minute"),
2994
+ short: `${minutes}m`
2995
+ };
2996
+ }
2997
+ if (elapsed < 864e5) {
2998
+ const hours = Math.floor(elapsed / 36e5);
2999
+ return {
3000
+ label: new Intl.RelativeTimeFormat("en").format(-hours, "hour"),
3001
+ short: `${hours}h`
3002
+ };
3003
+ }
3004
+ const date = new Date(value);
3005
+ return {
3006
+ label: new Intl.DateTimeFormat("en", {
3007
+ dateStyle: "medium",
3008
+ timeStyle: "short",
3009
+ timeZone: "UTC"
3010
+ }).format(date),
3011
+ short: new Intl.DateTimeFormat("en", {
3012
+ day: "numeric",
3013
+ month: "short",
3014
+ timeZone: "UTC"
3015
+ }).format(date)
3016
+ };
3017
+ }
3018
+ function statusIcon(status) {
3019
+ const paths = {
3020
+ cancelled: [
3021
+ "M7 7l10 10",
3022
+ "M17 7 7 17",
3023
+ "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
3024
+ ],
3025
+ completed: ["m8 12 2.5 2.5L16 9", "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"],
3026
+ failed: [
3027
+ "m9 9 6 6",
3028
+ "m15 9-6 6",
3029
+ "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
3030
+ ],
3031
+ pending: ["M12 7v5l3 2", "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0"],
3032
+ running: ["M21 12a9 9 0 1 1-6.219-8.56"]
3033
+ };
3034
+ const iconPaths = Object.hasOwn(paths, status) ? paths[status] : ["M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18"];
3035
+ return h("svg", {
3036
+ "aria-hidden": "true",
3037
+ fill: "none",
3038
+ viewBox: "0 0 24 24"
3039
+ }, iconPaths.map((path) => h("path", {
3040
+ d: path,
3041
+ "stroke-linecap": "round",
3042
+ "stroke-linejoin": "round"
3043
+ })));
3044
+ }
3045
+ function renderItem(item, selectedId, now, select, projectIconSlot, harnessSlot) {
3046
+ const timestamp = item.status === "running" ? item.startedAt ?? item.updatedAt : item.updatedAt;
3047
+ const time = relativeTime(timestamp, now);
3048
+ return h("li", { key: item.id }, [h("button", {
3049
+ "aria-current": selectedId === item.id ? "true" : void 0,
3050
+ "aria-description": item.description,
3051
+ class: "vh-invocation-list__item",
3052
+ "data-invocation-id": item.id,
3053
+ "data-relative-time": time?.short,
3054
+ "data-status": item.status,
3055
+ onClick: () => select(item),
3056
+ type: "button"
3057
+ }, [
3058
+ h("span", { class: "vh-invocation-list__context" }, [
3059
+ projectIconSlot ? h("span", { class: "vh-invocation-list__project-icon" }, projectIconSlot({ item })) : null,
3060
+ item.project ? h("span", {
3061
+ class: "vh-invocation-list__project",
3062
+ title: item.project
3063
+ }, item.project) : null,
3064
+ h("span", {
3065
+ class: "vh-invocation-list__state",
3066
+ title: item.description
3067
+ }, [
3068
+ item.status === "completed" ? h("span", { class: "vh-visually-hidden" }, invocationStatusLabel(item.status)) : h("span", { class: "vh-invocation-list__state-icon" }, [statusIcon(item.status)]),
3069
+ item.status === "completed" ? null : h("span", invocationStatusLabel(item.status)),
3070
+ time ? h("time", {
3071
+ "aria-label": time.label,
3072
+ datetime: timestamp,
3073
+ title: time.label
3074
+ }, time.short) : null
3075
+ ])
3076
+ ]),
3077
+ h("strong", {
3078
+ class: "vh-invocation-list__title",
3079
+ title: item.title
3080
+ }, item.title),
3081
+ item.context || harnessSlot || item.channel ? h("span", { class: "vh-invocation-list__meta" }, [
3082
+ item.context ? h("span", {
3083
+ class: "vh-invocation-list__branch",
3084
+ title: item.context
3085
+ }, item.context) : null,
3086
+ harnessSlot ? h("span", { class: "vh-invocation-list__harness" }, harnessSlot({ item })) : null,
3087
+ item.channel ? channelIcon(item.channel) : null
3088
+ ]) : null
3089
+ ])]);
3090
+ }
3091
+ const AgentInvocationList = defineComponent({
3092
+ name: "AgentInvocationList",
3093
+ props: {
3094
+ ariaLabel: {
3095
+ default: "Agent sessions",
3096
+ type: String
3097
+ },
3098
+ continuationKey: [Number, String],
3099
+ /** Groups rows under Today, Yesterday, Previous 7 days, and Older. Requires `now`. */
3100
+ groupBy: String,
3101
+ hasMore: Boolean,
3102
+ items: {
3103
+ required: true,
3104
+ type: Array
3105
+ },
3106
+ loading: Boolean,
3107
+ now: Number,
3108
+ remainingStatuses: Array,
3109
+ retryKey: [Number, String],
3110
+ selectedId: String
3111
+ },
3112
+ emits: {
3113
+ endReached: () => true,
3114
+ select: (_item) => true
3115
+ },
3116
+ setup(props, { emit, slots }) {
3117
+ const viewport = ref(null);
3118
+ const requestedLength = ref();
3119
+ let focusedItemBeforeUpdate;
3120
+ const paginationKey = computed(() => props.items.map((item) => `${item.id}:${item.status}`).join("\0"));
3121
+ let resizeObserver;
3122
+ const requestMoreIfNeeded = () => {
3123
+ const element = viewport.value;
3124
+ const length = props.items.length;
3125
+ if (!element || element.clientHeight <= 0 || !props.hasMore || props.loading || !length || requestedLength.value === length) return false;
3126
+ if (element.scrollTop + element.clientHeight >= element.scrollHeight - invocationListPaginationThreshold) {
3127
+ requestedLength.value = length;
3128
+ emit("endReached");
3129
+ return true;
3130
+ }
3131
+ return false;
3132
+ };
3133
+ const requestMoreAutomatically = () => requestMoreIfNeeded();
3134
+ const requestMoreOnScroll = () => requestMoreIfNeeded();
3135
+ watch([
3136
+ () => props.items.length,
3137
+ paginationKey,
3138
+ () => props.hasMore,
3139
+ () => props.loading
3140
+ ], ([length, key], [previous, previousKey]) => {
3141
+ if (length < previous || length === previous && key !== previousKey) requestedLength.value = void 0;
3142
+ requestMoreAutomatically();
3143
+ }, { flush: "post" });
3144
+ watch(() => props.retryKey, () => {
3145
+ requestedLength.value = void 0;
3146
+ requestMoreIfNeeded();
3147
+ });
3148
+ watch(() => props.continuationKey, () => {
3149
+ requestedLength.value = void 0;
3150
+ requestMoreAutomatically();
3151
+ });
3152
+ const mounted = ref(false);
3153
+ onMounted(() => {
3154
+ mounted.value = true;
3155
+ requestMoreAutomatically();
3156
+ if ("ResizeObserver" in globalThis && viewport.value) {
3157
+ resizeObserver = new ResizeObserver(requestMoreAutomatically);
3158
+ resizeObserver.observe(viewport.value);
3159
+ }
3160
+ });
3161
+ onBeforeUnmount(() => resizeObserver?.disconnect());
3162
+ const select = (item) => emit("select", item);
3163
+ const rememberFocusedItem = () => {
3164
+ const element = document.activeElement;
3165
+ focusedItemBeforeUpdate = element instanceof HTMLButtonElement && element.classList.contains("vh-invocation-list__item") && viewport.value?.contains(element) && element.dataset.invocationId ? {
3166
+ element,
3167
+ id: element.dataset.invocationId
3168
+ } : void 0;
3169
+ };
3170
+ const restoreMovedItemFocus = async () => {
3171
+ const focused = focusedItemBeforeUpdate;
3172
+ focusedItemBeforeUpdate = void 0;
3173
+ if (!focused || focused.element.isConnected) return;
3174
+ await nextTick();
3175
+ const element = [...viewport.value?.querySelectorAll("[data-invocation-id]") ?? []].find((candidate) => candidate.dataset.invocationId === focused.id);
3176
+ if (!element) return;
3177
+ element.focus();
3178
+ };
3179
+ const renderRow = (item) => renderItem(item, props.selectedId, props.now, select, slots.projectIcon, slots.harness);
3180
+ const renderRows = () => {
3181
+ const busy = props.loading ? "true" : void 0;
3182
+ if (props.groupBy !== "recency" || props.now === void 0 || !mounted.value) return h("ul", {
3183
+ "aria-busy": busy,
3184
+ class: "vh-invocation-list__group-items"
3185
+ }, props.items.map(renderRow));
3186
+ return h("div", {
3187
+ "aria-busy": busy,
3188
+ class: "vh-invocation-list__groups"
3189
+ }, groupByRecency(props.items, props.now).map((group) => h("section", {
3190
+ class: "vh-invocation-list__group",
3191
+ "data-group": group.id,
3192
+ key: group.id
3193
+ }, [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))])));
3194
+ };
3195
+ return () => h("nav", {
3196
+ "aria-label": props.ariaLabel,
3197
+ class: "vh-invocation-list",
3198
+ onScroll: requestMoreOnScroll,
3199
+ onVnodeBeforeUpdate: rememberFocusedItem,
3200
+ onVnodeUpdated: restoreMovedItemFocus,
3201
+ ref: viewport
3202
+ }, [
3203
+ slots.header?.({ items: props.items }),
3204
+ props.items.length === 0 ? slots.empty?.() ?? h("p", { class: "vh-invocation-list__empty" }, "No sessions yet.") : null,
3205
+ props.items.length ? renderRows() : null,
3206
+ props.loading && props.items.length ? slots.loading?.() ?? h("p", {
3207
+ class: "vh-invocation-list__loading",
3208
+ role: "status"
3209
+ }, "Loading sessions…") : null,
3210
+ slots.footer?.({ items: props.items })
3211
+ ]);
3212
+ }
3213
+ });
3214
+ //#endregion
3215
+ export { AgentCapabilityInspector, AgentInvocation, AgentInvocationInspector, AgentInvocationList, agentInvocationContext, agentInvocationTitle };