vite-hub 0.1.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -41
- 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-F0YP5D5E.js +439 -0
- package/dist/access-policy-B_DCpZUt.js +73 -0
- package/dist/access-policy-BsB3QVe5.d.ts +109 -0
- package/dist/account-Bsu-LBOF.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-DIm8tJV2.js +423 -0
- package/dist/agent.d.ts +1 -12
- package/dist/agent.js +1 -49
- package/dist/agents-C94A4N9u.d.ts +29 -0
- package/dist/agents-DnHexzTJ.js +123 -0
- package/dist/agents-y5hBFHUQ.js +2 -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-BFVHYizM.d.ts +120 -0
- package/dist/auth-operations-GcQk0O0X.js +34 -0
- package/dist/auth-types-DWpTBZvp.d.ts +90 -0
- package/dist/bin.js +106 -128
- package/dist/blob/nuxt-image.d.ts +3 -0
- package/dist/blob/nuxt-image.js +3 -0
- package/dist/blob-BRV6_wZa.js +26 -0
- package/dist/blob-CiUmptIp.d.ts +9 -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/cli-DjoDGgT4.js +36 -0
- package/dist/cli-config--rAg6V-a.js +2 -0
- package/dist/cli-config-Bpjjfz5j.js +105 -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/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-database.vue +77 -80
- package/dist/console/runtime/components/console-definitions.vue +163 -44
- package/dist/console/runtime/components/console-document-dashboard.vue +93 -112
- 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 +104 -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 +74 -98
- 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 +211 -188
- package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +125 -43
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +25 -0
- package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +8 -3
- 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 +469 -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 +2 -2
- 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/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 +119 -112
- 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 +142 -0
- package/dist/console/runtime/server/site-session.d.ts +85 -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 +374 -356
- package/dist/console-lazy-views-DXnIkdyd.js +2 -0
- package/dist/console-route-COvNB_Xj.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-BVyhAxq-.d.ts +6 -0
- package/dist/database-J7M0B3ED.js +17 -0
- package/dist/decisions/vue.d.ts +1 -0
- package/dist/decisions/vue.js +2 -0
- package/dist/decisions.d.ts +1 -0
- package/dist/decisions.js +2 -0
- package/dist/definitions-BDRkT5-f.js +336 -0
- package/dist/definitions-CGTWTj67.d.ts +19 -0
- package/dist/definitions-CxDT8D8Y.d.ts +243 -0
- package/dist/definitions-bepsXY5G.js +98 -0
- package/dist/dev-peer-am78OsHH.js +472 -0
- package/dist/development-BzeSHZGH.js +18 -0
- package/dist/development-DgaQ05jw.d.ts +9 -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-CjGiniKb.d.ts +11 -0
- package/dist/diagnostics-D0DefmQj.js +79 -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 +2975 -296
- package/dist/documents-8US1nUgK.js +547 -0
- package/dist/documents-C97WMaJZ.d.ts +474 -0
- package/dist/documents-DwPfR-fz.js +136 -0
- package/dist/documents-RVHsQKFw.d.ts +87 -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-D48wVEaS.js +142 -0
- package/dist/env-Dg1I_DWr.js +11 -0
- package/dist/error-diagnostics-C2rjmOlX.js +630 -0
- package/dist/error-diagnostics.ts +628 -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 +7 -3
- package/dist/index.js +39 -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-BP_O70ic.d.ts +59 -0
- package/dist/internal-BreyUsQ6.js +31 -0
- package/dist/invariant-DolT9EEx.js +22 -0
- package/dist/invocation-page-undo-BkUau8X7.js +54 -0
- package/dist/invocations-CsucCJuq.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-CTbTbn7d.js +10 -0
- package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
- package/dist/mcp-client-D0mUt18v.js +1024 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +2 -0
- package/dist/media-library-BChf8XOd.js +279 -0
- package/dist/media-library-CEo-Ye2B.d.ts +212 -0
- package/dist/media-uKX4Wy-c.d.ts +74 -0
- package/dist/media-wZMY6f2M.js +478 -0
- package/dist/memory-2bbl4hcV.d.ts +19 -0
- package/dist/memory-DhirB6SA.js +86 -0
- package/dist/nuxt-server-imports-Lnaf5Fe-.js +97 -0
- package/dist/nuxt.d.ts +10 -5
- package/dist/nuxt.js +699 -558
- package/dist/object-D8pRdprI.js +15 -0
- package/dist/operation-contributions-DflAv5AC.js +50 -0
- package/dist/operation-contributions-fZyVo662.d.ts +21 -0
- package/dist/operation-definition-Bn8V2hab.js +430 -0
- package/dist/operation-registry-BogGwk_I.js +22 -0
- package/dist/operation-rpc-DI9txNxK.js +158 -0
- package/dist/operations-B6N-ja8x.js +863 -0
- package/dist/operations-DX9EkHwb.d.ts +153 -0
- package/dist/operations-Dj_cp-UK.js +235 -0
- package/dist/operations-H9q0QB2C.js +2 -0
- package/dist/operations.d.ts +1 -2
- package/dist/operations.js +2 -2
- package/dist/optional-owners-Crm6kVS5.js +889 -0
- package/dist/page/pill.iife.js +70 -0
- package/dist/page-tool-BCRyx3pM.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-5uDXr9Km.d.ts +2124 -0
- package/dist/plugins-DQ8pF-38.js +11325 -0
- package/dist/presets/workspace.d.ts +1 -0
- package/dist/presets/workspace.js +1 -0
- package/dist/project-5EN7JaXI.d.ts +26 -0
- package/dist/project-C2dnB9Kf.js +30 -0
- package/dist/project-DOeM0zg3.js +57 -0
- package/dist/project-link-D_XQvBOC.d.ts +94 -0
- package/dist/project-link-Qi7nltHM.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-BUYAlAJl.js +162 -0
- package/dist/request-D7h3SQ92.d.ts +21 -0
- package/dist/request-origin-Bq7mDQG9.js +23 -0
- package/dist/request-yCybBeqT.js +468 -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-DG34DLXc.js +55 -0
- package/dist/runtime-DM8Z6KLT.js +10 -0
- package/dist/runtime-DxfJOfCd.js +25 -0
- package/dist/runtime-YLWfdrtO.js +65 -0
- package/dist/runtime-feature-guard-rpZz1eMF.js +55 -0
- package/dist/scan-module-BTeOuZsp.js +2 -0
- package/dist/scan-module-DlHQ8a0X.js +148 -0
- package/dist/schedule/os.d.ts +1 -0
- package/dist/schedule/os.js +2 -0
- package/dist/secret-AZLhaNyr.js +44 -0
- package/dist/sections-4xyBoiar.d.ts +159 -0
- package/dist/sections-ACHVTCWn.d.ts +10 -0
- package/dist/sections-BriKrBgN.d.ts +57 -0
- package/dist/sections-C83x0slv.js +13 -0
- package/dist/sections-CUJyQA9d.js +122 -0
- package/dist/sections-D6AM5Gy5.js +369 -0
- package/dist/sections.get-1lHjyKCI.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-DbjFYSeU.js +18 -0
- package/dist/setup-C-5nB7aY.js +22 -0
- package/dist/setup-DLZFzuLv.d.ts +12 -0
- package/dist/site-access-Bhsty_v4.js +2 -0
- package/dist/site-access-BycrwM2v.js +18 -0
- package/dist/site-access-CyRtc0gZ.js +292 -0
- package/dist/site-access-DxfdOel1.d.ts +55 -0
- package/dist/site-session-Jf21TVw8.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-CHQMzSD_.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-S-LChQvw.d.ts +59 -0
- package/dist/source-w9BHUwyO.js +60 -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-Pr_8ZtXW.d.ts +14 -0
- package/dist/ticket-RKQF6Wy9.js +31 -0
- package/dist/tickets-CfJhT7d0.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-Bc0YY_ka.js +569 -0
- package/dist/usage-index-CMMT4cXQ.js +335 -0
- package/dist/version-DDRL_OYz.js +1080 -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-l47NPVSy.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
|
@@ -0,0 +1,1051 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Command, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPage, createCommandController } from "@ui-sdk/vue/command";
|
|
3
|
+
import { Dialog, DialogBackdrop, DialogClose, DialogContent, DialogDescription, DialogTitle } from "@ui-sdk/vue/dialog";
|
|
4
|
+
import { useShortcut, useShortcutHint } from "@ui-sdk/vue/shortcuts";
|
|
5
|
+
import { Status } from "@vite-hub/ui";
|
|
6
|
+
import { useCollection } from "vite-hub/source/client";
|
|
7
|
+
import { computed, inject, nextTick, onBeforeUnmount, onMounted, ref, shallowRef, useTemplateRef, watch } from "vue";
|
|
8
|
+
import { useRoute, useRouter } from "vue-router";
|
|
9
|
+
|
|
10
|
+
import type { CommandActionDetails, CommandPagesChangeReason, CommandQueryChangeReason } from "@ui-sdk/vue/command"
|
|
11
|
+
import type { ConsoleCommand, ConsoleCommandGroup } from "../client/command-search"
|
|
12
|
+
import { filterConsoleCommandGroups } from "../client/command-search"
|
|
13
|
+
import type { Collection } from "@vite-hub/source"
|
|
14
|
+
import type { ConsoleDocumentOverview, ConsoleDocumentSearchResult, ConsoleDocumentState } from "../client/documents"
|
|
15
|
+
import type { ConsoleContributedSection, ConsoleDocumentCollection } from "../definitions"
|
|
16
|
+
import type { AgentInvocationListItem } from "./invocation"
|
|
17
|
+
import type { ConsoleSectionDetails, ConsoleSectionId } from "../sections"
|
|
18
|
+
import { consoleAddablePrimitives, openConsoleAddPrimitive } from "../client/add-primitive"
|
|
19
|
+
import { consoleAppearanceKey, consoleAppearanceOptions, consoleAppearances, consoleDarkSchemeQuery } from "../client/appearance"
|
|
20
|
+
import { consoleDocumentStateColor, consoleDocumentStateLabel, consoleErrorMessage, consolePublishMismatches, consoleSingularLabel, createConsoleDocumentsClient } from "../client/documents"
|
|
21
|
+
import { switchConsoleProject, useConsoleProjects } from "../client/project-session"
|
|
22
|
+
import { consoleProjectHost, consoleProjectName } from "../client/projects"
|
|
23
|
+
import { publishConsoleDocumentChanges } from "../client/publish"
|
|
24
|
+
import { loadConsoleKVPages, requestConsole } from "../client/request"
|
|
25
|
+
import { loadConsoleNavigation, resolveConsoleSectionDetails } from "../client/sections"
|
|
26
|
+
import type { ConsoleNavigation } from "../client/sections"
|
|
27
|
+
import { recentTimestamp } from "../client/format"
|
|
28
|
+
import { useConsoleToast } from "../client/toast"
|
|
29
|
+
import { encodeAgentRouteParam, resolveConsoleRouteName } from "../console-route"
|
|
30
|
+
import { parseConsoleSectionContent } from "../definitions"
|
|
31
|
+
import { consoleOverviewShortcut, consoleSectionDetails, consoleSectionPageRouteName, consoleSectionRouteName, consoleSectionShortcut, groupConsoleSections } from "../sections"
|
|
32
|
+
import { viteHubErrorDiagnostics } from "../../../error-diagnostics";
|
|
33
|
+
import Icon from "./console-icon.vue";
|
|
34
|
+
import ConsoleSectionIcon from "./console-section-icon.vue";
|
|
35
|
+
import { resolveConsoleAgentCatalog } from "./console-agent-list";
|
|
36
|
+
import { invocationStatusLabel } from "./invocation/agent-invocation-list";
|
|
37
|
+
|
|
38
|
+
interface ConsoleSearchFilter {
|
|
39
|
+
search?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface ConsoleSearchItem {
|
|
43
|
+
agentName?: string;
|
|
44
|
+
context: string;
|
|
45
|
+
excerpt?: string;
|
|
46
|
+
id: string;
|
|
47
|
+
status: AgentInvocationListItem["status"];
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface ConsoleDefinitionSearchItem {
|
|
52
|
+
details: ConsoleSectionDetails
|
|
53
|
+
file: string
|
|
54
|
+
name: string
|
|
55
|
+
section: ConsoleSectionId
|
|
56
|
+
source: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface ConsoleKVSearchItem {
|
|
60
|
+
key: string
|
|
61
|
+
store: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** A document editor section that the user may open, with what search needs from it. */
|
|
65
|
+
interface ConsoleDocumentSearchSection {
|
|
66
|
+
collections: ConsoleDocumentCollection[]
|
|
67
|
+
details: ConsoleContributedSection
|
|
68
|
+
overview?: ConsoleDocumentOverview
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface ConsoleDocumentSearchItem {
|
|
72
|
+
collection: ConsoleDocumentCollection
|
|
73
|
+
id: string
|
|
74
|
+
section: ConsoleDocumentSearchSection
|
|
75
|
+
state?: ConsoleDocumentState
|
|
76
|
+
title: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Extra words that find an item, such as `images` for Media (cmdk keyword aliases). */
|
|
80
|
+
const pageKeywords: Readonly<Record<string, readonly string[]>> = {
|
|
81
|
+
"document-dashboard": ["home", "overview", "stats", "activity", "scheduled", "schedule"],
|
|
82
|
+
"document-settings": ["settings", "site", "config", "configuration", "preferences", "singleton"],
|
|
83
|
+
"media-library": ["images", "files", "uploads", "assets", "library"],
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare global {
|
|
87
|
+
interface ViteHubCollectionMap {
|
|
88
|
+
"vitehub-console-search": Collection<
|
|
89
|
+
ConsoleSearchItem,
|
|
90
|
+
ConsoleSearchFilter,
|
|
91
|
+
ConsoleSearchFilter
|
|
92
|
+
>;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const props = defineProps<{
|
|
97
|
+
/** Commands of the current page. Search lists them first, in an "Actions" group. */
|
|
98
|
+
actions?: ConsoleCommand[]
|
|
99
|
+
agentNames?: string[]
|
|
100
|
+
/** Agent names that appear only in invocation history. Search lists them apart from the Agents. */
|
|
101
|
+
historicalAgentNames?: string[]
|
|
102
|
+
agentsBase: string
|
|
103
|
+
definitionsBase: string
|
|
104
|
+
kvBase: string
|
|
105
|
+
searchBase: string
|
|
106
|
+
sectionsBase: string
|
|
107
|
+
}>()
|
|
108
|
+
const route = useRoute()
|
|
109
|
+
const router = useRouter()
|
|
110
|
+
// The standalone Console provides its appearance. Without it, search has no theme actions.
|
|
111
|
+
const appearance = inject(consoleAppearanceKey, undefined)
|
|
112
|
+
// console-search.vue mounts the palette open, the first time search opens.
|
|
113
|
+
const open = defineModel<boolean>("open", { default: false })
|
|
114
|
+
const searchTerm = ref("")
|
|
115
|
+
const debouncedSearchTerm = ref("")
|
|
116
|
+
const sections = ref<ConsoleSectionId[]>([])
|
|
117
|
+
const installedNavigation = shallowRef<ConsoleNavigation>()
|
|
118
|
+
const discoveredAgentNames = ref<string[]>([])
|
|
119
|
+
const discoveredHistoricalAgentNames = ref<string[]>([])
|
|
120
|
+
const definitionItems = ref<ConsoleDefinitionSearchItem[]>([])
|
|
121
|
+
const kvItems = ref<ConsoleKVSearchItem[]>([])
|
|
122
|
+
const kvSearchTruncated = ref(false)
|
|
123
|
+
const navigationLoading = ref(true)
|
|
124
|
+
const navigationError = ref<unknown>()
|
|
125
|
+
const sessionSearchEnabled = ref(false)
|
|
126
|
+
let navigationRequest: AbortController | undefined
|
|
127
|
+
let sessionRequest: AbortController | undefined
|
|
128
|
+
let searchTimer: ReturnType<typeof setTimeout> | undefined
|
|
129
|
+
const emit = defineEmits<{ changed: []; selectPage: []; selectSession: [] }>()
|
|
130
|
+
const toast = useConsoleToast()
|
|
131
|
+
// Document actions live next to the section list, as `/_vitehub/api/documents`.
|
|
132
|
+
const documentsBase = props.sectionsBase.replace(/\/sections$/, "/documents")
|
|
133
|
+
const documentSections = ref<ConsoleDocumentSearchSection[]>([])
|
|
134
|
+
const documentResults = ref<ConsoleDocumentSearchItem[]>([])
|
|
135
|
+
const documentSearchPending = ref(false)
|
|
136
|
+
const documentSearchError = ref<unknown>()
|
|
137
|
+
const publishingAll = ref(false)
|
|
138
|
+
let documentRequest: AbortController | undefined
|
|
139
|
+
|
|
140
|
+
const agentsEnabled = computed(() => sections.value.includes("agents"));
|
|
141
|
+
const availableAgentNames = computed(() => props.agentNames ?? discoveredAgentNames.value);
|
|
142
|
+
const availableHistoricalAgentNames = computed(() =>
|
|
143
|
+
props.agentNames ? props.historicalAgentNames ?? [] : discoveredHistoricalAgentNames.value,
|
|
144
|
+
);
|
|
145
|
+
const inactiveSearchFilter: ConsoleSearchFilter = {};
|
|
146
|
+
const searchFilter = computed<ConsoleSearchFilter>(() => {
|
|
147
|
+
if (!agentsEnabled.value || !sessionSearchEnabled.value) return inactiveSearchFilter;
|
|
148
|
+
return debouncedSearchTerm.value ? { search: debouncedSearchTerm.value } : {};
|
|
149
|
+
});
|
|
150
|
+
const sessionSearch = useCollection("vitehub-console-search", {
|
|
151
|
+
filter: searchFilter,
|
|
152
|
+
immediate: false,
|
|
153
|
+
limit: 12,
|
|
154
|
+
request: async (_endpoint, options) => {
|
|
155
|
+
const controller = new AbortController()
|
|
156
|
+
sessionRequest = controller
|
|
157
|
+
const abort = () => controller.abort()
|
|
158
|
+
options.signal?.addEventListener("abort", abort, { once: true })
|
|
159
|
+
try {
|
|
160
|
+
return await requestConsole(props.searchBase, { ...options, signal: controller.signal })
|
|
161
|
+
}
|
|
162
|
+
finally {
|
|
163
|
+
options.signal?.removeEventListener("abort", abort)
|
|
164
|
+
if (sessionRequest === controller) sessionRequest = undefined
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
const sessionItems = computed<ConsoleCommand[]>(() =>
|
|
169
|
+
sessionSearch.pending.value
|
|
170
|
+
? []
|
|
171
|
+
: sessionSearch.items.value.map((item) => ({
|
|
172
|
+
description: itemDescription(item),
|
|
173
|
+
disabled: !item.agentName,
|
|
174
|
+
icon: "i-lucide-message-square-text",
|
|
175
|
+
label: item.excerpt || (item.agentName ? `${item.agentName} session` : "Agent Invocation"),
|
|
176
|
+
onSelect: () => selectSession(item),
|
|
177
|
+
})),
|
|
178
|
+
)
|
|
179
|
+
const definitionSearchItems = computed<ConsoleCommand[]>(() =>
|
|
180
|
+
definitionItems.value.map(item => ({
|
|
181
|
+
description: `${item.details.label.slice(0, -1)} · ${item.file}`,
|
|
182
|
+
icon: item.details.icon,
|
|
183
|
+
label: item.name,
|
|
184
|
+
kind: "section",
|
|
185
|
+
onSelect: () => selectDefinition(item),
|
|
186
|
+
})),
|
|
187
|
+
)
|
|
188
|
+
const kvSearchItems = computed<ConsoleCommand[]>(() =>
|
|
189
|
+
kvItems.value.map(item => ({
|
|
190
|
+
description: item.store,
|
|
191
|
+
icon: consoleSectionDetails.kv.icon,
|
|
192
|
+
kind: "section",
|
|
193
|
+
label: item.key || "(empty key)",
|
|
194
|
+
onSelect: () => selectKVKey(item),
|
|
195
|
+
})),
|
|
196
|
+
)
|
|
197
|
+
const paletteError = computed(() => navigationError.value || sessionSearch.error.value || documentSearchError.value)
|
|
198
|
+
|
|
199
|
+
function documentRoute(item: Pick<ConsoleDocumentSearchItem, "collection" | "id" | "section">) {
|
|
200
|
+
return {
|
|
201
|
+
name: resolveConsoleRouteName(route.name, consoleSectionRouteName(item.section.details.id)),
|
|
202
|
+
params: { collection: item.collection.name, document: item.id.split("/") },
|
|
203
|
+
query: {},
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** ⌘ Enter or Ctrl Enter, and ⌘-click, open the item in a new tab. */
|
|
208
|
+
function opensNewTab(event?: Event): boolean {
|
|
209
|
+
const original: unknown = event instanceof CustomEvent ? Reflect.get(Object(event.detail), "originalEvent") : event
|
|
210
|
+
return original instanceof KeyboardEvent || original instanceof MouseEvent ? original.metaKey || original.ctrlKey : false
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
async function openLocation(location: Parameters<typeof router.push>[0], event?: Event): Promise<void> {
|
|
214
|
+
open.value = false
|
|
215
|
+
if (opensNewTab(event)) {
|
|
216
|
+
window.open(router.resolve(location).href, "_blank", "noopener")
|
|
217
|
+
return
|
|
218
|
+
}
|
|
219
|
+
emit("selectPage")
|
|
220
|
+
await router.push(location)
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function documentItem(item: ConsoleDocumentSearchItem): ConsoleCommand {
|
|
224
|
+
return {
|
|
225
|
+
label: item.title,
|
|
226
|
+
suffix: `${item.collection.label} · ${item.id}`,
|
|
227
|
+
kind: "document",
|
|
228
|
+
state: item.state,
|
|
229
|
+
stateLabel: item.state ? consoleDocumentStateLabel(item.state) : undefined,
|
|
230
|
+
onSelect: (event: Event) => void openLocation(documentRoute(item), event),
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// With no query, the Content group shows recently changed documents from the overview.
|
|
235
|
+
const recentDocumentItems = computed<ConsoleDocumentSearchItem[]>(() => {
|
|
236
|
+
const seen = new Set<string>()
|
|
237
|
+
return documentSections.value.flatMap(section => (section.overview?.activity ?? []).flatMap((entry) => {
|
|
238
|
+
if (entry.action === "remove") return []
|
|
239
|
+
return entry.documents.flatMap((document) => {
|
|
240
|
+
const collection = section.collections.find(candidate => candidate.name === document.collection)
|
|
241
|
+
const key = `${section.details.id}:${document.collection}/${document.id}`
|
|
242
|
+
if (!collection || seen.has(key)) return []
|
|
243
|
+
seen.add(key)
|
|
244
|
+
const change = section.overview?.collections.find(candidate => candidate.name === document.collection)?.changes.find(candidate => candidate.id === document.id)
|
|
245
|
+
return [{ collection, id: document.id, section, state: change?.state ?? "published", title: document.title }]
|
|
246
|
+
})
|
|
247
|
+
})).slice(0, 5)
|
|
248
|
+
})
|
|
249
|
+
|
|
250
|
+
const pendingPublish = computed(() => documentSections.value.flatMap(section => (section.overview?.collections ?? []).flatMap((entry) => {
|
|
251
|
+
const collection = section.collections.find(candidate => candidate.name === entry.name)
|
|
252
|
+
return collection?.access.publish ? entry.changes.map(change => ({ change, collection, section })) : []
|
|
253
|
+
})))
|
|
254
|
+
|
|
255
|
+
async function publishAll(): Promise<void> {
|
|
256
|
+
const targets = pendingPublish.value
|
|
257
|
+
if (publishingAll.value || !targets.length) return
|
|
258
|
+
open.value = false
|
|
259
|
+
publishingAll.value = true
|
|
260
|
+
try {
|
|
261
|
+
let count = 0
|
|
262
|
+
for (const section of new Set(targets.map(entry => entry.section))) {
|
|
263
|
+
const client = createConsoleDocumentsClient(documentsBase, section.details.id)
|
|
264
|
+
count += await publishConsoleDocumentChanges(client, targets.filter(entry => entry.section === section).map(entry => ({ change: entry.change, collection: entry.collection.name })))
|
|
265
|
+
}
|
|
266
|
+
toast.show({ title: count === 1 ? "Change published" : `${count} changes published` })
|
|
267
|
+
}
|
|
268
|
+
catch (publishError) {
|
|
269
|
+
const moved = consolePublishMismatches(publishError)
|
|
270
|
+
toast.error(moved ? "A draft changed after search loaded it. Open search and publish again." : `Couldn't publish. ${consoleErrorMessage(publishError, "Try again.")}`)
|
|
271
|
+
}
|
|
272
|
+
finally {
|
|
273
|
+
publishingAll.value = false
|
|
274
|
+
emit("changed")
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const contentActions = computed<ConsoleCommand[]>(() => [
|
|
279
|
+
...documentSections.value.flatMap(section => section.collections.filter(collection => collection.access.write && collection.kind !== "singleton").map((collection): ConsoleCommand => {
|
|
280
|
+
const noun = consoleSingularLabel(collection)
|
|
281
|
+
return {
|
|
282
|
+
icon: "i-lucide-plus",
|
|
283
|
+
keywords: ["create", "add", "write", "draft", collection.name, collection.label],
|
|
284
|
+
label: `New ${noun === "Document" ? `${collection.label} document` : noun.toLowerCase()}`,
|
|
285
|
+
onSelect: (event: Event) => void openLocation({
|
|
286
|
+
name: resolveConsoleRouteName(route.name, consoleSectionRouteName(section.details.id)),
|
|
287
|
+
params: { collection: collection.name, document: [] },
|
|
288
|
+
query: { new: "1" },
|
|
289
|
+
}, event),
|
|
290
|
+
}
|
|
291
|
+
})),
|
|
292
|
+
// A nested page lists what would publish, so the reader reviews it before confirming. Backspace goes back.
|
|
293
|
+
...(pendingPublish.value.length
|
|
294
|
+
? [{
|
|
295
|
+
children: [
|
|
296
|
+
{
|
|
297
|
+
icon: "i-lucide-upload",
|
|
298
|
+
label: pendingPublish.value.length === 1 ? "Publish 1 change" : `Publish ${pendingPublish.value.length} changes`,
|
|
299
|
+
loading: publishingAll.value,
|
|
300
|
+
onSelect: () => void publishAll(),
|
|
301
|
+
},
|
|
302
|
+
...pendingPublish.value.map(({ change, collection, section }) => ({
|
|
303
|
+
label: change.title,
|
|
304
|
+
suffix: `${collection.label} · ${change.id}`,
|
|
305
|
+
kind: "document",
|
|
306
|
+
state: change.state,
|
|
307
|
+
stateLabel: consoleDocumentStateLabel(change.state),
|
|
308
|
+
onSelect: (event: Event) => void openLocation(change.state === "deleted"
|
|
309
|
+
? { name: resolveConsoleRouteName(route.name, consoleSectionRouteName(section.details.id)), params: { collection: collection.name, document: [] }, query: {} }
|
|
310
|
+
: documentRoute({ collection, id: change.id, section }), event),
|
|
311
|
+
})),
|
|
312
|
+
],
|
|
313
|
+
icon: "i-lucide-upload",
|
|
314
|
+
keywords: ["deploy", "release", "ship", "go live", "changes"],
|
|
315
|
+
label: "Publish all changes",
|
|
316
|
+
placeholder: "Review the changes, then publish…",
|
|
317
|
+
suffix: String(pendingPublish.value.length),
|
|
318
|
+
}]
|
|
319
|
+
: []),
|
|
320
|
+
])
|
|
321
|
+
|
|
322
|
+
const themeActions = computed<ConsoleCommand[]>(() => appearance
|
|
323
|
+
? [
|
|
324
|
+
{
|
|
325
|
+
icon: "i-lucide-sun-moon",
|
|
326
|
+
keywords: ["dark", "light", "mode", "appearance", "theme"],
|
|
327
|
+
label: "Toggle theme",
|
|
328
|
+
onSelect: () => {
|
|
329
|
+
const dark = appearance.preference.value === "dark" || (appearance.preference.value === "system" && window.matchMedia(consoleDarkSchemeQuery).matches)
|
|
330
|
+
appearance.select(dark ? "light" : "dark")
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
children: consoleAppearances.map(option => ({
|
|
335
|
+
active: appearance.preference.value === option,
|
|
336
|
+
icon: consoleAppearanceOptions[option].icon,
|
|
337
|
+
label: consoleAppearanceOptions[option].label,
|
|
338
|
+
onSelect: () => appearance.select(option),
|
|
339
|
+
})),
|
|
340
|
+
icon: consoleAppearanceOptions[appearance.preference.value].icon,
|
|
341
|
+
keywords: ["appearance", "system", "dark", "light"],
|
|
342
|
+
label: "Change theme…",
|
|
343
|
+
placeholder: "Choose a theme…",
|
|
344
|
+
},
|
|
345
|
+
]
|
|
346
|
+
: [])
|
|
347
|
+
|
|
348
|
+
// An `account` Console switches between the projects of the team.
|
|
349
|
+
const projects = useConsoleProjects()
|
|
350
|
+
const projectActions = computed<ConsoleCommand[]>(() => projects.mode !== "embedded"
|
|
351
|
+
? [{
|
|
352
|
+
children: [
|
|
353
|
+
...projects.projects.value.map(project => ({
|
|
354
|
+
active: project.id === projects.current.value?.id,
|
|
355
|
+
icon: project.id === projects.current.value?.id ? "i-lucide-check" : "i-lucide-box",
|
|
356
|
+
label: consoleProjectName(project),
|
|
357
|
+
suffix: consoleProjectHost(project),
|
|
358
|
+
onSelect: () => {
|
|
359
|
+
if (project.id !== projects.current.value?.id) switchConsoleProject(project.id)
|
|
360
|
+
},
|
|
361
|
+
})),
|
|
362
|
+
{ icon: "i-lucide-link", label: "Link project", onSelect: () => { projects.linkOpen.value = true } },
|
|
363
|
+
],
|
|
364
|
+
icon: "i-lucide-arrow-left-right",
|
|
365
|
+
keywords: ["project", "projects", "app", "link", "change"],
|
|
366
|
+
label: "Switch project…",
|
|
367
|
+
placeholder: "Choose a project…",
|
|
368
|
+
}]
|
|
369
|
+
: [])
|
|
370
|
+
|
|
371
|
+
// "Add a primitive" opens the dialog at its list. With a query, "Set up <Primitive>" opens it at one primitive, so
|
|
372
|
+
// search finds a primitive that the app does not use yet.
|
|
373
|
+
const addPrimitiveItems = computed<ConsoleCommand[]>(() => {
|
|
374
|
+
if (!installedNavigation.value) return []
|
|
375
|
+
const add = (choice?: ConsoleSectionId) => {
|
|
376
|
+
open.value = false
|
|
377
|
+
openConsoleAddPrimitive(choice)
|
|
378
|
+
}
|
|
379
|
+
return [
|
|
380
|
+
{ icon: "i-lucide-plus", keywords: ["add", "enable", "install", "primitive", "vitehub add"], label: "Add a primitive…", onSelect: () => add() },
|
|
381
|
+
...(searchTerm.value.trim()
|
|
382
|
+
? consoleAddablePrimitives(sections.value).map(entry => ({
|
|
383
|
+
description: entry.pitch,
|
|
384
|
+
icon: entry.icon,
|
|
385
|
+
keywords: ["add", "enable", entry.id, ...(entry.feature ? [entry.feature] : [])],
|
|
386
|
+
label: `Set up ${entry.label}`,
|
|
387
|
+
kind: "section" as const,
|
|
388
|
+
onSelect: () => add(entry.id),
|
|
389
|
+
}))
|
|
390
|
+
: []),
|
|
391
|
+
]
|
|
392
|
+
})
|
|
393
|
+
|
|
394
|
+
/** Pages and collections of the document editor sections, after their section in the Go to group. */
|
|
395
|
+
function documentSectionItems(section: ConsoleSectionId): ConsoleCommand[] {
|
|
396
|
+
const entry = documentSections.value.find(candidate => candidate.details.id === section)
|
|
397
|
+
const details = installedNavigation.value?.contributions[section]
|
|
398
|
+
if (!details) return []
|
|
399
|
+
return [
|
|
400
|
+
// The Settings page shows once the section has a singleton.
|
|
401
|
+
...(details.pages ?? []).filter(page => page.view.kind !== "document-settings" || entry?.collections.some(collection => collection.kind === "singleton")).map(page => ({
|
|
402
|
+
icon: page.icon,
|
|
403
|
+
keywords: [...pageKeywords[page.view.kind] ?? []],
|
|
404
|
+
label: page.label,
|
|
405
|
+
suffix: details.label,
|
|
406
|
+
onSelect: (event: Event) => void openLocation(page.index
|
|
407
|
+
? { name: resolveConsoleRouteName(route.name, consoleSectionRouteName(section)), params: { collection: "", document: [] }, query: {} }
|
|
408
|
+
: { name: resolveConsoleRouteName(route.name, consoleSectionPageRouteName(section, page.id)), query: {} }, event),
|
|
409
|
+
})),
|
|
410
|
+
...(entry?.collections ?? []).map(collection => ({
|
|
411
|
+
icon: collection.kind === "singleton" ? "i-lucide-settings-2" : "i-lucide-files",
|
|
412
|
+
keywords: collection.kind === "singleton" ? ["settings", "edit", collection.name, collection.path] : ["collection", "documents", collection.name],
|
|
413
|
+
label: collection.label,
|
|
414
|
+
suffix: collection.kind === "singleton" ? `${details.label} settings` : `${details.label} collection`,
|
|
415
|
+
onSelect: (event: Event) => void openLocation({
|
|
416
|
+
name: resolveConsoleRouteName(route.name, consoleSectionRouteName(section)),
|
|
417
|
+
params: { collection: collection.name, document: [] },
|
|
418
|
+
query: {},
|
|
419
|
+
}, event),
|
|
420
|
+
})),
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
const groups = computed<ConsoleCommandGroup[]>(() => [
|
|
424
|
+
...(paletteError.value
|
|
425
|
+
? [{
|
|
426
|
+
id: "error",
|
|
427
|
+
items: [{
|
|
428
|
+
description: errorMessage(paletteError.value),
|
|
429
|
+
disabled: true,
|
|
430
|
+
icon: "i-lucide-cloud-off",
|
|
431
|
+
label: "Could not load Console search",
|
|
432
|
+
}],
|
|
433
|
+
ignoreFilter: true,
|
|
434
|
+
label: "Search status",
|
|
435
|
+
}]
|
|
436
|
+
: []),
|
|
437
|
+
// With a query, document matches lead: finding a document is what search is for most often.
|
|
438
|
+
...(debouncedSearchTerm.value && documentSections.value.length
|
|
439
|
+
? [documentGroup.value]
|
|
440
|
+
: []),
|
|
441
|
+
...(props.actions?.length || contentActions.value.length || projectActions.value.length || themeActions.value.length
|
|
442
|
+
? [{ id: "actions", items: [...props.actions ?? [], ...contentActions.value, ...projectActions.value, ...themeActions.value], label: "Actions" }]
|
|
443
|
+
: []),
|
|
444
|
+
{
|
|
445
|
+
id: "go-to",
|
|
446
|
+
items: [
|
|
447
|
+
{
|
|
448
|
+
icon: "i-lucide-gauge",
|
|
449
|
+
kbds: [...consoleOverviewShortcut],
|
|
450
|
+
keywords: ["home", "sections", "start"],
|
|
451
|
+
label: "Overview",
|
|
452
|
+
onSelect: () => selectPage("vitehub-console"),
|
|
453
|
+
},
|
|
454
|
+
// Sections follow the sidebar order.
|
|
455
|
+
...groupConsoleSections(sections.value.map(id => ({ id }))).flat().flatMap(({ id: section }) => {
|
|
456
|
+
const details = resolveConsoleSectionDetails(installedNavigation.value, section)
|
|
457
|
+
const shortcut = consoleSectionShortcut(section)
|
|
458
|
+
return details
|
|
459
|
+
? [{
|
|
460
|
+
icon: details.icon,
|
|
461
|
+
...(shortcut ? { kbds: [...shortcut] } : {}),
|
|
462
|
+
label: details.label,
|
|
463
|
+
kind: "section",
|
|
464
|
+
onSelect: () => selectPage(details.routeName),
|
|
465
|
+
}, ...documentSectionItems(section)]
|
|
466
|
+
: []
|
|
467
|
+
}),
|
|
468
|
+
],
|
|
469
|
+
label: "Go to",
|
|
470
|
+
},
|
|
471
|
+
...(addPrimitiveItems.value.length
|
|
472
|
+
? [{ id: "add-primitive", items: addPrimitiveItems.value, label: "Add to this app" }]
|
|
473
|
+
: []),
|
|
474
|
+
...(!debouncedSearchTerm.value && recentDocumentItems.value.length
|
|
475
|
+
? [{ id: "documents", ignoreFilter: true, items: recentDocumentItems.value.map(documentItem), label: "Recent documents" }]
|
|
476
|
+
: []),
|
|
477
|
+
...(agentsEnabled.value && availableAgentNames.value.length
|
|
478
|
+
? [{
|
|
479
|
+
id: "agents",
|
|
480
|
+
items: availableAgentNames.value.map(name => ({
|
|
481
|
+
icon: consoleSectionDetails.agents.icon,
|
|
482
|
+
label: name,
|
|
483
|
+
kind: "section",
|
|
484
|
+
onSelect: () => selectAgent(name),
|
|
485
|
+
})),
|
|
486
|
+
label: "Agents",
|
|
487
|
+
}]
|
|
488
|
+
: []),
|
|
489
|
+
...(agentsEnabled.value && availableHistoricalAgentNames.value.length
|
|
490
|
+
? [{
|
|
491
|
+
id: "historical-agents",
|
|
492
|
+
items: availableHistoricalAgentNames.value.map(name => ({
|
|
493
|
+
icon: "i-lucide-history",
|
|
494
|
+
label: name,
|
|
495
|
+
onSelect: () => selectAgent(name),
|
|
496
|
+
})),
|
|
497
|
+
label: "Invocation history",
|
|
498
|
+
}]
|
|
499
|
+
: []),
|
|
500
|
+
...(definitionSearchItems.value.length
|
|
501
|
+
? [{ id: "definitions", items: definitionSearchItems.value, label: "Definitions" }]
|
|
502
|
+
: []),
|
|
503
|
+
...(kvSearchItems.value.length
|
|
504
|
+
? [{
|
|
505
|
+
id: "kv",
|
|
506
|
+
items: kvSearchItems.value,
|
|
507
|
+
label: "KV keys",
|
|
508
|
+
}]
|
|
509
|
+
: []),
|
|
510
|
+
...(kvSearchTruncated.value
|
|
511
|
+
? [{
|
|
512
|
+
id: "kv-status",
|
|
513
|
+
ignoreFilter: true,
|
|
514
|
+
items: [{ disabled: true, icon: "i-lucide-triangle-alert", label: "More matching keys may exist" }],
|
|
515
|
+
label: "KV status",
|
|
516
|
+
}]
|
|
517
|
+
: []),
|
|
518
|
+
...(agentsEnabled.value
|
|
519
|
+
? [
|
|
520
|
+
{
|
|
521
|
+
id: "sessions",
|
|
522
|
+
ignoreFilter: true,
|
|
523
|
+
items: sessionItems.value,
|
|
524
|
+
label: debouncedSearchTerm.value ? "Sessions" : "Recent sessions",
|
|
525
|
+
},
|
|
526
|
+
]
|
|
527
|
+
: []),
|
|
528
|
+
])
|
|
529
|
+
// Server-side matches, so the palette does not filter them again.
|
|
530
|
+
const documentGroup = computed<ConsoleCommandGroup>(() => ({
|
|
531
|
+
id: "documents",
|
|
532
|
+
ignoreFilter: true,
|
|
533
|
+
items: documentSearchPending.value && !documentResults.value.length
|
|
534
|
+
? [{ disabled: true, icon: "i-lucide-loader-circle", label: "Searching documents…" }]
|
|
535
|
+
: documentResults.value.map(documentItem),
|
|
536
|
+
label: "Content",
|
|
537
|
+
}))
|
|
538
|
+
const loading = computed(() =>
|
|
539
|
+
navigationLoading.value || documentSearchPending.value || (agentsEnabled.value && sessionSearch.pending.value),
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
function record(value: unknown): Record<string, unknown> | undefined {
|
|
543
|
+
return value instanceof Object && !Array.isArray(value)
|
|
544
|
+
? Object.fromEntries(Object.entries(value))
|
|
545
|
+
: undefined;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
function errorMessage(error: unknown): string | undefined {
|
|
549
|
+
return error instanceof Error
|
|
550
|
+
? error.message
|
|
551
|
+
: error
|
|
552
|
+
? "The console could not load this data."
|
|
553
|
+
: undefined;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// Reads like a row of the session list: `Done`, then `5m ago` within a day or a date such as `Aug 30`.
|
|
557
|
+
function itemDescription(item: ConsoleSearchItem): string {
|
|
558
|
+
const age = recentTimestamp(item.updatedAt, Date.now());
|
|
559
|
+
return [item.agentName, invocationStatusLabel(item.status), age === "now" ? "just now" : age, item.excerpt ? undefined : item.context]
|
|
560
|
+
.filter(Boolean)
|
|
561
|
+
.join(" · ");
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
function strings(value: unknown): string[] {
|
|
565
|
+
return Array.isArray(value)
|
|
566
|
+
? value.filter((item): item is string => typeof item === "string")
|
|
567
|
+
: []
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/** Loads the collections and the overview of each document editor section, for its pages, actions, and recent documents. */
|
|
571
|
+
async function loadDocumentSections(installed: ConsoleSectionId[], signal: AbortSignal): Promise<void> {
|
|
572
|
+
const sections = installed.flatMap((section) => {
|
|
573
|
+
const details = installedNavigation.value?.contributions[section]
|
|
574
|
+
return details?.view.kind === "document-editor" ? [details] : []
|
|
575
|
+
})
|
|
576
|
+
documentSections.value = await Promise.all(sections.map(async (details): Promise<ConsoleDocumentSearchSection> => {
|
|
577
|
+
const client = createConsoleDocumentsClient(documentsBase, details.id)
|
|
578
|
+
const [content, overview] = await Promise.all([
|
|
579
|
+
requestConsole(props.definitionsBase, { query: { section: details.id }, signal }).then(value => parseConsoleSectionContent(value, details.id)),
|
|
580
|
+
// Search still works when the overview fails; it only loses recent documents and Publish all changes.
|
|
581
|
+
client.overview({ activity: 10 }).catch(() => undefined),
|
|
582
|
+
])
|
|
583
|
+
const entry: ConsoleDocumentSearchSection = { collections: content?.kind === "document-editor" ? [...content.collections] : [], details }
|
|
584
|
+
if (overview) entry.overview = overview
|
|
585
|
+
return entry
|
|
586
|
+
}))
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
async function searchDocuments(term: string): Promise<void> {
|
|
590
|
+
documentRequest?.abort()
|
|
591
|
+
documentResults.value = []
|
|
592
|
+
documentSearchError.value = undefined
|
|
593
|
+
if (!term || !documentSections.value.length) {
|
|
594
|
+
documentSearchPending.value = false
|
|
595
|
+
return
|
|
596
|
+
}
|
|
597
|
+
const controller = new AbortController()
|
|
598
|
+
documentRequest = controller
|
|
599
|
+
documentSearchPending.value = true
|
|
600
|
+
try {
|
|
601
|
+
const found = await Promise.all(documentSections.value.map(async section => (await createConsoleDocumentsClient(documentsBase, section.details.id).search(term, { limit: 8, signal: controller.signal }))
|
|
602
|
+
.flatMap((result: ConsoleDocumentSearchResult) => {
|
|
603
|
+
const collection = section.collections.find(candidate => candidate.name === result.collection)
|
|
604
|
+
return collection ? [{ collection, id: result.id, section, state: result.state, title: result.title }] : []
|
|
605
|
+
})))
|
|
606
|
+
if (documentRequest !== controller) return
|
|
607
|
+
documentResults.value = found.flat()
|
|
608
|
+
}
|
|
609
|
+
catch (error) {
|
|
610
|
+
if (error instanceof Object && "name" in error && error.name === "AbortError") return
|
|
611
|
+
if (documentRequest === controller) documentSearchError.value = error
|
|
612
|
+
}
|
|
613
|
+
finally {
|
|
614
|
+
if (documentRequest === controller) {
|
|
615
|
+
documentRequest = undefined
|
|
616
|
+
documentSearchPending.value = false
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
async function loadContent(installed: ConsoleSectionId[], signal: AbortSignal): Promise<void> {
|
|
622
|
+
await loadDocumentSections(installed, signal)
|
|
623
|
+
const definitionSections = installed.flatMap((section) => {
|
|
624
|
+
const details = resolveConsoleSectionDetails(installedNavigation.value, section)
|
|
625
|
+
const catalog = section === "databases"
|
|
626
|
+
|| ["definition-catalog", "workspace-browser"].includes(installedNavigation.value?.contributions[section]?.view.kind ?? "")
|
|
627
|
+
return details && catalog ? [{ details, section }] : []
|
|
628
|
+
})
|
|
629
|
+
const catalogs = await Promise.all(definitionSections.map(async ({ details, section }) => ({
|
|
630
|
+
details,
|
|
631
|
+
section,
|
|
632
|
+
value: record(await requestConsole(props.definitionsBase, {
|
|
633
|
+
query: { section },
|
|
634
|
+
signal,
|
|
635
|
+
})),
|
|
636
|
+
})))
|
|
637
|
+
definitionItems.value = catalogs.flatMap(({ details, section, value }) =>
|
|
638
|
+
Array.isArray(value?.definitions)
|
|
639
|
+
? value.definitions.flatMap((entry) => {
|
|
640
|
+
const definition = record(entry)
|
|
641
|
+
return typeof definition?.name === "string"
|
|
642
|
+
&& typeof definition.file === "string"
|
|
643
|
+
&& typeof definition.source === "string"
|
|
644
|
+
? [{ details, file: definition.file, name: definition.name, section, source: definition.source }]
|
|
645
|
+
: []
|
|
646
|
+
})
|
|
647
|
+
: [],
|
|
648
|
+
)
|
|
649
|
+
|
|
650
|
+
if (installed.includes("kv")) {
|
|
651
|
+
const query = { limit: 50 }
|
|
652
|
+
const first = record(await requestConsole(props.kvBase, { query, signal }))
|
|
653
|
+
const firstStore = typeof first?.store === "string" ? first.store : "default"
|
|
654
|
+
const stores = strings(first?.stores)
|
|
655
|
+
const remainingStores = stores.filter(store => store !== firstStore)
|
|
656
|
+
const storesWithFirstPage = [firstStore, ...remainingStores]
|
|
657
|
+
const results = await Promise.all(storesWithFirstPage.map((store, index) =>
|
|
658
|
+
loadConsoleKVPages(props.kvBase, store, signal, index === 0 ? first : undefined, {
|
|
659
|
+
limit: query.limit,
|
|
660
|
+
maxPages: 10,
|
|
661
|
+
}),
|
|
662
|
+
))
|
|
663
|
+
kvItems.value = results.flatMap(({ pages }, index) =>
|
|
664
|
+
pages.flatMap(value => strings(value.keys).map(key => ({ key, store: storesWithFirstPage[index]! }))),
|
|
665
|
+
)
|
|
666
|
+
kvSearchTruncated.value = results.some(result => result.truncated)
|
|
667
|
+
}
|
|
668
|
+
else kvSearchTruncated.value = false
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
async function loadNavigation(discoverContent = false): Promise<void> {
|
|
672
|
+
navigationRequest?.abort()
|
|
673
|
+
const controller = new AbortController()
|
|
674
|
+
navigationRequest = controller
|
|
675
|
+
navigationLoading.value = true
|
|
676
|
+
if (discoverContent) {
|
|
677
|
+
discoveredAgentNames.value = []
|
|
678
|
+
discoveredHistoricalAgentNames.value = []
|
|
679
|
+
definitionItems.value = []
|
|
680
|
+
kvItems.value = []
|
|
681
|
+
kvSearchTruncated.value = false
|
|
682
|
+
documentSections.value = []
|
|
683
|
+
}
|
|
684
|
+
try {
|
|
685
|
+
const navigation = await loadConsoleNavigation(props.sectionsBase)
|
|
686
|
+
if (!navigation) throw viteHubErrorDiagnostics.VITE_HUB_R0106({ message: "Could not load Console navigation." })
|
|
687
|
+
const installed = navigation.sections
|
|
688
|
+
controller.signal.throwIfAborted()
|
|
689
|
+
if (navigationRequest !== controller) return
|
|
690
|
+
installedNavigation.value = navigation
|
|
691
|
+
sections.value = [...new Set(installed)]
|
|
692
|
+
|
|
693
|
+
if (discoverContent && props.agentNames === undefined && installed.includes("agents")) {
|
|
694
|
+
const agentsValue = record(await requestConsole(props.agentsBase, { signal: controller.signal }))
|
|
695
|
+
const catalog = resolveConsoleAgentCatalog(agentsValue)
|
|
696
|
+
if (navigationRequest !== controller) return;
|
|
697
|
+
discoveredAgentNames.value = catalog.agents;
|
|
698
|
+
discoveredHistoricalAgentNames.value = catalog.historicalAgents;
|
|
699
|
+
}
|
|
700
|
+
if (discoverContent) await loadContent(installed, controller.signal)
|
|
701
|
+
navigationError.value = undefined
|
|
702
|
+
}
|
|
703
|
+
catch (error) {
|
|
704
|
+
if (error instanceof Object && "name" in error && error.name === "AbortError") return
|
|
705
|
+
if (navigationRequest === controller) navigationError.value = error
|
|
706
|
+
}
|
|
707
|
+
finally {
|
|
708
|
+
if (navigationRequest === controller) {
|
|
709
|
+
navigationRequest = undefined;
|
|
710
|
+
navigationLoading.value = false;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
async function selectPage(routeName: string): Promise<void> {
|
|
716
|
+
open.value = false;
|
|
717
|
+
emit("selectPage");
|
|
718
|
+
await router.push({ name: resolveConsoleRouteName(route.name, routeName) });
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
async function selectAgent(name: string): Promise<void> {
|
|
722
|
+
open.value = false;
|
|
723
|
+
emit("selectSession");
|
|
724
|
+
await router.push({
|
|
725
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-agent"),
|
|
726
|
+
params: { agent: encodeAgentRouteParam(name) },
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
async function selectDefinition(item: ConsoleDefinitionSearchItem): Promise<void> {
|
|
731
|
+
open.value = false
|
|
732
|
+
await router.push({
|
|
733
|
+
name: resolveConsoleRouteName(route.name, item.details.routeName),
|
|
734
|
+
...(item.details.routeName === consoleSectionDetails.databases.routeName
|
|
735
|
+
? { params: { database: item.name } }
|
|
736
|
+
: { query: { definition: item.name } }),
|
|
737
|
+
})
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
async function selectKVKey(item: ConsoleKVSearchItem): Promise<void> {
|
|
741
|
+
open.value = false
|
|
742
|
+
await router.push({
|
|
743
|
+
name: resolveConsoleRouteName(route.name, consoleSectionDetails.kv.routeName),
|
|
744
|
+
query: { key: item.key, store: item.store },
|
|
745
|
+
})
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
async function selectSession(item: ConsoleSearchItem): Promise<void> {
|
|
749
|
+
if (!item.agentName) return;
|
|
750
|
+
open.value = false;
|
|
751
|
+
emit("selectSession");
|
|
752
|
+
await router.push({
|
|
753
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-invocation"),
|
|
754
|
+
params: { agent: encodeAgentRouteParam(item.agentName), invocation: item.id },
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
watch(searchTerm, (value) => {
|
|
759
|
+
if (searchTimer) clearTimeout(searchTimer)
|
|
760
|
+
searchTimer = undefined
|
|
761
|
+
if (!open.value) return
|
|
762
|
+
searchTimer = setTimeout(() => {
|
|
763
|
+
searchTimer = undefined
|
|
764
|
+
if (open.value) debouncedSearchTerm.value = value.trim()
|
|
765
|
+
if (open.value) void searchDocuments(debouncedSearchTerm.value)
|
|
766
|
+
}, 150)
|
|
767
|
+
})
|
|
768
|
+
|
|
769
|
+
watch(open, async (value) => {
|
|
770
|
+
if (!value) {
|
|
771
|
+
if (searchTimer) clearTimeout(searchTimer)
|
|
772
|
+
searchTimer = undefined
|
|
773
|
+
navigationRequest?.abort()
|
|
774
|
+
sessionRequest?.abort()
|
|
775
|
+
documentRequest?.abort()
|
|
776
|
+
return
|
|
777
|
+
}
|
|
778
|
+
await loadNavigation(true);
|
|
779
|
+
if (open.value && debouncedSearchTerm.value) void searchDocuments(debouncedSearchTerm.value)
|
|
780
|
+
if (!open.value) return
|
|
781
|
+
if (!agentsEnabled.value) return;
|
|
782
|
+
const nextSearchTerm = searchTerm.value.trim()
|
|
783
|
+
const searchChanged = debouncedSearchTerm.value !== nextSearchTerm
|
|
784
|
+
debouncedSearchTerm.value = nextSearchTerm
|
|
785
|
+
if (!sessionSearchEnabled.value) sessionSearchEnabled.value = true
|
|
786
|
+
else if (!searchChanged) await sessionSearch.refresh()
|
|
787
|
+
}, { immediate: true });
|
|
788
|
+
|
|
789
|
+
// The palette filters with the ranking of the Nuxt UI palette it replaced: 100 ms after typing stops, at most 12 matches.
|
|
790
|
+
const filterTerm = ref(searchTerm.value)
|
|
791
|
+
let filterTimer: ReturnType<typeof setTimeout> | undefined
|
|
792
|
+
watch(searchTerm, (value) => {
|
|
793
|
+
if (filterTimer) clearTimeout(filterTimer)
|
|
794
|
+
filterTimer = setTimeout(() => {
|
|
795
|
+
filterTimer = undefined
|
|
796
|
+
filterTerm.value = value
|
|
797
|
+
}, 100)
|
|
798
|
+
})
|
|
799
|
+
|
|
800
|
+
const command = createCommandController()
|
|
801
|
+
// The stack of nested pages, by the value of the command that opened each one. Closing search drops it.
|
|
802
|
+
const pages = ref<string[]>([])
|
|
803
|
+
// An element inside the dialog: the ⌘K shortcut that closes search belongs to the dialog through it.
|
|
804
|
+
const inputRow = useTemplateRef<HTMLElement>("inputRow")
|
|
805
|
+
|
|
806
|
+
/** Gives each command a value that stays the same while the query filters it, and finds a command by its value. */
|
|
807
|
+
const commandValues = computed(() => {
|
|
808
|
+
const values = new Map<ConsoleCommand, string>()
|
|
809
|
+
const commands = new Map<string, ConsoleCommand>()
|
|
810
|
+
const add = (item: ConsoleCommand, value: string) => {
|
|
811
|
+
values.set(item, value)
|
|
812
|
+
commands.set(value, item)
|
|
813
|
+
item.children?.forEach((child, index) => add(child, `${value}/${index}`))
|
|
814
|
+
}
|
|
815
|
+
for (const group of groups.value) group.items.forEach((item, index) => add(item, `${group.id}:${index}`))
|
|
816
|
+
return { commands, values }
|
|
817
|
+
})
|
|
818
|
+
const valueOf = (item: ConsoleCommand) => commandValues.value.values.get(item) ?? item.label
|
|
819
|
+
const currentPage = computed(() => {
|
|
820
|
+
const value = pages.value.at(-1)
|
|
821
|
+
return value === undefined ? undefined : commandValues.value.commands.get(value)
|
|
822
|
+
})
|
|
823
|
+
const shownGroups = computed<ConsoleCommandGroup[]>(() => {
|
|
824
|
+
const page = currentPage.value
|
|
825
|
+
const source = page ? [{ id: valueOf(page), items: page.children ?? [], label: page.label }] : groups.value
|
|
826
|
+
return filterConsoleCommandGroups(source, filterTerm.value, { keywords: true, preserveGroupOrder: true, tokens: true })
|
|
827
|
+
})
|
|
828
|
+
const shownCommands = computed(() => shownGroups.value.flatMap(group => group.items))
|
|
829
|
+
const placeholder = computed(() => currentPage.value?.placeholder ?? "Search the Console…")
|
|
830
|
+
|
|
831
|
+
// New results highlight their first command, as the palette did before, so Enter runs the best match.
|
|
832
|
+
watch(shownGroups, () => {
|
|
833
|
+
void nextTick(() => {
|
|
834
|
+
const first = shownCommands.value.find(item => !item.disabled)
|
|
835
|
+
if (first) command.setValue(valueOf(first))
|
|
836
|
+
})
|
|
837
|
+
})
|
|
838
|
+
|
|
839
|
+
/** Runs a command with the click or key press, so ⌘-click opens a page in a new tab, then closes search. */
|
|
840
|
+
function runCommand(value: string, details: CommandActionDetails): void {
|
|
841
|
+
const item = commandValues.value.commands.get(value)
|
|
842
|
+
if (!item || item.disabled || item.children?.length) return
|
|
843
|
+
item.onSelect?.(details.event)
|
|
844
|
+
open.value = false
|
|
845
|
+
searchTerm.value = ""
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
// Escape closes search at once, with or without a query, as before. Leaving a page clears the query and does not
|
|
849
|
+
// bring back the one typed on the page before.
|
|
850
|
+
function onQueryChange(_query: string, details: { reason: CommandQueryChangeReason, cancel: () => void }): void {
|
|
851
|
+
if (details.reason === "escape-key") {
|
|
852
|
+
details.cancel()
|
|
853
|
+
open.value = false
|
|
854
|
+
}
|
|
855
|
+
else if (details.reason === "back") details.cancel()
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function onPagesChange(_pages: string[], details: { reason: CommandPagesChangeReason, cancel: () => void }): void {
|
|
859
|
+
if (details.reason !== "escape-key") return
|
|
860
|
+
details.cancel()
|
|
861
|
+
open.value = false
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
function back(): void {
|
|
865
|
+
command.pop()
|
|
866
|
+
command.setQuery("")
|
|
867
|
+
command.focus()
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
// Home and End move the highlight to the first and the last command, as in the palette before.
|
|
871
|
+
function onInputKeydown(event: KeyboardEvent): void {
|
|
872
|
+
if ((event.key !== "Home" && event.key !== "End") || event.shiftKey || event.metaKey || event.ctrlKey || event.altKey) return
|
|
873
|
+
const enabled = shownCommands.value.filter(item => !item.disabled)
|
|
874
|
+
const target = event.key === "Home" ? enabled[0] : enabled.at(-1)
|
|
875
|
+
if (!target) return
|
|
876
|
+
event.preventDefault()
|
|
877
|
+
command.setValue(valueOf(target))
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
// The page shortcut of console-search.vue opens search. While search is open, ⌘K or Ctrl K closes it.
|
|
881
|
+
useShortcut("mod+k", () => { open.value = false }, () => ({ allowInInput: true, layer: inputRow.value }))
|
|
882
|
+
|
|
883
|
+
// Focus goes back to where it was when search opened, such as the Search row.
|
|
884
|
+
let returnFocus: Element | null = null
|
|
885
|
+
watch(open, (value) => {
|
|
886
|
+
if (value) returnFocus = "document" in globalThis ? document.activeElement : null
|
|
887
|
+
else pages.value = []
|
|
888
|
+
}, { flush: "sync", immediate: true })
|
|
889
|
+
const finalFocus = () => (returnFocus instanceof HTMLElement && returnFocus.isConnected ? returnFocus : undefined)
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* The command list runs Enter without its modifiers, so ⌘ Enter and Ctrl Enter click the highlighted command with that
|
|
893
|
+
* modifier. The command then opens its page in a new tab.
|
|
894
|
+
*/
|
|
895
|
+
function openHighlightedInNewTab(event: KeyboardEvent): void {
|
|
896
|
+
if (!open.value || event.key !== "Enter" || !(event.metaKey || event.ctrlKey) || event.isComposing) return
|
|
897
|
+
const highlighted = inputRow.value?.closest('[data-slot="command"]')?.querySelector('[role="option"][data-highlighted]')
|
|
898
|
+
if (!(highlighted instanceof HTMLElement)) return
|
|
899
|
+
event.preventDefault()
|
|
900
|
+
event.stopPropagation()
|
|
901
|
+
highlighted.dispatchEvent(new MouseEvent("click", { bubbles: true, cancelable: true, ctrlKey: event.ctrlKey, metaKey: event.metaKey }))
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// The keys of the rows and the footer, drawn like Nuxt UI's Kbd in the palette before.
|
|
905
|
+
const kbdClass = "inline-flex items-center justify-center rounded-sm border-0 bg-default px-1 py-0 font-sans text-xs font-medium text-default uppercase ring ring-inset ring-accented"
|
|
906
|
+
const footerKbdClass = [kbdClass, "h-4 min-w-[16px]"]
|
|
907
|
+
const { text: modKey } = useShortcutHint("mod")
|
|
908
|
+
|
|
909
|
+
// Server rendering and component tests mount search without a window.
|
|
910
|
+
const browserWindow = (): Window | undefined => ("window" in globalThis ? window : undefined)
|
|
911
|
+
|
|
912
|
+
onMounted(() => {
|
|
913
|
+
browserWindow()?.addEventListener("keydown", openHighlightedInNewTab, true)
|
|
914
|
+
});
|
|
915
|
+
|
|
916
|
+
onBeforeUnmount(() => {
|
|
917
|
+
browserWindow()?.removeEventListener("keydown", openHighlightedInNewTab, true);
|
|
918
|
+
navigationRequest?.abort();
|
|
919
|
+
sessionRequest?.abort();
|
|
920
|
+
documentRequest?.abort();
|
|
921
|
+
if (searchTimer) clearTimeout(searchTimer);
|
|
922
|
+
if (filterTimer) clearTimeout(filterTimer);
|
|
923
|
+
});
|
|
924
|
+
</script>
|
|
925
|
+
|
|
926
|
+
<template>
|
|
927
|
+
<!-- A ui-sdk scope root. The dialog renders here, in the top layer, so the kit styles reach it. -->
|
|
928
|
+
<div class="ui-sdk contents">
|
|
929
|
+
<Dialog v-model:open="open">
|
|
930
|
+
<DialogBackdrop class="fixed inset-0 bg-black/40 transition-opacity duration-200 ease-out data-starting-style:opacity-0 data-ending-style:opacity-0 dark:bg-black/60" />
|
|
931
|
+
<DialogContent
|
|
932
|
+
:final-focus="finalFocus"
|
|
933
|
+
initial-focus="input"
|
|
934
|
+
class="fixed top-1/2 left-1/2 m-0 flex h-full max-h-[calc(100dvh-2rem)] w-[calc(100vw-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-hidden rounded-xl border-0 bg-default p-0 text-sm/6 text-default shadow-(--vh-shadow-dialog) transition-[opacity,scale] duration-200 ease-out data-starting-style:scale-95 data-starting-style:opacity-0 data-ending-style:scale-95 data-ending-style:opacity-0 sm:h-[28rem] sm:max-h-[calc(100dvh-4rem)] sm:max-w-3xl"
|
|
935
|
+
>
|
|
936
|
+
<DialogTitle class="sr-only">Search console</DialogTitle>
|
|
937
|
+
<DialogDescription class="sr-only">Run actions and search pages, documents, Agents, definitions, KV keys, and sessions.</DialogDescription>
|
|
938
|
+
<Command
|
|
939
|
+
v-model:query="searchTerm"
|
|
940
|
+
v-model:pages="pages"
|
|
941
|
+
:controller="command"
|
|
942
|
+
:filter="false"
|
|
943
|
+
:loop="false"
|
|
944
|
+
class="flex min-h-0 w-auto max-w-none flex-1 flex-col divide-y divide-default rounded-none border-0 bg-transparent text-sm"
|
|
945
|
+
:on-action="runCommand"
|
|
946
|
+
@query-change="onQueryChange"
|
|
947
|
+
@pages-change="onPagesChange"
|
|
948
|
+
>
|
|
949
|
+
<div ref="inputRow" class="relative m-0 inline-flex items-center p-0">
|
|
950
|
+
<span class="absolute inset-y-0 start-0 flex items-center ps-2.5">
|
|
951
|
+
<button v-if="pages.length" type="button" aria-label="Back" class="inline-flex items-center rounded-md p-0 text-xs text-muted hover:text-default" @click="back">
|
|
952
|
+
<Icon name="i-lucide-arrow-left" class="size-4 shrink-0 opacity-80" />
|
|
953
|
+
</button>
|
|
954
|
+
<Icon v-else-if="loading" name="i-lucide-loader-circle" class="size-4 shrink-0 animate-spin text-dimmed opacity-80" />
|
|
955
|
+
<Icon v-else name="i-lucide-search" class="size-4 shrink-0 text-dimmed opacity-80" />
|
|
956
|
+
</span>
|
|
957
|
+
<CommandInput
|
|
958
|
+
aria-label="Search the Console"
|
|
959
|
+
:placeholder="placeholder"
|
|
960
|
+
autocomplete="off"
|
|
961
|
+
class="h-12 w-full appearance-none rounded-md border-0 bg-transparent px-2.5 py-1.5 ps-8 pe-8 text-sm/4 text-highlighted placeholder:text-dimmed pointer-coarse:text-base"
|
|
962
|
+
@keydown="onInputKeydown"
|
|
963
|
+
/>
|
|
964
|
+
<span class="absolute inset-y-0 end-0 flex items-center pe-2.5">
|
|
965
|
+
<DialogClose aria-label="Close" class="inline-flex h-auto items-center gap-1.5 rounded-md border-0 bg-transparent p-1.5 text-xs font-medium text-default transition-[color,background-color,box-shadow,transform] duration-150 ease-out hover:bg-elevated active:bg-elevated motion-safe:active:scale-[.97] motion-reduce:transition-none">
|
|
966
|
+
<Icon name="i-lucide-x" class="size-4 shrink-0 opacity-80" />
|
|
967
|
+
</DialogClose>
|
|
968
|
+
</span>
|
|
969
|
+
</div>
|
|
970
|
+
<div class="relative flex flex-1 flex-col overflow-hidden">
|
|
971
|
+
<CommandList v-show="shownGroups.length" aria-label="Results" class="relative max-h-none flex-1 scroll-py-1 divide-y divide-default overflow-y-auto p-0">
|
|
972
|
+
<CommandPage :key="pages.at(-1) ?? ''" :value="pages.at(-1)">
|
|
973
|
+
<CommandGroup v-for="group in shownGroups" :key="group.id" class="isolate p-1">
|
|
974
|
+
<CommandGroupLabel class="p-1.5 text-xs font-semibold text-highlighted">{{ group.label }}</CommandGroupLabel>
|
|
975
|
+
<CommandItem
|
|
976
|
+
v-for="item in group.items"
|
|
977
|
+
:key="valueOf(item)"
|
|
978
|
+
:value="valueOf(item)"
|
|
979
|
+
:label="item.label"
|
|
980
|
+
:disabled="item.disabled"
|
|
981
|
+
:page="item.children?.length ? valueOf(item) : undefined"
|
|
982
|
+
class="group relative isolate flex min-h-0 w-full items-start gap-1.5 rounded-none bg-transparent p-1.5 text-sm outline-none select-none before:absolute before:inset-px before:z-[-1] before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 data-highlighted:bg-transparent"
|
|
983
|
+
:class="item.active ? 'text-highlighted before:bg-elevated' : 'text-default transition-colors before:transition-colors data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50'"
|
|
984
|
+
>
|
|
985
|
+
<!-- Documents lead with their state dot, as in the Content list. The label next to it is for screen readers. -->
|
|
986
|
+
<span v-if="item.kind === 'document'" class="flex size-5 shrink-0 items-center justify-center">
|
|
987
|
+
<Status :tone="consoleDocumentStateColor(item.state ?? 'draft')" />
|
|
988
|
+
<span v-if="item.stateLabel" class="sr-only">{{ item.stateLabel }}</span>
|
|
989
|
+
</span>
|
|
990
|
+
<Icon v-else-if="item.loading" name="i-lucide-loader-circle" class="size-4 shrink-0 animate-spin text-dimmed" />
|
|
991
|
+
<!-- Section commands show the same section icon as the rail and the Overview. -->
|
|
992
|
+
<ConsoleSectionIcon v-else-if="item.kind === 'section' && item.icon" :icon="item.icon" class="size-4 shrink-0" />
|
|
993
|
+
<Icon v-else-if="item.icon" :name="item.icon" class="size-4 shrink-0 transition-colors" :class="item.active ? 'text-default' : 'text-dimmed group-data-highlighted:not-group-data-disabled:text-default'" />
|
|
994
|
+
<span class="flex min-w-0 flex-1 flex-col text-start">
|
|
995
|
+
<span class="truncate space-x-1 text-dimmed">
|
|
996
|
+
<span class="text-highlighted">{{ item.label }}</span>
|
|
997
|
+
<span v-if="item.suffix" class="text-dimmed">{{ item.suffix }}</span>
|
|
998
|
+
</span>
|
|
999
|
+
<span v-if="item.description" class="truncate text-muted">{{ item.description }}</span>
|
|
1000
|
+
</span>
|
|
1001
|
+
<span class="ms-auto inline-flex items-center gap-1.5">
|
|
1002
|
+
<Icon v-if="item.children?.length" name="i-lucide-chevron-right" class="size-5 shrink-0" />
|
|
1003
|
+
<span v-else-if="item.kbds?.length" class="hidden shrink-0 items-center gap-0.5 lg:inline-flex">
|
|
1004
|
+
<kbd v-for="key in item.kbds" :key="key" :class="[kbdClass, 'h-5 min-w-[20px]']">{{ key }}</kbd>
|
|
1005
|
+
</span>
|
|
1006
|
+
</span>
|
|
1007
|
+
</CommandItem>
|
|
1008
|
+
</CommandGroup>
|
|
1009
|
+
</CommandPage>
|
|
1010
|
+
</CommandList>
|
|
1011
|
+
<div v-if="!shownGroups.length" data-slot="vh-empty" data-size="sm" role="status" class="py-10">
|
|
1012
|
+
<span data-slot="vh-empty-icon"><Icon name="i-lucide-search-x" aria-hidden="true" /></span>
|
|
1013
|
+
<h2 data-slot="vh-empty-title">No matches</h2>
|
|
1014
|
+
<p data-slot="vh-empty-description">{{ searchTerm.trim() ? "Try a page, document, Agent, definition, key, or session." : "No Console results are available yet." }}</p>
|
|
1015
|
+
</div>
|
|
1016
|
+
</div>
|
|
1017
|
+
<div class="vitehub-console__search-footer px-3 py-2">
|
|
1018
|
+
<span><kbd :class="footerKbdClass">↑</kbd><kbd :class="footerKbdClass">↓</kbd> Navigate</span>
|
|
1019
|
+
<span><kbd :class="footerKbdClass">↵</kbd> Select</span>
|
|
1020
|
+
<span><kbd :class="footerKbdClass">{{ modKey }}</kbd><kbd :class="footerKbdClass">↵</kbd> New tab</span>
|
|
1021
|
+
<span><kbd :class="footerKbdClass">⌫</kbd> Back</span>
|
|
1022
|
+
<span><kbd :class="footerKbdClass">Esc</kbd> Close</span>
|
|
1023
|
+
<span class="vitehub-console__search-footer-end"><kbd :class="footerKbdClass">g</kbd> then a key to go to a page</span>
|
|
1024
|
+
</div>
|
|
1025
|
+
</Command>
|
|
1026
|
+
</DialogContent>
|
|
1027
|
+
</Dialog>
|
|
1028
|
+
</div>
|
|
1029
|
+
</template>
|
|
1030
|
+
|
|
1031
|
+
<style>
|
|
1032
|
+
.vitehub-console__search-footer {
|
|
1033
|
+
align-items: center;
|
|
1034
|
+
color: var(--ui-text-dimmed);
|
|
1035
|
+
display: flex;
|
|
1036
|
+
flex-wrap: wrap;
|
|
1037
|
+
font-size: 0.75rem;
|
|
1038
|
+
gap: 1rem;
|
|
1039
|
+
width: 100%;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.vitehub-console__search-footer > span {
|
|
1043
|
+
align-items: center;
|
|
1044
|
+
display: inline-flex;
|
|
1045
|
+
gap: 0.25rem;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.vitehub-console__search-footer-end {
|
|
1049
|
+
margin-inline-start: auto;
|
|
1050
|
+
}
|
|
1051
|
+
</style>
|