vite-hub 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +178 -26
- package/dist/_internal/agent/eve.d.ts +1 -0
- package/dist/_internal/agent/eve.js +2 -0
- package/dist/_internal/agent/invocations.d.ts +2 -0
- package/dist/_internal/agent/invocations.js +88 -0
- package/dist/_internal/agent/operations.d.ts +1 -0
- package/dist/_internal/agent/operations.js +2 -0
- package/dist/_internal/agent/runtime/invocations-dev.d.ts +1 -0
- package/dist/_internal/agent/runtime/invocations-dev.js +2 -0
- package/dist/_internal/agent/runtime/process.d.ts +1 -0
- package/dist/_internal/agent/runtime/process.js +2 -0
- package/dist/_internal/agent/server/registry.d.ts +1 -0
- package/dist/_internal/agent/server/registry.js +2 -0
- package/dist/_internal/auth/runtime/console.d.ts +1 -0
- package/dist/_internal/auth/runtime/console.js +2 -0
- package/dist/_internal/blob/operations.d.ts +1 -0
- package/dist/_internal/blob/operations.js +2 -0
- package/dist/_internal/comments/operations.d.ts +1 -0
- package/dist/_internal/comments/operations.js +2 -0
- package/dist/_internal/comments/runtime/console.d.ts +1 -0
- package/dist/_internal/comments/runtime/console.js +2 -0
- package/dist/_internal/content/operations.d.ts +1 -0
- package/dist/_internal/content/operations.js +2 -0
- package/dist/_internal/content/runtime/console.d.ts +1 -0
- package/dist/_internal/content/runtime/console.js +2 -0
- package/dist/_internal/database/runtime/state.d.ts +5 -0
- package/dist/_internal/database/runtime/state.js +7 -0
- package/dist/_internal/email/operations.d.ts +1 -0
- package/dist/_internal/email/operations.js +2 -0
- package/dist/_internal/email/runtime/console.d.ts +1 -0
- package/dist/_internal/email/runtime/console.js +2 -0
- package/dist/_internal/kv/operations.d.ts +1 -0
- package/dist/_internal/kv/operations.js +2 -0
- package/dist/_internal/kv/runtime/disabled-upstash.d.ts +2 -3
- package/dist/_internal/kv/runtime/disabled-upstash.js +2 -1
- package/dist/_internal/queue/operations.d.ts +1 -0
- package/dist/_internal/queue/operations.js +2 -0
- package/dist/_internal/rate-limit/operations.d.ts +1 -0
- package/dist/_internal/rate-limit/operations.js +2 -0
- package/dist/_internal/sandbox/task/runtime/state.d.ts +1 -0
- package/dist/_internal/sandbox/task/runtime/state.js +2 -0
- package/dist/_internal/schedule/operations.d.ts +1 -0
- package/dist/_internal/schedule/operations.js +2 -0
- package/dist/_internal/schedule/runtime/kv.d.ts +1 -0
- package/dist/_internal/schedule/runtime/kv.js +2 -0
- package/dist/_internal/task/operations.d.ts +5 -0
- package/dist/_internal/task/operations.js +2 -0
- package/dist/_internal/workflow/operations.d.ts +1 -0
- package/dist/_internal/workflow/operations.js +2 -0
- package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +1 -0
- package/dist/_internal/workflow/runtime/cloudflare-runner.js +2 -0
- package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +1 -0
- package/dist/_internal/workflow/runtime/cloudflare-vite.js +2 -0
- package/dist/_internal/workflow/runtime/vercel-vite.d.ts +1 -0
- package/dist/_internal/workflow/runtime/vercel-vite.js +2 -0
- package/dist/_internal/workspace/operations.d.ts +1 -0
- package/dist/_internal/workspace/operations.js +2 -0
- package/dist/access-BhTe9yuV.js +516 -0
- package/dist/access-CBqnsYdj.d.ts +130 -0
- package/dist/agent/capabilities.d.ts +24 -1
- package/dist/agent/capabilities.js +56 -1
- package/dist/agent/invocations/d1.d.ts +1 -0
- package/dist/agent/invocations/d1.js +2 -0
- package/dist/agent/invocations/database.d.ts +2 -0
- package/dist/agent/invocations/database.js +91 -0
- package/dist/agent/invocations/sqlite.d.ts +1 -0
- package/dist/agent/invocations/sqlite.js +2 -0
- package/dist/agent/mcp.d.ts +1 -0
- package/dist/agent/mcp.js +2 -0
- package/dist/agent/observability.d.ts +1 -0
- package/dist/agent/observability.js +2 -0
- package/dist/agent/process-host.d.ts +1 -0
- package/dist/agent/process-host.js +2 -0
- package/dist/agent/runtime/process.d.ts +1 -0
- package/dist/agent/runtime/process.js +2 -0
- package/dist/agent/server/github.d.ts +1 -0
- package/dist/agent/server/github.js +2 -0
- package/dist/agent/vite.d.ts +1 -0
- package/dist/agent/vite.js +2 -0
- package/dist/agent/vue.d.ts +1 -0
- package/dist/agent/vue.js +2 -0
- package/dist/agent-invocations.post-CFKMEy-h.js +432 -0
- package/dist/agent.d.ts +12 -1
- package/dist/agent.js +49 -1
- package/dist/agents-BNmuN4Qa.d.ts +99 -0
- package/dist/agents-CVehuMFA.js +118 -0
- package/dist/auth/console-runtime.d.ts +1 -0
- package/dist/auth/console-runtime.js +2 -0
- package/dist/auth/console.d.ts +1 -0
- package/dist/auth/console.js +2 -0
- package/dist/auth/presets.d.ts +1 -0
- package/dist/auth/presets.js +2 -0
- package/dist/auth/vue.d.ts +1 -0
- package/dist/auth/vue.js +2 -0
- package/dist/auth-BSSM-qh0.js +700 -0
- package/dist/auth-CG8tmgH7.d.ts +106 -0
- package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +50 -0
- package/dist/auth-inline-config--vlclzm3.js +18 -0
- package/dist/auth-inline-config-R6q_4Iwo.d.ts +30 -0
- package/dist/auth-path-B7Ssonj-.js +49 -0
- package/dist/bin.d.ts +1 -1
- package/dist/bin.js +346 -7
- package/dist/blob/client.d.ts +1 -0
- package/dist/blob/client.js +2 -0
- package/dist/blob/media.d.ts +1 -0
- package/dist/blob/media.js +2 -0
- package/dist/blob/vue.d.ts +1 -0
- package/dist/blob/vue.js +2 -0
- package/dist/blob-D9v5Djxw.d.ts +7 -0
- package/dist/browser/actions.d.ts +1 -0
- package/dist/browser/actions.js +2 -0
- package/dist/channels/server.d.ts +1 -0
- package/dist/channels/server.js +2 -0
- package/dist/channels.d.ts +1 -0
- package/dist/channels.js +2 -0
- package/dist/cloudflare-env-CIZCKabz.js +70 -0
- package/dist/cloudflare-prerender.mjs +24 -0
- package/dist/cloudflare-types.d.ts +1 -0
- package/dist/comments/anchor.d.ts +1 -0
- package/dist/comments/anchor.js +2 -0
- package/dist/comments/client.d.ts +1 -0
- package/dist/comments/client.js +2 -0
- package/dist/comments/database/postgres.d.ts +1 -0
- package/dist/comments/database/postgres.js +2 -0
- package/dist/comments/database.d.ts +1 -0
- package/dist/comments/database.js +2 -0
- package/dist/comments/realtime.d.ts +1 -0
- package/dist/comments/realtime.js +2 -0
- package/dist/comments/rpc.d.ts +1 -0
- package/dist/comments/rpc.js +2 -0
- package/dist/comments/runtime/auth.d.ts +1 -0
- package/dist/comments/runtime/auth.js +2 -0
- package/dist/comments/runtime.d.ts +1 -0
- package/dist/comments/runtime.js +2 -0
- package/dist/comments/server.d.ts +1 -0
- package/dist/comments/server.js +2 -0
- package/dist/comments-overlay/loader.BcGn0Hsk.js +1 -0
- package/dist/comments-overlay/overlay.D7vmaSrE.js +2 -0
- package/dist/comments.d.ts +1 -0
- package/dist/comments.js +2 -0
- package/dist/connections/agent.d.ts +1 -0
- package/dist/connections/agent.js +2 -0
- package/dist/connections/chatgpt.d.ts +1 -0
- package/dist/connections/chatgpt.js +2 -0
- package/dist/connections/google.d.ts +1 -0
- package/dist/connections/google.js +2 -0
- package/dist/connections/http.d.ts +1 -0
- package/dist/connections/http.js +2 -0
- package/dist/connections/server.d.ts +1 -0
- package/dist/connections/server.js +2 -0
- package/dist/connections.d.ts +1 -0
- package/dist/connections.js +2 -0
- package/dist/console/auth-client.d.ts +8 -0
- package/dist/console/auth-client.js +6 -0
- package/dist/console/auth-cloudflare-access.d.ts +2 -0
- package/dist/console/auth-cloudflare-access.js +116 -0
- package/dist/console/auth-inline.d.ts +6 -0
- package/dist/console/auth-inline.js +107 -0
- package/dist/console/auth.d.ts +2 -0
- package/dist/console/auth.js +2 -0
- package/dist/console/runtime/client/appearance.d.ts +62 -0
- package/dist/console/runtime/client/appearance.js +87 -0
- package/dist/console/runtime/client/auth-management.ts +81 -0
- package/dist/console/runtime/client/blob-media.d.ts +46 -0
- package/dist/console/runtime/client/blob-media.js +257 -0
- package/dist/console/runtime/client/build.d.ts +14 -0
- package/dist/console/runtime/client/build.js +68 -0
- package/dist/console/runtime/client/connections-management.d.ts +68 -0
- package/dist/console/runtime/client/connections-management.js +201 -0
- package/dist/console/runtime/client/documents.d.ts +430 -0
- package/dist/console/runtime/client/documents.js +501 -0
- package/dist/console/runtime/client/editor.d.ts +82 -0
- package/dist/console/runtime/client/editor.js +248 -0
- package/dist/console/runtime/client/env-groups.d.ts +28 -0
- package/dist/console/runtime/client/env-groups.js +39 -0
- package/dist/console/runtime/client/env-management.d.ts +20 -0
- package/dist/console/runtime/client/env-management.js +84 -0
- package/dist/console/runtime/client/env-status.d.ts +6 -0
- package/dist/console/runtime/client/env-status.js +10 -0
- package/dist/console/runtime/client/format.d.ts +32 -0
- package/dist/console/runtime/client/format.js +109 -0
- package/dist/console/runtime/client/invocation-deletion.d.ts +17 -0
- package/dist/console/runtime/client/invocation-deletion.js +25 -0
- package/dist/console/runtime/client/invocation.d.ts +28 -0
- package/dist/console/runtime/client/invocation.js +81 -0
- package/dist/console/runtime/client/live.d.ts +69 -0
- package/dist/console/runtime/client/live.js +165 -0
- package/dist/console/runtime/client/mcp.d.ts +9 -0
- package/dist/console/runtime/client/mcp.js +14 -0
- package/dist/console/runtime/client/media-library.d.ts +207 -0
- package/dist/console/runtime/client/media-library.js +243 -0
- package/dist/console/runtime/client/media-uploads.d.ts +33 -0
- package/dist/console/runtime/client/media-uploads.js +97 -0
- package/dist/console/runtime/client/media.d.ts +73 -0
- package/dist/console/runtime/client/media.js +13 -0
- package/dist/console/runtime/client/operation-view.d.ts +17 -0
- package/dist/console/runtime/client/operation-view.js +85 -0
- package/dist/console/runtime/client/presence.d.ts +102 -0
- package/dist/console/runtime/client/presence.js +269 -0
- package/dist/console/runtime/client/preview.d.ts +78 -0
- package/dist/console/runtime/client/preview.js +115 -0
- package/dist/console/runtime/client/problem.d.ts +19 -0
- package/dist/console/runtime/client/problem.js +59 -0
- package/dist/console/runtime/client/publish.d.ts +12 -0
- package/dist/console/runtime/client/publish.js +18 -0
- package/dist/console/runtime/client/rate-limit.d.ts +36 -0
- package/dist/console/runtime/client/rate-limit.js +96 -0
- package/dist/console/runtime/client/read-only.d.ts +9 -0
- package/dist/console/runtime/client/read-only.js +12 -0
- package/dist/console/runtime/client/request.d.ts +76 -0
- package/dist/console/runtime/client/request.js +471 -0
- package/dist/console/runtime/client/schedule-run.d.ts +13 -0
- package/dist/console/runtime/client/schedule-run.js +47 -0
- package/dist/console/runtime/client/schema-form.d.ts +2 -0
- package/dist/console/runtime/client/schema-form.js +296 -0
- package/dist/console/runtime/client/sections.d.ts +26 -0
- package/dist/console/runtime/client/sections.js +84 -0
- package/dist/console/runtime/client/sign-in.d.ts +21 -0
- package/dist/console/runtime/client/sign-in.js +16 -0
- package/dist/console/runtime/client/time.d.ts +30 -0
- package/dist/console/runtime/client/time.js +106 -0
- package/dist/console/runtime/client/toast.d.ts +39 -0
- package/dist/console/runtime/client/toast.js +35 -0
- package/dist/console/runtime/client/workflow.d.ts +20 -0
- package/dist/console/runtime/client/workflow.js +79 -0
- package/dist/console/runtime/components/console-agent-list.ts +61 -0
- package/dist/console/runtime/components/console-app.vue +1755 -0
- package/dist/console/runtime/components/console-auth-action.vue +239 -0
- package/dist/console/runtime/components/console-auth-activity.vue +166 -0
- package/dist/console/runtime/components/console-auth-chart.vue +102 -0
- package/dist/console/runtime/components/console-auth-detail.vue +406 -0
- package/dist/console/runtime/components/console-auth-event-list.vue +79 -0
- package/dist/console/runtime/components/console-auth-event-setup.vue +39 -0
- package/dist/console/runtime/components/console-auth-overview.vue +107 -0
- package/dist/console/runtime/components/console-auth-user-events.vue +65 -0
- package/dist/console/runtime/components/console-auth.vue +649 -0
- package/dist/console/runtime/components/console-blob-detail.vue +93 -0
- package/dist/console/runtime/components/console-blob.vue +146 -0
- package/dist/console/runtime/components/console-comark-component.vue +108 -0
- package/dist/console/runtime/components/console-connect-agent.vue +59 -0
- package/dist/console/runtime/components/console-connection-state.vue +43 -0
- package/dist/console/runtime/components/console-connection.ts +18 -0
- package/dist/console/runtime/components/console-connections-activity.vue +76 -0
- package/dist/console/runtime/components/console-connections-approvals.vue +169 -0
- package/dist/console/runtime/components/console-connections-details.vue +295 -0
- package/dist/console/runtime/components/console-connections.vue +296 -0
- package/dist/console/runtime/components/console-database-model.ts +264 -0
- package/dist/console/runtime/components/console-database.vue +634 -0
- package/dist/console/runtime/components/console-definitions.vue +506 -0
- package/dist/console/runtime/components/console-document-dashboard.vue +492 -0
- package/dist/console/runtime/components/console-document-diff.vue +43 -0
- package/dist/console/runtime/components/console-document-editor.vue +2605 -0
- package/dist/console/runtime/components/console-document-history.vue +118 -0
- package/dist/console/runtime/components/console-document-list.vue +577 -0
- package/dist/console/runtime/components/console-document-preview.vue +422 -0
- package/dist/console/runtime/components/console-document-settings.vue +108 -0
- package/dist/console/runtime/components/console-documents.vue +480 -0
- package/dist/console/runtime/components/console-env-access.vue +151 -0
- package/dist/console/runtime/components/console-env-activity.vue +89 -0
- package/dist/console/runtime/components/console-env-details.vue +68 -0
- package/dist/console/runtime/components/console-env-managed.vue +203 -0
- package/dist/console/runtime/components/console-env.vue +301 -0
- package/dist/console/runtime/components/console-frame.vue +255 -0
- package/dist/console/runtime/components/console-home.vue +627 -0
- package/dist/console/runtime/components/console-invocation-composer.vue +159 -0
- package/dist/console/runtime/components/console-kv.vue +537 -0
- package/dist/console/runtime/components/console-loading.vue +28 -0
- package/dist/console/runtime/components/console-mark.vue +5 -0
- package/dist/console/runtime/components/console-markdown-editor.vue +705 -0
- package/dist/console/runtime/components/console-media-browser.vue +986 -0
- package/dist/console/runtime/components/console-media-crops.vue +167 -0
- package/dist/console/runtime/components/console-media-detail.vue +282 -0
- package/dist/console/runtime/components/console-media-dialog.vue +74 -0
- package/dist/console/runtime/components/console-media-field.vue +185 -0
- package/dist/console/runtime/components/console-media-focal.vue +137 -0
- package/dist/console/runtime/components/console-media-library.vue +125 -0
- package/dist/console/runtime/components/console-media-move.vue +160 -0
- package/dist/console/runtime/components/console-media-picker.vue +167 -0
- package/dist/console/runtime/components/console-media-uploads.vue +72 -0
- package/dist/console/runtime/components/console-new-chat.ts +27 -0
- package/dist/console/runtime/components/console-operation-view.vue +114 -0
- package/dist/console/runtime/components/console-page-header.vue +50 -0
- package/dist/console/runtime/components/console-page-toolbar.vue +28 -0
- package/dist/console/runtime/components/console-presence-avatars.vue +73 -0
- package/dist/console/runtime/components/console-property-list.vue +36 -0
- package/dist/console/runtime/components/console-property-row.vue +58 -0
- package/dist/console/runtime/components/console-rail.vue +392 -0
- package/dist/console/runtime/components/console-rate-limit.vue +167 -0
- package/dist/console/runtime/components/console-relative-time.vue +74 -0
- package/dist/console/runtime/components/console-schema-field.vue +504 -0
- package/dist/console/runtime/components/console-schema-form.vue +77 -0
- package/dist/console/runtime/components/console-schema-list.vue +158 -0
- package/dist/console/runtime/components/console-search.vue +851 -0
- package/dist/console/runtime/components/console-section-icon.vue +21 -0
- package/dist/console/runtime/components/console-seo-panel.vue +261 -0
- package/dist/console/runtime/components/console-session-actions.vue +160 -0
- package/dist/console/runtime/components/console-session-bootstrap.ts +112 -0
- package/dist/console/runtime/components/console-session-cancel.vue +90 -0
- package/dist/console/runtime/components/console-session-code-language.ts +32 -0
- package/dist/console/runtime/components/console-session-code-preview.vue +94 -0
- package/dist/console/runtime/components/console-session-inspector.vue +763 -0
- package/dist/console/runtime/components/console-session-loading.vue +116 -0
- package/dist/console/runtime/components/console-session-navbar.vue +159 -0
- package/dist/console/runtime/components/console-session-trace-model.ts +414 -0
- package/dist/console/runtime/components/console-session-trace.vue +693 -0
- package/dist/console/runtime/components/console-session.css +1745 -0
- package/dist/console/runtime/components/console-setup-hint.vue +20 -0
- package/dist/console/runtime/components/console-state.vue +165 -0
- package/dist/console/runtime/components/console-status.vue +25 -0
- package/dist/console/runtime/components/console-toaster.vue +66 -0
- package/dist/console/runtime/components/console-usage-chart.vue +208 -0
- package/dist/console/runtime/components/console-usage-model-detail.vue +144 -0
- package/dist/console/runtime/components/console-usage-model.ts +368 -0
- package/dist/console/runtime/components/console-usage-share-bar.vue +48 -0
- package/dist/console/runtime/components/console-usage.vue +879 -0
- package/dist/console/runtime/components/console-value.vue +35 -0
- package/dist/console/runtime/components/console-workflow-actions.vue +183 -0
- package/dist/console/runtime/components/console-workspace-file.ts +12 -0
- package/dist/console/runtime/components/console-workspace-history.vue +77 -0
- package/dist/console/runtime/components/console-wrap.ts +10 -0
- package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +166 -0
- package/dist/console/runtime/components/invocation/agent-invocation-list.ts +276 -0
- package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +120 -0
- package/dist/console/runtime/components/invocation/agent-invocation.ts +1968 -0
- package/dist/console/runtime/components/invocation/index.ts +8 -0
- package/dist/console/runtime/components/invocation/internal/brand-icons.ts +65 -0
- package/dist/console/runtime/components/invocation/internal/channel-icon.ts +51 -0
- package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +663 -0
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +148 -0
- package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +162 -0
- package/dist/console/runtime/components/invocation/internal/payload-text.ts +29 -0
- package/dist/console/runtime/components/invocation/internal/runtime-type.ts +61 -0
- package/dist/console/runtime/components/invocation/internal/url.ts +8 -0
- package/dist/console/runtime/components/invocation/invocation-display.ts +56 -0
- package/dist/console/runtime/components/invocation/invocation.css +2748 -0
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +1 -0
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +1 -0
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +1 -0
- package/dist/console/runtime/components/invocation/types.ts +89 -0
- package/dist/console/runtime/console-route.d.ts +16 -0
- package/dist/console/runtime/console-route.js +49 -0
- package/dist/console/runtime/definitions.d.ts +2 -0
- package/dist/console/runtime/definitions.js +294 -0
- package/dist/console/runtime/page/loader.js +22 -0
- package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +1 -0
- package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +1 -0
- package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +1 -0
- package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +1 -0
- package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +1 -0
- package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +1 -0
- package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +1 -0
- package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +1 -0
- package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +1 -0
- package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +111 -0
- package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +1 -0
- package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +1 -0
- package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +1 -0
- package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +1 -0
- package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +1 -0
- package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +1 -0
- package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +1 -0
- package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +1 -0
- package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +1 -0
- package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +1 -0
- package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +1 -0
- package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +4 -0
- package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +1 -0
- package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +1 -0
- package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +1 -0
- package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +1 -0
- package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +1 -0
- package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +1 -0
- package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +1 -0
- package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +1 -0
- package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +1 -0
- package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +1 -0
- package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +1 -0
- package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +1 -0
- package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +1 -0
- package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +1 -0
- package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +1 -0
- package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +1 -0
- package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +1 -0
- package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +1 -0
- package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +1 -0
- package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +1 -0
- package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +1 -0
- package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +1 -0
- package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +1 -0
- package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +1 -0
- package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +1 -0
- package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +1 -0
- package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +1 -0
- package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +1 -0
- package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +1 -0
- package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +1 -0
- package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +1 -0
- package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +1 -0
- package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +1 -0
- package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +1 -0
- package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +1 -0
- package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +1 -0
- package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +2 -0
- package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +1 -0
- package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +1 -0
- package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +85 -0
- package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +2 -0
- package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +6 -0
- package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +314 -0
- package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +2 -0
- package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +5 -0
- package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +1 -0
- package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +1 -0
- package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +12 -0
- package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +1 -0
- package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +1 -0
- package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +1 -0
- package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +1 -0
- package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +1 -0
- package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +1 -0
- package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +1 -0
- package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +1 -0
- package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +1 -0
- package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +1 -0
- package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +1 -0
- package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +1 -0
- package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +1 -0
- package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +1 -0
- package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +1 -0
- package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +1 -0
- package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +1 -0
- package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +1 -0
- package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +1 -0
- package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +1 -0
- package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +1 -0
- package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +1 -0
- package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +1 -0
- package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +1 -0
- package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +1 -0
- package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +141 -0
- package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +1 -0
- package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +1 -0
- package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +1 -0
- package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +1 -0
- package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +1 -0
- package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +1 -0
- package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +1266 -0
- package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +1 -0
- package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +1 -0
- package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +1 -0
- package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +1 -0
- package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +1 -0
- package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +1 -0
- package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +1 -0
- package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +1 -0
- package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +1 -0
- package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +1 -0
- package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +1 -0
- package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +1 -0
- package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +1 -0
- package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +1 -0
- package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +1 -0
- package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +1 -0
- package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +1 -0
- package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +1 -0
- package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +1 -0
- package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +1 -0
- package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +1 -0
- package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +1 -0
- package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +1 -0
- package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +1 -0
- package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +1 -0
- package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +1 -0
- package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +1 -0
- package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +1 -0
- package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +1 -0
- package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +1 -0
- package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +1 -0
- package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +1 -0
- package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +1 -0
- package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +1 -0
- package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +1 -0
- package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +1 -0
- package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +1 -0
- package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +1 -0
- package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +1 -0
- package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +1 -0
- package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +1 -0
- package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +1 -0
- package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +1 -0
- package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +1 -0
- package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +1 -0
- package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +257 -0
- package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +1 -0
- package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +1 -0
- package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +1 -0
- package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +1 -0
- package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +1 -0
- package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +1 -0
- package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +1 -0
- package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +1 -0
- package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +1 -0
- package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +1 -0
- package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +1 -0
- package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +1 -0
- package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +1 -0
- package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +1 -0
- package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +1 -0
- package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +1 -0
- package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +1 -0
- package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +1 -0
- package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +1 -0
- package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +1 -0
- package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +1 -0
- package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +1 -0
- package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +1 -0
- package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +1 -0
- package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +1 -0
- package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +1 -0
- package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +1 -0
- package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +1 -0
- package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +1 -0
- package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +1 -0
- package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +1 -0
- package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +1 -0
- package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +1 -0
- package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +1 -0
- package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +1 -0
- package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +1 -0
- package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +1 -0
- package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +1 -0
- package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +1 -0
- package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +1 -0
- package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +1 -0
- package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +1 -0
- package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +1 -0
- package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +168 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +1 -0
- package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +1 -0
- package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +1 -0
- package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +1 -0
- package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +1 -0
- package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +1 -0
- package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +1 -0
- package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +1 -0
- package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +1 -0
- package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +1 -0
- package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +1 -0
- package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +1 -0
- package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +1 -0
- package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +1 -0
- package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +1 -0
- package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +1 -0
- package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +1 -0
- package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +1 -0
- package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +1 -0
- package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +1 -0
- package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +1 -0
- package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +1 -0
- package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +1 -0
- package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +1 -0
- package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +1 -0
- package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +1 -0
- package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +1 -0
- package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +1 -0
- package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +1 -0
- package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +1 -0
- package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +1 -0
- package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +1 -0
- package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +1 -0
- package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +1 -0
- package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +1 -0
- package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +1 -0
- package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +1 -0
- package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +1 -0
- package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +1 -0
- package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +1 -0
- package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +1 -0
- package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +8 -0
- package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +1 -0
- package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +1 -0
- package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +1 -0
- package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +1 -0
- package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +1 -0
- package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +1 -0
- package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +1 -0
- package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +1 -0
- package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +1 -0
- package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +1 -0
- package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +1 -0
- package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +1 -0
- package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +1 -0
- package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +1 -0
- package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +1 -0
- package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +1 -0
- package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +1 -0
- package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +1 -0
- package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +1 -0
- package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +1 -0
- package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +1 -0
- package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +1 -0
- package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +1 -0
- package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +1 -0
- package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +1 -0
- package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +1 -0
- package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +1 -0
- package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +1 -0
- package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +1 -0
- package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +1 -0
- package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +1 -0
- package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +1 -0
- package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +1 -0
- package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +4 -0
- package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +1 -0
- package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +3 -0
- package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +1 -0
- package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +1 -0
- package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +1 -0
- package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +1 -0
- package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +3 -0
- package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +1 -0
- package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +4 -0
- package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +1 -0
- package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +1 -0
- package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +1 -0
- package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +1 -0
- package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +1 -0
- package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +1 -0
- package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +1 -0
- package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +1 -0
- package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +1 -0
- package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +1 -0
- package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +1 -0
- package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +1 -0
- package/dist/console/runtime/public/console/console-QjK_HKoM.css +2 -0
- package/dist/console/runtime/public/console/console-j0_7kmR5.js +21 -0
- package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +1 -0
- package/dist/console/runtime/public/skills/index.json +46 -0
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +88 -0
- package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +4 -0
- package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +36 -0
- package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +30 -0
- package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +26 -0
- package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +29 -0
- package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +36 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +16 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +17 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +16 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +16 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +19 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +13 -0
- package/dist/console/runtime/public/skills/vitehub/references/project-patterns.md +19 -0
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +61 -0
- package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +29 -0
- package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +17 -0
- package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
- package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +39 -0
- package/dist/console/runtime/public/skills/vitehub/references/workspaces-sources-access.md +26 -0
- package/dist/console/runtime/rpc.d.ts +36 -0
- package/dist/console/runtime/rpc.js +4 -0
- package/dist/console/runtime/sections.d.ts +2 -0
- package/dist/console/runtime/sections.js +351 -0
- package/dist/console/runtime/server/agents.get.d.ts +17 -0
- package/dist/console/runtime/server/agents.get.js +23 -0
- package/dist/console/runtime/server/auth-manage.d.ts +7 -0
- package/dist/console/runtime/server/auth-manage.js +155 -0
- package/dist/console/runtime/server/blob.d.ts +2 -0
- package/dist/console/runtime/server/blob.js +19 -0
- package/dist/console/runtime/server/channel-replay.d.ts +11 -0
- package/dist/console/runtime/server/channel-replay.js +80 -0
- package/dist/console/runtime/server/client.get.d.ts +3 -0
- package/dist/console/runtime/server/client.get.js +11 -0
- package/dist/console/runtime/server/database.d.ts +2 -0
- package/dist/console/runtime/server/database.get.d.ts +70 -0
- package/dist/console/runtime/server/database.get.js +223 -0
- package/dist/console/runtime/server/database.js +18 -0
- package/dist/console/runtime/server/definitions.d.ts +2 -0
- package/dist/console/runtime/server/definitions.get.d.ts +11 -0
- package/dist/console/runtime/server/definitions.get.js +70 -0
- package/dist/console/runtime/server/definitions.js +97 -0
- package/dist/console/runtime/server/documents.d.ts +2 -0
- package/dist/console/runtime/server/documents.js +111 -0
- package/dist/console/runtime/server/env-manage.d.ts +5 -0
- package/dist/console/runtime/server/env-manage.js +10 -0
- package/dist/console/runtime/server/env.d.ts +18 -0
- package/dist/console/runtime/server/env.get.d.ts +9 -0
- package/dist/console/runtime/server/env.get.js +29 -0
- package/dist/console/runtime/server/env.js +42 -0
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +10 -0
- package/dist/console/runtime/server/invocation-capabilities.get.js +22 -0
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +42 -0
- package/dist/console/runtime/server/invocation-workspace.get.js +243 -0
- package/dist/console/runtime/server/invocation.get.d.ts +47 -0
- package/dist/console/runtime/server/invocation.get.js +153 -0
- package/dist/console/runtime/server/invocations.get.d.ts +8 -0
- package/dist/console/runtime/server/invocations.get.js +227 -0
- package/dist/console/runtime/server/logs.get.d.ts +13 -0
- package/dist/console/runtime/server/logs.get.js +45 -0
- package/dist/console/runtime/server/mcp-authorization-server.d.ts +11 -0
- package/dist/console/runtime/server/mcp-authorization-server.js +71 -0
- package/dist/console/runtime/server/mcp-discovery.d.ts +7 -0
- package/dist/console/runtime/server/mcp-discovery.js +20 -0
- package/dist/console/runtime/server/mcp-metadata.d.ts +11 -0
- package/dist/console/runtime/server/mcp-metadata.js +54 -0
- package/dist/console/runtime/server/mcp.d.ts +16 -0
- package/dist/console/runtime/server/mcp.js +364 -0
- package/dist/console/runtime/server/page-session.d.ts +2 -0
- package/dist/console/runtime/server/page-session.js +5 -0
- package/dist/console/runtime/server/page.get.d.ts +4 -0
- package/dist/console/runtime/server/page.get.js +49 -0
- package/dist/console/runtime/server/rpc.d.ts +22 -0
- package/dist/console/runtime/server/rpc.js +215 -0
- package/dist/console/runtime/server/schedule-run.d.ts +36 -0
- package/dist/console/runtime/server/schedule-run.js +213 -0
- package/dist/console/runtime/server/search.get.d.ts +9 -0
- package/dist/console/runtime/server/search.get.js +103 -0
- package/dist/console/runtime/server/sections.d.ts +4 -0
- package/dist/console/runtime/server/sections.get.d.ts +22 -0
- package/dist/console/runtime/server/sections.get.js +27 -0
- package/dist/console/runtime/server/sections.js +4 -0
- package/dist/console/runtime/server/sign-in.d.ts +5 -0
- package/dist/console/runtime/server/sign-in.js +11 -0
- package/dist/console/runtime/server/status.get.d.ts +13 -0
- package/dist/console/runtime/server/status.get.js +40 -0
- package/dist/console/runtime/server/usage.get.d.ts +7 -0
- package/dist/console/runtime/server/usage.get.js +99 -0
- package/dist/console/server.d.ts +22 -0
- package/dist/console/server.js +34 -0
- package/dist/console/ui.d.ts +201 -0
- package/dist/console/ui.js +3215 -0
- package/dist/console.d.ts +5 -0
- package/dist/console.js +4 -0
- package/dist/content/client.d.ts +1 -0
- package/dist/content/client.js +2 -0
- package/dist/content/database.d.ts +1 -0
- package/dist/content/database.js +2 -0
- package/dist/content/editor.d.ts +1 -0
- package/dist/content/editor.js +2 -0
- package/dist/content/presets/cms.d.ts +2 -0
- package/dist/content/presets/cms.js +2 -0
- package/dist/content/realtime.d.ts +1 -0
- package/dist/content/realtime.js +2 -0
- package/dist/content.d.ts +2 -0
- package/dist/content.js +3 -0
- package/dist/database-DLPk6HVu.d.ts +7 -0
- package/dist/database-hyYo7JVD.d.ts +11 -0
- package/dist/definitions-BJGSpYGa.d.ts +209 -0
- package/dist/definitions-Y0pIwSQm.d.ts +19 -0
- package/dist/diagnostics-YTWM3K3t.js +74 -0
- package/dist/diagnostics-lT85pbVx.d.ts +6 -0
- package/dist/doctor.d.ts +8 -0
- package/dist/doctor.js +417 -0
- package/dist/document-metadata-nXusaMSq.js +6 -0
- package/dist/documents-BRt3-fIu.d.ts +72 -0
- package/dist/env/auth.d.ts +1 -0
- package/dist/env/auth.js +2 -0
- package/dist/env/bridge.d.ts +1 -0
- package/dist/env/bridge.js +2 -0
- package/dist/env/database.d.ts +1 -0
- package/dist/env/database.js +2 -0
- package/dist/env/http.d.ts +1 -0
- package/dist/env/http.js +2 -0
- package/dist/env/provider.d.ts +1 -0
- package/dist/env/provider.js +2 -0
- package/dist/env/seal.d.ts +1 -0
- package/dist/env/seal.js +2 -0
- package/dist/env.d.ts +1 -0
- package/dist/error-diagnostics-n7V-_SPy.js +160 -0
- package/dist/error-diagnostics.ts +162 -0
- package/dist/gateways.d.ts +1 -0
- package/dist/gateways.js +2 -0
- package/dist/h3-v1-request-DDGXJ9E7.js +166 -0
- package/dist/index-CWk5rJOo.d.ts +247 -0
- package/dist/index.d.ts +3 -44
- package/dist/index.js +1 -1
- package/dist/internal-Ca7DYHpa.js +311 -0
- package/dist/internal-VvXn0bX4.d.ts +25 -0
- package/dist/invocations-DkjhdkpT.js +1151 -0
- package/dist/invocations-TvN9ux06.d.ts +47 -0
- package/dist/logs/host.d.ts +6 -0
- package/dist/logs/host.js +16 -0
- package/dist/logs/memory.d.ts +18 -0
- package/dist/logs/memory.js +85 -0
- package/dist/logs/source.d.ts +57 -0
- package/dist/logs/source.js +57 -0
- package/dist/logs.d.ts +4 -0
- package/dist/logs.js +4 -0
- package/dist/loopback-DAr1IFQP.js +43 -0
- package/dist/markdown-template/file.d.ts +1 -0
- package/dist/markdown-template/file.js +2 -0
- package/dist/media-BBybn3NP.js +512 -0
- package/dist/nuxt.d.ts +15 -14
- package/dist/nuxt.js +1156 -25
- package/dist/operation-contributions-BXHKgT_w.d.ts +18 -0
- package/dist/operations-4uDh4zah.js +38 -0
- package/dist/operations-7RHOMAHT.js +455 -0
- package/dist/operations-Bgklf9hM.d.ts +149 -0
- package/dist/operations-CwqEItfA.js +468 -0
- package/dist/operations.d.ts +2 -0
- package/dist/operations.js +2 -0
- package/dist/owned-paths-BnjT0FhU.js +15 -0
- package/dist/package-BsfDnNm8.js +1119 -0
- package/dist/page-tools-B3g4CQ5c.js +402 -0
- package/dist/page-tools-C5dufxVz.d.ts +16 -0
- package/dist/page-tools-shared-D-amu6sx.js +53 -0
- package/dist/presets/babysitter/server.d.ts +1 -0
- package/dist/presets/babysitter/server.js +2 -0
- package/dist/presets/babysitter.d.ts +1 -0
- package/dist/presets/babysitter.js +2 -0
- package/dist/presets/labeller.d.ts +1 -0
- package/dist/presets/labeller.js +2 -0
- package/dist/presets/workspace.d.ts +2 -0
- package/dist/presets/workspace.js +2 -0
- package/dist/project-registry-BT7RcCcQ.js +39 -0
- package/dist/realtime/server.d.ts +1 -0
- package/dist/realtime/server.js +2 -0
- package/dist/realtime/vue.d.ts +1 -0
- package/dist/realtime/vue.js +2 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +2 -0
- package/dist/registry-dSdI2Oa3.js +142 -0
- package/dist/request-BT6g-Fwf.js +326 -0
- package/dist/request-DOvvVgpI.d.ts +52 -0
- package/dist/retention-DBXuVtQL.js +257 -0
- package/dist/rolldown-runtime-8H4AJuhK.js +14 -0
- package/dist/runtime/h3.d.ts +2 -0
- package/dist/runtime/h3.js +2 -0
- package/dist/runtime/node.d.ts +1 -0
- package/dist/runtime/node.js +2 -0
- package/dist/runtime-DPqC3MTX.js +60 -0
- package/dist/sandbox/ssh.d.ts +1 -0
- package/dist/sandbox/ssh.js +2 -0
- package/dist/sandbox/task.d.ts +1 -0
- package/dist/sandbox/task.js +2 -0
- package/dist/scan-module-TmHMoGKw.js +148 -0
- package/dist/schedule/runtime/kv.d.ts +1 -0
- package/dist/schedule/runtime/kv.js +2 -0
- package/dist/schema-form-C-fy3xaU.d.ts +79 -0
- package/dist/secret-DrgWMRms.js +47 -0
- package/dist/sections-BVtKNenQ.js +108 -0
- package/dist/sections-C985LlW2.d.ts +31 -0
- package/dist/sections-Drj-o4_z.d.ts +141 -0
- package/dist/source/client.d.ts +1 -0
- package/dist/source/client.js +2 -0
- package/dist/source/file.d.ts +1 -0
- package/dist/source/file.js +2 -0
- package/dist/source/files.d.ts +1 -0
- package/dist/source/files.js +2 -0
- package/dist/source/github.d.ts +1 -0
- package/dist/source/github.js +2 -0
- package/dist/source/glob.d.ts +1 -0
- package/dist/source/glob.js +2 -0
- package/dist/source/markdown.d.ts +1 -0
- package/dist/source/markdown.js +2 -0
- package/dist/source/mcp.d.ts +1 -0
- package/dist/source/mcp.js +2 -0
- package/dist/source/server.d.ts +1 -0
- package/dist/source/server.js +2 -0
- package/dist/source/vite.d.ts +7 -0
- package/dist/source/vite.js +20 -0
- package/dist/source.d.ts +2 -1
- package/dist/source.js +1 -0
- package/dist/src-CaqWiza-.js +7910 -0
- package/dist/task.d.ts +3 -0
- package/dist/task.js +2 -0
- package/dist/types-BsuwNk3q.js +256 -0
- package/dist/ui/attachment.d.ts +1 -0
- package/dist/ui/attachment.js +2 -0
- package/dist/ui/avatar-stack.d.ts +1 -0
- package/dist/ui/avatar-stack.js +2 -0
- package/dist/ui/bubble.d.ts +1 -0
- package/dist/ui/bubble.js +2 -0
- package/dist/ui/chat-message.d.ts +1 -0
- package/dist/ui/chat-message.js +2 -0
- package/dist/ui/chat-session.d.ts +1 -0
- package/dist/ui/chat-session.js +2 -0
- package/dist/ui/chat.d.ts +1 -0
- package/dist/ui/chat.js +2 -0
- package/dist/ui/code-block.d.ts +1 -0
- package/dist/ui/code-block.js +2 -0
- package/dist/ui/code-view.d.ts +1 -0
- package/dist/ui/code-view.js +2 -0
- package/dist/ui/comments.d.ts +1 -0
- package/dist/ui/comments.js +2 -0
- package/dist/ui/connection-status.d.ts +1 -0
- package/dist/ui/connection-status.js +2 -0
- package/dist/ui/file-diff.d.ts +1 -0
- package/dist/ui/file-diff.js +2 -0
- package/dist/ui/file-tree.d.ts +1 -0
- package/dist/ui/file-tree.js +2 -0
- package/dist/ui/file-view.d.ts +1 -0
- package/dist/ui/file-view.js +2 -0
- package/dist/ui/headless.d.ts +1 -0
- package/dist/ui/headless.js +2 -0
- package/dist/ui/markdown.d.ts +1 -0
- package/dist/ui/markdown.js +2 -0
- package/dist/ui/marker.d.ts +1 -0
- package/dist/ui/marker.js +2 -0
- package/dist/ui/message-parts.d.ts +1 -0
- package/dist/ui/message-parts.js +2 -0
- package/dist/ui/message.d.ts +1 -0
- package/dist/ui/message.js +2 -0
- package/dist/ui/multi-file-diff.d.ts +1 -0
- package/dist/ui/multi-file-diff.js +2 -0
- package/dist/ui/nuxt.d.ts +3 -0
- package/dist/ui/nuxt.js +3 -0
- package/dist/ui/patch-diff.d.ts +1 -0
- package/dist/ui/patch-diff.js +2 -0
- package/dist/ui/prompt-input.d.ts +1 -0
- package/dist/ui/prompt-input.js +2 -0
- package/dist/ui/styles.css +2662 -0
- package/dist/ui/sync-status.d.ts +1 -0
- package/dist/ui/sync-status.js +2 -0
- package/dist/ui/tool-list.d.ts +1 -0
- package/dist/ui/tool-list.js +2 -0
- package/dist/ui/trace-run.d.ts +1 -0
- package/dist/ui/trace-run.js +2 -0
- package/dist/ui/trace.d.ts +1 -0
- package/dist/ui/trace.js +2 -0
- package/dist/ui/unresolved-file.d.ts +1 -0
- package/dist/ui/unresolved-file.js +2 -0
- package/dist/ui/vite.d.ts +3 -0
- package/dist/ui/vite.js +3 -0
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +2 -0
- package/dist/usage-CoQXs5nW.d.ts +22 -0
- package/dist/workspace/blob-database.d.ts +1 -0
- package/dist/workspace/blob-database.js +2 -0
- package/package.json +1356 -139
- package/dist/_internal/sandbox/runtime/state.d.ts +0 -1
- package/dist/_internal/sandbox/runtime/state.js +0 -2
- package/dist/_internal/schedule/runtime/driver.d.ts +0 -1
- package/dist/_internal/schedule/runtime/driver.js +0 -2
- package/dist/agent/harness/local-sandbox.d.ts +0 -1
- package/dist/agent/harness/local-sandbox.js +0 -2
- package/dist/box.d.ts +0 -1
- package/dist/box.js +0 -2
- package/dist/email/drivers/smtp.d.ts +0 -1
- package/dist/email/drivers/smtp.js +0 -2
- package/dist/schedule/runtime/driver.d.ts +0 -1
- package/dist/schedule/runtime/driver.js +0 -2
- package/dist/shell/providers/cloudflare.d.ts +0 -1
- package/dist/shell/providers/cloudflare.js +0 -2
- package/dist/src-o6zB-soj.js +0 -1135
- package/dist/workspace/collections/client.d.ts +0 -1
- package/dist/workspace/collections/client.js +0 -2
- package/dist/workspace/collections.d.ts +0 -1
- package/dist/workspace/collections.js +0 -2
- package/dist/workspace/publish.d.ts +0 -1
- package/dist/workspace/publish.js +0 -2
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { consoleRpcHeader } from "../rpc.js";
|
|
2
|
+
import { ConsoleRequestError, consoleRpcUploadURL, requestConsole } from "./request.js";
|
|
3
|
+
//#region src/console/runtime/client/media-library.ts
|
|
4
|
+
/** `/api/_vitehub/console/documents` → `/api/_vitehub/console/media`. */
|
|
5
|
+
function consoleMediaBase(documentsBase) {
|
|
6
|
+
return documentsBase.replace(/\/documents$/, "/media");
|
|
7
|
+
}
|
|
8
|
+
/** Sends one file as `multipart/form-data` with XMLHttpRequest, which reports upload progress and fetch does not. */
|
|
9
|
+
function uploadRequest(url, form, options) {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
const request = new (Reflect.get(globalThis, "XMLHttpRequest"))();
|
|
12
|
+
request.open("POST", url);
|
|
13
|
+
request.withCredentials = true;
|
|
14
|
+
request.setRequestHeader(consoleRpcHeader, "1");
|
|
15
|
+
request.responseType = "json";
|
|
16
|
+
request.upload.addEventListener("progress", (event) => {
|
|
17
|
+
if (event.lengthComputable) options.onProgress?.(event.loaded / event.total);
|
|
18
|
+
});
|
|
19
|
+
request.addEventListener("load", () => {
|
|
20
|
+
const body = request.response;
|
|
21
|
+
const result = body instanceof Object && !Array.isArray(body) ? body : void 0;
|
|
22
|
+
const ok = result ? Reflect.get(result, "ok") : void 0;
|
|
23
|
+
if (request.status >= 200 && request.status < 300 && ok === true) {
|
|
24
|
+
resolve(Reflect.get(result, "value"));
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const message = result ? Reflect.get(result, "message") : void 0;
|
|
28
|
+
const code = result ? Reflect.get(result, "code") : void 0;
|
|
29
|
+
const failure = {};
|
|
30
|
+
if (String(code) === code) failure.code = code;
|
|
31
|
+
reject(new ConsoleRequestError(request.status || 502, String(message) === message ? message : request.status === 413 ? "The file is too large for this server." : void 0, failure));
|
|
32
|
+
});
|
|
33
|
+
request.addEventListener("error", () => reject(new ConsoleRequestError(0, "The upload could not reach the server.")));
|
|
34
|
+
request.addEventListener("abort", () => reject(new DOMException("The upload was cancelled.", "AbortError")));
|
|
35
|
+
options.signal?.addEventListener("abort", () => request.abort(), { once: true });
|
|
36
|
+
request.send(form);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/** Calls the media library actions of one document editor section. */
|
|
40
|
+
function createConsoleMediaClient(base, section) {
|
|
41
|
+
async function call(action, body, signal) {
|
|
42
|
+
const options = {
|
|
43
|
+
body,
|
|
44
|
+
method: "POST",
|
|
45
|
+
query: {
|
|
46
|
+
action,
|
|
47
|
+
section
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
if (signal) options.signal = signal;
|
|
51
|
+
return await requestConsole(base, options);
|
|
52
|
+
}
|
|
53
|
+
const typed = (value) => value;
|
|
54
|
+
return {
|
|
55
|
+
createFolder: (parent, name) => typed(call("createFolder", {
|
|
56
|
+
name,
|
|
57
|
+
parent
|
|
58
|
+
})),
|
|
59
|
+
get: (pathname) => typed(call("get", { pathname })),
|
|
60
|
+
info: () => typed(call("info", {})),
|
|
61
|
+
list: (query = {}, signal) => typed(call("list", { ...query }, signal)),
|
|
62
|
+
move: (moves) => typed(call("move", { moves: moves.map(({ from, to }) => ({
|
|
63
|
+
from,
|
|
64
|
+
to
|
|
65
|
+
})) })),
|
|
66
|
+
moveFolder: (from, to) => typed(call("moveFolder", {
|
|
67
|
+
from,
|
|
68
|
+
to
|
|
69
|
+
})),
|
|
70
|
+
remove: (pathnames) => typed(call("remove", { pathnames: [...pathnames] })),
|
|
71
|
+
removeCropReplacement: (pathname, crop) => typed(call("removeCropReplacement", {
|
|
72
|
+
crop,
|
|
73
|
+
pathname
|
|
74
|
+
})),
|
|
75
|
+
removeFolder: (path, force = false) => typed(call("removeFolder", {
|
|
76
|
+
force,
|
|
77
|
+
path
|
|
78
|
+
})),
|
|
79
|
+
update: (pathname, patch) => typed(call("update", {
|
|
80
|
+
...patch,
|
|
81
|
+
pathname
|
|
82
|
+
})),
|
|
83
|
+
async upload(file, options = {}) {
|
|
84
|
+
const form = new FormData();
|
|
85
|
+
form.set("file", file);
|
|
86
|
+
if (options.crop) {
|
|
87
|
+
form.set("crop", options.crop.name);
|
|
88
|
+
form.set("pathname", options.crop.pathname);
|
|
89
|
+
} else if (options.folder) form.set("folder", options.folder);
|
|
90
|
+
return await uploadRequest(`${consoleRpcUploadURL(base)}?section=${encodeURIComponent(section)}`, form, options);
|
|
91
|
+
},
|
|
92
|
+
async usage(pathnames) {
|
|
93
|
+
const result = await call("usage", { pathnames: [...pathnames] });
|
|
94
|
+
const references = result instanceof Object ? Reflect.get(result, "references") : void 0;
|
|
95
|
+
return references instanceof Object ? references : {};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** The URL that serves a pathname, or undefined when the store is not served. */
|
|
100
|
+
function consoleMediaUrl(served, pathname) {
|
|
101
|
+
if (!served) return void 0;
|
|
102
|
+
return `${served}${pathname.split("/").map(encodeURIComponent).join("/")}`;
|
|
103
|
+
}
|
|
104
|
+
/** A resized variant of a served image, such as `?w=256&h=256&fit=cover`. Other files keep their URL. */
|
|
105
|
+
function consoleMediaVariantUrl(url, variant) {
|
|
106
|
+
const query = new URLSearchParams();
|
|
107
|
+
if (variant.width) query.set("w", String(variant.width));
|
|
108
|
+
if (variant.height) query.set("h", String(variant.height));
|
|
109
|
+
if (variant.fit) query.set("fit", variant.fit);
|
|
110
|
+
if (variant.crop) query.set("crop", variant.crop);
|
|
111
|
+
if (variant.version) query.set("v", variant.version);
|
|
112
|
+
const search = query.toString();
|
|
113
|
+
return search ? `${url}${url.includes("?") ? "&" : "?"}${search}` : url;
|
|
114
|
+
}
|
|
115
|
+
/** Whether the serve route can make variants of this content type. GIF and SVG are served as they are. */
|
|
116
|
+
function consoleMediaTransformable(contentType) {
|
|
117
|
+
return /^image\/(?:avif|jpeg|png|webp)$/i.test(contentType.split(";")[0].trim());
|
|
118
|
+
}
|
|
119
|
+
function consoleMediaType(contentType) {
|
|
120
|
+
const type = contentType.split(";")[0].trim().toLowerCase();
|
|
121
|
+
if (type.startsWith("image/")) return "image";
|
|
122
|
+
if (type.startsWith("video/")) return "video";
|
|
123
|
+
if (type.startsWith("audio/")) return "audio";
|
|
124
|
+
if (type === "application/pdf" || type.startsWith("text/") || /(?:msword|officedocument|opendocument|rtf|epub)/.test(type)) return "document";
|
|
125
|
+
return "other";
|
|
126
|
+
}
|
|
127
|
+
const consoleMediaTypeIcons = {
|
|
128
|
+
audio: "i-lucide-file-audio",
|
|
129
|
+
document: "i-lucide-file-text",
|
|
130
|
+
image: "i-lucide-file-image",
|
|
131
|
+
other: "i-lucide-file",
|
|
132
|
+
video: "i-lucide-file-video"
|
|
133
|
+
};
|
|
134
|
+
/** `JPEG`, `PNG`, `PDF`, … from a content type or file name. */
|
|
135
|
+
function consoleMediaFormat(file) {
|
|
136
|
+
const subtype = file.contentType.split(";")[0].split("/")[1]?.replace(/^x-/, "").replace("svg+xml", "svg") ?? "";
|
|
137
|
+
const extension = /\.([a-z0-9]{1,5})$/i.exec(file.name)?.[1] ?? "";
|
|
138
|
+
return (subtype && subtype.length <= 5 ? subtype : extension || subtype || "file").toUpperCase();
|
|
139
|
+
}
|
|
140
|
+
/** `Oct 14, 2026, 16:53` in the viewer's time zone. */
|
|
141
|
+
function consoleMediaDate(value) {
|
|
142
|
+
const time = Date.parse(value);
|
|
143
|
+
if (!Number.isFinite(time)) return "Unknown";
|
|
144
|
+
return new Intl.DateTimeFormat("en", {
|
|
145
|
+
day: "numeric",
|
|
146
|
+
hour: "2-digit",
|
|
147
|
+
hourCycle: "h23",
|
|
148
|
+
minute: "2-digit",
|
|
149
|
+
month: "short",
|
|
150
|
+
year: "numeric"
|
|
151
|
+
}).format(time);
|
|
152
|
+
}
|
|
153
|
+
/** Parses `4:5`, `16/9`, or `1.91:1` to width divided by height. */
|
|
154
|
+
function consoleAspectRatio(aspect) {
|
|
155
|
+
const match = /^(\d{1,5}(?:\.\d{1,4})?)\s*[:/x]\s*(\d{1,5}(?:\.\d{1,4})?)$/.exec(aspect.trim());
|
|
156
|
+
if (!match) return void 0;
|
|
157
|
+
const ratio = Number(match[1]) / Number(match[2]);
|
|
158
|
+
return Number.isFinite(ratio) && ratio >= .01 && ratio <= 100 ? ratio : void 0;
|
|
159
|
+
}
|
|
160
|
+
/** Aspect ratios that the focal point previews show, and that a new crop offers first. */
|
|
161
|
+
const consoleMediaAspects = [
|
|
162
|
+
{
|
|
163
|
+
aspect: "1:1",
|
|
164
|
+
label: "Square"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
aspect: "4:5",
|
|
168
|
+
label: "Portrait"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
aspect: "16:9",
|
|
172
|
+
label: "Wide"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
aspect: "1.91:1",
|
|
176
|
+
label: "Social"
|
|
177
|
+
}
|
|
178
|
+
];
|
|
179
|
+
/** CSS `object-position` for a focal point. Pair it with `object-fit: cover`. */
|
|
180
|
+
function consoleFocalPosition(focal) {
|
|
181
|
+
const point = focal ?? {
|
|
182
|
+
x: .5,
|
|
183
|
+
y: .5
|
|
184
|
+
};
|
|
185
|
+
return `${Math.round(point.x * 1e4) / 100}% ${Math.round(point.y * 1e4) / 100}%`;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* CSS `object-position` that shows the same region as the serve route's crop: the largest region with `aspect`,
|
|
189
|
+
* centered on the focal point as far as the edges allow. Pair it with `object-fit: cover`.
|
|
190
|
+
*/
|
|
191
|
+
function consoleFocalCropPosition(focal, source, aspect) {
|
|
192
|
+
const point = focal ?? {
|
|
193
|
+
x: .5,
|
|
194
|
+
y: .5
|
|
195
|
+
};
|
|
196
|
+
if (!source.width || !source.height) return consoleFocalPosition(point);
|
|
197
|
+
const width = Math.min(source.width, source.height * aspect);
|
|
198
|
+
const height = Math.min(source.height, width / aspect);
|
|
199
|
+
const axis = (center, size, total) => {
|
|
200
|
+
const free = total - size;
|
|
201
|
+
if (free <= 0) return 50;
|
|
202
|
+
return Math.min(Math.max((center * total - size / 2) / free, 0), 1) * 100;
|
|
203
|
+
};
|
|
204
|
+
return `${Math.round(axis(point.x, width, source.width) * 100) / 100}% ${Math.round(axis(point.y, height, source.height) * 100) / 100}%`;
|
|
205
|
+
}
|
|
206
|
+
/** Crop names use letters, digits, `_`, and `-`: `Mobile hero` becomes `mobile-hero`. */
|
|
207
|
+
function consoleCropName(value) {
|
|
208
|
+
return value.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 64);
|
|
209
|
+
}
|
|
210
|
+
/** The folders from the root to `folder`, for breadcrumbs: `a/b` → `["", "a", "a/b"]`. */
|
|
211
|
+
function consoleFolderTrail(folder) {
|
|
212
|
+
const parts = folder.split("/").filter(Boolean);
|
|
213
|
+
return ["", ...parts.map((_part, index) => parts.slice(0, index + 1).join("/"))];
|
|
214
|
+
}
|
|
215
|
+
function consoleFolderName(folder) {
|
|
216
|
+
return folder ? folder.slice(folder.lastIndexOf("/") + 1) : "All files";
|
|
217
|
+
}
|
|
218
|
+
/** Whether a Markdown `src` is a Blob pathname rather than a URL, an absolute path, or a data URL. */
|
|
219
|
+
function isConsoleMediaPathname(src) {
|
|
220
|
+
return Boolean(src) && !/^(?:[a-z][a-z0-9+.-]*:|\/|#|\.\.?\/)/i.test(src);
|
|
221
|
+
}
|
|
222
|
+
/** Whether a content type matches one of the accepted patterns, such as `image/*`. */
|
|
223
|
+
function consoleMediaAccepts(accept, contentType) {
|
|
224
|
+
if (!accept?.length) return true;
|
|
225
|
+
const type = contentType.split(";")[0].trim().toLowerCase();
|
|
226
|
+
return accept.some((pattern) => pattern === type || pattern === "*/*" || pattern.endsWith("/*") && type.startsWith(pattern.slice(0, -1)));
|
|
227
|
+
}
|
|
228
|
+
const folderKey = "vitehub:console:media-folder";
|
|
229
|
+
/** The folder that uploads from the editor go to: the last folder someone opened in the library. */
|
|
230
|
+
function rememberedConsoleMediaFolder(section) {
|
|
231
|
+
try {
|
|
232
|
+
return globalThis.localStorage?.getItem(`${folderKey}:${section}`) ?? "";
|
|
233
|
+
} catch {
|
|
234
|
+
return "";
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function rememberConsoleMediaFolder(section, folder) {
|
|
238
|
+
try {
|
|
239
|
+
globalThis.localStorage?.setItem(`${folderKey}:${section}`, folder);
|
|
240
|
+
} catch {}
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
export { consoleAspectRatio, consoleCropName, consoleFocalCropPosition, consoleFocalPosition, consoleFolderName, consoleFolderTrail, consoleMediaAccepts, consoleMediaAspects, consoleMediaBase, consoleMediaDate, consoleMediaFormat, consoleMediaTransformable, consoleMediaType, consoleMediaTypeIcons, consoleMediaUrl, consoleMediaVariantUrl, createConsoleMediaClient, isConsoleMediaPathname, rememberConsoleMediaFolder, rememberedConsoleMediaFolder };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ConsoleMediaClient, ConsoleMediaUploadResult } from "./media-library.js";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
//#region src/console/runtime/client/media-uploads.d.ts
|
|
4
|
+
export type ConsoleMediaUploadState = "queued" | "uploading" | "done" | "failed";
|
|
5
|
+
/** One file in the upload queue. */
|
|
6
|
+
export interface ConsoleMediaUploadEntry {
|
|
7
|
+
error?: string;
|
|
8
|
+
file: File;
|
|
9
|
+
folder: string;
|
|
10
|
+
id: number;
|
|
11
|
+
/** From 0 to 1 while uploading. */
|
|
12
|
+
progress: number;
|
|
13
|
+
result?: ConsoleMediaUploadResult;
|
|
14
|
+
state: ConsoleMediaUploadState;
|
|
15
|
+
}
|
|
16
|
+
export interface ConsoleMediaUploads {
|
|
17
|
+
/** Queue files for `folder`. Resolves with the results in order once each file settles; failed files are left out. */
|
|
18
|
+
add(files: readonly File[], folder: string): Promise<ConsoleMediaUploadResult[]>;
|
|
19
|
+
/** Done and failed entries leave the queue. */
|
|
20
|
+
clear(): void;
|
|
21
|
+
dismiss(id: number): void;
|
|
22
|
+
entries: Ref<ConsoleMediaUploadEntry[]>;
|
|
23
|
+
/** Files that are queued or uploading. */
|
|
24
|
+
pending: ComputedRef<number>;
|
|
25
|
+
/** Upload a failed file again. */
|
|
26
|
+
retry(id: number): Promise<ConsoleMediaUploadResult | undefined>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The upload queue of the media library: files upload a few at a time with progress, failures stay in the queue with
|
|
30
|
+
* their reason and a retry, and `add()` resolves with what was stored.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useConsoleMediaUploads(client: () => ConsoleMediaClient, onUploaded?: (result: ConsoleMediaUploadResult) => void): ConsoleMediaUploads;
|
|
33
|
+
//#endregion
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { consoleErrorMessage } from "./documents.js";
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
//#region src/console/runtime/client/media-uploads.ts
|
|
4
|
+
/** Uploads at most this many files at once, so a large drop does not stall the server or the browser. */
|
|
5
|
+
const concurrency = 3;
|
|
6
|
+
let nextId = 0;
|
|
7
|
+
/**
|
|
8
|
+
* The upload queue of the media library: files upload a few at a time with progress, failures stay in the queue with
|
|
9
|
+
* their reason and a retry, and `add()` resolves with what was stored.
|
|
10
|
+
*/
|
|
11
|
+
function useConsoleMediaUploads(client, onUploaded) {
|
|
12
|
+
const entries = ref([]);
|
|
13
|
+
const waiting = [];
|
|
14
|
+
let active = 0;
|
|
15
|
+
function patch(id, fields) {
|
|
16
|
+
entries.value = entries.value.map((entry) => entry.id === id ? {
|
|
17
|
+
...entry,
|
|
18
|
+
...fields
|
|
19
|
+
} : entry);
|
|
20
|
+
}
|
|
21
|
+
async function slot() {
|
|
22
|
+
if (active < concurrency) {
|
|
23
|
+
active++;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
await new Promise((resolve) => waiting.push(resolve));
|
|
27
|
+
active++;
|
|
28
|
+
}
|
|
29
|
+
function release() {
|
|
30
|
+
active--;
|
|
31
|
+
waiting.shift()?.();
|
|
32
|
+
}
|
|
33
|
+
async function run(entry) {
|
|
34
|
+
await slot();
|
|
35
|
+
patch(entry.id, {
|
|
36
|
+
error: void 0,
|
|
37
|
+
progress: 0,
|
|
38
|
+
state: "uploading"
|
|
39
|
+
});
|
|
40
|
+
try {
|
|
41
|
+
const result = await client().upload(entry.file, {
|
|
42
|
+
confirmReplace: (pathname) => confirmReplacement(pathname),
|
|
43
|
+
folder: entry.folder,
|
|
44
|
+
onProgress: (progress) => patch(entry.id, { progress })
|
|
45
|
+
});
|
|
46
|
+
patch(entry.id, {
|
|
47
|
+
progress: 1,
|
|
48
|
+
result,
|
|
49
|
+
state: "done"
|
|
50
|
+
});
|
|
51
|
+
onUploaded?.(result);
|
|
52
|
+
return result;
|
|
53
|
+
} catch (error) {
|
|
54
|
+
patch(entry.id, {
|
|
55
|
+
error: consoleErrorMessage(error, "The upload failed."),
|
|
56
|
+
state: "failed"
|
|
57
|
+
});
|
|
58
|
+
return;
|
|
59
|
+
} finally {
|
|
60
|
+
release();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
async add(files, folder) {
|
|
65
|
+
const added = files.map((file) => ({
|
|
66
|
+
file,
|
|
67
|
+
folder,
|
|
68
|
+
id: ++nextId,
|
|
69
|
+
progress: 0,
|
|
70
|
+
state: "queued"
|
|
71
|
+
}));
|
|
72
|
+
entries.value = [...entries.value.filter((entry) => entry.state !== "done"), ...added];
|
|
73
|
+
return (await Promise.all(added.map(run))).filter((result) => result !== void 0);
|
|
74
|
+
},
|
|
75
|
+
clear() {
|
|
76
|
+
entries.value = entries.value.filter((entry) => entry.state === "queued" || entry.state === "uploading");
|
|
77
|
+
},
|
|
78
|
+
dismiss(id) {
|
|
79
|
+
entries.value = entries.value.filter((entry) => entry.id !== id);
|
|
80
|
+
},
|
|
81
|
+
entries,
|
|
82
|
+
pending: computed(() => entries.value.filter((entry) => entry.state === "queued" || entry.state === "uploading").length),
|
|
83
|
+
async retry(id) {
|
|
84
|
+
const entry = entries.value.find((candidate) => candidate.id === id);
|
|
85
|
+
if (!entry || entry.state !== "failed") return void 0;
|
|
86
|
+
patch(id, { state: "queued" });
|
|
87
|
+
return await run(entry);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/** Asks the person in the browser. Without a window, nobody can answer, so the upload does not replace. */
|
|
92
|
+
function confirmReplacement(pathname) {
|
|
93
|
+
const ask = Reflect.get(globalThis, "confirm");
|
|
94
|
+
return ask instanceof Function ? ask(`${pathname} already exists. Replace it?`) === true : false;
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { useConsoleMediaUploads };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/console/runtime/client/media.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Media for the document editor. The editor asks a picker for media when someone chooses **Image…** in the `/` menu,
|
|
4
|
+
* pastes or drops image files into the body, or chooses a file for a Blob reference field such as `image()`. Provide a
|
|
5
|
+
* picker with `provideConsoleMediaPicker()` above the editor, such as the Content media library. Without one, the body
|
|
6
|
+
* asks for a Blob path or URL and reference fields stay read-only.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsoleMediaRequest {
|
|
9
|
+
/** `image` for the body and `image()` fields, `file` for `file()` fields. */
|
|
10
|
+
kind: "file" | "image";
|
|
11
|
+
/**
|
|
12
|
+
* Files pasted or dropped into the body, in order. Empty when someone chose Image… or a field. A picker stores them and
|
|
13
|
+
* resolves without asking.
|
|
14
|
+
*/
|
|
15
|
+
files: readonly File[];
|
|
16
|
+
/** The collection of the document, when the request comes from a document. */
|
|
17
|
+
collection?: string;
|
|
18
|
+
/** Undefined while the document is new. */
|
|
19
|
+
documentId?: string;
|
|
20
|
+
/** Allow more than one item, as the body does. A reference field holds one file. Defaults to `false`. */
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
/** Accepted content types of a reference field, such as `["image/*"]`. */
|
|
23
|
+
accept?: readonly string[];
|
|
24
|
+
/** Blob store required by a reference field. The picker may only edit the served store. */
|
|
25
|
+
store?: string;
|
|
26
|
+
}
|
|
27
|
+
/** The stored form of a picked file, as a Blob reference field keeps it. */
|
|
28
|
+
export interface ConsoleMediaReference {
|
|
29
|
+
contentType?: string;
|
|
30
|
+
pathname: string;
|
|
31
|
+
size?: number;
|
|
32
|
+
}
|
|
33
|
+
/** One picked item. `src` goes into the Markdown as is, such as a Blob pathname or a URL. */
|
|
34
|
+
export interface ConsoleMediaItem {
|
|
35
|
+
alt?: string;
|
|
36
|
+
/** The Blob object, when the item is a stored file. Reference fields store it. */
|
|
37
|
+
reference?: ConsoleMediaReference;
|
|
38
|
+
src: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
}
|
|
41
|
+
/** What a picker knows about a stored file, for a field preview. */
|
|
42
|
+
export interface ConsoleMediaDetails {
|
|
43
|
+
alt?: string;
|
|
44
|
+
/** Average color as `#rrggbb`, for a placeholder. */
|
|
45
|
+
color?: string;
|
|
46
|
+
/** Focal point, from 0 to 1 on each axis, so a square thumbnail keeps the subject in frame. */
|
|
47
|
+
focal?: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
height?: number;
|
|
52
|
+
/** A URL that displays the file, sized for a thumbnail when the picker can. */
|
|
53
|
+
thumbnail?: string;
|
|
54
|
+
width?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface ConsoleMediaPicker {
|
|
57
|
+
/** Resolves to the items to insert, in order, or an empty list when the person cancels. */
|
|
58
|
+
pick(request: ConsoleMediaRequest): Promise<ConsoleMediaItem[]>;
|
|
59
|
+
/**
|
|
60
|
+
* The URL that displays a stored `src` in the editor, such as the served URL of a Blob pathname. Return undefined to
|
|
61
|
+
* show the `src` as written. Display only: the Markdown keeps the `src`.
|
|
62
|
+
*/
|
|
63
|
+
resolveSrc?(src: string): string | undefined;
|
|
64
|
+
/** Reads what a field preview shows of a stored file. Undefined when the file no longer exists. */
|
|
65
|
+
describe?(reference: ConsoleMediaReference): Promise<ConsoleMediaDetails | undefined>;
|
|
66
|
+
/** Changes the alt text stored with a file. Every document that uses the file shows the new text. */
|
|
67
|
+
updateAlt?(reference: ConsoleMediaReference, alt: string): Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
/** Makes `picker` the media picker of every document editor below this component. */
|
|
70
|
+
export declare function provideConsoleMediaPicker(picker: ConsoleMediaPicker): void;
|
|
71
|
+
/** The media picker that a parent provided, or undefined when the editor should use its own. */
|
|
72
|
+
export declare function useConsoleMediaPicker(): ConsoleMediaPicker | undefined;
|
|
73
|
+
//#endregion
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { inject, provide } from "vue";
|
|
2
|
+
//#region src/console/runtime/client/media.ts
|
|
3
|
+
const pickerKey = Symbol("vitehub-console-media-picker");
|
|
4
|
+
/** Makes `picker` the media picker of every document editor below this component. */
|
|
5
|
+
function provideConsoleMediaPicker(picker) {
|
|
6
|
+
provide(pickerKey, picker);
|
|
7
|
+
}
|
|
8
|
+
/** The media picker that a parent provided, or undefined when the editor should use its own. */
|
|
9
|
+
function useConsoleMediaPicker() {
|
|
10
|
+
return inject(pickerKey, void 0);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { provideConsoleMediaPicker, useConsoleMediaPicker };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { d as ConsoleOperationView, l as ConsoleOperationColumn } from "../../../definitions-BJGSpYGa.js";
|
|
2
|
+
//#region src/console/runtime/client/operation-view.d.ts
|
|
3
|
+
/** The value at a dot path, such as `messages.0.body`. Paths joined by `|` fall back in order: `author.name|author.id`. */
|
|
4
|
+
export declare function operationValue(item: unknown, path: string): unknown;
|
|
5
|
+
/** The text of one cell: `datetime` shows a date, `excerpt` cuts a long text. */
|
|
6
|
+
export declare function operationCell(item: unknown, column: ConsoleOperationColumn): string;
|
|
7
|
+
/**
|
|
8
|
+
* The link of one row, or undefined when the view has none, the row does not match `when`, or a value is missing.
|
|
9
|
+
* `{path}` fills a value with `encodeURIComponent`. `{path:path}` fills an app path: each segment is encoded, and a value
|
|
10
|
+
* that is not an app path, such as `//evil.com/x`, gives no link.
|
|
11
|
+
*/
|
|
12
|
+
export declare function operationLink(item: unknown, view: ConsoleOperationView): string | undefined;
|
|
13
|
+
/** The items of an operation result. Anything else is a failure of the owner operation. */
|
|
14
|
+
export declare function operationItems(result: unknown): Array<Record<string, unknown>>;
|
|
15
|
+
/** Load a complete list, following the operation's optional `before` cursor contract. */
|
|
16
|
+
export declare function loadOperationItems(definitionsBase: string, view: ConsoleOperationView, input: Record<string, unknown>, signal: AbortSignal): Promise<Array<Record<string, unknown>>>;
|
|
17
|
+
//#endregion
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { requestConsoleOperation } from "./request.js";
|
|
2
|
+
//#region src/console/runtime/client/operation-view.ts
|
|
3
|
+
/** The value at a dot path, such as `messages.0.body`. Paths joined by `|` fall back in order: `author.name|author.id`. */
|
|
4
|
+
function operationValue(item, path) {
|
|
5
|
+
if (path.includes("|")) {
|
|
6
|
+
for (const alternative of path.split("|")) {
|
|
7
|
+
const value = operationValue(item, alternative);
|
|
8
|
+
if (value !== void 0 && value !== null && value !== "") return value;
|
|
9
|
+
}
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
let current = item;
|
|
13
|
+
for (const key of path.split(".")) {
|
|
14
|
+
if (current === null || typeof current !== "object") return void 0;
|
|
15
|
+
current = Reflect.get(current, key);
|
|
16
|
+
}
|
|
17
|
+
return current;
|
|
18
|
+
}
|
|
19
|
+
const excerptLength = 90;
|
|
20
|
+
/** The text of one cell: `datetime` shows a date, `excerpt` cuts a long text. */
|
|
21
|
+
function operationCell(item, column) {
|
|
22
|
+
const value = operationValue(item, column.key);
|
|
23
|
+
if (value === void 0 || value === null) return "";
|
|
24
|
+
if (column.format === "datetime" && typeof value === "number") return new Date(value).toISOString().replace("T", " ").slice(0, 16);
|
|
25
|
+
const line = (typeof value === "string" ? value : String(value)).replaceAll(/\s+/g, " ").trim();
|
|
26
|
+
return column.format === "excerpt" && line.length > excerptLength ? `${line.slice(0, 89)}…` : line;
|
|
27
|
+
}
|
|
28
|
+
const pagePath = /^\/(?![/\\])[^\s\\?#]*$/;
|
|
29
|
+
/**
|
|
30
|
+
* The link of one row, or undefined when the view has none, the row does not match `when`, or a value is missing.
|
|
31
|
+
* `{path}` fills a value with `encodeURIComponent`. `{path:path}` fills an app path: each segment is encoded, and a value
|
|
32
|
+
* that is not an app path, such as `//evil.com/x`, gives no link.
|
|
33
|
+
*/
|
|
34
|
+
function operationLink(item, view) {
|
|
35
|
+
const link = view.link;
|
|
36
|
+
if (!link) return void 0;
|
|
37
|
+
if (link.when && operationValue(item, link.when.path) !== link.when.equals) return void 0;
|
|
38
|
+
let complete = true;
|
|
39
|
+
const href = link.template.replaceAll(/\{([^}]+)\}/g, (_match, name) => {
|
|
40
|
+
const asPath = name.endsWith(":path");
|
|
41
|
+
const value = operationValue(item, asPath ? name.slice(0, -5) : name);
|
|
42
|
+
if (value === void 0 || value === null) {
|
|
43
|
+
complete = false;
|
|
44
|
+
return "";
|
|
45
|
+
}
|
|
46
|
+
const text = String(value);
|
|
47
|
+
if (!asPath) return encodeURIComponent(text);
|
|
48
|
+
if (!pagePath.test(text)) {
|
|
49
|
+
complete = false;
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
return text.split("/").map((segment) => encodeURIComponent(segment)).join("/");
|
|
53
|
+
});
|
|
54
|
+
return complete ? href : void 0;
|
|
55
|
+
}
|
|
56
|
+
/** The items of an operation result. Anything else is a failure of the owner operation. */
|
|
57
|
+
function operationItems(result) {
|
|
58
|
+
if (!Array.isArray(result)) return [];
|
|
59
|
+
return result.filter((item) => item !== null && typeof item === "object" && !Array.isArray(item));
|
|
60
|
+
}
|
|
61
|
+
/** Load a complete list, following the operation's optional `before` cursor contract. */
|
|
62
|
+
async function loadOperationItems(definitionsBase, view, input, signal) {
|
|
63
|
+
const items = [];
|
|
64
|
+
const pagination = view.pagination;
|
|
65
|
+
let next = {
|
|
66
|
+
...input,
|
|
67
|
+
...pagination ? { limit: pagination.limit } : {}
|
|
68
|
+
};
|
|
69
|
+
while (true) {
|
|
70
|
+
signal.throwIfAborted();
|
|
71
|
+
const page = operationItems(await requestConsoleOperation(definitionsBase, view.operation, next, { signal }));
|
|
72
|
+
items.push(...page);
|
|
73
|
+
if (!pagination || page.length < pagination.limit) return items;
|
|
74
|
+
const last = page.at(-1);
|
|
75
|
+
const before = Object.fromEntries(Object.entries(pagination.cursor).map(([key, path]) => [key, operationValue(last, path)]));
|
|
76
|
+
if (Object.values(before).some((value) => value === void 0)) throw new Error("The operation returned an item without a pagination cursor.");
|
|
77
|
+
next = {
|
|
78
|
+
...input,
|
|
79
|
+
limit: pagination.limit,
|
|
80
|
+
before
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { loadOperationItems, operationCell, operationItems, operationLink, operationValue };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ConsoleDocumentPresence, ConsoleDocumentSession, ConsoleDocumentSessionUser, ConsoleDocumentsClient } from "./documents.js";
|
|
2
|
+
import { ComputedRef, Ref, ShallowRef } from "vue";
|
|
3
|
+
//#region src/console/runtime/client/presence.d.ts
|
|
4
|
+
/** This tab's session token. List rows and the editor share it, so both mark this tab as `self`. */
|
|
5
|
+
export declare const consoleTabSession: string;
|
|
6
|
+
/** Reports every 15 seconds while visible and every 60 seconds while hidden. 15 minutes without input drops to viewing. */
|
|
7
|
+
export declare const consolePresenceTimings: Readonly<{
|
|
8
|
+
hidden: number;
|
|
9
|
+
idle: number;
|
|
10
|
+
visible: number;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* - `free`: nobody else edits, or this tab has not edited yet. The first edit claims the lease.
|
|
14
|
+
* - `editing`: this tab holds the lease.
|
|
15
|
+
* - `blocked`: another tab holds it and this tab chose read-only.
|
|
16
|
+
* - `taken`: this tab held it and another tab took over.
|
|
17
|
+
* - `left`: the tab that blocked this one stopped editing.
|
|
18
|
+
*/
|
|
19
|
+
export type ConsoleLeaseMode = "blocked" | "editing" | "free" | "left" | "taken";
|
|
20
|
+
export interface ConsoleDocumentPresenceState {
|
|
21
|
+
/** Who has the document open. Undefined before the first answer. */
|
|
22
|
+
presence: ShallowRef<ConsoleDocumentPresence | undefined>;
|
|
23
|
+
/** The last session request failed: the editor stays editable and `ifDigest` still guards saves. */
|
|
24
|
+
unreachable: Ref<boolean>;
|
|
25
|
+
mode: Ref<ConsoleLeaseMode>;
|
|
26
|
+
/** Another tab that holds the lease now, or held it last for `taken` and `left`. */
|
|
27
|
+
holder: ShallowRef<ConsoleDocumentSession | undefined>;
|
|
28
|
+
/** The "is editing this page" dialog. */
|
|
29
|
+
dialogOpen: Ref<boolean>;
|
|
30
|
+
/** Other tabs with the document open, editors first. */
|
|
31
|
+
others: ComputedRef<ConsoleDocumentSession[]>;
|
|
32
|
+
/** Whether saves may run now: the lease is held, or sessions do not apply. */
|
|
33
|
+
mayWrite: ComputedRef<boolean>;
|
|
34
|
+
/** Whether sessions can be checked at all. */
|
|
35
|
+
tracked: ComputedRef<boolean>;
|
|
36
|
+
/** Whether the holder is this person in another tab. */
|
|
37
|
+
ownOtherTab: ComputedRef<boolean>;
|
|
38
|
+
/** Takes the lease on the first edit. Resolves false when another tab holds it; the dialog then opens. */
|
|
39
|
+
claim: () => Promise<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Asks the server for the lease now, for an explicit save such as Apply of local-only edits. Unlike `claim()`, it
|
|
42
|
+
* asks after this tab chose read-only or its holder left, and it opens no dialog. The server still refuses while
|
|
43
|
+
* another tab holds the lease: it resolves false then, with `holder` set.
|
|
44
|
+
*/
|
|
45
|
+
acquire: () => Promise<boolean>;
|
|
46
|
+
takeover: () => Promise<boolean>;
|
|
47
|
+
/** Records input, so the lease does not go idle. */
|
|
48
|
+
input: () => void;
|
|
49
|
+
readOnly: () => void;
|
|
50
|
+
/** Leaves `left` for `free`, after the caller reloads the document. */
|
|
51
|
+
resume: () => void;
|
|
52
|
+
/** Reports now, such as after a save. */
|
|
53
|
+
refresh: () => Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Presence and the edit lease of one open document. It reports on a visibility-aware loop, claims the lease on the
|
|
57
|
+
* first edit, drops to viewing after 15 minutes without input, and releases on `pagehide` with a keepalive request.
|
|
58
|
+
*/
|
|
59
|
+
export declare function useConsoleDocumentPresence(options: {
|
|
60
|
+
client: ConsoleDocumentsClient;
|
|
61
|
+
collection: string;
|
|
62
|
+
/** Undefined while creating a document: nothing to report yet. */
|
|
63
|
+
documentId: () => string | undefined;
|
|
64
|
+
canWrite: () => boolean;
|
|
65
|
+
/**
|
|
66
|
+
* True while this tab edits in the live room of the document. The room holds the lease for everyone in it, so this
|
|
67
|
+
* tab reports presence only: it never claims, and a live holder opens no dialog.
|
|
68
|
+
*/
|
|
69
|
+
live?: () => boolean;
|
|
70
|
+
/** Called with the draft digest of each answer. */
|
|
71
|
+
onDigest?: (digest: string | null) => void;
|
|
72
|
+
}): ConsoleDocumentPresenceState;
|
|
73
|
+
/** Polls every open tab of readable collections for list rows and the dashboard, visible-aware like the editor. */
|
|
74
|
+
export declare function useConsoleDocumentSessions(options: {
|
|
75
|
+
client: ConsoleDocumentsClient;
|
|
76
|
+
collection?: string;
|
|
77
|
+
}): {
|
|
78
|
+
sessions: ShallowRef<ConsoleDocumentSession[]>;
|
|
79
|
+
/** The signed-in user, so their other tabs read as "You". */
|
|
80
|
+
user: ShallowRef<ConsoleDocumentSessionUser | null>;
|
|
81
|
+
/** The sessions of one document, editors first. */
|
|
82
|
+
of: (collection: string, id: string) => ConsoleDocumentSession[];
|
|
83
|
+
};
|
|
84
|
+
/** Initials for an avatar without an image, such as `AL` for Ada Lovelace. */
|
|
85
|
+
export declare function consoleInitials(name: string): string;
|
|
86
|
+
/** A clock time such as `10:42`, for "Editing since 10:42" and "Your changes up to 10:42 are saved". */
|
|
87
|
+
export declare function consoleClockTime(value: string | null | undefined): string;
|
|
88
|
+
/** The names in a live session row, such as `Ana, Ben`. */
|
|
89
|
+
export declare function consoleLiveNames(session: Pick<ConsoleDocumentSession, "user">): string[];
|
|
90
|
+
/** Copy for a live room: who is in it, such as `Live session: Ana, Ben`. */
|
|
91
|
+
export declare function consoleLiveLabel(session: Pick<ConsoleDocumentSession, "user">): string;
|
|
92
|
+
/** Shown where a document would allow live editing but the host cannot run it. */
|
|
93
|
+
export declare const consoleLiveUnavailable = "Live editing unavailable · one editor at a time";
|
|
94
|
+
/** Whether a document can be edited live: Markdown, already saved, and live editing installed. */
|
|
95
|
+
export declare function consoleLiveDefinition(setup: {
|
|
96
|
+
live?: {
|
|
97
|
+
definition: string;
|
|
98
|
+
} | {
|
|
99
|
+
unavailable: string;
|
|
100
|
+
};
|
|
101
|
+
} | undefined): string | undefined;
|
|
102
|
+
//#endregion
|