vite-hub 0.0.3 → 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.
- package/LICENSE +201 -0
- package/README.md +178 -26
- package/dist/_internal/agent/eve.d.ts +1 -0
- package/dist/_internal/agent/eve.js +2 -0
- package/dist/_internal/agent/invocations.d.ts +2 -0
- package/dist/_internal/agent/invocations.js +88 -0
- package/dist/_internal/agent/operations.d.ts +1 -0
- package/dist/_internal/agent/operations.js +2 -0
- package/dist/_internal/agent/runtime/invocations-dev.d.ts +1 -0
- package/dist/_internal/agent/runtime/invocations-dev.js +2 -0
- package/dist/_internal/agent/runtime/process.d.ts +1 -0
- package/dist/_internal/agent/runtime/process.js +2 -0
- package/dist/_internal/agent/server/registry.d.ts +1 -0
- package/dist/_internal/agent/server/registry.js +2 -0
- package/dist/_internal/auth/runtime/console.d.ts +1 -0
- package/dist/_internal/auth/runtime/console.js +2 -0
- package/dist/_internal/blob/operations.d.ts +1 -0
- package/dist/_internal/blob/operations.js +2 -0
- package/dist/_internal/comments/operations.d.ts +1 -0
- package/dist/_internal/comments/operations.js +2 -0
- package/dist/_internal/comments/runtime/console.d.ts +1 -0
- package/dist/_internal/comments/runtime/console.js +2 -0
- package/dist/_internal/content/operations.d.ts +1 -0
- package/dist/_internal/content/operations.js +2 -0
- package/dist/_internal/content/runtime/console.d.ts +1 -0
- package/dist/_internal/content/runtime/console.js +2 -0
- package/dist/_internal/database/runtime/state.d.ts +5 -0
- package/dist/_internal/database/runtime/state.js +7 -0
- package/dist/_internal/email/operations.d.ts +1 -0
- package/dist/_internal/email/operations.js +2 -0
- package/dist/_internal/email/runtime/console.d.ts +1 -0
- package/dist/_internal/email/runtime/console.js +2 -0
- package/dist/_internal/kv/operations.d.ts +1 -0
- package/dist/_internal/kv/operations.js +2 -0
- package/dist/_internal/kv/runtime/disabled-upstash.d.ts +2 -3
- package/dist/_internal/kv/runtime/disabled-upstash.js +2 -1
- package/dist/_internal/queue/operations.d.ts +1 -0
- package/dist/_internal/queue/operations.js +2 -0
- package/dist/_internal/rate-limit/operations.d.ts +1 -0
- package/dist/_internal/rate-limit/operations.js +2 -0
- package/dist/_internal/sandbox/task/runtime/state.d.ts +1 -0
- package/dist/_internal/sandbox/task/runtime/state.js +2 -0
- package/dist/_internal/schedule/operations.d.ts +1 -0
- package/dist/_internal/schedule/operations.js +2 -0
- package/dist/_internal/schedule/runtime/kv.d.ts +1 -0
- package/dist/_internal/schedule/runtime/kv.js +2 -0
- package/dist/_internal/task/operations.d.ts +5 -0
- package/dist/_internal/task/operations.js +2 -0
- package/dist/_internal/workflow/operations.d.ts +1 -0
- package/dist/_internal/workflow/operations.js +2 -0
- package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +1 -0
- package/dist/_internal/workflow/runtime/cloudflare-runner.js +2 -0
- package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +1 -0
- package/dist/_internal/workflow/runtime/cloudflare-vite.js +2 -0
- package/dist/_internal/workflow/runtime/vercel-vite.d.ts +1 -0
- package/dist/_internal/workflow/runtime/vercel-vite.js +2 -0
- package/dist/_internal/workspace/operations.d.ts +1 -0
- package/dist/_internal/workspace/operations.js +2 -0
- package/dist/access-BhTe9yuV.js +516 -0
- package/dist/access-CBqnsYdj.d.ts +130 -0
- package/dist/agent/capabilities.d.ts +24 -1
- package/dist/agent/capabilities.js +56 -1
- package/dist/agent/invocations/d1.d.ts +1 -0
- package/dist/agent/invocations/d1.js +2 -0
- package/dist/agent/invocations/database.d.ts +2 -0
- package/dist/agent/invocations/database.js +91 -0
- package/dist/agent/invocations/sqlite.d.ts +1 -0
- package/dist/agent/invocations/sqlite.js +2 -0
- package/dist/agent/mcp.d.ts +1 -0
- package/dist/agent/mcp.js +2 -0
- package/dist/agent/observability.d.ts +1 -0
- package/dist/agent/observability.js +2 -0
- package/dist/agent/process-host.d.ts +1 -0
- package/dist/agent/process-host.js +2 -0
- package/dist/agent/runtime/process.d.ts +1 -0
- package/dist/agent/runtime/process.js +2 -0
- package/dist/agent/server/github.d.ts +1 -0
- package/dist/agent/server/github.js +2 -0
- package/dist/agent/vite.d.ts +1 -0
- package/dist/agent/vite.js +2 -0
- package/dist/agent/vue.d.ts +1 -0
- package/dist/agent/vue.js +2 -0
- package/dist/agent-invocations.post-CFKMEy-h.js +432 -0
- package/dist/agent.d.ts +12 -1
- package/dist/agent.js +49 -1
- package/dist/agents-BNmuN4Qa.d.ts +99 -0
- package/dist/agents-CVehuMFA.js +118 -0
- package/dist/auth/console-runtime.d.ts +1 -0
- package/dist/auth/console-runtime.js +2 -0
- package/dist/auth/console.d.ts +1 -0
- package/dist/auth/console.js +2 -0
- package/dist/auth/presets.d.ts +1 -0
- package/dist/auth/presets.js +2 -0
- package/dist/auth/vue.d.ts +1 -0
- package/dist/auth/vue.js +2 -0
- package/dist/auth-BSSM-qh0.js +700 -0
- package/dist/auth-CG8tmgH7.d.ts +106 -0
- package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +50 -0
- package/dist/auth-inline-config--vlclzm3.js +18 -0
- package/dist/auth-inline-config-R6q_4Iwo.d.ts +30 -0
- package/dist/auth-path-B7Ssonj-.js +49 -0
- package/dist/bin.d.ts +1 -1
- package/dist/bin.js +346 -7
- package/dist/blob/client.d.ts +1 -0
- package/dist/blob/client.js +2 -0
- package/dist/blob/media.d.ts +1 -0
- package/dist/blob/media.js +2 -0
- package/dist/blob/vue.d.ts +1 -0
- package/dist/blob/vue.js +2 -0
- package/dist/blob-D9v5Djxw.d.ts +7 -0
- package/dist/browser/actions.d.ts +1 -0
- package/dist/browser/actions.js +2 -0
- package/dist/channels/server.d.ts +1 -0
- package/dist/channels/server.js +2 -0
- package/dist/channels.d.ts +1 -0
- package/dist/channels.js +2 -0
- package/dist/cloudflare-env-CIZCKabz.js +70 -0
- package/dist/cloudflare-prerender.mjs +24 -0
- package/dist/cloudflare-types.d.ts +1 -0
- package/dist/comments/anchor.d.ts +1 -0
- package/dist/comments/anchor.js +2 -0
- package/dist/comments/client.d.ts +1 -0
- package/dist/comments/client.js +2 -0
- package/dist/comments/database/postgres.d.ts +1 -0
- package/dist/comments/database/postgres.js +2 -0
- package/dist/comments/database.d.ts +1 -0
- package/dist/comments/database.js +2 -0
- package/dist/comments/realtime.d.ts +1 -0
- package/dist/comments/realtime.js +2 -0
- package/dist/comments/rpc.d.ts +1 -0
- package/dist/comments/rpc.js +2 -0
- package/dist/comments/runtime/auth.d.ts +1 -0
- package/dist/comments/runtime/auth.js +2 -0
- package/dist/comments/runtime.d.ts +1 -0
- package/dist/comments/runtime.js +2 -0
- package/dist/comments/server.d.ts +1 -0
- package/dist/comments/server.js +2 -0
- package/dist/comments-overlay/loader.BcGn0Hsk.js +1 -0
- package/dist/comments-overlay/overlay.D7vmaSrE.js +2 -0
- package/dist/comments.d.ts +1 -0
- package/dist/comments.js +2 -0
- package/dist/connections/agent.d.ts +1 -0
- package/dist/connections/agent.js +2 -0
- package/dist/connections/chatgpt.d.ts +1 -0
- package/dist/connections/chatgpt.js +2 -0
- package/dist/connections/google.d.ts +1 -0
- package/dist/connections/google.js +2 -0
- package/dist/connections/http.d.ts +1 -0
- package/dist/connections/http.js +2 -0
- package/dist/connections/server.d.ts +1 -0
- package/dist/connections/server.js +2 -0
- package/dist/connections.d.ts +1 -0
- package/dist/connections.js +2 -0
- package/dist/console/auth-client.d.ts +8 -0
- package/dist/console/auth-client.js +6 -0
- package/dist/console/auth-cloudflare-access.d.ts +2 -0
- package/dist/console/auth-cloudflare-access.js +116 -0
- package/dist/console/auth-inline.d.ts +6 -0
- package/dist/console/auth-inline.js +107 -0
- package/dist/console/auth.d.ts +2 -0
- package/dist/console/auth.js +2 -0
- package/dist/console/runtime/client/appearance.d.ts +62 -0
- package/dist/console/runtime/client/appearance.js +87 -0
- package/dist/console/runtime/client/auth-management.ts +81 -0
- package/dist/console/runtime/client/blob-media.d.ts +46 -0
- package/dist/console/runtime/client/blob-media.js +257 -0
- package/dist/console/runtime/client/build.d.ts +14 -0
- package/dist/console/runtime/client/build.js +68 -0
- package/dist/console/runtime/client/connections-management.d.ts +68 -0
- package/dist/console/runtime/client/connections-management.js +201 -0
- package/dist/console/runtime/client/documents.d.ts +430 -0
- package/dist/console/runtime/client/documents.js +501 -0
- package/dist/console/runtime/client/editor.d.ts +82 -0
- package/dist/console/runtime/client/editor.js +248 -0
- package/dist/console/runtime/client/env-groups.d.ts +28 -0
- package/dist/console/runtime/client/env-groups.js +39 -0
- package/dist/console/runtime/client/env-management.d.ts +20 -0
- package/dist/console/runtime/client/env-management.js +84 -0
- package/dist/console/runtime/client/env-status.d.ts +6 -0
- package/dist/console/runtime/client/env-status.js +10 -0
- package/dist/console/runtime/client/format.d.ts +32 -0
- package/dist/console/runtime/client/format.js +109 -0
- package/dist/console/runtime/client/invocation-deletion.d.ts +17 -0
- package/dist/console/runtime/client/invocation-deletion.js +25 -0
- package/dist/console/runtime/client/invocation.d.ts +28 -0
- package/dist/console/runtime/client/invocation.js +81 -0
- package/dist/console/runtime/client/live.d.ts +69 -0
- package/dist/console/runtime/client/live.js +165 -0
- package/dist/console/runtime/client/mcp.d.ts +9 -0
- package/dist/console/runtime/client/mcp.js +14 -0
- package/dist/console/runtime/client/media-library.d.ts +207 -0
- package/dist/console/runtime/client/media-library.js +243 -0
- package/dist/console/runtime/client/media-uploads.d.ts +33 -0
- package/dist/console/runtime/client/media-uploads.js +97 -0
- package/dist/console/runtime/client/media.d.ts +73 -0
- package/dist/console/runtime/client/media.js +13 -0
- package/dist/console/runtime/client/operation-view.d.ts +17 -0
- package/dist/console/runtime/client/operation-view.js +85 -0
- package/dist/console/runtime/client/presence.d.ts +102 -0
- package/dist/console/runtime/client/presence.js +269 -0
- package/dist/console/runtime/client/preview.d.ts +78 -0
- package/dist/console/runtime/client/preview.js +115 -0
- package/dist/console/runtime/client/problem.d.ts +19 -0
- package/dist/console/runtime/client/problem.js +59 -0
- package/dist/console/runtime/client/publish.d.ts +12 -0
- package/dist/console/runtime/client/publish.js +18 -0
- package/dist/console/runtime/client/rate-limit.d.ts +36 -0
- package/dist/console/runtime/client/rate-limit.js +96 -0
- package/dist/console/runtime/client/read-only.d.ts +9 -0
- package/dist/console/runtime/client/read-only.js +12 -0
- package/dist/console/runtime/client/request.d.ts +76 -0
- package/dist/console/runtime/client/request.js +471 -0
- package/dist/console/runtime/client/schedule-run.d.ts +13 -0
- package/dist/console/runtime/client/schedule-run.js +47 -0
- package/dist/console/runtime/client/schema-form.d.ts +2 -0
- package/dist/console/runtime/client/schema-form.js +296 -0
- package/dist/console/runtime/client/sections.d.ts +26 -0
- package/dist/console/runtime/client/sections.js +84 -0
- package/dist/console/runtime/client/sign-in.d.ts +21 -0
- package/dist/console/runtime/client/sign-in.js +16 -0
- package/dist/console/runtime/client/time.d.ts +30 -0
- package/dist/console/runtime/client/time.js +106 -0
- package/dist/console/runtime/client/toast.d.ts +39 -0
- package/dist/console/runtime/client/toast.js +35 -0
- package/dist/console/runtime/client/workflow.d.ts +20 -0
- package/dist/console/runtime/client/workflow.js +79 -0
- package/dist/console/runtime/components/console-agent-list.ts +61 -0
- package/dist/console/runtime/components/console-app.vue +1755 -0
- package/dist/console/runtime/components/console-auth-action.vue +239 -0
- package/dist/console/runtime/components/console-auth-activity.vue +166 -0
- package/dist/console/runtime/components/console-auth-chart.vue +102 -0
- package/dist/console/runtime/components/console-auth-detail.vue +406 -0
- package/dist/console/runtime/components/console-auth-event-list.vue +79 -0
- package/dist/console/runtime/components/console-auth-event-setup.vue +39 -0
- package/dist/console/runtime/components/console-auth-overview.vue +107 -0
- package/dist/console/runtime/components/console-auth-user-events.vue +65 -0
- package/dist/console/runtime/components/console-auth.vue +649 -0
- package/dist/console/runtime/components/console-blob-detail.vue +93 -0
- package/dist/console/runtime/components/console-blob.vue +146 -0
- package/dist/console/runtime/components/console-comark-component.vue +108 -0
- package/dist/console/runtime/components/console-connect-agent.vue +59 -0
- package/dist/console/runtime/components/console-connection-state.vue +43 -0
- package/dist/console/runtime/components/console-connection.ts +18 -0
- package/dist/console/runtime/components/console-connections-activity.vue +76 -0
- package/dist/console/runtime/components/console-connections-approvals.vue +169 -0
- package/dist/console/runtime/components/console-connections-details.vue +295 -0
- package/dist/console/runtime/components/console-connections.vue +296 -0
- package/dist/console/runtime/components/console-database-model.ts +264 -0
- package/dist/console/runtime/components/console-database.vue +634 -0
- package/dist/console/runtime/components/console-definitions.vue +506 -0
- package/dist/console/runtime/components/console-document-dashboard.vue +492 -0
- package/dist/console/runtime/components/console-document-diff.vue +43 -0
- package/dist/console/runtime/components/console-document-editor.vue +2605 -0
- package/dist/console/runtime/components/console-document-history.vue +118 -0
- package/dist/console/runtime/components/console-document-list.vue +577 -0
- package/dist/console/runtime/components/console-document-preview.vue +422 -0
- package/dist/console/runtime/components/console-document-settings.vue +108 -0
- package/dist/console/runtime/components/console-documents.vue +480 -0
- package/dist/console/runtime/components/console-env-access.vue +151 -0
- package/dist/console/runtime/components/console-env-activity.vue +89 -0
- package/dist/console/runtime/components/console-env-details.vue +68 -0
- package/dist/console/runtime/components/console-env-managed.vue +203 -0
- package/dist/console/runtime/components/console-env.vue +301 -0
- package/dist/console/runtime/components/console-frame.vue +255 -0
- package/dist/console/runtime/components/console-home.vue +627 -0
- package/dist/console/runtime/components/console-invocation-composer.vue +159 -0
- package/dist/console/runtime/components/console-kv.vue +537 -0
- package/dist/console/runtime/components/console-loading.vue +28 -0
- package/dist/console/runtime/components/console-mark.vue +5 -0
- package/dist/console/runtime/components/console-markdown-editor.vue +705 -0
- package/dist/console/runtime/components/console-media-browser.vue +986 -0
- package/dist/console/runtime/components/console-media-crops.vue +167 -0
- package/dist/console/runtime/components/console-media-detail.vue +282 -0
- package/dist/console/runtime/components/console-media-dialog.vue +74 -0
- package/dist/console/runtime/components/console-media-field.vue +185 -0
- package/dist/console/runtime/components/console-media-focal.vue +137 -0
- package/dist/console/runtime/components/console-media-library.vue +125 -0
- package/dist/console/runtime/components/console-media-move.vue +160 -0
- package/dist/console/runtime/components/console-media-picker.vue +167 -0
- package/dist/console/runtime/components/console-media-uploads.vue +72 -0
- package/dist/console/runtime/components/console-new-chat.ts +27 -0
- package/dist/console/runtime/components/console-operation-view.vue +114 -0
- package/dist/console/runtime/components/console-page-header.vue +50 -0
- package/dist/console/runtime/components/console-page-toolbar.vue +28 -0
- package/dist/console/runtime/components/console-presence-avatars.vue +73 -0
- package/dist/console/runtime/components/console-property-list.vue +36 -0
- package/dist/console/runtime/components/console-property-row.vue +58 -0
- package/dist/console/runtime/components/console-rail.vue +392 -0
- package/dist/console/runtime/components/console-rate-limit.vue +167 -0
- package/dist/console/runtime/components/console-relative-time.vue +74 -0
- package/dist/console/runtime/components/console-schema-field.vue +504 -0
- package/dist/console/runtime/components/console-schema-form.vue +77 -0
- package/dist/console/runtime/components/console-schema-list.vue +158 -0
- package/dist/console/runtime/components/console-search.vue +851 -0
- package/dist/console/runtime/components/console-section-icon.vue +21 -0
- package/dist/console/runtime/components/console-seo-panel.vue +261 -0
- package/dist/console/runtime/components/console-session-actions.vue +160 -0
- package/dist/console/runtime/components/console-session-bootstrap.ts +112 -0
- package/dist/console/runtime/components/console-session-cancel.vue +90 -0
- package/dist/console/runtime/components/console-session-code-language.ts +32 -0
- package/dist/console/runtime/components/console-session-code-preview.vue +94 -0
- package/dist/console/runtime/components/console-session-inspector.vue +763 -0
- package/dist/console/runtime/components/console-session-loading.vue +116 -0
- package/dist/console/runtime/components/console-session-navbar.vue +159 -0
- package/dist/console/runtime/components/console-session-trace-model.ts +414 -0
- package/dist/console/runtime/components/console-session-trace.vue +693 -0
- package/dist/console/runtime/components/console-session.css +1745 -0
- package/dist/console/runtime/components/console-setup-hint.vue +20 -0
- package/dist/console/runtime/components/console-state.vue +165 -0
- package/dist/console/runtime/components/console-status.vue +25 -0
- package/dist/console/runtime/components/console-toaster.vue +66 -0
- package/dist/console/runtime/components/console-usage-chart.vue +208 -0
- package/dist/console/runtime/components/console-usage-model-detail.vue +144 -0
- package/dist/console/runtime/components/console-usage-model.ts +368 -0
- package/dist/console/runtime/components/console-usage-share-bar.vue +48 -0
- package/dist/console/runtime/components/console-usage.vue +879 -0
- package/dist/console/runtime/components/console-value.vue +35 -0
- package/dist/console/runtime/components/console-workflow-actions.vue +183 -0
- package/dist/console/runtime/components/console-workspace-file.ts +12 -0
- package/dist/console/runtime/components/console-workspace-history.vue +77 -0
- package/dist/console/runtime/components/console-wrap.ts +10 -0
- package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +166 -0
- package/dist/console/runtime/components/invocation/agent-invocation-list.ts +276 -0
- package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +120 -0
- package/dist/console/runtime/components/invocation/agent-invocation.ts +1968 -0
- package/dist/console/runtime/components/invocation/index.ts +8 -0
- package/dist/console/runtime/components/invocation/internal/brand-icons.ts +65 -0
- package/dist/console/runtime/components/invocation/internal/channel-icon.ts +51 -0
- package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +663 -0
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +148 -0
- package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +162 -0
- package/dist/console/runtime/components/invocation/internal/payload-text.ts +29 -0
- package/dist/console/runtime/components/invocation/internal/runtime-type.ts +61 -0
- package/dist/console/runtime/components/invocation/internal/url.ts +8 -0
- package/dist/console/runtime/components/invocation/invocation-display.ts +56 -0
- package/dist/console/runtime/components/invocation/invocation.css +2748 -0
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +1 -0
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +1 -0
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +1 -0
- package/dist/console/runtime/components/invocation/types.ts +89 -0
- package/dist/console/runtime/console-route.d.ts +16 -0
- package/dist/console/runtime/console-route.js +49 -0
- package/dist/console/runtime/definitions.d.ts +2 -0
- package/dist/console/runtime/definitions.js +294 -0
- package/dist/console/runtime/page/loader.js +22 -0
- package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +1 -0
- package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +1 -0
- package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +1 -0
- package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +1 -0
- package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +1 -0
- package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +1 -0
- package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +1 -0
- package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +1 -0
- package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +1 -0
- package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +111 -0
- package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +1 -0
- package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +1 -0
- package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +1 -0
- package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +1 -0
- package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +1 -0
- package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +1 -0
- package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +1 -0
- package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +1 -0
- package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +1 -0
- package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +1 -0
- package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +1 -0
- package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +4 -0
- package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +1 -0
- package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +1 -0
- package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +1 -0
- package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +1 -0
- package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +1 -0
- package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +1 -0
- package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +1 -0
- package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +1 -0
- package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +1 -0
- package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +1 -0
- package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +1 -0
- package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +1 -0
- package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +1 -0
- package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +1 -0
- package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +1 -0
- package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +1 -0
- package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +1 -0
- package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +1 -0
- package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +1 -0
- package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +1 -0
- package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +1 -0
- package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +1 -0
- package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +1 -0
- package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +1 -0
- package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +1 -0
- package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +1 -0
- package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +1 -0
- package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +1 -0
- package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +1 -0
- package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +1 -0
- package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +1 -0
- package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +1 -0
- package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +1 -0
- package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +1 -0
- package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +1 -0
- package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +1 -0
- package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +2 -0
- package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +1 -0
- package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +1 -0
- package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +85 -0
- package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +2 -0
- package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +6 -0
- package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +314 -0
- package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +2 -0
- package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +5 -0
- package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +1 -0
- package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +12 -0
- package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +1 -0
- package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +1 -0
- package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +1 -0
- package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +1 -0
- package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +1 -0
- package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +1 -0
- package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +1 -0
- package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +1 -0
- package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +1 -0
- package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +1 -0
- package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +1 -0
- package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +1 -0
- package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +1 -0
- package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +1 -0
- package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +1 -0
- package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +1 -0
- package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +1 -0
- package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +1 -0
- package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +1 -0
- package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +1 -0
- package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +1 -0
- package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +1 -0
- package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +1 -0
- package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +1 -0
- package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +1 -0
- package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +141 -0
- package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +1 -0
- package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +1 -0
- package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +1 -0
- package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +1 -0
- package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +1 -0
- package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +1 -0
- package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +1266 -0
- package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +1 -0
- package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +1 -0
- package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +1 -0
- package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +1 -0
- package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +1 -0
- package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +1 -0
- package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +1 -0
- package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +1 -0
- package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +1 -0
- package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +1 -0
- package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +1 -0
- package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +1 -0
- package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +1 -0
- package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +1 -0
- package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +1 -0
- package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +1 -0
- package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +1 -0
- package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +1 -0
- package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +1 -0
- package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +1 -0
- package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +1 -0
- package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +1 -0
- package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +1 -0
- package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +1 -0
- package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +1 -0
- package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +1 -0
- package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +1 -0
- package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +1 -0
- package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +1 -0
- package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +1 -0
- package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +1 -0
- package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +1 -0
- package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +1 -0
- package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +1 -0
- package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +1 -0
- package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +1 -0
- package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +1 -0
- package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +1 -0
- package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +1 -0
- package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +1 -0
- package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +1 -0
- package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +1 -0
- package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +1 -0
- package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +1 -0
- package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +1 -0
- package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +257 -0
- package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +1 -0
- package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +1 -0
- package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +1 -0
- package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +1 -0
- package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +1 -0
- package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +1 -0
- package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +1 -0
- package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +1 -0
- package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +1 -0
- package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +1 -0
- package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +1 -0
- package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +1 -0
- package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +1 -0
- package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +1 -0
- package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +1 -0
- package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +1 -0
- package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +1 -0
- package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +1 -0
- package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +1 -0
- package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +1 -0
- package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +1 -0
- package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +1 -0
- package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +1 -0
- package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +1 -0
- package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +1 -0
- package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +1 -0
- package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +1 -0
- package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +1 -0
- package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +1 -0
- package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +1 -0
- package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +1 -0
- package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +1 -0
- package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +1 -0
- package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +1 -0
- package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +1 -0
- package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +1 -0
- package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +1 -0
- package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +1 -0
- package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +1 -0
- package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +1 -0
- package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +1 -0
- package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +1 -0
- package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +1 -0
- package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +168 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +1 -0
- package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +1 -0
- package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +1 -0
- package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +1 -0
- package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +1 -0
- package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +1 -0
- package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +1 -0
- package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +1 -0
- package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +1 -0
- package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +1 -0
- package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +1 -0
- package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +1 -0
- package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +1 -0
- package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +1 -0
- package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +1 -0
- package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +1 -0
- package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +1 -0
- package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +1 -0
- package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +1 -0
- package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +1 -0
- package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +1 -0
- package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +1 -0
- package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +1 -0
- package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +1 -0
- package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +1 -0
- package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +1 -0
- package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +1 -0
- package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +1 -0
- package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +1 -0
- package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +1 -0
- package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +1 -0
- package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +1 -0
- package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +1 -0
- package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +1 -0
- package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +1 -0
- package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +1 -0
- package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +1 -0
- package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +1 -0
- package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +1 -0
- package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +1 -0
- package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +1 -0
- package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +8 -0
- package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +1 -0
- package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +1 -0
- package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +1 -0
- package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +1 -0
- package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +1 -0
- package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +1 -0
- package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +1 -0
- package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +1 -0
- package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +1 -0
- package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +1 -0
- package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +1 -0
- package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +1 -0
- package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +1 -0
- package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +1 -0
- package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +1 -0
- package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +1 -0
- package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +1 -0
- package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +1 -0
- package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +1 -0
- package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +1 -0
- package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +1 -0
- package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +1 -0
- package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +1 -0
- package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +1 -0
- package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +1 -0
- package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +1 -0
- package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +1 -0
- package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +1 -0
- package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +1 -0
- package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +1 -0
- package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +1 -0
- package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +1 -0
- package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +1 -0
- package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +4 -0
- package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +1 -0
- package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +3 -0
- package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +1 -0
- package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +1 -0
- package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +1 -0
- package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +1 -0
- package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +3 -0
- package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +1 -0
- package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +4 -0
- package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +1 -0
- package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +1 -0
- package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +1 -0
- package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +1 -0
- package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +1 -0
- package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +1 -0
- package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +1 -0
- package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +1 -0
- package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +1 -0
- package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +1 -0
- package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +1 -0
- package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +1 -0
- package/dist/console/runtime/public/console/console-QjK_HKoM.css +2 -0
- package/dist/console/runtime/public/console/console-j0_7kmR5.js +21 -0
- package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +1 -0
- package/dist/console/runtime/public/skills/index.json +46 -0
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +88 -0
- package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +4 -0
- package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +36 -0
- package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +30 -0
- package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +26 -0
- package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +29 -0
- package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +36 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +16 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +17 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +16 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +16 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +19 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/project-patterns.md +19 -0
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +61 -0
- package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +29 -0
- package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +17 -0
- package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
- package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +39 -0
- package/dist/console/runtime/public/skills/vitehub/references/workspaces-sources-access.md +26 -0
- package/dist/console/runtime/rpc.d.ts +36 -0
- package/dist/console/runtime/rpc.js +4 -0
- package/dist/console/runtime/sections.d.ts +2 -0
- package/dist/console/runtime/sections.js +351 -0
- package/dist/console/runtime/server/agents.get.d.ts +17 -0
- package/dist/console/runtime/server/agents.get.js +23 -0
- package/dist/console/runtime/server/auth-manage.d.ts +7 -0
- package/dist/console/runtime/server/auth-manage.js +155 -0
- package/dist/console/runtime/server/blob.d.ts +2 -0
- package/dist/console/runtime/server/blob.js +19 -0
- package/dist/console/runtime/server/channel-replay.d.ts +11 -0
- package/dist/console/runtime/server/channel-replay.js +80 -0
- package/dist/console/runtime/server/client.get.d.ts +3 -0
- package/dist/console/runtime/server/client.get.js +11 -0
- package/dist/console/runtime/server/database.d.ts +2 -0
- package/dist/console/runtime/server/database.get.d.ts +70 -0
- package/dist/console/runtime/server/database.get.js +223 -0
- package/dist/console/runtime/server/database.js +18 -0
- package/dist/console/runtime/server/definitions.d.ts +2 -0
- package/dist/console/runtime/server/definitions.get.d.ts +11 -0
- package/dist/console/runtime/server/definitions.get.js +70 -0
- package/dist/console/runtime/server/definitions.js +97 -0
- package/dist/console/runtime/server/documents.d.ts +2 -0
- package/dist/console/runtime/server/documents.js +111 -0
- package/dist/console/runtime/server/env-manage.d.ts +5 -0
- package/dist/console/runtime/server/env-manage.js +10 -0
- package/dist/console/runtime/server/env.d.ts +18 -0
- package/dist/console/runtime/server/env.get.d.ts +9 -0
- package/dist/console/runtime/server/env.get.js +29 -0
- package/dist/console/runtime/server/env.js +42 -0
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +10 -0
- package/dist/console/runtime/server/invocation-capabilities.get.js +22 -0
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +42 -0
- package/dist/console/runtime/server/invocation-workspace.get.js +243 -0
- package/dist/console/runtime/server/invocation.get.d.ts +47 -0
- package/dist/console/runtime/server/invocation.get.js +153 -0
- package/dist/console/runtime/server/invocations.get.d.ts +8 -0
- package/dist/console/runtime/server/invocations.get.js +227 -0
- package/dist/console/runtime/server/logs.get.d.ts +13 -0
- package/dist/console/runtime/server/logs.get.js +45 -0
- package/dist/console/runtime/server/mcp-authorization-server.d.ts +11 -0
- package/dist/console/runtime/server/mcp-authorization-server.js +71 -0
- package/dist/console/runtime/server/mcp-discovery.d.ts +7 -0
- package/dist/console/runtime/server/mcp-discovery.js +20 -0
- package/dist/console/runtime/server/mcp-metadata.d.ts +11 -0
- package/dist/console/runtime/server/mcp-metadata.js +54 -0
- package/dist/console/runtime/server/mcp.d.ts +16 -0
- package/dist/console/runtime/server/mcp.js +364 -0
- package/dist/console/runtime/server/page-session.d.ts +2 -0
- package/dist/console/runtime/server/page-session.js +5 -0
- package/dist/console/runtime/server/page.get.d.ts +4 -0
- package/dist/console/runtime/server/page.get.js +49 -0
- package/dist/console/runtime/server/rpc.d.ts +22 -0
- package/dist/console/runtime/server/rpc.js +215 -0
- package/dist/console/runtime/server/schedule-run.d.ts +36 -0
- package/dist/console/runtime/server/schedule-run.js +213 -0
- package/dist/console/runtime/server/search.get.d.ts +9 -0
- package/dist/console/runtime/server/search.get.js +103 -0
- package/dist/console/runtime/server/sections.d.ts +4 -0
- package/dist/console/runtime/server/sections.get.d.ts +22 -0
- package/dist/console/runtime/server/sections.get.js +27 -0
- package/dist/console/runtime/server/sections.js +4 -0
- package/dist/console/runtime/server/sign-in.d.ts +5 -0
- package/dist/console/runtime/server/sign-in.js +11 -0
- package/dist/console/runtime/server/status.get.d.ts +13 -0
- package/dist/console/runtime/server/status.get.js +40 -0
- package/dist/console/runtime/server/usage.get.d.ts +7 -0
- package/dist/console/runtime/server/usage.get.js +99 -0
- package/dist/console/server.d.ts +22 -0
- package/dist/console/server.js +34 -0
- package/dist/console/ui.d.ts +201 -0
- package/dist/console/ui.js +3215 -0
- package/dist/console.d.ts +5 -0
- package/dist/console.js +4 -0
- package/dist/content/client.d.ts +1 -0
- package/dist/content/client.js +2 -0
- package/dist/content/database.d.ts +1 -0
- package/dist/content/database.js +2 -0
- package/dist/content/editor.d.ts +1 -0
- package/dist/content/editor.js +2 -0
- package/dist/content/presets/cms.d.ts +2 -0
- package/dist/content/presets/cms.js +2 -0
- package/dist/content/realtime.d.ts +1 -0
- package/dist/content/realtime.js +2 -0
- package/dist/content.d.ts +2 -0
- package/dist/content.js +3 -0
- package/dist/database-DLPk6HVu.d.ts +7 -0
- package/dist/database-hyYo7JVD.d.ts +11 -0
- package/dist/definitions-BJGSpYGa.d.ts +209 -0
- package/dist/definitions-Y0pIwSQm.d.ts +19 -0
- package/dist/diagnostics-YTWM3K3t.js +74 -0
- package/dist/diagnostics-lT85pbVx.d.ts +6 -0
- package/dist/doctor.d.ts +8 -0
- package/dist/doctor.js +417 -0
- package/dist/document-metadata-nXusaMSq.js +6 -0
- package/dist/documents-BRt3-fIu.d.ts +72 -0
- package/dist/env/auth.d.ts +1 -0
- package/dist/env/auth.js +2 -0
- package/dist/env/bridge.d.ts +1 -0
- package/dist/env/bridge.js +2 -0
- package/dist/env/database.d.ts +1 -0
- package/dist/env/database.js +2 -0
- package/dist/env/http.d.ts +1 -0
- package/dist/env/http.js +2 -0
- package/dist/env/provider.d.ts +1 -0
- package/dist/env/provider.js +2 -0
- package/dist/env/seal.d.ts +1 -0
- package/dist/env/seal.js +2 -0
- package/dist/env.d.ts +1 -0
- package/dist/error-diagnostics-n7V-_SPy.js +160 -0
- package/dist/error-diagnostics.ts +162 -0
- package/dist/gateways.d.ts +1 -0
- package/dist/gateways.js +2 -0
- package/dist/h3-v1-request-DDGXJ9E7.js +166 -0
- package/dist/index-CWk5rJOo.d.ts +247 -0
- package/dist/index.d.ts +3 -44
- package/dist/index.js +1 -1
- package/dist/internal-Ca7DYHpa.js +311 -0
- package/dist/internal-VvXn0bX4.d.ts +25 -0
- package/dist/invocations-DkjhdkpT.js +1151 -0
- package/dist/invocations-TvN9ux06.d.ts +47 -0
- package/dist/logs/host.d.ts +6 -0
- package/dist/logs/host.js +16 -0
- package/dist/logs/memory.d.ts +18 -0
- package/dist/logs/memory.js +85 -0
- package/dist/logs/source.d.ts +57 -0
- package/dist/logs/source.js +57 -0
- package/dist/logs.d.ts +4 -0
- package/dist/logs.js +4 -0
- package/dist/loopback-DAr1IFQP.js +43 -0
- package/dist/markdown-template/file.d.ts +1 -0
- package/dist/markdown-template/file.js +2 -0
- package/dist/media-BBybn3NP.js +512 -0
- package/dist/nuxt.d.ts +15 -14
- package/dist/nuxt.js +1156 -25
- package/dist/operation-contributions-BXHKgT_w.d.ts +18 -0
- package/dist/operations-4uDh4zah.js +38 -0
- package/dist/operations-7RHOMAHT.js +455 -0
- package/dist/operations-Bgklf9hM.d.ts +149 -0
- package/dist/operations-CwqEItfA.js +468 -0
- package/dist/operations.d.ts +2 -0
- package/dist/operations.js +2 -0
- package/dist/owned-paths-BnjT0FhU.js +15 -0
- package/dist/package-BsfDnNm8.js +1119 -0
- package/dist/page-tools-B3g4CQ5c.js +402 -0
- package/dist/page-tools-C5dufxVz.d.ts +16 -0
- package/dist/page-tools-shared-D-amu6sx.js +53 -0
- package/dist/presets/babysitter/server.d.ts +1 -0
- package/dist/presets/babysitter/server.js +2 -0
- package/dist/presets/babysitter.d.ts +1 -0
- package/dist/presets/babysitter.js +2 -0
- package/dist/presets/labeller.d.ts +1 -0
- package/dist/presets/labeller.js +2 -0
- package/dist/presets/workspace.d.ts +2 -0
- package/dist/presets/workspace.js +2 -0
- package/dist/project-registry-BT7RcCcQ.js +39 -0
- package/dist/realtime/server.d.ts +1 -0
- package/dist/realtime/server.js +2 -0
- package/dist/realtime/vue.d.ts +1 -0
- package/dist/realtime/vue.js +2 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +2 -0
- package/dist/registry-dSdI2Oa3.js +142 -0
- package/dist/request-BT6g-Fwf.js +326 -0
- package/dist/request-DOvvVgpI.d.ts +52 -0
- package/dist/retention-DBXuVtQL.js +257 -0
- package/dist/rolldown-runtime-8H4AJuhK.js +14 -0
- package/dist/runtime/h3.d.ts +2 -0
- package/dist/runtime/h3.js +2 -0
- package/dist/runtime/node.d.ts +1 -0
- package/dist/runtime/node.js +2 -0
- package/dist/runtime-DPqC3MTX.js +60 -0
- package/dist/sandbox/ssh.d.ts +1 -0
- package/dist/sandbox/ssh.js +2 -0
- package/dist/sandbox/task.d.ts +1 -0
- package/dist/sandbox/task.js +2 -0
- package/dist/scan-module-TmHMoGKw.js +148 -0
- package/dist/schedule/runtime/kv.d.ts +1 -0
- package/dist/schedule/runtime/kv.js +2 -0
- package/dist/schema-form-C-fy3xaU.d.ts +79 -0
- package/dist/secret-DrgWMRms.js +47 -0
- package/dist/sections-BVtKNenQ.js +108 -0
- package/dist/sections-C985LlW2.d.ts +31 -0
- package/dist/sections-Drj-o4_z.d.ts +141 -0
- package/dist/source/client.d.ts +1 -0
- package/dist/source/client.js +2 -0
- package/dist/source/file.d.ts +1 -0
- package/dist/source/file.js +2 -0
- package/dist/source/files.d.ts +1 -0
- package/dist/source/files.js +2 -0
- package/dist/source/github.d.ts +1 -0
- package/dist/source/github.js +2 -0
- package/dist/source/glob.d.ts +1 -0
- package/dist/source/glob.js +2 -0
- package/dist/source/markdown.d.ts +1 -0
- package/dist/source/markdown.js +2 -0
- package/dist/source/mcp.d.ts +1 -0
- package/dist/source/mcp.js +2 -0
- package/dist/source/server.d.ts +1 -0
- package/dist/source/server.js +2 -0
- package/dist/source/vite.d.ts +7 -0
- package/dist/source/vite.js +20 -0
- package/dist/source.d.ts +2 -1
- package/dist/source.js +1 -0
- package/dist/src-CaqWiza-.js +7910 -0
- package/dist/task.d.ts +3 -0
- package/dist/task.js +2 -0
- package/dist/types-BsuwNk3q.js +256 -0
- package/dist/ui/attachment.d.ts +1 -0
- package/dist/ui/attachment.js +2 -0
- package/dist/ui/avatar-stack.d.ts +1 -0
- package/dist/ui/avatar-stack.js +2 -0
- package/dist/ui/bubble.d.ts +1 -0
- package/dist/ui/bubble.js +2 -0
- package/dist/ui/chat-message.d.ts +1 -0
- package/dist/ui/chat-message.js +2 -0
- package/dist/ui/chat-session.d.ts +1 -0
- package/dist/ui/chat-session.js +2 -0
- package/dist/ui/chat.d.ts +1 -0
- package/dist/ui/chat.js +2 -0
- package/dist/ui/code-block.d.ts +1 -0
- package/dist/ui/code-block.js +2 -0
- package/dist/ui/code-view.d.ts +1 -0
- package/dist/ui/code-view.js +2 -0
- package/dist/ui/comments.d.ts +1 -0
- package/dist/ui/comments.js +2 -0
- package/dist/ui/connection-status.d.ts +1 -0
- package/dist/ui/connection-status.js +2 -0
- package/dist/ui/file-diff.d.ts +1 -0
- package/dist/ui/file-diff.js +2 -0
- package/dist/ui/file-tree.d.ts +1 -0
- package/dist/ui/file-tree.js +2 -0
- package/dist/ui/file-view.d.ts +1 -0
- package/dist/ui/file-view.js +2 -0
- package/dist/ui/headless.d.ts +1 -0
- package/dist/ui/headless.js +2 -0
- package/dist/ui/markdown.d.ts +1 -0
- package/dist/ui/markdown.js +2 -0
- package/dist/ui/marker.d.ts +1 -0
- package/dist/ui/marker.js +2 -0
- package/dist/ui/message-parts.d.ts +1 -0
- package/dist/ui/message-parts.js +2 -0
- package/dist/ui/message.d.ts +1 -0
- package/dist/ui/message.js +2 -0
- package/dist/ui/multi-file-diff.d.ts +1 -0
- package/dist/ui/multi-file-diff.js +2 -0
- package/dist/ui/nuxt.d.ts +3 -0
- package/dist/ui/nuxt.js +3 -0
- package/dist/ui/patch-diff.d.ts +1 -0
- package/dist/ui/patch-diff.js +2 -0
- package/dist/ui/prompt-input.d.ts +1 -0
- package/dist/ui/prompt-input.js +2 -0
- package/dist/ui/styles.css +2662 -0
- package/dist/ui/sync-status.d.ts +1 -0
- package/dist/ui/sync-status.js +2 -0
- package/dist/ui/tool-list.d.ts +1 -0
- package/dist/ui/tool-list.js +2 -0
- package/dist/ui/trace-run.d.ts +1 -0
- package/dist/ui/trace-run.js +2 -0
- package/dist/ui/trace.d.ts +1 -0
- package/dist/ui/trace.js +2 -0
- package/dist/ui/unresolved-file.d.ts +1 -0
- package/dist/ui/unresolved-file.js +2 -0
- package/dist/ui/vite.d.ts +3 -0
- package/dist/ui/vite.js +3 -0
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +2 -0
- package/dist/usage-CoQXs5nW.d.ts +22 -0
- package/dist/workspace/blob-database.d.ts +1 -0
- package/dist/workspace/blob-database.js +2 -0
- package/package.json +1356 -139
- package/dist/_internal/sandbox/runtime/state.d.ts +0 -1
- package/dist/_internal/sandbox/runtime/state.js +0 -2
- package/dist/_internal/schedule/runtime/driver.d.ts +0 -1
- package/dist/_internal/schedule/runtime/driver.js +0 -2
- package/dist/agent/harness/local-sandbox.d.ts +0 -1
- package/dist/agent/harness/local-sandbox.js +0 -2
- package/dist/box.d.ts +0 -1
- package/dist/box.js +0 -2
- package/dist/email/drivers/smtp.d.ts +0 -1
- package/dist/email/drivers/smtp.js +0 -2
- package/dist/schedule/runtime/driver.d.ts +0 -1
- package/dist/schedule/runtime/driver.js +0 -2
- package/dist/shell/providers/cloudflare.d.ts +0 -1
- package/dist/shell/providers/cloudflare.js +0 -2
- package/dist/src-o6zB-soj.js +0 -1135
- package/dist/workspace/collections/client.d.ts +0 -1
- package/dist/workspace/collections/client.js +0 -2
- package/dist/workspace/collections.d.ts +0 -1
- package/dist/workspace/collections.js +0 -2
- package/dist/workspace/publish.d.ts +0 -1
- package/dist/workspace/publish.js +0 -2
|
@@ -0,0 +1,1968 @@
|
|
|
1
|
+
import { useIntervalFn, useMounted, useNow } from "@vueuse/core";
|
|
2
|
+
import { channelIcon } from "./internal/channel-icon.ts";
|
|
3
|
+
import { invocationBrand, invocationBrandMark, invocationModelMaker } from "./internal/invocation-brand.ts";
|
|
4
|
+
import { computed, defineAsyncComponent, defineComponent, getCurrentInstance, h, nextTick, onBeforeUnmount, ref, useId, type PropType, type DefineComponent, type ComponentOptionsMixin, Suspense, watch } from "vue";
|
|
5
|
+
import type { AgentInvocationConfiguration, AgentInvocationView } from "./types.ts";
|
|
6
|
+
import {
|
|
7
|
+
agentInvocationContext,
|
|
8
|
+
agentInvocationExternalUrl,
|
|
9
|
+
agentInvocationProject,
|
|
10
|
+
agentInvocationTitle,
|
|
11
|
+
} from "./invocation-display.ts";
|
|
12
|
+
import {
|
|
13
|
+
agentConfigurationSummary,
|
|
14
|
+
channelDeliverySummary,
|
|
15
|
+
invocationActivities,
|
|
16
|
+
invocationActivityTitle,
|
|
17
|
+
invocationToolUsage,
|
|
18
|
+
latestInvocationTokens,
|
|
19
|
+
stringAttribute,
|
|
20
|
+
terminalText,
|
|
21
|
+
type InvocationActivity,
|
|
22
|
+
invocationActivityDetail,
|
|
23
|
+
} from "./internal/invocation-activity.ts";
|
|
24
|
+
import { AgentInvocationTimeline, invocationTimeline } from "./agent-invocation-timeline.ts";
|
|
25
|
+
|
|
26
|
+
export { invocationActivities } from "./internal/invocation-activity.ts";
|
|
27
|
+
import { buildInvocationConversation, type InvocationConversation } from "./internal/invocation-conversation.ts";
|
|
28
|
+
import { hasRuntimeType, runtimeType } from "./internal/runtime-type.ts";
|
|
29
|
+
import { payloadText } from "./internal/payload-text.ts";
|
|
30
|
+
import { isSafeExternalUrl } from "./internal/url.ts";
|
|
31
|
+
import { Markdown } from "@vite-hub/ui/markdown";
|
|
32
|
+
import { ToolList } from "@vite-hub/ui/tool-list";
|
|
33
|
+
|
|
34
|
+
const InvocationPatchDiff = defineAsyncComponent(() => import("@vite-hub/ui/patch-diff").then(module => module.PatchDiff));
|
|
35
|
+
|
|
36
|
+
function statusLabel(status: AgentInvocationView["status"]): string {
|
|
37
|
+
const labels = {
|
|
38
|
+
cancelled: "Cancelled",
|
|
39
|
+
completed: "Completed",
|
|
40
|
+
failed: "Failed",
|
|
41
|
+
pending: "Queued",
|
|
42
|
+
running: "Working",
|
|
43
|
+
};
|
|
44
|
+
return Object.hasOwn(labels, status) ? labels[status] : "Unknown";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function compactCommand(command: string): string {
|
|
48
|
+
const normalized = command.replaceAll(/\s+/g, " ").trim();
|
|
49
|
+
return normalized.length > 96 ? `${normalized.slice(0, 95)}…` : normalized;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function formatTokens(value: number | undefined): string | undefined {
|
|
53
|
+
if (value === undefined || value <= 0) return;
|
|
54
|
+
if (value < 1_000) return `${value} tokens`;
|
|
55
|
+
return `${new Intl.NumberFormat("en", { maximumFractionDigits: 1, notation: "compact" }).format(value)} tokens`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function formatDuration(startedAt: string | undefined, completedAt: string | undefined): string | undefined {
|
|
59
|
+
if (!startedAt || !completedAt) return;
|
|
60
|
+
const duration = Date.parse(completedAt) - Date.parse(startedAt);
|
|
61
|
+
if (!Number.isFinite(duration) || duration < 0) return;
|
|
62
|
+
const seconds = Math.round(duration / 1_000);
|
|
63
|
+
if (seconds < 60) return `${seconds}s`;
|
|
64
|
+
const minutes = Math.floor(seconds / 60);
|
|
65
|
+
if (minutes < 60) return `${minutes}m ${seconds % 60}s`;
|
|
66
|
+
return `${Math.floor(minutes / 60)}h ${minutes % 60}m`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Elapsed time of a live session as `m:ss`, or `h:mm:ss` after the first hour. */
|
|
70
|
+
function formatElapsed(startedAt: string | undefined, now: Date | undefined): string | undefined {
|
|
71
|
+
if (!startedAt || !now) return;
|
|
72
|
+
const elapsed = now.getTime() - Date.parse(startedAt);
|
|
73
|
+
if (!Number.isFinite(elapsed) || elapsed < 0) return;
|
|
74
|
+
const seconds = Math.floor(elapsed / 1_000);
|
|
75
|
+
const minutes = Math.floor(seconds / 60) % 60;
|
|
76
|
+
const hours = Math.floor(seconds / 3_600);
|
|
77
|
+
const pad = (value: number) => String(value).padStart(2, "0");
|
|
78
|
+
return hours ? `${hours}:${pad(minutes)}:${pad(seconds % 60)}` : `${minutes}:${pad(seconds % 60)}`;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function driverLabel(configuration: AgentInvocationConfiguration): string | undefined {
|
|
82
|
+
const driver = configuration.driver;
|
|
83
|
+
const model = driver?.model;
|
|
84
|
+
return [
|
|
85
|
+
driver?.kind,
|
|
86
|
+
model?.provider ?? driver?.provider,
|
|
87
|
+
model?.id,
|
|
88
|
+
].filter(Boolean).join(" · ") || undefined;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function invocationModelName(value: string): string {
|
|
92
|
+
const slug = value.split("/").at(-1) ?? "";
|
|
93
|
+
return slug
|
|
94
|
+
.split("-")
|
|
95
|
+
.filter(Boolean)
|
|
96
|
+
.map((part) => {
|
|
97
|
+
const lower = part.toLocaleLowerCase();
|
|
98
|
+
if (/^(ai|gpt|glm|llm|vlm)$/.test(lower)) return lower.toLocaleUpperCase();
|
|
99
|
+
if (/^\d+[a-z]$/i.test(part)) return part.toLocaleUpperCase();
|
|
100
|
+
return `${part[0]?.toLocaleUpperCase() ?? ""}${part.slice(1)}`;
|
|
101
|
+
})
|
|
102
|
+
.join(" ") || "Configured model";
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function workspaceLabel(configuration: AgentInvocationConfiguration): string | undefined {
|
|
106
|
+
const workspace = configuration.workspace;
|
|
107
|
+
return workspace ? [workspace.name, workspace.mode].filter(Boolean).join(" · ") : undefined;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function markdown(value: string | undefined, className: string) {
|
|
111
|
+
if (!value) return null;
|
|
112
|
+
return h(Suspense, null, {
|
|
113
|
+
default: () => h(Markdown, { class: className, value }),
|
|
114
|
+
fallback: () => h("p", { class: className }, value),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function workspaceArtifactPath(value: string): string | undefined {
|
|
119
|
+
// Separate URL metadata before decoding literal filename delimiters.
|
|
120
|
+
const pathname = value.split(/[?#]/, 1)[0]!;
|
|
121
|
+
const match = /^\/workspace\/[^/]+\/(.+)$/.exec(pathname);
|
|
122
|
+
if (!match) return;
|
|
123
|
+
const path = (() => { try { return decodeURIComponent(match[1]!); } catch { return match[1]!; } })();
|
|
124
|
+
if (!path || path.startsWith("/") || path.includes("\\") || path.split("/").some(part => !part || part === "." || part === "..")) return;
|
|
125
|
+
return path;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function renderFolderIcon() {
|
|
129
|
+
return h("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [
|
|
130
|
+
h("path", { d: "M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
131
|
+
]);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
type InspectTarget = "agent" | "workspace";
|
|
135
|
+
type InspectHandler = (target: InspectTarget, path?: string) => void;
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
function payloadPreview(value: unknown, text: string): string {
|
|
139
|
+
const source = hasRuntimeType(value, "string") ? value : text.replaceAll(/\s+/g, " ");
|
|
140
|
+
const compact = source.trim();
|
|
141
|
+
return compact.length > 112 ? `${compact.slice(0, 111)}…` : compact || "Empty payload";
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
type InvocationErrorValue = NonNullable<AgentInvocationView["error"]>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* A failed run, at the end of the thread where the run stopped (Vercel's failed build, Railway's diagnosis): what
|
|
148
|
+
* failed, how to fix it, and the full diagnostic to copy. A plain element, not UAlert, so it looks the same in the
|
|
149
|
+
* standalone Console and in hosts that register Nuxt UI. It is a record, not a live alert, so opening an old session
|
|
150
|
+
* does not interrupt a screen reader.
|
|
151
|
+
*/
|
|
152
|
+
const InvocationError = defineComponent({
|
|
153
|
+
name: "InvocationError",
|
|
154
|
+
props: {
|
|
155
|
+
error: { required: true, type: Object as PropType<InvocationErrorValue> },
|
|
156
|
+
},
|
|
157
|
+
setup(props) {
|
|
158
|
+
const titleId = useId();
|
|
159
|
+
const detailsId = useId();
|
|
160
|
+
const detailsOpen = ref(false);
|
|
161
|
+
const copyStatus = ref<"copied" | "failed">();
|
|
162
|
+
let copyTimer: ReturnType<typeof setTimeout> | undefined;
|
|
163
|
+
onBeforeUnmount(() => {
|
|
164
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
async function copyError() {
|
|
168
|
+
try {
|
|
169
|
+
if (!("navigator" in globalThis) || !navigator.clipboard) throw new Error("Clipboard unavailable");
|
|
170
|
+
await navigator.clipboard.writeText(payloadText(diagnosticPayload(props.error)));
|
|
171
|
+
copyStatus.value = "copied";
|
|
172
|
+
} catch {
|
|
173
|
+
copyStatus.value = "failed";
|
|
174
|
+
}
|
|
175
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
176
|
+
copyTimer = setTimeout(() => copyStatus.value = undefined, 2_000);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return () => {
|
|
180
|
+
const error = props.error;
|
|
181
|
+
const payload = diagnosticPayload(error);
|
|
182
|
+
// Match Console request errors' HTTPS-only policy; keep the original URL in the diagnostic.
|
|
183
|
+
const docs = error.docs?.startsWith("https://") && isSafeExternalUrl(error.docs) ? error.docs : undefined;
|
|
184
|
+
// The message alone repeats the card; any other field is worth a details view.
|
|
185
|
+
const hasDetails = Object.keys(payload).length > 1;
|
|
186
|
+
// The name and status qualify the code; a plain "Error" name says nothing.
|
|
187
|
+
const meta = [error.name && error.name !== "Error" ? error.name : undefined, error.code === undefined ? undefined : String(error.code), error.status ?? error.statusCode]
|
|
188
|
+
.filter(value => value !== undefined && value !== "")
|
|
189
|
+
.join(" · ");
|
|
190
|
+
return h("section", { class: "vh-invocation-error", "aria-labelledby": titleId, "data-slot": "invocation-error" }, [
|
|
191
|
+
h("header", { class: "vh-invocation-error__header" }, [
|
|
192
|
+
h("svg", { class: "vh-invocation-error__icon", "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [
|
|
193
|
+
h("circle", { cx: "12", cy: "12", r: "9" }),
|
|
194
|
+
h("path", { d: "m15 9-6 6m0-6 6 6", "stroke-linecap": "round" }),
|
|
195
|
+
]),
|
|
196
|
+
h("h3", { class: "vh-invocation-error__title", id: titleId }, "Run failed"),
|
|
197
|
+
meta ? h("code", { class: "vh-invocation-error__code", title: meta }, meta) : null,
|
|
198
|
+
]),
|
|
199
|
+
// A leading namespace such as "[vitehub]" repeats the source; the copied diagnostic keeps the full message.
|
|
200
|
+
h("p", { class: "vh-invocation-error__message" }, error.message.replace(/^\[[\w./-]+\]\s*/, "")),
|
|
201
|
+
error.fix ? h("div", { class: "vh-invocation-error__fix" }, [
|
|
202
|
+
h("p", { class: "vh-invocation-error__label" }, "How to fix"),
|
|
203
|
+
h("p", error.fix),
|
|
204
|
+
]) : null,
|
|
205
|
+
h("div", { class: "vh-invocation-error__actions" }, [
|
|
206
|
+
docs ? h("a", { class: "vh-invocation-error__action", href: docs, rel: "noreferrer", target: "_blank" }, [
|
|
207
|
+
"Read the docs",
|
|
208
|
+
h("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [h("path", { d: "M7 17 17 7M8 7h9v9", "stroke-linecap": "round", "stroke-linejoin": "round" })]),
|
|
209
|
+
]) : null,
|
|
210
|
+
h("button", { class: "vh-invocation-error__action", type: "button", onClick: copyError }, [
|
|
211
|
+
copyIcon(copyStatus.value === "copied"),
|
|
212
|
+
copyStatus.value === "copied" ? "Copied" : copyStatus.value === "failed" ? "Copy failed" : "Copy error",
|
|
213
|
+
]),
|
|
214
|
+
hasDetails ? h("button", {
|
|
215
|
+
"aria-controls": detailsId,
|
|
216
|
+
"aria-expanded": detailsOpen.value ? "true" : "false",
|
|
217
|
+
class: "vh-invocation-error__action",
|
|
218
|
+
type: "button",
|
|
219
|
+
onClick: () => detailsOpen.value = !detailsOpen.value,
|
|
220
|
+
}, [
|
|
221
|
+
h("svg", { class: "vh-invocation-error__chevron", "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [h("path", { d: "m9 6 6 6-6 6", "stroke-linecap": "round", "stroke-linejoin": "round" })]),
|
|
222
|
+
"Details",
|
|
223
|
+
]) : null,
|
|
224
|
+
h("span", { "aria-live": "polite", class: "vh-visually-hidden", role: "status" }, copyStatus.value === "copied" ? "Error copied" : copyStatus.value === "failed" ? "Could not copy the error" : ""),
|
|
225
|
+
]),
|
|
226
|
+
hasDetails ? h("pre", { class: "vh-invocation-error__details", hidden: !detailsOpen.value, id: detailsId }, payloadText(payload)) : null,
|
|
227
|
+
]);
|
|
228
|
+
};
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
function invocationTimestamp(invocation: AgentInvocationView) {
|
|
233
|
+
const value = [invocation.startedAt, invocation.createdAt].find(value => value && Number.isFinite(Date.parse(value)));
|
|
234
|
+
if (!value) return null;
|
|
235
|
+
const date = new Date(value);
|
|
236
|
+
return h("time", {
|
|
237
|
+
class: "vh-invocation-session__timestamp",
|
|
238
|
+
datetime: date.toISOString(),
|
|
239
|
+
title: date.toLocaleString("en", { dateStyle: "full", timeStyle: "long" }),
|
|
240
|
+
}, date.toLocaleString("en", { dateStyle: "medium", timeStyle: "short" }));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** Every diagnostic field of a failed run, for the details view and the copied error. */
|
|
244
|
+
function diagnosticPayload(error: InvocationErrorValue): Record<string, unknown> {
|
|
245
|
+
const details: Record<string, unknown> = { message: error.message };
|
|
246
|
+
if (error.fix) details.fix = error.fix;
|
|
247
|
+
if (error.docs) details.docs = error.docs;
|
|
248
|
+
if (error.sources?.length) details.sources = error.sources;
|
|
249
|
+
if (error.code !== undefined) details.code = error.code;
|
|
250
|
+
if (error.requestId) details.requestId = error.requestId;
|
|
251
|
+
if (error.status !== undefined) details.status = error.status;
|
|
252
|
+
if (error.statusCode !== undefined) details.statusCode = error.statusCode;
|
|
253
|
+
if (error.details) details.details = error.details;
|
|
254
|
+
if (error.cause) details.cause = error.cause;
|
|
255
|
+
if (error.errors?.length) details.errors = error.errors;
|
|
256
|
+
return details;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function jsonValueLabel(value: unknown): string {
|
|
260
|
+
if (hasRuntimeType(value, "string")) return JSON.stringify(value);
|
|
261
|
+
if (value === null) return "null";
|
|
262
|
+
if (hasRuntimeType(value, "object")) return Array.isArray(value) ? `Array(${value.length})` : "Object";
|
|
263
|
+
return String(value);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function matchingPayloadRows(
|
|
267
|
+
value: unknown,
|
|
268
|
+
query: string,
|
|
269
|
+
path = "$",
|
|
270
|
+
result: { rows: Array<{ path: string; value: string }>; truncated: boolean } = { rows: [], truncated: false },
|
|
271
|
+
depth = 0,
|
|
272
|
+
) {
|
|
273
|
+
const label = jsonValueLabel(value);
|
|
274
|
+
if (`${path} ${label}`.toLocaleLowerCase().includes(query)) {
|
|
275
|
+
if (result.rows.length >= 500) {
|
|
276
|
+
result.truncated = true;
|
|
277
|
+
return result;
|
|
278
|
+
}
|
|
279
|
+
result.rows.push({ path, value: label });
|
|
280
|
+
}
|
|
281
|
+
if (!hasRuntimeType(value, "object") || value === null || depth >= 12) return result;
|
|
282
|
+
for (const [key, item] of Object.entries(value)) {
|
|
283
|
+
matchingPayloadRows(item, query, Array.isArray(value) ? `${path}[${key}]` : `${path}.${key}`, result, depth + 1);
|
|
284
|
+
if (result.truncated) break;
|
|
285
|
+
}
|
|
286
|
+
return result;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function renderPayloadTree(
|
|
290
|
+
value: unknown,
|
|
291
|
+
label?: string,
|
|
292
|
+
depth = 0,
|
|
293
|
+
budget: { remaining: number } = { remaining: 500 },
|
|
294
|
+
): ReturnType<typeof h> {
|
|
295
|
+
budget.remaining--;
|
|
296
|
+
if (budget.remaining < 0) {
|
|
297
|
+
return h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden");
|
|
298
|
+
}
|
|
299
|
+
if (depth >= 12 && hasRuntimeType(value, "object") && value !== null) {
|
|
300
|
+
return h("li", { class: "vh-invocation-payload__leaf" }, [
|
|
301
|
+
label ? h("code", { class: "vh-invocation-payload__key" }, label) : null,
|
|
302
|
+
h("code", { class: "vh-invocation-payload__value" }, "Nested content hidden"),
|
|
303
|
+
]);
|
|
304
|
+
}
|
|
305
|
+
if (!hasRuntimeType(value, "object") || value === null) {
|
|
306
|
+
return h("li", { class: "vh-invocation-payload__leaf" }, [
|
|
307
|
+
label ? h("code", { class: "vh-invocation-payload__key" }, label) : null,
|
|
308
|
+
h("code", { class: "vh-invocation-payload__value", "data-type": value === null ? "null" : runtimeType(value) }, jsonValueLabel(value)),
|
|
309
|
+
]);
|
|
310
|
+
}
|
|
311
|
+
const entries = Object.entries(value);
|
|
312
|
+
const children: ReturnType<typeof h>[] = [];
|
|
313
|
+
for (let index = 0; index < entries.length; index++) {
|
|
314
|
+
if (budget.remaining <= 0) break;
|
|
315
|
+
if (budget.remaining === 1) {
|
|
316
|
+
budget.remaining--;
|
|
317
|
+
children.push(h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden"));
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
const [key, item] = entries[index]!;
|
|
321
|
+
children.push(renderPayloadTree(item, key, depth + 1, budget));
|
|
322
|
+
}
|
|
323
|
+
return h("li", { class: "vh-invocation-payload__branch" }, [
|
|
324
|
+
h("details", { open: depth < 1 }, [
|
|
325
|
+
h("summary", [
|
|
326
|
+
label ? h("code", { class: "vh-invocation-payload__key" }, label) : null,
|
|
327
|
+
h("span", Array.isArray(value) ? `Array(${entries.length})` : `{${entries.length}}`),
|
|
328
|
+
]),
|
|
329
|
+
h("ul", children),
|
|
330
|
+
]),
|
|
331
|
+
]);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const InvocationPayload = defineComponent({
|
|
335
|
+
name: "InvocationPayload",
|
|
336
|
+
props: {
|
|
337
|
+
label: { required: true, type: String },
|
|
338
|
+
value: { required: true },
|
|
339
|
+
},
|
|
340
|
+
setup(props) {
|
|
341
|
+
const mode = ref<"tree" | "raw">("tree");
|
|
342
|
+
const query = ref("");
|
|
343
|
+
const open = ref(false);
|
|
344
|
+
const copied = ref(false);
|
|
345
|
+
const copyFailed = ref(false);
|
|
346
|
+
let copyTimer: ReturnType<typeof setTimeout> | undefined;
|
|
347
|
+
const text = computed(() => payloadText(props.value));
|
|
348
|
+
const normalized = computed<unknown>(() => {
|
|
349
|
+
if (!hasRuntimeType(props.value, "object") || props.value === null) return props.value;
|
|
350
|
+
try {
|
|
351
|
+
return JSON.parse(text.value);
|
|
352
|
+
} catch {
|
|
353
|
+
return text.value;
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
const structured = computed(() => hasRuntimeType(normalized.value, "object") && normalized.value !== null);
|
|
357
|
+
const matches = computed(() => query.value
|
|
358
|
+
? matchingPayloadRows(normalized.value, query.value.toLocaleLowerCase())
|
|
359
|
+
: { rows: [], truncated: false });
|
|
360
|
+
const rawMatches = computed(() => {
|
|
361
|
+
if (!query.value) return text.value;
|
|
362
|
+
const normalizedQuery = query.value.toLocaleLowerCase();
|
|
363
|
+
return text.value.split("\n").filter(line => line.toLocaleLowerCase().includes(normalizedQuery)).join("\n");
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
async function copyPayload() {
|
|
367
|
+
copyFailed.value = false;
|
|
368
|
+
if (!("navigator" in globalThis) || !navigator.clipboard) {
|
|
369
|
+
copyFailed.value = true;
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
try {
|
|
373
|
+
await navigator.clipboard.writeText(text.value);
|
|
374
|
+
copied.value = true;
|
|
375
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
376
|
+
copyTimer = setTimeout(() => { copied.value = false; }, 1_600);
|
|
377
|
+
} catch {
|
|
378
|
+
copyFailed.value = true;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
onBeforeUnmount(() => {
|
|
383
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
// SAFETY: DOM toggle events for this details element expose HTMLDetailsElement as currentTarget.
|
|
387
|
+
return () => h("details", {
|
|
388
|
+
class: "vh-invocation-event__payload",
|
|
389
|
+
// SAFETY: DOM toggle events for this details element expose HTMLDetailsElement as currentTarget.
|
|
390
|
+
onToggle: (event: Event) => { open.value = (event.currentTarget as HTMLDetailsElement).open; },
|
|
391
|
+
open: open.value,
|
|
392
|
+
}, [
|
|
393
|
+
h("summary", [
|
|
394
|
+
h("strong", props.label),
|
|
395
|
+
h("code", payloadPreview(props.value, text.value)),
|
|
396
|
+
renderDisclosureChevron("vh-invocation-event__disclosure"),
|
|
397
|
+
]),
|
|
398
|
+
open.value ? h("div", { class: "vh-invocation-payload__content" }, [
|
|
399
|
+
h("div", { class: "vh-invocation-payload__toolbar" }, [
|
|
400
|
+
structured.value ? h("div", { "aria-label": `${props.label} view`, class: "vh-invocation-payload__modes", role: "group" }, [
|
|
401
|
+
h("button", { "aria-pressed": mode.value === "tree", onClick: () => { mode.value = "tree"; }, type: "button" }, "Tree"),
|
|
402
|
+
h("button", { "aria-pressed": mode.value === "raw", onClick: () => { mode.value = "raw"; }, type: "button" }, "Raw"),
|
|
403
|
+
]) : null,
|
|
404
|
+
structured.value || text.value.length > 240
|
|
405
|
+
? h("label", { class: "vh-invocation-payload__search" }, [
|
|
406
|
+
h("span", { class: "vh-visually-hidden" }, `Search ${props.label}`),
|
|
407
|
+
h("input", {
|
|
408
|
+
// SAFETY: Input events for this rendered control expose HTMLInputElement as target.
|
|
409
|
+
onInput: (event: Event) => { query.value = (event.target as HTMLInputElement).value; },
|
|
410
|
+
placeholder: "Search payload",
|
|
411
|
+
type: "search",
|
|
412
|
+
value: query.value,
|
|
413
|
+
}),
|
|
414
|
+
])
|
|
415
|
+
: null,
|
|
416
|
+
h("button", { class: "vh-invocation-payload__copy", onClick: () => void copyPayload(), type: "button" }, copied.value ? "Copied" : "Copy"),
|
|
417
|
+
]),
|
|
418
|
+
h("span", { "aria-live": "polite", class: "vh-visually-hidden", role: "status" }, copyFailed.value ? `${props.label} could not be copied` : copied.value ? `${props.label} copied` : ""),
|
|
419
|
+
query.value && structured.value && mode.value === "tree"
|
|
420
|
+
? matches.value.rows.length
|
|
421
|
+
? h("ol", { class: "vh-invocation-payload__matches" }, [
|
|
422
|
+
...matches.value.rows.map(match => h("li", [
|
|
423
|
+
h("code", match.path),
|
|
424
|
+
h("code", match.value),
|
|
425
|
+
])),
|
|
426
|
+
matches.value.truncated ? h("li", "More matches hidden. Refine your search.") : null,
|
|
427
|
+
])
|
|
428
|
+
: h("p", { class: "vh-invocation-payload__empty" }, "No matching fields")
|
|
429
|
+
: structured.value && mode.value === "tree"
|
|
430
|
+
? h("ul", { class: "vh-invocation-payload__tree" }, [renderPayloadTree(normalized.value)])
|
|
431
|
+
: rawMatches.value
|
|
432
|
+
? h("pre", rawMatches.value)
|
|
433
|
+
: h("p", { class: "vh-invocation-payload__empty" }, "No matching content"),
|
|
434
|
+
]) : null,
|
|
435
|
+
]);
|
|
436
|
+
},
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
const messageRoleLabels: Record<NonNullable<InvocationActivity["role"]>, string> = {
|
|
440
|
+
assistant: "Assistant",
|
|
441
|
+
system: "System",
|
|
442
|
+
tool: "Tool",
|
|
443
|
+
user: "You",
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
interface MessageRendering {
|
|
447
|
+
author?: string;
|
|
448
|
+
copy: (activity: InvocationActivity) => void;
|
|
449
|
+
copiedId?: string;
|
|
450
|
+
copyStatus?: "copied" | "failed";
|
|
451
|
+
promptId?: string;
|
|
452
|
+
sentAt?: string;
|
|
453
|
+
now: Date;
|
|
454
|
+
/** Second-resolution clock that only ticks while the session is live. */
|
|
455
|
+
liveNow?: Date;
|
|
456
|
+
mounted: boolean;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
function renderMessage(
|
|
460
|
+
activity: InvocationActivity,
|
|
461
|
+
expanded: ReadonlySet<string>,
|
|
462
|
+
toggleExpanded: (id: string) => void,
|
|
463
|
+
messageRendering: MessageRendering,
|
|
464
|
+
insideWork = false,
|
|
465
|
+
) {
|
|
466
|
+
const body = activity.body ?? "";
|
|
467
|
+
const collapsible = activity.role === "user" && (body.length > 720 || body.split(/\r?\n/).length > 12);
|
|
468
|
+
const isExpanded = expanded.has(activity.id);
|
|
469
|
+
const sentAt = messageTimestamp(activity, messageRendering.now, messageRendering.mounted, activity.id === messageRendering.promptId ? messageRendering.sentAt : undefined);
|
|
470
|
+
const copyStatus = messageRendering.copiedId === activity.id ? messageRendering.copyStatus : undefined;
|
|
471
|
+
const commentary = activity.attributes["message.phase"] === "commentary";
|
|
472
|
+
const hasMessageMeta = (activity.role === "user" || activity.role === "assistant") && !(insideWork && commentary);
|
|
473
|
+
// The prompt names its known author; other user messages come from the viewer.
|
|
474
|
+
const author = activity.id === messageRendering.promptId ? messageRendering.author : undefined;
|
|
475
|
+
const roleLabel = author ?? messageRoleLabels[activity.role ?? "assistant"];
|
|
476
|
+
return h(
|
|
477
|
+
"li",
|
|
478
|
+
{
|
|
479
|
+
class: "vh-invocation-message",
|
|
480
|
+
"data-phase": commentary ? "commentary" : undefined,
|
|
481
|
+
"data-role": activity.role,
|
|
482
|
+
key: activity.id,
|
|
483
|
+
},
|
|
484
|
+
[
|
|
485
|
+
insideWork && commentary
|
|
486
|
+
? h("span", { class: "vh-visually-hidden" }, `${roleLabel} message`)
|
|
487
|
+
: h("span", { class: "vh-invocation-message__role" }, roleLabel),
|
|
488
|
+
activity.attributes["input.mode"] === "steer"
|
|
489
|
+
? h("small", { class: "vh-invocation-message__method" }, "Steered")
|
|
490
|
+
: null,
|
|
491
|
+
h("div", {
|
|
492
|
+
class: "vh-invocation-message__content",
|
|
493
|
+
"data-collapsed": collapsible && !isExpanded ? "true" : undefined,
|
|
494
|
+
}, [markdown(body, "vh-invocation-message__body")]),
|
|
495
|
+
activity.truncated
|
|
496
|
+
? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.")
|
|
497
|
+
: null,
|
|
498
|
+
collapsible
|
|
499
|
+
? h("button", {
|
|
500
|
+
"aria-expanded": String(isExpanded),
|
|
501
|
+
class: "vh-invocation-message__more",
|
|
502
|
+
onClick: () => toggleExpanded(activity.id),
|
|
503
|
+
type: "button",
|
|
504
|
+
}, isExpanded ? "Show less" : "Read more")
|
|
505
|
+
: null,
|
|
506
|
+
hasMessageMeta
|
|
507
|
+
? h("footer", { class: "vh-invocation-message__meta" }, [
|
|
508
|
+
author ? h("span", { class: "vh-invocation-message__author" }, author) : null,
|
|
509
|
+
sentAt ? h("time", { datetime: sentAt.value, title: sentAt.title }, sentAt.short) : null,
|
|
510
|
+
h("button", {
|
|
511
|
+
"aria-label": copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
|
|
512
|
+
class: "vh-invocation-message__copy",
|
|
513
|
+
onClick: () => messageRendering.copy(activity),
|
|
514
|
+
title: copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : "Copy message",
|
|
515
|
+
type: "button",
|
|
516
|
+
}, copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : [renderCopyIcon()]),
|
|
517
|
+
copyStatus ? h("span", { class: "vh-visually-hidden", "aria-live": "polite", role: "status" }, copyStatus === "copied" ? "Message copied" : "Message could not be copied") : null,
|
|
518
|
+
])
|
|
519
|
+
: null,
|
|
520
|
+
],
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
function messageTimestamp(activity: InvocationActivity, now: Date, mounted: boolean, sentAt?: string): { short: string; title: string; value: string } | undefined {
|
|
525
|
+
const value = sentAt ?? stringAttribute(activity.attributes, "channel.sentAt")
|
|
526
|
+
?? stringAttribute(activity.attributes, "input.sentAt")
|
|
527
|
+
?? activity.startedAt;
|
|
528
|
+
if (!value || !Number.isFinite(Date.parse(value))) return;
|
|
529
|
+
const date = new Date(value);
|
|
530
|
+
if (!mounted) return { short: date.toISOString(), title: date.toISOString(), value };
|
|
531
|
+
const time = new Intl.DateTimeFormat("en", { hour: "numeric", minute: "2-digit" }).format(date);
|
|
532
|
+
const startOfToday = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
|
|
533
|
+
const startOfMessageDay = new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime();
|
|
534
|
+
const dayDifference = Math.round((startOfToday - startOfMessageDay) / 86_400_000);
|
|
535
|
+
const dateOptions: Intl.DateTimeFormatOptions = { day: "numeric", month: "numeric" };
|
|
536
|
+
if (date.getFullYear() !== now.getFullYear()) dateOptions.year = "numeric";
|
|
537
|
+
const short = dayDifference <= 0
|
|
538
|
+
? time
|
|
539
|
+
: dayDifference === 1
|
|
540
|
+
? `Yesterday at ${time}`
|
|
541
|
+
: `${new Intl.DateTimeFormat("en", dateOptions).format(date)} ${time}`;
|
|
542
|
+
return {
|
|
543
|
+
short,
|
|
544
|
+
title: new Intl.DateTimeFormat("en", { dateStyle: "medium", timeStyle: "short" }).format(date),
|
|
545
|
+
value,
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
function renderCopyIcon() {
|
|
550
|
+
return h("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" }, [
|
|
551
|
+
h("rect", { height: "13", rx: "2", width: "13", x: "8", y: "8" }),
|
|
552
|
+
h("path", { d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3" }),
|
|
553
|
+
]);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
type ActivityIcon =
|
|
557
|
+
| "activity"
|
|
558
|
+
| "alert"
|
|
559
|
+
| "action"
|
|
560
|
+
| "approval"
|
|
561
|
+
| "brain"
|
|
562
|
+
| "change"
|
|
563
|
+
| "check"
|
|
564
|
+
| "command"
|
|
565
|
+
| "cpu"
|
|
566
|
+
| "eye"
|
|
567
|
+
| "folder"
|
|
568
|
+
| "github"
|
|
569
|
+
| "label"
|
|
570
|
+
| "message"
|
|
571
|
+
| "pull-request"
|
|
572
|
+
| "search"
|
|
573
|
+
| "tool";
|
|
574
|
+
|
|
575
|
+
function activityIcon(activity: InvocationActivity): ActivityIcon {
|
|
576
|
+
const name = String(activity.attributes["tool.name"] ?? "").toLocaleLowerCase();
|
|
577
|
+
if (activity.command) return "command";
|
|
578
|
+
if (activity.kind === "error") return "alert";
|
|
579
|
+
if (activity.kind === "change") return "change";
|
|
580
|
+
if (name.includes("read") || name.includes("image") || name.includes("view")) return "eye";
|
|
581
|
+
if (name.includes("search") || name.includes("find")) return "search";
|
|
582
|
+
if (activity.kind === "reasoning" || activity.kind === "model") return "brain";
|
|
583
|
+
if (activity.kind === "run") return "activity";
|
|
584
|
+
if (activity.kind === "approval") return "approval";
|
|
585
|
+
if (activity.kind === "delivery") {
|
|
586
|
+
const delivery = String(activity.attributes["channel.effect.kind"] ?? "").toLocaleLowerCase();
|
|
587
|
+
if (delivery === "reaction") return "eye";
|
|
588
|
+
if (["reply", "status", "update"].includes(delivery)) return "message";
|
|
589
|
+
return "action";
|
|
590
|
+
}
|
|
591
|
+
if (activity.kind === "action") return "check";
|
|
592
|
+
if (activity.kind === "preparation") {
|
|
593
|
+
const title = invocationActivityTitle(activity).toLocaleLowerCase();
|
|
594
|
+
if (title.includes("pull request")) return "pull-request";
|
|
595
|
+
if (title.includes("github")) return "github";
|
|
596
|
+
if (title.includes("workspace")) return "folder";
|
|
597
|
+
if (title.includes("agent")) return "cpu";
|
|
598
|
+
if (title.includes("prompt")) return "message";
|
|
599
|
+
return "check";
|
|
600
|
+
}
|
|
601
|
+
if (activity.kind === "system") return "cpu";
|
|
602
|
+
return activity.kind === "tool" ? "tool" : "activity";
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
const activityIconPaths: Record<ActivityIcon, readonly string[]> = {
|
|
606
|
+
activity: ["M12 12h.01"],
|
|
607
|
+
alert: ["M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20", "M12 8v4", "M12 16h.01"],
|
|
608
|
+
action: ["M13 2 3 14h9l-1 8 10-12h-9z"],
|
|
609
|
+
approval: ["M12 3v12", "m8 11 4 4 4-4", "M5 21h14"],
|
|
610
|
+
// Lucide `brain`, the same mark T3 Code uses for a thinking step.
|
|
611
|
+
brain: ["M12 18V5m3 8a4.17 4.17 0 0 1-3-4a4.17 4.17 0 0 1-3 4m8.598-6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", "M17.997 5.125a4 4 0 0 1 2.526 5.77", "M18 18a4 4 0 0 0 2-7.464", "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", "M6 18a4 4 0 0 1-2-7.464", "M6.003 5.125a4 4 0 0 0-2.526 5.77"],
|
|
612
|
+
change: ["M12 20h9", "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],
|
|
613
|
+
check: ["m5 12 4 4L19 6"],
|
|
614
|
+
command: ["m4 17 6-6-6-6", "M12 19h8"],
|
|
615
|
+
cpu: ["M9 9h6v6H9z", "M9 2v3", "M15 2v3", "M9 19v3", "M15 19v3", "M2 9h3", "M2 15h3", "M19 9h3", "M19 15h3", "M5 5h14v14H5z"],
|
|
616
|
+
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"],
|
|
617
|
+
folder: ["M3 6.5h6l2 2h10v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"],
|
|
618
|
+
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"],
|
|
619
|
+
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"],
|
|
620
|
+
message: ["M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z"],
|
|
621
|
+
"pull-request": [
|
|
622
|
+
"M6 9v12",
|
|
623
|
+
"M18 15V8a2 2 0 0 0-2-2h-3",
|
|
624
|
+
"M6 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6",
|
|
625
|
+
"M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6",
|
|
626
|
+
],
|
|
627
|
+
search: ["m21 21-4.35-4.35", "M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16"],
|
|
628
|
+
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"],
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
function renderActivityIcon(activity: InvocationActivity) {
|
|
632
|
+
const declaredIcon = activity.toolDisplay?.icon;
|
|
633
|
+
const Icon = declaredIcon ? getCurrentInstance()?.appContext.components.UIcon : undefined;
|
|
634
|
+
return h("span", {
|
|
635
|
+
class: "vh-invocation-event__icon",
|
|
636
|
+
"data-failed": activity.status === "failed" ? "true" : undefined,
|
|
637
|
+
"data-icon": Icon ? declaredIcon : activityIcon(activity),
|
|
638
|
+
"aria-hidden": "true",
|
|
639
|
+
}, [
|
|
640
|
+
Icon ? h(Icon, { name: declaredIcon }) : renderActivityIconSvg(activityIcon(activity)),
|
|
641
|
+
activity.status === "failed"
|
|
642
|
+
? h("svg", {
|
|
643
|
+
class: "vh-invocation-event__failure-icon",
|
|
644
|
+
fill: "currentColor",
|
|
645
|
+
viewBox: "0 0 24 24",
|
|
646
|
+
}, [
|
|
647
|
+
h("path", {
|
|
648
|
+
"clip-rule": "evenodd",
|
|
649
|
+
d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2V7Zm0 9h2v2h-2v-2Z",
|
|
650
|
+
"fill-rule": "evenodd",
|
|
651
|
+
stroke: "none",
|
|
652
|
+
}),
|
|
653
|
+
])
|
|
654
|
+
: null,
|
|
655
|
+
]);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
function renderNamedActivityIcon(icon: ActivityIcon) {
|
|
659
|
+
return h("span", { class: "vh-invocation-event__icon", "data-icon": icon, "aria-hidden": "true" }, [
|
|
660
|
+
renderActivityIconSvg(icon),
|
|
661
|
+
]);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
function renderActivityIconSvg(icon: ActivityIcon) {
|
|
665
|
+
return h("svg", { fill: "none", viewBox: "0 0 24 24" }, activityIconPaths[icon].map(path => h("path", {
|
|
666
|
+
d: path,
|
|
667
|
+
"stroke-linecap": "round",
|
|
668
|
+
"stroke-linejoin": "round",
|
|
669
|
+
})));
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
function imageViewPath(activity: InvocationActivity): string | undefined {
|
|
673
|
+
const name = String(activity.attributes["tool.name"] ?? "").trim().toLocaleLowerCase();
|
|
674
|
+
if (name !== "image view" && name !== "view image" && name !== "view_image") return;
|
|
675
|
+
for (const key of ["tool.input", "tool.output"]) {
|
|
676
|
+
const payload = activity.attributes[key];
|
|
677
|
+
if (!hasRuntimeType(payload, "object") || payload === null || Array.isArray(payload)) continue;
|
|
678
|
+
const item = "item" in payload && hasRuntimeType(payload.item, "object") && payload.item !== null && !Array.isArray(payload.item) ? payload.item : payload;
|
|
679
|
+
if ("path" in item && hasRuntimeType(item.path, "string") && item.path) return item.path;
|
|
680
|
+
if (!("commandActions" in item) || !Array.isArray(item.commandActions)) continue;
|
|
681
|
+
for (const value of item.commandActions) {
|
|
682
|
+
if (hasRuntimeType(value, "object") && value !== null && !Array.isArray(value) && "path" in value && hasRuntimeType(value.path, "string") && value.path) return value.path;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
return activity.preview?.startsWith("/") ? activity.preview : undefined;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
function imageViewDetails(activity: InvocationActivity, path: string) {
|
|
689
|
+
const evidence: Record<string, unknown> = { path };
|
|
690
|
+
if (activity.attributes["tool.input"] !== undefined) evidence.input = activity.attributes["tool.input"];
|
|
691
|
+
if (activity.attributes["tool.output"] !== undefined) evidence.output = activity.attributes["tool.output"];
|
|
692
|
+
if (activity.attributes["tool.error"] !== undefined) evidence.error = activity.attributes["tool.error"];
|
|
693
|
+
return h("section", { class: "vh-invocation-image-details", "aria-label": "Image view details" }, [
|
|
694
|
+
h("strong", "Path"),
|
|
695
|
+
h("code", path),
|
|
696
|
+
h("strong", "Raw details"),
|
|
697
|
+
h("pre", payloadText(evidence)),
|
|
698
|
+
]);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
function renderEvent(activity: InvocationActivity, inspect: InspectHandler, openActivities: ReadonlySet<string>, setActivityOpen: (id: string, open: boolean) => void) {
|
|
702
|
+
const command = activity.command;
|
|
703
|
+
const viewedImagePath = imageViewPath(activity);
|
|
704
|
+
const tokenLabel = activity.kind === "reasoning" || activity.kind === "model"
|
|
705
|
+
? formatTokens(activity.reasoningTokens)
|
|
706
|
+
: undefined;
|
|
707
|
+
const suffix = viewedImagePath?.split("/").filter(Boolean).at(-1)
|
|
708
|
+
?? agentConfigurationSummary(activity)
|
|
709
|
+
?? channelDeliverySummary(activity)
|
|
710
|
+
?? (activity.preview ? compactCommand(activity.preview) : tokenLabel);
|
|
711
|
+
const hasPayloads = activity.kind === "tool" && (
|
|
712
|
+
activity.attributes["tool.input"] !== undefined
|
|
713
|
+
|| activity.attributes["tool.output"] !== undefined
|
|
714
|
+
|| activity.attributes["tool.error"] !== undefined
|
|
715
|
+
);
|
|
716
|
+
const capturedDeliveryBody = activity.kind === "delivery"
|
|
717
|
+
? activity.attributes["channel.effect.content"]
|
|
718
|
+
: undefined;
|
|
719
|
+
const deliveryBody = hasRuntimeType(capturedDeliveryBody, "string") && capturedDeliveryBody.trim()
|
|
720
|
+
? capturedDeliveryBody
|
|
721
|
+
: undefined;
|
|
722
|
+
const visibleDelivery = Boolean(deliveryBody);
|
|
723
|
+
const deliveryFailure = activity.kind === "delivery"
|
|
724
|
+
? stringAttribute(activity.attributes, "error.message")
|
|
725
|
+
: undefined;
|
|
726
|
+
const hasDetails = Boolean(deliveryFailure || activity.truncated)
|
|
727
|
+
|| (!visibleDelivery && (activity.patches.length > 0 || Boolean(command || hasPayloads || activity.body || activity.truncated)));
|
|
728
|
+
const skillReads = activity.skills ?? (activity.skill ? [activity.skill] : []);
|
|
729
|
+
const inspectTarget = skillReads.length === 1 ? "workspace" : activity.attributes["vitehub.inspect.target"] ?? (activity.name === "vitehub.agent.configured" ? "agent" : undefined);
|
|
730
|
+
const inspectPath = activity.skill?.path;
|
|
731
|
+
const inspectable = inspectTarget === "agent" || inspectTarget === "workspace";
|
|
732
|
+
const title = skillReads.length
|
|
733
|
+
? h("span", { class: "vh-invocation-event__title" }, skillReads.flatMap((skill, index) => [
|
|
734
|
+
index ? h("span", { "aria-hidden": "true" }, " · ") : null,
|
|
735
|
+
h("button", {
|
|
736
|
+
class: "vh-invocation-event__title vh-invocation-event__title-link",
|
|
737
|
+
onClick: (event: Event) => {
|
|
738
|
+
event.preventDefault();
|
|
739
|
+
event.stopPropagation();
|
|
740
|
+
inspect("workspace", skill.path);
|
|
741
|
+
},
|
|
742
|
+
type: "button",
|
|
743
|
+
}, `Read ${skill.name} skill`),
|
|
744
|
+
]))
|
|
745
|
+
: h("span", { class: "vh-invocation-event__title" }, viewedImagePath ? "View image" : invocationActivityTitle(activity));
|
|
746
|
+
const summaryContent = [
|
|
747
|
+
activity.name === "vitehub.agent.configured"
|
|
748
|
+
? frameworkMark()
|
|
749
|
+
: activity.kind === "delivery"
|
|
750
|
+
? h("span", { class: "vh-invocation-event__icon", "data-icon": "channel" }, [channelIcon(activityChannel(activity))])
|
|
751
|
+
: renderActivityIcon(activity),
|
|
752
|
+
title,
|
|
753
|
+
activity.status === "failed" ? h("span", { class: "vh-visually-hidden" }, "Failed") : null,
|
|
754
|
+
suffix ? h("code", { class: "vh-invocation-event__suffix" }, suffix) : null,
|
|
755
|
+
hasDetails
|
|
756
|
+
? renderDisclosureChevron("vh-invocation-event__disclosure")
|
|
757
|
+
: null,
|
|
758
|
+
];
|
|
759
|
+
const summary = inspectable && !hasDetails
|
|
760
|
+
? h("button", {
|
|
761
|
+
class: "vh-invocation-event__summary",
|
|
762
|
+
onClick: () => inspect(inspectTarget, inspectPath),
|
|
763
|
+
type: "button",
|
|
764
|
+
}, summaryContent)
|
|
765
|
+
: h(hasDetails ? "summary" : "div", { class: "vh-invocation-event__summary" }, summaryContent);
|
|
766
|
+
return h("li", {
|
|
767
|
+
class: "vh-invocation-activity",
|
|
768
|
+
"data-activity-id": activity.id,
|
|
769
|
+
"data-inspectable": inspectable ? "true" : undefined,
|
|
770
|
+
"data-kind": activity.kind,
|
|
771
|
+
"data-status": activity.status,
|
|
772
|
+
key: activity.id,
|
|
773
|
+
}, [
|
|
774
|
+
h(hasDetails ? "details" : "div", {
|
|
775
|
+
class: "vh-invocation-event",
|
|
776
|
+
open: hasDetails ? openActivities.has(activity.id) : undefined,
|
|
777
|
+
onToggle: hasDetails
|
|
778
|
+
? (event: Event) => setActivityOpen(activity.id, (event.currentTarget as HTMLDetailsElement).open)
|
|
779
|
+
: undefined,
|
|
780
|
+
}, [
|
|
781
|
+
summary,
|
|
782
|
+
hasDetails ? h("div", { class: "vh-invocation-event__details" }, [
|
|
783
|
+
deliveryFailure
|
|
784
|
+
? h("p", { class: "vh-invocation-event__failure" }, deliveryFailure)
|
|
785
|
+
: null,
|
|
786
|
+
activity.truncated
|
|
787
|
+
? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.")
|
|
788
|
+
: null,
|
|
789
|
+
activity.patches.length
|
|
790
|
+
? openActivities.has(activity.id)
|
|
791
|
+
? h("div", { class: "vh-invocation-event__diffs" }, activity.patches.map((patch, index) => h(InvocationPatchDiff, { key: index, patch })))
|
|
792
|
+
: null
|
|
793
|
+
: command
|
|
794
|
+
? h("div", { class: "vh-invocation-command" }, [
|
|
795
|
+
h("div", { class: "vh-invocation-command__bar" }, [
|
|
796
|
+
h("code", command.command),
|
|
797
|
+
command.exitCode !== undefined
|
|
798
|
+
? h("span", { "data-failed": command.exitCode !== 0 }, `exit ${command.exitCode}`)
|
|
799
|
+
: null,
|
|
800
|
+
]),
|
|
801
|
+
command.cwd ? h("div", { class: "vh-invocation-command__cwd" }, command.cwd) : null,
|
|
802
|
+
command.output ? h("pre", terminalText(command.output)) : null,
|
|
803
|
+
renderCommandError(activity.attributes["tool.error"]),
|
|
804
|
+
])
|
|
805
|
+
: viewedImagePath
|
|
806
|
+
? imageViewDetails(activity, viewedImagePath)
|
|
807
|
+
: hasPayloads
|
|
808
|
+
? h("div", { class: "vh-invocation-event__payloads" }, [
|
|
809
|
+
renderEventPayload("Input", activity.attributes["tool.input"]),
|
|
810
|
+
renderEventPayload("Output", activity.attributes["tool.output"]),
|
|
811
|
+
renderEventPayload("Error", activity.attributes["tool.error"]),
|
|
812
|
+
].filter(Boolean))
|
|
813
|
+
: activity.kind !== "delivery" && activity.body
|
|
814
|
+
? h("div", { class: "vh-invocation-event__body" }, [markdown(activity.body, "vh-invocation-event__markdown")])
|
|
815
|
+
: null,
|
|
816
|
+
inspectable
|
|
817
|
+
? h("button", {
|
|
818
|
+
class: "vh-invocation-event__inspect",
|
|
819
|
+
onClick: () => inspect(inspectTarget, inspectPath),
|
|
820
|
+
type: "button",
|
|
821
|
+
}, `Inspect ${inspectTarget}`)
|
|
822
|
+
: null,
|
|
823
|
+
]) : null,
|
|
824
|
+
]),
|
|
825
|
+
deliveryBody
|
|
826
|
+
? h("div", { class: "vh-invocation-delivery__body" }, [markdown(deliveryBody, "vh-invocation-event__markdown")])
|
|
827
|
+
: null,
|
|
828
|
+
]);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
function renderEventPayload(label: string, value: unknown) {
|
|
832
|
+
if (value === undefined) return null;
|
|
833
|
+
return h(InvocationPayload, { label, value });
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
function renderCommandError(value: unknown) {
|
|
837
|
+
if (value === undefined) return null;
|
|
838
|
+
let text: string;
|
|
839
|
+
if (typeof value === "string") text = value;
|
|
840
|
+
else {
|
|
841
|
+
try {
|
|
842
|
+
text = Object.prototype.toString.call(value) === "[object String]" ? String(value) : payloadText(value);
|
|
843
|
+
} catch {
|
|
844
|
+
try { text = payloadText(value); }
|
|
845
|
+
catch { text = "[Unable to display payload]"; }
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
return h("section", { class: "vh-invocation-event__payload" }, [
|
|
849
|
+
h("strong", "Error"),
|
|
850
|
+
h("pre", text),
|
|
851
|
+
]);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
function activityDetail(activity: InvocationActivity): string | undefined {
|
|
855
|
+
return invocationActivityDetail(activity);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function renderPreparationAction(activity: InvocationActivity, inspect: InspectHandler) {
|
|
859
|
+
const target = activity.attributes["vitehub.inspect.target"];
|
|
860
|
+
if (target !== "workspace" && target !== "agent") return;
|
|
861
|
+
return h("button", {
|
|
862
|
+
"aria-label": target === "workspace" ? "Open Workspace" : "Open Invocation details",
|
|
863
|
+
class: "vh-invocation-preparation__action",
|
|
864
|
+
onClick: () => inspect(target),
|
|
865
|
+
type: "button",
|
|
866
|
+
}, [renderNamedActivityIcon(target === "workspace" ? "folder" : "cpu")]);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
function renderPreparationContext(invocation: AgentInvocationView, url: string | undefined) {
|
|
870
|
+
const repository = invocation.annotations?.["github.repository"];
|
|
871
|
+
const pullRequest = invocation.annotations?.["github.pullRequest"];
|
|
872
|
+
if (!hasRuntimeType(repository, "string") || (!hasRuntimeType(pullRequest, "number") && !hasRuntimeType(pullRequest, "string"))) {
|
|
873
|
+
return h("code", agentInvocationContext(invocation));
|
|
874
|
+
}
|
|
875
|
+
return h("span", { class: "vh-invocation-preparation__context" }, [
|
|
876
|
+
h("code", repository),
|
|
877
|
+
h("span", { "aria-hidden": "true" }, "·"),
|
|
878
|
+
url
|
|
879
|
+
? h("a", {
|
|
880
|
+
href: url,
|
|
881
|
+
onClick: (event: MouseEvent) => event.stopPropagation(),
|
|
882
|
+
rel: "noreferrer",
|
|
883
|
+
target: "_blank",
|
|
884
|
+
}, `PR #${pullRequest}`)
|
|
885
|
+
: h("code", `PR #${pullRequest}`),
|
|
886
|
+
]);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
function renderPreparationDetail(activity: InvocationActivity, url: string | undefined) {
|
|
890
|
+
const detail = activityDetail(activity);
|
|
891
|
+
if (!detail) return;
|
|
892
|
+
const compact = compactCommand(detail);
|
|
893
|
+
if (!url || !invocationActivityTitle(activity).toLocaleLowerCase().includes("pull request")) {
|
|
894
|
+
return h("code", compact);
|
|
895
|
+
}
|
|
896
|
+
const match = compact.match(/^(.*?)\s*·\s*(PR #\d+)$/);
|
|
897
|
+
if (!match) return h("code", compact);
|
|
898
|
+
return h("span", { class: "vh-invocation-preparation__context" }, [
|
|
899
|
+
h("code", match[1]),
|
|
900
|
+
h("span", { "aria-hidden": "true" }, "·"),
|
|
901
|
+
h("a", { href: url, rel: "noreferrer", target: "_blank" }, match[2]),
|
|
902
|
+
]);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
function renderDisclosureChevron(className: string) {
|
|
906
|
+
return h("svg", { "aria-hidden": "true", class: className, fill: "none", viewBox: "0 0 24 24" }, [
|
|
907
|
+
h("path", { d: "m6 9 6 6 6-6", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }),
|
|
908
|
+
]);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
function frameworkMark() {
|
|
912
|
+
return h("svg", { viewBox: "0 0 20 18", fill: "currentColor", "aria-hidden": "true", class: "vh-invocation-framework-mark" }, [
|
|
913
|
+
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" }),
|
|
914
|
+
]);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function activityChannel(activity: InvocationActivity): string {
|
|
918
|
+
const channel = stringAttribute(activity.attributes, "channel.delivery.provider")
|
|
919
|
+
?? stringAttribute(activity.attributes, "channel.provider")
|
|
920
|
+
?? stringAttribute(activity.attributes, "channel.id")
|
|
921
|
+
?? "chat";
|
|
922
|
+
return channel.toLocaleLowerCase() === "msteams" ? "teams" : channel;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
function renderPreparationGroup(
|
|
926
|
+
activities: readonly InvocationActivity[],
|
|
927
|
+
invocation: AgentInvocationView,
|
|
928
|
+
inspect: InspectHandler,
|
|
929
|
+
) {
|
|
930
|
+
const url = agentInvocationExternalUrl(invocation);
|
|
931
|
+
const failedActivity = activities.find(activity => activity.status === "failed");
|
|
932
|
+
return h("li", {
|
|
933
|
+
class: "vh-invocation-preparation",
|
|
934
|
+
key: `preparation:${activities[0]?.id}`,
|
|
935
|
+
}, [
|
|
936
|
+
h("details", { class: "vh-invocation-preparation__details" }, [
|
|
937
|
+
h("summary", { class: "vh-invocation-preparation__summary" }, [
|
|
938
|
+
failedActivity ? renderActivityIcon(failedActivity) : renderNamedActivityIcon("folder"),
|
|
939
|
+
h("strong", failedActivity ? "Session preparation failed" : "Prepared workspace"),
|
|
940
|
+
failedActivity ? renderPreparationContext(invocation, url) : null,
|
|
941
|
+
failedActivity ? h("small", `${activities.length} steps`) : null,
|
|
942
|
+
renderDisclosureChevron("vh-invocation-preparation__disclosure"),
|
|
943
|
+
]),
|
|
944
|
+
h("ol", { class: "vh-invocation-preparation__steps" }, activities.map(activity => renderPreparationStep(activity, url, inspect))),
|
|
945
|
+
]),
|
|
946
|
+
]);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
function renderPreparationStep(activity: InvocationActivity, url: string | undefined, inspect: InspectHandler) {
|
|
950
|
+
return h("li", {
|
|
951
|
+
class: "vh-invocation-preparation__step",
|
|
952
|
+
"data-activity-id": activity.id,
|
|
953
|
+
"data-kind": "preparation",
|
|
954
|
+
"data-status": activity.status,
|
|
955
|
+
key: activity.id,
|
|
956
|
+
}, [
|
|
957
|
+
renderActivityIcon(activity),
|
|
958
|
+
h("strong", invocationActivityTitle(activity)),
|
|
959
|
+
renderPreparationDetail(activity, url),
|
|
960
|
+
renderPreparationAction(activity, inspect),
|
|
961
|
+
activity.body ? h("p", { class: "vh-invocation-preparation__body" }, activity.body) : null,
|
|
962
|
+
activity.truncated ? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null,
|
|
963
|
+
]);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
function activityGroup(activity: InvocationActivity | undefined): string | undefined {
|
|
967
|
+
if (!activity) return;
|
|
968
|
+
if (activity.name === "vitehub.agent.configured") return "agent-configuration-lifecycle";
|
|
969
|
+
if (/^agent\.capability\.(?:input|output|configure|prepare|resolve|close)$/.test(activity.name)) return "agent-capability-lifecycle";
|
|
970
|
+
return stringAttribute(activity.attributes, "vitehub.activity.group");
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
function renderCapabilityGroup(
|
|
974
|
+
activities: readonly InvocationActivity[],
|
|
975
|
+
inspect: InspectHandler,
|
|
976
|
+
openActivities: ReadonlySet<string>,
|
|
977
|
+
setActivityOpen: (id: string, open: boolean) => void,
|
|
978
|
+
) {
|
|
979
|
+
const capabilities = [...new Set(activities.flatMap(activity => {
|
|
980
|
+
const id = stringAttribute(activity.attributes, "agent.capability.id");
|
|
981
|
+
return id ? [id] : [];
|
|
982
|
+
}))];
|
|
983
|
+
const failures = activities.filter(activity => activity.status === "failed").length;
|
|
984
|
+
const phases = new Set(activities.map(activity => activity.name.split(".").at(-1)));
|
|
985
|
+
const summary = capabilities.length
|
|
986
|
+
? `${capabilities.length} ${capabilities.length === 1 ? "capability" : "capabilities"}`
|
|
987
|
+
: `${activities.length} ${activities.length === 1 ? "event" : "events"}`;
|
|
988
|
+
return h("li", { class: "vh-invocation-capabilities", key: `capabilities:${activities[0]?.id}` }, [
|
|
989
|
+
h("details", { class: "vh-invocation-capabilities__details" }, [
|
|
990
|
+
h("summary", { class: "vh-invocation-capabilities__summary" }, [
|
|
991
|
+
renderNamedActivityIcon("tool"),
|
|
992
|
+
h("span", { class: "vh-invocation-event__title" }, failures
|
|
993
|
+
? `Capability activity failed · ${summary}`
|
|
994
|
+
: !capabilities.length
|
|
995
|
+
? `Capability activity · ${summary}`
|
|
996
|
+
: [...phases].every(phase => phase === "close")
|
|
997
|
+
? `Closed ${summary}`
|
|
998
|
+
: [...phases].every(phase => phase === "output" || phase === "close")
|
|
999
|
+
? `Finalized ${summary}`
|
|
1000
|
+
: `Prepared ${summary}`),
|
|
1001
|
+
renderDisclosureChevron("vh-invocation-capabilities__disclosure"),
|
|
1002
|
+
]),
|
|
1003
|
+
h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map(activity => renderEvent(activity, inspect, openActivities, setActivityOpen))),
|
|
1004
|
+
]),
|
|
1005
|
+
]);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
function renderAgentConfigurationGroup(activities: readonly InvocationActivity[], inspect: InspectHandler) {
|
|
1009
|
+
const activity = activities[0]!;
|
|
1010
|
+
return h("li", {
|
|
1011
|
+
class: "vh-invocation-capabilities",
|
|
1012
|
+
"data-activity-id": activity.id,
|
|
1013
|
+
"data-kind": activity.kind,
|
|
1014
|
+
"data-status": activity.status,
|
|
1015
|
+
key: `configuration:${activity.id}`,
|
|
1016
|
+
}, [
|
|
1017
|
+
h("details", { class: "vh-invocation-capabilities__details" }, [
|
|
1018
|
+
h("summary", { class: "vh-invocation-capabilities__summary" }, [
|
|
1019
|
+
h("span", { "aria-hidden": "true", class: "vh-invocation-event__icon" }, [frameworkMark()]),
|
|
1020
|
+
h("span", { class: "vh-invocation-event__title" }, invocationActivityTitle(activity)),
|
|
1021
|
+
agentConfigurationSummary(activity) ? h("code", { class: "vh-invocation-event__suffix" }, agentConfigurationSummary(activity)) : null,
|
|
1022
|
+
renderDisclosureChevron("vh-invocation-capabilities__disclosure"),
|
|
1023
|
+
]),
|
|
1024
|
+
h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map(item => h("li", { key: item.id }, [
|
|
1025
|
+
item.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(item.body, "vh-invocation-event__markdown")]) : null,
|
|
1026
|
+
item.truncated ? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null,
|
|
1027
|
+
h("button", { class: "vh-invocation-event__inspect", onClick: () => inspect("agent"), type: "button" }, "Inspect agent"),
|
|
1028
|
+
]))),
|
|
1029
|
+
]),
|
|
1030
|
+
]);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
function labelStyle(color: string | undefined): Record<string, string> {
|
|
1034
|
+
const normalized = color?.replace(/^#/, "");
|
|
1035
|
+
if (!normalized || !/^[\da-f]{6}$/i.test(normalized)) return {};
|
|
1036
|
+
const red = Number.parseInt(normalized.slice(0, 2), 16);
|
|
1037
|
+
const green = Number.parseInt(normalized.slice(2, 4), 16);
|
|
1038
|
+
const blue = Number.parseInt(normalized.slice(4, 6), 16);
|
|
1039
|
+
const luminance = (red * 299 + green * 587 + blue * 114) / 1_000;
|
|
1040
|
+
return {
|
|
1041
|
+
"--vh-invocation-label-bg": `#${normalized}`,
|
|
1042
|
+
"--vh-invocation-label-fg": luminance > 150 ? "#1f2328" : "#ffffff",
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
function renderLabelChip(activity: InvocationActivity) {
|
|
1047
|
+
const name = stringAttribute(activity.attributes, "github.label.name");
|
|
1048
|
+
if (!name) return;
|
|
1049
|
+
return h("span", {
|
|
1050
|
+
class: "vh-invocation-lifecycle__label",
|
|
1051
|
+
"data-operation": stringAttribute(activity.attributes, "github.label.operation"),
|
|
1052
|
+
style: labelStyle(stringAttribute(activity.attributes, "github.label.color")),
|
|
1053
|
+
}, name);
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
function groupedActivityTitle(activity: InvocationActivity): string {
|
|
1057
|
+
if (!stringAttribute(activity.attributes, "github.label.name")) return invocationActivityTitle(activity);
|
|
1058
|
+
const operation = stringAttribute(activity.attributes, "github.label.operation")?.toLocaleLowerCase();
|
|
1059
|
+
if (activity.status === "failed") {
|
|
1060
|
+
if (operation === "add" || operation === "added") return "Failed to add label";
|
|
1061
|
+
if (operation === "remove" || operation === "removed") return "Failed to remove label";
|
|
1062
|
+
return "Failed to update label";
|
|
1063
|
+
}
|
|
1064
|
+
if (operation === "add" || operation === "added") return "Added label";
|
|
1065
|
+
if (operation === "remove" || operation === "removed") return "Removed label";
|
|
1066
|
+
return "Updated label";
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
function renderGroupedActivityIcon(activity: InvocationActivity) {
|
|
1070
|
+
if (activity.status === "failed") return renderActivityIcon(activity);
|
|
1071
|
+
if (stringAttribute(activity.attributes, "github.label.name")) return renderNamedActivityIcon("label");
|
|
1072
|
+
const delivery = stringAttribute(activity.attributes, "channel.effect.kind")?.toLocaleLowerCase();
|
|
1073
|
+
if (delivery === "reaction") {
|
|
1074
|
+
const intent = stringAttribute(activity.attributes, "channel.effect.intent")?.toLocaleLowerCase();
|
|
1075
|
+
const reaction = intent === "completed"
|
|
1076
|
+
? { label: "hooray", value: "🎉" }
|
|
1077
|
+
: intent === "failed"
|
|
1078
|
+
? { label: "confused", value: "😕" }
|
|
1079
|
+
: { label: "eyes", value: "👀" };
|
|
1080
|
+
return h("span", { "aria-label": reaction.label, class: "vh-invocation-lifecycle__emoji", role: "img" }, reaction.value);
|
|
1081
|
+
}
|
|
1082
|
+
if (["reply", "status", "update"].includes(delivery ?? "")) return channelIcon(activityChannel(activity));
|
|
1083
|
+
return renderActivityIcon(activity);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
function renderActivityGroup(
|
|
1087
|
+
group: string,
|
|
1088
|
+
activities: readonly InvocationActivity[],
|
|
1089
|
+
inspect: InspectHandler,
|
|
1090
|
+
) {
|
|
1091
|
+
return h("li", {
|
|
1092
|
+
class: "vh-invocation-lifecycle",
|
|
1093
|
+
"data-activity-group": group,
|
|
1094
|
+
key: `activity-group:${group}:${activities[0]?.id}`,
|
|
1095
|
+
}, [
|
|
1096
|
+
h("ol", { "aria-label": group, class: "vh-invocation-lifecycle__rows" }, activities.map(activity => {
|
|
1097
|
+
const target = activity.attributes["vitehub.inspect.target"];
|
|
1098
|
+
const inspectable = target === "agent" || target === "workspace";
|
|
1099
|
+
const rowContent = [
|
|
1100
|
+
renderGroupedActivityIcon(activity),
|
|
1101
|
+
h("span", { class: "vh-invocation-lifecycle__title" }, groupedActivityTitle(activity)),
|
|
1102
|
+
renderLabelChip(activity),
|
|
1103
|
+
!stringAttribute(activity.attributes, "github.label.name") && channelDeliverySummary(activity)
|
|
1104
|
+
? h("code", { class: "vh-invocation-lifecycle__detail" }, channelDeliverySummary(activity))
|
|
1105
|
+
: null,
|
|
1106
|
+
activity.status === "failed" && activity.body
|
|
1107
|
+
? h("span", { class: "vh-invocation-lifecycle__failure" }, activity.body)
|
|
1108
|
+
: null,
|
|
1109
|
+
activity.truncated
|
|
1110
|
+
? h("span", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.")
|
|
1111
|
+
: null,
|
|
1112
|
+
];
|
|
1113
|
+
return h("li", {
|
|
1114
|
+
"data-activity-id": activity.id,
|
|
1115
|
+
"data-kind": activity.kind,
|
|
1116
|
+
"data-status": activity.status,
|
|
1117
|
+
key: activity.id,
|
|
1118
|
+
}, [
|
|
1119
|
+
inspectable
|
|
1120
|
+
? h("button", { class: "vh-invocation-lifecycle__row", onClick: () => inspect(target), type: "button" }, rowContent)
|
|
1121
|
+
: h("div", { class: "vh-invocation-lifecycle__row" }, rowContent),
|
|
1122
|
+
]);
|
|
1123
|
+
})),
|
|
1124
|
+
]);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
function inspectorSection(title: string, body: ReturnType<typeof h>) {
|
|
1128
|
+
return h("section", [h("h4", title), body]);
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
function traceTimeline(invocation: AgentInvocationView, selectActivity: (id: string) => void) {
|
|
1132
|
+
if (!invocationTimeline(invocation).length) return null;
|
|
1133
|
+
return inspectorSection("Trace timeline", h(AgentInvocationTimeline, { invocation, onSelectActivity: selectActivity }));
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
function inspectorRow(label: string, value: string | number | undefined) {
|
|
1137
|
+
if (value === undefined || value === "") return null;
|
|
1138
|
+
return h("div", [h("dt", label), h("dd", String(value))]);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/** The tail of an identifier, so the row gives a visual check without disclosing the whole value. */
|
|
1142
|
+
function shortIdentifier(value: string): string {
|
|
1143
|
+
return value.length > 8 ? `…${value.slice(-6)}` : "…";
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
function copyIcon(copied: boolean) {
|
|
1147
|
+
return h(
|
|
1148
|
+
"svg",
|
|
1149
|
+
{ "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" },
|
|
1150
|
+
copied
|
|
1151
|
+
? [h("path", { d: "m5 12 4 4L19 6", "stroke-linecap": "round", "stroke-linejoin": "round" })]
|
|
1152
|
+
: [
|
|
1153
|
+
h("rect", { height: "13", rx: "2", width: "13", x: "8", y: "8" }),
|
|
1154
|
+
h("path", {
|
|
1155
|
+
d: "M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3",
|
|
1156
|
+
"stroke-linecap": "round",
|
|
1157
|
+
"stroke-linejoin": "round",
|
|
1158
|
+
}),
|
|
1159
|
+
],
|
|
1160
|
+
);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
function statusIcon(status: AgentInvocationView["status"]) {
|
|
1164
|
+
const paths: Record<AgentInvocationView["status"], readonly string[]> = {
|
|
1165
|
+
cancelled: ["M18 6 6 18", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
|
|
1166
|
+
completed: ["m5 12 4 4L19 6"],
|
|
1167
|
+
failed: ["M18 6 6 18", "m6 6 12 12"],
|
|
1168
|
+
pending: ["M12 8v4l3 2", "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20"],
|
|
1169
|
+
running: ["M21 12a9 9 0 1 1-6.219-8.56"],
|
|
1170
|
+
};
|
|
1171
|
+
const iconPaths = Object.hasOwn(paths, status) ? paths[status] : ["M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18"];
|
|
1172
|
+
return h(
|
|
1173
|
+
"svg",
|
|
1174
|
+
{ "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24" },
|
|
1175
|
+
iconPaths.map((path) =>
|
|
1176
|
+
h("path", {
|
|
1177
|
+
d: path,
|
|
1178
|
+
"stroke-linecap": "round",
|
|
1179
|
+
"stroke-linejoin": "round",
|
|
1180
|
+
}),
|
|
1181
|
+
),
|
|
1182
|
+
);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
function sourcePresentation(source: string | { id: string; repository?: string }) {
|
|
1186
|
+
const id = hasRuntimeType(source, "string") ? source : source.id;
|
|
1187
|
+
const repository = hasRuntimeType(source, "string")
|
|
1188
|
+
? /^(?:gh|github):([\w.-]+\/[\w.-]+)(?:\/.*)?$/.exec(source)?.[1]
|
|
1189
|
+
: /^[\w.-]+\/[\w.-]+$/.test(source.repository ?? "") ? source.repository : undefined;
|
|
1190
|
+
return repository
|
|
1191
|
+
? { href: `https://github.com/${repository}`, icon: channelIcon("github"), label: id, title: `${id}: ${repository}` }
|
|
1192
|
+
: { label: id };
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
function inspectorSources(sources: NonNullable<AgentInvocationConfiguration["workspace"]>["sources"] & readonly unknown[]) {
|
|
1196
|
+
return h("div", { class: "vh-invocation-inspector__group" }, [
|
|
1197
|
+
h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Sources"), h("small", sources.length)]),
|
|
1198
|
+
h("div", { class: "vh-invocation-inspector__badges" }, sources.map((source) => {
|
|
1199
|
+
const presentation = sourcePresentation(source);
|
|
1200
|
+
const children = [presentation.icon, h("span", presentation.label)];
|
|
1201
|
+
return presentation.href
|
|
1202
|
+
? h("a", { class: "vh-invocation-inspector__badge", href: presentation.href, rel: "noreferrer", target: "_blank", title: presentation.title }, children)
|
|
1203
|
+
: h("span", { class: "vh-invocation-inspector__badge" }, children);
|
|
1204
|
+
})),
|
|
1205
|
+
]);
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
function inspectorChannels(channels: NonNullable<AgentInvocationConfiguration["channels"]>) {
|
|
1209
|
+
return h("div", { class: "vh-invocation-inspector__group" }, [
|
|
1210
|
+
h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Channels"), h("small", channels.length)]),
|
|
1211
|
+
h("div", { class: "vh-invocation-inspector__badges" }, channels.map((channel) => {
|
|
1212
|
+
return h("span", { class: "vh-invocation-inspector__badge" }, [
|
|
1213
|
+
channelIcon(channel.kind),
|
|
1214
|
+
h("span", channel.id),
|
|
1215
|
+
]);
|
|
1216
|
+
})),
|
|
1217
|
+
]);
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
function isRecordedChannel(value: unknown): value is NonNullable<AgentInvocationConfiguration["channels"]>[number] {
|
|
1221
|
+
if (value === null || !hasRuntimeType(value, "object") || Array.isArray(value)) return false;
|
|
1222
|
+
// SAFETY: The guard above establishes a non-null, non-array object; its field values remain unknown until checked below.
|
|
1223
|
+
const channel = value as Record<string, unknown>;
|
|
1224
|
+
return Object.hasOwn(channel, "id")
|
|
1225
|
+
&& hasRuntimeType(channel.id, "string")
|
|
1226
|
+
&& Object.hasOwn(channel, "kind")
|
|
1227
|
+
&& hasRuntimeType(channel.kind, "string");
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
function inspectorExecution(configuration: AgentInvocationConfiguration) {
|
|
1231
|
+
const model = configuration.driver?.model;
|
|
1232
|
+
const modelId = model?.id;
|
|
1233
|
+
const maker = invocationModelMaker(modelId);
|
|
1234
|
+
const provider = invocationBrand(model?.provider ?? configuration.driver?.provider);
|
|
1235
|
+
const runtime = configuration.runtime?.name;
|
|
1236
|
+
if (!modelId && !provider && (!runtime || runtime === "unknown")) return null;
|
|
1237
|
+
return h("div", { class: "vh-invocation-inspector__group vh-invocation-inspector__group--execution" }, [
|
|
1238
|
+
h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Model")]),
|
|
1239
|
+
h("div", { class: "vh-invocation-execution" }, [
|
|
1240
|
+
modelId || provider ? h("div", { class: "vh-invocation-execution__model" }, [
|
|
1241
|
+
invocationBrandMark(maker ?? provider ?? { id: "fallback", label: "Model" }, "vh-invocation-execution__model-icon"),
|
|
1242
|
+
h("div", { class: "vh-invocation-execution__details" }, [
|
|
1243
|
+
h("strong", modelId ? invocationModelName(modelId) : provider?.label),
|
|
1244
|
+
modelId && provider ? h("span", { class: "vh-invocation-execution__provider" }, [
|
|
1245
|
+
invocationBrandMark(provider, "vh-invocation-execution__provider-icon"), provider.label,
|
|
1246
|
+
]) : null,
|
|
1247
|
+
]),
|
|
1248
|
+
]) : null,
|
|
1249
|
+
runtime && runtime !== "unknown" ? h("dl", { class: "vh-invocation-inspector__list vh-invocation-execution__runtime" }, [
|
|
1250
|
+
inspectorRow("Runtime", runtime),
|
|
1251
|
+
]) : null,
|
|
1252
|
+
]),
|
|
1253
|
+
]);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
function inspectorTools(
|
|
1257
|
+
tools: NonNullable<AgentInvocationConfiguration["tools"]>,
|
|
1258
|
+
counts: ReadonlyMap<string, number>,
|
|
1259
|
+
selectTool: (name: string) => void,
|
|
1260
|
+
) {
|
|
1261
|
+
const rows = [...tools].sort((left, right) =>
|
|
1262
|
+
(counts.get(right.name) ?? 0) - (counts.get(left.name) ?? 0)
|
|
1263
|
+
|| left.name.localeCompare(right.name),
|
|
1264
|
+
);
|
|
1265
|
+
const used = rows.filter(tool => (counts.get(tool.name) ?? 0) > 0).length;
|
|
1266
|
+
return h("div", { class: "vh-invocation-inspector__group" }, [
|
|
1267
|
+
h("div", { class: "vh-invocation-inspector__group-heading" }, [
|
|
1268
|
+
h("strong", "Tools"),
|
|
1269
|
+
h("small", `${used} of ${rows.length} used`),
|
|
1270
|
+
]),
|
|
1271
|
+
h(ToolList, { calls: Object.fromEntries(counts), onSelect: selectTool, tools: rows }),
|
|
1272
|
+
]);
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
function inspectorDisclosure(
|
|
1276
|
+
title: string,
|
|
1277
|
+
summary: string,
|
|
1278
|
+
body: ReturnType<typeof h>,
|
|
1279
|
+
) {
|
|
1280
|
+
return h(
|
|
1281
|
+
"details",
|
|
1282
|
+
{ class: "vh-invocation-inspector__group vh-invocation-inspector__disclosure" },
|
|
1283
|
+
[
|
|
1284
|
+
h("summary", { class: "vh-invocation-inspector__group-heading" }, [
|
|
1285
|
+
h("strong", title),
|
|
1286
|
+
h("small", summary),
|
|
1287
|
+
renderDisclosureChevron("vh-invocation-inspector__chevron"),
|
|
1288
|
+
]),
|
|
1289
|
+
body,
|
|
1290
|
+
],
|
|
1291
|
+
);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
function renderConfiguration(
|
|
1295
|
+
configuration: AgentInvocationConfiguration,
|
|
1296
|
+
invocation: AgentInvocationView,
|
|
1297
|
+
showSources: boolean,
|
|
1298
|
+
showCapabilities: boolean,
|
|
1299
|
+
selectTool: (name: string) => void,
|
|
1300
|
+
) {
|
|
1301
|
+
const recordedTools = Array.isArray(configuration.tools) ? configuration.tools : [];
|
|
1302
|
+
const tools = recordedTools.filter(tool => tool && typeof tool.name === "string");
|
|
1303
|
+
const channelsCatalogMalformed = configuration.channels !== undefined && !Array.isArray(configuration.channels);
|
|
1304
|
+
const recordedChannels = Array.isArray(configuration.channels) ? configuration.channels : [];
|
|
1305
|
+
const channels = recordedChannels.filter(isRecordedChannel);
|
|
1306
|
+
configuration = {
|
|
1307
|
+
...configuration,
|
|
1308
|
+
channels,
|
|
1309
|
+
tools,
|
|
1310
|
+
truncated: configuration.truncated || tools.length !== recordedTools.length || channelsCatalogMalformed
|
|
1311
|
+
|| channels.length !== recordedChannels.length,
|
|
1312
|
+
};
|
|
1313
|
+
const driver = driverLabel(configuration);
|
|
1314
|
+
const workspace = workspaceLabel(configuration);
|
|
1315
|
+
const setup = [
|
|
1316
|
+
inspectorRow("Driver", driver),
|
|
1317
|
+
inspectorRow("Runtime", configuration.runtime?.name === "unknown" ? undefined : configuration.runtime?.name),
|
|
1318
|
+
inspectorRow("Workspace", workspace),
|
|
1319
|
+
].filter((item) => item !== null);
|
|
1320
|
+
const execution = inspectorExecution(configuration);
|
|
1321
|
+
const groups = [
|
|
1322
|
+
execution,
|
|
1323
|
+
!execution && setup.length
|
|
1324
|
+
? h("div", { class: "vh-invocation-inspector__group" }, [
|
|
1325
|
+
h("div", { class: "vh-invocation-inspector__group-heading" }, [
|
|
1326
|
+
h("strong", "Execution"),
|
|
1327
|
+
]),
|
|
1328
|
+
h("dl", { class: "vh-invocation-inspector__list" }, setup),
|
|
1329
|
+
])
|
|
1330
|
+
: null,
|
|
1331
|
+
showSources && configuration.workspace?.sources?.length
|
|
1332
|
+
? inspectorSources(configuration.workspace.sources)
|
|
1333
|
+
: null,
|
|
1334
|
+
configuration.channels?.length
|
|
1335
|
+
? inspectorChannels(configuration.channels)
|
|
1336
|
+
: null,
|
|
1337
|
+
showCapabilities && configuration.capabilities?.length
|
|
1338
|
+
? h("div", { class: "vh-invocation-inspector__group" }, [
|
|
1339
|
+
h("div", { class: "vh-invocation-inspector__group-heading" }, [
|
|
1340
|
+
h("strong", "Capabilities"),
|
|
1341
|
+
h("small", configuration.capabilities.length),
|
|
1342
|
+
]),
|
|
1343
|
+
h(
|
|
1344
|
+
"div",
|
|
1345
|
+
{ class: "vh-invocation-inspector__stack" },
|
|
1346
|
+
configuration.capabilities.map((capability) => {
|
|
1347
|
+
const tools = configuration.tools?.filter(tool => tool.capabilityId === capability.id) || [];
|
|
1348
|
+
return h("details", { class: "vh-invocation-inspector__item-disclosure", key: capability.id }, [
|
|
1349
|
+
h("summary", [
|
|
1350
|
+
h("code", capability.id),
|
|
1351
|
+
h("small", tools.length ? `${tools.length} tool${tools.length === 1 ? "" : "s"}` : "Configuration"),
|
|
1352
|
+
renderDisclosureChevron("vh-invocation-inspector__chevron"),
|
|
1353
|
+
]),
|
|
1354
|
+
tools.length ? h(ToolList, { tools, calls: Object.fromEntries(invocationToolUsage(invocation)), onSelect: selectTool }) : null,
|
|
1355
|
+
capability.metadata ? h("details", { class: "vh-invocation-inspector__settings" }, [
|
|
1356
|
+
h("summary", "Configuration"),
|
|
1357
|
+
h("pre", payloadText(capability.metadata)),
|
|
1358
|
+
]) : null,
|
|
1359
|
+
!tools.length && !capability.metadata ? h("p", "No tools or configuration recorded.") : null,
|
|
1360
|
+
]);
|
|
1361
|
+
}),
|
|
1362
|
+
),
|
|
1363
|
+
])
|
|
1364
|
+
: null,
|
|
1365
|
+
configuration.tools?.some(tool => !showCapabilities || !configuration.capabilities?.some(capability => capability.id === tool.capabilityId))
|
|
1366
|
+
? inspectorTools(configuration.tools.filter(tool => !showCapabilities || !configuration.capabilities?.some(capability => capability.id === tool.capabilityId)), invocationToolUsage(invocation), selectTool)
|
|
1367
|
+
: null,
|
|
1368
|
+
configuration.instructions?.length
|
|
1369
|
+
? inspectorDisclosure(
|
|
1370
|
+
"Instructions",
|
|
1371
|
+
`${configuration.instructions.length} block${configuration.instructions.length === 1 ? "" : "s"}`,
|
|
1372
|
+
h(
|
|
1373
|
+
"pre",
|
|
1374
|
+
{ class: "vh-invocation-inspector__instructions" },
|
|
1375
|
+
configuration.instructions.join("\n\n"),
|
|
1376
|
+
),
|
|
1377
|
+
)
|
|
1378
|
+
: null,
|
|
1379
|
+
].filter((item) => item !== null);
|
|
1380
|
+
return groups.length || configuration.truncated
|
|
1381
|
+
? [inspectorSection("Agent setup", h("div", { class: "vh-invocation-inspector__groups" }, [
|
|
1382
|
+
configuration.truncated
|
|
1383
|
+
? h("p", { class: "vh-invocation-inspector__notice", role: "note" },
|
|
1384
|
+
"Some setup values were shortened when this run was recorded.")
|
|
1385
|
+
: null,
|
|
1386
|
+
...groups,
|
|
1387
|
+
]))]
|
|
1388
|
+
: [];
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
function renderInvocationActivity(
|
|
1392
|
+
activity: InvocationActivity,
|
|
1393
|
+
expanded: ReadonlySet<string>,
|
|
1394
|
+
toggleExpanded: (id: string) => void,
|
|
1395
|
+
inspect: InspectHandler,
|
|
1396
|
+
messageRendering: MessageRendering,
|
|
1397
|
+
openActivities: ReadonlySet<string>,
|
|
1398
|
+
setActivityOpen: (id: string, open: boolean) => void,
|
|
1399
|
+
insideWork = false,
|
|
1400
|
+
) {
|
|
1401
|
+
return activity.kind === "message"
|
|
1402
|
+
? renderMessage(activity, expanded, toggleExpanded, messageRendering, insideWork)
|
|
1403
|
+
: renderEvent(activity, inspect, openActivities, setActivityOpen);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
function renderActivitySequence(
|
|
1407
|
+
activities: readonly InvocationActivity[],
|
|
1408
|
+
invocation: AgentInvocationView,
|
|
1409
|
+
expanded: ReadonlySet<string>,
|
|
1410
|
+
toggleExpanded: (id: string) => void,
|
|
1411
|
+
inspect: InspectHandler,
|
|
1412
|
+
messageRendering: MessageRendering,
|
|
1413
|
+
openActivities: ReadonlySet<string>,
|
|
1414
|
+
setActivityOpen: (id: string, open: boolean) => void,
|
|
1415
|
+
insideWork = false,
|
|
1416
|
+
) {
|
|
1417
|
+
const rendered = [];
|
|
1418
|
+
for (let index = 0; index < activities.length;) {
|
|
1419
|
+
const group = activityGroup(activities[index]!);
|
|
1420
|
+
if (group) {
|
|
1421
|
+
let end = index + 1;
|
|
1422
|
+
while (activityGroup(activities[end]) === group) end += 1;
|
|
1423
|
+
rendered.push(group === "agent-capability-lifecycle"
|
|
1424
|
+
? renderCapabilityGroup(activities.slice(index, end), inspect, openActivities, setActivityOpen)
|
|
1425
|
+
: group === "agent-configuration-lifecycle"
|
|
1426
|
+
? renderAgentConfigurationGroup(activities.slice(index, end), inspect)
|
|
1427
|
+
: renderActivityGroup(group, activities.slice(index, end), inspect));
|
|
1428
|
+
index = end;
|
|
1429
|
+
continue;
|
|
1430
|
+
}
|
|
1431
|
+
if (activities[index]!.kind !== "preparation") {
|
|
1432
|
+
rendered.push(renderInvocationActivity(activities[index]!, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, insideWork));
|
|
1433
|
+
index += 1;
|
|
1434
|
+
continue;
|
|
1435
|
+
}
|
|
1436
|
+
let end = index + 1;
|
|
1437
|
+
while (activities[end]?.kind === "preparation") end += 1;
|
|
1438
|
+
rendered.push(renderPreparationGroup(activities.slice(index, end), invocation, inspect));
|
|
1439
|
+
index = end;
|
|
1440
|
+
}
|
|
1441
|
+
return rendered;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
function renderWorkSummary(
|
|
1445
|
+
activities: readonly InvocationActivity[],
|
|
1446
|
+
invocation: AgentInvocationView,
|
|
1447
|
+
expanded: ReadonlySet<string>,
|
|
1448
|
+
open: boolean,
|
|
1449
|
+
setOpen: (open: boolean) => void,
|
|
1450
|
+
toggleExpanded: (id: string) => void,
|
|
1451
|
+
inspect: InspectHandler,
|
|
1452
|
+
messageRendering: MessageRendering,
|
|
1453
|
+
openActivities: ReadonlySet<string>,
|
|
1454
|
+
setActivityOpen: (id: string, open: boolean) => void,
|
|
1455
|
+
) {
|
|
1456
|
+
if (!activities.length) return null;
|
|
1457
|
+
const active = invocation.status === "pending" || invocation.status === "running";
|
|
1458
|
+
const detailsOpen = active || open;
|
|
1459
|
+
const endedAt = invocation.completedAt ?? invocation.failedAt ?? invocation.cancelledAt ?? invocation.updatedAt;
|
|
1460
|
+
const duration = formatDuration(invocation.startedAt, endedAt);
|
|
1461
|
+
const elapsed = active ? formatElapsed(invocation.startedAt, messageRendering.liveNow) : undefined;
|
|
1462
|
+
return h("li", { class: "vh-invocation-work", key: "invocation-work" }, [
|
|
1463
|
+
h("details", {
|
|
1464
|
+
class: "vh-invocation-work__details",
|
|
1465
|
+
// SAFETY: DOM toggle events for this details element expose HTMLDetailsElement as currentTarget.
|
|
1466
|
+
onToggle: (event: Event) => setOpen((event.currentTarget as HTMLDetailsElement).open),
|
|
1467
|
+
open: detailsOpen,
|
|
1468
|
+
}, [
|
|
1469
|
+
h("summary", { class: "vh-invocation-work__summary" }, [
|
|
1470
|
+
h("span", { class: "vh-invocation-work__title" }, active
|
|
1471
|
+
? "Working…"
|
|
1472
|
+
: duration
|
|
1473
|
+
? `${invocation.status === "cancelled" ? "Cancelled after" : "Worked for"} ${duration}`
|
|
1474
|
+
: invocation.status === "cancelled" ? "Cancelled" : "Work details"),
|
|
1475
|
+
elapsed ? h("time", { class: "vh-invocation-work__elapsed", datetime: invocation.startedAt }, elapsed) : null,
|
|
1476
|
+
renderDisclosureChevron("vh-invocation-work__disclosure"),
|
|
1477
|
+
]),
|
|
1478
|
+
h("div", { "aria-hidden": "true", class: "vh-invocation-work__divider" }),
|
|
1479
|
+
detailsOpen
|
|
1480
|
+
? h("ol", { class: "vh-invocation-work__activities" }, renderActivitySequence(activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, true))
|
|
1481
|
+
: null,
|
|
1482
|
+
]),
|
|
1483
|
+
]);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
function renderPreviousMessages(
|
|
1487
|
+
messages: readonly InvocationActivity[],
|
|
1488
|
+
invocation: AgentInvocationView,
|
|
1489
|
+
expanded: ReadonlySet<string>,
|
|
1490
|
+
toggleExpanded: (id: string) => void,
|
|
1491
|
+
inspect: InspectHandler,
|
|
1492
|
+
messageRendering: MessageRendering,
|
|
1493
|
+
openActivities: ReadonlySet<string>,
|
|
1494
|
+
setActivityOpen: (id: string, open: boolean) => void,
|
|
1495
|
+
) {
|
|
1496
|
+
if (!messages.length) return null;
|
|
1497
|
+
return h("li", { class: "vh-invocation-history", key: "invocation-history" }, [
|
|
1498
|
+
h("details", { class: "vh-invocation-history__details" }, [
|
|
1499
|
+
h("summary", { class: "vh-invocation-history__summary" }, [
|
|
1500
|
+
h("span", `${messages.length} previous ${messages.length === 1 ? "message" : "messages"}`),
|
|
1501
|
+
renderDisclosureChevron("vh-invocation-history__disclosure"),
|
|
1502
|
+
]),
|
|
1503
|
+
h("ol", { class: "vh-invocation-history__messages" },
|
|
1504
|
+
renderActivitySequence(messages, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)),
|
|
1505
|
+
]),
|
|
1506
|
+
]);
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
function invocationPromptMetadata(invocation: AgentInvocationView, promptId: string | undefined) {
|
|
1510
|
+
if (promptId === undefined) return {};
|
|
1511
|
+
const triggeredBy = stringAttribute(invocation.annotations ?? {}, "triggeredBy");
|
|
1512
|
+
const observationAttributes = invocation.observations
|
|
1513
|
+
.map(observation => observation.attributes ?? {})
|
|
1514
|
+
.find(attributes => stringAttribute(attributes, "agent.invoker.label") || stringAttribute(attributes, "agent.invoker.id"));
|
|
1515
|
+
const author = triggeredBy?.trim()
|
|
1516
|
+
? triggeredBy.trim()
|
|
1517
|
+
: stringAttribute(observationAttributes ?? {}, "agent.invoker.label")
|
|
1518
|
+
?? stringAttribute(observationAttributes ?? {}, "agent.invoker.id");
|
|
1519
|
+
return { author, promptId, sentAt: stringAttribute(invocation.annotations ?? {}, "channel.sentAt") };
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
function renderInvocationActivities(
|
|
1523
|
+
conversation: InvocationConversation,
|
|
1524
|
+
invocation: AgentInvocationView,
|
|
1525
|
+
expanded: ReadonlySet<string>,
|
|
1526
|
+
workOpen: boolean,
|
|
1527
|
+
setWorkOpen: (open: boolean) => void,
|
|
1528
|
+
toggleExpanded: (id: string) => void,
|
|
1529
|
+
inspect: InspectHandler,
|
|
1530
|
+
messageRendering: MessageRendering,
|
|
1531
|
+
openActivities: ReadonlySet<string>,
|
|
1532
|
+
setActivityOpen: (id: string, open: boolean) => void,
|
|
1533
|
+
) {
|
|
1534
|
+
if (conversation.kind === "activities") {
|
|
1535
|
+
return renderActivitySequence(conversation.activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen);
|
|
1536
|
+
}
|
|
1537
|
+
return [
|
|
1538
|
+
renderPreviousMessages(conversation.history, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
|
|
1539
|
+
conversation.prompt ? renderInvocationActivity(conversation.prompt, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) : null,
|
|
1540
|
+
renderWorkSummary(conversation.work, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
|
|
1541
|
+
...conversation.answers.map(activity => renderInvocationActivity(activity, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)),
|
|
1542
|
+
...renderActivitySequence(conversation.followup, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
|
|
1543
|
+
].filter(item => item !== null);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
// The public `vite-hub/console/ui` entry emits declarations with isolatedDeclarations, so the
|
|
1547
|
+
// exported components spell out the prop and emit options that `defineComponent` infers.
|
|
1548
|
+
type AgentInvocationPropOptions = {
|
|
1549
|
+
header: { default: boolean; type: BooleanConstructor };
|
|
1550
|
+
invocation: { required: true; type: PropType<AgentInvocationView> };
|
|
1551
|
+
selectedActivityId: { default: undefined; type: StringConstructor };
|
|
1552
|
+
workspaceInspectable: { default: boolean; type: BooleanConstructor };
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
type AgentInvocationEmits = {
|
|
1556
|
+
inspect: (target: InspectTarget, path?: string) => boolean;
|
|
1557
|
+
};
|
|
1558
|
+
|
|
1559
|
+
const agentInvocation = defineComponent({
|
|
1560
|
+
name: "AgentInvocation",
|
|
1561
|
+
emits: {
|
|
1562
|
+
inspect: (target: InspectTarget, path?: string) => (target === "agent" || target === "workspace") && (path === undefined || hasRuntimeType(path, "string")),
|
|
1563
|
+
},
|
|
1564
|
+
props: {
|
|
1565
|
+
header: { default: true, type: Boolean },
|
|
1566
|
+
invocation: { required: true, type: Object as PropType<AgentInvocationView> },
|
|
1567
|
+
selectedActivityId: { default: undefined, type: String },
|
|
1568
|
+
workspaceInspectable: { default: true, type: Boolean },
|
|
1569
|
+
},
|
|
1570
|
+
setup(props, { emit, slots }) {
|
|
1571
|
+
const activities = computed(() => invocationActivities(props.invocation).map((activity) => {
|
|
1572
|
+
if (props.workspaceInspectable) return activity;
|
|
1573
|
+
const attributes = { ...activity.attributes };
|
|
1574
|
+
delete attributes["vitehub.inspect.target"];
|
|
1575
|
+
return { ...activity, attributes, skill: undefined, skills: undefined };
|
|
1576
|
+
}));
|
|
1577
|
+
const conversation = computed(() => buildInvocationConversation(activities.value));
|
|
1578
|
+
const expandedMessages = ref<ReadonlySet<string>>(new Set());
|
|
1579
|
+
const mounted = useMounted();
|
|
1580
|
+
const now = useNow({ scheduler: (tick) => useIntervalFn(tick, 60_000) });
|
|
1581
|
+
const liveNow = ref<Date>();
|
|
1582
|
+
let liveClock: ReturnType<typeof setInterval> | undefined;
|
|
1583
|
+
const workOpen = ref(false);
|
|
1584
|
+
const openActivities = ref<ReadonlySet<string>>(new Set());
|
|
1585
|
+
const messageCopy = ref<{ id: string; status: "copied" | "failed" }>();
|
|
1586
|
+
const root = ref<HTMLElement>();
|
|
1587
|
+
let selectedElement: HTMLElement | undefined;
|
|
1588
|
+
let copyTimer: ReturnType<typeof setTimeout> | undefined;
|
|
1589
|
+
|
|
1590
|
+
function toggleExpanded(id: string) {
|
|
1591
|
+
const next = new Set(expandedMessages.value);
|
|
1592
|
+
if (next.has(id)) next.delete(id);
|
|
1593
|
+
else next.add(id);
|
|
1594
|
+
expandedMessages.value = next;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
function setActivityOpen(id: string, open: boolean) {
|
|
1598
|
+
const next = new Set(openActivities.value);
|
|
1599
|
+
if (open) next.add(id);
|
|
1600
|
+
else next.delete(id);
|
|
1601
|
+
openActivities.value = next;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
function inspectWorkspaceArtifact(event: MouseEvent) {
|
|
1605
|
+
if (!props.workspaceInspectable || event.defaultPrevented || event.button !== 0) return;
|
|
1606
|
+
const target = event.target instanceof Element ? event.target.closest<HTMLAnchorElement>("a[href]") : undefined;
|
|
1607
|
+
const path = target ? workspaceArtifactPath(target.getAttribute("href") || "") : undefined;
|
|
1608
|
+
if (!path) return;
|
|
1609
|
+
event.preventDefault();
|
|
1610
|
+
emit("inspect", "workspace", path);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
function clearSelectedElement() {
|
|
1614
|
+
if (!selectedElement) return;
|
|
1615
|
+
selectedElement.removeAttribute("data-selected");
|
|
1616
|
+
selectedElement.removeAttribute("tabindex");
|
|
1617
|
+
selectedElement = undefined;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
async function copyMessage(activity: InvocationActivity) {
|
|
1621
|
+
try {
|
|
1622
|
+
if (!navigator.clipboard) throw new Error("Clipboard unavailable");
|
|
1623
|
+
const url = agentInvocationExternalUrl(props.invocation);
|
|
1624
|
+
const metadata = [
|
|
1625
|
+
`Invocation ID: ${props.invocation.id}`,
|
|
1626
|
+
`Trace ID: ${props.invocation.traceId}`,
|
|
1627
|
+
props.invocation.agentName ? `Agent: ${props.invocation.agentName}` : undefined,
|
|
1628
|
+
url ? `URL: ${url}` : undefined,
|
|
1629
|
+
].filter((value): value is string => value !== undefined);
|
|
1630
|
+
await navigator.clipboard.writeText(`${activity.body ?? ""}\n\n${metadata.join("\n")}`);
|
|
1631
|
+
messageCopy.value = { id: activity.id, status: "copied" };
|
|
1632
|
+
}
|
|
1633
|
+
catch {
|
|
1634
|
+
messageCopy.value = { id: activity.id, status: "failed" };
|
|
1635
|
+
}
|
|
1636
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
1637
|
+
copyTimer = setTimeout(() => messageCopy.value = undefined, 2_000);
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
async function focusActivity(id: string | undefined) {
|
|
1641
|
+
if (id) {
|
|
1642
|
+
workOpen.value = true;
|
|
1643
|
+
setActivityOpen(id, true);
|
|
1644
|
+
}
|
|
1645
|
+
await nextTick();
|
|
1646
|
+
const target = [...(root.value?.querySelectorAll<HTMLElement>("[data-activity-id]") ?? [])]
|
|
1647
|
+
.find(element => element.dataset.activityId === id);
|
|
1648
|
+
if (target && target === selectedElement) return;
|
|
1649
|
+
clearSelectedElement();
|
|
1650
|
+
if (!id) return;
|
|
1651
|
+
if (!target) return;
|
|
1652
|
+
let details = target.closest("details");
|
|
1653
|
+
while (details) {
|
|
1654
|
+
details.open = true;
|
|
1655
|
+
details = details.parentElement?.closest("details") ?? null;
|
|
1656
|
+
}
|
|
1657
|
+
target.dataset.selected = "true";
|
|
1658
|
+
target.tabIndex = -1;
|
|
1659
|
+
target.focus({ preventScroll: true });
|
|
1660
|
+
const reduceMotion = "matchMedia" in globalThis && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1661
|
+
target.scrollIntoView?.({ behavior: reduceMotion ? "auto" : "smooth", block: "center" });
|
|
1662
|
+
selectedElement = target;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
watch([() => props.selectedActivityId, activities], ([id]) => void focusActivity(id), { flush: "post", immediate: true });
|
|
1666
|
+
watch(() => props.invocation.id, () => {
|
|
1667
|
+
workOpen.value = false;
|
|
1668
|
+
openActivities.value = new Set();
|
|
1669
|
+
messageCopy.value = undefined;
|
|
1670
|
+
});
|
|
1671
|
+
watch(() => props.invocation.status, (status, previousStatus) => {
|
|
1672
|
+
if ((previousStatus === "pending" || previousStatus === "running")
|
|
1673
|
+
&& status !== "pending" && status !== "running") workOpen.value = false;
|
|
1674
|
+
});
|
|
1675
|
+
// The elapsed time of a live session ticks every second; a settled session shows its fixed duration.
|
|
1676
|
+
watch([() => props.invocation.status === "pending" || props.invocation.status === "running", mounted], ([live, isMounted]) => {
|
|
1677
|
+
if (liveClock) clearInterval(liveClock);
|
|
1678
|
+
liveClock = undefined;
|
|
1679
|
+
liveNow.value = live && isMounted ? new Date() : undefined;
|
|
1680
|
+
if (live && isMounted) liveClock = setInterval(() => liveNow.value = new Date(), 1_000);
|
|
1681
|
+
}, { immediate: true });
|
|
1682
|
+
onBeforeUnmount(() => {
|
|
1683
|
+
clearSelectedElement();
|
|
1684
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
1685
|
+
if (liveClock) clearInterval(liveClock);
|
|
1686
|
+
});
|
|
1687
|
+
|
|
1688
|
+
return () => {
|
|
1689
|
+
const promptMetadata = invocationPromptMetadata(props.invocation, conversation.value.promptId);
|
|
1690
|
+
return h("article", {
|
|
1691
|
+
class: ["vh-invocation-session", { "vh-invocation-session--headerless": !props.header }],
|
|
1692
|
+
"data-status": props.invocation.status,
|
|
1693
|
+
"data-slot": "invocation",
|
|
1694
|
+
onClick: inspectWorkspaceArtifact,
|
|
1695
|
+
ref: root,
|
|
1696
|
+
}, [
|
|
1697
|
+
props.header ? h("header", { class: "vh-invocation-header" }, [
|
|
1698
|
+
h("div", { class: "vh-invocation-header__breadcrumb", title: `${agentInvocationProject(props.invocation)} / ${agentInvocationTitle(props.invocation)}` }, [
|
|
1699
|
+
h("span", { class: "vh-invocation-header__project-icon" }, [renderFolderIcon()]),
|
|
1700
|
+
h("span", { class: "vh-invocation-header__project" }, agentInvocationProject(props.invocation)),
|
|
1701
|
+
h("span", { "aria-hidden": "true", class: "vh-invocation-header__separator" }, "/"),
|
|
1702
|
+
h("h2", slots.title?.({ invocation: props.invocation }) ?? agentInvocationTitle(props.invocation)),
|
|
1703
|
+
]),
|
|
1704
|
+
slots.actions?.({ invocation: props.invocation }),
|
|
1705
|
+
]) : null,
|
|
1706
|
+
h("div", { class: "vh-invocation-thread" }, [
|
|
1707
|
+
h("div", { class: "vh-invocation-thread__content" }, [
|
|
1708
|
+
invocationTimestamp(props.invocation),
|
|
1709
|
+
h("div", {
|
|
1710
|
+
"aria-label": "Session thread",
|
|
1711
|
+
"aria-relevant": "additions text",
|
|
1712
|
+
role: "log",
|
|
1713
|
+
}, [h("ol", { class: "vh-invocation-activities" }, renderInvocationActivities(
|
|
1714
|
+
conversation.value,
|
|
1715
|
+
props.invocation,
|
|
1716
|
+
expandedMessages.value,
|
|
1717
|
+
workOpen.value,
|
|
1718
|
+
open => workOpen.value = open,
|
|
1719
|
+
toggleExpanded,
|
|
1720
|
+
(target, path) => path === undefined
|
|
1721
|
+
? emit("inspect", target)
|
|
1722
|
+
: emit("inspect", target, path),
|
|
1723
|
+
{
|
|
1724
|
+
...promptMetadata,
|
|
1725
|
+
now: now.value,
|
|
1726
|
+
liveNow: liveNow.value,
|
|
1727
|
+
mounted: mounted.value,
|
|
1728
|
+
copy: activity => void copyMessage(activity),
|
|
1729
|
+
copiedId: messageCopy.value?.id,
|
|
1730
|
+
copyStatus: messageCopy.value?.status,
|
|
1731
|
+
},
|
|
1732
|
+
openActivities.value,
|
|
1733
|
+
setActivityOpen,
|
|
1734
|
+
))]),
|
|
1735
|
+
activities.value.length || props.invocation.error
|
|
1736
|
+
? null
|
|
1737
|
+
: h("div", { class: "vh-invocation-empty", role: "status" }, [h("p", "Waiting for the first update…")]),
|
|
1738
|
+
props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null,
|
|
1739
|
+
slots.footer?.({ invocation: props.invocation }),
|
|
1740
|
+
]),
|
|
1741
|
+
]),
|
|
1742
|
+
]);
|
|
1743
|
+
};
|
|
1744
|
+
},
|
|
1745
|
+
});
|
|
1746
|
+
|
|
1747
|
+
export const AgentInvocation: DefineComponent<AgentInvocationPropOptions, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, AgentInvocationEmits> = agentInvocation;
|
|
1748
|
+
|
|
1749
|
+
type AgentInvocationInspectorPropOptions = {
|
|
1750
|
+
invocation: { required: true; type: PropType<AgentInvocationView> };
|
|
1751
|
+
showStatus: { default: boolean; type: BooleanConstructor };
|
|
1752
|
+
showCapabilities: { default: boolean; type: BooleanConstructor };
|
|
1753
|
+
showTimeline: { default: boolean; type: BooleanConstructor };
|
|
1754
|
+
showSources: { default: boolean; type: BooleanConstructor };
|
|
1755
|
+
showError: { default: boolean; type: BooleanConstructor };
|
|
1756
|
+
};
|
|
1757
|
+
|
|
1758
|
+
type AgentInvocationInspectorEmits = {
|
|
1759
|
+
selectActivity: (id: string) => boolean;
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
const agentInvocationInspector = defineComponent({
|
|
1763
|
+
name: "AgentInvocationInspector",
|
|
1764
|
+
emits: {
|
|
1765
|
+
selectActivity: (id: string) => Boolean(id),
|
|
1766
|
+
},
|
|
1767
|
+
props: {
|
|
1768
|
+
invocation: { required: true, type: Object as PropType<AgentInvocationView> },
|
|
1769
|
+
showStatus: { default: true, type: Boolean },
|
|
1770
|
+
showCapabilities: { default: false, type: Boolean },
|
|
1771
|
+
showTimeline: { default: true, type: Boolean },
|
|
1772
|
+
showSources: { default: true, type: Boolean },
|
|
1773
|
+
showError: { default: true, type: Boolean },
|
|
1774
|
+
},
|
|
1775
|
+
setup(props, { emit, slots }) {
|
|
1776
|
+
const activities = computed(() => invocationActivities(props.invocation));
|
|
1777
|
+
const conversation = computed(() => buildInvocationConversation(activities.value));
|
|
1778
|
+
const copied = ref<"invocation" | "trace">();
|
|
1779
|
+
const copyError = ref<"invocation" | "trace">();
|
|
1780
|
+
let copyTimer: ReturnType<typeof setTimeout> | undefined;
|
|
1781
|
+
const metrics = computed(() => ({
|
|
1782
|
+
changes: activities.value.filter((activity) => activity.kind === "change").length,
|
|
1783
|
+
messages: (conversation.value.kind === "activities"
|
|
1784
|
+
? conversation.value.activities
|
|
1785
|
+
: [...conversation.value.history, ...(conversation.value.prompt ? [conversation.value.prompt] : []), ...conversation.value.work, ...conversation.value.answers, ...conversation.value.followup])
|
|
1786
|
+
.filter(activity => activity.kind === "message").length,
|
|
1787
|
+
steps: activities.value.filter((activity) =>
|
|
1788
|
+
activity.kind !== "message" && activity.name !== "vitehub.observation.truncated"
|
|
1789
|
+
).length,
|
|
1790
|
+
tokens: latestInvocationTokens(activities.value),
|
|
1791
|
+
toolCalls: [...invocationToolUsage(props.invocation).values()].reduce((total, count) => total + count, 0),
|
|
1792
|
+
}));
|
|
1793
|
+
|
|
1794
|
+
function selectTool(name: string) {
|
|
1795
|
+
const call = activities.value.find(activity => activity.attributes["tool.name"] === name);
|
|
1796
|
+
if (call) emit("selectActivity", call.id);
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
async function copyIdentifier(kind: "invocation" | "trace", value: string | undefined) {
|
|
1800
|
+
if (!value) return;
|
|
1801
|
+
copyError.value = undefined;
|
|
1802
|
+
await nextTick();
|
|
1803
|
+
if (!("navigator" in globalThis) || !navigator.clipboard) {
|
|
1804
|
+
copied.value = undefined;
|
|
1805
|
+
copyError.value = kind;
|
|
1806
|
+
return;
|
|
1807
|
+
}
|
|
1808
|
+
try {
|
|
1809
|
+
await navigator.clipboard.writeText(value);
|
|
1810
|
+
copied.value = kind;
|
|
1811
|
+
copyError.value = undefined;
|
|
1812
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
1813
|
+
copyTimer = setTimeout(() => { copied.value = undefined; }, 1_600);
|
|
1814
|
+
} catch {
|
|
1815
|
+
copied.value = undefined;
|
|
1816
|
+
copyError.value = kind;
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
function copyAction(kind: "invocation" | "trace", label: string, value: string | undefined) {
|
|
1821
|
+
if (!value) return null;
|
|
1822
|
+
const didCopy = copied.value === kind;
|
|
1823
|
+
return h(
|
|
1824
|
+
"button",
|
|
1825
|
+
{
|
|
1826
|
+
"aria-label": didCopy ? `${label} copied` : `Copy ${label}`,
|
|
1827
|
+
class: "vh-invocation-inspector__copy",
|
|
1828
|
+
onClick: () => void copyIdentifier(kind, value),
|
|
1829
|
+
type: "button",
|
|
1830
|
+
},
|
|
1831
|
+
[
|
|
1832
|
+
h("span", { class: "vh-invocation-inspector__copy-label" }, label),
|
|
1833
|
+
// The shortened value gives the reader a visual check; the full value only reaches the clipboard.
|
|
1834
|
+
h("code", { "aria-hidden": "true", class: "vh-invocation-inspector__copy-value" }, shortIdentifier(value)),
|
|
1835
|
+
h("span", { class: "vh-invocation-inspector__copy-icon" }, [copyIcon(didCopy)]),
|
|
1836
|
+
],
|
|
1837
|
+
);
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
onBeforeUnmount(() => {
|
|
1841
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
1842
|
+
});
|
|
1843
|
+
|
|
1844
|
+
return () => {
|
|
1845
|
+
const configuration = props.invocation.configuration;
|
|
1846
|
+
const agentName = configuration?.agent?.name ?? props.invocation.agentName;
|
|
1847
|
+
const usage = props.invocation.usage;
|
|
1848
|
+
// Older sessions can pair a thread total with only the last response's counts.
|
|
1849
|
+
const partition = usage?.inputTokens !== undefined && usage.outputTokens !== undefined
|
|
1850
|
+
&& (usage.totalTokens === undefined || usage.inputTokens + usage.outputTokens === usage.totalTokens)
|
|
1851
|
+
? usage
|
|
1852
|
+
: undefined;
|
|
1853
|
+
const endedAt =
|
|
1854
|
+
props.invocation.completedAt ?? props.invocation.failedAt ?? props.invocation.cancelledAt;
|
|
1855
|
+
const totalTime = formatDuration(props.invocation.startedAt, endedAt);
|
|
1856
|
+
const duration =
|
|
1857
|
+
totalTime ??
|
|
1858
|
+
(props.invocation.status === "pending"
|
|
1859
|
+
? "Waiting to start"
|
|
1860
|
+
: props.invocation.status === "running"
|
|
1861
|
+
? "In progress"
|
|
1862
|
+
: "Duration unavailable");
|
|
1863
|
+
return h(
|
|
1864
|
+
"aside",
|
|
1865
|
+
{
|
|
1866
|
+
"aria-label": "Session details",
|
|
1867
|
+
class: "vh-invocation-inspector",
|
|
1868
|
+
"data-status": props.invocation.status,
|
|
1869
|
+
"data-slot": "invocation-inspector",
|
|
1870
|
+
},
|
|
1871
|
+
[
|
|
1872
|
+
h("header", [
|
|
1873
|
+
h("div", [h("p", agentInvocationProject(props.invocation)), h("h3", "Invocation details")]),
|
|
1874
|
+
slots.actions?.({ invocation: props.invocation }),
|
|
1875
|
+
]),
|
|
1876
|
+
h("div", { class: "vh-invocation-inspector__content" }, [
|
|
1877
|
+
h("span", {
|
|
1878
|
+
class: "vh-visually-hidden",
|
|
1879
|
+
role: "status",
|
|
1880
|
+
}, copied.value
|
|
1881
|
+
? `${copied.value === "trace" ? "Trace" : "Invocation"} ID copied`
|
|
1882
|
+
: copyError.value
|
|
1883
|
+
? `${copyError.value === "trace" ? "Trace" : "Invocation"} ID could not be copied`
|
|
1884
|
+
: ""),
|
|
1885
|
+
h("section", { class: "vh-invocation-inspector__identity" }, [
|
|
1886
|
+
props.showStatus ? h(
|
|
1887
|
+
"div",
|
|
1888
|
+
{
|
|
1889
|
+
"aria-atomic": "true",
|
|
1890
|
+
"aria-live": "polite",
|
|
1891
|
+
class: "vh-invocation-inspector__status",
|
|
1892
|
+
role: "status",
|
|
1893
|
+
},
|
|
1894
|
+
[
|
|
1895
|
+
h("span", { class: "vh-invocation-inspector__status-icon" }, [
|
|
1896
|
+
statusIcon(props.invocation.status),
|
|
1897
|
+
]),
|
|
1898
|
+
h("strong", statusLabel(props.invocation.status)),
|
|
1899
|
+
h("small", duration),
|
|
1900
|
+
],
|
|
1901
|
+
) : null,
|
|
1902
|
+
h("div", { class: "vh-invocation-inspector__title-row" }, [
|
|
1903
|
+
h("h4", { class: "vh-invocation-inspector__title" }, agentInvocationTitle(props.invocation)),
|
|
1904
|
+
slots.identityActions?.({ invocation: props.invocation }),
|
|
1905
|
+
]),
|
|
1906
|
+
agentInvocationContext(props.invocation) !== props.invocation.id
|
|
1907
|
+
? h("p", agentInvocationContext(props.invocation))
|
|
1908
|
+
: null,
|
|
1909
|
+
agentName
|
|
1910
|
+
? h("div", { class: "vh-invocation-inspector__agent" }, [
|
|
1911
|
+
h("span", "Agent"),
|
|
1912
|
+
h("code", agentName),
|
|
1913
|
+
configuration?.agent?.version
|
|
1914
|
+
? h("small", `v${configuration.agent.version}`)
|
|
1915
|
+
: null,
|
|
1916
|
+
])
|
|
1917
|
+
: null,
|
|
1918
|
+
props.showError && props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null,
|
|
1919
|
+
]),
|
|
1920
|
+
inspectorSection(
|
|
1921
|
+
"Run summary",
|
|
1922
|
+
h("dl", { class: "vh-invocation-inspector__metrics" }, [
|
|
1923
|
+
h("div", [h("dt", "Messages"), h("dd", metrics.value.messages)]),
|
|
1924
|
+
h("div", [h("dt", "Steps"), h("dd", metrics.value.steps)]),
|
|
1925
|
+
h("div", [h("dt", "Tool calls"), h("dd", metrics.value.toolCalls)]),
|
|
1926
|
+
totalTime ? h("div", [h("dt", "Total time"), h("dd", totalTime)]) : null,
|
|
1927
|
+
metrics.value.changes
|
|
1928
|
+
? h("div", [h("dt", "Changes"), h("dd", metrics.value.changes)])
|
|
1929
|
+
: null,
|
|
1930
|
+
inspectorRow("Tokens", (props.invocation.usage?.totalTokens ?? metrics.value.tokens) === undefined
|
|
1931
|
+
? "Unknown"
|
|
1932
|
+
: new Intl.NumberFormat("en").format((props.invocation.usage?.totalTokens ?? metrics.value.tokens)!)),
|
|
1933
|
+
// The runtime display already starts with ~ when the cost is estimated, so the label carries the qualifier.
|
|
1934
|
+
inspectorRow(
|
|
1935
|
+
usage?.cost?.estimated === true ? "Estimated cost" : usage?.cost?.estimated === false ? "Reported cost" : "Cost",
|
|
1936
|
+
usage?.cost?.display || "Unknown",
|
|
1937
|
+
),
|
|
1938
|
+
...([
|
|
1939
|
+
["Input", partition?.inputTokens],
|
|
1940
|
+
["Output", partition?.outputTokens],
|
|
1941
|
+
["Cached", partition?.cachedInputTokens],
|
|
1942
|
+
["Cache writes", partition?.cacheWriteTokens],
|
|
1943
|
+
["Reasoning", partition?.reasoningTokens],
|
|
1944
|
+
] as const).flatMap(([label, value]) => value === undefined
|
|
1945
|
+
? []
|
|
1946
|
+
: [inspectorRow(label, new Intl.NumberFormat("en").format(value))]),
|
|
1947
|
+
]),
|
|
1948
|
+
),
|
|
1949
|
+
props.showTimeline
|
|
1950
|
+
? traceTimeline(props.invocation, id => emit("selectActivity", id))
|
|
1951
|
+
: null,
|
|
1952
|
+
...(configuration ? renderConfiguration(configuration, props.invocation, props.showSources, props.showCapabilities, selectTool) : []),
|
|
1953
|
+
slots.metadata?.({ invocation: props.invocation }),
|
|
1954
|
+
inspectorSection(
|
|
1955
|
+
"Identifiers",
|
|
1956
|
+
h("div", { class: "vh-invocation-inspector__copy-list" }, [
|
|
1957
|
+
copyAction("trace", "Trace ID", props.invocation.traceId),
|
|
1958
|
+
copyAction("invocation", "Invocation ID", props.invocation.id),
|
|
1959
|
+
]),
|
|
1960
|
+
),
|
|
1961
|
+
]),
|
|
1962
|
+
],
|
|
1963
|
+
);
|
|
1964
|
+
};
|
|
1965
|
+
},
|
|
1966
|
+
});
|
|
1967
|
+
|
|
1968
|
+
export const AgentInvocationInspector: DefineComponent<AgentInvocationInspectorPropOptions, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, AgentInvocationInspectorEmits> = agentInvocationInspector;
|