vite-hub 0.1.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +177 -55
- package/dist/_internal/auth/internal/server.d.ts +1 -0
- package/dist/_internal/auth/internal/server.js +2 -0
- package/dist/_internal/auth/runtime/server.d.ts +1 -0
- package/dist/_internal/auth/runtime/server.js +2 -0
- package/dist/_internal/runtime/browser-errors.d.ts +22 -0
- package/dist/_internal/runtime/browser-errors.js +156 -0
- package/dist/_internal/runtime/internal/h3.d.ts +1 -0
- package/dist/_internal/runtime/internal/h3.js +2 -0
- package/dist/_internal/runtime/redirects.d.ts +37 -0
- package/dist/_internal/runtime/redirects.js +71 -0
- package/dist/_internal/runtime/request-policy.d.ts +43 -0
- package/dist/_internal/runtime/request-policy.js +62 -0
- package/dist/_internal/runtime/security.d.ts +27 -0
- package/dist/_internal/runtime/security.js +104 -0
- package/dist/access-BDST818p.js +439 -0
- package/dist/access-policy-CGXhO3Ee.d.ts +109 -0
- package/dist/access-policy-DjBKLo3c.js +73 -0
- package/dist/account-BnOAU055.d.ts +195 -0
- package/dist/agent/capabilities.d.ts +1 -24
- package/dist/agent/capabilities.js +1 -56
- package/dist/agent/invocations/database.d.ts +1 -2
- package/dist/agent/invocations/database.js +2 -91
- package/dist/agent/invocations/drizzle.d.ts +1 -0
- package/dist/agent/invocations/drizzle.js +2 -0
- package/dist/agent/invocations.d.ts +1 -0
- package/dist/agent/invocations.js +2 -0
- package/dist/agent/page.d.ts +1 -0
- package/dist/agent/page.js +2 -0
- package/dist/agent/process.d.ts +1 -0
- package/dist/agent/process.js +2 -0
- package/dist/agent/state.d.ts +1 -0
- package/dist/agent/state.js +2 -0
- package/dist/agent/ui/vue.d.ts +1 -0
- package/dist/agent/ui/vue.js +2 -0
- package/dist/agent/ui.d.ts +1 -0
- package/dist/agent/ui.js +2 -0
- package/dist/agent-invocations.post-CcPvfA0n.js +423 -0
- package/dist/agent.d.ts +1 -12
- package/dist/agent.js +1 -49
- package/dist/agents-BDeazoAW.js +123 -0
- package/dist/agents-BoWau_ei.js +2 -0
- package/dist/agents-C94A4N9u.d.ts +29 -0
- package/dist/auth/abilities.d.ts +1 -0
- package/dist/auth/abilities.js +2 -0
- package/dist/auth/database.d.ts +1 -0
- package/dist/auth/database.js +2 -0
- package/dist/auth/forward.d.ts +1 -0
- package/dist/auth/forward.js +2 -0
- package/dist/auth/mcp.d.ts +1 -0
- package/dist/auth/mcp.js +2 -0
- package/dist/auth/schema.d.ts +1 -0
- package/dist/auth/schema.js +2 -0
- package/dist/auth-BZOy7obk.d.ts +120 -0
- package/dist/auth-operations-GcQk0O0X.js +34 -0
- package/dist/auth-types-CyqhWvYF.d.ts +90 -0
- package/dist/bin.js +114 -128
- package/dist/blob/nuxt-image.d.ts +3 -0
- package/dist/blob/nuxt-image.js +3 -0
- package/dist/blob-CFLwMsjH.d.ts +9 -0
- package/dist/blob-CpvlM8jp.js +26 -0
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.js +2 -0
- package/dist/cache/operations.d.ts +5 -0
- package/dist/cache/operations.js +51 -0
- package/dist/cache.d.ts +28 -0
- package/dist/cache.js +219 -0
- package/dist/choices/vue.d.ts +1 -0
- package/dist/choices/vue.js +2 -0
- package/dist/choices.d.ts +1 -0
- package/dist/choices.js +2 -0
- package/dist/cli-config-UAGTmuFa.js +2 -0
- package/dist/cli-config-wxKjF2Y0.js +90 -0
- package/dist/cloudflare-env-lookup-DKXdr4P_.js +16 -0
- package/dist/cloudflare-prerender.mjs +3 -0
- package/dist/cloudflare-workers.d.ts +12 -0
- package/dist/cms/access.d.ts +1 -0
- package/dist/cms/access.js +2 -0
- package/dist/cms/vite.d.ts +1 -0
- package/dist/cms/vite.js +2 -0
- package/dist/cms.d.ts +3 -0
- package/dist/cms.js +3 -0
- package/dist/comments/testing.d.ts +1 -0
- package/dist/comments/testing.js +2 -0
- package/dist/connections/operations.d.ts +1 -0
- package/dist/connections/operations.js +2 -0
- package/dist/console/auth-types.d.ts +2 -0
- package/dist/console/auth-types.js +1 -0
- package/dist/console/auth.d.ts +6 -2
- package/dist/console/auth.js +9 -2
- package/dist/console/runtime/auth-operations.d.ts +35 -0
- package/dist/console/runtime/auth-operations.js +2 -0
- package/dist/console/runtime/client/account-views.d.ts +17 -0
- package/dist/console/runtime/client/account-views.js +8 -0
- package/dist/console/runtime/client/account.d.ts +2 -0
- package/dist/console/runtime/client/account.js +1125 -0
- package/dist/console/runtime/client/add-primitive.ts +59 -0
- package/dist/console/runtime/client/app-identity.ts +44 -0
- package/dist/console/runtime/client/auth-management.ts +21 -35
- package/dist/console/runtime/client/blob-media.d.ts +1 -1
- package/dist/console/runtime/client/blob-media.js +4 -4
- package/dist/console/runtime/client/command-search.ts +103 -0
- package/dist/console/runtime/client/comment-thread.d.ts +33 -0
- package/dist/console/runtime/client/comment-thread.js +62 -0
- package/dist/console/runtime/client/content-heads.d.ts +45 -0
- package/dist/console/runtime/client/content-heads.js +58 -0
- package/dist/console/runtime/client/document-cache.ts +13 -0
- package/dist/console/runtime/client/documents.d.ts +3 -430
- package/dist/console/runtime/client/documents.js +2 -501
- package/dist/console/runtime/client/editor.d.ts +9 -8
- package/dist/console/runtime/client/editor.js +35 -14
- package/dist/console/runtime/client/env-status.d.ts +31 -2
- package/dist/console/runtime/client/env-status.js +59 -1
- package/dist/console/runtime/client/format.d.ts +59 -0
- package/dist/console/runtime/client/format.js +2 -109
- package/dist/console/runtime/client/format.ts +267 -0
- package/dist/console/runtime/client/highlight-languages.ts +27 -0
- package/dist/console/runtime/client/invocation.js +4 -4
- package/dist/console/runtime/client/live.d.ts +3 -5
- package/dist/console/runtime/client/live.js +1 -8
- package/dist/console/runtime/client/mcp-client.d.ts +58 -0
- package/dist/console/runtime/client/mcp-client.js +125 -0
- package/dist/console/runtime/client/media-library.d.ts +2 -207
- package/dist/console/runtime/client/media-library.js +2 -243
- package/dist/console/runtime/client/media-uploads.d.ts +1 -1
- package/dist/console/runtime/client/media-uploads.js +1 -1
- package/dist/console/runtime/client/media.d.ts +2 -73
- package/dist/console/runtime/client/operation-view.d.ts +31 -4
- package/dist/console/runtime/client/operation-view.js +85 -9
- package/dist/console/runtime/client/presence.d.ts +1 -5
- package/dist/console/runtime/client/presence.js +1 -15
- package/dist/console/runtime/client/preview.d.ts +8 -0
- package/dist/console/runtime/client/preview.js +11 -1
- package/dist/console/runtime/client/problem.d.ts +1 -1
- package/dist/console/runtime/client/problem.js +3 -3
- package/dist/console/runtime/client/project-link.d.ts +2 -0
- package/dist/console/runtime/client/project-link.js +2 -0
- package/dist/console/runtime/client/project-session.d.ts +221 -0
- package/dist/console/runtime/client/project-session.js +723 -0
- package/dist/console/runtime/client/project.d.ts +48 -0
- package/dist/console/runtime/client/project.js +2 -0
- package/dist/console/runtime/client/projects.d.ts +2 -0
- package/dist/console/runtime/client/projects.js +2 -0
- package/dist/console/runtime/client/publish.d.ts +1 -1
- package/dist/console/runtime/client/rate-limit.js +2 -2
- package/dist/console/runtime/client/read-only.d.ts +1 -1
- package/dist/console/runtime/client/read-only.js +1 -1
- package/dist/console/runtime/client/request.d.ts +6 -12
- package/dist/console/runtime/client/request.js +2 -471
- package/dist/console/runtime/client/route-query.d.ts +60 -0
- package/dist/console/runtime/client/route-query.js +2 -0
- package/dist/console/runtime/client/schedule-run.js +2 -2
- package/dist/console/runtime/client/sections.d.ts +2 -26
- package/dist/console/runtime/client/sections.js +2 -84
- package/dist/console/runtime/client/sidebar.ts +84 -0
- package/dist/console/runtime/client/site-access.d.ts +32 -0
- package/dist/console/runtime/client/site-access.js +932 -0
- package/dist/console/runtime/client/stored.d.ts +33 -0
- package/dist/console/runtime/client/stored.js +2 -0
- package/dist/console/runtime/client/ticket.d.ts +2 -0
- package/dist/console/runtime/client/ticket.js +2 -0
- package/dist/console/runtime/client/workflow.js +3 -3
- package/dist/console/runtime/components/console-account-api-keys.vue +195 -0
- package/dist/console/runtime/components/console-account-env.vue +286 -0
- package/dist/console/runtime/components/console-account-home.vue +427 -0
- package/dist/console/runtime/components/console-account-link.vue +68 -0
- package/dist/console/runtime/components/console-account-menu.vue +126 -0
- package/dist/console/runtime/components/console-account-rename.vue +67 -0
- package/dist/console/runtime/components/console-account-settings.vue +184 -0
- package/dist/console/runtime/components/console-account-setup.vue +82 -0
- package/dist/console/runtime/components/console-account-shell.vue +339 -0
- package/dist/console/runtime/components/console-account-sign-in.vue +152 -0
- package/dist/console/runtime/components/console-account-snippet.vue +89 -0
- package/dist/console/runtime/components/console-account-team-settings.vue +131 -0
- package/dist/console/runtime/components/console-account-team.vue +199 -0
- package/dist/console/runtime/components/console-account-unlink.vue +52 -0
- package/dist/console/runtime/components/console-activity-feed.vue +69 -0
- package/dist/console/runtime/components/console-add-primitive.vue +176 -0
- package/dist/console/runtime/components/console-agent-session.vue +301 -0
- package/dist/console/runtime/components/console-app-crumb.vue +52 -0
- package/dist/console/runtime/components/console-app-logo.vue +44 -0
- package/dist/console/runtime/components/console-app-settings.vue +271 -0
- package/dist/console/runtime/components/console-app.vue +255 -335
- package/dist/console/runtime/components/console-auth-action.vue +15 -13
- package/dist/console/runtime/components/console-auth-activity.vue +20 -24
- package/dist/console/runtime/components/console-auth-chart.vue +24 -21
- package/dist/console/runtime/components/console-auth-detail.vue +101 -128
- package/dist/console/runtime/components/console-auth-event-list.vue +2 -2
- package/dist/console/runtime/components/console-auth-event-setup.vue +4 -4
- package/dist/console/runtime/components/console-auth-overview.vue +21 -33
- package/dist/console/runtime/components/console-auth-user-events.vue +12 -15
- package/dist/console/runtime/components/console-auth.vue +118 -116
- package/dist/console/runtime/components/console-blob-detail.vue +16 -26
- package/dist/console/runtime/components/console-blob.vue +89 -34
- package/dist/console/runtime/components/console-cache.vue +358 -0
- package/dist/console/runtime/components/console-code-text.vue +18 -0
- package/dist/console/runtime/components/console-comark-component.vue +54 -16
- package/dist/console/runtime/components/console-comment-thread.vue +320 -0
- package/dist/console/runtime/components/console-confirm.vue +46 -0
- package/dist/console/runtime/components/console-connection-state.vue +23 -26
- package/dist/console/runtime/components/console-content-heads.vue +72 -0
- package/dist/console/runtime/components/console-database.vue +77 -80
- package/dist/console/runtime/components/console-definitions.vue +163 -44
- package/dist/console/runtime/components/console-document-dashboard.vue +124 -135
- package/dist/console/runtime/components/console-document-diff.vue +2 -2
- package/dist/console/runtime/components/console-document-editor.vue +404 -203
- package/dist/console/runtime/components/console-document-history.vue +17 -17
- package/dist/console/runtime/components/console-document-list.vue +51 -53
- package/dist/console/runtime/components/console-document-preview.vue +44 -57
- package/dist/console/runtime/components/console-document-settings.vue +24 -26
- package/dist/console/runtime/components/console-documents.vue +105 -40
- package/dist/console/runtime/components/console-env-details.vue +8 -27
- package/dist/console/runtime/components/console-env.vue +109 -88
- package/dist/console/runtime/components/console-facts.ts +13 -0
- package/dist/console/runtime/components/console-frame.vue +26 -68
- package/dist/console/runtime/components/console-home.vue +145 -121
- package/dist/console/runtime/components/console-icon.vue +19 -0
- package/dist/console/runtime/components/console-invocation-composer.vue +4 -8
- package/dist/console/runtime/components/console-kv.vue +41 -47
- package/dist/console/runtime/components/console-lazy-views.ts +2 -0
- package/dist/console/runtime/components/console-loading.vue +5 -4
- package/dist/console/runtime/components/console-markdown-editor.vue +78 -99
- package/dist/console/runtime/components/console-mcp-callback.vue +76 -0
- package/dist/console/runtime/components/console-mcp-client.vue +255 -0
- package/dist/console/runtime/components/console-mcp-connect.vue +162 -0
- package/dist/console/runtime/components/console-mcp-connection.vue +219 -0
- package/dist/console/runtime/components/console-mcp-content.vue +157 -0
- package/dist/console/runtime/components/console-mcp-items.vue +346 -0
- package/dist/console/runtime/components/console-media-browser.vue +108 -138
- package/dist/console/runtime/components/console-media-crops.vue +13 -12
- package/dist/console/runtime/components/console-media-detail.vue +35 -39
- package/dist/console/runtime/components/console-media-dialog.vue +3 -3
- package/dist/console/runtime/components/console-media-field.vue +12 -36
- package/dist/console/runtime/components/console-media-focal.vue +15 -14
- package/dist/console/runtime/components/console-media-library.vue +29 -22
- package/dist/console/runtime/components/console-media-move.vue +9 -8
- package/dist/console/runtime/components/console-media-picker.vue +35 -6
- package/dist/console/runtime/components/console-media-uploads.vue +7 -4
- package/dist/console/runtime/components/console-operation-view.vue +258 -45
- package/dist/console/runtime/components/console-page-changes.vue +207 -0
- package/dist/console/runtime/components/console-page-header.vue +39 -7
- package/dist/console/runtime/components/console-page-toolbar.vue +16 -3
- package/dist/console/runtime/components/console-presence-avatars.vue +4 -3
- package/dist/console/runtime/components/console-project-switcher.vue +212 -0
- package/dist/console/runtime/components/console-property-list.vue +16 -11
- package/dist/console/runtime/components/console-property-row.vue +2 -1
- package/dist/console/runtime/components/console-rail.vue +122 -277
- package/dist/console/runtime/components/console-rate-limit.vue +32 -24
- package/dist/console/runtime/components/console-relative-time.vue +1 -1
- package/dist/console/runtime/components/console-schema-date-input.vue +88 -0
- package/dist/console/runtime/components/console-schema-field.vue +35 -89
- package/dist/console/runtime/components/console-schema-form.vue +6 -7
- package/dist/console/runtime/components/console-schema-list.vue +8 -9
- package/dist/console/runtime/components/console-search-palette.vue +1051 -0
- package/dist/console/runtime/components/console-search.vue +17 -840
- package/dist/console/runtime/components/console-section-icon.vue +7 -10
- package/dist/console/runtime/components/console-section.vue +68 -0
- package/dist/console/runtime/components/console-seo-panel.vue +16 -16
- package/dist/console/runtime/components/console-session-actions.vue +1 -3
- package/dist/console/runtime/components/console-session-bootstrap.ts +0 -28
- package/dist/console/runtime/components/console-session-cancel.vue +0 -1
- package/dist/console/runtime/components/console-session-code-preview.vue +10 -26
- package/dist/console/runtime/components/console-session-copy-link.vue +11 -0
- package/dist/console/runtime/components/console-session-inspector.vue +212 -92
- package/dist/console/runtime/components/console-session-loading.vue +12 -15
- package/dist/console/runtime/components/console-session-navbar.vue +9 -39
- package/dist/console/runtime/components/console-session-trace.vue +25 -77
- package/dist/console/runtime/components/console-session.css +208 -851
- package/dist/console/runtime/components/console-settings-card.vue +76 -0
- package/dist/console/runtime/components/console-settings-value.vue +46 -0
- package/dist/console/runtime/components/console-settings.vue +100 -0
- package/dist/console/runtime/components/console-setup-hint.vue +3 -8
- package/dist/console/runtime/components/console-sidebar-item.vue +62 -0
- package/dist/console/runtime/components/console-sidebar-trigger.vue +34 -0
- package/dist/console/runtime/components/console-sidebar.vue +352 -0
- package/dist/console/runtime/components/console-site.vue +370 -0
- package/dist/console/runtime/components/console-skill-file.vue +73 -0
- package/dist/console/runtime/components/console-skill-tree.vue +62 -0
- package/dist/console/runtime/components/console-skills.vue +193 -0
- package/dist/console/runtime/components/console-stat-grid.vue +64 -0
- package/dist/console/runtime/components/console-state.vue +60 -75
- package/dist/console/runtime/components/console-toaster.vue +63 -54
- package/dist/console/runtime/components/console-usage-chart.vue +14 -12
- package/dist/console/runtime/components/console-usage-model-detail.vue +12 -18
- package/dist/console/runtime/components/console-usage-model.ts +20 -12
- package/dist/console/runtime/components/console-usage-share-bar.vue +5 -5
- package/dist/console/runtime/components/console-usage.vue +547 -252
- package/dist/console/runtime/components/console-user-menu.vue +42 -0
- package/dist/console/runtime/components/console-value.vue +5 -4
- package/dist/console/runtime/components/console-workflow-actions.vue +32 -41
- package/dist/console/runtime/components/console-workspace-browser.vue +507 -0
- package/dist/console/runtime/components/console-workspace-history.vue +23 -24
- package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +13 -14
- package/dist/console/runtime/components/invocation/agent-invocation-list.ts +22 -38
- package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +4 -12
- package/dist/console/runtime/components/invocation/agent-invocation.ts +229 -193
- package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
- package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +192 -55
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +25 -0
- package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +20 -7
- package/dist/console/runtime/components/invocation/internal/invocation-page-changes.ts +64 -0
- package/dist/console/runtime/components/invocation/internal/payload-text.ts +3 -5
- package/dist/console/runtime/components/invocation/invocation.css +485 -428
- package/dist/console/runtime/components/invocation/types.ts +9 -1
- package/dist/console/runtime/console-route.js +1 -48
- package/dist/console/runtime/definitions.d.ts +2 -2
- package/dist/console/runtime/definitions.js +1 -293
- package/dist/console/runtime/diagnostics.ts +287 -0
- package/dist/console/runtime/mcp-client.d.ts +2 -0
- package/dist/console/runtime/mcp-client.js +2 -0
- package/dist/console/runtime/page/loader.js +138 -18
- package/dist/console/runtime/page-tool/page-tool.js +10 -0
- package/dist/console/runtime/public/skills/index.json +1 -0
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -39
- package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/bundle.md +57 -0
- package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +4 -3
- package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +11 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +3 -5
- package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +4 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +4 -4
- package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +20 -0
- package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +2 -0
- package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +10 -1
- package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +1 -1
- package/dist/console/runtime/rpc.d.ts +2 -36
- package/dist/console/runtime/rpc.js +1 -3
- package/dist/console/runtime/sections.d.ts +2 -2
- package/dist/console/runtime/sections.js +2 -351
- package/dist/console/runtime/server/access-policy.d.ts +2 -0
- package/dist/console/runtime/server/access-policy.js +2 -0
- package/dist/console/runtime/server/agents.get.d.ts +4 -7
- package/dist/console/runtime/server/agents.get.js +6 -9
- package/dist/console/runtime/server/auth.d.ts +2 -0
- package/dist/console/runtime/server/auth.js +81 -0
- package/dist/console/runtime/server/blob.d.ts +2 -2
- package/dist/console/runtime/server/blob.js +2 -19
- package/dist/console/runtime/server/channel-replay.d.ts +20 -8
- package/dist/console/runtime/server/channel-replay.js +27 -55
- package/dist/console/runtime/server/database.d.ts +1 -1
- package/dist/console/runtime/server/database.get.d.ts +19 -10
- package/dist/console/runtime/server/database.get.js +40 -34
- package/dist/console/runtime/server/database.js +1 -17
- package/dist/console/runtime/server/definitions.d.ts +1 -1
- package/dist/console/runtime/server/definitions.get.d.ts +8 -8
- package/dist/console/runtime/server/definitions.get.js +37 -23
- package/dist/console/runtime/server/definitions.js +1 -96
- package/dist/console/runtime/server/development.d.ts +2 -0
- package/dist/console/runtime/server/development.js +2 -0
- package/dist/console/runtime/server/documents.d.ts +2 -2
- package/dist/console/runtime/server/documents.js +3 -111
- package/dist/console/runtime/server/env.d.ts +3 -15
- package/dist/console/runtime/server/env.get.d.ts +5 -5
- package/dist/console/runtime/server/env.get.js +9 -22
- package/dist/console/runtime/server/env.js +2 -42
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +5 -6
- package/dist/console/runtime/server/invocation-capabilities.get.js +8 -13
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -37
- package/dist/console/runtime/server/invocation-workspace.get.js +35 -201
- package/dist/console/runtime/server/invocation.get.d.ts +2 -2
- package/dist/console/runtime/server/invocation.get.js +35 -27
- package/dist/console/runtime/server/invocations.get.d.ts +12 -6
- package/dist/console/runtime/server/invocations.get.js +45 -60
- package/dist/console/runtime/server/logs.get.d.ts +8 -5
- package/dist/console/runtime/server/logs.get.js +25 -14
- package/dist/console/runtime/server/mcp-client-operations.d.ts +5 -0
- package/dist/console/runtime/server/mcp-client-operations.js +139 -0
- package/dist/console/runtime/server/operation-contributions.d.ts +2 -0
- package/dist/console/runtime/server/operation-contributions.js +2 -0
- package/dist/console/runtime/server/page-auth.d.ts +18 -0
- package/dist/console/runtime/server/page-auth.js +44 -0
- package/dist/console/runtime/server/page-session.d.ts +1 -1
- package/dist/console/runtime/server/page-session.js +1 -1
- package/dist/console/runtime/server/page-tool.d.ts +2 -0
- package/dist/console/runtime/server/page-tool.js +105 -0
- package/dist/console/runtime/server/rpc.d.ts +16 -11
- package/dist/console/runtime/server/rpc.js +120 -113
- package/dist/console/runtime/server/runtime.d.ts +2 -0
- package/dist/console/runtime/server/runtime.js +2 -0
- package/dist/console/runtime/server/search.get.d.ts +1 -6
- package/dist/console/runtime/server/search.get.js +3 -9
- package/dist/console/runtime/server/sections.d.ts +6 -4
- package/dist/console/runtime/server/sections.get.d.ts +2 -22
- package/dist/console/runtime/server/sections.get.js +37 -13
- package/dist/console/runtime/server/sections.js +7 -4
- package/dist/console/runtime/server/setup.d.ts +5 -0
- package/dist/console/runtime/server/setup.js +5 -0
- package/dist/console/runtime/server/site-entry.d.ts +24 -0
- package/dist/console/runtime/server/site-entry.js +145 -0
- package/dist/console/runtime/server/site-session.d.ts +89 -0
- package/dist/console/runtime/server/site-session.js +2 -0
- package/dist/console/runtime/server/status.get.d.ts +7 -4
- package/dist/console/runtime/server/status.get.js +12 -22
- package/dist/console/runtime/server/tickets.d.ts +2 -0
- package/dist/console/runtime/server/tickets.js +2 -0
- package/dist/console/runtime/server/usage.get.d.ts +7 -4
- package/dist/console/runtime/server/usage.get.js +16 -23
- package/dist/console/runtime/server/workspace-files.get.d.ts +12 -0
- package/dist/console/runtime/server/workspace-files.get.js +55 -0
- package/dist/console/runtime/site-access.d.ts +2 -0
- package/dist/console/runtime/site-access.js +2 -0
- package/dist/console/runtime/skills.d.ts +18 -0
- package/dist/console/runtime/skills.js +17 -0
- package/dist/console/server.d.ts +20 -9
- package/dist/console/server.js +9 -34
- package/dist/console/ui.d.ts +16 -0
- package/dist/console/ui.js +487 -368
- package/dist/console-lazy-views-DXnIkdyd.js +2 -0
- package/dist/console-route-CBuqZ4wO.js +49 -0
- package/dist/console.d.ts +1 -1
- package/dist/content/collections.d.ts +1 -0
- package/dist/content/collections.js +2 -0
- package/dist/content/markdown.d.ts +1 -0
- package/dist/content/markdown.js +2 -0
- package/dist/content/preview.d.ts +1 -0
- package/dist/content/preview.js +2 -0
- package/dist/content/sqlite.d.ts +1 -0
- package/dist/content/sqlite.js +2 -0
- package/dist/content.d.ts +1 -2
- package/dist/content.js +0 -1
- package/dist/database-BdOBjPkS.js +17 -0
- package/dist/database-DyPVMjp_.d.ts +6 -0
- package/dist/definitions-BW6SvmMM.js +337 -0
- package/dist/definitions-CNq_Shkh.js +98 -0
- package/dist/definitions-DB4LbZ7T.d.ts +245 -0
- package/dist/definitions-Dbgxfz3I.d.ts +19 -0
- package/dist/dev-peer-am78OsHH.js +472 -0
- package/dist/development-W5EwONyL.d.ts +12 -0
- package/dist/development-zLxOp-AO.js +28 -0
- package/dist/device/vue.d.ts +1 -0
- package/dist/device/vue.js +2 -0
- package/dist/device.d.ts +1 -0
- package/dist/device.js +2 -0
- package/dist/diagnostics-9U_fYxMy.js +79 -0
- package/dist/diagnostics-CjGiniKb.d.ts +11 -0
- package/dist/docs/assistant.d.ts +1 -0
- package/dist/docs/assistant.js +2 -0
- package/dist/docs/nuxt.d.ts +3 -0
- package/dist/docs/nuxt.js +3 -0
- package/dist/docs/server.d.ts +1 -0
- package/dist/docs/server.js +2 -0
- package/dist/docs.d.ts +1 -0
- package/dist/docs.js +2 -0
- package/dist/doctor.d.ts +7 -2
- package/dist/doctor.js +2956 -296
- package/dist/documents-BASIRZ91.d.ts +474 -0
- package/dist/documents-CboVhYFz.d.ts +87 -0
- package/dist/documents-CjJTCrY8.js +136 -0
- package/dist/documents-qrHHqlNU.js +547 -0
- package/dist/durability/operations.d.ts +5 -0
- package/dist/durability/operations.js +28 -0
- package/dist/email/test.d.ts +1 -0
- package/dist/email/test.js +2 -0
- package/dist/entries-Bj-jPs_J.js +142 -0
- package/dist/env-Dg1I_DWr.js +11 -0
- package/dist/error-diagnostics-Bm3JKYjz.js +638 -0
- package/dist/error-diagnostics.ts +636 -151
- package/dist/forge.d.ts +1 -0
- package/dist/forge.js +2 -0
- package/dist/format-BOYlanIZ.js +304 -0
- package/dist/forms/client.d.ts +1 -0
- package/dist/forms/client.js +2 -0
- package/dist/forms/database.d.ts +1 -0
- package/dist/forms/database.js +2 -0
- package/dist/forms/formisch.d.ts +1 -0
- package/dist/forms/formisch.js +2 -0
- package/dist/forms/operations.d.ts +1 -0
- package/dist/forms/operations.js +2 -0
- package/dist/forms/runtime.d.ts +1 -0
- package/dist/forms/runtime.js +2 -0
- package/dist/forms/vue.d.ts +1 -0
- package/dist/forms/vue.js +2 -0
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +2 -0
- package/dist/gateways/ai-sdk.d.ts +1 -0
- package/dist/gateways/ai-sdk.js +2 -0
- package/dist/host-CkL0jjBq.js +11 -0
- package/dist/http-error-Bs6e8_-8.js +30 -0
- package/dist/i18n/runtime.d.ts +1 -0
- package/dist/i18n/runtime.js +2 -0
- package/dist/i18n/server.d.ts +1 -0
- package/dist/i18n/server.js +2 -0
- package/dist/i18n/vue.d.ts +1 -0
- package/dist/i18n/vue.js +2 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +2 -0
- package/dist/index.d.ts +20 -3
- package/dist/index.js +43 -2
- package/dist/inspect-CDw7e0vK.js +127 -0
- package/dist/internal/agent-invocations-libsql.d.ts +2 -0
- package/dist/internal/agent-invocations-libsql.js +2 -0
- package/dist/internal/disabled-redis-driver.d.ts +3 -0
- package/dist/internal/disabled-redis-driver.js +7 -0
- package/dist/internal/disabled-upstash-driver.d.ts +3 -0
- package/dist/internal/disabled-upstash-driver.js +7 -0
- package/dist/internal/test-loader.d.ts +8 -0
- package/dist/internal/test-loader.js +75 -0
- package/dist/internal/test-server.d.ts +1 -0
- package/dist/internal/test-server.js +84 -0
- package/dist/internal-BreyUsQ6.js +31 -0
- package/dist/internal-CO4OqqaS.d.ts +59 -0
- package/dist/invariant-DolT9EEx.js +22 -0
- package/dist/invocation-page-undo-DIZ-s3xT.js +54 -0
- package/dist/invocations-CK_-G540.js +86 -0
- package/dist/limits-BUlwWYQE.js +34 -0
- package/dist/logs/host.d.ts +1 -1
- package/dist/logs/host.js +1 -15
- package/dist/logs/memory.d.ts +2 -18
- package/dist/logs/memory.js +1 -84
- package/dist/logs/source.d.ts +2 -57
- package/dist/logs/source.js +2 -57
- package/dist/logs.d.ts +3 -4
- package/dist/logs.js +3 -4
- package/dist/mcp-client-By4zk0vU.js +1024 -0
- package/dist/mcp-client-CTbTbn7d.js +10 -0
- package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +2 -0
- package/dist/media-BHpQ-4jw.js +478 -0
- package/dist/media-library-D9ThbXqs.d.ts +212 -0
- package/dist/media-library-NaOMBKWS.js +279 -0
- package/dist/media-uKX4Wy-c.d.ts +74 -0
- package/dist/memory-2bbl4hcV.d.ts +19 -0
- package/dist/memory-DTmq-Z6x.js +86 -0
- package/dist/nuxt-server-imports-DH60Z7LA.js +98 -0
- package/dist/nuxt.d.ts +10 -5
- package/dist/nuxt.js +751 -583
- package/dist/object-D8pRdprI.js +15 -0
- package/dist/operation-contributions-BdS0z3tx.js +50 -0
- package/dist/operation-contributions-DpkO_iSU.d.ts +21 -0
- package/dist/operation-definition-a5keEpCd.js +435 -0
- package/dist/operation-registry-BogGwk_I.js +22 -0
- package/dist/operation-rpc-DI9txNxK.js +158 -0
- package/dist/operations-B0689BG1.d.ts +158 -0
- package/dist/operations-CAQmIxGK.js +2 -0
- package/dist/operations-CWP9dF3i.js +863 -0
- package/dist/operations-EOdyctDc.js +235 -0
- package/dist/operations.d.ts +1 -2
- package/dist/operations.js +2 -2
- package/dist/optional-owners-BNA2OX6z.js +903 -0
- package/dist/page/pill.iife.js +70 -0
- package/dist/page-tool-CRCK1RHV.d.ts +68 -0
- package/dist/page-tools-BkSSBFoi.js +444 -0
- package/dist/page-tools-shared-D3fFoEV2.js +122 -0
- package/dist/page-tools-sw4I-Nqx.d.ts +23 -0
- package/dist/plugins-B-DpgDPB.js +12070 -0
- package/dist/plugins-BqAtIEX2.d.ts +2143 -0
- package/dist/presets/workspace.d.ts +1 -0
- package/dist/presets/workspace.js +1 -0
- package/dist/project-C4N_Zcjl.js +30 -0
- package/dist/project-CufkVP1u.d.ts +26 -0
- package/dist/project-DlWTGB7h.js +57 -0
- package/dist/project-link-BuOzBH9f.d.ts +94 -0
- package/dist/project-link-D-6UefhA.js +149 -0
- package/dist/project-root-v6ba4tn7.js +12 -0
- package/dist/projects-CAcXztf4.js +154 -0
- package/dist/projects-Ddvl9EJp.d.ts +66 -0
- package/dist/rate-limit/drivers/cloudflare.d.ts +1 -0
- package/dist/rate-limit/drivers/cloudflare.js +2 -0
- package/dist/rate-limit/drivers/kv.d.ts +1 -0
- package/dist/rate-limit/drivers/kv.js +2 -0
- package/dist/rate-limit/drivers/memory.d.ts +1 -0
- package/dist/rate-limit/drivers/memory.js +2 -0
- package/dist/realtime/agent.d.ts +1 -0
- package/dist/realtime/agent.js +2 -0
- package/dist/realtime/bus.d.ts +1 -0
- package/dist/realtime/bus.js +2 -0
- package/dist/realtime/client.d.ts +1 -0
- package/dist/realtime/client.js +2 -0
- package/dist/registry-CDKLACCZ.js +16 -0
- package/dist/registry-zw6aE2N9.js +18 -0
- package/dist/request-D7h3SQ92.d.ts +21 -0
- package/dist/request-DE8w_cSM.js +473 -0
- package/dist/request-DbFfYmCu.js +162 -0
- package/dist/request-origin-Bq7mDQG9.js +23 -0
- package/dist/route-query-CRVWXIrc.js +222 -0
- package/dist/rpc-7nlHSv3y.d.ts +37 -0
- package/dist/rpc-DIUA61pv.js +4 -0
- package/dist/runtime/durability.d.ts +1 -0
- package/dist/runtime/durability.js +2 -0
- package/dist/runtime-B_btezs1.d.ts +7 -0
- package/dist/runtime-DQuHg7OO.js +10 -0
- package/dist/runtime-DxfJOfCd.js +25 -0
- package/dist/runtime-OsEDfbM9.js +55 -0
- package/dist/runtime-YLWfdrtO.js +65 -0
- package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
- package/dist/scan-module-D_3X08mj.js +2 -0
- package/dist/scan-module-Df58L_6T.js +311 -0
- package/dist/schedule/os.d.ts +1 -0
- package/dist/schedule/os.js +2 -0
- package/dist/secret-Dy5uqvq9.js +44 -0
- package/dist/sections-BogiCmtz.d.ts +57 -0
- package/dist/sections-C83x0slv.js +13 -0
- package/dist/sections-CyrXbbkG.d.ts +10 -0
- package/dist/sections-Do7X4Nwt.d.ts +158 -0
- package/dist/sections-DumoLKQN.js +368 -0
- package/dist/sections-et20h8w3.js +122 -0
- package/dist/sections.get-COiLcQ0P.d.ts +20 -0
- package/dist/seo/runtime.d.ts +64 -0
- package/dist/seo/runtime.js +123 -0
- package/dist/seo-CtLywyRx.d.ts +24 -0
- package/dist/seo.d.ts +2 -0
- package/dist/seo.js +17 -0
- package/dist/server-BRJE4t-W.js +18 -0
- package/dist/setup-C-5nB7aY.js +22 -0
- package/dist/setup-ZbA1by7W.d.ts +13 -0
- package/dist/site-access-BbJUe5QI.js +2 -0
- package/dist/site-access-BmE8HGxs.js +292 -0
- package/dist/site-access-BycrwM2v.js +18 -0
- package/dist/site-access-DxfdOel1.d.ts +55 -0
- package/dist/site-session-odJq1dYa.js +272 -0
- package/dist/skills/operations.d.ts +17 -0
- package/dist/skills/operations.js +51 -0
- package/dist/skills-DdpSMiCI.js +500 -0
- package/dist/skills.d.ts +197 -0
- package/dist/skills.get-Bl8cBe8u.js +48 -0
- package/dist/skills.js +2 -0
- package/dist/source/drizzle.d.ts +1 -0
- package/dist/source/drizzle.js +2 -0
- package/dist/source/vite.d.ts +1 -7
- package/dist/source/vite.js +2 -20
- package/dist/source-D4wWtoHh.js +60 -0
- package/dist/source-S-LChQvw.d.ts +59 -0
- package/dist/source.d.ts +1 -2
- package/dist/source.js +0 -1
- package/dist/stored-Dhv2qsQv.js +40 -0
- package/dist/sync/client.d.ts +1 -0
- package/dist/sync/client.js +2 -0
- package/dist/sync/database.d.ts +1 -0
- package/dist/sync/database.js +2 -0
- package/dist/sync/operations.d.ts +1 -0
- package/dist/sync/operations.js +2 -0
- package/dist/sync/runtime.d.ts +1 -0
- package/dist/sync/runtime.js +2 -0
- package/dist/sync/vue.d.ts +1 -0
- package/dist/sync/vue.js +2 -0
- package/dist/sync.d.ts +1 -0
- package/dist/sync.js +2 -0
- package/dist/task/operations.d.ts +22 -0
- package/dist/task/operations.js +36 -0
- package/dist/test/register.d.ts +1 -0
- package/dist/test/register.js +68 -0
- package/dist/test.d.ts +175 -0
- package/dist/test.js +49 -0
- package/dist/ticket-Cudn1dq3.js +31 -0
- package/dist/ticket-Pr_8ZtXW.d.ts +14 -0
- package/dist/tickets-C_0Fhc00.js +358 -0
- package/dist/ui/markdown-editor.d.ts +1 -0
- package/dist/ui/markdown-editor.js +2 -0
- package/dist/ui/playground.d.ts +1 -0
- package/dist/ui/playground.js +2 -0
- package/dist/ui/styles.css +2 -2662
- package/dist/ui/theme.css +2 -0
- package/dist/ui/theme.d.ts +1 -0
- package/dist/ui/theme.js +2 -0
- package/dist/ui/workspace.d.ts +1 -0
- package/dist/ui/workspace.js +2 -0
- package/dist/usage-B4taNt4a.js +569 -0
- package/dist/usage-index-BsGAFzyq.js +335 -0
- package/dist/version-DNmSsk5r.js +1083 -0
- package/dist/vite-stage-mmtwQIMA.js +66 -0
- package/dist/vue-router-C68IU1jM.d.ts +1914 -0
- package/dist/web-container/connect.d.ts +1 -0
- package/dist/web-container/connect.js +2 -0
- package/dist/web-container/env.d.ts +1 -0
- package/dist/web-container/env.js +2 -0
- package/dist/web-container/snapshot.d.ts +1 -0
- package/dist/web-container/snapshot.js +2 -0
- package/dist/web-container.d.ts +1 -0
- package/dist/web-container.js +2 -0
- package/dist/webhooks/database.d.ts +1 -0
- package/dist/webhooks/database.js +2 -0
- package/dist/webhooks/operations.d.ts +1 -0
- package/dist/webhooks/operations.js +2 -0
- package/dist/webhooks/runtime.d.ts +1 -0
- package/dist/webhooks/runtime.js +2 -0
- package/dist/webhooks.d.ts +1 -0
- package/dist/webhooks.js +2 -0
- package/dist/workflow/openworkflow.d.ts +1 -0
- package/dist/workflow/openworkflow.js +2 -0
- package/dist/workspace/checkout.d.ts +1 -0
- package/dist/workspace/checkout.js +2 -0
- package/dist/workspace/files.d.ts +1 -0
- package/dist/workspace/files.js +2 -0
- package/dist/workspace/lineage.d.ts +1 -0
- package/dist/workspace/lineage.js +2 -0
- package/dist/workspace-history-CeVwBB6Q.d.ts +52 -0
- package/dist/workspace-history-CraoERnc.js +248 -0
- package/package.json +690 -706
- package/dist/_internal/agent/cloudflare/state.d.ts +0 -1
- package/dist/_internal/agent/cloudflare/state.js +0 -2
- package/dist/_internal/agent/cloudflare.d.ts +0 -1
- package/dist/_internal/agent/cloudflare.js +0 -2
- package/dist/_internal/agent/eve.d.ts +0 -1
- package/dist/_internal/agent/eve.js +0 -2
- package/dist/_internal/agent/invocations.d.ts +0 -2
- package/dist/_internal/agent/invocations.js +0 -88
- package/dist/_internal/agent/operations.d.ts +0 -1
- package/dist/_internal/agent/operations.js +0 -2
- package/dist/_internal/agent/runtime/invocations-dev.d.ts +0 -1
- package/dist/_internal/agent/runtime/invocations-dev.js +0 -2
- package/dist/_internal/agent/runtime/process.d.ts +0 -1
- package/dist/_internal/agent/runtime/process.js +0 -2
- package/dist/_internal/agent/runtime/workflow.d.ts +0 -1
- package/dist/_internal/agent/runtime/workflow.js +0 -2
- package/dist/_internal/agent/server/internal.d.ts +0 -1
- package/dist/_internal/agent/server/internal.js +0 -2
- package/dist/_internal/agent/server/registry.d.ts +0 -1
- package/dist/_internal/agent/server/registry.js +0 -2
- package/dist/_internal/agent/server/workspace.d.ts +0 -1
- package/dist/_internal/agent/server/workspace.js +0 -2
- package/dist/_internal/agent/server.d.ts +0 -1
- package/dist/_internal/agent/server.js +0 -2
- package/dist/_internal/agent/state/sqlite.d.ts +0 -1
- package/dist/_internal/agent/state/sqlite.js +0 -2
- package/dist/_internal/agent.d.ts +0 -1
- package/dist/_internal/agent.js +0 -2
- package/dist/_internal/auth/runtime/console.d.ts +0 -1
- package/dist/_internal/auth/runtime/console.js +0 -2
- package/dist/_internal/blob/operations.d.ts +0 -1
- package/dist/_internal/blob/operations.js +0 -2
- package/dist/_internal/blob/runtime/state.d.ts +0 -1
- package/dist/_internal/blob/runtime/state.js +0 -2
- package/dist/_internal/blob.d.ts +0 -1
- package/dist/_internal/blob.js +0 -2
- package/dist/_internal/comments/operations.d.ts +0 -1
- package/dist/_internal/comments/operations.js +0 -2
- package/dist/_internal/comments/runtime/console.d.ts +0 -1
- package/dist/_internal/comments/runtime/console.js +0 -2
- package/dist/_internal/content/operations.d.ts +0 -1
- package/dist/_internal/content/operations.js +0 -2
- package/dist/_internal/content/runtime/console.d.ts +0 -1
- package/dist/_internal/content/runtime/console.js +0 -2
- package/dist/_internal/database/runtime/state.d.ts +0 -5
- package/dist/_internal/database/runtime/state.js +0 -7
- package/dist/_internal/email/operations.d.ts +0 -1
- package/dist/_internal/email/operations.js +0 -2
- package/dist/_internal/email/runtime/console.d.ts +0 -1
- package/dist/_internal/email/runtime/console.js +0 -2
- package/dist/_internal/kv/operations.d.ts +0 -1
- package/dist/_internal/kv/operations.js +0 -2
- package/dist/_internal/kv/runtime/disabled-upstash.d.ts +0 -3
- package/dist/_internal/kv/runtime/disabled-upstash.js +0 -7
- package/dist/_internal/kv.d.ts +0 -1
- package/dist/_internal/kv.js +0 -2
- package/dist/_internal/markdown-template.d.ts +0 -2
- package/dist/_internal/markdown-template.js +0 -2
- package/dist/_internal/queue/operations.d.ts +0 -1
- package/dist/_internal/queue/operations.js +0 -2
- package/dist/_internal/rate-limit/operations.d.ts +0 -1
- package/dist/_internal/rate-limit/operations.js +0 -2
- package/dist/_internal/rate-limit/runtime.d.ts +0 -1
- package/dist/_internal/rate-limit/runtime.js +0 -2
- package/dist/_internal/sandbox/task/runtime/state.d.ts +0 -1
- package/dist/_internal/sandbox/task/runtime/state.js +0 -2
- package/dist/_internal/schedule/operations.d.ts +0 -1
- package/dist/_internal/schedule/operations.js +0 -2
- package/dist/_internal/schedule/runtime/kv.d.ts +0 -1
- package/dist/_internal/schedule/runtime/kv.js +0 -2
- package/dist/_internal/schedule/runtime/process.d.ts +0 -1
- package/dist/_internal/schedule/runtime/process.js +0 -2
- package/dist/_internal/schedule/runtime/static.d.ts +0 -1
- package/dist/_internal/schedule/runtime/static.js +0 -2
- package/dist/_internal/schedule/runtime.d.ts +0 -1
- package/dist/_internal/schedule/runtime.js +0 -2
- package/dist/_internal/schedule.d.ts +0 -1
- package/dist/_internal/schedule.js +0 -2
- package/dist/_internal/task/operations.d.ts +0 -5
- package/dist/_internal/task/operations.js +0 -2
- package/dist/_internal/workflow/operations.d.ts +0 -1
- package/dist/_internal/workflow/operations.js +0 -2
- package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +0 -1
- package/dist/_internal/workflow/runtime/cloudflare-runner.js +0 -2
- package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +0 -1
- package/dist/_internal/workflow/runtime/cloudflare-vite.js +0 -2
- package/dist/_internal/workflow/runtime/execute.d.ts +0 -1
- package/dist/_internal/workflow/runtime/execute.js +0 -2
- package/dist/_internal/workflow/runtime/state.d.ts +0 -1
- package/dist/_internal/workflow/runtime/state.js +0 -2
- package/dist/_internal/workflow/runtime/vercel-vite.d.ts +0 -1
- package/dist/_internal/workflow/runtime/vercel-vite.js +0 -2
- package/dist/_internal/workflow.d.ts +0 -1
- package/dist/_internal/workflow.js +0 -2
- package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js +0 -2
- package/dist/_internal/workspace/internal/runtime/hosted.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/hosted.js +0 -2
- package/dist/_internal/workspace/internal/runtime/state.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/state.js +0 -2
- package/dist/_internal/workspace/operations.d.ts +0 -1
- package/dist/_internal/workspace/operations.js +0 -2
- package/dist/_internal/workspace/runtime.d.ts +0 -1
- package/dist/_internal/workspace/runtime.js +0 -2
- package/dist/_internal/workspace.d.ts +0 -1
- package/dist/_internal/workspace.js +0 -2
- package/dist/access-BhTe9yuV.js +0 -516
- package/dist/access-CBqnsYdj.d.ts +0 -130
- package/dist/agent/invocations/d1.d.ts +0 -1
- package/dist/agent/invocations/d1.js +0 -2
- package/dist/agent/invocations/sqlite.d.ts +0 -1
- package/dist/agent/invocations/sqlite.js +0 -2
- package/dist/agent/process-host.d.ts +0 -1
- package/dist/agent/process-host.js +0 -2
- package/dist/agent/runtime/process.d.ts +0 -1
- package/dist/agent/runtime/process.js +0 -2
- package/dist/agent/server/github.d.ts +0 -1
- package/dist/agent/server/github.js +0 -2
- package/dist/agent/state/sqlite.d.ts +0 -1
- package/dist/agent/state/sqlite.js +0 -2
- package/dist/agent-invocations.post-CFKMEy-h.js +0 -432
- package/dist/agents-BNmuN4Qa.d.ts +0 -99
- package/dist/agents-CVehuMFA.js +0 -118
- package/dist/auth/console-runtime.d.ts +0 -1
- package/dist/auth/console-runtime.js +0 -2
- package/dist/auth/console.d.ts +0 -1
- package/dist/auth/console.js +0 -2
- package/dist/auth-BSSM-qh0.js +0 -700
- package/dist/auth-CG8tmgH7.d.ts +0 -106
- package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +0 -50
- package/dist/auth-inline-config--vlclzm3.js +0 -18
- package/dist/auth-inline-config-R6q_4Iwo.d.ts +0 -30
- package/dist/auth-path-B7Ssonj-.js +0 -49
- package/dist/blob/content-type.d.ts +0 -1
- package/dist/blob/content-type.js +0 -2
- package/dist/blob-D9v5Djxw.d.ts +0 -7
- package/dist/browser/actions.d.ts +0 -1
- package/dist/browser/actions.js +0 -2
- package/dist/cloudflare-env-CIZCKabz.js +0 -70
- package/dist/comments-overlay/loader.BcGn0Hsk.js +0 -1
- package/dist/comments-overlay/overlay.D7vmaSrE.js +0 -2
- package/dist/connections/http.d.ts +0 -1
- package/dist/connections/http.js +0 -2
- package/dist/console/auth-client.d.ts +0 -8
- package/dist/console/auth-client.js +0 -6
- package/dist/console/auth-cloudflare-access.d.ts +0 -2
- package/dist/console/auth-cloudflare-access.js +0 -116
- package/dist/console/auth-inline.d.ts +0 -6
- package/dist/console/auth-inline.js +0 -107
- package/dist/console/runtime/client/build.d.ts +0 -14
- package/dist/console/runtime/client/build.js +0 -68
- package/dist/console/runtime/client/connections-management.d.ts +0 -68
- package/dist/console/runtime/client/connections-management.js +0 -201
- package/dist/console/runtime/client/env-management.d.ts +0 -20
- package/dist/console/runtime/client/env-management.js +0 -84
- package/dist/console/runtime/client/mcp.d.ts +0 -9
- package/dist/console/runtime/client/mcp.js +0 -14
- package/dist/console/runtime/client/sign-in.d.ts +0 -21
- package/dist/console/runtime/client/sign-in.js +0 -16
- package/dist/console/runtime/client/time.d.ts +0 -30
- package/dist/console/runtime/client/time.js +0 -106
- package/dist/console/runtime/components/console-connect-agent.vue +0 -59
- package/dist/console/runtime/components/console-connections-activity.vue +0 -76
- package/dist/console/runtime/components/console-connections-approvals.vue +0 -169
- package/dist/console/runtime/components/console-connections-details.vue +0 -295
- package/dist/console/runtime/components/console-connections.vue +0 -296
- package/dist/console/runtime/components/console-env-access.vue +0 -151
- package/dist/console/runtime/components/console-env-activity.vue +0 -89
- package/dist/console/runtime/components/console-env-managed.vue +0 -203
- package/dist/console/runtime/components/console-status.vue +0 -25
- package/dist/console/runtime/components/invocation/internal/runtime-type.ts +0 -61
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +0 -1
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +0 -1
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +0 -1
- package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +0 -1
- package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +0 -1
- package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +0 -1
- package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +0 -1
- package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +0 -1
- package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +0 -1
- package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +0 -1
- package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +0 -1
- package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +0 -1
- package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +0 -111
- package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +0 -1
- package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +0 -1
- package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +0 -1
- package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +0 -1
- package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +0 -1
- package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +0 -1
- package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +0 -1
- package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +0 -1
- package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +0 -1
- package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +0 -1
- package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +0 -1
- package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +0 -4
- package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +0 -1
- package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +0 -1
- package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +0 -1
- package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +0 -1
- package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +0 -1
- package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +0 -1
- package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +0 -1
- package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +0 -1
- package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +0 -1
- package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +0 -1
- package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +0 -1
- package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +0 -1
- package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +0 -1
- package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +0 -1
- package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +0 -1
- package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +0 -1
- package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +0 -1
- package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +0 -1
- package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +0 -1
- package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +0 -1
- package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +0 -1
- package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +0 -1
- package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +0 -1
- package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +0 -1
- package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +0 -1
- package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +0 -1
- package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +0 -1
- package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +0 -1
- package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +0 -1
- package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +0 -1
- package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +0 -1
- package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +0 -1
- package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +0 -1
- package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +0 -1
- package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +0 -1
- package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +0 -1
- package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +0 -1
- package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +0 -1
- package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +0 -2
- package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +0 -1
- package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +0 -1
- package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +0 -85
- package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +0 -2
- package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +0 -6
- package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +0 -314
- package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +0 -2
- package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +0 -5
- package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +0 -1
- package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +0 -12
- package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +0 -1
- package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +0 -1
- package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +0 -1
- package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +0 -1
- package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +0 -1
- package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +0 -1
- package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +0 -1
- package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +0 -1
- package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +0 -1
- package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +0 -1
- package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +0 -1
- package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +0 -1
- package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +0 -1
- package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +0 -1
- package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +0 -1
- package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +0 -1
- package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +0 -1
- package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +0 -1
- package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +0 -1
- package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +0 -1
- package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +0 -1
- package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +0 -1
- package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +0 -1
- package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +0 -1
- package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +0 -1
- package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +0 -141
- package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +0 -1
- package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +0 -1
- package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +0 -1
- package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +0 -1
- package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +0 -1
- package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +0 -1
- package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +0 -1266
- package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +0 -1
- package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +0 -1
- package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +0 -1
- package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +0 -1
- package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +0 -1
- package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +0 -1
- package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +0 -1
- package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +0 -1
- package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +0 -1
- package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +0 -1
- package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +0 -1
- package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +0 -1
- package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +0 -1
- package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +0 -1
- package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +0 -1
- package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +0 -1
- package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +0 -1
- package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +0 -1
- package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +0 -1
- package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +0 -1
- package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +0 -1
- package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +0 -1
- package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +0 -1
- package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +0 -1
- package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +0 -1
- package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +0 -1
- package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +0 -1
- package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +0 -1
- package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +0 -1
- package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +0 -1
- package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +0 -1
- package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +0 -1
- package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +0 -1
- package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +0 -1
- package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +0 -1
- package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +0 -1
- package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +0 -1
- package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +0 -1
- package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +0 -1
- package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +0 -1
- package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +0 -1
- package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +0 -1
- package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +0 -1
- package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +0 -1
- package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +0 -1
- package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +0 -1
- package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +0 -257
- package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +0 -1
- package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +0 -1
- package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +0 -1
- package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +0 -1
- package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +0 -1
- package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +0 -1
- package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +0 -1
- package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +0 -1
- package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +0 -1
- package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +0 -1
- package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +0 -1
- package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +0 -1
- package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +0 -1
- package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +0 -1
- package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +0 -1
- package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +0 -1
- package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +0 -1
- package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +0 -1
- package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +0 -1
- package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +0 -1
- package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +0 -1
- package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +0 -1
- package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +0 -1
- package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +0 -1
- package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +0 -1
- package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +0 -1
- package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +0 -1
- package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +0 -1
- package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +0 -1
- package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +0 -1
- package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +0 -1
- package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +0 -1
- package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +0 -1
- package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +0 -1
- package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +0 -1
- package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +0 -1
- package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +0 -1
- package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +0 -1
- package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +0 -1
- package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +0 -1
- package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +0 -1
- package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +0 -1
- package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +0 -1
- package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +0 -1
- package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +0 -168
- package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +0 -1
- package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +0 -1
- package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +0 -1
- package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +0 -1
- package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +0 -1
- package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +0 -1
- package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +0 -1
- package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +0 -1
- package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +0 -1
- package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +0 -1
- package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +0 -1
- package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +0 -1
- package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +0 -1
- package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +0 -1
- package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +0 -1
- package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +0 -1
- package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +0 -1
- package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +0 -1
- package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +0 -1
- package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +0 -1
- package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +0 -1
- package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +0 -1
- package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +0 -1
- package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +0 -1
- package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +0 -1
- package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +0 -1
- package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +0 -1
- package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +0 -1
- package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +0 -1
- package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +0 -1
- package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +0 -1
- package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +0 -1
- package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +0 -1
- package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +0 -1
- package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +0 -1
- package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +0 -1
- package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +0 -1
- package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +0 -1
- package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +0 -1
- package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +0 -1
- package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +0 -1
- package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +0 -1
- package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +0 -8
- package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +0 -1
- package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +0 -1
- package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +0 -1
- package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +0 -1
- package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +0 -1
- package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +0 -1
- package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +0 -1
- package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +0 -1
- package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +0 -1
- package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +0 -1
- package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +0 -1
- package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +0 -1
- package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +0 -1
- package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +0 -1
- package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +0 -1
- package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +0 -1
- package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +0 -1
- package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +0 -1
- package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +0 -1
- package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +0 -1
- package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +0 -1
- package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +0 -1
- package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +0 -1
- package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +0 -1
- package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +0 -1
- package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +0 -1
- package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +0 -1
- package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +0 -1
- package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +0 -1
- package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +0 -1
- package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +0 -1
- package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +0 -1
- package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +0 -1
- package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +0 -1
- package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +0 -1
- package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +0 -1
- package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +0 -4
- package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +0 -1
- package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +0 -3
- package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +0 -1
- package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +0 -1
- package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +0 -1
- package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +0 -1
- package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +0 -3
- package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +0 -1
- package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +0 -4
- package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +0 -1
- package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +0 -1
- package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +0 -1
- package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +0 -1
- package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +0 -1
- package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +0 -1
- package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +0 -1
- package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +0 -1
- package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +0 -1
- package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +0 -1
- package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +0 -1
- package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +0 -1
- package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +0 -1
- package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +0 -1
- package/dist/console/runtime/public/console/console-QjK_HKoM.css +0 -2
- package/dist/console/runtime/public/console/console-j0_7kmR5.js +0 -21
- package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +0 -1
- package/dist/console/runtime/server/auth-manage.d.ts +0 -7
- package/dist/console/runtime/server/auth-manage.js +0 -155
- package/dist/console/runtime/server/client.get.d.ts +0 -3
- package/dist/console/runtime/server/client.get.js +0 -11
- package/dist/console/runtime/server/env-manage.d.ts +0 -5
- package/dist/console/runtime/server/env-manage.js +0 -10
- package/dist/console/runtime/server/mcp-authorization-server.d.ts +0 -11
- package/dist/console/runtime/server/mcp-authorization-server.js +0 -71
- package/dist/console/runtime/server/mcp-discovery.d.ts +0 -7
- package/dist/console/runtime/server/mcp-discovery.js +0 -20
- package/dist/console/runtime/server/mcp-metadata.d.ts +0 -11
- package/dist/console/runtime/server/mcp-metadata.js +0 -54
- package/dist/console/runtime/server/mcp.d.ts +0 -16
- package/dist/console/runtime/server/mcp.js +0 -364
- package/dist/console/runtime/server/page.get.d.ts +0 -4
- package/dist/console/runtime/server/page.get.js +0 -49
- package/dist/console/runtime/server/schedule-run.d.ts +0 -36
- package/dist/console/runtime/server/schedule-run.js +0 -213
- package/dist/console/runtime/server/sign-in.d.ts +0 -5
- package/dist/console/runtime/server/sign-in.js +0 -11
- package/dist/content/presets/cms.d.ts +0 -2
- package/dist/content/presets/cms.js +0 -2
- package/dist/database/drizzle.d.ts +0 -1
- package/dist/database/drizzle.js +0 -2
- package/dist/database-DLPk6HVu.d.ts +0 -7
- package/dist/database-hyYo7JVD.d.ts +0 -11
- package/dist/definitions-BJGSpYGa.d.ts +0 -209
- package/dist/definitions-Y0pIwSQm.d.ts +0 -19
- package/dist/diagnostics-YTWM3K3t.js +0 -74
- package/dist/diagnostics-lT85pbVx.d.ts +0 -6
- package/dist/document-metadata-nXusaMSq.js +0 -6
- package/dist/documents-BRt3-fIu.d.ts +0 -72
- package/dist/email/server.d.ts +0 -1
- package/dist/email/server.js +0 -2
- package/dist/env/auth.d.ts +0 -1
- package/dist/env/auth.js +0 -2
- package/dist/env/http.d.ts +0 -1
- package/dist/env/http.js +0 -2
- package/dist/env/presets.d.ts +0 -1
- package/dist/env/presets.js +0 -2
- package/dist/env/provider.d.ts +0 -1
- package/dist/env/provider.js +0 -2
- package/dist/env/schema.d.ts +0 -1
- package/dist/env/schema.js +0 -2
- package/dist/env/secret.d.ts +0 -1
- package/dist/env/secret.js +0 -2
- package/dist/error-diagnostics-n7V-_SPy.js +0 -160
- package/dist/h3-v1-request-DDGXJ9E7.js +0 -166
- package/dist/index-CWk5rJOo.d.ts +0 -247
- package/dist/internal-Ca7DYHpa.js +0 -311
- package/dist/internal-VvXn0bX4.d.ts +0 -25
- package/dist/invocations-DkjhdkpT.js +0 -1151
- package/dist/invocations-TvN9ux06.d.ts +0 -47
- package/dist/loopback-DAr1IFQP.js +0 -43
- package/dist/media-BBybn3NP.js +0 -512
- package/dist/operation-contributions-BXHKgT_w.d.ts +0 -18
- package/dist/operations-4uDh4zah.js +0 -38
- package/dist/operations-7RHOMAHT.js +0 -455
- package/dist/operations-Bgklf9hM.d.ts +0 -149
- package/dist/operations-CwqEItfA.js +0 -468
- package/dist/package-BsfDnNm8.js +0 -1119
- package/dist/page-tools-B3g4CQ5c.js +0 -402
- package/dist/page-tools-C5dufxVz.d.ts +0 -16
- package/dist/page-tools-shared-D-amu6sx.js +0 -53
- package/dist/project-registry-BT7RcCcQ.js +0 -39
- package/dist/registry-dSdI2Oa3.js +0 -142
- package/dist/request-BT6g-Fwf.js +0 -326
- package/dist/request-DOvvVgpI.d.ts +0 -52
- package/dist/retention-DBXuVtQL.js +0 -257
- package/dist/rolldown-runtime-8H4AJuhK.js +0 -14
- package/dist/runtime/h3.d.ts +0 -2
- package/dist/runtime/h3.js +0 -2
- package/dist/runtime/node.d.ts +0 -1
- package/dist/runtime/node.js +0 -2
- package/dist/runtime-DPqC3MTX.js +0 -60
- package/dist/scan-module-TmHMoGKw.js +0 -148
- package/dist/secret-DrgWMRms.js +0 -47
- package/dist/sections-BVtKNenQ.js +0 -108
- package/dist/sections-C985LlW2.d.ts +0 -31
- package/dist/sections-Drj-o4_z.d.ts +0 -141
- package/dist/source/file.d.ts +0 -1
- package/dist/source/file.js +0 -2
- package/dist/source/files.d.ts +0 -1
- package/dist/source/files.js +0 -2
- package/dist/source/github.d.ts +0 -1
- package/dist/source/github.js +0 -2
- package/dist/source/glob.d.ts +0 -1
- package/dist/source/glob.js +0 -2
- package/dist/source/markdown.d.ts +0 -1
- package/dist/source/markdown.js +0 -2
- package/dist/src-CaqWiza-.js +0 -7910
- package/dist/task.d.ts +0 -3
- package/dist/task.js +0 -2
- package/dist/types-BsuwNk3q.js +0 -256
- package/dist/ui/attachment.d.ts +0 -1
- package/dist/ui/attachment.js +0 -2
- package/dist/ui/avatar-stack.d.ts +0 -1
- package/dist/ui/avatar-stack.js +0 -2
- package/dist/ui/bubble.d.ts +0 -1
- package/dist/ui/bubble.js +0 -2
- package/dist/ui/chat-message.d.ts +0 -1
- package/dist/ui/chat-message.js +0 -2
- package/dist/ui/chat-session.d.ts +0 -1
- package/dist/ui/chat-session.js +0 -2
- package/dist/ui/chat.d.ts +0 -1
- package/dist/ui/chat.js +0 -2
- package/dist/ui/code-block.d.ts +0 -1
- package/dist/ui/code-block.js +0 -2
- package/dist/ui/code-view.d.ts +0 -1
- package/dist/ui/code-view.js +0 -2
- package/dist/ui/comments.d.ts +0 -1
- package/dist/ui/comments.js +0 -2
- package/dist/ui/connection-status.d.ts +0 -1
- package/dist/ui/connection-status.js +0 -2
- package/dist/ui/file-diff.d.ts +0 -1
- package/dist/ui/file-diff.js +0 -2
- package/dist/ui/file-tree.d.ts +0 -1
- package/dist/ui/file-tree.js +0 -2
- package/dist/ui/file-view.d.ts +0 -1
- package/dist/ui/file-view.js +0 -2
- package/dist/ui/markdown.d.ts +0 -1
- package/dist/ui/markdown.js +0 -2
- package/dist/ui/marker.d.ts +0 -1
- package/dist/ui/marker.js +0 -2
- package/dist/ui/message-parts.d.ts +0 -1
- package/dist/ui/message-parts.js +0 -2
- package/dist/ui/message.d.ts +0 -1
- package/dist/ui/message.js +0 -2
- package/dist/ui/multi-file-diff.d.ts +0 -1
- package/dist/ui/multi-file-diff.js +0 -2
- package/dist/ui/nuxt.d.ts +0 -3
- package/dist/ui/nuxt.js +0 -3
- package/dist/ui/patch-diff.d.ts +0 -1
- package/dist/ui/patch-diff.js +0 -2
- package/dist/ui/prompt-input.d.ts +0 -1
- package/dist/ui/prompt-input.js +0 -2
- package/dist/ui/sync-status.d.ts +0 -1
- package/dist/ui/sync-status.js +0 -2
- package/dist/ui/tool-list.d.ts +0 -1
- package/dist/ui/tool-list.js +0 -2
- package/dist/ui/trace-run.d.ts +0 -1
- package/dist/ui/trace-run.js +0 -2
- package/dist/ui/trace.d.ts +0 -1
- package/dist/ui/trace.js +0 -2
- package/dist/ui/unresolved-file.d.ts +0 -1
- package/dist/ui/unresolved-file.js +0 -2
package/dist/console/ui.js
CHANGED
|
@@ -1,62 +1,58 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as consoleDuration, l as consoleRelativeTime, r as consoleDateTime, t as consoleBytes } from "../format-BOYlanIZ.js";
|
|
2
2
|
import { JSONUIProvider, Renderer } from "@json-render/vue";
|
|
3
3
|
import { Suspense, computed, defineAsyncComponent, defineComponent, getCurrentInstance, h, nextTick, onBeforeUnmount, onMounted, ref, useId, watch } from "vue";
|
|
4
|
-
import { ToolList } from "@vite-hub/ui
|
|
4
|
+
import { Markdown, ToolList, useCopy } from "@vite-hub/ui";
|
|
5
5
|
import { useIntervalFn, useMounted, useNow } from "@vueuse/core";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
if (tag === "[object Boolean]") return "boolean";
|
|
47
|
-
if (tag === "[object Number]") return "number";
|
|
48
|
-
if (tag === "[object String]") return "string";
|
|
49
|
-
return "symbol";
|
|
6
|
+
function rows(value) {
|
|
7
|
+
return Array.isArray(value) ? value.filter((item) => typeof item === "object" && item !== null) : [];
|
|
8
|
+
}
|
|
9
|
+
function count(attributes, key, fallback) {
|
|
10
|
+
const value = attributes[key];
|
|
11
|
+
return typeof value === "number" && Number.isFinite(value) ? value : fallback;
|
|
12
|
+
}
|
|
13
|
+
function noun(items, total) {
|
|
14
|
+
return `${items.every((item) => typeof item.mediaType === "string" && item.mediaType.startsWith("image/")) ? "image" : "attachment"}${total === 1 ? "" : "s"}`;
|
|
15
|
+
}
|
|
16
|
+
/** `Sent 3 images (2.1 MB), skipped 1: byte-budget` */
|
|
17
|
+
function inputAttachmentsTitle(attributes) {
|
|
18
|
+
const sent = rows(attributes["input.attachments.sent"]);
|
|
19
|
+
const skipped = rows(attributes["input.attachments.skipped"]);
|
|
20
|
+
const sentCount = count(attributes, "input.attachments.sentCount", sent.length);
|
|
21
|
+
const skippedCount = count(attributes, "input.attachments.skippedCount", skipped.length);
|
|
22
|
+
const bytes = count(attributes, "input.attachments.sentBytes", sent.reduce((total, item) => total + (item.bytes ?? 0), 0));
|
|
23
|
+
const title = sentCount ? `Sent ${sentCount} ${noun(sent, sentCount)} (${consoleBytes(bytes)})` : `Sent no ${noun(skipped, 2)}`;
|
|
24
|
+
if (!skippedCount) return title;
|
|
25
|
+
const shortened = attributes["vitehub.observation.truncatedAttributes"];
|
|
26
|
+
const shortenedSkips = attributes["vitehub.observation.truncated"] === true && (!Array.isArray(shortened) || shortened.includes("input.attachments.skipped"));
|
|
27
|
+
if (skipped.length < skippedCount || shortenedSkips) return `${title}, skipped ${skippedCount}`;
|
|
28
|
+
const reasons = /* @__PURE__ */ new Map();
|
|
29
|
+
for (const item of skipped) reasons.set(item.reason ?? "unknown", (reasons.get(item.reason ?? "unknown") ?? 0) + 1);
|
|
30
|
+
const list = [...reasons].map(([reason, total]) => total > 1 ? `${reason} (${total})` : reason).join(", ");
|
|
31
|
+
return `${title}, skipped ${skippedCount}${list ? `: ${list}` : ""}`;
|
|
32
|
+
}
|
|
33
|
+
function line(item, outcome) {
|
|
34
|
+
return `- ${outcome}: ${[
|
|
35
|
+
item.name ? `\`${item.name}\`` : void 0,
|
|
36
|
+
item.mediaType,
|
|
37
|
+
item.bytes === void 0 ? void 0 : consoleBytes(item.bytes),
|
|
38
|
+
item.origin === "history" ? "from history" : item.origin === "current" ? "from current input" : void 0,
|
|
39
|
+
item.messageId ? `message \`${item.messageId}\`` : void 0
|
|
40
|
+
].filter(Boolean).join(" · ")}`;
|
|
41
|
+
}
|
|
42
|
+
/** One line per attachment, sent ones first. */
|
|
43
|
+
function inputAttachmentsBody(attributes) {
|
|
44
|
+
const lines = [...rows(attributes["input.attachments.sent"]).map((item) => line(item, "Sent")), ...rows(attributes["input.attachments.skipped"]).map((item) => line(item, `Skipped (${item.reason ?? "unknown"})`))];
|
|
45
|
+
return lines.length ? lines.join("\n") : void 0;
|
|
50
46
|
}
|
|
51
47
|
//#endregion
|
|
52
48
|
//#region src/console/runtime/components/invocation/internal/payload-text.ts
|
|
53
49
|
function payloadText(value) {
|
|
54
|
-
if (
|
|
50
|
+
if (typeof value === "string") return value;
|
|
55
51
|
const ancestors = [];
|
|
56
52
|
try {
|
|
57
53
|
return JSON.stringify(value, function(_key, item) {
|
|
58
|
-
if (
|
|
59
|
-
if (
|
|
54
|
+
if (typeof item === "bigint") return `${item}n`;
|
|
55
|
+
if (typeof item !== "object" || item === null) return item;
|
|
60
56
|
while (ancestors.length && ancestors.at(-1) !== this) ancestors.pop();
|
|
61
57
|
if (ancestors.includes(item)) return "[Circular]";
|
|
62
58
|
ancestors.push(item);
|
|
@@ -82,19 +78,74 @@ function payloadText(value) {
|
|
|
82
78
|
//#endregion
|
|
83
79
|
//#region src/console/runtime/components/invocation/internal/invocation-activity.ts
|
|
84
80
|
function record$1(value) {
|
|
85
|
-
return value !== null &&
|
|
81
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
82
|
+
}
|
|
83
|
+
const truncatedContentLabels = {
|
|
84
|
+
"approval.input": "Approval input",
|
|
85
|
+
"approval.reason": "Approval reason",
|
|
86
|
+
body: "Details",
|
|
87
|
+
"channel.effect.content": "Delivered text",
|
|
88
|
+
content: "Details",
|
|
89
|
+
"error.message": "Error",
|
|
90
|
+
input: "Input",
|
|
91
|
+
"input.attachments.sent": "Sent attachments",
|
|
92
|
+
"input.attachments.skipped": "Skipped attachments",
|
|
93
|
+
"input.messages": "Conversation history",
|
|
94
|
+
"input.prompt": "Conversation history",
|
|
95
|
+
"message.content": "Message",
|
|
96
|
+
output: "Output",
|
|
97
|
+
"result.text": "Message",
|
|
98
|
+
"tool.error": "Error",
|
|
99
|
+
"tool.input": "Input",
|
|
100
|
+
"tool.output": "Output",
|
|
101
|
+
"vitehub.activity.body": "Details",
|
|
102
|
+
"vitehub.activity.detail": "Details",
|
|
103
|
+
"vitehub.activity.progress": "Details",
|
|
104
|
+
"vitehub.activity.title": "Title",
|
|
105
|
+
"vitehub.payload.value": "Details"
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* The displayed attributes that an observation's truncation flag covers.
|
|
109
|
+
* `undefined` means the record is flagged but does not name its attributes, so any displayed value may be cut.
|
|
110
|
+
* Identity and accounting metadata are never displayed, so their truncation returns an empty list.
|
|
111
|
+
*/
|
|
112
|
+
function truncatedContent(observation) {
|
|
113
|
+
const attributes = observation.attributes;
|
|
114
|
+
if (attributes?.["vitehub.observation.truncated"] !== true) return [];
|
|
115
|
+
const named = attributes["vitehub.observation.truncatedAttributes"];
|
|
116
|
+
if (!Array.isArray(named)) return void 0;
|
|
117
|
+
return named.filter((key) => typeof key === "string" && key in truncatedContentLabels);
|
|
118
|
+
}
|
|
119
|
+
function cutsContent(observation) {
|
|
120
|
+
return truncatedContent(observation)?.length !== 0;
|
|
121
|
+
}
|
|
122
|
+
/** The note that says which displayed value of an activity was shortened. */
|
|
123
|
+
function invocationTruncationNotice(activity) {
|
|
124
|
+
if (!activity.truncated) return;
|
|
125
|
+
const labels = [...new Set((activity.truncatedAttributes ?? []).map((key) => truncatedContentLabels[key]))];
|
|
126
|
+
if (!labels.length) return "Part of this activity was shortened when it was recorded.";
|
|
127
|
+
return `${labels.length === 1 ? labels[0] : `${labels.slice(0, -1).join(", ")} and ${labels.at(-1).toLowerCase()}`} shortened when recorded.`;
|
|
86
128
|
}
|
|
87
129
|
function messageText(value) {
|
|
88
130
|
const message = record$1(value);
|
|
89
131
|
if (!Array.isArray(message?.parts)) return;
|
|
90
132
|
const parts = message.parts.flatMap((part) => {
|
|
91
133
|
const item = record$1(part);
|
|
92
|
-
if (
|
|
93
|
-
if (item?.type === "image" &&
|
|
134
|
+
if (typeof item?.text === "string") return [item.text];
|
|
135
|
+
if (item?.type === "image" && typeof item.url === "string" && /^(https?:\/\/|\/(?!\/))/.test(item.url)) return [`\n\n![${typeof item.name === "string" ? item.name.replace(/[\[\]\r\n]/g, "") : "Attachment"}](<${item.url.replace(/[<>\r\n]/g, "")}>)\n\n`];
|
|
94
136
|
return [];
|
|
95
137
|
});
|
|
96
138
|
return parts.length ? parts.join("") : void 0;
|
|
97
139
|
}
|
|
140
|
+
/** The header line that ViteHub adds to a chat message for the model, such as its time and author, without brackets. */
|
|
141
|
+
function chatMessageHeader(message) {
|
|
142
|
+
if (!Array.isArray(message?.parts)) return;
|
|
143
|
+
for (const part of message.parts) {
|
|
144
|
+
const item = record$1(part);
|
|
145
|
+
if (item?.type !== "data-chat-message-header") continue;
|
|
146
|
+
return stringAttribute(record$1(item.data) ?? {}, "modelText")?.replace(/^\[(.*)\]$/s, "$1") || void 0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
98
149
|
function messageRole(value) {
|
|
99
150
|
return value === "assistant" || value === "system" || value === "tool" || value === "user" ? value : void 0;
|
|
100
151
|
}
|
|
@@ -119,9 +170,9 @@ function activityBody(attributes) {
|
|
|
119
170
|
]) {
|
|
120
171
|
const value = attributes[key];
|
|
121
172
|
if (value === void 0 || value === "undefined") continue;
|
|
122
|
-
if (
|
|
173
|
+
if (typeof value === "string" && value) return value;
|
|
123
174
|
try {
|
|
124
|
-
const json = JSON.stringify(value, (_key, item) =>
|
|
175
|
+
const json = JSON.stringify(value, (_key, item) => typeof item === "bigint" ? `${item}n` : item, 2);
|
|
125
176
|
if (json) return json;
|
|
126
177
|
} catch (error) {
|
|
127
178
|
return error instanceof Error ? `[Unable to display payload: ${error.message}]` : "[Unable to display payload]";
|
|
@@ -136,10 +187,10 @@ function fileChanges(attributes) {
|
|
|
136
187
|
const paths = [];
|
|
137
188
|
const patches = item.changes.flatMap((value) => {
|
|
138
189
|
const change = record$1(value);
|
|
139
|
-
if (
|
|
190
|
+
if (typeof change?.path !== "string") return [];
|
|
140
191
|
const path = change.path.split("/workspace/").at(-1) || change.path.replace(/^\/+/, "");
|
|
141
192
|
paths.push(path);
|
|
142
|
-
if (
|
|
193
|
+
if (typeof change.diff !== "string" || !change.diff) return [];
|
|
143
194
|
return [`diff --git a/${path} b/${path}\n--- a/${path}\n+++ b/${path}\n${change.diff.endsWith("\n") ? change.diff : `${change.diff}\n`}`];
|
|
144
195
|
});
|
|
145
196
|
if (patches.length || paths.length) return {
|
|
@@ -148,7 +199,7 @@ function fileChanges(attributes) {
|
|
|
148
199
|
};
|
|
149
200
|
}
|
|
150
201
|
const body = attributes["vitehub.activity.body"];
|
|
151
|
-
if (attributes["vitehub.activity.kind"] === "change" &&
|
|
202
|
+
if (attributes["vitehub.activity.kind"] === "change" && typeof body === "string" && /^diff --git /m.test(body)) {
|
|
152
203
|
const paths = [...body.matchAll(/^diff --git a\/(.+?) b\/.+$/gm)].map((match) => match[1]);
|
|
153
204
|
return {
|
|
154
205
|
patches: (body.endsWith("\n") ? body : `${body}\n`).split(/^(?=diff --git )/m).filter((patch) => patch.startsWith("diff --git ")),
|
|
@@ -169,13 +220,13 @@ function commandDetails(attributes, observations) {
|
|
|
169
220
|
const input = payloadFor("tool.input");
|
|
170
221
|
const command = stringAttribute([output, input].map((item) => Array.isArray(item?.commandActions) ? record$1(item.commandActions[0]) : void 0).find((candidate) => stringAttribute(candidate ?? {}, "command") !== void 0) ?? {}, "command") ?? stringAttribute(input ?? {}, "command") ?? stringAttribute(output ?? {}, "command");
|
|
171
222
|
if (!command) return;
|
|
172
|
-
const streamedOutput = observations.filter((observation) => observation.name === "agent.tool.output").map((observation) => observation.attributes?.["tool.output"]).filter((value) =>
|
|
173
|
-
const directOutput = observations.filter((observation) => /\.(finish|error)$/.test(observation.name)).map((observation) => observation.attributes?.["tool.output"]).findLast((value) =>
|
|
174
|
-
const outputText =
|
|
223
|
+
const streamedOutput = observations.filter((observation) => observation.name === "agent.tool.output").map((observation) => observation.attributes?.["tool.output"]).filter((value) => typeof value === "string").join("");
|
|
224
|
+
const directOutput = observations.filter((observation) => /\.(finish|error)$/.test(observation.name)).map((observation) => observation.attributes?.["tool.output"]).findLast((value) => typeof value === "string");
|
|
225
|
+
const outputText = typeof output?.aggregatedOutput === "string" ? output.aggregatedOutput : streamedOutput ? streamedOutput : typeof directOutput === "string" ? directOutput : typeof output?.output === "string" ? output.output : typeof input?.aggregatedOutput === "string" ? input.aggregatedOutput : typeof input?.output === "string" ? input.output : void 0;
|
|
175
226
|
return {
|
|
176
227
|
command,
|
|
177
|
-
...
|
|
178
|
-
...
|
|
228
|
+
...typeof input?.cwd === "string" ? { cwd: input.cwd } : typeof output?.cwd === "string" ? { cwd: output.cwd } : {},
|
|
229
|
+
...typeof output?.exitCode === "number" ? { exitCode: output.exitCode } : typeof input?.exitCode === "number" ? { exitCode: input.exitCode } : {},
|
|
179
230
|
...outputText !== void 0 ? { output: outputText } : {}
|
|
180
231
|
};
|
|
181
232
|
}
|
|
@@ -195,12 +246,12 @@ function skillReadDetails(attributes) {
|
|
|
195
246
|
if (!item || !Array.isArray(item.commandActions)) continue;
|
|
196
247
|
for (const value of item.commandActions) {
|
|
197
248
|
const action = record$1(value);
|
|
198
|
-
const cwd =
|
|
199
|
-
if (action?.type === "read" &&
|
|
249
|
+
const cwd = typeof item.cwd === "string" ? item.cwd.replace(/\/+$/, "") : void 0;
|
|
250
|
+
if (action?.type === "read" && typeof action.path === "string") {
|
|
200
251
|
add(cwd && action.path.startsWith(`${cwd}/`) ? action.path.slice(cwd.length + 1) : action.path.replace(/^\.\//, ""));
|
|
201
252
|
continue;
|
|
202
253
|
}
|
|
203
|
-
if (action?.type !== "unknown" ||
|
|
254
|
+
if (action?.type !== "unknown" || typeof action.command !== "string") continue;
|
|
204
255
|
const tokens = action.command.trim().split(/\s+/);
|
|
205
256
|
if (tokens[0] !== "cat" || tokens.length < 2 || tokens.slice(1).some((token) => token.startsWith("-") || /[\\'"`$;&|<>(){}[\]*?!]/.test(token))) continue;
|
|
206
257
|
for (const token of tokens.slice(1)) add(token.replace(/^\.\//, ""));
|
|
@@ -211,7 +262,7 @@ function skillReadDetails(attributes) {
|
|
|
211
262
|
function stringAttribute(attributes, ...keys) {
|
|
212
263
|
for (const key of keys) {
|
|
213
264
|
const value = attributes[key];
|
|
214
|
-
if (
|
|
265
|
+
if (typeof value === "string" && value.trim()) return value.trim();
|
|
215
266
|
}
|
|
216
267
|
}
|
|
217
268
|
function payloadDetail(attributes) {
|
|
@@ -226,8 +277,10 @@ function payloadDetail(attributes) {
|
|
|
226
277
|
/** Sentences for common snake_case tool identifiers. Other identifiers keep their words with the underscores removed. */
|
|
227
278
|
const toolTitles = {
|
|
228
279
|
apply_patch: "Changed files",
|
|
280
|
+
command_execution: "Ran command",
|
|
229
281
|
edit_file: "Changed files",
|
|
230
282
|
exec_command: "Ran command",
|
|
283
|
+
file_change: "Changed files",
|
|
231
284
|
grep_search: "Searched code",
|
|
232
285
|
list_dir: "Listed directory",
|
|
233
286
|
read_file: "Read file",
|
|
@@ -238,13 +291,21 @@ const toolTitles = {
|
|
|
238
291
|
};
|
|
239
292
|
function normalizedTitle(value) {
|
|
240
293
|
const trimmed = value.replace(/\s+(?:complete|completed)$/i, "").trim();
|
|
241
|
-
const
|
|
294
|
+
const namespaced = /^[a-z0-9-]+\.[a-z0-9_]+$/i.test(trimmed);
|
|
295
|
+
const name = namespaced ? trimmed.slice(trimmed.indexOf(".") + 1).replace(/^mcp_(?=[a-z0-9]+_)/i, "") : trimmed;
|
|
296
|
+
const known = toolTitles[name.toLocaleLowerCase()];
|
|
242
297
|
if (known) return known;
|
|
243
|
-
const title = /^[a-z0-9]+(?:_[a-z0-9]+)+$/i.test(
|
|
298
|
+
const title = namespaced || /^[a-z0-9]+(?:_[a-z0-9]+)+$/i.test(name) ? name.split("_").map((word) => word.toLocaleLowerCase() === "mcp" ? "MCP" : word).join(" ") : name;
|
|
244
299
|
return title ? title[0].toUpperCase() + title.slice(1) : "Activity";
|
|
245
300
|
}
|
|
301
|
+
/** Shows the script that `sh -lc '<script>'` wrappers run, so the row reads as the command the agent typed. */
|
|
302
|
+
function shellScript(command) {
|
|
303
|
+
const match = /^(?:\/(?:usr\/)?bin\/)?(?:ba|z|da)?sh\s+-l?c\s+(['"])([\s\S]*)\1$/.exec(command.trim());
|
|
304
|
+
if (!match) return command;
|
|
305
|
+
return match[1] === "'" ? match[2].replaceAll("'\\''", "'") : match[2].replace(/\\(["\\$`])/g, "$1");
|
|
306
|
+
}
|
|
246
307
|
function activityPreview(attributes, command, paths, title) {
|
|
247
|
-
const detail = command
|
|
308
|
+
const detail = (command ? shellScript(command.command) : void 0) ?? payloadDetail(attributes) ?? (paths.length ? `${paths[0]}${paths.length > 1 ? ` +${paths.length - 1} more` : ""}` : void 0);
|
|
248
309
|
if (!detail || normalizedTitle(detail).toLocaleLowerCase() === title.toLocaleLowerCase()) return;
|
|
249
310
|
return detail;
|
|
250
311
|
}
|
|
@@ -252,11 +313,21 @@ function activityKey(observation, anonymousMessageKey) {
|
|
|
252
313
|
const attributes = observation.attributes ?? {};
|
|
253
314
|
return String(attributes["step.id"] ?? attributes["tool.id"] ?? attributes["approval.id"] ?? attributes["model.call.id"] ?? (attributes["message.id"] ? `${String(attributes["message.id"])}:${String(attributes["message.phase"] ?? "message")}` : void 0) ?? (typeof attributes["message.content"] === "string" ? anonymousMessageKey : void 0) ?? `observation:${observation.sequence}`);
|
|
254
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* Provider Drivers record model reasoning with `message.phase: "reasoning"`. Invocations recorded
|
|
318
|
+
* before that phase existed stored it as commentary with a `reasoning_text:` or
|
|
319
|
+
* `reasoning_summary_text:` message id, so those ids still read as reasoning.
|
|
320
|
+
*/
|
|
321
|
+
function isReasoningMessage(attributes) {
|
|
322
|
+
if (attributes["message.phase"] === "reasoning") return true;
|
|
323
|
+
const id = attributes["message.id"];
|
|
324
|
+
return attributes["message.phase"] === "commentary" && typeof id === "string" && /^reasoning(?:_summary)?_text:/.test(id);
|
|
325
|
+
}
|
|
255
326
|
function activityKind(observation, attributes, patches) {
|
|
256
327
|
if (patches.length) return "change";
|
|
257
328
|
if (observation.name === "agent.usage.recorded") return "model";
|
|
258
329
|
const explicit = attributes["vitehub.activity.kind"];
|
|
259
|
-
if (
|
|
330
|
+
if (typeof explicit === "string" && [
|
|
260
331
|
"action",
|
|
261
332
|
"approval",
|
|
262
333
|
"change",
|
|
@@ -277,9 +348,8 @@ function activityKind(observation, attributes, patches) {
|
|
|
277
348
|
if (attributes["tool.name"] || attributes["tool.id"] || observation.name.includes(".tool.")) return "tool";
|
|
278
349
|
if (attributes["approval.id"] || observation.name.includes(".approval.")) return "approval";
|
|
279
350
|
if (observation.type === "error" || observation.name.endsWith(".error")) return "error";
|
|
351
|
+
if (isReasoningMessage(attributes) || observation.name.includes(".reasoning.")) return "reasoning";
|
|
280
352
|
if (attributes["message.phase"] === "commentary") return "message";
|
|
281
|
-
if (attributes["message.phase"] === "reasoning") return "reasoning";
|
|
282
|
-
if (observation.name.includes(".reasoning.")) return "reasoning";
|
|
283
353
|
if (observation.name.includes(".model.")) return "model";
|
|
284
354
|
if (attributes["message.role"] || attributes["message.content"] || attributes["input.prompt"] || attributes["input.messages"] || attributes["result.text"]) return "message";
|
|
285
355
|
if (observation.name.includes(".invocation.")) return "run";
|
|
@@ -288,12 +358,12 @@ function activityKind(observation, attributes, patches) {
|
|
|
288
358
|
function numericAttribute(attributes, ...keys) {
|
|
289
359
|
for (const key of keys) {
|
|
290
360
|
const value = attributes[key];
|
|
291
|
-
if (
|
|
361
|
+
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
292
362
|
}
|
|
293
363
|
}
|
|
294
364
|
function isRecordedTool(value) {
|
|
295
365
|
const tool = record$1(value);
|
|
296
|
-
return
|
|
366
|
+
return typeof tool?.name === "string" && (tool.icon === void 0 || typeof tool.icon === "string") && (tool.label === void 0 || typeof tool.label === "string");
|
|
297
367
|
}
|
|
298
368
|
function invocationActivities(invocation) {
|
|
299
369
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -317,27 +387,55 @@ function invocationActivities(invocation) {
|
|
|
317
387
|
if (hasAgentMessages && !resultText && (observation.name === "agent.stream.finish" || observation.name === "agent.invocation.finish")) continue;
|
|
318
388
|
if (delta && (role === void 0 || role === "assistant")) assistantDeltaText += delta;
|
|
319
389
|
const inputMessages = Array.isArray(originalAttributes["input.messages"]) ? originalAttributes["input.messages"] : Array.isArray(originalAttributes["input.prompt"]) ? originalAttributes["input.prompt"] : void 0;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
390
|
+
const trigger = record$1(originalAttributes["input.trigger.message"]);
|
|
391
|
+
const triggerId = trigger && stringAttribute(trigger, "id");
|
|
392
|
+
const recoveredTrigger = trigger && triggerId && !inputMessages?.some((message) => record$1(message)?.id === triggerId) ? trigger : void 0;
|
|
393
|
+
const inputs = recoveredTrigger ? [recoveredTrigger, ...inputMessages ?? []] : inputMessages;
|
|
394
|
+
if (inputs) {
|
|
395
|
+
let lastInputKey;
|
|
396
|
+
let firstInputKey;
|
|
397
|
+
inputs.forEach((message, index) => {
|
|
398
|
+
const value = record$1(message);
|
|
399
|
+
const body = messageText(value) ?? (Array.isArray(value?.parts) ? "```json\n" + payloadText(value.parts) + "\n```" : void 0);
|
|
400
|
+
const role = messageRole(value?.role);
|
|
401
|
+
if (!body || !role) return;
|
|
402
|
+
const key = `input-message:${observation.sequence}:${index}`;
|
|
403
|
+
const id = value ? stringAttribute(value, "id") : void 0;
|
|
404
|
+
const header = chatMessageHeader(value);
|
|
405
|
+
firstInputKey ??= key;
|
|
406
|
+
lastInputKey = key;
|
|
407
|
+
groups.set(key, [{
|
|
408
|
+
...observation,
|
|
409
|
+
attributes: {
|
|
410
|
+
"message.content": body,
|
|
411
|
+
...header ? { "message.header": header } : {},
|
|
412
|
+
"message.origin": "invocation-input",
|
|
413
|
+
"message.id": id ?? key,
|
|
414
|
+
"message.role": role,
|
|
415
|
+
...triggerId && id === triggerId ? { "message.trigger": true } : {}
|
|
416
|
+
},
|
|
417
|
+
name: "agent.input.message",
|
|
418
|
+
sequence: observation.sequence - (inputs.length - index) / (inputs.length + 1)
|
|
419
|
+
}]);
|
|
420
|
+
});
|
|
421
|
+
const omitted = originalAttributes["input.messages.omitted"];
|
|
422
|
+
const firstInput = firstInputKey === void 0 ? void 0 : groups.get(firstInputKey)?.[0];
|
|
423
|
+
if (firstInput && typeof omitted === "number" && omitted > 0) firstInput.attributes = {
|
|
424
|
+
...firstInput.attributes,
|
|
425
|
+
...recoveredTrigger ? { "input.messages.omittedUnplaced": omitted - 1 } : { "input.messages.omitted": omitted }
|
|
426
|
+
};
|
|
427
|
+
const historyTruncation = truncatedContent(observation) === void 0 ? { "vitehub.observation.truncated": true } : truncatedContent(observation).some((key) => key === "input.messages" || key === "input.prompt") ? {
|
|
428
|
+
"vitehub.observation.truncated": true,
|
|
429
|
+
"vitehub.observation.truncatedAttributes": ["input.messages"]
|
|
430
|
+
} : void 0;
|
|
431
|
+
const lastInput = lastInputKey === void 0 ? void 0 : groups.get(lastInputKey)?.[0];
|
|
432
|
+
if (lastInput && historyTruncation) lastInput.attributes = {
|
|
433
|
+
...lastInput.attributes,
|
|
434
|
+
...historyTruncation
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
const attributes = inputs === void 0 ? originalAttributes : Object.fromEntries(Object.entries(originalAttributes).filter(([key]) => key !== "input.messages" && key !== "input.prompt" && key !== "input.messages.omitted"));
|
|
438
|
+
if (inputs !== void 0 && Object.keys(attributes).length === 0) continue;
|
|
341
439
|
const isAnonymousMessage = stringAttribute(attributes, "message.content") !== void 0 && !attributes["message.id"];
|
|
342
440
|
const messagePhase = stringAttribute(attributes, "message.phase") ?? "message";
|
|
343
441
|
if (isAnonymousMessage && (!anonymousMessageKey || anonymousMessagePhase !== messagePhase)) {
|
|
@@ -364,11 +462,11 @@ function invocationActivities(invocation) {
|
|
|
364
462
|
}
|
|
365
463
|
for (const observations of groups.values()) {
|
|
366
464
|
if (Math.max(...observations.map((item) => item.sequence)) !== latestMessageSequence) continue;
|
|
367
|
-
if (observations.some(
|
|
368
|
-
if (!observations.every((item) => item.name.startsWith("agent.message") && (item.attributes?.["message.role"] === void 0 || item.attributes["message.role"] === "assistant") && item.attributes?.["message.phase"] !== "commentary")) continue;
|
|
465
|
+
if (observations.some(cutsContent)) continue;
|
|
466
|
+
if (!observations.every((item) => item.name.startsWith("agent.message") && (item.attributes?.["message.role"] === void 0 || item.attributes["message.role"] === "assistant") && item.attributes?.["message.phase"] !== "commentary" && item.attributes?.["message.phase"] !== "reasoning")) continue;
|
|
369
467
|
const text = observations.map((item) => {
|
|
370
468
|
const content = item.attributes?.["message.content"];
|
|
371
|
-
return
|
|
469
|
+
return typeof content === "string" ? content : "";
|
|
372
470
|
}).join("").trim();
|
|
373
471
|
if (!text) continue;
|
|
374
472
|
completeAssistantTexts.add(text);
|
|
@@ -382,10 +480,10 @@ function invocationActivities(invocation) {
|
|
|
382
480
|
const sorted = observations.slice().sort((left, right) => left.sequence - right.sequence);
|
|
383
481
|
const first = sorted[0];
|
|
384
482
|
const attributes = Object.assign({}, ...sorted.map((item) => item.attributes ?? {}));
|
|
385
|
-
const messageBody = sorted.map((item) => item.attributes?.["message.content"]).filter((value) =>
|
|
483
|
+
const messageBody = sorted.map((item) => item.attributes?.["message.content"]).filter((value) => typeof value === "string").join("");
|
|
386
484
|
const { patches, paths } = fileChanges(attributes);
|
|
387
485
|
const kind = activityKind(first, attributes, paths.length ? paths : patches);
|
|
388
|
-
const failed = sorted.some((item) => item.type === "error" || /\.(error|failed)$/.test(item.name)) || kind === "delivery" && Boolean(stringAttribute(attributes, "error.message")) || attributes["agent.capability.outcome"] === "error";
|
|
486
|
+
const failed = sorted.some((item) => item.type === "error" || /\.(error|failed)$/.test(item.name)) || kind === "delivery" && Boolean(stringAttribute(attributes, "error.message")) || attributes["agent.capability.outcome"] === "error" || attributes["input.steer.outcome"] === "failed";
|
|
389
487
|
const approvalDenied = attributes["approval.approved"] === false;
|
|
390
488
|
const completed = sorted.some((item) => /\.(abort|cancelled|completed|decision|error|failed|finish|recorded)$/.test(item.name));
|
|
391
489
|
const role = messageRole(attributes["message.role"]) ?? (attributes["result.text"] ? "assistant" : kind === "message" ? "user" : void 0);
|
|
@@ -406,7 +504,7 @@ function invocationActivities(invocation) {
|
|
|
406
504
|
};
|
|
407
505
|
const draft = {
|
|
408
506
|
attributes,
|
|
409
|
-
body: patches.join("") || messageBody || activityBody(attributes),
|
|
507
|
+
body: patches.join("") || messageBody || (first.name === "agent.input.attachments" ? inputAttachmentsBody(attributes) : activityBody(attributes)),
|
|
410
508
|
command,
|
|
411
509
|
...durationMs !== void 0 ? { durationMs } : {},
|
|
412
510
|
...endedAt ? { endedAt } : {},
|
|
@@ -425,7 +523,10 @@ function invocationActivities(invocation) {
|
|
|
425
523
|
...role ? { role } : {},
|
|
426
524
|
status: failed || approvalDenied ? "failed" : completed || !started ? "completed" : unfinishedTerminalStatus ?? "running",
|
|
427
525
|
...Object.keys(toolDisplay).length ? { toolDisplay } : {},
|
|
428
|
-
...sorted.some(
|
|
526
|
+
...sorted.some(cutsContent) && !(first.name === "agent.invocation.finish" && completeAssistantTexts.has(stringAttribute(attributes, "result.text") ?? "")) ? {
|
|
527
|
+
truncated: true,
|
|
528
|
+
...sorted.every((item) => truncatedContent(item) !== void 0) ? { truncatedAttributes: [...new Set(sorted.flatMap((item) => truncatedContent(item)))] } : {}
|
|
529
|
+
} : {},
|
|
429
530
|
...numericAttribute(attributes, "usage.totalTokens") !== void 0 ? { totalTokens: numericAttribute(attributes, "usage.totalTokens") } : {}
|
|
430
531
|
};
|
|
431
532
|
const title = invocationActivityTitle(draft);
|
|
@@ -452,9 +553,9 @@ function invocationToolUsage(invocation) {
|
|
|
452
553
|
const seen = /* @__PURE__ */ new Set();
|
|
453
554
|
for (const observation of invocation.observations) {
|
|
454
555
|
const name = observation.attributes?.["tool.name"];
|
|
455
|
-
if (
|
|
556
|
+
if (typeof name !== "string" || !name) continue;
|
|
456
557
|
const id = observation.attributes?.["tool.id"];
|
|
457
|
-
if (
|
|
558
|
+
if (typeof id === "string" && id) {
|
|
458
559
|
const key = `${name}:${id}`;
|
|
459
560
|
if (seen.has(key)) continue;
|
|
460
561
|
seen.add(key);
|
|
@@ -473,9 +574,11 @@ function invocationActivityDetail(activity) {
|
|
|
473
574
|
}
|
|
474
575
|
function invocationActivityTitle(activity) {
|
|
475
576
|
const explicit = activity.attributes["vitehub.activity.title"];
|
|
476
|
-
if (
|
|
577
|
+
if (typeof explicit === "string" && explicit.trim()) return explicit.trim();
|
|
477
578
|
if (activity.name === "vitehub.observation.truncated") return "Trace content was truncated";
|
|
579
|
+
if (activity.name === "agent.input.steer") return steerTitle(activity);
|
|
478
580
|
if (activity.name === "vitehub.agent.configured") return agentConfigurationTitle(activity);
|
|
581
|
+
if (activity.name === "agent.input.attachments") return inputAttachmentsTitle(activity.attributes);
|
|
479
582
|
if (activity.skill) return `Read ${activity.skill.name} skill`;
|
|
480
583
|
if (activity.kind === "preparation") return "Prepared session";
|
|
481
584
|
if (activity.kind === "system") return "System configuration";
|
|
@@ -485,7 +588,10 @@ function invocationActivityTitle(activity) {
|
|
|
485
588
|
if (activity.kind === "action") return String(activity.attributes["channel.effect.kind"] ?? activity.attributes["vitehub.action.name"] ?? "Product action");
|
|
486
589
|
if (activity.kind === "plan") return "Updated plan";
|
|
487
590
|
if (activity.kind === "change") return normalizedTitle(String(activity.attributes["tool.name"] ?? "Changed files"));
|
|
488
|
-
if (activity.kind === "tool")
|
|
591
|
+
if (activity.kind === "tool") {
|
|
592
|
+
if (activity.attributes["tool.name"] === "command_execution") return normalizedTitle("command_execution");
|
|
593
|
+
return normalizedTitle(String(activity.attributes["tool.title"] ?? activity.toolDisplay?.label ?? activity.attributes["tool.name"] ?? "Used a tool"));
|
|
594
|
+
}
|
|
489
595
|
if (activity.kind === "approval") {
|
|
490
596
|
if (activity.attributes["approval.approved"] === true) return "Approval granted";
|
|
491
597
|
if (activity.attributes["approval.approved"] === false) return "Approval denied";
|
|
@@ -497,6 +603,12 @@ function invocationActivityTitle(activity) {
|
|
|
497
603
|
if (activity.kind === "error" && activity.name.startsWith("agent.invocation.")) return "Session failed";
|
|
498
604
|
return normalizedTitle(activity.name.replace(/\.(start|finish|error|decision|recorded)$/, "").replaceAll(".", " "));
|
|
499
605
|
}
|
|
606
|
+
/** A follow-up chat message that tried to reach this run: `Steer deferred: unsupported`. */
|
|
607
|
+
function steerTitle(activity) {
|
|
608
|
+
const outcome = stringAttribute(activity.attributes, "input.steer.outcome") ?? "attempted";
|
|
609
|
+
const reason = stringAttribute(activity.attributes, "input.steer.reason");
|
|
610
|
+
return `Steer ${outcome}${reason ? `: ${reason}` : ""}`;
|
|
611
|
+
}
|
|
500
612
|
function agentConfigurationTitle(activity) {
|
|
501
613
|
const configuration = record$1(activity.attributes["vitehub.agent.configuration"]);
|
|
502
614
|
if (!configuration) return "Agent configured";
|
|
@@ -558,7 +670,7 @@ function terminalText(value) {
|
|
|
558
670
|
//#endregion
|
|
559
671
|
//#region src/console/runtime/components/invocation/agent-capability-inspector.ts
|
|
560
672
|
function record(value) {
|
|
561
|
-
return value !== null &&
|
|
673
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? Object.fromEntries(Object.entries(value)) : void 0;
|
|
562
674
|
}
|
|
563
675
|
const catalogProps = {
|
|
564
676
|
Stack: [],
|
|
@@ -569,18 +681,18 @@ const catalogProps = {
|
|
|
569
681
|
};
|
|
570
682
|
function readOnlyValue(value, depth = 0) {
|
|
571
683
|
if (depth > 20) return false;
|
|
572
|
-
if (value === null ||
|
|
573
|
-
if (
|
|
684
|
+
if (value === null || typeof value === "string" || typeof value === "boolean") return true;
|
|
685
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
574
686
|
if (Array.isArray(value)) return value.every((item) => readOnlyValue(item, depth + 1));
|
|
575
687
|
const fields = record(value);
|
|
576
688
|
if (!fields) return false;
|
|
577
|
-
return Object.entries(fields).every(([key, child]) => key.startsWith("$") ? (key === "$state" || key === "$item") &&
|
|
689
|
+
return Object.entries(fields).every(([key, child]) => key.startsWith("$") ? (key === "$state" || key === "$item") && typeof child === "string" && (child === "" || child.startsWith("/")) : readOnlyValue(child, depth + 1));
|
|
578
690
|
}
|
|
579
691
|
/** Validate a bounded, read-only subset of JSON Render before passing it to the renderer. */
|
|
580
692
|
function capabilityInspectionSpec(value) {
|
|
581
693
|
const view = record(value);
|
|
582
694
|
const elements = record(view?.elements);
|
|
583
|
-
if (!view ||
|
|
695
|
+
if (!view || typeof view.root !== "string" || !elements || !Object.hasOwn(elements, view.root)) return;
|
|
584
696
|
if (Object.keys(view).some((key) => key !== "root" && key !== "elements")) return;
|
|
585
697
|
if (Object.keys(elements).length > 128) return;
|
|
586
698
|
const parsed = {};
|
|
@@ -592,7 +704,7 @@ function capabilityInspectionSpec(value) {
|
|
|
592
704
|
].includes(id)) return;
|
|
593
705
|
const element = record(value);
|
|
594
706
|
const props = record(element?.props);
|
|
595
|
-
if (!element || !props ||
|
|
707
|
+
if (!element || !props || typeof element.type !== "string" || !Object.hasOwn(catalogProps, element.type)) return;
|
|
596
708
|
if (Object.keys(element).some((key) => ![
|
|
597
709
|
"type",
|
|
598
710
|
"props",
|
|
@@ -602,16 +714,16 @@ function capabilityInspectionSpec(value) {
|
|
|
602
714
|
const allowedProps = catalogProps[element.type];
|
|
603
715
|
if (Object.keys(props).some((key) => !allowedProps.includes(key)) || !readOnlyValue(props)) return;
|
|
604
716
|
const children = element.children;
|
|
605
|
-
if (children !== void 0 && (!Array.isArray(children) || !children.every((child) =>
|
|
717
|
+
if (children !== void 0 && (!Array.isArray(children) || !children.every((child) => typeof child === "string" && Object.hasOwn(elements, child)))) return;
|
|
606
718
|
const repeat = record(element.repeat);
|
|
607
|
-
if (element.repeat !== void 0 && (!repeat ||
|
|
719
|
+
if (element.repeat !== void 0 && (!repeat || typeof repeat.statePath !== "string" || !repeat.statePath.startsWith("/") || repeat.key !== void 0 && typeof repeat.key !== "string" || Object.keys(repeat).some((key) => key !== "statePath" && key !== "key"))) return;
|
|
608
720
|
parsed[id] = {
|
|
609
721
|
type: element.type,
|
|
610
722
|
props,
|
|
611
|
-
...Array.isArray(children) ? { children: children.filter((child) =>
|
|
612
|
-
...repeat &&
|
|
723
|
+
...Array.isArray(children) ? { children: children.filter((child) => typeof child === "string") } : {},
|
|
724
|
+
...repeat && typeof repeat.statePath === "string" ? { repeat: {
|
|
613
725
|
statePath: repeat.statePath,
|
|
614
|
-
...
|
|
726
|
+
...typeof repeat.key === "string" ? { key: repeat.key } : {}
|
|
615
727
|
} } : {}
|
|
616
728
|
};
|
|
617
729
|
}
|
|
@@ -636,7 +748,7 @@ function safeInspectionState(value) {
|
|
|
636
748
|
}
|
|
637
749
|
function display(value) {
|
|
638
750
|
if (value === void 0 || value === null) return "Not recorded";
|
|
639
|
-
return
|
|
751
|
+
return typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
640
752
|
}
|
|
641
753
|
function catalogComponent(render) {
|
|
642
754
|
return defineComponent({
|
|
@@ -681,7 +793,7 @@ selectActivity: (id) => Boolean(id) },
|
|
|
681
793
|
KeyValue: catalogComponent((props) => h("dl", { class: "vh-capability-inspector__value" }, [h("dt", display(props.label)), h("dd", display(props.value))])),
|
|
682
794
|
Tools: catalogComponent((props) => {
|
|
683
795
|
const names = Array.isArray(props.names) ? props.names : void 0;
|
|
684
|
-
const selectedTools = tools.value.filter((tool) => (!Object.hasOwn(props, "names") || names?.includes(tool.name)) && (!Object.hasOwn(props, "mcpServer") ||
|
|
796
|
+
const selectedTools = tools.value.filter((tool) => (!Object.hasOwn(props, "names") || names?.includes(tool.name)) && (!Object.hasOwn(props, "mcpServer") || typeof props.mcpServer === "string" && tool.mcp?.server === props.mcpServer));
|
|
685
797
|
return selectedTools.length ? h(ToolList, {
|
|
686
798
|
calls: calls.value,
|
|
687
799
|
onSelect: selectTool,
|
|
@@ -904,6 +1016,10 @@ const brands = {
|
|
|
904
1016
|
icon: "cerebras",
|
|
905
1017
|
label: "Cerebras"
|
|
906
1018
|
},
|
|
1019
|
+
"claude-code": {
|
|
1020
|
+
icon: "anthropic",
|
|
1021
|
+
label: "Claude Code"
|
|
1022
|
+
},
|
|
907
1023
|
cloudflare: {
|
|
908
1024
|
icon: "cloudflare",
|
|
909
1025
|
label: "Cloudflare"
|
|
@@ -1094,6 +1210,26 @@ function invocationBrandMark(value, className) {
|
|
|
1094
1210
|
"fill-opacity": path.fillOpacity
|
|
1095
1211
|
})));
|
|
1096
1212
|
}
|
|
1213
|
+
/**
|
|
1214
|
+
* A readable name for a model id: `claude-haiku-5-5` is "Claude Haiku 5.5", `gpt-6-luna` is "GPT 6 Luna". Version
|
|
1215
|
+
* numbers that the id splits with dashes join with a dot, and a trailing date snapshot such as `20250929` is dropped.
|
|
1216
|
+
*/
|
|
1217
|
+
function invocationModelName(value) {
|
|
1218
|
+
const parts = (value.split("/").at(-1) ?? "").split("-").filter(Boolean);
|
|
1219
|
+
if (parts.length > 1 && /^\d{8}$/.test(parts.at(-1) ?? "")) parts.pop();
|
|
1220
|
+
const words = [];
|
|
1221
|
+
for (const part of parts) {
|
|
1222
|
+
const previous = words.at(-1);
|
|
1223
|
+
if (previous !== void 0 && /^\d{1,2}$/.test(part) && /^\d+(\.\d+)*$/.test(previous)) words[words.length - 1] = `${previous}.${part}`;
|
|
1224
|
+
else words.push(part);
|
|
1225
|
+
}
|
|
1226
|
+
return words.map((part) => {
|
|
1227
|
+
const lower = part.toLocaleLowerCase();
|
|
1228
|
+
if (/^(ai|gpt|glm|llm|vlm)$/.test(lower)) return lower.toLocaleUpperCase();
|
|
1229
|
+
if (/^\d+[a-z]$/i.test(part)) return part.toLocaleUpperCase();
|
|
1230
|
+
return `${part[0]?.toLocaleUpperCase() ?? ""}${part.slice(1)}`;
|
|
1231
|
+
}).join(" ") || "Configured model";
|
|
1232
|
+
}
|
|
1097
1233
|
//#endregion
|
|
1098
1234
|
//#region src/console/runtime/components/invocation/internal/url.ts
|
|
1099
1235
|
function isSafeExternalUrl(value) {
|
|
@@ -1128,13 +1264,6 @@ function agentInvocationExternalUrl(source) {
|
|
|
1128
1264
|
}
|
|
1129
1265
|
//#endregion
|
|
1130
1266
|
//#region src/console/runtime/components/invocation/agent-invocation-timeline.ts
|
|
1131
|
-
function formatTimelineDuration(value) {
|
|
1132
|
-
if (!Number.isFinite(value) || value < 0) return;
|
|
1133
|
-
if (value < 1e3) return `${Math.round(value)}ms`;
|
|
1134
|
-
if (value < 6e4) return `${new Intl.NumberFormat("en", { maximumFractionDigits: 1 }).format(value / 1e3)}s`;
|
|
1135
|
-
const seconds = Math.round(value / 1e3);
|
|
1136
|
-
return `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
|
|
1137
|
-
}
|
|
1138
1267
|
/** ViteHub owns preparation, delivery, and its own tools; the Agent owns the rest. */
|
|
1139
1268
|
function timelineOwner(activity) {
|
|
1140
1269
|
const tool = String(activity.attributes["tool.name"] ?? "").toLocaleLowerCase();
|
|
@@ -1152,7 +1281,7 @@ function invocationTimeline(invocation, activities = invocationActivities(invoca
|
|
|
1152
1281
|
const started = Date.parse(activity.startedAt ?? "");
|
|
1153
1282
|
const durationMs = Number.isFinite(activity.durationMs) ? activity.durationMs ?? 0 : 0;
|
|
1154
1283
|
const offsetMs = Number.isFinite(started) ? Math.max(0, started - zero) : 0;
|
|
1155
|
-
const timing = [offsetMs ? `+${
|
|
1284
|
+
const timing = [offsetMs ? `+${consoleDuration(offsetMs)}` : "start", durationMs ? consoleDuration(durationMs) : void 0].filter(Boolean).join(" · ");
|
|
1156
1285
|
const item = {
|
|
1157
1286
|
activity,
|
|
1158
1287
|
durationMs,
|
|
@@ -1193,7 +1322,7 @@ const AgentInvocationTimeline = defineComponent({
|
|
|
1193
1322
|
"aria-hidden": "true",
|
|
1194
1323
|
class: "vh-invocation-timeline__dot"
|
|
1195
1324
|
}),
|
|
1196
|
-
h("span", {
|
|
1325
|
+
h("span", { "data-slot": "visually-hidden" }, `${item.owner === "vitehub" ? "ViteHub" : "Agent"}${item.activity.status === "failed" ? ", failed" : ""}: `),
|
|
1197
1326
|
h("span", { class: "vh-invocation-timeline__heading" }, [h("strong", item.title), item.detail ? h("code", { class: "vh-invocation-timeline__detail" }, item.detail) : null]),
|
|
1198
1327
|
h("time", { class: "vh-invocation-timeline__time" }, item.timing)
|
|
1199
1328
|
])]))) : slots.empty?.() ?? h("p", { class: "vh-invocation-timeline__empty" }, "No timed steps recorded.")]);
|
|
@@ -1207,13 +1336,18 @@ function buildInvocationConversation(activities) {
|
|
|
1207
1336
|
const promptId = inputActivities[promptActivityIndex(inputActivities)]?.id;
|
|
1208
1337
|
const orderedActivities = inputActivities.filter((activity) => activity.kind !== "message" || isVisibleMessage(activity));
|
|
1209
1338
|
const firstUser = promptActivityIndex(orderedActivities);
|
|
1339
|
+
const prompt = orderedActivities[firstUser];
|
|
1210
1340
|
const lastUser = orderedActivities.findLastIndex((activity) => activity.kind === "message" && activity.role === "user");
|
|
1211
|
-
const lastAssistant = orderedActivities.findLastIndex((activity, index) => index > lastUser && activity.kind === "message" && activity.role === "assistant" && activity.attributes["message.phase"] !== "commentary");
|
|
1341
|
+
const lastAssistant = orderedActivities.findLastIndex((activity, index) => index > lastUser && activity.kind === "message" && activity.role === "assistant" && activity.attributes["message.phase"] !== "commentary" && (prompt?.attributes["message.trigger"] !== true || activity.attributes["message.origin"] !== "invocation-input"));
|
|
1212
1342
|
const tail = orderedActivities.slice(firstUser + 1);
|
|
1213
1343
|
const finalBody = lastAssistant >= 0 ? orderedActivities[lastAssistant].body?.trim() : void 0;
|
|
1214
1344
|
const answers = new Set(uniqueDeliveredAnswers(tail, new Set(finalBody ? [finalBody] : [])));
|
|
1345
|
+
const omittedHistory = Math.max(0, ...activities.map((activity) => Number(activity.attributes["input.messages.omitted"]) || 0));
|
|
1346
|
+
const omittedUnplacedHistory = Math.max(0, ...activities.map((activity) => Number(activity.attributes["input.messages.omittedUnplaced"]) || 0));
|
|
1215
1347
|
const metadata = {
|
|
1216
1348
|
deliveredAnswerCount: answers.size,
|
|
1349
|
+
omittedHistory,
|
|
1350
|
+
...omittedUnplacedHistory ? { omittedUnplacedHistory } : {},
|
|
1217
1351
|
promptId
|
|
1218
1352
|
};
|
|
1219
1353
|
if (firstUser < 0 && !orderedActivities.some(isDeliveredAnswer)) return {
|
|
@@ -1223,7 +1357,6 @@ function buildInvocationConversation(activities) {
|
|
|
1223
1357
|
};
|
|
1224
1358
|
const history = orderedActivities.slice(0, Math.max(firstUser, 0)).filter(isVisibleMessage);
|
|
1225
1359
|
const workBeforePrompt = orderedActivities.slice(0, Math.max(firstUser, 0)).filter((activity) => activity.kind !== "message");
|
|
1226
|
-
const prompt = orderedActivities[firstUser];
|
|
1227
1360
|
if (lastAssistant >= 0 && orderedActivities.slice(lastAssistant + 1).some((activity) => activity.kind === "message" && activity.role === "assistant" && activity.attributes["message.phase"] === "commentary")) {
|
|
1228
1361
|
const beforeAnswer = orderedActivities.slice(firstUser + 1, lastAssistant).filter((activity) => !repeatsPrompt(activity, prompt));
|
|
1229
1362
|
const followup = orderedActivities.slice(lastAssistant);
|
|
@@ -1253,7 +1386,7 @@ function buildInvocationConversation(activities) {
|
|
|
1253
1386
|
}
|
|
1254
1387
|
function withoutInitialDriverEcho(activities) {
|
|
1255
1388
|
const lastInput = activities.findLastIndex((activity) => activity.attributes["message.origin"] === "invocation-input");
|
|
1256
|
-
const prompt = activities[lastInput];
|
|
1389
|
+
const prompt = activities.find((activity) => activity.attributes["message.trigger"] === true) ?? activities[lastInput];
|
|
1257
1390
|
if (!prompt || prompt.role !== "user") return activities;
|
|
1258
1391
|
const firstMessage = activities.findIndex((activity, index) => index > lastInput && activity.kind === "message");
|
|
1259
1392
|
const echo = activities[firstMessage];
|
|
@@ -1265,6 +1398,8 @@ function repeatsPrompt(activity, prompt) {
|
|
|
1265
1398
|
return Boolean(promptMessageId) && activity !== prompt && activity.kind === "message" && activity.role === "user" && activity.attributes["input.mode"] !== "steer" && stringAttribute(activity.attributes, "message.id") === promptMessageId && (activity.body?.trim() ?? "") === (prompt.body?.trim() ?? "");
|
|
1266
1399
|
}
|
|
1267
1400
|
function promptActivityIndex(activities) {
|
|
1401
|
+
const triggerPrompt = activities.findIndex((activity) => activity.attributes["message.trigger"] === true);
|
|
1402
|
+
if (triggerPrompt >= 0) return triggerPrompt;
|
|
1268
1403
|
for (let index = 0; index < activities.length; index += 1) {
|
|
1269
1404
|
const activity = activities[index];
|
|
1270
1405
|
if (activity.kind === "message" && activity.role === "user" && activity.name !== "agent.input.message" && activity.attributes["input.mode"] !== "steer") return index;
|
|
@@ -1291,7 +1426,7 @@ function coalesceAgentConfiguration(activities) {
|
|
|
1291
1426
|
const answerDeliveryKinds = /* @__PURE__ */ new Set(["reply", "update"]);
|
|
1292
1427
|
function deliveryContent(activity) {
|
|
1293
1428
|
const content = activity.attributes["channel.effect.content"];
|
|
1294
|
-
return
|
|
1429
|
+
return typeof content === "string" && content.trim() ? content : void 0;
|
|
1295
1430
|
}
|
|
1296
1431
|
function isDeliveredAnswer(activity) {
|
|
1297
1432
|
return activity.kind === "delivery" && activity.status === "completed" && activity.attributes["channel.effect.supported"] !== false && !stringAttribute(activity.attributes, "channel.effect.skipped") && answerDeliveryKinds.has(stringAttribute(activity.attributes, "channel.effect.kind")?.toLocaleLowerCase() ?? "") && deliveryContent(activity) !== void 0;
|
|
@@ -1306,9 +1441,14 @@ function uniqueDeliveredAnswers(activities, bodies) {
|
|
|
1306
1441
|
});
|
|
1307
1442
|
}
|
|
1308
1443
|
function deliveryReceipt(activity) {
|
|
1444
|
+
const truncatedAttributes = activity.truncatedAttributes?.filter((key) => key !== "channel.effect.content");
|
|
1309
1445
|
return {
|
|
1310
1446
|
...activity,
|
|
1311
|
-
attributes: Object.fromEntries(Object.entries(activity.attributes).filter(([key]) => key !== "channel.effect.content"))
|
|
1447
|
+
attributes: Object.fromEntries(Object.entries(activity.attributes).filter(([key]) => key !== "channel.effect.content")),
|
|
1448
|
+
...truncatedAttributes ? {
|
|
1449
|
+
truncated: activity.truncated && truncatedAttributes.length > 0,
|
|
1450
|
+
truncatedAttributes
|
|
1451
|
+
} : {}
|
|
1312
1452
|
};
|
|
1313
1453
|
}
|
|
1314
1454
|
function deliveryAnswer(activity) {
|
|
@@ -1322,7 +1462,7 @@ function deliveryAnswer(activity) {
|
|
|
1322
1462
|
}
|
|
1323
1463
|
//#endregion
|
|
1324
1464
|
//#region src/console/runtime/components/invocation/agent-invocation.ts
|
|
1325
|
-
const InvocationPatchDiff = defineAsyncComponent(() => import("
|
|
1465
|
+
const InvocationPatchDiff = defineAsyncComponent(() => import("../console-lazy-views-DXnIkdyd.js").then((module) => module.PatchDiff));
|
|
1326
1466
|
function statusLabel(status) {
|
|
1327
1467
|
const labels = {
|
|
1328
1468
|
cancelled: "Cancelled",
|
|
@@ -1347,13 +1487,7 @@ function formatTokens(value) {
|
|
|
1347
1487
|
}
|
|
1348
1488
|
function formatDuration(startedAt, completedAt) {
|
|
1349
1489
|
if (!startedAt || !completedAt) return;
|
|
1350
|
-
|
|
1351
|
-
if (!Number.isFinite(duration) || duration < 0) return;
|
|
1352
|
-
const seconds = Math.round(duration / 1e3);
|
|
1353
|
-
if (seconds < 60) return `${seconds}s`;
|
|
1354
|
-
const minutes = Math.floor(seconds / 60);
|
|
1355
|
-
if (minutes < 60) return `${minutes}m ${seconds % 60}s`;
|
|
1356
|
-
return `${Math.floor(minutes / 60)}h ${minutes % 60}m`;
|
|
1490
|
+
return consoleDuration(Date.parse(completedAt) - Date.parse(startedAt), { wholeSeconds: true });
|
|
1357
1491
|
}
|
|
1358
1492
|
/** Elapsed time of a live session as `m:ss`, or `h:mm:ss` after the first hour. */
|
|
1359
1493
|
function formatElapsed(startedAt, now) {
|
|
@@ -1375,14 +1509,6 @@ function driverLabel(configuration) {
|
|
|
1375
1509
|
model?.id
|
|
1376
1510
|
].filter(Boolean).join(" · ") || void 0;
|
|
1377
1511
|
}
|
|
1378
|
-
function invocationModelName(value) {
|
|
1379
|
-
return (value.split("/").at(-1) ?? "").split("-").filter(Boolean).map((part) => {
|
|
1380
|
-
const lower = part.toLocaleLowerCase();
|
|
1381
|
-
if (/^(ai|gpt|glm|llm|vlm)$/.test(lower)) return lower.toLocaleUpperCase();
|
|
1382
|
-
if (/^\d+[a-z]$/i.test(part)) return part.toLocaleUpperCase();
|
|
1383
|
-
return `${part[0]?.toLocaleUpperCase() ?? ""}${part.slice(1)}`;
|
|
1384
|
-
}).join(" ") || "Configured model";
|
|
1385
|
-
}
|
|
1386
1512
|
function workspaceLabel(configuration) {
|
|
1387
1513
|
const workspace = configuration.workspace;
|
|
1388
1514
|
return workspace ? [workspace.name, workspace.mode].filter(Boolean).join(" · ") : void 0;
|
|
@@ -1423,7 +1549,7 @@ function renderFolderIcon() {
|
|
|
1423
1549
|
})]);
|
|
1424
1550
|
}
|
|
1425
1551
|
function payloadPreview(value, text) {
|
|
1426
|
-
const compact = (
|
|
1552
|
+
const compact = (typeof value === "string" ? value : text.replaceAll(/\s+/g, " ")).trim();
|
|
1427
1553
|
return compact.length > 112 ? `${compact.slice(0, 111)}…` : compact || "Empty payload";
|
|
1428
1554
|
}
|
|
1429
1555
|
/**
|
|
@@ -1442,22 +1568,9 @@ const InvocationError = defineComponent({
|
|
|
1442
1568
|
const titleId = useId();
|
|
1443
1569
|
const detailsId = useId();
|
|
1444
1570
|
const detailsOpen = ref(false);
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
1449
|
-
});
|
|
1450
|
-
async function copyError() {
|
|
1451
|
-
try {
|
|
1452
|
-
if (!("navigator" in globalThis) || !navigator.clipboard) throw new Error("Clipboard unavailable");
|
|
1453
|
-
await navigator.clipboard.writeText(payloadText(diagnosticPayload(props.error)));
|
|
1454
|
-
copyStatus.value = "copied";
|
|
1455
|
-
} catch {
|
|
1456
|
-
copyStatus.value = "failed";
|
|
1457
|
-
}
|
|
1458
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
1459
|
-
copyTimer = setTimeout(() => copyStatus.value = void 0, 2e3);
|
|
1460
|
-
}
|
|
1571
|
+
const clipboard = useCopy();
|
|
1572
|
+
const copyStatus = computed(() => clipboard.copied.value ? "copied" : clipboard.failed.value ? "failed" : void 0);
|
|
1573
|
+
const copyError = () => clipboard.copy(() => payloadText(diagnosticPayload(props.error)));
|
|
1461
1574
|
return () => {
|
|
1462
1575
|
const error = props.error;
|
|
1463
1576
|
const payload = diagnosticPayload(error);
|
|
@@ -1536,7 +1649,7 @@ const InvocationError = defineComponent({
|
|
|
1536
1649
|
})]), "Details"]) : null,
|
|
1537
1650
|
h("span", {
|
|
1538
1651
|
"aria-live": "polite",
|
|
1539
|
-
|
|
1652
|
+
"data-slot": "visually-hidden",
|
|
1540
1653
|
role: "status"
|
|
1541
1654
|
}, copyStatus.value === "copied" ? "Error copied" : copyStatus.value === "failed" ? "Could not copy the error" : "")
|
|
1542
1655
|
]),
|
|
@@ -1581,9 +1694,9 @@ function diagnosticPayload(error) {
|
|
|
1581
1694
|
return details;
|
|
1582
1695
|
}
|
|
1583
1696
|
function jsonValueLabel(value) {
|
|
1584
|
-
if (
|
|
1697
|
+
if (typeof value === "string") return JSON.stringify(value);
|
|
1585
1698
|
if (value === null) return "null";
|
|
1586
|
-
if (
|
|
1699
|
+
if (typeof value === "object") return Array.isArray(value) ? `Array(${value.length})` : "Object";
|
|
1587
1700
|
return String(value);
|
|
1588
1701
|
}
|
|
1589
1702
|
function matchingPayloadRows(value, query, path = "$", result = {
|
|
@@ -1601,7 +1714,7 @@ function matchingPayloadRows(value, query, path = "$", result = {
|
|
|
1601
1714
|
value: label
|
|
1602
1715
|
});
|
|
1603
1716
|
}
|
|
1604
|
-
if (
|
|
1717
|
+
if (typeof value !== "object" || value === null || depth >= 12) return result;
|
|
1605
1718
|
for (const [key, item] of Object.entries(value)) {
|
|
1606
1719
|
matchingPayloadRows(item, query, Array.isArray(value) ? `${path}[${key}]` : `${path}.${key}`, result, depth + 1);
|
|
1607
1720
|
if (result.truncated) break;
|
|
@@ -1611,10 +1724,10 @@ function matchingPayloadRows(value, query, path = "$", result = {
|
|
|
1611
1724
|
function renderPayloadTree(value, label, depth = 0, budget = { remaining: 500 }) {
|
|
1612
1725
|
budget.remaining--;
|
|
1613
1726
|
if (budget.remaining < 0) return h("li", { class: "vh-invocation-payload__leaf" }, "More fields hidden");
|
|
1614
|
-
if (depth >= 12 &&
|
|
1615
|
-
if (
|
|
1727
|
+
if (depth >= 12 && typeof value === "object" && value !== null) return h("li", { class: "vh-invocation-payload__leaf" }, [label ? h("code", { class: "vh-invocation-payload__key" }, label) : null, h("code", { class: "vh-invocation-payload__value" }, "Nested content hidden")]);
|
|
1728
|
+
if (typeof value !== "object" || value === null) return h("li", { class: "vh-invocation-payload__leaf" }, [label ? h("code", { class: "vh-invocation-payload__key" }, label) : null, h("code", {
|
|
1616
1729
|
class: "vh-invocation-payload__value",
|
|
1617
|
-
"data-type": value === null ? "null" :
|
|
1730
|
+
"data-type": value === null ? "null" : typeof value
|
|
1618
1731
|
}, jsonValueLabel(value))]);
|
|
1619
1732
|
const entries = Object.entries(value);
|
|
1620
1733
|
const children = [];
|
|
@@ -1643,19 +1756,17 @@ const InvocationPayload = defineComponent({
|
|
|
1643
1756
|
const mode = ref("tree");
|
|
1644
1757
|
const query = ref("");
|
|
1645
1758
|
const open = ref(false);
|
|
1646
|
-
const copied =
|
|
1647
|
-
const copyFailed = ref(false);
|
|
1648
|
-
let copyTimer;
|
|
1759
|
+
const { copied, copy, failed: copyFailed } = useCopy({ duration: 1600 });
|
|
1649
1760
|
const text = computed(() => payloadText(props.value));
|
|
1650
1761
|
const normalized = computed(() => {
|
|
1651
|
-
if (
|
|
1762
|
+
if (typeof props.value !== "object" || props.value === null) return props.value;
|
|
1652
1763
|
try {
|
|
1653
1764
|
return JSON.parse(text.value);
|
|
1654
1765
|
} catch {
|
|
1655
1766
|
return text.value;
|
|
1656
1767
|
}
|
|
1657
1768
|
});
|
|
1658
|
-
const structured = computed(() =>
|
|
1769
|
+
const structured = computed(() => typeof normalized.value === "object" && normalized.value !== null);
|
|
1659
1770
|
const matches = computed(() => query.value ? matchingPayloadRows(normalized.value, query.value.toLocaleLowerCase()) : {
|
|
1660
1771
|
rows: [],
|
|
1661
1772
|
truncated: false
|
|
@@ -1665,26 +1776,7 @@ const InvocationPayload = defineComponent({
|
|
|
1665
1776
|
const normalizedQuery = query.value.toLocaleLowerCase();
|
|
1666
1777
|
return text.value.split("\n").filter((line) => line.toLocaleLowerCase().includes(normalizedQuery)).join("\n");
|
|
1667
1778
|
});
|
|
1668
|
-
|
|
1669
|
-
copyFailed.value = false;
|
|
1670
|
-
if (!("navigator" in globalThis) || !navigator.clipboard) {
|
|
1671
|
-
copyFailed.value = true;
|
|
1672
|
-
return;
|
|
1673
|
-
}
|
|
1674
|
-
try {
|
|
1675
|
-
await navigator.clipboard.writeText(text.value);
|
|
1676
|
-
copied.value = true;
|
|
1677
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
1678
|
-
copyTimer = setTimeout(() => {
|
|
1679
|
-
copied.value = false;
|
|
1680
|
-
}, 1600);
|
|
1681
|
-
} catch {
|
|
1682
|
-
copyFailed.value = true;
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
onBeforeUnmount(() => {
|
|
1686
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
1687
|
-
});
|
|
1779
|
+
const copyPayload = () => copy(text.value);
|
|
1688
1780
|
return () => h("details", {
|
|
1689
1781
|
class: "vh-invocation-event__payload",
|
|
1690
1782
|
onToggle: (event) => {
|
|
@@ -1714,7 +1806,7 @@ const InvocationPayload = defineComponent({
|
|
|
1714
1806
|
},
|
|
1715
1807
|
type: "button"
|
|
1716
1808
|
}, "Raw")]) : null,
|
|
1717
|
-
structured.value || text.value.length > 240 ? h("label", { class: "vh-invocation-payload__search" }, [h("span", {
|
|
1809
|
+
structured.value || text.value.length > 240 ? h("label", { class: "vh-invocation-payload__search" }, [h("span", { "data-slot": "visually-hidden" }, `Search ${props.label}`), h("input", {
|
|
1718
1810
|
onInput: (event) => {
|
|
1719
1811
|
query.value = event.target.value;
|
|
1720
1812
|
},
|
|
@@ -1730,7 +1822,7 @@ const InvocationPayload = defineComponent({
|
|
|
1730
1822
|
]),
|
|
1731
1823
|
h("span", {
|
|
1732
1824
|
"aria-live": "polite",
|
|
1733
|
-
|
|
1825
|
+
"data-slot": "visually-hidden",
|
|
1734
1826
|
role: "status"
|
|
1735
1827
|
}, copyFailed.value ? `${props.label} could not be copied` : copied.value ? `${props.label} copied` : ""),
|
|
1736
1828
|
query.value && structured.value && mode.value === "tree" ? matches.value.rows.length ? h("ol", { class: "vh-invocation-payload__matches" }, [...matches.value.rows.map((match) => h("li", [h("code", match.path), h("code", match.value)])), matches.value.truncated ? h("li", "More matches hidden. Refine your search.") : null]) : h("p", { class: "vh-invocation-payload__empty" }, "No matching fields") : structured.value && mode.value === "tree" ? h("ul", { class: "vh-invocation-payload__tree" }, [renderPayloadTree(normalized.value)]) : rawMatches.value ? h("pre", rawMatches.value) : h("p", { class: "vh-invocation-payload__empty" }, "No matching content")
|
|
@@ -1750,7 +1842,8 @@ function renderMessage(activity, expanded, toggleExpanded, messageRendering, ins
|
|
|
1750
1842
|
const sentAt = messageTimestamp(activity, messageRendering.now, messageRendering.mounted, activity.id === messageRendering.promptId ? messageRendering.sentAt : void 0);
|
|
1751
1843
|
const copyStatus = messageRendering.copiedId === activity.id ? messageRendering.copyStatus : void 0;
|
|
1752
1844
|
const commentary = activity.attributes["message.phase"] === "commentary";
|
|
1753
|
-
const
|
|
1845
|
+
const progressNote = insideWork && activity.role === "assistant";
|
|
1846
|
+
const hasMessageMeta = (activity.role === "user" || activity.role === "assistant") && !progressNote;
|
|
1754
1847
|
const author = activity.id === messageRendering.promptId ? messageRendering.author : void 0;
|
|
1755
1848
|
const roleLabel = author ?? messageRoleLabels[activity.role ?? "assistant"];
|
|
1756
1849
|
return h("li", {
|
|
@@ -1759,13 +1852,14 @@ function renderMessage(activity, expanded, toggleExpanded, messageRendering, ins
|
|
|
1759
1852
|
"data-role": activity.role,
|
|
1760
1853
|
key: activity.id
|
|
1761
1854
|
}, [
|
|
1762
|
-
|
|
1855
|
+
progressNote ? h("span", { "data-slot": "visually-hidden" }, `${roleLabel} message`) : h("span", { class: "vh-invocation-message__role" }, roleLabel),
|
|
1763
1856
|
activity.attributes["input.mode"] === "steer" ? h("small", { class: "vh-invocation-message__method" }, "Steered") : null,
|
|
1857
|
+
typeof activity.attributes["message.header"] === "string" ? h("small", { class: "vh-invocation-message__header" }, activity.attributes["message.header"]) : null,
|
|
1764
1858
|
h("div", {
|
|
1765
1859
|
class: "vh-invocation-message__content",
|
|
1766
1860
|
"data-collapsed": collapsible && !isExpanded ? "true" : void 0
|
|
1767
1861
|
}, [markdown(body, "vh-invocation-message__body")]),
|
|
1768
|
-
|
|
1862
|
+
renderTruncationNotice(activity),
|
|
1769
1863
|
collapsible ? h("button", {
|
|
1770
1864
|
"aria-expanded": String(isExpanded),
|
|
1771
1865
|
class: "vh-invocation-message__more",
|
|
@@ -1786,7 +1880,7 @@ function renderMessage(activity, expanded, toggleExpanded, messageRendering, ins
|
|
|
1786
1880
|
type: "button"
|
|
1787
1881
|
}, copyStatus === "copied" ? "Copied" : copyStatus === "failed" ? "Copy failed" : [renderCopyIcon()]),
|
|
1788
1882
|
copyStatus ? h("span", {
|
|
1789
|
-
|
|
1883
|
+
"data-slot": "visually-hidden",
|
|
1790
1884
|
"aria-live": "polite",
|
|
1791
1885
|
role: "status"
|
|
1792
1886
|
}, copyStatus === "copied" ? "Message copied" : "Message could not be copied") : null
|
|
@@ -1816,10 +1910,7 @@ function messageTimestamp(activity, now, mounted, sentAt) {
|
|
|
1816
1910
|
if (date.getFullYear() !== now.getFullYear()) dateOptions.year = "numeric";
|
|
1817
1911
|
return {
|
|
1818
1912
|
short: dayDifference <= 0 ? time : dayDifference === 1 ? `Yesterday at ${time}` : `${new Intl.DateTimeFormat("en", dateOptions).format(date)} ${time}`,
|
|
1819
|
-
title:
|
|
1820
|
-
dateStyle: "medium",
|
|
1821
|
-
timeStyle: "short"
|
|
1822
|
-
}).format(date),
|
|
1913
|
+
title: consoleDateTime(value),
|
|
1823
1914
|
value
|
|
1824
1915
|
};
|
|
1825
1916
|
}
|
|
@@ -1960,11 +2051,11 @@ function imageViewPath(activity) {
|
|
|
1960
2051
|
if (name !== "image view" && name !== "view image" && name !== "view_image") return;
|
|
1961
2052
|
for (const key of ["tool.input", "tool.output"]) {
|
|
1962
2053
|
const payload = activity.attributes[key];
|
|
1963
|
-
if (
|
|
1964
|
-
const item = "item" in payload &&
|
|
1965
|
-
if ("path" in item &&
|
|
2054
|
+
if (typeof payload !== "object" || payload === null || Array.isArray(payload)) continue;
|
|
2055
|
+
const item = "item" in payload && typeof payload.item === "object" && payload.item !== null && !Array.isArray(payload.item) ? payload.item : payload;
|
|
2056
|
+
if ("path" in item && typeof item.path === "string" && item.path) return item.path;
|
|
1966
2057
|
if (!("commandActions" in item) || !Array.isArray(item.commandActions)) continue;
|
|
1967
|
-
for (const value of item.commandActions) if (
|
|
2058
|
+
for (const value of item.commandActions) if (typeof value === "object" && value !== null && !Array.isArray(value) && "path" in value && typeof value.path === "string" && value.path) return value.path;
|
|
1968
2059
|
}
|
|
1969
2060
|
return activity.preview?.startsWith("/") ? activity.preview : void 0;
|
|
1970
2061
|
}
|
|
@@ -1990,7 +2081,7 @@ function renderEvent(activity, inspect, openActivities, setActivityOpen) {
|
|
|
1990
2081
|
const suffix = viewedImagePath?.split("/").filter(Boolean).at(-1) ?? agentConfigurationSummary(activity) ?? channelDeliverySummary(activity) ?? (activity.preview ? compactCommand(activity.preview) : tokenLabel);
|
|
1991
2082
|
const hasPayloads = activity.kind === "tool" && (activity.attributes["tool.input"] !== void 0 || activity.attributes["tool.output"] !== void 0 || activity.attributes["tool.error"] !== void 0);
|
|
1992
2083
|
const capturedDeliveryBody = activity.kind === "delivery" ? activity.attributes["channel.effect.content"] : void 0;
|
|
1993
|
-
const deliveryBody =
|
|
2084
|
+
const deliveryBody = typeof capturedDeliveryBody === "string" && capturedDeliveryBody.trim() ? capturedDeliveryBody : void 0;
|
|
1994
2085
|
const visibleDelivery = Boolean(deliveryBody);
|
|
1995
2086
|
const deliveryFailure = activity.kind === "delivery" ? stringAttribute(activity.attributes, "error.message") : void 0;
|
|
1996
2087
|
const hasDetails = Boolean(deliveryFailure || activity.truncated) || !visibleDelivery && (activity.patches.length > 0 || Boolean(command || hasPayloads || activity.body || activity.truncated));
|
|
@@ -2013,7 +2104,7 @@ function renderEvent(activity, inspect, openActivities, setActivityOpen) {
|
|
|
2013
2104
|
"data-icon": "channel"
|
|
2014
2105
|
}, [channelIcon(activityChannel(activity))]) : renderActivityIcon(activity),
|
|
2015
2106
|
title,
|
|
2016
|
-
activity.status === "failed" ? h("span", {
|
|
2107
|
+
activity.status === "failed" ? h("span", { "data-slot": "visually-hidden" }, "Failed") : null,
|
|
2017
2108
|
suffix ? h("code", { class: "vh-invocation-event__suffix" }, suffix) : null,
|
|
2018
2109
|
hasDetails ? renderDisclosureChevron("vh-invocation-event__disclosure") : null
|
|
2019
2110
|
];
|
|
@@ -2035,7 +2126,6 @@ function renderEvent(activity, inspect, openActivities, setActivityOpen) {
|
|
|
2035
2126
|
onToggle: hasDetails ? (event) => setActivityOpen(activity.id, event.currentTarget.open) : void 0
|
|
2036
2127
|
}, [summary, hasDetails ? h("div", { class: "vh-invocation-event__details" }, [
|
|
2037
2128
|
deliveryFailure ? h("p", { class: "vh-invocation-event__failure" }, deliveryFailure) : null,
|
|
2038
|
-
activity.truncated ? h("p", { class: "vh-invocation-event__notice" }, "Some activity details were omitted.") : null,
|
|
2039
2129
|
activity.patches.length ? openActivities.has(activity.id) ? h("div", { class: "vh-invocation-event__diffs" }, activity.patches.map((patch, index) => h(InvocationPatchDiff, {
|
|
2040
2130
|
key: index,
|
|
2041
2131
|
patch
|
|
@@ -2049,6 +2139,7 @@ function renderEvent(activity, inspect, openActivities, setActivityOpen) {
|
|
|
2049
2139
|
renderEventPayload("Output", activity.attributes["tool.output"]),
|
|
2050
2140
|
renderEventPayload("Error", activity.attributes["tool.error"])
|
|
2051
2141
|
].filter(Boolean)) : activity.kind !== "delivery" && activity.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(activity.body, "vh-invocation-event__markdown")]) : null,
|
|
2142
|
+
renderTruncationNotice(activity),
|
|
2052
2143
|
inspectable ? h("button", {
|
|
2053
2144
|
class: "vh-invocation-event__inspect",
|
|
2054
2145
|
onClick: () => inspect(inspectTarget, inspectPath),
|
|
@@ -2056,6 +2147,10 @@ function renderEvent(activity, inspect, openActivities, setActivityOpen) {
|
|
|
2056
2147
|
}, `Inspect ${inspectTarget}`) : null
|
|
2057
2148
|
]) : null]), deliveryBody ? h("div", { class: "vh-invocation-delivery__body" }, [markdown(deliveryBody, "vh-invocation-event__markdown")]) : null]);
|
|
2058
2149
|
}
|
|
2150
|
+
function renderTruncationNotice(activity, tag = "p") {
|
|
2151
|
+
const notice = invocationTruncationNotice(activity);
|
|
2152
|
+
return notice ? h(tag, { class: "vh-invocation-event__notice" }, notice) : null;
|
|
2153
|
+
}
|
|
2059
2154
|
function renderEventPayload(label, value) {
|
|
2060
2155
|
if (value === void 0) return null;
|
|
2061
2156
|
return h(InvocationPayload, {
|
|
@@ -2094,7 +2189,7 @@ function renderPreparationAction(activity, inspect) {
|
|
|
2094
2189
|
function renderPreparationContext(invocation, url) {
|
|
2095
2190
|
const repository = invocation.annotations?.["github.repository"];
|
|
2096
2191
|
const pullRequest = invocation.annotations?.["github.pullRequest"];
|
|
2097
|
-
if (
|
|
2192
|
+
if (typeof repository !== "string" || typeof pullRequest !== "number" && typeof pullRequest !== "string") return h("code", agentInvocationContext(invocation));
|
|
2098
2193
|
return h("span", { class: "vh-invocation-preparation__context" }, [
|
|
2099
2194
|
h("code", repository),
|
|
2100
2195
|
h("span", { "aria-hidden": "true" }, "·"),
|
|
@@ -2176,7 +2271,7 @@ function renderPreparationStep(activity, url, inspect) {
|
|
|
2176
2271
|
renderPreparationDetail(activity, url),
|
|
2177
2272
|
renderPreparationAction(activity, inspect),
|
|
2178
2273
|
activity.body ? h("p", { class: "vh-invocation-preparation__body" }, activity.body) : null,
|
|
2179
|
-
|
|
2274
|
+
renderTruncationNotice(activity)
|
|
2180
2275
|
]);
|
|
2181
2276
|
}
|
|
2182
2277
|
function activityGroup(activity) {
|
|
@@ -2220,7 +2315,7 @@ function renderAgentConfigurationGroup(activities, inspect) {
|
|
|
2220
2315
|
renderDisclosureChevron("vh-invocation-capabilities__disclosure")
|
|
2221
2316
|
]), h("ol", { class: "vh-invocation-capabilities__rows" }, activities.map((item) => h("li", { key: item.id }, [
|
|
2222
2317
|
item.body ? h("div", { class: "vh-invocation-event__body" }, [markdown(item.body, "vh-invocation-event__markdown")]) : null,
|
|
2223
|
-
item
|
|
2318
|
+
renderTruncationNotice(item),
|
|
2224
2319
|
h("button", {
|
|
2225
2320
|
class: "vh-invocation-event__inspect",
|
|
2226
2321
|
onClick: () => inspect("agent"),
|
|
@@ -2237,7 +2332,7 @@ function labelStyle(color) {
|
|
|
2237
2332
|
const luminance = (red * 299 + green * 587 + blue * 114) / 1e3;
|
|
2238
2333
|
return {
|
|
2239
2334
|
"--vh-invocation-label-bg": `#${normalized}`,
|
|
2240
|
-
"--vh-invocation-label-fg": luminance > 150 ? "
|
|
2335
|
+
"--vh-invocation-label-fg": luminance > 150 ? "var(--ui-color-neutral-900)" : "var(--ui-color-neutral-50)"
|
|
2241
2336
|
};
|
|
2242
2337
|
}
|
|
2243
2338
|
function renderLabelChip(activity) {
|
|
@@ -2307,7 +2402,7 @@ function renderActivityGroup(group, activities, inspect) {
|
|
|
2307
2402
|
renderLabelChip(activity),
|
|
2308
2403
|
!stringAttribute(activity.attributes, "github.label.name") && channelDeliverySummary(activity) ? h("code", { class: "vh-invocation-lifecycle__detail" }, channelDeliverySummary(activity)) : null,
|
|
2309
2404
|
activity.status === "failed" && activity.body ? h("span", { class: "vh-invocation-lifecycle__failure" }, activity.body) : null,
|
|
2310
|
-
activity
|
|
2405
|
+
renderTruncationNotice(activity, "span")
|
|
2311
2406
|
];
|
|
2312
2407
|
return h("li", {
|
|
2313
2408
|
"data-activity-id": activity.id,
|
|
@@ -2321,6 +2416,70 @@ function renderActivityGroup(group, activities, inspect) {
|
|
|
2321
2416
|
}, rowContent) : h("div", { class: "vh-invocation-lifecycle__row" }, rowContent)]);
|
|
2322
2417
|
}))]);
|
|
2323
2418
|
}
|
|
2419
|
+
const tokenFormat = new Intl.NumberFormat("en");
|
|
2420
|
+
/** A USD amount with cents. Below ten cents it keeps two significant digits, so a small run does not read as $0.00. */
|
|
2421
|
+
function formatUsd(usd) {
|
|
2422
|
+
const value = Number(usd);
|
|
2423
|
+
const small = value > 0 && value < .1;
|
|
2424
|
+
return new Intl.NumberFormat("en", {
|
|
2425
|
+
currency: "USD",
|
|
2426
|
+
maximumFractionDigits: small ? Math.min(6, 1 - Math.floor(Math.log10(value))) : 2,
|
|
2427
|
+
minimumFractionDigits: 2,
|
|
2428
|
+
style: "currency"
|
|
2429
|
+
}).format(value);
|
|
2430
|
+
}
|
|
2431
|
+
/**
|
|
2432
|
+
* Tokens and cost of the session. The cost shows only when the run recorded one. An estimate says so in its label, and
|
|
2433
|
+
* its tooltip names where the prices come from, such as models.dev. Token types without tokens are left out.
|
|
2434
|
+
*/
|
|
2435
|
+
function inspectorUsage(usage, partition, totalTokens) {
|
|
2436
|
+
const cost = usage?.cost;
|
|
2437
|
+
const usd = cost?.usd !== void 0 && Number.isFinite(Number(cost.usd)) ? cost.usd : void 0;
|
|
2438
|
+
const costText = usd === void 0 ? cost?.display || void 0 : formatUsd(usd);
|
|
2439
|
+
const rows = [
|
|
2440
|
+
["Input", partition?.inputTokens],
|
|
2441
|
+
["Cached input", partition?.cachedInputTokens],
|
|
2442
|
+
["Cache writes", partition?.cacheWriteTokens],
|
|
2443
|
+
["Output", partition?.outputTokens],
|
|
2444
|
+
["Reasoning", partition?.reasoningTokens]
|
|
2445
|
+
].flatMap(([label, value]) => !value ? [] : [h("div", [h("dt", label), h("dd", tokenFormat.format(value))])]);
|
|
2446
|
+
if (costText === void 0 && totalTokens === void 0 && !rows.length) return null;
|
|
2447
|
+
const estimated = cost?.estimated === true;
|
|
2448
|
+
const costNote = estimated ? cost.source && cost.source !== "provider" ? `Estimated from ${cost.source}` : "Estimated" : cost?.estimated === false ? "Reported by the provider" : void 0;
|
|
2449
|
+
const costTitle = [usd === void 0 ? void 0 : `$${usd}`, costNote].filter(Boolean).join(", ") || void 0;
|
|
2450
|
+
return inspectorSection("Usage", h("div", {
|
|
2451
|
+
class: "vh-invocation-inspector__usage",
|
|
2452
|
+
"data-slot": "invocation-usage"
|
|
2453
|
+
}, [h("dl", { class: "vh-invocation-inspector__metrics" }, [costText === void 0 ? null : h("div", { title: costTitle }, [h("dt", estimated ? "Estimated cost" : "Cost"), h("dd", costText)]), totalTokens === void 0 ? null : h("div", [h("dt", "Tokens"), h("dd", tokenFormat.format(totalTokens))])]), rows.length ? h("dl", { class: "vh-invocation-inspector__list vh-invocation-inspector__list--numbers" }, rows) : null]));
|
|
2454
|
+
}
|
|
2455
|
+
/** Skills that the harness offered the Agent, one chip each. The description and source are in the tooltip. */
|
|
2456
|
+
function inspectorSkills(skills) {
|
|
2457
|
+
const list = h("ul", { class: "vh-invocation-inspector__chips" }, skills.map((skill) => h("li", {
|
|
2458
|
+
key: skill.name,
|
|
2459
|
+
title: [skill.description, skill.source ? `Source: ${skill.source}` : void 0].filter(Boolean).join("\n") || void 0
|
|
2460
|
+
}, skill.name)));
|
|
2461
|
+
return skills.length > 12 ? inspectorDisclosure("Skills", String(skills.length), list) : h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "Skills"), h("small", skills.length)]), list]);
|
|
2462
|
+
}
|
|
2463
|
+
/** MCP servers that the harness connected. A dot shows the status it recorded. */
|
|
2464
|
+
function inspectorMcpServers(servers) {
|
|
2465
|
+
return h("div", { class: "vh-invocation-inspector__group" }, [h("div", { class: "vh-invocation-inspector__group-heading" }, [h("strong", "MCP servers"), h("small", servers.length)]), h("ul", { class: "vh-invocation-inspector__chips" }, servers.map((server) => h("li", {
|
|
2466
|
+
key: server.name,
|
|
2467
|
+
title: server.status ? `${server.name}: ${server.status}` : void 0
|
|
2468
|
+
}, [
|
|
2469
|
+
server.status ? h("span", {
|
|
2470
|
+
"aria-hidden": "true",
|
|
2471
|
+
class: "vh-invocation-inspector__dot",
|
|
2472
|
+
"data-status": server.status
|
|
2473
|
+
}) : null,
|
|
2474
|
+
server.name,
|
|
2475
|
+
server.status ? h("span", { "data-slot": "visually-hidden" }, `, ${server.status}`) : null
|
|
2476
|
+
])))]);
|
|
2477
|
+
}
|
|
2478
|
+
/** Recorded entries with a string `name`. The configuration is untrusted JSON. */
|
|
2479
|
+
function namedEntries(value) {
|
|
2480
|
+
if (!Array.isArray(value)) return [];
|
|
2481
|
+
return value.filter((entry) => entry instanceof Object && typeof Reflect.get(entry, "name") === "string" && Reflect.get(entry, "name") !== "");
|
|
2482
|
+
}
|
|
2324
2483
|
function inspectorSection(title, body) {
|
|
2325
2484
|
return h("section", [h("h4", title), body]);
|
|
2326
2485
|
}
|
|
@@ -2380,8 +2539,8 @@ function statusIcon$1(status) {
|
|
|
2380
2539
|
})));
|
|
2381
2540
|
}
|
|
2382
2541
|
function sourcePresentation(source) {
|
|
2383
|
-
const id =
|
|
2384
|
-
const repository =
|
|
2542
|
+
const id = typeof source === "string" ? source : source.id;
|
|
2543
|
+
const repository = typeof source === "string" ? /^(?:gh|github):([\w.-]+\/[\w.-]+)(?:\/.*)?$/.exec(source)?.[1] : /^[\w.-]+\/[\w.-]+$/.test(source.repository ?? "") ? source.repository : void 0;
|
|
2385
2544
|
return repository ? {
|
|
2386
2545
|
href: `https://github.com/${repository}`,
|
|
2387
2546
|
icon: channelIcon("github"),
|
|
@@ -2408,10 +2567,16 @@ function inspectorChannels(channels) {
|
|
|
2408
2567
|
}))]);
|
|
2409
2568
|
}
|
|
2410
2569
|
function isRecordedChannel(value) {
|
|
2411
|
-
if (value === null ||
|
|
2570
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
2412
2571
|
const channel = value;
|
|
2413
|
-
return Object.hasOwn(channel, "id") &&
|
|
2414
|
-
}
|
|
2572
|
+
return Object.hasOwn(channel, "id") && typeof channel.id === "string" && Object.hasOwn(channel, "kind") && typeof channel.kind === "string";
|
|
2573
|
+
}
|
|
2574
|
+
/** Runtime names that mean nothing to a reader on their own. */
|
|
2575
|
+
const runtimeLabels = { import: {
|
|
2576
|
+
label: "Imported session",
|
|
2577
|
+
title: "This session ran outside ViteHub. Its session file was imported."
|
|
2578
|
+
} };
|
|
2579
|
+
/** Model, provider, and runtime as rows. The provider row shows only when it is not the company that made the model. */
|
|
2415
2580
|
function inspectorExecution(configuration) {
|
|
2416
2581
|
const model = configuration.driver?.model;
|
|
2417
2582
|
const modelId = model?.id;
|
|
@@ -2419,10 +2584,18 @@ function inspectorExecution(configuration) {
|
|
|
2419
2584
|
const provider = invocationBrand(model?.provider ?? configuration.driver?.provider);
|
|
2420
2585
|
const runtime = configuration.runtime?.name;
|
|
2421
2586
|
if (!modelId && !provider && (!runtime || runtime === "unknown")) return null;
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2587
|
+
const runtimeLabel = runtime && Object.hasOwn(runtimeLabels, runtime) ? runtimeLabels[runtime] : void 0;
|
|
2588
|
+
return h("dl", { class: "vh-invocation-inspector__list vh-invocation-execution" }, [
|
|
2589
|
+
modelId ? h("div", [h("dt", "Model"), h("dd", {
|
|
2590
|
+
class: "vh-invocation-execution__model",
|
|
2591
|
+
title: maker ? `${modelId} by ${maker.label}` : modelId
|
|
2592
|
+
}, [invocationBrandMark(maker ?? provider ?? {
|
|
2593
|
+
id: "fallback",
|
|
2594
|
+
label: "Model"
|
|
2595
|
+
}, "vh-invocation-execution__model-icon"), h("span", invocationModelName(modelId))])]) : null,
|
|
2596
|
+
provider && provider.id !== maker?.id ? h("div", [h("dt", "Provider"), h("dd", { class: "vh-invocation-execution__provider" }, [invocationBrandMark(provider, "vh-invocation-execution__provider-icon"), h("span", provider.label)])]) : null,
|
|
2597
|
+
runtime && runtime !== "unknown" ? h("div", [h("dt", "Runtime"), h("dd", { title: runtimeLabel?.title }, runtimeLabel?.label ?? runtime)]) : null
|
|
2598
|
+
]);
|
|
2426
2599
|
}
|
|
2427
2600
|
function inspectorTools(tools, counts, selectTool) {
|
|
2428
2601
|
const rows = [...tools].sort((left, right) => (counts.get(right.name) ?? 0) - (counts.get(left.name) ?? 0) || left.name.localeCompare(right.name));
|
|
@@ -2452,6 +2625,8 @@ function renderConfiguration(configuration, invocation, showSources, showCapabil
|
|
|
2452
2625
|
tools,
|
|
2453
2626
|
truncated: configuration.truncated || tools.length !== recordedTools.length || channelsCatalogMalformed || channels.length !== recordedChannels.length
|
|
2454
2627
|
};
|
|
2628
|
+
const skills = namedEntries(configuration.skills);
|
|
2629
|
+
const mcpServers = namedEntries(configuration.mcpServers);
|
|
2455
2630
|
const driver = driverLabel(configuration);
|
|
2456
2631
|
const workspace = workspaceLabel(configuration);
|
|
2457
2632
|
const setup = [
|
|
@@ -2486,6 +2661,8 @@ function renderConfiguration(configuration, invocation, showSources, showCapabil
|
|
|
2486
2661
|
]);
|
|
2487
2662
|
}))]) : null,
|
|
2488
2663
|
configuration.tools?.some((tool) => !showCapabilities || !configuration.capabilities?.some((capability) => capability.id === tool.capabilityId)) ? inspectorTools(configuration.tools.filter((tool) => !showCapabilities || !configuration.capabilities?.some((capability) => capability.id === tool.capabilityId)), invocationToolUsage(invocation), selectTool) : null,
|
|
2664
|
+
skills.length ? inspectorSkills(skills) : null,
|
|
2665
|
+
mcpServers.length ? inspectorMcpServers(mcpServers) : null,
|
|
2489
2666
|
configuration.instructions?.length ? inspectorDisclosure("Instructions", `${configuration.instructions.length} block${configuration.instructions.length === 1 ? "" : "s"}`, h("pre", { class: "vh-invocation-inspector__instructions" }, configuration.instructions.join("\n\n"))) : null
|
|
2490
2667
|
].filter((item) => item !== null);
|
|
2491
2668
|
return groups.length || configuration.truncated ? [inspectorSection("Agent setup", h("div", { class: "vh-invocation-inspector__groups" }, [configuration.truncated ? h("p", {
|
|
@@ -2519,6 +2696,10 @@ function renderActivitySequence(activities, invocation, expanded, toggleExpanded
|
|
|
2519
2696
|
}
|
|
2520
2697
|
return rendered;
|
|
2521
2698
|
}
|
|
2699
|
+
/** A model call without reasoning text or a token count has nothing to open, so the work list leaves it out. */
|
|
2700
|
+
function emptyModelStep(activity) {
|
|
2701
|
+
return (activity.kind === "model" || activity.kind === "reasoning") && !activity.body?.trim() && !activity.reasoningTokens && !activity.truncated;
|
|
2702
|
+
}
|
|
2522
2703
|
function renderWorkSummary(activities, invocation, expanded, open, setOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
|
|
2523
2704
|
if (!activities.length) return null;
|
|
2524
2705
|
const active = invocation.status === "pending" || invocation.status === "running";
|
|
@@ -2526,6 +2707,7 @@ function renderWorkSummary(activities, invocation, expanded, open, setOpen, togg
|
|
|
2526
2707
|
const endedAt = invocation.completedAt ?? invocation.failedAt ?? invocation.cancelledAt ?? invocation.updatedAt;
|
|
2527
2708
|
const duration = formatDuration(invocation.startedAt, endedAt);
|
|
2528
2709
|
const elapsed = active ? formatElapsed(invocation.startedAt, messageRendering.liveNow) : void 0;
|
|
2710
|
+
const steps = activities.filter((activity, index) => !emptyModelStep(activity) || active && index === activities.length - 1);
|
|
2529
2711
|
return h("li", {
|
|
2530
2712
|
class: "vh-invocation-work",
|
|
2531
2713
|
key: "invocation-work"
|
|
@@ -2546,15 +2728,19 @@ function renderWorkSummary(activities, invocation, expanded, open, setOpen, togg
|
|
|
2546
2728
|
"aria-hidden": "true",
|
|
2547
2729
|
class: "vh-invocation-work__divider"
|
|
2548
2730
|
}),
|
|
2549
|
-
detailsOpen ? h("ol", { class: "vh-invocation-work__activities" }, renderActivitySequence(
|
|
2731
|
+
detailsOpen && steps.length ? h("ol", { class: "vh-invocation-work__activities" }, renderActivitySequence(steps, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen, true)) : null
|
|
2550
2732
|
])]);
|
|
2551
2733
|
}
|
|
2552
|
-
function renderPreviousMessages(messages, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
|
|
2553
|
-
if (!messages.length) return null;
|
|
2734
|
+
function renderPreviousMessages(messages, omitted, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
|
|
2735
|
+
if (!messages.length && !omitted) return null;
|
|
2736
|
+
const total = messages.length + omitted;
|
|
2554
2737
|
return h("li", {
|
|
2555
2738
|
class: "vh-invocation-history",
|
|
2556
2739
|
key: "invocation-history"
|
|
2557
|
-
}, [h("details", { class: "vh-invocation-history__details" }, [h("summary", { class: "vh-invocation-history__summary" }, [h("span", `${
|
|
2740
|
+
}, [h("details", { class: "vh-invocation-history__details" }, [h("summary", { class: "vh-invocation-history__summary" }, [h("span", `${total} previous ${total === 1 ? "message" : "messages"}`), renderDisclosureChevron("vh-invocation-history__disclosure")]), h("ol", { class: "vh-invocation-history__messages" }, [omitted ? h("li", {
|
|
2741
|
+
class: "vh-invocation-history__omitted",
|
|
2742
|
+
key: "omitted"
|
|
2743
|
+
}, `${omitted} earlier ${omitted === 1 ? "message" : "messages"} not recorded`) : null, ...renderActivitySequence(messages, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)])])]);
|
|
2558
2744
|
}
|
|
2559
2745
|
function invocationPromptMetadata(invocation, promptId) {
|
|
2560
2746
|
if (promptId === void 0) return {};
|
|
@@ -2569,7 +2755,11 @@ function invocationPromptMetadata(invocation, promptId) {
|
|
|
2569
2755
|
function renderInvocationActivities(conversation, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) {
|
|
2570
2756
|
if (conversation.kind === "activities") return renderActivitySequence(conversation.activities, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen);
|
|
2571
2757
|
return [
|
|
2572
|
-
renderPreviousMessages(conversation.history, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
|
|
2758
|
+
renderPreviousMessages(conversation.history, conversation.omittedHistory, invocation, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
|
|
2759
|
+
conversation.omittedUnplacedHistory ? h("li", {
|
|
2760
|
+
class: "vh-invocation-history__omitted",
|
|
2761
|
+
key: "omitted-unplaced"
|
|
2762
|
+
}, `${conversation.omittedUnplacedHistory} ${conversation.omittedUnplacedHistory === 1 ? "message" : "messages"} not recorded`) : null,
|
|
2573
2763
|
conversation.prompt ? renderInvocationActivity(conversation.prompt, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen) : null,
|
|
2574
2764
|
renderWorkSummary(conversation.work, invocation, expanded, workOpen, setWorkOpen, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen),
|
|
2575
2765
|
...conversation.answers.map((activity) => renderInvocationActivity(activity, expanded, toggleExpanded, inspect, messageRendering, openActivities, setActivityOpen)),
|
|
@@ -2578,7 +2768,7 @@ function renderInvocationActivities(conversation, invocation, expanded, workOpen
|
|
|
2578
2768
|
}
|
|
2579
2769
|
const AgentInvocation = defineComponent({
|
|
2580
2770
|
name: "AgentInvocation",
|
|
2581
|
-
emits: { inspect: (target, path) => (target === "agent" || target === "workspace") && (path === void 0 ||
|
|
2771
|
+
emits: { inspect: (target, path) => (target === "agent" || target === "workspace") && (path === void 0 || typeof path === "string") },
|
|
2582
2772
|
props: {
|
|
2583
2773
|
header: {
|
|
2584
2774
|
default: true,
|
|
@@ -2617,10 +2807,17 @@ const AgentInvocation = defineComponent({
|
|
|
2617
2807
|
let liveClock;
|
|
2618
2808
|
const workOpen = ref(false);
|
|
2619
2809
|
const openActivities = ref(/* @__PURE__ */ new Set());
|
|
2620
|
-
const
|
|
2810
|
+
const clipboard = useCopy();
|
|
2811
|
+
const copiedMessageId = ref();
|
|
2812
|
+
const messageCopy = computed(() => {
|
|
2813
|
+
const status = clipboard.copied.value ? "copied" : clipboard.failed.value ? "failed" : void 0;
|
|
2814
|
+
return copiedMessageId.value && status ? {
|
|
2815
|
+
id: copiedMessageId.value,
|
|
2816
|
+
status
|
|
2817
|
+
} : void 0;
|
|
2818
|
+
});
|
|
2621
2819
|
const root = ref();
|
|
2622
2820
|
let selectedElement;
|
|
2623
|
-
let copyTimer;
|
|
2624
2821
|
function toggleExpanded(id) {
|
|
2625
2822
|
const next = new Set(expandedMessages.value);
|
|
2626
2823
|
if (next.has(id)) next.delete(id);
|
|
@@ -2648,28 +2845,15 @@ const AgentInvocation = defineComponent({
|
|
|
2648
2845
|
selectedElement = void 0;
|
|
2649
2846
|
}
|
|
2650
2847
|
async function copyMessage(activity) {
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
await navigator.clipboard.writeText(`${activity.body ?? ""}\n\n${metadata.join("\n")}`);
|
|
2661
|
-
messageCopy.value = {
|
|
2662
|
-
id: activity.id,
|
|
2663
|
-
status: "copied"
|
|
2664
|
-
};
|
|
2665
|
-
} catch {
|
|
2666
|
-
messageCopy.value = {
|
|
2667
|
-
id: activity.id,
|
|
2668
|
-
status: "failed"
|
|
2669
|
-
};
|
|
2670
|
-
}
|
|
2671
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
2672
|
-
copyTimer = setTimeout(() => messageCopy.value = void 0, 2e3);
|
|
2848
|
+
copiedMessageId.value = activity.id;
|
|
2849
|
+
const url = agentInvocationExternalUrl(props.invocation);
|
|
2850
|
+
const metadata = [
|
|
2851
|
+
`Invocation ID: ${props.invocation.id}`,
|
|
2852
|
+
`Trace ID: ${props.invocation.traceId}`,
|
|
2853
|
+
props.invocation.agentName ? `Agent: ${props.invocation.agentName}` : void 0,
|
|
2854
|
+
url ? `URL: ${url}` : void 0
|
|
2855
|
+
].filter((value) => value !== void 0);
|
|
2856
|
+
await clipboard.copy(`${activity.body ?? ""}\n\n${metadata.join("\n")}`);
|
|
2673
2857
|
}
|
|
2674
2858
|
async function focusActivity(id) {
|
|
2675
2859
|
if (id) {
|
|
@@ -2704,7 +2888,7 @@ const AgentInvocation = defineComponent({
|
|
|
2704
2888
|
watch(() => props.invocation.id, () => {
|
|
2705
2889
|
workOpen.value = false;
|
|
2706
2890
|
openActivities.value = /* @__PURE__ */ new Set();
|
|
2707
|
-
|
|
2891
|
+
copiedMessageId.value = void 0;
|
|
2708
2892
|
});
|
|
2709
2893
|
watch(() => props.invocation.status, (status, previousStatus) => {
|
|
2710
2894
|
if ((previousStatus === "pending" || previousStatus === "running") && status !== "pending" && status !== "running") workOpen.value = false;
|
|
@@ -2717,7 +2901,6 @@ const AgentInvocation = defineComponent({
|
|
|
2717
2901
|
}, { immediate: true });
|
|
2718
2902
|
onBeforeUnmount(() => {
|
|
2719
2903
|
clearSelectedElement();
|
|
2720
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
2721
2904
|
if (liveClock) clearInterval(liveClock);
|
|
2722
2905
|
});
|
|
2723
2906
|
return () => {
|
|
@@ -2796,9 +2979,10 @@ const AgentInvocationInspector = defineComponent({
|
|
|
2796
2979
|
setup(props, { emit, slots }) {
|
|
2797
2980
|
const activities = computed(() => invocationActivities(props.invocation));
|
|
2798
2981
|
const conversation = computed(() => buildInvocationConversation(activities.value));
|
|
2799
|
-
const
|
|
2800
|
-
const
|
|
2801
|
-
|
|
2982
|
+
const clipboard = useCopy({ duration: 1600 });
|
|
2983
|
+
const copyKind = ref();
|
|
2984
|
+
const copied = computed(() => clipboard.copied.value ? copyKind.value : void 0);
|
|
2985
|
+
const copyError = computed(() => clipboard.failed.value ? copyKind.value : void 0);
|
|
2802
2986
|
const metrics = computed(() => ({
|
|
2803
2987
|
changes: activities.value.filter((activity) => activity.kind === "change").length,
|
|
2804
2988
|
messages: (conversation.value.kind === "activities" ? conversation.value.activities : [
|
|
@@ -2818,25 +3002,8 @@ const AgentInvocationInspector = defineComponent({
|
|
|
2818
3002
|
}
|
|
2819
3003
|
async function copyIdentifier(kind, value) {
|
|
2820
3004
|
if (!value) return;
|
|
2821
|
-
|
|
2822
|
-
await
|
|
2823
|
-
if (!("navigator" in globalThis) || !navigator.clipboard) {
|
|
2824
|
-
copied.value = void 0;
|
|
2825
|
-
copyError.value = kind;
|
|
2826
|
-
return;
|
|
2827
|
-
}
|
|
2828
|
-
try {
|
|
2829
|
-
await navigator.clipboard.writeText(value);
|
|
2830
|
-
copied.value = kind;
|
|
2831
|
-
copyError.value = void 0;
|
|
2832
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
2833
|
-
copyTimer = setTimeout(() => {
|
|
2834
|
-
copied.value = void 0;
|
|
2835
|
-
}, 1600);
|
|
2836
|
-
} catch {
|
|
2837
|
-
copied.value = void 0;
|
|
2838
|
-
copyError.value = kind;
|
|
2839
|
-
}
|
|
3005
|
+
copyKind.value = kind;
|
|
3006
|
+
await clipboard.copy(value);
|
|
2840
3007
|
}
|
|
2841
3008
|
function copyAction(kind, label, value) {
|
|
2842
3009
|
if (!value) return null;
|
|
@@ -2855,9 +3022,6 @@ const AgentInvocationInspector = defineComponent({
|
|
|
2855
3022
|
h("span", { class: "vh-invocation-inspector__copy-icon" }, [copyIcon(didCopy)])
|
|
2856
3023
|
]);
|
|
2857
3024
|
}
|
|
2858
|
-
onBeforeUnmount(() => {
|
|
2859
|
-
if (copyTimer) clearTimeout(copyTimer);
|
|
2860
|
-
});
|
|
2861
3025
|
return () => {
|
|
2862
3026
|
const configuration = props.invocation.configuration;
|
|
2863
3027
|
const agentName = configuration?.agent?.name ?? props.invocation.agentName;
|
|
@@ -2873,7 +3037,7 @@ const AgentInvocationInspector = defineComponent({
|
|
|
2873
3037
|
"data-slot": "invocation-inspector"
|
|
2874
3038
|
}, [h("header", [h("div", [h("p", agentInvocationProject(props.invocation)), h("h3", "Invocation details")]), slots.actions?.({ invocation: props.invocation })]), h("div", { class: "vh-invocation-inspector__content" }, [
|
|
2875
3039
|
h("span", {
|
|
2876
|
-
|
|
3040
|
+
"data-slot": "visually-hidden",
|
|
2877
3041
|
role: "status"
|
|
2878
3042
|
}, copied.value ? `${copied.value === "trace" ? "Trace" : "Invocation"} ID copied` : copyError.value ? `${copyError.value === "trace" ? "Trace" : "Invocation"} ID could not be copied` : ""),
|
|
2879
3043
|
h("section", { class: "vh-invocation-inspector__identity" }, [
|
|
@@ -2891,7 +3055,7 @@ const AgentInvocationInspector = defineComponent({
|
|
|
2891
3055
|
agentInvocationContext(props.invocation) !== props.invocation.id ? h("p", agentInvocationContext(props.invocation)) : null,
|
|
2892
3056
|
agentName ? h("div", { class: "vh-invocation-inspector__agent" }, [
|
|
2893
3057
|
h("span", "Agent"),
|
|
2894
|
-
h("
|
|
3058
|
+
h("strong", agentName),
|
|
2895
3059
|
configuration?.agent?.version ? h("small", `v${configuration.agent.version}`) : null
|
|
2896
3060
|
]) : null,
|
|
2897
3061
|
props.showError && props.invocation.error ? h(InvocationError, { error: props.invocation.error }) : null
|
|
@@ -2901,17 +3065,9 @@ const AgentInvocationInspector = defineComponent({
|
|
|
2901
3065
|
h("div", [h("dt", "Steps"), h("dd", metrics.value.steps)]),
|
|
2902
3066
|
h("div", [h("dt", "Tool calls"), h("dd", metrics.value.toolCalls)]),
|
|
2903
3067
|
totalTime ? h("div", [h("dt", "Total time"), h("dd", totalTime)]) : null,
|
|
2904
|
-
metrics.value.changes ? h("div", [h("dt", "Changes"), h("dd", metrics.value.changes)]) : null
|
|
2905
|
-
inspectorRow("Tokens", (props.invocation.usage?.totalTokens ?? metrics.value.tokens) === void 0 ? "Unknown" : new Intl.NumberFormat("en").format(props.invocation.usage?.totalTokens ?? metrics.value.tokens)),
|
|
2906
|
-
inspectorRow(usage?.cost?.estimated === true ? "Estimated cost" : usage?.cost?.estimated === false ? "Reported cost" : "Cost", usage?.cost?.display || "Unknown"),
|
|
2907
|
-
...[
|
|
2908
|
-
["Input", partition?.inputTokens],
|
|
2909
|
-
["Output", partition?.outputTokens],
|
|
2910
|
-
["Cached", partition?.cachedInputTokens],
|
|
2911
|
-
["Cache writes", partition?.cacheWriteTokens],
|
|
2912
|
-
["Reasoning", partition?.reasoningTokens]
|
|
2913
|
-
].flatMap(([label, value]) => value === void 0 ? [] : [inspectorRow(label, new Intl.NumberFormat("en").format(value))])
|
|
3068
|
+
metrics.value.changes ? h("div", [h("dt", "Changes"), h("dd", metrics.value.changes)]) : null
|
|
2914
3069
|
])),
|
|
3070
|
+
inspectorUsage(usage, partition, usage?.totalTokens ?? metrics.value.tokens),
|
|
2915
3071
|
props.showTimeline ? traceTimeline(props.invocation, (id) => emit("selectActivity", id)) : null,
|
|
2916
3072
|
...configuration ? renderConfiguration(configuration, props.invocation, props.showSources, props.showCapabilities, selectTool) : [],
|
|
2917
3073
|
slots.metadata?.({ invocation: props.invocation }),
|
|
@@ -2979,42 +3135,6 @@ function groupByRecency(items, now) {
|
|
|
2979
3135
|
}] : [];
|
|
2980
3136
|
});
|
|
2981
3137
|
}
|
|
2982
|
-
function relativeTime(value, now) {
|
|
2983
|
-
if (!value || now === void 0) return;
|
|
2984
|
-
const elapsed = now - Date.parse(value);
|
|
2985
|
-
if (!Number.isFinite(elapsed) || elapsed < 0) return;
|
|
2986
|
-
if (elapsed < 6e4) return {
|
|
2987
|
-
label: "now",
|
|
2988
|
-
short: "now"
|
|
2989
|
-
};
|
|
2990
|
-
if (elapsed < 36e5) {
|
|
2991
|
-
const minutes = Math.floor(elapsed / 6e4);
|
|
2992
|
-
return {
|
|
2993
|
-
label: new Intl.RelativeTimeFormat("en").format(-minutes, "minute"),
|
|
2994
|
-
short: `${minutes}m`
|
|
2995
|
-
};
|
|
2996
|
-
}
|
|
2997
|
-
if (elapsed < 864e5) {
|
|
2998
|
-
const hours = Math.floor(elapsed / 36e5);
|
|
2999
|
-
return {
|
|
3000
|
-
label: new Intl.RelativeTimeFormat("en").format(-hours, "hour"),
|
|
3001
|
-
short: `${hours}h`
|
|
3002
|
-
};
|
|
3003
|
-
}
|
|
3004
|
-
const date = new Date(value);
|
|
3005
|
-
return {
|
|
3006
|
-
label: new Intl.DateTimeFormat("en", {
|
|
3007
|
-
dateStyle: "medium",
|
|
3008
|
-
timeStyle: "short",
|
|
3009
|
-
timeZone: "UTC"
|
|
3010
|
-
}).format(date),
|
|
3011
|
-
short: new Intl.DateTimeFormat("en", {
|
|
3012
|
-
day: "numeric",
|
|
3013
|
-
month: "short",
|
|
3014
|
-
timeZone: "UTC"
|
|
3015
|
-
}).format(date)
|
|
3016
|
-
};
|
|
3017
|
-
}
|
|
3018
3138
|
function statusIcon(status) {
|
|
3019
3139
|
const paths = {
|
|
3020
3140
|
cancelled: [
|
|
@@ -3044,49 +3164,48 @@ function statusIcon(status) {
|
|
|
3044
3164
|
}
|
|
3045
3165
|
function renderItem(item, selectedId, now, select, projectIconSlot, harnessSlot) {
|
|
3046
3166
|
const timestamp = item.status === "running" ? item.startedAt ?? item.updatedAt : item.updatedAt;
|
|
3047
|
-
const time =
|
|
3167
|
+
const time = consoleRelativeTime(timestamp, now);
|
|
3168
|
+
const state = h("span", {
|
|
3169
|
+
class: "vh-invocation-list__state",
|
|
3170
|
+
title: item.description
|
|
3171
|
+
}, [
|
|
3172
|
+
item.status === "completed" ? h("span", { "data-slot": "visually-hidden" }, invocationStatusLabel(item.status)) : h("span", { class: "vh-invocation-list__state-icon" }, [statusIcon(item.status)]),
|
|
3173
|
+
item.status === "completed" ? null : h("span", invocationStatusLabel(item.status)),
|
|
3174
|
+
time ? h("time", {
|
|
3175
|
+
"aria-label": time.label,
|
|
3176
|
+
datetime: timestamp,
|
|
3177
|
+
title: time.label
|
|
3178
|
+
}, time.short) : null
|
|
3179
|
+
]);
|
|
3180
|
+
const title = h("strong", {
|
|
3181
|
+
class: "vh-invocation-list__title",
|
|
3182
|
+
title: item.title
|
|
3183
|
+
}, item.title);
|
|
3048
3184
|
return h("li", { key: item.id }, [h("button", {
|
|
3049
3185
|
"aria-current": selectedId === item.id ? "true" : void 0,
|
|
3050
3186
|
"aria-description": item.description,
|
|
3051
3187
|
class: "vh-invocation-list__item",
|
|
3188
|
+
"data-focus-inset": "",
|
|
3052
3189
|
"data-invocation-id": item.id,
|
|
3053
3190
|
"data-relative-time": time?.short,
|
|
3054
3191
|
"data-status": item.status,
|
|
3055
3192
|
onClick: () => select(item),
|
|
3056
3193
|
type: "button"
|
|
3057
|
-
}, [
|
|
3058
|
-
h("span", { class: "vh-invocation-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
datetime: timestamp,
|
|
3073
|
-
title: time.label
|
|
3074
|
-
}, time.short) : null
|
|
3075
|
-
])
|
|
3076
|
-
]),
|
|
3077
|
-
h("strong", {
|
|
3078
|
-
class: "vh-invocation-list__title",
|
|
3079
|
-
title: item.title
|
|
3080
|
-
}, item.title),
|
|
3081
|
-
item.context || harnessSlot || item.channel ? h("span", { class: "vh-invocation-list__meta" }, [
|
|
3082
|
-
item.context ? h("span", {
|
|
3083
|
-
class: "vh-invocation-list__branch",
|
|
3084
|
-
title: item.context
|
|
3085
|
-
}, item.context) : null,
|
|
3086
|
-
harnessSlot ? h("span", { class: "vh-invocation-list__harness" }, harnessSlot({ item })) : null,
|
|
3087
|
-
item.channel ? channelIcon(item.channel) : null
|
|
3088
|
-
]) : null
|
|
3089
|
-
])]);
|
|
3194
|
+
}, [...item.project || projectIconSlot ? [h("span", { class: "vh-invocation-list__context" }, [
|
|
3195
|
+
projectIconSlot ? h("span", { class: "vh-invocation-list__project-icon" }, projectIconSlot({ item })) : null,
|
|
3196
|
+
item.project ? h("span", {
|
|
3197
|
+
class: "vh-invocation-list__project",
|
|
3198
|
+
title: item.project
|
|
3199
|
+
}, item.project) : null,
|
|
3200
|
+
state
|
|
3201
|
+
]), title] : [h("span", { class: "vh-invocation-list__headline" }, [title, state])], item.context || harnessSlot || item.channel ? h("span", { class: "vh-invocation-list__meta" }, [
|
|
3202
|
+
item.context ? h("span", {
|
|
3203
|
+
class: "vh-invocation-list__branch",
|
|
3204
|
+
title: item.context
|
|
3205
|
+
}, item.context) : null,
|
|
3206
|
+
harnessSlot ? h("span", { class: "vh-invocation-list__harness" }, harnessSlot({ item })) : null,
|
|
3207
|
+
item.channel ? channelIcon(item.channel) : null
|
|
3208
|
+
]) : null])]);
|
|
3090
3209
|
}
|
|
3091
3210
|
const AgentInvocationList = defineComponent({
|
|
3092
3211
|
name: "AgentInvocationList",
|