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
package/dist/nuxt.js
CHANGED
|
@@ -1,13 +1,536 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-n7V-_SPy.js";
|
|
2
|
+
import { a as VITEHUB_PROJECT_ROOT, i as VITEHUB_NITRO_CONFIG_CONTEXT, l as resolveNuxtServerDirs, n as VITEHUB_APP_BASE_URL, o as VITEHUB_SERVER_DIRS, r as VITEHUB_GENERATED_ROOT, u as resolveViteHubProjectRoot } from "./types-BsuwNk3q.js";
|
|
3
|
+
import { $ as writeViteHubDevServerFile, A as consoleAuthMiddlewareFile, B as upstashDriverSpecifier, C as resolveConsoleProjectNameFromRoot, D as discoverConsoleEntrySections, E as consoleDocumentEditorSectionIds, F as writeConsoleConnectionsActor, G as resolveDeploymentPlan, H as resolveCmsPresetFeatures, I as writeFileIfChanged, J as consoleD1Binding, K as nitroCacheBypass, L as disabledKVConfigModule, M as registeredConsoleAuthMode, N as resolveConsoleAuthConfig, O as isConsoleContributedSectionId, P as writeConsoleAuthHandlers, Q as removeViteHubDevServerFile, R as disabledUpstashDriver, S as writeConsoleNitroPlugin, T as consoleContributedSections, U as isIncludedNitroPlugin, V as markCmsPresetFeaturesResolved, W as normalizeNitroPreset, X as resolveConsoleJournal, Y as consoleDatabaseUrl, Z as withDataDir, _ as addConsoleRpcHandler, a as configureConsoleFixtureLifecycle, b as serializeConsoleRefresh, c as consoleOpenAccessBuildWarning, d as resolveConsoleAccessBuild, et as isPlainObject, f as resolveConsoleOptions, g as addConsolePageHandlers, h as consoleNuxtDevToolsTab, i as closeConsoleInvocationRootState, j as consoleConnectionsActorId, k as createNitroServerKit, l as createConsoleInvocationRootState, m as updateConsoleInvocationRootState, n as assertConsoleAccess, o as consoleAuthConfig, p as resolveGeneratedConsolePlugin, q as describeDeploymentPlanOutput, r as assertConsoleProductionAccess, s as consoleInvocationRootPlugin, t as vitehub, u as generatedConsolePluginRegistration, v as mountPath, w as discoverConsoleBuildCatalog, x as assertConsoleRetention, y as createConsoleCliNamespace, z as hasUpstashStore } from "./src-CaqWiza-.js";
|
|
4
|
+
import { r as createConsoleInvocationsIdentity } from "./internal-Ca7DYHpa.js";
|
|
5
|
+
import { isConsoleConnectionsEnabled, resolveConsoleSectionIds } from "./console/runtime/sections.js";
|
|
6
|
+
import { o as installConsoleProjectName, s as installConsoleSections } from "./sections-BVtKNenQ.js";
|
|
7
|
+
import { s as installConsoleInvocations } from "./invocations-DkjhdkpT.js";
|
|
8
|
+
import { i as readConsoleFixture, n as consoleFixtureEnvironmentVariable, r as consoleFixtureRevision } from "./retention-DBXuVtQL.js";
|
|
9
|
+
import { findPackageJSON } from "node:module";
|
|
10
|
+
import { readFileSync } from "node:fs";
|
|
11
|
+
import { dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
12
|
+
import * as v from "valibot";
|
|
13
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
14
|
+
import { readFile, writeFile } from "node:fs/promises";
|
|
3
15
|
import { mergeConfig } from "vite";
|
|
16
|
+
import { discoverDatabaseDefinitions, readDatabaseDefinitionDialect } from "@vite-hub/database/config";
|
|
17
|
+
import { resolveAuthViteConfig } from "@vite-hub/auth/vite";
|
|
18
|
+
import { resolveBlobViteConfig } from "@vite-hub/blob/vite";
|
|
19
|
+
import { resolveEmailTemplateModulePath } from "@vite-hub/email/vite";
|
|
20
|
+
import { createEnvImportAliases } from "@vite-hub/env/vite";
|
|
21
|
+
import { resolveKVViteConfig } from "@vite-hub/kv/vite";
|
|
22
|
+
import { mergeGeneratedSourceNitroConfig } from "@vite-hub/source/vite";
|
|
23
|
+
import { transform } from "esbuild";
|
|
24
|
+
import { parseJSONC, parseTOML } from "confbox";
|
|
25
|
+
import { findNearestFile } from "pkg-types";
|
|
26
|
+
import hubAuthNuxt from "@vite-hub/auth/nuxt";
|
|
27
|
+
import { hubDb } from "@vite-hub/database/nuxt";
|
|
28
|
+
//#region src/internal/nitro-optional-peers.ts
|
|
29
|
+
const manifestSchema = v.object({
|
|
30
|
+
optionalDependencies: v.optional(v.record(v.string(), v.string())),
|
|
31
|
+
peerDependenciesMeta: v.optional(v.record(v.string(), v.object({ optional: v.optional(v.boolean()) })))
|
|
32
|
+
});
|
|
33
|
+
/** Honor each importing package's optional dependencies before Nitro rejects unresolved Worker imports. */
|
|
34
|
+
function nitroOptionalPeers(config = {}) {
|
|
35
|
+
const manifests = /* @__PURE__ */ new Map();
|
|
36
|
+
return {
|
|
37
|
+
name: "vite-hub/nitro-optional-peers",
|
|
38
|
+
async resolveId(source, importer, options) {
|
|
39
|
+
if (!importer || !isAbsolute(importer) && !importer.startsWith("file://") || /^[./#\0]|:/.test(source)) return;
|
|
40
|
+
if (config.alias && Object.keys(config.alias).some((alias) => source === alias || source.startsWith(`${alias}/`))) return;
|
|
41
|
+
const packageName = source.startsWith("@") ? source.split("/").slice(0, 2).join("/") : source.split("/")[0];
|
|
42
|
+
const parent = importer.startsWith("file://") ? importer : pathToFileURL(importer).href;
|
|
43
|
+
let owner;
|
|
44
|
+
try {
|
|
45
|
+
owner = findPackageJSON(parent);
|
|
46
|
+
} catch {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (!owner || !/[\\/]package\.json$/.test(owner)) return;
|
|
50
|
+
let optional = manifests.get(owner);
|
|
51
|
+
if (!optional) {
|
|
52
|
+
const input = JSON.parse(readFileSync(owner, "utf8"));
|
|
53
|
+
const manifest = v.parse(manifestSchema, input);
|
|
54
|
+
optional = /* @__PURE__ */ new Set([...Object.keys(manifest.optionalDependencies ?? {}), ...Object.entries(manifest.peerDependenciesMeta ?? {}).filter(([, metadata]) => metadata.optional).map(([name]) => name)]);
|
|
55
|
+
manifests.set(owner, optional);
|
|
56
|
+
}
|
|
57
|
+
if (!optional.has(packageName)) return;
|
|
58
|
+
try {
|
|
59
|
+
findPackageJSON(`${packageName}/package.json`, parent);
|
|
60
|
+
} catch (error) {
|
|
61
|
+
if (!(error instanceof Error && "code" in error && error.code === "ERR_MODULE_NOT_FOUND")) return;
|
|
62
|
+
try {
|
|
63
|
+
return await this.resolve(source, importer, {
|
|
64
|
+
...options,
|
|
65
|
+
skipSelf: true
|
|
66
|
+
}) ?? {
|
|
67
|
+
id: source,
|
|
68
|
+
external: true
|
|
69
|
+
};
|
|
70
|
+
} catch (resolveError) {
|
|
71
|
+
if (resolveError instanceof Error && resolveError.message === `Cannot resolve ${JSON.stringify(source)} from ${JSON.stringify(importer)} and externals are not allowed!`) return {
|
|
72
|
+
id: source,
|
|
73
|
+
external: true
|
|
74
|
+
};
|
|
75
|
+
throw resolveError;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
4
82
|
//#region src/nuxt.ts
|
|
83
|
+
const databaseRuntimeState = fileURLToPath(new URL("./_internal/database/runtime/state", import.meta.url));
|
|
84
|
+
const doctorExtensionEntry = fileURLToPath(new URL("./doctor", import.meta.url));
|
|
85
|
+
const consoleRuntimeRoot = fileURLToPath(new URL("./console/runtime", import.meta.url));
|
|
86
|
+
function hasDefaultAgentInvocations(agent) {
|
|
87
|
+
return Boolean(agent && agent !== true && agent.invocations);
|
|
88
|
+
}
|
|
89
|
+
function configuredProjectRoot(root, value) {
|
|
90
|
+
return value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string" ? resolve(root, value.projectRoot) : void 0;
|
|
91
|
+
}
|
|
92
|
+
function configuredProjectRootOption(value) {
|
|
93
|
+
return value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string" ? value.projectRoot : void 0;
|
|
94
|
+
}
|
|
95
|
+
/** The project's wrangler config, found and parsed the way Nitro's Cloudflare preset does. */
|
|
96
|
+
async function readProjectWranglerConfig(rootDir) {
|
|
97
|
+
const configPath = await findNearestFile([
|
|
98
|
+
"wrangler.json",
|
|
99
|
+
"wrangler.jsonc",
|
|
100
|
+
"wrangler.toml"
|
|
101
|
+
], { startingFrom: rootDir }).catch(() => void 0);
|
|
102
|
+
if (!configPath) return void 0;
|
|
103
|
+
const text = await readFile(configPath, "utf8");
|
|
104
|
+
const extension = extname(configPath);
|
|
105
|
+
const config = extension === ".toml" ? parseTOML(text) : extension === ".jsonc" ? parseJSONC(text) : JSON.parse(text);
|
|
106
|
+
return isPlainObject(config) ? config : void 0;
|
|
107
|
+
}
|
|
108
|
+
async function projectWranglerEnvAlias(rootDir) {
|
|
109
|
+
const config = await readProjectWranglerConfig(rootDir);
|
|
110
|
+
const alias = isPlainObject(config?.alias) ? config.alias["#vitehub/env/server"] : void 0;
|
|
111
|
+
return typeof alias === "string" ? alias : void 0;
|
|
112
|
+
}
|
|
113
|
+
const cloudflareNodeCompatModuleName = "vite-hub/cloudflare-node-compat";
|
|
114
|
+
/** Nitro configs that hold our `nodejs_compat_v2` marker, so a later run of the Nitro config hook keeps it. */
|
|
115
|
+
const markedNitroConfigs = /* @__PURE__ */ new WeakSet();
|
|
116
|
+
/**
|
|
117
|
+
* Replaces the `nodejs_compat_v2` marker with `nodejs_compat` in the wrangler.json that Nitro's Cloudflare preset
|
|
118
|
+
* wrote, which also holds the project's flags. Wrangler refuses the two together, and before 2026-08-04 v2 alone leaves
|
|
119
|
+
* out Node modules such as `node:http` that `nodejs_compat` provides.
|
|
120
|
+
*/
|
|
121
|
+
const cloudflareNodeCompatModule = {
|
|
122
|
+
name: cloudflareNodeCompatModuleName,
|
|
123
|
+
setup(nitro) {
|
|
124
|
+
nitro.hooks.hook("compiled", async () => {
|
|
125
|
+
const file = join(nitro.options.output.serverDir, "wrangler.json");
|
|
126
|
+
const text = await readFile(file, "utf8").catch((error) => {
|
|
127
|
+
if (error.code === "ENOENT") return void 0;
|
|
128
|
+
throw error;
|
|
129
|
+
});
|
|
130
|
+
if (text === void 0) return;
|
|
131
|
+
const wrangler = JSON.parse(text);
|
|
132
|
+
if (!isPlainObject(wrangler) || !Array.isArray(wrangler.compatibility_flags) || !wrangler.compatibility_flags.includes("nodejs_compat_v2")) return;
|
|
133
|
+
const flags = [.../* @__PURE__ */ new Set([...wrangler.compatibility_flags.filter((flag) => flag !== "nodejs_compat_v2"), "nodejs_compat"])];
|
|
134
|
+
await writeFile(file, `${JSON.stringify({
|
|
135
|
+
...wrangler,
|
|
136
|
+
compatibility_flags: flags
|
|
137
|
+
}, null, 2)}\n`);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
function configuredScanDirs(value) {
|
|
142
|
+
return value && typeof value === "object" && "scanDirs" in value && Array.isArray(value.scanDirs) ? value.scanDirs.filter((entry) => typeof entry === "string") : void 0;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Tell `vitehub` commands where `nuxt dev` listens: `.vitehub/dev-server.json` in the root, removed when Nuxt closes.
|
|
146
|
+
* Nuxt runs Vite in middleware mode, so the Vite plugin cannot see the listener.
|
|
147
|
+
*/
|
|
148
|
+
function publishNuxtDevServer(nuxt) {
|
|
149
|
+
const root = resolve(nuxt.options.rootDir || process.cwd());
|
|
150
|
+
nuxt.hook?.("listen", (_server, listener) => {
|
|
151
|
+
try {
|
|
152
|
+
const url = new URL(listener.url);
|
|
153
|
+
url.pathname = nuxt.options.app?.baseURL || "/";
|
|
154
|
+
writeViteHubDevServerFile(root, {
|
|
155
|
+
root,
|
|
156
|
+
url: url.href
|
|
157
|
+
});
|
|
158
|
+
} catch {}
|
|
159
|
+
});
|
|
160
|
+
nuxt.hook?.("close", async () => {
|
|
161
|
+
try {
|
|
162
|
+
removeViteHubDevServerFile(root);
|
|
163
|
+
} catch {}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
const agentVueComposables = [
|
|
167
|
+
"useAgent",
|
|
168
|
+
"useAgentInvocation",
|
|
169
|
+
"useAgentInvocations",
|
|
170
|
+
"useChat"
|
|
171
|
+
];
|
|
172
|
+
const h3RuntimeRoot = dirname(fileURLToPath(import.meta.resolve("h3/package.json")));
|
|
173
|
+
const cloudflareTypes = fileURLToPath(new URL("./cloudflare-types.d.ts", import.meta.url));
|
|
174
|
+
function emailTemplateResolver(root) {
|
|
175
|
+
return {
|
|
176
|
+
name: "vite-hub/nuxt-email-templates",
|
|
177
|
+
resolveId: (id) => resolveEmailTemplateModulePath(root, id)
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function installEmailTemplateResolver(config, root) {
|
|
181
|
+
const rollupConfig = config.rollupConfig ??= {};
|
|
182
|
+
const plugins = rollupConfig.plugins ??= [];
|
|
183
|
+
if (!plugins.some((plugin) => plugin.name === "vite-hub/nuxt-email-templates")) plugins.push(emailTemplateResolver(root));
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Generated Collection and Content modules import server files by `file://` URL. Nitro 2's externals plugin does not
|
|
187
|
+
* resolve those and leaves them external, so Node would load a second, unbundled copy of the server file.
|
|
188
|
+
*/
|
|
189
|
+
const nitroFileUrlResolver = {
|
|
190
|
+
name: "vite-hub/nitro-file-url",
|
|
191
|
+
resolveId: (source) => source.startsWith("file://") ? fileURLToPath(source) : null
|
|
192
|
+
};
|
|
193
|
+
function isExternalId(external, id, importer, isResolved) {
|
|
194
|
+
if (typeof external === "function") return Boolean(external(id, importer, isResolved));
|
|
195
|
+
if (external === void 0) return false;
|
|
196
|
+
return [external].flat().some((entry) => typeof entry === "string" ? entry === id : entry.test(id));
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* `nuxt dev` runs Nitro 2 on Node, where its `cloudflare-dev` preset maps `cloudflare:workers` to a shim of `env`. ViteHub's
|
|
200
|
+
* generated Nitro plugins list that scheme as external for the Worker build, and Rollup asks `external` before it
|
|
201
|
+
* applies aliases, so the dev bundle kept an import that Node cannot load.
|
|
202
|
+
*/
|
|
203
|
+
const nitroCloudflareWorkersDev = {
|
|
204
|
+
name: "vite-hub/nitro-cloudflare-workers-dev",
|
|
205
|
+
options(options) {
|
|
206
|
+
const external = options.external;
|
|
207
|
+
return {
|
|
208
|
+
...options,
|
|
209
|
+
external: (id, importer, isResolved) => id === "cloudflare:workers" ? false : isExternalId(external, id, importer, isResolved)
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
/** Keep ViteHub's H3 2 imports out of Nuxt 4's application-wide H3 1 alias. */
|
|
214
|
+
function nitroViteHubH3(generatedRoots) {
|
|
215
|
+
const roots = generatedRoots.map((root) => `${root.replaceAll("\\", "/").replace(/\/+$/, "")}/`);
|
|
216
|
+
const owners = /* @__PURE__ */ new Map();
|
|
217
|
+
return {
|
|
218
|
+
name: "vite-hub/nitro-h3",
|
|
219
|
+
resolveId(id, importer) {
|
|
220
|
+
if (!/^h3(?:\/|$)/.test(id) || !importer) return;
|
|
221
|
+
const path = importer.split("?", 1)[0].replaceAll("\\", "/");
|
|
222
|
+
if (!roots.some((root) => path.startsWith(root))) {
|
|
223
|
+
const directory = dirname(path);
|
|
224
|
+
let owned = owners.get(directory);
|
|
225
|
+
if (owned === void 0) {
|
|
226
|
+
try {
|
|
227
|
+
const manifest = findPackageJSON(pathToFileURL(path), import.meta.url);
|
|
228
|
+
const pkg = manifest ? JSON.parse(readFileSync(manifest, "utf8")) : void 0;
|
|
229
|
+
owned = isPlainObject(pkg) && (pkg.name === "vite-hub" || typeof pkg.name === "string" && pkg.name.startsWith("@vite-hub/") || pkg.name === "nitro" && typeof pkg.version === "string" && pkg.version.startsWith("3.") || pkg.name === "h3" && typeof pkg.version === "string" && pkg.version.startsWith("2."));
|
|
230
|
+
} catch {
|
|
231
|
+
owned = false;
|
|
232
|
+
}
|
|
233
|
+
owners.set(directory, owned);
|
|
234
|
+
}
|
|
235
|
+
if (!owned) return;
|
|
236
|
+
}
|
|
237
|
+
return fileURLToPath(import.meta.resolve(id));
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
/** Node development uses request bindings without importing the production Cloudflare runtime. */
|
|
242
|
+
async function writeCloudflareWorkersDevShim(buildDir) {
|
|
243
|
+
const file = join(buildDir, "vitehub/cloudflare-workers.dev.mjs");
|
|
244
|
+
await writeFileIfChanged(file, [
|
|
245
|
+
"const bindings = () => globalThis.__env__ ?? process.env",
|
|
246
|
+
"const read = key => bindings()[key] ?? process.env[key]",
|
|
247
|
+
"export const env = new Proxy({}, {",
|
|
248
|
+
" get: (_, key) => read(key),",
|
|
249
|
+
" has: (_, key) => key in bindings() || key in process.env,",
|
|
250
|
+
" ownKeys: () => [...new Set([...Reflect.ownKeys(process.env), ...Reflect.ownKeys(bindings())])],",
|
|
251
|
+
" getOwnPropertyDescriptor(_, key) {",
|
|
252
|
+
" const descriptor = Object.getOwnPropertyDescriptor(bindings(), key) ?? Object.getOwnPropertyDescriptor(process.env, key)",
|
|
253
|
+
" return descriptor && { configurable: true, enumerable: descriptor.enumerable, writable: true, value: read(key) }",
|
|
254
|
+
" },",
|
|
255
|
+
"})",
|
|
256
|
+
"export async function waitUntil(promise) { if (globalThis.__wait_until__) return globalThis.__wait_until__(promise); await promise }",
|
|
257
|
+
"export function withEnv() { throw new Error('cloudflare.withEnv is not available in Node development.') }",
|
|
258
|
+
"class Unsupported { constructor() { throw new Error('This Cloudflare runtime class is not available in Node development.') } }",
|
|
259
|
+
"export { Unsupported as DurableObject, Unsupported as RpcTarget, Unsupported as WorkerEntrypoint, Unsupported as WorkflowEntrypoint }",
|
|
260
|
+
""
|
|
261
|
+
].join("\n"));
|
|
262
|
+
return file;
|
|
263
|
+
}
|
|
264
|
+
function normalizeGeneratedNitroPlugins(config, root) {
|
|
265
|
+
if (!Array.isArray(config.plugins)) return;
|
|
266
|
+
config.plugins = config.plugins.map((plugin) => typeof plugin === "string" && /^\.vitehub[\\/]/.test(plugin) && !isAbsolute(plugin) ? resolve(root, plugin) : plugin);
|
|
267
|
+
}
|
|
268
|
+
/** Nitro 2 runs user Rollup plugins before its own resolvers, so these see generated and cache imports first. */
|
|
269
|
+
function installNitroBuildPlugins(config, generatedRoots, dev = false) {
|
|
270
|
+
const rollupConfig = config.rollupConfig ??= {};
|
|
271
|
+
const plugins = rollupConfig.plugins ??= [];
|
|
272
|
+
for (const plugin of [
|
|
273
|
+
nitroCacheBypass(),
|
|
274
|
+
nitroFileUrlResolver,
|
|
275
|
+
nitroViteHubH3(generatedRoots),
|
|
276
|
+
nitroOptionalPeers(config),
|
|
277
|
+
...dev ? [nitroCloudflareWorkersDev] : []
|
|
278
|
+
]) if (!plugins.some((candidate) => candidate.name === plugin.name)) plugins.unshift(plugin);
|
|
279
|
+
}
|
|
280
|
+
function pluginOptionHasName(option, name) {
|
|
281
|
+
if (Array.isArray(option)) return option.some((candidate) => pluginOptionHasName(candidate, name));
|
|
282
|
+
return Boolean(option && Reflect.get(Object(option), "name") === name);
|
|
283
|
+
}
|
|
284
|
+
const nitroRuntimeResolverNames = /* @__PURE__ */ new Set([
|
|
285
|
+
"@vite-hub/auth/vite",
|
|
286
|
+
"@vite-hub/blob/vite",
|
|
287
|
+
"@vite-hub/email/vite",
|
|
288
|
+
"@vite-hub/kv/vite",
|
|
289
|
+
"@vite-hub/markdown-template/vite"
|
|
290
|
+
]);
|
|
291
|
+
const nitroConfigResolvedNames = /* @__PURE__ */ new Set([...nitroRuntimeResolverNames, "@vite-hub/sandbox/task/vite"]);
|
|
292
|
+
function pluginResolveIdHandler(plugin) {
|
|
293
|
+
if (typeof plugin.resolveId === "function") return plugin.resolveId;
|
|
294
|
+
return plugin.resolveId?.handler;
|
|
295
|
+
}
|
|
296
|
+
function pluginLoadHandler(plugin) {
|
|
297
|
+
if (typeof plugin.load === "function") return plugin.load;
|
|
298
|
+
return plugin.load?.handler;
|
|
299
|
+
}
|
|
300
|
+
function pluginConfigResolvedHandler(plugin) {
|
|
301
|
+
if (typeof plugin.configResolved === "function") return plugin.configResolved;
|
|
302
|
+
return plugin.configResolved?.handler;
|
|
303
|
+
}
|
|
304
|
+
function asReplayResolvedConfig(config) {
|
|
305
|
+
return config;
|
|
306
|
+
}
|
|
307
|
+
async function finalizeNitroReplayPlugins(plugins, config) {
|
|
308
|
+
for (const plugin of plugins) {
|
|
309
|
+
if (!nitroConfigResolvedNames.has(plugin.name)) continue;
|
|
310
|
+
const configResolved = pluginConfigResolvedHandler(plugin);
|
|
311
|
+
if (!configResolved) continue;
|
|
312
|
+
await configResolved.call({}, asReplayResolvedConfig(config));
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function nitroRuntimeResolver(plugin) {
|
|
316
|
+
if (!nitroRuntimeResolverNames.has(plugin.name)) return;
|
|
317
|
+
const resolveId = pluginResolveIdHandler(plugin);
|
|
318
|
+
const load = pluginLoadHandler(plugin);
|
|
319
|
+
if (!resolveId && !load) return;
|
|
320
|
+
return {
|
|
321
|
+
name: `vite-hub/nuxt-runtime-resolver:${plugin.name}`,
|
|
322
|
+
...resolveId ? { resolveId(...args) {
|
|
323
|
+
return resolveId.call(this, ...args);
|
|
324
|
+
} } : {},
|
|
325
|
+
...load ? { load(...args) {
|
|
326
|
+
return load.call(this, ...args);
|
|
327
|
+
} } : {}
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function installNitroRuntimeResolvers(config, plugins) {
|
|
331
|
+
const resolvers = plugins.map(nitroRuntimeResolver).filter((plugin) => Boolean(plugin));
|
|
332
|
+
if (!resolvers.length) return;
|
|
333
|
+
const rollupConfig = config.rollupConfig ??= {};
|
|
334
|
+
const configuredPlugins = rollupConfig.plugins;
|
|
335
|
+
const nitroPlugins = Array.isArray(configuredPlugins) ? configuredPlugins : configuredPlugins ? [configuredPlugins] : [];
|
|
336
|
+
rollupConfig.plugins = nitroPlugins;
|
|
337
|
+
for (const resolver of resolvers) if (!nitroPlugins.some((candidate) => pluginOptionHasName(candidate, resolver.name))) nitroPlugins.push(resolver);
|
|
338
|
+
}
|
|
339
|
+
const generatedTypeScriptPluginName = "vitehub:nuxt-generated-typescript";
|
|
340
|
+
/**
|
|
341
|
+
* `nuxt build` moves `buildDir` to `node_modules/.cache/nuxt/.nuxt` when `.nuxt` already exists.
|
|
342
|
+
* nitropack 2 does not compile TypeScript under `node_modules`, so compile the generated files in
|
|
343
|
+
* `<buildDir>/vitehub` before Nitro reads them.
|
|
344
|
+
*/
|
|
345
|
+
function installGeneratedTypeScriptCompiler(config, generatedRoot) {
|
|
346
|
+
const root = `${generatedRoot.replace(/\\/g, "/")}/`;
|
|
347
|
+
if (!root.split("/").includes("node_modules")) return;
|
|
348
|
+
const rollupConfig = config.rollupConfig ??= {};
|
|
349
|
+
const configuredPlugins = rollupConfig.plugins;
|
|
350
|
+
const nitroPlugins = Array.isArray(configuredPlugins) ? configuredPlugins : configuredPlugins ? [configuredPlugins] : [];
|
|
351
|
+
rollupConfig.plugins = nitroPlugins;
|
|
352
|
+
if (nitroPlugins.some((candidate) => pluginOptionHasName(candidate, generatedTypeScriptPluginName))) return;
|
|
353
|
+
nitroPlugins.push({
|
|
354
|
+
name: generatedTypeScriptPluginName,
|
|
355
|
+
async transform(code, id) {
|
|
356
|
+
const file = id.split("?", 1)[0].replace(/\\/g, "/");
|
|
357
|
+
if (!file.startsWith(root) || !file.endsWith(".ts")) return;
|
|
358
|
+
const result = await transform(code, {
|
|
359
|
+
format: "esm",
|
|
360
|
+
loader: "ts",
|
|
361
|
+
sourcefile: file,
|
|
362
|
+
sourcemap: true
|
|
363
|
+
});
|
|
364
|
+
return {
|
|
365
|
+
code: result.code,
|
|
366
|
+
map: result.map
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
function addTypeScriptDefaults(options, includes, excludes, key = "tsConfig") {
|
|
372
|
+
const typescript = options.typescript ??= {};
|
|
373
|
+
const tsConfig = typescript[key] ??= {};
|
|
374
|
+
tsConfig.include = [.../* @__PURE__ */ new Set([...tsConfig.include ?? [], ...includes])];
|
|
375
|
+
if (excludes.length > 0) tsConfig.exclude = [.../* @__PURE__ */ new Set([...tsConfig.exclude ?? [], ...excludes])];
|
|
376
|
+
}
|
|
377
|
+
function configuredProjectRoots(options, rootDir, viteRoot) {
|
|
378
|
+
return Object.entries(options).filter((entry) => {
|
|
379
|
+
const value = entry[1];
|
|
380
|
+
return Boolean(value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string");
|
|
381
|
+
}).map(([name, value]) => resolve(name === "database" ? rootDir : viteRoot, value.projectRoot));
|
|
382
|
+
}
|
|
383
|
+
function addVueImports(nuxt, from, names) {
|
|
384
|
+
nuxt.options.imports ??= {};
|
|
385
|
+
const imports = nuxt.options.imports.imports ??= [];
|
|
386
|
+
for (const name of names) {
|
|
387
|
+
const existing = imports.find((entry) => (entry.as ?? entry.name) === name);
|
|
388
|
+
if (existing && existing.from !== from) throw viteHubErrorDiagnostics.VITE_HUB_B0008({ message: `[vitehub] Cannot auto-import ${name} from ${from} because it is already configured from ${existing.from}.` });
|
|
389
|
+
if (!existing) imports.push({
|
|
390
|
+
from,
|
|
391
|
+
name
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Add entries only when server auto-imports are on. Nuxt sets `nitro.imports` to `false` when
|
|
397
|
+
* `experimental.nitroAutoImports` is off, and Nitro 3 leaves it unset by default.
|
|
398
|
+
*/
|
|
399
|
+
function addNitroImports(config, from, names) {
|
|
400
|
+
if (!isPlainObject(config.imports)) return;
|
|
401
|
+
const options = config.imports;
|
|
402
|
+
const imports = Array.isArray(options.imports) ? options.imports : options.imports = [];
|
|
403
|
+
for (const name of names) {
|
|
404
|
+
const existing = imports.find((entry) => (entry.as ?? entry.name) === name);
|
|
405
|
+
if (existing && existing.from !== from) throw viteHubErrorDiagnostics.VITE_HUB_B0008({ message: `[vitehub] Cannot auto-import ${name} in server code from ${from} because it is already configured from ${existing.from}.` });
|
|
406
|
+
if (!existing) imports.push({
|
|
407
|
+
from,
|
|
408
|
+
name
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
async function installConsole(nuxt, projectRoot, discoveryRoot, workflowDiscoveryRoot, queueDiscoveryRoot, sections, blobStores, fixture, serverDirs, installInvocations = true, writeGeneratedPlugin = true, invoke = false, observations = void 0, invocationRootState, canDiscoverDefinitions = () => true, discoveryOptions = {}, journal, independentAuth = false, retention, access, runtimeCapabilityImports) {
|
|
413
|
+
const plugin = resolveGeneratedConsolePlugin(projectRoot, fixture, invocationRootState);
|
|
414
|
+
installConsoleProjectName(projectRoot, resolveConsoleProjectNameFromRoot(projectRoot));
|
|
415
|
+
assertConsoleRetention(retention, journal);
|
|
416
|
+
if (installInvocations && nuxt.options.dev && sections.includes("agents") && !fixture) installConsoleInvocations(projectRoot, void 0, observations, journal && "databaseUrl" in journal ? journal.databaseUrl : void 0, journal && "d1Binding" in journal ? {
|
|
417
|
+
binding: journal.d1Binding,
|
|
418
|
+
env: async () => {
|
|
419
|
+
const workers = await import("cloudflare:workers");
|
|
420
|
+
return Reflect.get(workers, "env");
|
|
421
|
+
}
|
|
422
|
+
} : void 0, retention);
|
|
423
|
+
const routeRules = nuxt.options.routeRules ??= {};
|
|
424
|
+
for (const route of ["/_vitehub", "/_vitehub/**"]) {
|
|
425
|
+
const mountedRoute = mountPath(nuxt.options.app?.baseURL, route);
|
|
426
|
+
const rule = routeRules[mountedRoute] ??= {};
|
|
427
|
+
rule.headers = {
|
|
428
|
+
...rule.headers,
|
|
429
|
+
"x-robots-tag": "noindex, nofollow"
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
if (nuxt.options.dev && nuxt.hook) {
|
|
433
|
+
const tab = consoleNuxtDevToolsTab(nuxt.options.app?.baseURL);
|
|
434
|
+
Reflect.apply(nuxt.hook, nuxt, ["devtools:customTabs", (tabs) => {
|
|
435
|
+
tabs.push(tab);
|
|
436
|
+
}]);
|
|
437
|
+
}
|
|
438
|
+
const documentEditorSections = (await Promise.all(consoleDocumentEditorSectionIds.map(async (section) => {
|
|
439
|
+
return await consoleContributedSections.get(section)?.documents?.entry({
|
|
440
|
+
discoveryRoot,
|
|
441
|
+
projectRoot,
|
|
442
|
+
serverDirs
|
|
443
|
+
}) ? [section] : [];
|
|
444
|
+
}))).flat();
|
|
445
|
+
const entrySections = (await discoverConsoleEntrySections({
|
|
446
|
+
discoveryRoot,
|
|
447
|
+
projectRoot,
|
|
448
|
+
serverDirs
|
|
449
|
+
})).filter((section) => !sections.includes(section));
|
|
450
|
+
installConsoleSections(projectRoot, [
|
|
451
|
+
...sections,
|
|
452
|
+
...entrySections,
|
|
453
|
+
...documentEditorSections
|
|
454
|
+
], independentAuth);
|
|
455
|
+
const nitro = nuxt.options.nitro ??= {};
|
|
456
|
+
addConsoleRpcHandler(nitro, consoleRuntimeRoot, nuxt.options.app?.baseURL, [...sections, ...entrySections], Boolean(access?.oauth));
|
|
457
|
+
addConsolePageHandlers(nitro, consoleRuntimeRoot, nuxt.options.app?.baseURL, independentAuth ? void 0 : access?.signInPage);
|
|
458
|
+
const clientHandler = join(consoleRuntimeRoot, "server/client.get.js");
|
|
459
|
+
const clientRoute = mountPath(nuxt.options.app?.baseURL, "/api/_vitehub/console/client.js");
|
|
460
|
+
if (!nitro.handlers?.some((handler) => handler.route === clientRoute)) (nitro.handlers ??= []).push({
|
|
461
|
+
handler: clientHandler,
|
|
462
|
+
lazy: true,
|
|
463
|
+
route: clientRoute
|
|
464
|
+
});
|
|
465
|
+
const plugins = (nitro.plugins ??= []).filter((candidate) => !generatedConsolePluginRegistration(candidate));
|
|
466
|
+
nitro.plugins = plugins;
|
|
467
|
+
const refreshAgentDefinitions = serializeConsoleRefresh(async () => {
|
|
468
|
+
const discoverySections = canDiscoverDefinitions() ? sections : sections.filter((section) => section !== "databases" && !isConsoleContributedSectionId(section));
|
|
469
|
+
const catalog = await discoverConsoleBuildCatalog({
|
|
470
|
+
...discoveryOptions,
|
|
471
|
+
contentImportBase: discoveryOptions.contentImportBase ?? "vite-hub/content",
|
|
472
|
+
discoveryRoot,
|
|
473
|
+
projectRoot,
|
|
474
|
+
queueDiscoveryRoot,
|
|
475
|
+
sections: discoverySections,
|
|
476
|
+
serverDirs,
|
|
477
|
+
workflowDiscoveryRoot
|
|
478
|
+
});
|
|
479
|
+
const identity = await writeConsoleNitroPlugin(plugin, projectRoot, sections, catalog.agents, catalog, blobStores, fixture, invocationRootState?.binding, invoke, observations, () => !invocationRootState?.closed, journal, independentAuth, retention, access, runtimeCapabilityImports, nuxt.options.dev === true, nuxt.options.app?.baseURL);
|
|
480
|
+
if (invocationRootState) updateConsoleInvocationRootState(invocationRootState, projectRoot, identity);
|
|
481
|
+
});
|
|
482
|
+
if (fixture && invocationRootState) {
|
|
483
|
+
configureConsoleFixtureLifecycle(invocationRootState, plugin, refreshAgentDefinitions);
|
|
484
|
+
nuxt.hook?.("close", async () => closeConsoleInvocationRootState(invocationRootState));
|
|
485
|
+
}
|
|
486
|
+
if (writeGeneratedPlugin) await refreshAgentDefinitions();
|
|
487
|
+
if (nuxt.options.dev && writeGeneratedPlugin) {
|
|
488
|
+
if (fixture) nuxt.options.watch = [.../* @__PURE__ */ new Set([...nuxt.options.watch ?? [], fixture])];
|
|
489
|
+
const hookBuilderWatch = nuxt.hook;
|
|
490
|
+
hookBuilderWatch?.("builder:watch", async (_event, _path) => {
|
|
491
|
+
if (fixture) {
|
|
492
|
+
await refreshAgentDefinitions().catch((error) => {
|
|
493
|
+
console.error(`[vitehub] Could not refresh Console development state: ${error instanceof Error ? error.message : String(error)}`);
|
|
494
|
+
});
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
await refreshAgentDefinitions();
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
if (!plugins.includes(plugin)) plugins.push(plugin);
|
|
501
|
+
return plugin;
|
|
502
|
+
}
|
|
503
|
+
function isEnvDeclarationNamespace(value) {
|
|
504
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value) && value.kind !== "env-variable");
|
|
505
|
+
}
|
|
506
|
+
function mergeEnvDeclarationNamespaces(existing, configured) {
|
|
507
|
+
const merged = { ...existing };
|
|
508
|
+
for (const [key, value] of Object.entries(configured)) {
|
|
509
|
+
const current = merged[key];
|
|
510
|
+
merged[key] = isEnvDeclarationNamespace(current) && isEnvDeclarationNamespace(value) ? mergeEnvDeclarationNamespaces(current, value) : value;
|
|
511
|
+
}
|
|
512
|
+
return merged;
|
|
513
|
+
}
|
|
514
|
+
function agentWorkflowRegistryTransform(plugin) {
|
|
515
|
+
return plugin.vitehub?.agent?.transformWorkflowRegistry;
|
|
516
|
+
}
|
|
5
517
|
function flattenPlugins(options) {
|
|
6
518
|
const plugins = [];
|
|
7
519
|
for (const option of options) if (Array.isArray(option)) plugins.push(...flattenPlugins(option));
|
|
8
520
|
else if (option && typeof option === "object" && "name" in option) plugins.push(option);
|
|
9
521
|
return plugins;
|
|
10
522
|
}
|
|
523
|
+
function filterPluginOptions(options, keep) {
|
|
524
|
+
return options.flatMap((option) => {
|
|
525
|
+
if (Array.isArray(option)) {
|
|
526
|
+
const nested = filterPluginOptions(option, keep);
|
|
527
|
+
return nested.length > 0 ? [nested] : [];
|
|
528
|
+
}
|
|
529
|
+
const plugin = flattenPlugins([option])[0];
|
|
530
|
+
if (plugin && !keep(plugin)) return [];
|
|
531
|
+
return [option];
|
|
532
|
+
});
|
|
533
|
+
}
|
|
11
534
|
function configHandler(plugin) {
|
|
12
535
|
if (typeof plugin.config === "function") return plugin.config;
|
|
13
536
|
return plugin.config?.handler;
|
|
@@ -15,6 +538,29 @@ function configHandler(plugin) {
|
|
|
15
538
|
function queueNitroConfigHandler(plugin) {
|
|
16
539
|
return plugin.vitehub?.queue?.createNitroConfig;
|
|
17
540
|
}
|
|
541
|
+
function workflowNitroConfigHandler(plugin) {
|
|
542
|
+
return plugin.vitehub?.workflow?.createNitroConfig;
|
|
543
|
+
}
|
|
544
|
+
function deploymentOutputEnvPluginHandler(plugin) {
|
|
545
|
+
return plugin.vitehub?.deploymentOutput?.useEnvPlugin;
|
|
546
|
+
}
|
|
547
|
+
function vitePluginNitroModule(plugin) {
|
|
548
|
+
const nitro = plugin.nitro;
|
|
549
|
+
return nitro && typeof nitro.setup === "function" ? nitro : void 0;
|
|
550
|
+
}
|
|
551
|
+
function installVitePluginNitroModules(config, plugins) {
|
|
552
|
+
const configured = config.modules;
|
|
553
|
+
const modules = Array.isArray(configured) ? configured : configured ? [configured] : [];
|
|
554
|
+
config.modules = modules;
|
|
555
|
+
for (const plugin of plugins) {
|
|
556
|
+
const nitroModule = vitePluginNitroModule(plugin);
|
|
557
|
+
if (!nitroModule) continue;
|
|
558
|
+
if (!modules.some((candidate) => {
|
|
559
|
+
if (candidate === nitroModule) return true;
|
|
560
|
+
return Boolean(nitroModule.name && candidate && typeof candidate === "object" && Reflect.get(candidate, "name") === nitroModule.name);
|
|
561
|
+
})) modules.push(nitroModule);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
18
564
|
function withoutDeploymentOutput(options) {
|
|
19
565
|
return options.flatMap((option) => {
|
|
20
566
|
if (Array.isArray(option)) return [withoutDeploymentOutput(option)];
|
|
@@ -22,62 +568,647 @@ function withoutDeploymentOutput(options) {
|
|
|
22
568
|
return [option];
|
|
23
569
|
});
|
|
24
570
|
}
|
|
25
|
-
|
|
571
|
+
/** Translate Nitro 3 package lists before Nuxt's Nitro 2 resolves its preset defaults. */
|
|
572
|
+
function normalizeNuxtNitroExternals(config, incomingNoExternals) {
|
|
573
|
+
if (Array.isArray(config.noExternals)) {
|
|
574
|
+
const externals = isPlainObject(config.externals) ? config.externals : {};
|
|
575
|
+
const inline = Array.isArray(externals.inline) ? externals.inline : [];
|
|
576
|
+
config.externals = {
|
|
577
|
+
...externals,
|
|
578
|
+
inline: [.../* @__PURE__ */ new Set([...inline, ...config.noExternals])]
|
|
579
|
+
};
|
|
580
|
+
delete config.noExternals;
|
|
581
|
+
}
|
|
582
|
+
if (incomingNoExternals !== void 0) config.noExternals = incomingNoExternals;
|
|
583
|
+
}
|
|
584
|
+
async function applyNitroConfig(plugins, nitroConfig, nuxt, projectRoot) {
|
|
585
|
+
const incomingNoExternals = typeof nitroConfig.noExternals === "boolean" ? nitroConfig.noExternals : void 0;
|
|
26
586
|
const environment = {
|
|
27
587
|
command: nuxt.options.dev ? "serve" : "build",
|
|
28
588
|
isPreview: false,
|
|
29
589
|
isSsrBuild: true,
|
|
30
|
-
mode: nuxt.options.dev ? "development" : "production"
|
|
590
|
+
mode: nuxt.options.vite?.mode ?? (nuxt.options.dev ? "development" : "production")
|
|
31
591
|
};
|
|
32
|
-
const serverDirs = nuxt.options
|
|
592
|
+
const serverDirs = resolveNuxtServerDirs(nuxt.options);
|
|
593
|
+
const generatedRoot = join(nuxt.options.buildDir, "vitehub");
|
|
33
594
|
let config = mergeConfig({
|
|
595
|
+
plugins,
|
|
34
596
|
resolve: { alias: nuxt.options.alias },
|
|
35
|
-
root: nuxt.options.
|
|
597
|
+
root: nuxt.options.rootDir || process.cwd()
|
|
36
598
|
}, nuxt.options.vite ?? {});
|
|
37
|
-
config
|
|
38
|
-
|
|
599
|
+
config.root = resolve(nuxt.options.rootDir || process.cwd(), config.root || ".");
|
|
600
|
+
const restoreReplayOwnership = () => {
|
|
601
|
+
config[VITEHUB_GENERATED_ROOT] = generatedRoot;
|
|
602
|
+
config[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
603
|
+
config[VITEHUB_PROJECT_ROOT] = projectRoot;
|
|
604
|
+
config[VITEHUB_APP_BASE_URL] = nuxt.options.app?.baseURL || "/";
|
|
605
|
+
if (serverDirs) config[VITEHUB_SERVER_DIRS] = serverDirs;
|
|
606
|
+
};
|
|
607
|
+
restoreReplayOwnership();
|
|
39
608
|
config.build ??= {};
|
|
40
609
|
config.nitro = nitroConfig;
|
|
41
610
|
config.server ??= {};
|
|
42
|
-
|
|
611
|
+
const transformWorkflowRegistry = plugins.map(agentWorkflowRegistryTransform).find(Boolean);
|
|
612
|
+
const orderedPlugins = [...plugins].sort((left, right) => {
|
|
613
|
+
const order = (plugin) => plugin.name === "vite-hub/deployment-output" ? 2 : plugin.enforce === "pre" ? -1 : plugin.enforce === "post" ? 1 : 0;
|
|
614
|
+
return order(left) - order(right);
|
|
615
|
+
});
|
|
616
|
+
let replayedDatabaseDiscoveryRoot;
|
|
617
|
+
let hasReplayedDatabaseDiscoveryRoot = false;
|
|
618
|
+
for (const plugin of orderedPlugins) {
|
|
43
619
|
const handler = configHandler(plugin);
|
|
44
620
|
if (handler) {
|
|
621
|
+
const previousDatabaseProjectRoot = configuredProjectRootOption(config.database);
|
|
45
622
|
const result = await handler.call({}, config, environment);
|
|
623
|
+
let returnedDatabase;
|
|
46
624
|
if (result) {
|
|
47
625
|
const { nitro, ...viteConfig } = result;
|
|
626
|
+
if (Object.hasOwn(viteConfig, "database")) returnedDatabase = viteConfig.database;
|
|
48
627
|
config = mergeConfig(config, viteConfig);
|
|
49
628
|
if (nitro) config.nitro = nitro;
|
|
50
|
-
config[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
51
|
-
if (serverDirs) config[VITEHUB_SERVER_DIRS] = serverDirs;
|
|
52
629
|
}
|
|
630
|
+
if (plugin.name !== "@vite-hub/database/vite") {
|
|
631
|
+
const currentDatabaseProjectRoot = configuredProjectRootOption(config.database);
|
|
632
|
+
if (returnedDatabase !== void 0 || currentDatabaseProjectRoot !== previousDatabaseProjectRoot) {
|
|
633
|
+
hasReplayedDatabaseDiscoveryRoot = true;
|
|
634
|
+
replayedDatabaseDiscoveryRoot = returnedDatabase !== void 0 ? configuredProjectRoot(config.root || projectRoot, returnedDatabase) : configuredProjectRoot(config.root || projectRoot, config.database);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
restoreReplayOwnership();
|
|
53
638
|
}
|
|
54
639
|
const createQueueNitroConfig = queueNitroConfigHandler(plugin);
|
|
55
640
|
if (createQueueNitroConfig) {
|
|
56
641
|
const projectRoot = nuxt.options.rootDir || process.cwd();
|
|
57
642
|
config.nitro = await createQueueNitroConfig({
|
|
643
|
+
development: nuxt.options.dev,
|
|
644
|
+
nitro: config.nitro || {},
|
|
645
|
+
projectRoot,
|
|
646
|
+
root: projectRoot,
|
|
647
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options),
|
|
648
|
+
viteConfig: config
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
const createWorkflowNitroConfig = workflowNitroConfigHandler(plugin);
|
|
652
|
+
if (createWorkflowNitroConfig) {
|
|
653
|
+
const projectRoot = nuxt.options.rootDir || process.cwd();
|
|
654
|
+
config.nitro = await createWorkflowNitroConfig({
|
|
58
655
|
nitro: config.nitro || {},
|
|
59
656
|
projectRoot,
|
|
60
|
-
|
|
61
|
-
|
|
657
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options),
|
|
658
|
+
transformRegistry: transformWorkflowRegistry
|
|
62
659
|
});
|
|
63
660
|
}
|
|
64
661
|
}
|
|
65
|
-
|
|
662
|
+
await finalizeNitroReplayPlugins(plugins, config);
|
|
663
|
+
if (config.nitro) {
|
|
664
|
+
installVitePluginNitroModules(config.nitro, plugins);
|
|
665
|
+
Object.assign(nitroConfig, config.nitro);
|
|
666
|
+
normalizeNuxtNitroExternals(nitroConfig, incomingNoExternals);
|
|
667
|
+
config.nitro = nitroConfig;
|
|
668
|
+
}
|
|
669
|
+
return {
|
|
670
|
+
config,
|
|
671
|
+
hasReplayedDatabaseDiscoveryRoot,
|
|
672
|
+
replayedDatabaseDiscoveryRoot
|
|
673
|
+
};
|
|
66
674
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
675
|
+
function resolvedKVFromPlugin(plugin, configured) {
|
|
676
|
+
return plugin?.api?.getConfig?.().kv ?? (configured === void 0 ? false : resolveKVViteConfig(configured).kv);
|
|
677
|
+
}
|
|
678
|
+
const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtInstance) {
|
|
679
|
+
if (!nuxtInstance) return;
|
|
680
|
+
const nuxt = nuxtInstance;
|
|
681
|
+
if (nuxt.hook) Reflect.apply(nuxt.hook, nuxt, ["doctor:extendExtensions", (entries) => {
|
|
682
|
+
entries.push(doctorExtensionEntry);
|
|
683
|
+
}]);
|
|
684
|
+
const moduleOptions = {
|
|
685
|
+
...nuxt.options.vitehub,
|
|
686
|
+
...inlineOptions
|
|
687
|
+
};
|
|
688
|
+
const configuredEnv = moduleOptions.env;
|
|
689
|
+
const envConfig = configuredEnv && typeof configuredEnv === "object" ? {
|
|
690
|
+
define: configuredEnv.define,
|
|
691
|
+
public: configuredEnv.public,
|
|
692
|
+
server: configuredEnv.server
|
|
693
|
+
} : void 0;
|
|
694
|
+
const envOptions = configuredEnv && typeof configuredEnv === "object" ? Object.fromEntries(Object.entries(configuredEnv).filter(([key]) => ![
|
|
695
|
+
"define",
|
|
696
|
+
"public",
|
|
697
|
+
"server"
|
|
698
|
+
].includes(key))) : configuredEnv;
|
|
699
|
+
const rootDir = nuxt.options.rootDir || process.cwd();
|
|
700
|
+
const projectRoot = resolveViteHubProjectRoot(rootDir);
|
|
701
|
+
const options = markCmsPresetFeaturesResolved(withDataDir(resolveCmsPresetFeatures({
|
|
702
|
+
...moduleOptions,
|
|
703
|
+
console: resolveConsoleOptions(moduleOptions.console),
|
|
704
|
+
env: envOptions
|
|
705
|
+
}, {
|
|
706
|
+
projectRoot,
|
|
707
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
708
|
+
})));
|
|
709
|
+
const consoleOptions = resolveConsoleOptions(options.console);
|
|
710
|
+
if (options.connections && nuxt.options.dev === false) throw viteHubErrorDiagnostics.VITE_HUB_B0012({ message: "[vitehub] connections is not supported by the Nuxt module yet. Use the Vite plugin." });
|
|
711
|
+
if (options.connections && !options.database) throw viteHubErrorDiagnostics.VITE_HUB_R0124({ message: "[vitehub] connections in the Nuxt module requires database and a Database Definition, because grants and activity are stored in the app database." });
|
|
712
|
+
const plan = resolveDeploymentPlan(options.preset);
|
|
713
|
+
const configuredOptions = options.database && nuxt.options.database && typeof nuxt.options.database === "object" ? {
|
|
714
|
+
...options,
|
|
715
|
+
database: {
|
|
716
|
+
...nuxt.options.database,
|
|
717
|
+
...options.database === true ? {} : options.database
|
|
718
|
+
}
|
|
719
|
+
} : options;
|
|
720
|
+
const consoleDatabaseRoot = configuredOptions.database && configuredOptions.database !== true && configuredOptions.database.projectRoot !== void 0 ? rootDir : projectRoot;
|
|
721
|
+
const consoleJournal = resolveConsoleJournal(consoleDatabaseUrl(options), consoleD1Binding(plan.preset, configuredOptions.database, {
|
|
722
|
+
root: consoleDatabaseRoot,
|
|
723
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
724
|
+
}), !nuxt.options.dev);
|
|
725
|
+
const nitro = nuxt.options.nitro ??= {};
|
|
726
|
+
const nitroPreset = plan.preset === "cloudflare" && options.realtime ? "cloudflare-durable" : plan.nitroPreset;
|
|
727
|
+
if (typeof nitro.preset === "string" && normalizeNitroPreset(nitro.preset) !== nitroPreset) throw viteHubErrorDiagnostics.VITE_HUB_B0009({ message: "[vitehub] vitehub preset " + JSON.stringify(plan.preset) + " conflicts with nitro.preset " + JSON.stringify(nitro.preset) + "." });
|
|
728
|
+
nitro.preset = nitroPreset;
|
|
729
|
+
if (options.realtime) {
|
|
730
|
+
const experimental = nitro.experimental ??= {};
|
|
731
|
+
experimental.websocket = true;
|
|
732
|
+
}
|
|
733
|
+
if (plan.preset === "cloudflare") {
|
|
734
|
+
const cloudflare = nitro.cloudflare ??= {};
|
|
735
|
+
cloudflare.deployConfig ??= true;
|
|
736
|
+
const wasm = nitro.wasm ??= {};
|
|
737
|
+
wasm.lazy ??= true;
|
|
738
|
+
}
|
|
74
739
|
nuxt.options.vite ??= {};
|
|
740
|
+
nuxt.options.vite.root ??= rootDir;
|
|
741
|
+
const viteRoot = resolve(rootDir, typeof nuxt.options.vite?.root === "string" ? nuxt.options.vite.root : rootDir);
|
|
742
|
+
const configuredDatabaseDiscoveryRoot = configuredProjectRoot(viteRoot, nuxt.options.vite?.database) ?? configuredProjectRoot(rootDir, options.database) ?? configuredProjectRoot(rootDir, nuxt.options.database);
|
|
743
|
+
const viteBlob = nuxt.options.vite.blob;
|
|
744
|
+
const effectiveBlob = consoleOptions ? viteBlob ?? options.blob : false;
|
|
745
|
+
const explicitBlob = Boolean(effectiveBlob && effectiveBlob !== true && ("driver" in effectiveBlob || "stores" in effectiveBlob));
|
|
746
|
+
const consoleBlobEnabled = Boolean(effectiveBlob) && (plan.services.blob.supported || explicitBlob);
|
|
747
|
+
const resolvedConsoleBlob = consoleBlobEnabled ? resolveBlobViteConfig(effectiveBlob === true ? void 0 : effectiveBlob, { hosting: plan.nitroPreset }).blob : false;
|
|
748
|
+
const consoleBlobStores = resolvedConsoleBlob ? Object.keys(resolvedConsoleBlob.stores || { default: resolvedConsoleBlob.store }) : [];
|
|
749
|
+
const effectiveKV = nuxt.options.vite?.kv ?? options.kv;
|
|
750
|
+
const effectiveQueue = nuxt.options.vite?.queue ?? options.queue;
|
|
751
|
+
const effectiveWorkflow = nuxt.options.vite?.workflow ?? options.workflow;
|
|
752
|
+
const consoleSections = resolveConsoleSectionIds({
|
|
753
|
+
...options,
|
|
754
|
+
connections: isConsoleConnectionsEnabled(options, nuxt.options.dev === true) ? options.connections : false,
|
|
755
|
+
env: options.env !== false,
|
|
756
|
+
blob: consoleBlobEnabled,
|
|
757
|
+
kv: effectiveKV,
|
|
758
|
+
preset: plan.preset,
|
|
759
|
+
queue: effectiveQueue,
|
|
760
|
+
sandboxTask: options.sandboxTask === true && plan.services.sandbox.supported,
|
|
761
|
+
workflow: effectiveWorkflow
|
|
762
|
+
});
|
|
763
|
+
const runtimeCapabilityImports = {
|
|
764
|
+
blob: consoleBlobEnabled ? "vite-hub/_internal/blob" : false,
|
|
765
|
+
connections: options.connections ? "vite-hub/connections/agent" : false,
|
|
766
|
+
console: consoleOptions ? "vite-hub/console/server" : false,
|
|
767
|
+
db: options.database ? "vite-hub/database/drizzle" : false,
|
|
768
|
+
email: "vite-hub/email/server",
|
|
769
|
+
kv: "vite-hub/_internal/kv"
|
|
770
|
+
};
|
|
771
|
+
const consoleInvocationRootState = createConsoleInvocationRootState();
|
|
772
|
+
const consoleInvokeEnabled = consoleOptions ? consoleOptions.invoke ?? Boolean(nuxt.options.dev) : false;
|
|
773
|
+
let resolvedConsoleFixture;
|
|
774
|
+
let generatedConsolePluginPath;
|
|
775
|
+
let consoleWorkflowConfigResolved = false;
|
|
776
|
+
const effectiveAuth = nuxt.options.vite?.auth ?? options.auth;
|
|
777
|
+
let consoleHasPrimaryAuth = false;
|
|
778
|
+
let consoleAccess;
|
|
779
|
+
if (consoleOptions) {
|
|
780
|
+
const configuredConsole = resolveConsoleOptions(consoleOptions);
|
|
781
|
+
if (!configuredConsole) throw new TypeError("[vitehub] Invalid console configuration");
|
|
782
|
+
if (!nuxt.options.vitehubCliDiscovery) {
|
|
783
|
+
const appAuth = effectiveAuth ? resolveAuthViteConfig(effectiveAuth === true ? void 0 : effectiveAuth, viteRoot, { serverDirs: resolveNuxtServerDirs(nuxt.options) }) : void 0;
|
|
784
|
+
consoleHasPrimaryAuth = Boolean(appAuth);
|
|
785
|
+
const authIndex = consoleSections.indexOf("auth");
|
|
786
|
+
if (!appAuth && authIndex !== -1) consoleSections.splice(authIndex, 1);
|
|
787
|
+
if (appAuth && authIndex === -1) consoleSections.push("auth");
|
|
788
|
+
assertConsoleAccess(configuredConsole, {
|
|
789
|
+
auth: appAuth,
|
|
790
|
+
sections: consoleSections,
|
|
791
|
+
base: nuxt.options.app?.baseURL
|
|
792
|
+
});
|
|
793
|
+
assertConsoleProductionAccess(configuredConsole, {
|
|
794
|
+
auth: appAuth,
|
|
795
|
+
base: nuxt.options.app?.baseURL,
|
|
796
|
+
development: nuxt.options.dev === true,
|
|
797
|
+
sections: consoleSections
|
|
798
|
+
});
|
|
799
|
+
const consoleAuthMode = registeredConsoleAuthMode(consoleAuthConfig(configuredConsole), Boolean(nuxt.options.dev));
|
|
800
|
+
consoleAccess = resolveConsoleAccessBuild(configuredConsole, {
|
|
801
|
+
appAuth,
|
|
802
|
+
base: nuxt.options.app?.baseURL,
|
|
803
|
+
handlers: consoleAuthMode ? {
|
|
804
|
+
auth: consoleAuthMode,
|
|
805
|
+
middleware: consoleAuthMiddlewareFile(viteRoot)
|
|
806
|
+
} : void 0,
|
|
807
|
+
root: viteRoot,
|
|
808
|
+
sections: consoleSections
|
|
809
|
+
});
|
|
810
|
+
const openAccessWarning = nuxt.options.dev ? void 0 : consoleOpenAccessBuildWarning(configuredConsole, plan.preset);
|
|
811
|
+
if (openAccessWarning) console.warn(openAccessWarning);
|
|
812
|
+
}
|
|
813
|
+
const fixture = nuxt.options.vitehubCliDiscovery ? void 0 : process.env[consoleFixtureEnvironmentVariable];
|
|
814
|
+
if (fixture && !nuxt.options.dev) throw viteHubErrorDiagnostics.VITE_HUB_B0010({ message: "[vitehub] Console fixture mode is development-only." });
|
|
815
|
+
resolvedConsoleFixture = fixture ? resolve(projectRoot, fixture) : void 0;
|
|
816
|
+
if (resolvedConsoleFixture) readConsoleFixture(resolvedConsoleFixture);
|
|
817
|
+
}
|
|
75
818
|
const viteConfig = nuxt.options.vite;
|
|
819
|
+
if (envConfig && Object.values(envConfig).some(Boolean)) {
|
|
820
|
+
const existingEnv = viteConfig.env ?? {};
|
|
821
|
+
viteConfig.env = {
|
|
822
|
+
...existingEnv,
|
|
823
|
+
...envConfig.define ? { define: mergeEnvDeclarationNamespaces(existingEnv.define, envConfig.define) } : {},
|
|
824
|
+
...envConfig.public ? { public: mergeEnvDeclarationNamespaces(existingEnv.public, envConfig.public) } : {},
|
|
825
|
+
...envConfig.server ? { server: mergeEnvDeclarationNamespaces(existingEnv.server, envConfig.server) } : {}
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
const secondaryProjectRoots = [.../* @__PURE__ */ new Set([...configuredProjectRoots(configuredOptions, rootDir, viteRoot), ...configuredOptions.connections ? [viteRoot] : []])].filter((root) => root !== projectRoot);
|
|
829
|
+
const generatedTypes = [
|
|
830
|
+
relative(nuxt.options.buildDir, join(projectRoot, ".vitehub/types.d.ts")),
|
|
831
|
+
...effectiveQueue ? [relative(nuxt.options.buildDir, join(projectRoot, ".vitehub/queue.d.ts"))] : [],
|
|
832
|
+
...secondaryProjectRoots.map((root) => relative(nuxt.options.buildDir, join(root, ".vitehub/**/*.d.ts")))
|
|
833
|
+
];
|
|
834
|
+
const generatedData = secondaryProjectRoots.map((root) => relative(nuxt.options.buildDir, join(root, ".vitehub/data/**/*.d.ts")));
|
|
835
|
+
if (options.preset === "cloudflare") generatedTypes.push(relative(nuxt.options.buildDir, cloudflareTypes));
|
|
836
|
+
addTypeScriptDefaults(nuxt.options, generatedTypes, generatedData);
|
|
837
|
+
addTypeScriptDefaults(nuxt.options, generatedTypes, generatedData, "sharedTsConfig");
|
|
838
|
+
addTypeScriptDefaults(nuxt.options.nitro ??= {}, generatedTypes, generatedData);
|
|
839
|
+
if (options.database) {
|
|
840
|
+
const nuxtDatabaseOptions = nuxt.options.database && typeof nuxt.options.database === "object" ? nuxt.options.database : {};
|
|
841
|
+
const viteDatabaseOptions = viteConfig.database && typeof viteConfig.database === "object" ? viteConfig.database : {};
|
|
842
|
+
const viteDatabaseRoot = configuredProjectRoot(viteRoot, viteDatabaseOptions);
|
|
843
|
+
const databaseOptions = {
|
|
844
|
+
...nuxtDatabaseOptions,
|
|
845
|
+
...viteDatabaseOptions,
|
|
846
|
+
...viteDatabaseRoot !== void 0 ? { projectRoot: viteDatabaseRoot } : {},
|
|
847
|
+
...options.database === true ? {} : options.database
|
|
848
|
+
};
|
|
849
|
+
const defaultD1 = options.preset === "cloudflare" && !("driver" in databaseOptions) && !usesOnlyPostgresDatabases(resolveViteHubProjectRoot(rootDir, { projectRoot: databaseOptions.projectRoot }), databaseOptions.projectRoot === void 0 && nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0);
|
|
850
|
+
await hubDb(defaultD1 ? {
|
|
851
|
+
driver: "d1",
|
|
852
|
+
...databaseOptions
|
|
853
|
+
} : databaseOptions)(void 0, nuxt);
|
|
854
|
+
}
|
|
855
|
+
const installedPlugins = flattenPlugins(vitehub(options)).filter((plugin) => !isIncludedNitroPlugin(plugin)).filter((plugin) => !(options.database && plugin.name === "@vite-hub/database/vite")).filter((plugin) => !consoleOptions || !["vite-hub/console", "vite-hub/console-invocation-root"].includes(plugin.name));
|
|
856
|
+
const consoleFixtureSnapshot = resolvedConsoleFixture ? readConsoleFixture(resolvedConsoleFixture) : void 0;
|
|
857
|
+
const plugins = [
|
|
858
|
+
...installedPlugins.filter((plugin) => plugin.name !== "vite-hub/deployment-output"),
|
|
859
|
+
...nuxt.options.vitehubCliDiscovery ? [{
|
|
860
|
+
name: "vite-hub/deployment-inspect",
|
|
861
|
+
vitehub: { inspect: () => {
|
|
862
|
+
const nitro = nuxt.options.nitro;
|
|
863
|
+
return { providerOutput: describeDeploymentPlanOutput(plan, resolve(nitro?.rootDir ?? rootDir), nitro?.output?.dir) };
|
|
864
|
+
} }
|
|
865
|
+
}] : [],
|
|
866
|
+
...consoleOptions ? [{
|
|
867
|
+
name: "vite-hub/console-cli",
|
|
868
|
+
vitehub: { cli: { namespaces: [createConsoleCliNamespace()] } }
|
|
869
|
+
}] : [],
|
|
870
|
+
...consoleOptions && options.agent ? [consoleInvocationRootPlugin(projectRoot, createConsoleInvocationsIdentity(projectRoot, resolvedConsoleFixture, consoleFixtureSnapshot ? consoleFixtureRevision(consoleFixtureSnapshot) : void 0, consoleInvocationRootState.binding), consoleInvocationRootState)] : []
|
|
871
|
+
];
|
|
872
|
+
const existing = withoutDeploymentOutput(Array.isArray(nuxt.options.vite?.plugins) ? nuxt.options.vite.plugins : []);
|
|
873
|
+
const existingPluginsByName = new Map(flattenPlugins(existing).filter((plugin) => plugin.name).map((plugin) => [plugin.name, plugin]));
|
|
874
|
+
const replayPlugins = [...installedPlugins.map((plugin) => existingPluginsByName.get(plugin.name) || plugin), ...flattenPlugins(existing).filter((plugin) => (plugin.name.startsWith("@vite-hub/") || plugin.name.startsWith("vite-hub/")) && !plugins.some((candidate) => candidate.name === plugin.name))];
|
|
875
|
+
const commentsPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/comments/vite");
|
|
876
|
+
if (commentsPlugin) {
|
|
877
|
+
await commentsPlugin.api.setComponents([]);
|
|
878
|
+
nuxt.hook?.("app:templatesGenerated", (app) => commentsPlugin.api.setComponents(app.components));
|
|
879
|
+
}
|
|
880
|
+
const retainedKVPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/kv/vite");
|
|
881
|
+
const envPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/env/vite");
|
|
882
|
+
if (envPlugin) for (const plugin of replayPlugins) deploymentOutputEnvPluginHandler(plugin)?.(envPlugin);
|
|
883
|
+
if (options.env !== false) await envPlugin?.api?.prepareTypes?.(viteConfig.env, viteRoot);
|
|
884
|
+
const emailPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/email/vite");
|
|
885
|
+
const emailTemplatePaths = await emailPlugin?.api?.prepareTypes?.({
|
|
886
|
+
materialize: true,
|
|
887
|
+
projectRoot,
|
|
888
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
889
|
+
}) ?? {};
|
|
890
|
+
const emailCleanupPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/email/optional-peer-resolver");
|
|
891
|
+
if (!emailPlugin) await emailCleanupPlugin?.api?.prepareTypes?.(projectRoot);
|
|
892
|
+
const sourcePlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/source/vite");
|
|
893
|
+
let generatedSourceHandlers = await sourcePlugin?.api?.prepareSources?.({
|
|
894
|
+
projectRoot,
|
|
895
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
896
|
+
}) ?? [];
|
|
897
|
+
await replayPlugins.find((plugin) => plugin.name === "@vite-hub/connections/vite" || plugin.name === "@vite-hub/connections/types-cleanup")?.api?.prepareTypes?.({
|
|
898
|
+
projectRoot: viteRoot,
|
|
899
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
900
|
+
});
|
|
901
|
+
const typesPlugin = replayPlugins.find((plugin) => plugin.name === "vite-hub/types");
|
|
902
|
+
let generatedSourceRestart = Promise.resolve();
|
|
903
|
+
let generatedSourceRestartClosed = false;
|
|
904
|
+
const removeGeneratedHandlersListener = sourcePlugin?.api?.onGeneratedHandlersChanged?.((handlers) => {
|
|
905
|
+
const restart = generatedSourceRestart.then(async () => {
|
|
906
|
+
if (generatedSourceRestartClosed) return;
|
|
907
|
+
const previousHandlers = generatedSourceHandlers;
|
|
908
|
+
generatedSourceHandlers = handlers;
|
|
909
|
+
try {
|
|
910
|
+
await typesPlugin?.api?.prepareTypes?.({ projectRoot });
|
|
911
|
+
if (generatedSourceRestartClosed) return;
|
|
912
|
+
await nuxt.callHook?.("restart");
|
|
913
|
+
} catch (error) {
|
|
914
|
+
generatedSourceHandlers = previousHandlers;
|
|
915
|
+
throw error;
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
generatedSourceRestart = restart.catch(() => {});
|
|
919
|
+
return restart;
|
|
920
|
+
}, {
|
|
921
|
+
handlesHostRestart: true,
|
|
922
|
+
projectRoot
|
|
923
|
+
});
|
|
924
|
+
if (removeGeneratedHandlersListener) nuxt.hook?.("close", async () => {
|
|
925
|
+
generatedSourceRestartClosed = true;
|
|
926
|
+
removeGeneratedHandlersListener();
|
|
927
|
+
});
|
|
928
|
+
if (nuxt.options.dev && !nuxt.options.vitehubCliDiscovery) publishNuxtDevServer(nuxt);
|
|
929
|
+
typesPlugin?.api?.setPrepareSources?.(sourcePlugin?.api?.prepareSources);
|
|
930
|
+
await typesPlugin?.api?.prepareTypes?.({ projectRoot });
|
|
931
|
+
viteConfig.define = {
|
|
932
|
+
...viteConfig.define,
|
|
933
|
+
__VITEHUB_APP_BASE_URL__: JSON.stringify(nuxt.options.app?.baseURL || "/")
|
|
934
|
+
};
|
|
935
|
+
viteConfig[VITEHUB_GENERATED_ROOT] = join(nuxt.options.buildDir, "vitehub");
|
|
76
936
|
viteConfig[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
77
|
-
|
|
78
|
-
nuxt.options.
|
|
79
|
-
|
|
80
|
-
if (
|
|
937
|
+
viteConfig[VITEHUB_PROJECT_ROOT] = projectRoot;
|
|
938
|
+
viteConfig[VITEHUB_APP_BASE_URL] = nuxt.options.app?.baseURL || "/";
|
|
939
|
+
const viteServerDirs = resolveNuxtServerDirs(nuxt.options);
|
|
940
|
+
if (viteServerDirs) viteConfig[VITEHUB_SERVER_DIRS] = viteServerDirs;
|
|
941
|
+
const installedVitePlugins = [...plugins.map((plugin) => existingPluginsByName.get(plugin.name) || plugin), ...filterPluginOptions(existing, (plugin) => !plugins.some((candidate) => candidate.name === plugin.name))];
|
|
942
|
+
nuxt.options.vite.plugins = installedVitePlugins;
|
|
943
|
+
const configuredEnvProjectRootOption = options.env && typeof options.env === "object" ? options.env.projectRoot : void 0;
|
|
944
|
+
const configuredEnvProjectRoot = configuredEnvProjectRootOption ? resolve(viteRoot, configuredEnvProjectRootOption) : void 0;
|
|
945
|
+
const envProjectRoot = envPlugin?.api?.resolveProjectRoot?.(viteRoot) ?? configuredEnvProjectRoot ?? projectRoot;
|
|
946
|
+
if (envPlugin?.api?.resolveProjectRoot && configuredEnvProjectRoot) {
|
|
947
|
+
if (configuredEnvProjectRoot !== envProjectRoot) throw viteHubErrorDiagnostics.VITE_HUB_B0011({ message: `[vitehub] Env projectRoot ${JSON.stringify(configuredEnvProjectRootOption)} conflicts with the installed Env Vite plugin.` });
|
|
948
|
+
}
|
|
949
|
+
const generatedAliases = {
|
|
950
|
+
...options.env === false ? {} : createEnvImportAliases({ projectRoot: envProjectRoot }),
|
|
951
|
+
...!nuxt.options.dev ? Object.fromEntries(Object.entries(emailTemplatePaths).map(([name, path]) => [`#vitehub/emails/${name}`, path])) : {},
|
|
952
|
+
...emailPlugin && !nuxt.options.dev ? { "#vitehub/emails": join(projectRoot, ".vitehub/email/templates") } : {}
|
|
953
|
+
};
|
|
954
|
+
const consoleAuthClientWatchers = /* @__PURE__ */ new Set();
|
|
955
|
+
let watchNewConsoleAuthClientSources;
|
|
956
|
+
if (nuxt.options.dev && consoleAuthConfig(consoleOptions)) {
|
|
957
|
+
if (nuxt.hook) Reflect.apply(nuxt.hook, nuxt, ["vite:serverCreated", (server, context) => {
|
|
958
|
+
if (!context.isClient || consoleAuthClientWatchers.has(server.watcher)) return;
|
|
959
|
+
consoleAuthClientWatchers.add(server.watcher);
|
|
960
|
+
watchNewConsoleAuthClientSources?.(server.watcher);
|
|
961
|
+
}]);
|
|
962
|
+
}
|
|
963
|
+
nuxt.hook?.("nitro:config", async (config) => {
|
|
964
|
+
const { config: replayConfig, hasReplayedDatabaseDiscoveryRoot, replayedDatabaseDiscoveryRoot } = await applyNitroConfig(replayPlugins, config, nuxt, projectRoot);
|
|
965
|
+
if (options.env !== false) await envPlugin?.api?.prepareTypes?.(replayConfig.env, viteRoot);
|
|
966
|
+
consoleWorkflowConfigResolved = true;
|
|
967
|
+
if (consoleOptions) {
|
|
968
|
+
const configuredConsoleAuth = consoleAuthConfig(consoleOptions);
|
|
969
|
+
const resolvedConsoleAuthBase = configuredConsoleAuth ? resolveConsoleAuthConfig(viteRoot, configuredConsoleAuth, plan.preset) : void 0;
|
|
970
|
+
const developmentSecretEnvKey = replayConfig.__vitehubEnvDevelopmentSecretEnvKey;
|
|
971
|
+
const resolvedConsoleAuth = resolvedConsoleAuthBase && "provider" in resolvedConsoleAuthBase && resolvedConsoleAuthBase.provider === "github" ? {
|
|
972
|
+
...resolvedConsoleAuthBase,
|
|
973
|
+
developmentSecretEnvKey
|
|
974
|
+
} : resolvedConsoleAuthBase;
|
|
975
|
+
if (resolvedConsoleAuth && registeredConsoleAuthMode(configuredConsoleAuth, Boolean(nuxt.options.dev))) {
|
|
976
|
+
const authConfig = resolvedConsoleAuth;
|
|
977
|
+
const mcpResource = consoleOptions.mcp?.resource;
|
|
978
|
+
let authHandlers = await writeConsoleAuthHandlers(viteRoot, authConfig, nuxt.options.app?.baseURL ?? "/", mcpResource);
|
|
979
|
+
if (nuxt.options.dev && authHandlers.clientSource) {
|
|
980
|
+
const clientDirectories = /* @__PURE__ */ new Set();
|
|
981
|
+
const newClientDirectories = /* @__PURE__ */ new Set();
|
|
982
|
+
const rebuildClient = serializeConsoleRefresh(async () => {
|
|
983
|
+
authHandlers = await writeConsoleAuthHandlers(viteRoot, authConfig, nuxt.options.app?.baseURL ?? "/", mcpResource);
|
|
984
|
+
watchClientSources();
|
|
985
|
+
});
|
|
986
|
+
const watchClientSources = () => {
|
|
987
|
+
for (const source of authHandlers.clientSources) {
|
|
988
|
+
const directory = dirname(source);
|
|
989
|
+
if (clientDirectories.size && !clientDirectories.has(directory)) newClientDirectories.add(directory);
|
|
990
|
+
clientDirectories.add(directory);
|
|
991
|
+
}
|
|
992
|
+
nuxt.options.watch = [.../* @__PURE__ */ new Set([
|
|
993
|
+
...nuxt.options.watch ?? [],
|
|
994
|
+
...clientDirectories,
|
|
995
|
+
...authHandlers.clientSources
|
|
996
|
+
])];
|
|
997
|
+
for (const watcher of consoleAuthClientWatchers) watcher.add([...newClientDirectories]);
|
|
998
|
+
};
|
|
999
|
+
watchNewConsoleAuthClientSources = (watcher) => {
|
|
1000
|
+
watcher.add([...newClientDirectories]);
|
|
1001
|
+
for (const event of [
|
|
1002
|
+
"add",
|
|
1003
|
+
"change",
|
|
1004
|
+
"unlink"
|
|
1005
|
+
]) watcher.on(event, (path) => {
|
|
1006
|
+
if ([...newClientDirectories].some((directory) => path.startsWith(`${directory}${sep}`))) rebuildClient().catch((error) => console.error(error));
|
|
1007
|
+
});
|
|
1008
|
+
};
|
|
1009
|
+
for (const watcher of consoleAuthClientWatchers) watchNewConsoleAuthClientSources(watcher);
|
|
1010
|
+
watchClientSources();
|
|
1011
|
+
const hookBuilderWatch = nuxt.hook;
|
|
1012
|
+
hookBuilderWatch?.("builder:watch", async (_event, path) => {
|
|
1013
|
+
const changedPath = resolve(viteRoot, path);
|
|
1014
|
+
if ([...clientDirectories].some((directory) => changedPath.startsWith(`${directory}${sep}`)) || authHandlers.clientSources.includes(changedPath)) await rebuildClient();
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
if (authHandlers.client && Array.isArray(config.handlers)) config.handlers = config.handlers.filter((handler) => handler.handler !== join(consoleRuntimeRoot, "server/client.get.js"));
|
|
1018
|
+
const kit = createNitroServerKit(config);
|
|
1019
|
+
if (authHandlers.signIn) kit.addHandler({
|
|
1020
|
+
handler: authHandlers.signIn,
|
|
1021
|
+
lazy: true,
|
|
1022
|
+
route: mountPath(nuxt.options.app?.baseURL, "/_vitehub/sign-in"),
|
|
1023
|
+
method: "get"
|
|
1024
|
+
});
|
|
1025
|
+
if (authHandlers.route) kit.addHandler({
|
|
1026
|
+
handler: authHandlers.route,
|
|
1027
|
+
lazy: true,
|
|
1028
|
+
route: mountPath(nuxt.options.app?.baseURL, "/api/_vitehub/console/auth/**")
|
|
1029
|
+
});
|
|
1030
|
+
if (authHandlers.client) kit.addHandler({
|
|
1031
|
+
handler: authHandlers.client,
|
|
1032
|
+
lazy: true,
|
|
1033
|
+
route: mountPath(nuxt.options.app?.baseURL, "/api/_vitehub/console/client.js"),
|
|
1034
|
+
method: "get"
|
|
1035
|
+
});
|
|
1036
|
+
kit.addHandler({
|
|
1037
|
+
handler: authHandlers.middleware,
|
|
1038
|
+
middleware: true,
|
|
1039
|
+
route: "/**"
|
|
1040
|
+
});
|
|
1041
|
+
Object.assign(config, kit.config);
|
|
1042
|
+
}
|
|
1043
|
+
const resolvedKV = resolvedKVFromPlugin(retainedKVPlugin, viteConfig.kv);
|
|
1044
|
+
const replayedBlob = replayConfig.blob ?? effectiveBlob;
|
|
1045
|
+
const replayedExplicitBlob = Boolean(replayedBlob && replayedBlob !== true && ("driver" in replayedBlob || "stores" in replayedBlob));
|
|
1046
|
+
const replayedBlobEnabled = Boolean(replayedBlob) && (plan.services.blob.supported || replayedExplicitBlob);
|
|
1047
|
+
const resolvedReplayedBlob = replayedBlobEnabled ? resolveBlobViteConfig(replayedBlob === true ? void 0 : replayedBlob, { hosting: plan.nitroPreset }).blob : false;
|
|
1048
|
+
const replayedDatabase = hasReplayedDatabaseDiscoveryRoot ? replayConfig.database ?? configuredOptions.database : configuredOptions.database;
|
|
1049
|
+
const replayedJournalDatabase = replayedDatabase && replayedDatabase !== true && hasReplayedDatabaseDiscoveryRoot ? {
|
|
1050
|
+
...replayedDatabase,
|
|
1051
|
+
projectRoot: replayedDatabaseDiscoveryRoot
|
|
1052
|
+
} : replayedDatabase;
|
|
1053
|
+
const replayedConsoleJournal = resolveConsoleJournal(consoleDatabaseUrl(options), consoleD1Binding(plan.preset, replayedJournalDatabase, {
|
|
1054
|
+
root: hasReplayedDatabaseDiscoveryRoot ? projectRoot : consoleDatabaseRoot,
|
|
1055
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
1056
|
+
}), !nuxt.options.dev);
|
|
1057
|
+
const resolvedSections = resolveConsoleSectionIds({
|
|
1058
|
+
...options,
|
|
1059
|
+
auth: consoleHasPrimaryAuth,
|
|
1060
|
+
connections: isConsoleConnectionsEnabled(options, nuxt.options.dev === true) ? options.connections : false,
|
|
1061
|
+
env: options.env !== false,
|
|
1062
|
+
blob: replayedBlobEnabled,
|
|
1063
|
+
database: replayConfig.database ?? options.database,
|
|
1064
|
+
email: options.email,
|
|
1065
|
+
kv: resolvedKV,
|
|
1066
|
+
preset: plan.preset,
|
|
1067
|
+
queue: effectiveQueue === false ? false : effectiveQueue === void 0 ? void 0 : replayConfig.queue ?? effectiveQueue,
|
|
1068
|
+
sandboxTask: Boolean(replayConfig.sandboxTask ?? options.sandboxTask) && plan.services.sandbox.supported,
|
|
1069
|
+
workspace: replayConfig.workspace ?? options.workspace,
|
|
1070
|
+
workflow: replayConfig.workflow ?? options.workflow
|
|
1071
|
+
});
|
|
1072
|
+
const entrySections = await discoverConsoleEntrySections({
|
|
1073
|
+
discoveryRoot: viteRoot,
|
|
1074
|
+
projectRoot,
|
|
1075
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
1076
|
+
});
|
|
1077
|
+
consoleSections.splice(0, consoleSections.length, .../* @__PURE__ */ new Set([...resolvedSections, ...entrySections]));
|
|
1078
|
+
consoleBlobStores.splice(0, consoleBlobStores.length, ...resolvedReplayedBlob ? Object.keys(resolvedReplayedBlob.stores || { default: resolvedReplayedBlob.store }) : []);
|
|
1079
|
+
installConsoleSections(projectRoot, consoleSections, Boolean(consoleAuthConfig(consoleOptions)));
|
|
1080
|
+
installConsoleProjectName(projectRoot, resolveConsoleProjectNameFromRoot(projectRoot));
|
|
1081
|
+
addConsoleRpcHandler(config, consoleRuntimeRoot, nuxt.options.app?.baseURL, consoleSections, Boolean(consoleAccess?.oauth));
|
|
1082
|
+
addConsolePageHandlers(config, consoleRuntimeRoot, nuxt.options.app?.baseURL, configuredConsoleAuth ? void 0 : consoleAccess?.signInPage);
|
|
1083
|
+
if (consoleSections.includes("connections")) {
|
|
1084
|
+
const consoleAlias = config.alias ??= {};
|
|
1085
|
+
consoleAlias[consoleConnectionsActorId] = await writeConsoleConnectionsActor(viteRoot);
|
|
1086
|
+
}
|
|
1087
|
+
const consoleCatalog = await discoverConsoleBuildCatalog({
|
|
1088
|
+
contentImportBase: options.contentImportBase ?? "vite-hub/content",
|
|
1089
|
+
databaseDiscoveryRoot: hasReplayedDatabaseDiscoveryRoot ? replayedDatabaseDiscoveryRoot : configuredDatabaseDiscoveryRoot,
|
|
1090
|
+
discoveryRoot: viteRoot,
|
|
1091
|
+
plugins: nuxt.options.vite?.plugins,
|
|
1092
|
+
projectRoot,
|
|
1093
|
+
queueDiscoveryRoot: rootDir,
|
|
1094
|
+
rateLimitDiscoveryRoot: configuredProjectRoot(viteRoot, replayConfig.rateLimit ?? nuxt.options.vite?.rateLimit ?? options.rateLimit),
|
|
1095
|
+
rateLimitScanDirs: configuredScanDirs(replayConfig.rateLimit ?? nuxt.options.vite?.rateLimit ?? options.rateLimit),
|
|
1096
|
+
sections: consoleSections,
|
|
1097
|
+
scheduleDiscoveryRoot: configuredProjectRoot(viteRoot, options.schedule),
|
|
1098
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options),
|
|
1099
|
+
workspaceDiscoveryRoot: configuredProjectRoot(viteRoot, replayConfig.workspace ?? nuxt.options.vite?.workspace ?? options.workspace),
|
|
1100
|
+
workflowDiscoveryRoot: rootDir
|
|
1101
|
+
});
|
|
1102
|
+
await writeConsoleNitroPlugin(generatedConsolePluginPath ?? resolveGeneratedConsolePlugin(projectRoot, resolvedConsoleFixture, consoleInvocationRootState), projectRoot, consoleSections, consoleCatalog.agents, consoleCatalog, consoleBlobStores, resolvedConsoleFixture, consoleInvocationRootState.binding, consoleInvokeEnabled && !resolvedConsoleFixture, consoleOptions.observations, () => !consoleInvocationRootState.closed, replayedConsoleJournal, registeredConsoleAuthMode(consoleAuthConfig(consoleOptions), Boolean(nuxt.options.dev)), consoleOptions.retention, consoleAccess, runtimeCapabilityImports, nuxt.options.dev === true, nuxt.options.app?.baseURL);
|
|
1103
|
+
}
|
|
1104
|
+
Object.assign(config, mergeGeneratedSourceNitroConfig(config, generatedSourceHandlers));
|
|
1105
|
+
const externals = isPlainObject(config.externals) ? config.externals : {};
|
|
1106
|
+
const inline = Array.isArray(externals.inline) ? externals.inline : [];
|
|
1107
|
+
config.externals = {
|
|
1108
|
+
...externals,
|
|
1109
|
+
inline: externals.inline === true ? true : [.../* @__PURE__ */ new Set([
|
|
1110
|
+
...inline,
|
|
1111
|
+
"vite-hub",
|
|
1112
|
+
"@vite-hub/",
|
|
1113
|
+
join(projectRoot, ".vitehub"),
|
|
1114
|
+
h3RuntimeRoot
|
|
1115
|
+
])]
|
|
1116
|
+
};
|
|
1117
|
+
installNitroRuntimeResolvers(config, replayPlugins);
|
|
1118
|
+
normalizeGeneratedNitroPlugins(config, projectRoot);
|
|
1119
|
+
installNitroBuildPlugins(config, [join(projectRoot, ".vitehub"), join(nuxt.options.buildDir, "vitehub")], nuxt.options.dev === true && plan.preset === "cloudflare");
|
|
1120
|
+
if (nuxt.options.dev && plan.preset === "cloudflare") {
|
|
1121
|
+
const alias = config.alias ??= {};
|
|
1122
|
+
alias["cloudflare:workers"] ??= await writeCloudflareWorkersDevShim(nuxt.options.buildDir);
|
|
1123
|
+
}
|
|
1124
|
+
if (plan.preset === "cloudflare") {
|
|
1125
|
+
const cloudflare = config.cloudflare ??= {};
|
|
1126
|
+
const envServer = generatedAliases["#vitehub/env/server"];
|
|
1127
|
+
if (envServer) {
|
|
1128
|
+
const wrangler = cloudflare.wrangler ??= {};
|
|
1129
|
+
const alias = wrangler.alias ??= {};
|
|
1130
|
+
const nitroEnvServer = config.alias?.["#vitehub/env/server"];
|
|
1131
|
+
alias["#vitehub/env/server"] ??= await projectWranglerEnvAlias(typeof config.rootDir === "string" ? config.rootDir : rootDir) ?? nitroEnvServer ?? envServer;
|
|
1132
|
+
}
|
|
1133
|
+
if (cloudflare.nodeCompat === true) {
|
|
1134
|
+
const wrangler = cloudflare.wrangler ??= {};
|
|
1135
|
+
const flags = Array.isArray(wrangler.compatibility_flags) ? wrangler.compatibility_flags : [];
|
|
1136
|
+
const modules = Array.isArray(config.modules) ? config.modules : config.modules ? [config.modules] : [];
|
|
1137
|
+
const installed = modules.some((module) => isPlainObject(module) && module.name === cloudflareNodeCompatModuleName);
|
|
1138
|
+
const project = await readProjectWranglerConfig(typeof config.rootDir === "string" ? config.rootDir : rootDir);
|
|
1139
|
+
const explicit = [...flags, ...Array.isArray(project?.compatibility_flags) ? project.compatibility_flags : []];
|
|
1140
|
+
if (explicit.includes("no_nodejs_compat")) cloudflare.nodeCompat = false;
|
|
1141
|
+
else if (markedNitroConfigs.has(config) || !explicit.includes("nodejs_compat_v2") && !explicit.includes("no_nodejs_compat_v2")) {
|
|
1142
|
+
wrangler.compatibility_flags = [.../* @__PURE__ */ new Set([...flags, "nodejs_compat_v2"])];
|
|
1143
|
+
markedNitroConfigs.add(config);
|
|
1144
|
+
if (!installed) config.modules = [...modules, cloudflareNodeCompatModule];
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
if (emailPlugin && nuxt.options.dev) installEmailTemplateResolver(config, join(projectRoot, ".vitehub/email/templates"));
|
|
1149
|
+
const alias = config.alias ??= {};
|
|
1150
|
+
for (const [name, path] of Object.entries(generatedAliases)) alias[name] ??= path;
|
|
1151
|
+
const kv = resolvedKVFromPlugin(retainedKVPlugin, viteConfig.kv);
|
|
1152
|
+
if (!kv) (config.virtual ??= {})["#vitehub/kv/config"] ??= disabledKVConfigModule;
|
|
1153
|
+
if (!hasUpstashStore(kv)) alias[upstashDriverSpecifier] ??= disabledUpstashDriver;
|
|
1154
|
+
if (options.kv) addNitroImports(config, "vite-hub/kv", ["kv"]);
|
|
1155
|
+
if (options.blob) addNitroImports(config, "vite-hub/blob", ["blob"]);
|
|
1156
|
+
if (options.database) addNitroImports(config, "vite-hub/database/drizzle", ["db", "schema"]);
|
|
1157
|
+
installGeneratedTypeScriptCompiler(config, join(nuxt.options.buildDir, "vitehub"));
|
|
1158
|
+
});
|
|
1159
|
+
if (options.agent) {
|
|
1160
|
+
addVueImports(nuxt, "vite-hub/agent/vue", agentVueComposables);
|
|
1161
|
+
const optimizeDeps = nuxt.options.vite.optimizeDeps ??= {};
|
|
1162
|
+
const include = optimizeDeps.include ??= [];
|
|
1163
|
+
if (!include.includes("vite-hub/agent/vue")) include.push("vite-hub/agent/vue");
|
|
1164
|
+
}
|
|
1165
|
+
addVueImports(nuxt, "vite-hub/source/client", ["useCollection"]);
|
|
1166
|
+
if (effectiveAuth) {
|
|
1167
|
+
const envOptions = options.env || {};
|
|
1168
|
+
hubAuthNuxt({
|
|
1169
|
+
auth: effectiveAuth === true ? void 0 : effectiveAuth,
|
|
1170
|
+
env: options.env === false ? false : { projectRoot: envOptions.projectRoot },
|
|
1171
|
+
importsFrom: "vite-hub/auth/vue",
|
|
1172
|
+
nitro: false
|
|
1173
|
+
}, nuxt);
|
|
1174
|
+
}
|
|
1175
|
+
const nuxtAlias = nuxt.options.alias ??= {};
|
|
1176
|
+
const nitroAlias = (nuxt.options.nitro ??= {}).alias ??= {};
|
|
1177
|
+
if (emailPlugin && nuxt.options.dev) installEmailTemplateResolver(nuxt.options.nitro, join(projectRoot, ".vitehub/email/templates"));
|
|
1178
|
+
for (const [name, path] of Object.entries(generatedAliases)) {
|
|
1179
|
+
nuxtAlias[name] ??= path;
|
|
1180
|
+
nitroAlias[name] ??= path;
|
|
1181
|
+
}
|
|
1182
|
+
if (options.blob) addVueImports(nuxt, "vite-hub/blob/vue", ["useMultipartUpload", "useUpload"]);
|
|
1183
|
+
if (options.realtime) {
|
|
1184
|
+
addVueImports(nuxt, "vite-hub/realtime", ["defineRealtime"]);
|
|
1185
|
+
addVueImports(nuxt, "vite-hub/realtime/vue", ["useRealtimeTiptap"]);
|
|
1186
|
+
}
|
|
1187
|
+
if (options.database) {
|
|
1188
|
+
const nuxtAlias = nuxt.options.alias ??= {};
|
|
1189
|
+
nuxtAlias["@vite-hub/database/runtime/state"] ??= databaseRuntimeState;
|
|
1190
|
+
if (!nuxt.options.dev) nuxt.hook?.("nitro:config", async (config) => {
|
|
1191
|
+
const alias = config.alias ??= {};
|
|
1192
|
+
alias["@vite-hub/database/runtime/state"] ??= nuxtAlias["@vite-hub/database/runtime/state"];
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
if (consoleOptions) generatedConsolePluginPath = await installConsole(nuxt, projectRoot, viteRoot, rootDir, rootDir, consoleSections, consoleBlobStores, resolvedConsoleFixture, resolveNuxtServerDirs(nuxt.options), !nuxt.options.vitehubCliDiscovery && !hasDefaultAgentInvocations(options.agent), !nuxt.options.vitehubCliDiscovery, consoleInvokeEnabled && !resolvedConsoleFixture, consoleOptions.observations, consoleInvocationRootState, () => consoleWorkflowConfigResolved, {
|
|
1196
|
+
contentImportBase: options.contentImportBase ?? "vite-hub/content",
|
|
1197
|
+
databaseDiscoveryRoot: configuredDatabaseDiscoveryRoot,
|
|
1198
|
+
plugins: nuxt.options.vite?.plugins,
|
|
1199
|
+
rateLimitDiscoveryRoot: configuredProjectRoot(viteRoot, nuxt.options.vite.rateLimit ?? options.rateLimit),
|
|
1200
|
+
rateLimitScanDirs: configuredScanDirs(nuxt.options.vite.rateLimit ?? options.rateLimit),
|
|
1201
|
+
scheduleDiscoveryRoot: configuredProjectRoot(viteRoot, options.schedule),
|
|
1202
|
+
workspaceDiscoveryRoot: configuredProjectRoot(viteRoot, nuxt.options.vite.workspace ?? options.workspace)
|
|
1203
|
+
}, consoleJournal, registeredConsoleAuthMode(consoleAuthConfig(consoleOptions), Boolean(nuxt.options.dev)), consoleOptions.retention, consoleAccess, runtimeCapabilityImports);
|
|
1204
|
+
};
|
|
1205
|
+
viteHubNuxtModule.getMeta = async () => ({
|
|
1206
|
+
configKey: "vitehub",
|
|
1207
|
+
name: "vite-hub/nuxt"
|
|
1208
|
+
});
|
|
1209
|
+
function usesOnlyPostgresDatabases(rootDir, serverDirs) {
|
|
1210
|
+
const definitions = discoverDatabaseDefinitions(rootDir, { serverDirs });
|
|
1211
|
+
return definitions.length > 0 && definitions.every((definition) => readDatabaseDefinitionDialect(definition.handler) === "postgresql");
|
|
81
1212
|
}
|
|
82
1213
|
//#endregion
|
|
83
1214
|
export { viteHubNuxtModule as default };
|