vite-hub 0.1.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +177 -55
- package/dist/_internal/auth/internal/server.d.ts +1 -0
- package/dist/_internal/auth/internal/server.js +2 -0
- package/dist/_internal/auth/runtime/server.d.ts +1 -0
- package/dist/_internal/auth/runtime/server.js +2 -0
- package/dist/_internal/runtime/browser-errors.d.ts +22 -0
- package/dist/_internal/runtime/browser-errors.js +156 -0
- package/dist/_internal/runtime/internal/h3.d.ts +1 -0
- package/dist/_internal/runtime/internal/h3.js +2 -0
- package/dist/_internal/runtime/redirects.d.ts +37 -0
- package/dist/_internal/runtime/redirects.js +71 -0
- package/dist/_internal/runtime/request-policy.d.ts +43 -0
- package/dist/_internal/runtime/request-policy.js +62 -0
- package/dist/_internal/runtime/security.d.ts +27 -0
- package/dist/_internal/runtime/security.js +104 -0
- package/dist/access-BDST818p.js +439 -0
- package/dist/access-policy-CGXhO3Ee.d.ts +109 -0
- package/dist/access-policy-DjBKLo3c.js +73 -0
- package/dist/account-BnOAU055.d.ts +195 -0
- package/dist/agent/capabilities.d.ts +1 -24
- package/dist/agent/capabilities.js +1 -56
- package/dist/agent/invocations/database.d.ts +1 -2
- package/dist/agent/invocations/database.js +2 -91
- package/dist/agent/invocations/drizzle.d.ts +1 -0
- package/dist/agent/invocations/drizzle.js +2 -0
- package/dist/agent/invocations.d.ts +1 -0
- package/dist/agent/invocations.js +2 -0
- package/dist/agent/page.d.ts +1 -0
- package/dist/agent/page.js +2 -0
- package/dist/agent/process.d.ts +1 -0
- package/dist/agent/process.js +2 -0
- package/dist/agent/state.d.ts +1 -0
- package/dist/agent/state.js +2 -0
- package/dist/agent/ui/vue.d.ts +1 -0
- package/dist/agent/ui/vue.js +2 -0
- package/dist/agent/ui.d.ts +1 -0
- package/dist/agent/ui.js +2 -0
- package/dist/agent-invocations.post-CcPvfA0n.js +423 -0
- package/dist/agent.d.ts +1 -12
- package/dist/agent.js +1 -49
- package/dist/agents-BDeazoAW.js +123 -0
- package/dist/agents-BoWau_ei.js +2 -0
- package/dist/agents-C94A4N9u.d.ts +29 -0
- package/dist/auth/abilities.d.ts +1 -0
- package/dist/auth/abilities.js +2 -0
- package/dist/auth/database.d.ts +1 -0
- package/dist/auth/database.js +2 -0
- package/dist/auth/forward.d.ts +1 -0
- package/dist/auth/forward.js +2 -0
- package/dist/auth/mcp.d.ts +1 -0
- package/dist/auth/mcp.js +2 -0
- package/dist/auth/schema.d.ts +1 -0
- package/dist/auth/schema.js +2 -0
- package/dist/auth-BZOy7obk.d.ts +120 -0
- package/dist/auth-operations-GcQk0O0X.js +34 -0
- package/dist/auth-types-CyqhWvYF.d.ts +90 -0
- package/dist/bin.js +114 -128
- package/dist/blob/nuxt-image.d.ts +3 -0
- package/dist/blob/nuxt-image.js +3 -0
- package/dist/blob-CFLwMsjH.d.ts +9 -0
- package/dist/blob-CpvlM8jp.js +26 -0
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.js +2 -0
- package/dist/cache/operations.d.ts +5 -0
- package/dist/cache/operations.js +51 -0
- package/dist/cache.d.ts +28 -0
- package/dist/cache.js +219 -0
- package/dist/choices/vue.d.ts +1 -0
- package/dist/choices/vue.js +2 -0
- package/dist/choices.d.ts +1 -0
- package/dist/choices.js +2 -0
- package/dist/cli-config-UAGTmuFa.js +2 -0
- package/dist/cli-config-wxKjF2Y0.js +90 -0
- package/dist/cloudflare-env-lookup-DKXdr4P_.js +16 -0
- package/dist/cloudflare-prerender.mjs +3 -0
- package/dist/cloudflare-workers.d.ts +12 -0
- package/dist/cms/access.d.ts +1 -0
- package/dist/cms/access.js +2 -0
- package/dist/cms/vite.d.ts +1 -0
- package/dist/cms/vite.js +2 -0
- package/dist/cms.d.ts +3 -0
- package/dist/cms.js +3 -0
- package/dist/comments/testing.d.ts +1 -0
- package/dist/comments/testing.js +2 -0
- package/dist/connections/operations.d.ts +1 -0
- package/dist/connections/operations.js +2 -0
- package/dist/console/auth-types.d.ts +2 -0
- package/dist/console/auth-types.js +1 -0
- package/dist/console/auth.d.ts +6 -2
- package/dist/console/auth.js +9 -2
- package/dist/console/runtime/auth-operations.d.ts +35 -0
- package/dist/console/runtime/auth-operations.js +2 -0
- package/dist/console/runtime/client/account-views.d.ts +17 -0
- package/dist/console/runtime/client/account-views.js +8 -0
- package/dist/console/runtime/client/account.d.ts +2 -0
- package/dist/console/runtime/client/account.js +1125 -0
- package/dist/console/runtime/client/add-primitive.ts +59 -0
- package/dist/console/runtime/client/app-identity.ts +44 -0
- package/dist/console/runtime/client/auth-management.ts +21 -35
- package/dist/console/runtime/client/blob-media.d.ts +1 -1
- package/dist/console/runtime/client/blob-media.js +4 -4
- package/dist/console/runtime/client/command-search.ts +103 -0
- package/dist/console/runtime/client/comment-thread.d.ts +33 -0
- package/dist/console/runtime/client/comment-thread.js +62 -0
- package/dist/console/runtime/client/content-heads.d.ts +45 -0
- package/dist/console/runtime/client/content-heads.js +58 -0
- package/dist/console/runtime/client/document-cache.ts +13 -0
- package/dist/console/runtime/client/documents.d.ts +3 -430
- package/dist/console/runtime/client/documents.js +2 -501
- package/dist/console/runtime/client/editor.d.ts +9 -8
- package/dist/console/runtime/client/editor.js +35 -14
- package/dist/console/runtime/client/env-status.d.ts +31 -2
- package/dist/console/runtime/client/env-status.js +59 -1
- package/dist/console/runtime/client/format.d.ts +59 -0
- package/dist/console/runtime/client/format.js +2 -109
- package/dist/console/runtime/client/format.ts +267 -0
- package/dist/console/runtime/client/highlight-languages.ts +27 -0
- package/dist/console/runtime/client/invocation.js +4 -4
- package/dist/console/runtime/client/live.d.ts +3 -5
- package/dist/console/runtime/client/live.js +1 -8
- package/dist/console/runtime/client/mcp-client.d.ts +58 -0
- package/dist/console/runtime/client/mcp-client.js +125 -0
- package/dist/console/runtime/client/media-library.d.ts +2 -207
- package/dist/console/runtime/client/media-library.js +2 -243
- package/dist/console/runtime/client/media-uploads.d.ts +1 -1
- package/dist/console/runtime/client/media-uploads.js +1 -1
- package/dist/console/runtime/client/media.d.ts +2 -73
- package/dist/console/runtime/client/operation-view.d.ts +31 -4
- package/dist/console/runtime/client/operation-view.js +85 -9
- package/dist/console/runtime/client/presence.d.ts +1 -5
- package/dist/console/runtime/client/presence.js +1 -15
- package/dist/console/runtime/client/preview.d.ts +8 -0
- package/dist/console/runtime/client/preview.js +11 -1
- package/dist/console/runtime/client/problem.d.ts +1 -1
- package/dist/console/runtime/client/problem.js +3 -3
- package/dist/console/runtime/client/project-link.d.ts +2 -0
- package/dist/console/runtime/client/project-link.js +2 -0
- package/dist/console/runtime/client/project-session.d.ts +221 -0
- package/dist/console/runtime/client/project-session.js +723 -0
- package/dist/console/runtime/client/project.d.ts +48 -0
- package/dist/console/runtime/client/project.js +2 -0
- package/dist/console/runtime/client/projects.d.ts +2 -0
- package/dist/console/runtime/client/projects.js +2 -0
- package/dist/console/runtime/client/publish.d.ts +1 -1
- package/dist/console/runtime/client/rate-limit.js +2 -2
- package/dist/console/runtime/client/read-only.d.ts +1 -1
- package/dist/console/runtime/client/read-only.js +1 -1
- package/dist/console/runtime/client/request.d.ts +6 -12
- package/dist/console/runtime/client/request.js +2 -471
- package/dist/console/runtime/client/route-query.d.ts +60 -0
- package/dist/console/runtime/client/route-query.js +2 -0
- package/dist/console/runtime/client/schedule-run.js +2 -2
- package/dist/console/runtime/client/sections.d.ts +2 -26
- package/dist/console/runtime/client/sections.js +2 -84
- package/dist/console/runtime/client/sidebar.ts +84 -0
- package/dist/console/runtime/client/site-access.d.ts +32 -0
- package/dist/console/runtime/client/site-access.js +932 -0
- package/dist/console/runtime/client/stored.d.ts +33 -0
- package/dist/console/runtime/client/stored.js +2 -0
- package/dist/console/runtime/client/ticket.d.ts +2 -0
- package/dist/console/runtime/client/ticket.js +2 -0
- package/dist/console/runtime/client/workflow.js +3 -3
- package/dist/console/runtime/components/console-account-api-keys.vue +195 -0
- package/dist/console/runtime/components/console-account-env.vue +286 -0
- package/dist/console/runtime/components/console-account-home.vue +427 -0
- package/dist/console/runtime/components/console-account-link.vue +68 -0
- package/dist/console/runtime/components/console-account-menu.vue +126 -0
- package/dist/console/runtime/components/console-account-rename.vue +67 -0
- package/dist/console/runtime/components/console-account-settings.vue +184 -0
- package/dist/console/runtime/components/console-account-setup.vue +82 -0
- package/dist/console/runtime/components/console-account-shell.vue +339 -0
- package/dist/console/runtime/components/console-account-sign-in.vue +152 -0
- package/dist/console/runtime/components/console-account-snippet.vue +89 -0
- package/dist/console/runtime/components/console-account-team-settings.vue +131 -0
- package/dist/console/runtime/components/console-account-team.vue +199 -0
- package/dist/console/runtime/components/console-account-unlink.vue +52 -0
- package/dist/console/runtime/components/console-activity-feed.vue +69 -0
- package/dist/console/runtime/components/console-add-primitive.vue +176 -0
- package/dist/console/runtime/components/console-agent-session.vue +301 -0
- package/dist/console/runtime/components/console-app-crumb.vue +52 -0
- package/dist/console/runtime/components/console-app-logo.vue +44 -0
- package/dist/console/runtime/components/console-app-settings.vue +271 -0
- package/dist/console/runtime/components/console-app.vue +255 -335
- package/dist/console/runtime/components/console-auth-action.vue +15 -13
- package/dist/console/runtime/components/console-auth-activity.vue +20 -24
- package/dist/console/runtime/components/console-auth-chart.vue +24 -21
- package/dist/console/runtime/components/console-auth-detail.vue +101 -128
- package/dist/console/runtime/components/console-auth-event-list.vue +2 -2
- package/dist/console/runtime/components/console-auth-event-setup.vue +4 -4
- package/dist/console/runtime/components/console-auth-overview.vue +21 -33
- package/dist/console/runtime/components/console-auth-user-events.vue +12 -15
- package/dist/console/runtime/components/console-auth.vue +118 -116
- package/dist/console/runtime/components/console-blob-detail.vue +16 -26
- package/dist/console/runtime/components/console-blob.vue +89 -34
- package/dist/console/runtime/components/console-cache.vue +358 -0
- package/dist/console/runtime/components/console-code-text.vue +18 -0
- package/dist/console/runtime/components/console-comark-component.vue +54 -16
- package/dist/console/runtime/components/console-comment-thread.vue +320 -0
- package/dist/console/runtime/components/console-confirm.vue +46 -0
- package/dist/console/runtime/components/console-connection-state.vue +23 -26
- package/dist/console/runtime/components/console-content-heads.vue +72 -0
- package/dist/console/runtime/components/console-database.vue +77 -80
- package/dist/console/runtime/components/console-definitions.vue +163 -44
- package/dist/console/runtime/components/console-document-dashboard.vue +124 -135
- package/dist/console/runtime/components/console-document-diff.vue +2 -2
- package/dist/console/runtime/components/console-document-editor.vue +404 -203
- package/dist/console/runtime/components/console-document-history.vue +17 -17
- package/dist/console/runtime/components/console-document-list.vue +51 -53
- package/dist/console/runtime/components/console-document-preview.vue +44 -57
- package/dist/console/runtime/components/console-document-settings.vue +24 -26
- package/dist/console/runtime/components/console-documents.vue +105 -40
- package/dist/console/runtime/components/console-env-details.vue +8 -27
- package/dist/console/runtime/components/console-env.vue +109 -88
- package/dist/console/runtime/components/console-facts.ts +13 -0
- package/dist/console/runtime/components/console-frame.vue +26 -68
- package/dist/console/runtime/components/console-home.vue +145 -121
- package/dist/console/runtime/components/console-icon.vue +19 -0
- package/dist/console/runtime/components/console-invocation-composer.vue +4 -8
- package/dist/console/runtime/components/console-kv.vue +41 -47
- package/dist/console/runtime/components/console-lazy-views.ts +2 -0
- package/dist/console/runtime/components/console-loading.vue +5 -4
- package/dist/console/runtime/components/console-markdown-editor.vue +78 -99
- package/dist/console/runtime/components/console-mcp-callback.vue +76 -0
- package/dist/console/runtime/components/console-mcp-client.vue +255 -0
- package/dist/console/runtime/components/console-mcp-connect.vue +162 -0
- package/dist/console/runtime/components/console-mcp-connection.vue +219 -0
- package/dist/console/runtime/components/console-mcp-content.vue +157 -0
- package/dist/console/runtime/components/console-mcp-items.vue +346 -0
- package/dist/console/runtime/components/console-media-browser.vue +108 -138
- package/dist/console/runtime/components/console-media-crops.vue +13 -12
- package/dist/console/runtime/components/console-media-detail.vue +35 -39
- package/dist/console/runtime/components/console-media-dialog.vue +3 -3
- package/dist/console/runtime/components/console-media-field.vue +12 -36
- package/dist/console/runtime/components/console-media-focal.vue +15 -14
- package/dist/console/runtime/components/console-media-library.vue +29 -22
- package/dist/console/runtime/components/console-media-move.vue +9 -8
- package/dist/console/runtime/components/console-media-picker.vue +35 -6
- package/dist/console/runtime/components/console-media-uploads.vue +7 -4
- package/dist/console/runtime/components/console-operation-view.vue +258 -45
- package/dist/console/runtime/components/console-page-changes.vue +207 -0
- package/dist/console/runtime/components/console-page-header.vue +39 -7
- package/dist/console/runtime/components/console-page-toolbar.vue +16 -3
- package/dist/console/runtime/components/console-presence-avatars.vue +4 -3
- package/dist/console/runtime/components/console-project-switcher.vue +212 -0
- package/dist/console/runtime/components/console-property-list.vue +16 -11
- package/dist/console/runtime/components/console-property-row.vue +2 -1
- package/dist/console/runtime/components/console-rail.vue +122 -277
- package/dist/console/runtime/components/console-rate-limit.vue +32 -24
- package/dist/console/runtime/components/console-relative-time.vue +1 -1
- package/dist/console/runtime/components/console-schema-date-input.vue +88 -0
- package/dist/console/runtime/components/console-schema-field.vue +35 -89
- package/dist/console/runtime/components/console-schema-form.vue +6 -7
- package/dist/console/runtime/components/console-schema-list.vue +8 -9
- package/dist/console/runtime/components/console-search-palette.vue +1051 -0
- package/dist/console/runtime/components/console-search.vue +17 -840
- package/dist/console/runtime/components/console-section-icon.vue +7 -10
- package/dist/console/runtime/components/console-section.vue +68 -0
- package/dist/console/runtime/components/console-seo-panel.vue +16 -16
- package/dist/console/runtime/components/console-session-actions.vue +1 -3
- package/dist/console/runtime/components/console-session-bootstrap.ts +0 -28
- package/dist/console/runtime/components/console-session-cancel.vue +0 -1
- package/dist/console/runtime/components/console-session-code-preview.vue +10 -26
- package/dist/console/runtime/components/console-session-copy-link.vue +11 -0
- package/dist/console/runtime/components/console-session-inspector.vue +212 -92
- package/dist/console/runtime/components/console-session-loading.vue +12 -15
- package/dist/console/runtime/components/console-session-navbar.vue +9 -39
- package/dist/console/runtime/components/console-session-trace.vue +25 -77
- package/dist/console/runtime/components/console-session.css +208 -851
- package/dist/console/runtime/components/console-settings-card.vue +76 -0
- package/dist/console/runtime/components/console-settings-value.vue +46 -0
- package/dist/console/runtime/components/console-settings.vue +100 -0
- package/dist/console/runtime/components/console-setup-hint.vue +3 -8
- package/dist/console/runtime/components/console-sidebar-item.vue +62 -0
- package/dist/console/runtime/components/console-sidebar-trigger.vue +34 -0
- package/dist/console/runtime/components/console-sidebar.vue +352 -0
- package/dist/console/runtime/components/console-site.vue +370 -0
- package/dist/console/runtime/components/console-skill-file.vue +73 -0
- package/dist/console/runtime/components/console-skill-tree.vue +62 -0
- package/dist/console/runtime/components/console-skills.vue +193 -0
- package/dist/console/runtime/components/console-stat-grid.vue +64 -0
- package/dist/console/runtime/components/console-state.vue +60 -75
- package/dist/console/runtime/components/console-toaster.vue +63 -54
- package/dist/console/runtime/components/console-usage-chart.vue +14 -12
- package/dist/console/runtime/components/console-usage-model-detail.vue +12 -18
- package/dist/console/runtime/components/console-usage-model.ts +20 -12
- package/dist/console/runtime/components/console-usage-share-bar.vue +5 -5
- package/dist/console/runtime/components/console-usage.vue +547 -252
- package/dist/console/runtime/components/console-user-menu.vue +42 -0
- package/dist/console/runtime/components/console-value.vue +5 -4
- package/dist/console/runtime/components/console-workflow-actions.vue +32 -41
- package/dist/console/runtime/components/console-workspace-browser.vue +507 -0
- package/dist/console/runtime/components/console-workspace-history.vue +23 -24
- package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +13 -14
- package/dist/console/runtime/components/invocation/agent-invocation-list.ts +22 -38
- package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +4 -12
- package/dist/console/runtime/components/invocation/agent-invocation.ts +229 -193
- package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
- package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +192 -55
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +25 -0
- package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +20 -7
- package/dist/console/runtime/components/invocation/internal/invocation-page-changes.ts +64 -0
- package/dist/console/runtime/components/invocation/internal/payload-text.ts +3 -5
- package/dist/console/runtime/components/invocation/invocation.css +485 -428
- package/dist/console/runtime/components/invocation/types.ts +9 -1
- package/dist/console/runtime/console-route.js +1 -48
- package/dist/console/runtime/definitions.d.ts +2 -2
- package/dist/console/runtime/definitions.js +1 -293
- package/dist/console/runtime/diagnostics.ts +287 -0
- package/dist/console/runtime/mcp-client.d.ts +2 -0
- package/dist/console/runtime/mcp-client.js +2 -0
- package/dist/console/runtime/page/loader.js +138 -18
- package/dist/console/runtime/page-tool/page-tool.js +10 -0
- package/dist/console/runtime/public/skills/index.json +1 -0
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -39
- package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/bundle.md +57 -0
- package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +4 -3
- package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +11 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +3 -5
- package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +4 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +4 -4
- package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +20 -0
- package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +2 -0
- package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +10 -1
- package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +1 -1
- package/dist/console/runtime/rpc.d.ts +2 -36
- package/dist/console/runtime/rpc.js +1 -3
- package/dist/console/runtime/sections.d.ts +2 -2
- package/dist/console/runtime/sections.js +2 -351
- package/dist/console/runtime/server/access-policy.d.ts +2 -0
- package/dist/console/runtime/server/access-policy.js +2 -0
- package/dist/console/runtime/server/agents.get.d.ts +4 -7
- package/dist/console/runtime/server/agents.get.js +6 -9
- package/dist/console/runtime/server/auth.d.ts +2 -0
- package/dist/console/runtime/server/auth.js +81 -0
- package/dist/console/runtime/server/blob.d.ts +2 -2
- package/dist/console/runtime/server/blob.js +2 -19
- package/dist/console/runtime/server/channel-replay.d.ts +20 -8
- package/dist/console/runtime/server/channel-replay.js +27 -55
- package/dist/console/runtime/server/database.d.ts +1 -1
- package/dist/console/runtime/server/database.get.d.ts +19 -10
- package/dist/console/runtime/server/database.get.js +40 -34
- package/dist/console/runtime/server/database.js +1 -17
- package/dist/console/runtime/server/definitions.d.ts +1 -1
- package/dist/console/runtime/server/definitions.get.d.ts +8 -8
- package/dist/console/runtime/server/definitions.get.js +37 -23
- package/dist/console/runtime/server/definitions.js +1 -96
- package/dist/console/runtime/server/development.d.ts +2 -0
- package/dist/console/runtime/server/development.js +2 -0
- package/dist/console/runtime/server/documents.d.ts +2 -2
- package/dist/console/runtime/server/documents.js +3 -111
- package/dist/console/runtime/server/env.d.ts +3 -15
- package/dist/console/runtime/server/env.get.d.ts +5 -5
- package/dist/console/runtime/server/env.get.js +9 -22
- package/dist/console/runtime/server/env.js +2 -42
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +5 -6
- package/dist/console/runtime/server/invocation-capabilities.get.js +8 -13
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -37
- package/dist/console/runtime/server/invocation-workspace.get.js +35 -201
- package/dist/console/runtime/server/invocation.get.d.ts +2 -2
- package/dist/console/runtime/server/invocation.get.js +35 -27
- package/dist/console/runtime/server/invocations.get.d.ts +12 -6
- package/dist/console/runtime/server/invocations.get.js +45 -60
- package/dist/console/runtime/server/logs.get.d.ts +8 -5
- package/dist/console/runtime/server/logs.get.js +25 -14
- package/dist/console/runtime/server/mcp-client-operations.d.ts +5 -0
- package/dist/console/runtime/server/mcp-client-operations.js +139 -0
- package/dist/console/runtime/server/operation-contributions.d.ts +2 -0
- package/dist/console/runtime/server/operation-contributions.js +2 -0
- package/dist/console/runtime/server/page-auth.d.ts +18 -0
- package/dist/console/runtime/server/page-auth.js +44 -0
- package/dist/console/runtime/server/page-session.d.ts +1 -1
- package/dist/console/runtime/server/page-session.js +1 -1
- package/dist/console/runtime/server/page-tool.d.ts +2 -0
- package/dist/console/runtime/server/page-tool.js +105 -0
- package/dist/console/runtime/server/rpc.d.ts +16 -11
- package/dist/console/runtime/server/rpc.js +120 -113
- package/dist/console/runtime/server/runtime.d.ts +2 -0
- package/dist/console/runtime/server/runtime.js +2 -0
- package/dist/console/runtime/server/search.get.d.ts +1 -6
- package/dist/console/runtime/server/search.get.js +3 -9
- package/dist/console/runtime/server/sections.d.ts +6 -4
- package/dist/console/runtime/server/sections.get.d.ts +2 -22
- package/dist/console/runtime/server/sections.get.js +37 -13
- package/dist/console/runtime/server/sections.js +7 -4
- package/dist/console/runtime/server/setup.d.ts +5 -0
- package/dist/console/runtime/server/setup.js +5 -0
- package/dist/console/runtime/server/site-entry.d.ts +24 -0
- package/dist/console/runtime/server/site-entry.js +145 -0
- package/dist/console/runtime/server/site-session.d.ts +89 -0
- package/dist/console/runtime/server/site-session.js +2 -0
- package/dist/console/runtime/server/status.get.d.ts +7 -4
- package/dist/console/runtime/server/status.get.js +12 -22
- package/dist/console/runtime/server/tickets.d.ts +2 -0
- package/dist/console/runtime/server/tickets.js +2 -0
- package/dist/console/runtime/server/usage.get.d.ts +7 -4
- package/dist/console/runtime/server/usage.get.js +16 -23
- package/dist/console/runtime/server/workspace-files.get.d.ts +12 -0
- package/dist/console/runtime/server/workspace-files.get.js +55 -0
- package/dist/console/runtime/site-access.d.ts +2 -0
- package/dist/console/runtime/site-access.js +2 -0
- package/dist/console/runtime/skills.d.ts +18 -0
- package/dist/console/runtime/skills.js +17 -0
- package/dist/console/server.d.ts +20 -9
- package/dist/console/server.js +9 -34
- package/dist/console/ui.d.ts +16 -0
- package/dist/console/ui.js +487 -368
- package/dist/console-lazy-views-DXnIkdyd.js +2 -0
- package/dist/console-route-CBuqZ4wO.js +49 -0
- package/dist/console.d.ts +1 -1
- package/dist/content/collections.d.ts +1 -0
- package/dist/content/collections.js +2 -0
- package/dist/content/markdown.d.ts +1 -0
- package/dist/content/markdown.js +2 -0
- package/dist/content/preview.d.ts +1 -0
- package/dist/content/preview.js +2 -0
- package/dist/content/sqlite.d.ts +1 -0
- package/dist/content/sqlite.js +2 -0
- package/dist/content.d.ts +1 -2
- package/dist/content.js +0 -1
- package/dist/database-BdOBjPkS.js +17 -0
- package/dist/database-DyPVMjp_.d.ts +6 -0
- package/dist/definitions-BW6SvmMM.js +337 -0
- package/dist/definitions-CNq_Shkh.js +98 -0
- package/dist/definitions-DB4LbZ7T.d.ts +245 -0
- package/dist/definitions-Dbgxfz3I.d.ts +19 -0
- package/dist/dev-peer-am78OsHH.js +472 -0
- package/dist/development-W5EwONyL.d.ts +12 -0
- package/dist/development-zLxOp-AO.js +28 -0
- package/dist/device/vue.d.ts +1 -0
- package/dist/device/vue.js +2 -0
- package/dist/device.d.ts +1 -0
- package/dist/device.js +2 -0
- package/dist/diagnostics-9U_fYxMy.js +79 -0
- package/dist/diagnostics-CjGiniKb.d.ts +11 -0
- package/dist/docs/assistant.d.ts +1 -0
- package/dist/docs/assistant.js +2 -0
- package/dist/docs/nuxt.d.ts +3 -0
- package/dist/docs/nuxt.js +3 -0
- package/dist/docs/server.d.ts +1 -0
- package/dist/docs/server.js +2 -0
- package/dist/docs.d.ts +1 -0
- package/dist/docs.js +2 -0
- package/dist/doctor.d.ts +7 -2
- package/dist/doctor.js +2956 -296
- package/dist/documents-BASIRZ91.d.ts +474 -0
- package/dist/documents-CboVhYFz.d.ts +87 -0
- package/dist/documents-CjJTCrY8.js +136 -0
- package/dist/documents-qrHHqlNU.js +547 -0
- package/dist/durability/operations.d.ts +5 -0
- package/dist/durability/operations.js +28 -0
- package/dist/email/test.d.ts +1 -0
- package/dist/email/test.js +2 -0
- package/dist/entries-Bj-jPs_J.js +142 -0
- package/dist/env-Dg1I_DWr.js +11 -0
- package/dist/error-diagnostics-Bm3JKYjz.js +638 -0
- package/dist/error-diagnostics.ts +636 -151
- package/dist/forge.d.ts +1 -0
- package/dist/forge.js +2 -0
- package/dist/format-BOYlanIZ.js +304 -0
- package/dist/forms/client.d.ts +1 -0
- package/dist/forms/client.js +2 -0
- package/dist/forms/database.d.ts +1 -0
- package/dist/forms/database.js +2 -0
- package/dist/forms/formisch.d.ts +1 -0
- package/dist/forms/formisch.js +2 -0
- package/dist/forms/operations.d.ts +1 -0
- package/dist/forms/operations.js +2 -0
- package/dist/forms/runtime.d.ts +1 -0
- package/dist/forms/runtime.js +2 -0
- package/dist/forms/vue.d.ts +1 -0
- package/dist/forms/vue.js +2 -0
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +2 -0
- package/dist/gateways/ai-sdk.d.ts +1 -0
- package/dist/gateways/ai-sdk.js +2 -0
- package/dist/host-CkL0jjBq.js +11 -0
- package/dist/http-error-Bs6e8_-8.js +30 -0
- package/dist/i18n/runtime.d.ts +1 -0
- package/dist/i18n/runtime.js +2 -0
- package/dist/i18n/server.d.ts +1 -0
- package/dist/i18n/server.js +2 -0
- package/dist/i18n/vue.d.ts +1 -0
- package/dist/i18n/vue.js +2 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +2 -0
- package/dist/index.d.ts +20 -3
- package/dist/index.js +43 -2
- package/dist/inspect-CDw7e0vK.js +127 -0
- package/dist/internal/agent-invocations-libsql.d.ts +2 -0
- package/dist/internal/agent-invocations-libsql.js +2 -0
- package/dist/internal/disabled-redis-driver.d.ts +3 -0
- package/dist/internal/disabled-redis-driver.js +7 -0
- package/dist/internal/disabled-upstash-driver.d.ts +3 -0
- package/dist/internal/disabled-upstash-driver.js +7 -0
- package/dist/internal/test-loader.d.ts +8 -0
- package/dist/internal/test-loader.js +75 -0
- package/dist/internal/test-server.d.ts +1 -0
- package/dist/internal/test-server.js +84 -0
- package/dist/internal-BreyUsQ6.js +31 -0
- package/dist/internal-CO4OqqaS.d.ts +59 -0
- package/dist/invariant-DolT9EEx.js +22 -0
- package/dist/invocation-page-undo-DIZ-s3xT.js +54 -0
- package/dist/invocations-CK_-G540.js +86 -0
- package/dist/limits-BUlwWYQE.js +34 -0
- package/dist/logs/host.d.ts +1 -1
- package/dist/logs/host.js +1 -15
- package/dist/logs/memory.d.ts +2 -18
- package/dist/logs/memory.js +1 -84
- package/dist/logs/source.d.ts +2 -57
- package/dist/logs/source.js +2 -57
- package/dist/logs.d.ts +3 -4
- package/dist/logs.js +3 -4
- package/dist/mcp-client-By4zk0vU.js +1024 -0
- package/dist/mcp-client-CTbTbn7d.js +10 -0
- package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +2 -0
- package/dist/media-BHpQ-4jw.js +478 -0
- package/dist/media-library-D9ThbXqs.d.ts +212 -0
- package/dist/media-library-NaOMBKWS.js +279 -0
- package/dist/media-uKX4Wy-c.d.ts +74 -0
- package/dist/memory-2bbl4hcV.d.ts +19 -0
- package/dist/memory-DTmq-Z6x.js +86 -0
- package/dist/nuxt-server-imports-DH60Z7LA.js +98 -0
- package/dist/nuxt.d.ts +10 -5
- package/dist/nuxt.js +751 -583
- package/dist/object-D8pRdprI.js +15 -0
- package/dist/operation-contributions-BdS0z3tx.js +50 -0
- package/dist/operation-contributions-DpkO_iSU.d.ts +21 -0
- package/dist/operation-definition-a5keEpCd.js +435 -0
- package/dist/operation-registry-BogGwk_I.js +22 -0
- package/dist/operation-rpc-DI9txNxK.js +158 -0
- package/dist/operations-B0689BG1.d.ts +158 -0
- package/dist/operations-CAQmIxGK.js +2 -0
- package/dist/operations-CWP9dF3i.js +863 -0
- package/dist/operations-EOdyctDc.js +235 -0
- package/dist/operations.d.ts +1 -2
- package/dist/operations.js +2 -2
- package/dist/optional-owners-BNA2OX6z.js +903 -0
- package/dist/page/pill.iife.js +70 -0
- package/dist/page-tool-CRCK1RHV.d.ts +68 -0
- package/dist/page-tools-BkSSBFoi.js +444 -0
- package/dist/page-tools-shared-D3fFoEV2.js +122 -0
- package/dist/page-tools-sw4I-Nqx.d.ts +23 -0
- package/dist/plugins-B-DpgDPB.js +12070 -0
- package/dist/plugins-BqAtIEX2.d.ts +2143 -0
- package/dist/presets/workspace.d.ts +1 -0
- package/dist/presets/workspace.js +1 -0
- package/dist/project-C4N_Zcjl.js +30 -0
- package/dist/project-CufkVP1u.d.ts +26 -0
- package/dist/project-DlWTGB7h.js +57 -0
- package/dist/project-link-BuOzBH9f.d.ts +94 -0
- package/dist/project-link-D-6UefhA.js +149 -0
- package/dist/project-root-v6ba4tn7.js +12 -0
- package/dist/projects-CAcXztf4.js +154 -0
- package/dist/projects-Ddvl9EJp.d.ts +66 -0
- package/dist/rate-limit/drivers/cloudflare.d.ts +1 -0
- package/dist/rate-limit/drivers/cloudflare.js +2 -0
- package/dist/rate-limit/drivers/kv.d.ts +1 -0
- package/dist/rate-limit/drivers/kv.js +2 -0
- package/dist/rate-limit/drivers/memory.d.ts +1 -0
- package/dist/rate-limit/drivers/memory.js +2 -0
- package/dist/realtime/agent.d.ts +1 -0
- package/dist/realtime/agent.js +2 -0
- package/dist/realtime/bus.d.ts +1 -0
- package/dist/realtime/bus.js +2 -0
- package/dist/realtime/client.d.ts +1 -0
- package/dist/realtime/client.js +2 -0
- package/dist/registry-CDKLACCZ.js +16 -0
- package/dist/registry-zw6aE2N9.js +18 -0
- package/dist/request-D7h3SQ92.d.ts +21 -0
- package/dist/request-DE8w_cSM.js +473 -0
- package/dist/request-DbFfYmCu.js +162 -0
- package/dist/request-origin-Bq7mDQG9.js +23 -0
- package/dist/route-query-CRVWXIrc.js +222 -0
- package/dist/rpc-7nlHSv3y.d.ts +37 -0
- package/dist/rpc-DIUA61pv.js +4 -0
- package/dist/runtime/durability.d.ts +1 -0
- package/dist/runtime/durability.js +2 -0
- package/dist/runtime-B_btezs1.d.ts +7 -0
- package/dist/runtime-DQuHg7OO.js +10 -0
- package/dist/runtime-DxfJOfCd.js +25 -0
- package/dist/runtime-OsEDfbM9.js +55 -0
- package/dist/runtime-YLWfdrtO.js +65 -0
- package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
- package/dist/scan-module-D_3X08mj.js +2 -0
- package/dist/scan-module-Df58L_6T.js +311 -0
- package/dist/schedule/os.d.ts +1 -0
- package/dist/schedule/os.js +2 -0
- package/dist/secret-Dy5uqvq9.js +44 -0
- package/dist/sections-BogiCmtz.d.ts +57 -0
- package/dist/sections-C83x0slv.js +13 -0
- package/dist/sections-CyrXbbkG.d.ts +10 -0
- package/dist/sections-Do7X4Nwt.d.ts +158 -0
- package/dist/sections-DumoLKQN.js +368 -0
- package/dist/sections-et20h8w3.js +122 -0
- package/dist/sections.get-COiLcQ0P.d.ts +20 -0
- package/dist/seo/runtime.d.ts +64 -0
- package/dist/seo/runtime.js +123 -0
- package/dist/seo-CtLywyRx.d.ts +24 -0
- package/dist/seo.d.ts +2 -0
- package/dist/seo.js +17 -0
- package/dist/server-BRJE4t-W.js +18 -0
- package/dist/setup-C-5nB7aY.js +22 -0
- package/dist/setup-ZbA1by7W.d.ts +13 -0
- package/dist/site-access-BbJUe5QI.js +2 -0
- package/dist/site-access-BmE8HGxs.js +292 -0
- package/dist/site-access-BycrwM2v.js +18 -0
- package/dist/site-access-DxfdOel1.d.ts +55 -0
- package/dist/site-session-odJq1dYa.js +272 -0
- package/dist/skills/operations.d.ts +17 -0
- package/dist/skills/operations.js +51 -0
- package/dist/skills-DdpSMiCI.js +500 -0
- package/dist/skills.d.ts +197 -0
- package/dist/skills.get-Bl8cBe8u.js +48 -0
- package/dist/skills.js +2 -0
- package/dist/source/drizzle.d.ts +1 -0
- package/dist/source/drizzle.js +2 -0
- package/dist/source/vite.d.ts +1 -7
- package/dist/source/vite.js +2 -20
- package/dist/source-D4wWtoHh.js +60 -0
- package/dist/source-S-LChQvw.d.ts +59 -0
- package/dist/source.d.ts +1 -2
- package/dist/source.js +0 -1
- package/dist/stored-Dhv2qsQv.js +40 -0
- package/dist/sync/client.d.ts +1 -0
- package/dist/sync/client.js +2 -0
- package/dist/sync/database.d.ts +1 -0
- package/dist/sync/database.js +2 -0
- package/dist/sync/operations.d.ts +1 -0
- package/dist/sync/operations.js +2 -0
- package/dist/sync/runtime.d.ts +1 -0
- package/dist/sync/runtime.js +2 -0
- package/dist/sync/vue.d.ts +1 -0
- package/dist/sync/vue.js +2 -0
- package/dist/sync.d.ts +1 -0
- package/dist/sync.js +2 -0
- package/dist/task/operations.d.ts +22 -0
- package/dist/task/operations.js +36 -0
- package/dist/test/register.d.ts +1 -0
- package/dist/test/register.js +68 -0
- package/dist/test.d.ts +175 -0
- package/dist/test.js +49 -0
- package/dist/ticket-Cudn1dq3.js +31 -0
- package/dist/ticket-Pr_8ZtXW.d.ts +14 -0
- package/dist/tickets-C_0Fhc00.js +358 -0
- package/dist/ui/markdown-editor.d.ts +1 -0
- package/dist/ui/markdown-editor.js +2 -0
- package/dist/ui/playground.d.ts +1 -0
- package/dist/ui/playground.js +2 -0
- package/dist/ui/styles.css +2 -2662
- package/dist/ui/theme.css +2 -0
- package/dist/ui/theme.d.ts +1 -0
- package/dist/ui/theme.js +2 -0
- package/dist/ui/workspace.d.ts +1 -0
- package/dist/ui/workspace.js +2 -0
- package/dist/usage-B4taNt4a.js +569 -0
- package/dist/usage-index-BsGAFzyq.js +335 -0
- package/dist/version-DNmSsk5r.js +1083 -0
- package/dist/vite-stage-mmtwQIMA.js +66 -0
- package/dist/vue-router-C68IU1jM.d.ts +1914 -0
- package/dist/web-container/connect.d.ts +1 -0
- package/dist/web-container/connect.js +2 -0
- package/dist/web-container/env.d.ts +1 -0
- package/dist/web-container/env.js +2 -0
- package/dist/web-container/snapshot.d.ts +1 -0
- package/dist/web-container/snapshot.js +2 -0
- package/dist/web-container.d.ts +1 -0
- package/dist/web-container.js +2 -0
- package/dist/webhooks/database.d.ts +1 -0
- package/dist/webhooks/database.js +2 -0
- package/dist/webhooks/operations.d.ts +1 -0
- package/dist/webhooks/operations.js +2 -0
- package/dist/webhooks/runtime.d.ts +1 -0
- package/dist/webhooks/runtime.js +2 -0
- package/dist/webhooks.d.ts +1 -0
- package/dist/webhooks.js +2 -0
- package/dist/workflow/openworkflow.d.ts +1 -0
- package/dist/workflow/openworkflow.js +2 -0
- package/dist/workspace/checkout.d.ts +1 -0
- package/dist/workspace/checkout.js +2 -0
- package/dist/workspace/files.d.ts +1 -0
- package/dist/workspace/files.js +2 -0
- package/dist/workspace/lineage.d.ts +1 -0
- package/dist/workspace/lineage.js +2 -0
- package/dist/workspace-history-CeVwBB6Q.d.ts +52 -0
- package/dist/workspace-history-CraoERnc.js +248 -0
- package/package.json +690 -706
- package/dist/_internal/agent/cloudflare/state.d.ts +0 -1
- package/dist/_internal/agent/cloudflare/state.js +0 -2
- package/dist/_internal/agent/cloudflare.d.ts +0 -1
- package/dist/_internal/agent/cloudflare.js +0 -2
- package/dist/_internal/agent/eve.d.ts +0 -1
- package/dist/_internal/agent/eve.js +0 -2
- package/dist/_internal/agent/invocations.d.ts +0 -2
- package/dist/_internal/agent/invocations.js +0 -88
- package/dist/_internal/agent/operations.d.ts +0 -1
- package/dist/_internal/agent/operations.js +0 -2
- package/dist/_internal/agent/runtime/invocations-dev.d.ts +0 -1
- package/dist/_internal/agent/runtime/invocations-dev.js +0 -2
- package/dist/_internal/agent/runtime/process.d.ts +0 -1
- package/dist/_internal/agent/runtime/process.js +0 -2
- package/dist/_internal/agent/runtime/workflow.d.ts +0 -1
- package/dist/_internal/agent/runtime/workflow.js +0 -2
- package/dist/_internal/agent/server/internal.d.ts +0 -1
- package/dist/_internal/agent/server/internal.js +0 -2
- package/dist/_internal/agent/server/registry.d.ts +0 -1
- package/dist/_internal/agent/server/registry.js +0 -2
- package/dist/_internal/agent/server/workspace.d.ts +0 -1
- package/dist/_internal/agent/server/workspace.js +0 -2
- package/dist/_internal/agent/server.d.ts +0 -1
- package/dist/_internal/agent/server.js +0 -2
- package/dist/_internal/agent/state/sqlite.d.ts +0 -1
- package/dist/_internal/agent/state/sqlite.js +0 -2
- package/dist/_internal/agent.d.ts +0 -1
- package/dist/_internal/agent.js +0 -2
- package/dist/_internal/auth/runtime/console.d.ts +0 -1
- package/dist/_internal/auth/runtime/console.js +0 -2
- package/dist/_internal/blob/operations.d.ts +0 -1
- package/dist/_internal/blob/operations.js +0 -2
- package/dist/_internal/blob/runtime/state.d.ts +0 -1
- package/dist/_internal/blob/runtime/state.js +0 -2
- package/dist/_internal/blob.d.ts +0 -1
- package/dist/_internal/blob.js +0 -2
- package/dist/_internal/comments/operations.d.ts +0 -1
- package/dist/_internal/comments/operations.js +0 -2
- package/dist/_internal/comments/runtime/console.d.ts +0 -1
- package/dist/_internal/comments/runtime/console.js +0 -2
- package/dist/_internal/content/operations.d.ts +0 -1
- package/dist/_internal/content/operations.js +0 -2
- package/dist/_internal/content/runtime/console.d.ts +0 -1
- package/dist/_internal/content/runtime/console.js +0 -2
- package/dist/_internal/database/runtime/state.d.ts +0 -5
- package/dist/_internal/database/runtime/state.js +0 -7
- package/dist/_internal/email/operations.d.ts +0 -1
- package/dist/_internal/email/operations.js +0 -2
- package/dist/_internal/email/runtime/console.d.ts +0 -1
- package/dist/_internal/email/runtime/console.js +0 -2
- package/dist/_internal/kv/operations.d.ts +0 -1
- package/dist/_internal/kv/operations.js +0 -2
- package/dist/_internal/kv/runtime/disabled-upstash.d.ts +0 -3
- package/dist/_internal/kv/runtime/disabled-upstash.js +0 -7
- package/dist/_internal/kv.d.ts +0 -1
- package/dist/_internal/kv.js +0 -2
- package/dist/_internal/markdown-template.d.ts +0 -2
- package/dist/_internal/markdown-template.js +0 -2
- package/dist/_internal/queue/operations.d.ts +0 -1
- package/dist/_internal/queue/operations.js +0 -2
- package/dist/_internal/rate-limit/operations.d.ts +0 -1
- package/dist/_internal/rate-limit/operations.js +0 -2
- package/dist/_internal/rate-limit/runtime.d.ts +0 -1
- package/dist/_internal/rate-limit/runtime.js +0 -2
- package/dist/_internal/sandbox/task/runtime/state.d.ts +0 -1
- package/dist/_internal/sandbox/task/runtime/state.js +0 -2
- package/dist/_internal/schedule/operations.d.ts +0 -1
- package/dist/_internal/schedule/operations.js +0 -2
- package/dist/_internal/schedule/runtime/kv.d.ts +0 -1
- package/dist/_internal/schedule/runtime/kv.js +0 -2
- package/dist/_internal/schedule/runtime/process.d.ts +0 -1
- package/dist/_internal/schedule/runtime/process.js +0 -2
- package/dist/_internal/schedule/runtime/static.d.ts +0 -1
- package/dist/_internal/schedule/runtime/static.js +0 -2
- package/dist/_internal/schedule/runtime.d.ts +0 -1
- package/dist/_internal/schedule/runtime.js +0 -2
- package/dist/_internal/schedule.d.ts +0 -1
- package/dist/_internal/schedule.js +0 -2
- package/dist/_internal/task/operations.d.ts +0 -5
- package/dist/_internal/task/operations.js +0 -2
- package/dist/_internal/workflow/operations.d.ts +0 -1
- package/dist/_internal/workflow/operations.js +0 -2
- package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +0 -1
- package/dist/_internal/workflow/runtime/cloudflare-runner.js +0 -2
- package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +0 -1
- package/dist/_internal/workflow/runtime/cloudflare-vite.js +0 -2
- package/dist/_internal/workflow/runtime/execute.d.ts +0 -1
- package/dist/_internal/workflow/runtime/execute.js +0 -2
- package/dist/_internal/workflow/runtime/state.d.ts +0 -1
- package/dist/_internal/workflow/runtime/state.js +0 -2
- package/dist/_internal/workflow/runtime/vercel-vite.d.ts +0 -1
- package/dist/_internal/workflow/runtime/vercel-vite.js +0 -2
- package/dist/_internal/workflow.d.ts +0 -1
- package/dist/_internal/workflow.js +0 -2
- package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js +0 -2
- package/dist/_internal/workspace/internal/runtime/hosted.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/hosted.js +0 -2
- package/dist/_internal/workspace/internal/runtime/state.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/state.js +0 -2
- package/dist/_internal/workspace/operations.d.ts +0 -1
- package/dist/_internal/workspace/operations.js +0 -2
- package/dist/_internal/workspace/runtime.d.ts +0 -1
- package/dist/_internal/workspace/runtime.js +0 -2
- package/dist/_internal/workspace.d.ts +0 -1
- package/dist/_internal/workspace.js +0 -2
- package/dist/access-BhTe9yuV.js +0 -516
- package/dist/access-CBqnsYdj.d.ts +0 -130
- package/dist/agent/invocations/d1.d.ts +0 -1
- package/dist/agent/invocations/d1.js +0 -2
- package/dist/agent/invocations/sqlite.d.ts +0 -1
- package/dist/agent/invocations/sqlite.js +0 -2
- package/dist/agent/process-host.d.ts +0 -1
- package/dist/agent/process-host.js +0 -2
- package/dist/agent/runtime/process.d.ts +0 -1
- package/dist/agent/runtime/process.js +0 -2
- package/dist/agent/server/github.d.ts +0 -1
- package/dist/agent/server/github.js +0 -2
- package/dist/agent/state/sqlite.d.ts +0 -1
- package/dist/agent/state/sqlite.js +0 -2
- package/dist/agent-invocations.post-CFKMEy-h.js +0 -432
- package/dist/agents-BNmuN4Qa.d.ts +0 -99
- package/dist/agents-CVehuMFA.js +0 -118
- package/dist/auth/console-runtime.d.ts +0 -1
- package/dist/auth/console-runtime.js +0 -2
- package/dist/auth/console.d.ts +0 -1
- package/dist/auth/console.js +0 -2
- package/dist/auth-BSSM-qh0.js +0 -700
- package/dist/auth-CG8tmgH7.d.ts +0 -106
- package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +0 -50
- package/dist/auth-inline-config--vlclzm3.js +0 -18
- package/dist/auth-inline-config-R6q_4Iwo.d.ts +0 -30
- package/dist/auth-path-B7Ssonj-.js +0 -49
- package/dist/blob/content-type.d.ts +0 -1
- package/dist/blob/content-type.js +0 -2
- package/dist/blob-D9v5Djxw.d.ts +0 -7
- package/dist/browser/actions.d.ts +0 -1
- package/dist/browser/actions.js +0 -2
- package/dist/cloudflare-env-CIZCKabz.js +0 -70
- package/dist/comments-overlay/loader.BcGn0Hsk.js +0 -1
- package/dist/comments-overlay/overlay.D7vmaSrE.js +0 -2
- package/dist/connections/http.d.ts +0 -1
- package/dist/connections/http.js +0 -2
- package/dist/console/auth-client.d.ts +0 -8
- package/dist/console/auth-client.js +0 -6
- package/dist/console/auth-cloudflare-access.d.ts +0 -2
- package/dist/console/auth-cloudflare-access.js +0 -116
- package/dist/console/auth-inline.d.ts +0 -6
- package/dist/console/auth-inline.js +0 -107
- package/dist/console/runtime/client/build.d.ts +0 -14
- package/dist/console/runtime/client/build.js +0 -68
- package/dist/console/runtime/client/connections-management.d.ts +0 -68
- package/dist/console/runtime/client/connections-management.js +0 -201
- package/dist/console/runtime/client/env-management.d.ts +0 -20
- package/dist/console/runtime/client/env-management.js +0 -84
- package/dist/console/runtime/client/mcp.d.ts +0 -9
- package/dist/console/runtime/client/mcp.js +0 -14
- package/dist/console/runtime/client/sign-in.d.ts +0 -21
- package/dist/console/runtime/client/sign-in.js +0 -16
- package/dist/console/runtime/client/time.d.ts +0 -30
- package/dist/console/runtime/client/time.js +0 -106
- package/dist/console/runtime/components/console-connect-agent.vue +0 -59
- package/dist/console/runtime/components/console-connections-activity.vue +0 -76
- package/dist/console/runtime/components/console-connections-approvals.vue +0 -169
- package/dist/console/runtime/components/console-connections-details.vue +0 -295
- package/dist/console/runtime/components/console-connections.vue +0 -296
- package/dist/console/runtime/components/console-env-access.vue +0 -151
- package/dist/console/runtime/components/console-env-activity.vue +0 -89
- package/dist/console/runtime/components/console-env-managed.vue +0 -203
- package/dist/console/runtime/components/console-status.vue +0 -25
- package/dist/console/runtime/components/invocation/internal/runtime-type.ts +0 -61
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +0 -1
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +0 -1
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +0 -1
- package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +0 -1
- package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +0 -1
- package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +0 -1
- package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +0 -1
- package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +0 -1
- package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +0 -1
- package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +0 -1
- package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +0 -1
- package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +0 -1
- package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +0 -111
- package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +0 -1
- package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +0 -1
- package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +0 -1
- package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +0 -1
- package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +0 -1
- package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +0 -1
- package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +0 -1
- package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +0 -1
- package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +0 -1
- package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +0 -1
- package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +0 -1
- package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +0 -4
- package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +0 -1
- package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +0 -1
- package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +0 -1
- package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +0 -1
- package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +0 -1
- package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +0 -1
- package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +0 -1
- package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +0 -1
- package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +0 -1
- package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +0 -1
- package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +0 -1
- package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +0 -1
- package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +0 -1
- package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +0 -1
- package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +0 -1
- package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +0 -1
- package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +0 -1
- package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +0 -1
- package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +0 -1
- package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +0 -1
- package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +0 -1
- package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +0 -1
- package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +0 -1
- package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +0 -1
- package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +0 -1
- package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +0 -1
- package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +0 -1
- package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +0 -1
- package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +0 -1
- package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +0 -1
- package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +0 -1
- package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +0 -1
- package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +0 -1
- package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +0 -1
- package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +0 -1
- package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +0 -1
- package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +0 -1
- package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +0 -1
- package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +0 -2
- package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +0 -1
- package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +0 -1
- package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +0 -85
- package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +0 -2
- package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +0 -6
- package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +0 -314
- package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +0 -2
- package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +0 -5
- package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +0 -1
- package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +0 -12
- package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +0 -1
- package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +0 -1
- package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +0 -1
- package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +0 -1
- package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +0 -1
- package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +0 -1
- package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +0 -1
- package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +0 -1
- package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +0 -1
- package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +0 -1
- package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +0 -1
- package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +0 -1
- package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +0 -1
- package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +0 -1
- package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +0 -1
- package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +0 -1
- package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +0 -1
- package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +0 -1
- package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +0 -1
- package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +0 -1
- package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +0 -1
- package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +0 -1
- package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +0 -1
- package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +0 -1
- package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +0 -1
- package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +0 -141
- package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +0 -1
- package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +0 -1
- package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +0 -1
- package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +0 -1
- package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +0 -1
- package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +0 -1
- package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +0 -1266
- package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +0 -1
- package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +0 -1
- package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +0 -1
- package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +0 -1
- package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +0 -1
- package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +0 -1
- package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +0 -1
- package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +0 -1
- package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +0 -1
- package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +0 -1
- package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +0 -1
- package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +0 -1
- package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +0 -1
- package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +0 -1
- package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +0 -1
- package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +0 -1
- package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +0 -1
- package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +0 -1
- package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +0 -1
- package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +0 -1
- package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +0 -1
- package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +0 -1
- package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +0 -1
- package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +0 -1
- package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +0 -1
- package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +0 -1
- package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +0 -1
- package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +0 -1
- package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +0 -1
- package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +0 -1
- package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +0 -1
- package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +0 -1
- package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +0 -1
- package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +0 -1
- package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +0 -1
- package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +0 -1
- package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +0 -1
- package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +0 -1
- package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +0 -1
- package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +0 -1
- package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +0 -1
- package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +0 -1
- package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +0 -1
- package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +0 -1
- package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +0 -1
- package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +0 -1
- package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +0 -257
- package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +0 -1
- package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +0 -1
- package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +0 -1
- package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +0 -1
- package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +0 -1
- package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +0 -1
- package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +0 -1
- package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +0 -1
- package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +0 -1
- package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +0 -1
- package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +0 -1
- package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +0 -1
- package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +0 -1
- package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +0 -1
- package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +0 -1
- package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +0 -1
- package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +0 -1
- package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +0 -1
- package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +0 -1
- package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +0 -1
- package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +0 -1
- package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +0 -1
- package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +0 -1
- package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +0 -1
- package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +0 -1
- package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +0 -1
- package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +0 -1
- package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +0 -1
- package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +0 -1
- package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +0 -1
- package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +0 -1
- package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +0 -1
- package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +0 -1
- package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +0 -1
- package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +0 -1
- package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +0 -1
- package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +0 -1
- package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +0 -1
- package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +0 -1
- package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +0 -1
- package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +0 -1
- package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +0 -1
- package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +0 -1
- package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +0 -1
- package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +0 -168
- package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +0 -1
- package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +0 -1
- package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +0 -1
- package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +0 -1
- package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +0 -1
- package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +0 -1
- package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +0 -1
- package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +0 -1
- package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +0 -1
- package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +0 -1
- package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +0 -1
- package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +0 -1
- package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +0 -1
- package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +0 -1
- package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +0 -1
- package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +0 -1
- package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +0 -1
- package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +0 -1
- package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +0 -1
- package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +0 -1
- package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +0 -1
- package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +0 -1
- package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +0 -1
- package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +0 -1
- package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +0 -1
- package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +0 -1
- package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +0 -1
- package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +0 -1
- package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +0 -1
- package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +0 -1
- package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +0 -1
- package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +0 -1
- package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +0 -1
- package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +0 -1
- package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +0 -1
- package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +0 -1
- package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +0 -1
- package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +0 -1
- package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +0 -1
- package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +0 -1
- package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +0 -1
- package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +0 -1
- package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +0 -8
- package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +0 -1
- package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +0 -1
- package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +0 -1
- package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +0 -1
- package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +0 -1
- package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +0 -1
- package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +0 -1
- package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +0 -1
- package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +0 -1
- package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +0 -1
- package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +0 -1
- package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +0 -1
- package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +0 -1
- package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +0 -1
- package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +0 -1
- package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +0 -1
- package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +0 -1
- package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +0 -1
- package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +0 -1
- package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +0 -1
- package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +0 -1
- package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +0 -1
- package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +0 -1
- package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +0 -1
- package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +0 -1
- package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +0 -1
- package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +0 -1
- package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +0 -1
- package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +0 -1
- package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +0 -1
- package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +0 -1
- package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +0 -1
- package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +0 -1
- package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +0 -1
- package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +0 -1
- package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +0 -1
- package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +0 -4
- package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +0 -1
- package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +0 -3
- package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +0 -1
- package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +0 -1
- package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +0 -1
- package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +0 -1
- package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +0 -3
- package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +0 -1
- package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +0 -4
- package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +0 -1
- package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +0 -1
- package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +0 -1
- package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +0 -1
- package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +0 -1
- package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +0 -1
- package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +0 -1
- package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +0 -1
- package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +0 -1
- package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +0 -1
- package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +0 -1
- package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +0 -1
- package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +0 -1
- package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +0 -1
- package/dist/console/runtime/public/console/console-QjK_HKoM.css +0 -2
- package/dist/console/runtime/public/console/console-j0_7kmR5.js +0 -21
- package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +0 -1
- package/dist/console/runtime/server/auth-manage.d.ts +0 -7
- package/dist/console/runtime/server/auth-manage.js +0 -155
- package/dist/console/runtime/server/client.get.d.ts +0 -3
- package/dist/console/runtime/server/client.get.js +0 -11
- package/dist/console/runtime/server/env-manage.d.ts +0 -5
- package/dist/console/runtime/server/env-manage.js +0 -10
- package/dist/console/runtime/server/mcp-authorization-server.d.ts +0 -11
- package/dist/console/runtime/server/mcp-authorization-server.js +0 -71
- package/dist/console/runtime/server/mcp-discovery.d.ts +0 -7
- package/dist/console/runtime/server/mcp-discovery.js +0 -20
- package/dist/console/runtime/server/mcp-metadata.d.ts +0 -11
- package/dist/console/runtime/server/mcp-metadata.js +0 -54
- package/dist/console/runtime/server/mcp.d.ts +0 -16
- package/dist/console/runtime/server/mcp.js +0 -364
- package/dist/console/runtime/server/page.get.d.ts +0 -4
- package/dist/console/runtime/server/page.get.js +0 -49
- package/dist/console/runtime/server/schedule-run.d.ts +0 -36
- package/dist/console/runtime/server/schedule-run.js +0 -213
- package/dist/console/runtime/server/sign-in.d.ts +0 -5
- package/dist/console/runtime/server/sign-in.js +0 -11
- package/dist/content/presets/cms.d.ts +0 -2
- package/dist/content/presets/cms.js +0 -2
- package/dist/database/drizzle.d.ts +0 -1
- package/dist/database/drizzle.js +0 -2
- package/dist/database-DLPk6HVu.d.ts +0 -7
- package/dist/database-hyYo7JVD.d.ts +0 -11
- package/dist/definitions-BJGSpYGa.d.ts +0 -209
- package/dist/definitions-Y0pIwSQm.d.ts +0 -19
- package/dist/diagnostics-YTWM3K3t.js +0 -74
- package/dist/diagnostics-lT85pbVx.d.ts +0 -6
- package/dist/document-metadata-nXusaMSq.js +0 -6
- package/dist/documents-BRt3-fIu.d.ts +0 -72
- package/dist/email/server.d.ts +0 -1
- package/dist/email/server.js +0 -2
- package/dist/env/auth.d.ts +0 -1
- package/dist/env/auth.js +0 -2
- package/dist/env/http.d.ts +0 -1
- package/dist/env/http.js +0 -2
- package/dist/env/presets.d.ts +0 -1
- package/dist/env/presets.js +0 -2
- package/dist/env/provider.d.ts +0 -1
- package/dist/env/provider.js +0 -2
- package/dist/env/schema.d.ts +0 -1
- package/dist/env/schema.js +0 -2
- package/dist/env/secret.d.ts +0 -1
- package/dist/env/secret.js +0 -2
- package/dist/error-diagnostics-n7V-_SPy.js +0 -160
- package/dist/h3-v1-request-DDGXJ9E7.js +0 -166
- package/dist/index-CWk5rJOo.d.ts +0 -247
- package/dist/internal-Ca7DYHpa.js +0 -311
- package/dist/internal-VvXn0bX4.d.ts +0 -25
- package/dist/invocations-DkjhdkpT.js +0 -1151
- package/dist/invocations-TvN9ux06.d.ts +0 -47
- package/dist/loopback-DAr1IFQP.js +0 -43
- package/dist/media-BBybn3NP.js +0 -512
- package/dist/operation-contributions-BXHKgT_w.d.ts +0 -18
- package/dist/operations-4uDh4zah.js +0 -38
- package/dist/operations-7RHOMAHT.js +0 -455
- package/dist/operations-Bgklf9hM.d.ts +0 -149
- package/dist/operations-CwqEItfA.js +0 -468
- package/dist/package-BsfDnNm8.js +0 -1119
- package/dist/page-tools-B3g4CQ5c.js +0 -402
- package/dist/page-tools-C5dufxVz.d.ts +0 -16
- package/dist/page-tools-shared-D-amu6sx.js +0 -53
- package/dist/project-registry-BT7RcCcQ.js +0 -39
- package/dist/registry-dSdI2Oa3.js +0 -142
- package/dist/request-BT6g-Fwf.js +0 -326
- package/dist/request-DOvvVgpI.d.ts +0 -52
- package/dist/retention-DBXuVtQL.js +0 -257
- package/dist/rolldown-runtime-8H4AJuhK.js +0 -14
- package/dist/runtime/h3.d.ts +0 -2
- package/dist/runtime/h3.js +0 -2
- package/dist/runtime/node.d.ts +0 -1
- package/dist/runtime/node.js +0 -2
- package/dist/runtime-DPqC3MTX.js +0 -60
- package/dist/scan-module-TmHMoGKw.js +0 -148
- package/dist/secret-DrgWMRms.js +0 -47
- package/dist/sections-BVtKNenQ.js +0 -108
- package/dist/sections-C985LlW2.d.ts +0 -31
- package/dist/sections-Drj-o4_z.d.ts +0 -141
- package/dist/source/file.d.ts +0 -1
- package/dist/source/file.js +0 -2
- package/dist/source/files.d.ts +0 -1
- package/dist/source/files.js +0 -2
- package/dist/source/github.d.ts +0 -1
- package/dist/source/github.js +0 -2
- package/dist/source/glob.d.ts +0 -1
- package/dist/source/glob.js +0 -2
- package/dist/source/markdown.d.ts +0 -1
- package/dist/source/markdown.js +0 -2
- package/dist/src-CaqWiza-.js +0 -7910
- package/dist/task.d.ts +0 -3
- package/dist/task.js +0 -2
- package/dist/types-BsuwNk3q.js +0 -256
- package/dist/ui/attachment.d.ts +0 -1
- package/dist/ui/attachment.js +0 -2
- package/dist/ui/avatar-stack.d.ts +0 -1
- package/dist/ui/avatar-stack.js +0 -2
- package/dist/ui/bubble.d.ts +0 -1
- package/dist/ui/bubble.js +0 -2
- package/dist/ui/chat-message.d.ts +0 -1
- package/dist/ui/chat-message.js +0 -2
- package/dist/ui/chat-session.d.ts +0 -1
- package/dist/ui/chat-session.js +0 -2
- package/dist/ui/chat.d.ts +0 -1
- package/dist/ui/chat.js +0 -2
- package/dist/ui/code-block.d.ts +0 -1
- package/dist/ui/code-block.js +0 -2
- package/dist/ui/code-view.d.ts +0 -1
- package/dist/ui/code-view.js +0 -2
- package/dist/ui/comments.d.ts +0 -1
- package/dist/ui/comments.js +0 -2
- package/dist/ui/connection-status.d.ts +0 -1
- package/dist/ui/connection-status.js +0 -2
- package/dist/ui/file-diff.d.ts +0 -1
- package/dist/ui/file-diff.js +0 -2
- package/dist/ui/file-tree.d.ts +0 -1
- package/dist/ui/file-tree.js +0 -2
- package/dist/ui/file-view.d.ts +0 -1
- package/dist/ui/file-view.js +0 -2
- package/dist/ui/markdown.d.ts +0 -1
- package/dist/ui/markdown.js +0 -2
- package/dist/ui/marker.d.ts +0 -1
- package/dist/ui/marker.js +0 -2
- package/dist/ui/message-parts.d.ts +0 -1
- package/dist/ui/message-parts.js +0 -2
- package/dist/ui/message.d.ts +0 -1
- package/dist/ui/message.js +0 -2
- package/dist/ui/multi-file-diff.d.ts +0 -1
- package/dist/ui/multi-file-diff.js +0 -2
- package/dist/ui/nuxt.d.ts +0 -3
- package/dist/ui/nuxt.js +0 -3
- package/dist/ui/patch-diff.d.ts +0 -1
- package/dist/ui/patch-diff.js +0 -2
- package/dist/ui/prompt-input.d.ts +0 -1
- package/dist/ui/prompt-input.js +0 -2
- package/dist/ui/sync-status.d.ts +0 -1
- package/dist/ui/sync-status.js +0 -2
- package/dist/ui/tool-list.d.ts +0 -1
- package/dist/ui/tool-list.js +0 -2
- package/dist/ui/trace-run.d.ts +0 -1
- package/dist/ui/trace-run.js +0 -2
- package/dist/ui/trace.d.ts +0 -1
- package/dist/ui/trace.js +0 -2
- package/dist/ui/unresolved-file.d.ts +0 -1
- package/dist/ui/unresolved-file.js +0 -2
package/dist/nuxt.js
CHANGED
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { s as
|
|
8
|
-
import {
|
|
1
|
+
import { t as invariant } from "./invariant-DolT9EEx.js";
|
|
2
|
+
import { i as importOptionalOwner, l as requireOptionalOwner, o as isPackageInstalled, u as startPackageChecks } from "./optional-owners-BNA2OX6z.js";
|
|
3
|
+
import { n as isRecord } from "./object-D8pRdprI.js";
|
|
4
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
|
|
5
|
+
import { a as writeViteHubDevServerFile, i as removeViteHubDevServerFile } from "./vite-stage-mmtwQIMA.js";
|
|
6
|
+
import { D as resolveConsoleSectionIds, v as insertConsoleSection } from "./sections-DumoLKQN.js";
|
|
7
|
+
import { $ as nitroCacheBypass, A as cloudflareWorkersDevShimSource, B as hasRedisStore, C as consoleDocumentEditorSectionIds, Ct as resolveViteHubProjectRoot, D as staleChunkReloadPluginName, E as installStaleChunkReloadNuxt, F as writeAgentInvocationsNitroPlugin, G as writeFileIfChanged, H as redisDriverSpecifier, I as generatedModules, K as markCmsPresetFeaturesResolved, L as disabledKVConfigModule, M as assertAgentInvocationsRetention, N as assertAgentInvocationsUrl, O as forgeBuildCheckPlugin, P as defaultJournalNeedsLibsql, Q as resolveDeploymentPlan, R as disabledRedisDriver, S as consoleContributedSections, St as resolveNuxtServerDirs, T as isConsoleContributedSectionId, U as upstashDriverSpecifier, V as hasUpstashStore, W as resolveDefinitionFeatures, X as normalizeNitroPreset, Y as hostFromNitroPreset, Z as resolveBuildHost, _ as addConsoleRpcHandler, _t as VITEHUB_NITRO_CONFIG_CONTEXT, a as cloudflareExportConditions, at as defaultDatabaseD1Binding, b as resolveConsoleProjectName, bt as VITEHUB_SERVER_DIRS, c as consoleInvocationRootPlugin, ct as withDataDir, d as resolveConsoleAccessBuild, dt as ownerModules, et as describeDeploymentPlanOutput, f as resolveConsoleOptions, ft as isIncludedNitroPlugin, g as addConsoleAppRoutes, gt as VITEHUB_GENERATED_ROOT, h as consoleOperationFeatures, ht as VITEHUB_APP_BASE_URL, i as installBrowserErrorsNuxt, it as agentJournalStateUrl, j as VITEHUB_AGENT_JOURNAL_D1, k as cloudflareEmailDevShimSource, l as consoleOperationContributions, lt as isDefaultAgentJournal, m as consoleDevAccessNotice, n as resolveSandboxTaskDriver, nt as reportViteHubHint, o as assertConsoleAccess, ot as withComments, p as resolveGeneratedConsolePlugin, q as resolveCmsPresetFeatures, r as viteHubPlugins, rt as startViteHubHints, s as assertConsoleProductionAuth, st as withConnectionsDatabase, t as applyCloudflareNodeCompatOptOut, tt as VITEHUB_NUXT_HINTS, u as generatedConsolePluginRegistration, ut as hasSyncDirectory, v as serializeConsoleRefresh, vt as VITEHUB_PREPARE, w as discoverConsoleEntrySections, x as discoverConsoleBuildCatalog, xt as getResolvedFeatureOptions, y as writeConsoleNitroPlugin, yt as VITEHUB_PROJECT_ROOT, z as disabledUpstashDriver } from "./plugins-B-DpgDPB.js";
|
|
8
|
+
import { n as addViteHubDevPeerUpgradeSigner, t as addViteHubDevPeerDevHandler } from "./dev-peer-am78OsHH.js";
|
|
9
|
+
import { n as installConsoleProjectName, r as installConsoleSections } from "./setup-C-5nB7aY.js";
|
|
10
|
+
import { t as resolveViteHubServerImports } from "./nuxt-server-imports-DH60Z7LA.js";
|
|
11
|
+
import { n as assertNoRemovedViteHubOptions } from "./version-DNmSsk5r.js";
|
|
9
12
|
import { findPackageJSON } from "node:module";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import * as v from "valibot";
|
|
13
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
14
|
+
import { existsSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
13
15
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
14
|
-
import {
|
|
16
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
17
|
+
import * as v from "valibot";
|
|
18
|
+
import { mergeGeneratedSourceNitroConfig } from "@vite-hub/source/vite";
|
|
15
19
|
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
20
|
import { createEnvImportAliases } from "@vite-hub/env/vite";
|
|
21
|
-
import {
|
|
22
|
-
import { mergeGeneratedSourceNitroConfig } from "@vite-hub/source/vite";
|
|
23
|
-
import { transform } from "esbuild";
|
|
24
|
-
import { parseJSONC, parseTOML } from "confbox";
|
|
21
|
+
import { nuxtPageRoutes } from "@vite-hub/bundle/vite";
|
|
25
22
|
import { findNearestFile } from "pkg-types";
|
|
26
|
-
import hubAuthNuxt from "@vite-hub/auth/nuxt";
|
|
27
|
-
import { hubDb } from "@vite-hub/database/nuxt";
|
|
28
23
|
//#region src/internal/nitro-optional-peers.ts
|
|
29
24
|
const manifestSchema = v.object({
|
|
30
25
|
optionalDependencies: v.optional(v.record(v.string(), v.string())),
|
|
@@ -59,32 +54,52 @@ function nitroOptionalPeers(config = {}) {
|
|
|
59
54
|
findPackageJSON(`${packageName}/package.json`, parent);
|
|
60
55
|
} catch (error) {
|
|
61
56
|
if (!(error instanceof Error && "code" in error && error.code === "ERR_MODULE_NOT_FOUND")) return;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
}
|
|
57
|
+
return await this.resolve(source, importer, {
|
|
58
|
+
...options,
|
|
59
|
+
skipSelf: true
|
|
60
|
+
}) ?? {
|
|
61
|
+
id: source,
|
|
62
|
+
external: true
|
|
63
|
+
};
|
|
77
64
|
}
|
|
78
65
|
}
|
|
79
66
|
};
|
|
80
67
|
}
|
|
81
68
|
//#endregion
|
|
69
|
+
//#region src/internal/nuxt-image.ts
|
|
70
|
+
function usesNuxtImage(modules) {
|
|
71
|
+
return (modules ?? []).some((entry) => (Array.isArray(entry) ? entry[0] : entry) === "@nuxt/image");
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Registers the `vitehub` Nuxt Image provider when the app enables `@nuxt/image` and serves a Blob Store. Nuxt reads
|
|
75
|
+
* dependency defaults before any module setup, so the order of `modules` does not matter, and an
|
|
76
|
+
* `image.providers.vitehub` entry in the app config wins. Reads `vitehub.blob` from `nuxt.config.ts` only.
|
|
77
|
+
*/
|
|
78
|
+
function nuxtImageProviderDependency(options) {
|
|
79
|
+
const blob = options.vitehub?.blob;
|
|
80
|
+
if (!blob || blob === true || !blob.serve || !usesNuxtImage(options.modules)) return void 0;
|
|
81
|
+
const serve = blob.serve;
|
|
82
|
+
const route = `/${(serve.route?.trim() || "/_vitehub/blob").replace(/^\/+|\/+$/g, "")}`;
|
|
83
|
+
const baseURL = `${(serve.publicBaseUrl?.trim() || options.app?.baseURL || "").replace(/\/+$/, "")}${route}`;
|
|
84
|
+
const sizes = blob.images ? blob.images.sizes : void 0;
|
|
85
|
+
return { "@nuxt/image": {
|
|
86
|
+
defaults: { providers: { vitehub: {
|
|
87
|
+
options: {
|
|
88
|
+
baseURL,
|
|
89
|
+
...sizes ? { imageSizes: sizes } : {}
|
|
90
|
+
},
|
|
91
|
+
provider: "vite-hub/blob/nuxt-image"
|
|
92
|
+
} } },
|
|
93
|
+
optional: true
|
|
94
|
+
} };
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
82
97
|
//#region src/nuxt.ts
|
|
83
|
-
const databaseRuntimeState = fileURLToPath(new URL("./_internal/database/runtime/state", import.meta.url));
|
|
84
98
|
const doctorExtensionEntry = fileURLToPath(new URL("./doctor", import.meta.url));
|
|
85
99
|
const consoleRuntimeRoot = fileURLToPath(new URL("./console/runtime", import.meta.url));
|
|
86
|
-
|
|
87
|
-
|
|
100
|
+
/** True when the app names a Blob driver or stores, which works on hosts without a default Blob store. */
|
|
101
|
+
function explicitBlobOption(value) {
|
|
102
|
+
return Boolean(value && value !== true && ("driver" in value || "stores" in value));
|
|
88
103
|
}
|
|
89
104
|
function configuredProjectRoot(root, value) {
|
|
90
105
|
return value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string" ? resolve(root, value.projectRoot) : void 0;
|
|
@@ -92,52 +107,22 @@ function configuredProjectRoot(root, value) {
|
|
|
92
107
|
function configuredProjectRootOption(value) {
|
|
93
108
|
return value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string" ? value.projectRoot : void 0;
|
|
94
109
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const alias = isPlainObject(config?.alias) ? config.alias["#vitehub/env/server"] : void 0;
|
|
111
|
-
return typeof alias === "string" ? alias : void 0;
|
|
110
|
+
async function writeCloudflareAssetsMiddleware(projectRoot) {
|
|
111
|
+
const file = join(projectRoot, ".vitehub/nitro/cloudflare-assets.mjs");
|
|
112
|
+
await writeFileIfChanged(file, [
|
|
113
|
+
"import { defineHandler } from \"nitro\"",
|
|
114
|
+
"export default defineHandler(async event => {",
|
|
115
|
+
" const request = event.req",
|
|
116
|
+
" if (request.method !== \"GET\" && request.method !== \"HEAD\") return",
|
|
117
|
+
" const assets = request.runtime?.cloudflare?.env.ASSETS",
|
|
118
|
+
" if (!assets) return",
|
|
119
|
+
" const response = await assets.fetch(request)",
|
|
120
|
+
" if (response.status !== 404) return response",
|
|
121
|
+
"})",
|
|
122
|
+
""
|
|
123
|
+
].join("\n"));
|
|
124
|
+
return file;
|
|
112
125
|
}
|
|
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
126
|
function configuredScanDirs(value) {
|
|
142
127
|
return value && typeof value === "object" && "scanDirs" in value && Array.isArray(value.scanDirs) ? value.scanDirs.filter((entry) => typeof entry === "string") : void 0;
|
|
143
128
|
}
|
|
@@ -171,7 +156,9 @@ const agentVueComposables = [
|
|
|
171
156
|
];
|
|
172
157
|
const h3RuntimeRoot = dirname(fileURLToPath(import.meta.resolve("h3/package.json")));
|
|
173
158
|
const cloudflareTypes = fileURLToPath(new URL("./cloudflare-types.d.ts", import.meta.url));
|
|
159
|
+
const cloudflareWorkersDeclaration = fileURLToPath(new URL("./cloudflare-workers.d.ts", import.meta.url));
|
|
174
160
|
function emailTemplateResolver(root) {
|
|
161
|
+
const { resolveEmailTemplateModulePath } = requireOptionalOwner(ownerModules.emailVite, "email");
|
|
175
162
|
return {
|
|
176
163
|
name: "vite-hub/nuxt-email-templates",
|
|
177
164
|
resolveId: (id) => resolveEmailTemplateModulePath(root, id)
|
|
@@ -182,23 +169,30 @@ function installEmailTemplateResolver(config, root) {
|
|
|
182
169
|
const plugins = rollupConfig.plugins ??= [];
|
|
183
170
|
if (!plugins.some((plugin) => plugin.name === "vite-hub/nuxt-email-templates")) plugins.push(emailTemplateResolver(root));
|
|
184
171
|
}
|
|
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
172
|
function isExternalId(external, id, importer, isResolved) {
|
|
194
173
|
if (typeof external === "function") return Boolean(external(id, importer, isResolved));
|
|
195
174
|
if (external === void 0) return false;
|
|
196
175
|
return [external].flat().some((entry) => typeof entry === "string" ? entry === id : entry.test(id));
|
|
197
176
|
}
|
|
177
|
+
/** Node stubs for the Cloudflare runtime modules that ViteHub's generated server code imports. */
|
|
178
|
+
const cloudflareDevShims = {
|
|
179
|
+
"cloudflare:email": {
|
|
180
|
+
file: "cloudflare-email.dev.mjs",
|
|
181
|
+
source: cloudflareEmailDevShimSource
|
|
182
|
+
},
|
|
183
|
+
"cloudflare:workers": {
|
|
184
|
+
file: "cloudflare-workers.dev.mjs",
|
|
185
|
+
source: cloudflareWorkersDevShimSource
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
function isCloudflareDevShim(id) {
|
|
189
|
+
return Object.hasOwn(cloudflareDevShims, id);
|
|
190
|
+
}
|
|
198
191
|
/**
|
|
199
|
-
* `nuxt dev` runs
|
|
200
|
-
* generated Nitro plugins list
|
|
201
|
-
* applies aliases, so the dev bundle
|
|
192
|
+
* `nuxt dev` with the Cloudflare preset runs the server on Node, where ViteHub aliases `cloudflare:workers` and
|
|
193
|
+
* `cloudflare:email` to Node stubs. ViteHub's generated Nitro plugins list those schemes as external for the Worker
|
|
194
|
+
* build, and the bundler asks `external` before it applies aliases, so the dev bundle would keep an import that Node
|
|
195
|
+
* cannot load.
|
|
202
196
|
*/
|
|
203
197
|
const nitroCloudflareWorkersDev = {
|
|
204
198
|
name: "vite-hub/nitro-cloudflare-workers-dev",
|
|
@@ -206,11 +200,14 @@ const nitroCloudflareWorkersDev = {
|
|
|
206
200
|
const external = options.external;
|
|
207
201
|
return {
|
|
208
202
|
...options,
|
|
209
|
-
external: (id, importer, isResolved) => id
|
|
203
|
+
external: (id, importer, isResolved) => isCloudflareDevShim(id) ? false : isExternalId(external, id, importer, isResolved)
|
|
210
204
|
};
|
|
211
205
|
}
|
|
212
206
|
};
|
|
213
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* Keep ViteHub's own `h3` imports on H3 2. Nuxt's Nitro v2 compatibility layer resolves `h3` to an H3 1 shim for
|
|
209
|
+
* server code that it marks as legacy.
|
|
210
|
+
*/
|
|
214
211
|
function nitroViteHubH3(generatedRoots) {
|
|
215
212
|
const roots = generatedRoots.map((root) => `${root.replaceAll("\\", "/").replace(/\/+$/, "")}/`);
|
|
216
213
|
const owners = /* @__PURE__ */ new Map();
|
|
@@ -226,7 +223,8 @@ function nitroViteHubH3(generatedRoots) {
|
|
|
226
223
|
try {
|
|
227
224
|
const manifest = findPackageJSON(pathToFileURL(path), import.meta.url);
|
|
228
225
|
const pkg = manifest ? JSON.parse(readFileSync(manifest, "utf8")) : void 0;
|
|
229
|
-
|
|
226
|
+
const hostH3 = isRecord(pkg) && isRecord(pkg.devDependencies) && "h3" in pkg.devDependencies && !(isRecord(pkg.dependencies) && "h3" in pkg.dependencies);
|
|
227
|
+
owned = isRecord(pkg) && !hostH3 && (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
228
|
} catch {
|
|
231
229
|
owned = false;
|
|
232
230
|
}
|
|
@@ -239,42 +237,32 @@ function nitroViteHubH3(generatedRoots) {
|
|
|
239
237
|
};
|
|
240
238
|
}
|
|
241
239
|
/** Node development uses request bindings without importing the production Cloudflare runtime. */
|
|
242
|
-
async function
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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;
|
|
240
|
+
async function writeCloudflareDevShims(buildDir, alias) {
|
|
241
|
+
for (const [id, shim] of Object.entries(cloudflareDevShims)) {
|
|
242
|
+
if (alias[id] !== void 0) continue;
|
|
243
|
+
const file = join(buildDir, "vitehub", shim.file);
|
|
244
|
+
await writeFileIfChanged(file, shim.source);
|
|
245
|
+
alias[id] = file;
|
|
246
|
+
}
|
|
263
247
|
}
|
|
264
248
|
function normalizeGeneratedNitroPlugins(config, root) {
|
|
265
249
|
if (!Array.isArray(config.plugins)) return;
|
|
266
250
|
config.plugins = config.plugins.map((plugin) => typeof plugin === "string" && /^\.vitehub[\\/]/.test(plugin) && !isAbsolute(plugin) ? resolve(root, plugin) : plugin);
|
|
267
251
|
}
|
|
268
|
-
/**
|
|
269
|
-
|
|
252
|
+
/**
|
|
253
|
+
* Put these plugins before Nitro's own resolvers, so they see generated and cache imports first. Each one goes first, so
|
|
254
|
+
* in a build `forgeBuildCheckPlugin()` can wrap Source imports before Nitro resolves them.
|
|
255
|
+
*/
|
|
256
|
+
function installNitroBuildPlugins(config, generatedRoots, dev = false, sections = [], build = false) {
|
|
270
257
|
const rollupConfig = config.rollupConfig ??= {};
|
|
271
258
|
const plugins = rollupConfig.plugins ??= [];
|
|
272
259
|
for (const plugin of [
|
|
273
260
|
nitroCacheBypass(),
|
|
274
|
-
nitroFileUrlResolver,
|
|
275
261
|
nitroViteHubH3(generatedRoots),
|
|
276
262
|
nitroOptionalPeers(config),
|
|
277
|
-
|
|
263
|
+
consoleOperationFeatures(sections),
|
|
264
|
+
...dev ? [nitroCloudflareWorkersDev] : [],
|
|
265
|
+
...build ? [forgeBuildCheckPlugin()] : []
|
|
278
266
|
]) if (!plugins.some((candidate) => candidate.name === plugin.name)) plugins.unshift(plugin);
|
|
279
267
|
}
|
|
280
268
|
function pluginOptionHasName(option, name) {
|
|
@@ -284,11 +272,24 @@ function pluginOptionHasName(option, name) {
|
|
|
284
272
|
const nitroRuntimeResolverNames = /* @__PURE__ */ new Set([
|
|
285
273
|
"@vite-hub/auth/vite",
|
|
286
274
|
"@vite-hub/blob/vite",
|
|
275
|
+
"@vite-hub/browser/vite",
|
|
287
276
|
"@vite-hub/email/vite",
|
|
288
277
|
"@vite-hub/kv/vite",
|
|
289
|
-
"@vite-hub/markdown-template/vite"
|
|
278
|
+
"@vite-hub/markdown-template/vite",
|
|
279
|
+
"@vite-hub/realtime/vite",
|
|
280
|
+
"vite-hub/optional-owner-imports",
|
|
281
|
+
"vite-hub/cloudflare-sh-syntax",
|
|
282
|
+
"vite-hub/durability",
|
|
283
|
+
"vite-hub/cloudflare-pkce-challenge",
|
|
284
|
+
"vite-hub/unavailable-services"
|
|
285
|
+
]);
|
|
286
|
+
const nitroConfigResolvedNames = /* @__PURE__ */ new Set([
|
|
287
|
+
...nitroRuntimeResolverNames,
|
|
288
|
+
"@vite-hub/content/vite",
|
|
289
|
+
"@vite-hub/sandbox/task/vite",
|
|
290
|
+
"@vite-hub/schedule/vite",
|
|
291
|
+
"@vite-hub/workflow/vite"
|
|
290
292
|
]);
|
|
291
|
-
const nitroConfigResolvedNames = /* @__PURE__ */ new Set([...nitroRuntimeResolverNames, "@vite-hub/sandbox/task/vite"]);
|
|
292
293
|
function pluginResolveIdHandler(plugin) {
|
|
293
294
|
if (typeof plugin.resolveId === "function") return plugin.resolveId;
|
|
294
295
|
return plugin.resolveId?.handler;
|
|
@@ -302,33 +303,67 @@ function pluginConfigResolvedHandler(plugin) {
|
|
|
302
303
|
return plugin.configResolved?.handler;
|
|
303
304
|
}
|
|
304
305
|
function asReplayResolvedConfig(config) {
|
|
306
|
+
if (config.resolve?.alias && !Array.isArray(config.resolve.alias)) config.resolve.alias = Object.entries(config.resolve.alias).map(([find, replacement]) => ({
|
|
307
|
+
find,
|
|
308
|
+
replacement
|
|
309
|
+
}));
|
|
305
310
|
return config;
|
|
306
311
|
}
|
|
307
312
|
async function finalizeNitroReplayPlugins(plugins, config) {
|
|
308
|
-
|
|
309
|
-
|
|
313
|
+
const databaseOwners = plugins.filter((plugin) => plugin.name === "@vite-hub/database/vite");
|
|
314
|
+
const consumers = plugins.filter((plugin) => nitroConfigResolvedNames.has(plugin.name));
|
|
315
|
+
for (const plugin of [...databaseOwners, ...consumers]) {
|
|
310
316
|
const configResolved = pluginConfigResolvedHandler(plugin);
|
|
311
317
|
if (!configResolved) continue;
|
|
312
318
|
await configResolved.call({}, asReplayResolvedConfig(config));
|
|
313
319
|
}
|
|
314
320
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
321
|
+
/** Keep the hook's filter, so the bundler skips the replayed hook for ids that the plugin does not own. */
|
|
322
|
+
function withHookFilter(hook, handler) {
|
|
323
|
+
return isRecord(hook) && hook.filter !== void 0 ? {
|
|
324
|
+
filter: hook.filter,
|
|
325
|
+
handler
|
|
326
|
+
} : handler;
|
|
327
|
+
}
|
|
328
|
+
function nitroRuntimeResolver(plugin, config, agentOptions) {
|
|
329
|
+
const resolveId = nitroRuntimeResolverNames.has(plugin.name) ? pluginResolveIdHandler(plugin) : void 0;
|
|
330
|
+
const load = nitroRuntimeResolverNames.has(plugin.name) ? pluginLoadHandler(plugin) : void 0;
|
|
331
|
+
const transformWorkspaceAgent = plugin.vitehub?.agent?.transformWorkspaceAgent;
|
|
332
|
+
const workflowTransform = plugin.name === "@vite-hub/workflow/vite" ? typeof plugin.transform === "function" ? plugin.transform : plugin.transform?.handler : void 0;
|
|
333
|
+
if (!resolveId && !load && !transformWorkspaceAgent && !workflowTransform) return;
|
|
334
|
+
const replayResolveId = resolveId && function(id, importer, options) {
|
|
335
|
+
if (isCloudflareDevShim(id) && isRecord(config.alias) && typeof config.alias[id] === "string") return;
|
|
336
|
+
return resolveId.call(this, id, importer, {
|
|
337
|
+
...options,
|
|
338
|
+
ssr: true
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
const replayLoad = load && function(id, options) {
|
|
342
|
+
return load.call(this, id, {
|
|
343
|
+
...options,
|
|
344
|
+
ssr: true
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
const replayWorkflowTransform = workflowTransform && function(code, id, options) {
|
|
348
|
+
return workflowTransform.call(this, code, id, {
|
|
349
|
+
moduleType: "js",
|
|
350
|
+
...options,
|
|
351
|
+
ssr: true
|
|
352
|
+
});
|
|
353
|
+
};
|
|
320
354
|
return {
|
|
321
355
|
name: `vite-hub/nuxt-runtime-resolver:${plugin.name}`,
|
|
322
|
-
...
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
...
|
|
326
|
-
|
|
356
|
+
...replayResolveId ? { resolveId: withHookFilter(plugin.resolveId, replayResolveId) } : {},
|
|
357
|
+
...replayLoad ? { load: withHookFilter(plugin.load, replayLoad) } : {},
|
|
358
|
+
...replayWorkflowTransform ? { transform: withHookFilter(plugin.transform, replayWorkflowTransform) } : {},
|
|
359
|
+
...transformWorkspaceAgent ? { transform: {
|
|
360
|
+
filter: { id: /\.[cm]?[jt]s(?:[?#]|$)/i },
|
|
361
|
+
handler: (code, id) => transformWorkspaceAgent(code, id, agentOptions)
|
|
327
362
|
} } : {}
|
|
328
363
|
};
|
|
329
364
|
}
|
|
330
|
-
function installNitroRuntimeResolvers(config, plugins) {
|
|
331
|
-
const resolvers = plugins.map(nitroRuntimeResolver).filter((plugin) => Boolean(plugin));
|
|
365
|
+
function installNitroRuntimeResolvers(config, plugins, agentOptions) {
|
|
366
|
+
const resolvers = plugins.map((plugin) => nitroRuntimeResolver(plugin, config, agentOptions)).filter((plugin) => Boolean(plugin));
|
|
332
367
|
if (!resolvers.length) return;
|
|
333
368
|
const rollupConfig = config.rollupConfig ??= {};
|
|
334
369
|
const configuredPlugins = rollupConfig.plugins;
|
|
@@ -336,38 +371,6 @@ function installNitroRuntimeResolvers(config, plugins) {
|
|
|
336
371
|
rollupConfig.plugins = nitroPlugins;
|
|
337
372
|
for (const resolver of resolvers) if (!nitroPlugins.some((candidate) => pluginOptionHasName(candidate, resolver.name))) nitroPlugins.push(resolver);
|
|
338
373
|
}
|
|
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
374
|
function addTypeScriptDefaults(options, includes, excludes, key = "tsConfig") {
|
|
372
375
|
const typescript = options.typescript ??= {};
|
|
373
376
|
const tsConfig = typescript[key] ??= {};
|
|
@@ -380,6 +383,88 @@ function configuredProjectRoots(options, rootDir, viteRoot) {
|
|
|
380
383
|
return Boolean(value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string");
|
|
381
384
|
}).map(([name, value]) => resolve(name === "database" ? rootDir : viteRoot, value.projectRoot));
|
|
382
385
|
}
|
|
386
|
+
/**
|
|
387
|
+
* Adds the client plugin that opens `@vite-hub/device`. On a page that the server rendered, it opens the device after
|
|
388
|
+
* hydration, so the first render matches the server HTML. Without server HTML, it opens the device before the app
|
|
389
|
+
* mounts, so the first render shows the stored copies. With Auth, it names the account of `useUserSession()`, and
|
|
390
|
+
* `signOut()` waits until the copies are gone. The plugin goes to `.vitehub/device/`, because Nuxt clears its build
|
|
391
|
+
* directory after modules run.
|
|
392
|
+
*/
|
|
393
|
+
async function addDevicePlugin(nuxt, projectRoot, options) {
|
|
394
|
+
const src = join(projectRoot, ".vitehub/device/nuxt-plugin.mjs");
|
|
395
|
+
const open = `openDevice(${options.version === void 0 ? "" : JSON.stringify({ version: options.version })})`;
|
|
396
|
+
await writeFileIfChanged(src, `import { defineNuxtPlugin, watch } from "#imports"
|
|
397
|
+
import { openDevice, setDeviceAccount } from "vite-hub/device"
|
|
398
|
+
${options.auth ? `import { onSignOut, useUserSession } from "vite-hub/auth/vue"\n` : ""}
|
|
399
|
+
export default defineNuxtPlugin({
|
|
400
|
+
name: "vitehub:device",${options.auth ? `\n dependsOn: ["vitehub:auth"],` : ""}
|
|
401
|
+
async setup(nuxtApp) {${options.auth ? `
|
|
402
|
+
const report = ([error]) => error && console.warn(error)
|
|
403
|
+
const session = useUserSession()
|
|
404
|
+
// A session read that failed names nobody, so an offline reload keeps the copies.
|
|
405
|
+
watch(() => session.ready.value && !session.error.value ? session.user.value?.id ?? null : undefined, (account) => {
|
|
406
|
+
if (account !== undefined) setDeviceAccount(account).then(report)
|
|
407
|
+
}, { immediate: true, flush: "sync" })
|
|
408
|
+
onSignOut(() => setDeviceAccount(null).then(report))` : ""}
|
|
409
|
+
// Hydration does not wait for IndexedDB. A read that hydrates renders what the server rendered either way.
|
|
410
|
+
if (nuxtApp.payload.serverRendered) nuxtApp.hooks.hookOnce("app:suspense:resolve", () => void ${open})
|
|
411
|
+
else await ${open}
|
|
412
|
+
},
|
|
413
|
+
})
|
|
414
|
+
`);
|
|
415
|
+
const plugins = nuxt.options.plugins ??= [];
|
|
416
|
+
if (!plugins.some((plugin) => (typeof plugin === "string" ? plugin : plugin.src) === src)) plugins.push({
|
|
417
|
+
src,
|
|
418
|
+
mode: "client"
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Restarts the dev server when a file of `server/sync/` comes or goes. Sync reads the folder when the server starts, for
|
|
423
|
+
* the routes and the types of `useSync()`, so a new definition answers `SYNC_UNKNOWN_NAME` until a restart.
|
|
424
|
+
*/
|
|
425
|
+
function restartOnSyncDefinitions(nuxt, projectRoot) {
|
|
426
|
+
const folders = (resolveNuxtServerDirs(nuxt.options) ?? ["server"]).map((directory) => resolve(projectRoot, directory, "sync"));
|
|
427
|
+
const hookBuilderWatch = nuxt.hook;
|
|
428
|
+
hookBuilderWatch?.("builder:watch", async (event, path) => {
|
|
429
|
+
if (event !== "add" && event !== "unlink" && event !== "addDir" && event !== "unlinkDir") return;
|
|
430
|
+
const file = resolve(projectRoot, path);
|
|
431
|
+
if (event.endsWith("Dir") ? folders.includes(file) : folders.includes(dirname(file)) && /\.m?[jt]s$/.test(file) && !file.endsWith(".d.ts")) await nuxt.callHook?.("restart");
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Adds the client plugin that names the user of ViteHub Auth to Sync, and forgets the synced rows after a sign-out, so
|
|
436
|
+
* the next person on the device does not see them. The queued writes stay for the account that made them, and go out
|
|
437
|
+
* when it signs in again. `signOut()` waits for the plugin. The plugin goes to `.vitehub/sync/`, because Nuxt clears its
|
|
438
|
+
* build directory after modules run.
|
|
439
|
+
*/
|
|
440
|
+
async function addSyncSignOutPlugin(nuxt, projectRoot) {
|
|
441
|
+
const src = join(projectRoot, ".vitehub/sync/nuxt-sign-out.mjs");
|
|
442
|
+
await writeFileIfChanged(src, `import { defineNuxtPlugin, watch } from "#imports"
|
|
443
|
+
import { onSignOut, useUserSession } from "vite-hub/auth/vue"
|
|
444
|
+
import { clearSync, setSyncUser } from "vite-hub/sync/client"
|
|
445
|
+
|
|
446
|
+
export default defineNuxtPlugin({
|
|
447
|
+
name: "vite-hub:sync-sign-out",
|
|
448
|
+
dependsOn: ["vitehub:auth"],
|
|
449
|
+
setup() {
|
|
450
|
+
const session = useUserSession()
|
|
451
|
+
// A session read that failed names nobody, so an offline reload keeps the user.
|
|
452
|
+
watch(() => session.ready.value && !session.error.value ? session.user.value?.id ?? null : undefined, (id) => {
|
|
453
|
+
if (id !== undefined) setSyncUser(id)
|
|
454
|
+
}, { immediate: true, flush: "sync" })
|
|
455
|
+
onSignOut(async () => {
|
|
456
|
+
await clearSync({ keepWrites: true })
|
|
457
|
+
setSyncUser(null)
|
|
458
|
+
})
|
|
459
|
+
},
|
|
460
|
+
})
|
|
461
|
+
`);
|
|
462
|
+
const plugins = nuxt.options.plugins ??= [];
|
|
463
|
+
if (!plugins.some((plugin) => (typeof plugin === "string" ? plugin : plugin.src) === src)) plugins.push({
|
|
464
|
+
src,
|
|
465
|
+
mode: "client"
|
|
466
|
+
});
|
|
467
|
+
}
|
|
383
468
|
function addVueImports(nuxt, from, names) {
|
|
384
469
|
nuxt.options.imports ??= {};
|
|
385
470
|
const imports = nuxt.options.imports.imports ??= [];
|
|
@@ -393,46 +478,41 @@ function addVueImports(nuxt, from, names) {
|
|
|
393
478
|
}
|
|
394
479
|
}
|
|
395
480
|
/**
|
|
396
|
-
* Add
|
|
397
|
-
* `
|
|
481
|
+
* Add ViteHub's server helpers to the auto-imports that Nuxt 5 gives to Nitro code. The app turns them off with
|
|
482
|
+
* `nitro: { imports: false }`, which makes `imports` false here, or with `imports: { autoImport: false }`, which Nuxt
|
|
483
|
+
* copies to `imports.autoImport`. A name that another source already configures keeps that source.
|
|
398
484
|
*/
|
|
399
|
-
function addNitroImports(config,
|
|
400
|
-
if (!
|
|
485
|
+
function addNitroImports(config, entries) {
|
|
486
|
+
if (!isRecord(config.imports) || config.imports.autoImport === false) return;
|
|
401
487
|
const options = config.imports;
|
|
402
488
|
const imports = Array.isArray(options.imports) ? options.imports : options.imports = [];
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
if (!
|
|
407
|
-
|
|
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");
|
|
489
|
+
const taken = /* @__PURE__ */ new Map();
|
|
490
|
+
for (const entry of imports) taken.set(entry.as ?? entry.name, entry.from);
|
|
491
|
+
for (const preset of Array.isArray(options.presets) ? options.presets : []) {
|
|
492
|
+
if (!isRecord(preset) || typeof preset.from !== "string" || !Array.isArray(preset.imports)) continue;
|
|
493
|
+
for (const item of preset.imports) {
|
|
494
|
+
const name = typeof item === "string" ? item : isRecord(item) ? item.as ?? item.name : void 0;
|
|
495
|
+
if (typeof name === "string") taken.set(name, preset.from);
|
|
421
496
|
}
|
|
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
497
|
}
|
|
498
|
+
for (const entry of entries) {
|
|
499
|
+
if (taken.has(entry.name)) continue;
|
|
500
|
+
imports.push(entry);
|
|
501
|
+
taken.set(entry.name, entry.from);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
async function installConsole({ nuxt, projectRoot, name, sections, discovery, writeGeneratedPlugin, canDiscoverDefinitions, access, writePlugin }) {
|
|
505
|
+
const { discoveryRoot, serverDirs } = discovery;
|
|
506
|
+
const plugin = resolveGeneratedConsolePlugin(projectRoot, nuxt.options.dev === true);
|
|
507
|
+
installConsoleProjectName(projectRoot, resolveConsoleProjectName(projectRoot, name));
|
|
432
508
|
if (nuxt.options.dev && nuxt.hook) {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
509
|
+
Reflect.apply(nuxt.hook, nuxt, ["nitro:init", (nitro) => {
|
|
510
|
+
addViteHubDevPeerDevHandler(nitro.options.devHandlers);
|
|
511
|
+
}]);
|
|
512
|
+
Reflect.apply(nuxt.hook, nuxt, ["listen", (server) => {
|
|
513
|
+
addViteHubDevPeerUpgradeSigner(server);
|
|
514
|
+
const notice = consoleDevAccessNotice(access?.mode, server.address?.());
|
|
515
|
+
if (notice) console.warn(notice);
|
|
436
516
|
}]);
|
|
437
517
|
}
|
|
438
518
|
const documentEditorSections = (await Promise.all(consoleDocumentEditorSectionIds.map(async (section) => {
|
|
@@ -451,66 +531,31 @@ async function installConsole(nuxt, projectRoot, discoveryRoot, workflowDiscover
|
|
|
451
531
|
...sections,
|
|
452
532
|
...entrySections,
|
|
453
533
|
...documentEditorSections
|
|
454
|
-
]
|
|
534
|
+
]);
|
|
455
535
|
const nitro = nuxt.options.nitro ??= {};
|
|
456
|
-
addConsoleRpcHandler(nitro, consoleRuntimeRoot
|
|
457
|
-
|
|
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
|
-
});
|
|
536
|
+
addConsoleRpcHandler(nitro, consoleRuntimeRoot);
|
|
537
|
+
addConsoleAppRoutes(nitro, consoleRuntimeRoot);
|
|
465
538
|
const plugins = (nitro.plugins ??= []).filter((candidate) => !generatedConsolePluginRegistration(candidate));
|
|
466
539
|
nitro.plugins = plugins;
|
|
467
540
|
const refreshAgentDefinitions = serializeConsoleRefresh(async () => {
|
|
468
541
|
const discoverySections = canDiscoverDefinitions() ? sections : sections.filter((section) => section !== "databases" && !isConsoleContributedSectionId(section));
|
|
469
542
|
const catalog = await discoverConsoleBuildCatalog({
|
|
470
|
-
...
|
|
471
|
-
contentImportBase: discoveryOptions.contentImportBase ?? "vite-hub/content",
|
|
472
|
-
discoveryRoot,
|
|
543
|
+
...discovery,
|
|
473
544
|
projectRoot,
|
|
474
|
-
|
|
475
|
-
sections: discoverySections,
|
|
476
|
-
serverDirs,
|
|
477
|
-
workflowDiscoveryRoot
|
|
545
|
+
sections: discoverySections
|
|
478
546
|
});
|
|
479
|
-
|
|
480
|
-
if (invocationRootState) updateConsoleInvocationRootState(invocationRootState, projectRoot, identity);
|
|
547
|
+
await writePlugin(plugin, catalog);
|
|
481
548
|
});
|
|
482
|
-
if (fixture && invocationRootState) {
|
|
483
|
-
configureConsoleFixtureLifecycle(invocationRootState, plugin, refreshAgentDefinitions);
|
|
484
|
-
nuxt.hook?.("close", async () => closeConsoleInvocationRootState(invocationRootState));
|
|
485
|
-
}
|
|
486
549
|
if (writeGeneratedPlugin) await refreshAgentDefinitions();
|
|
487
550
|
if (nuxt.options.dev && writeGeneratedPlugin) {
|
|
488
|
-
if (fixture) nuxt.options.watch = [.../* @__PURE__ */ new Set([...nuxt.options.watch ?? [], fixture])];
|
|
489
551
|
const hookBuilderWatch = nuxt.hook;
|
|
490
552
|
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
553
|
await refreshAgentDefinitions();
|
|
498
554
|
});
|
|
499
555
|
}
|
|
500
556
|
if (!plugins.includes(plugin)) plugins.push(plugin);
|
|
501
557
|
return plugin;
|
|
502
558
|
}
|
|
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
559
|
function agentWorkflowRegistryTransform(plugin) {
|
|
515
560
|
return plugin.vitehub?.agent?.transformWorkflowRegistry;
|
|
516
561
|
}
|
|
@@ -568,20 +613,26 @@ function withoutDeploymentOutput(options) {
|
|
|
568
613
|
return [option];
|
|
569
614
|
});
|
|
570
615
|
}
|
|
571
|
-
/**
|
|
572
|
-
function
|
|
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
|
-
}
|
|
616
|
+
/** Vite config hooks can replace an explicit `noExternals` boolean with a package list. Keep the boolean. */
|
|
617
|
+
function restoreNoExternals(config, incomingNoExternals) {
|
|
582
618
|
if (incomingNoExternals !== void 0) config.noExternals = incomingNoExternals;
|
|
583
619
|
}
|
|
584
|
-
|
|
620
|
+
/**
|
|
621
|
+
* A workspace links ViteHub packages from their source folders, so their real paths do not contain `@vite-hub/`.
|
|
622
|
+
* Nitro loads such a package from Node, which cannot read the generated aliases.
|
|
623
|
+
*/
|
|
624
|
+
function linkedViteHubPackageRoots(projectRoot) {
|
|
625
|
+
const nodeModules = join(projectRoot, "node_modules");
|
|
626
|
+
const scope = join(nodeModules, "@vite-hub");
|
|
627
|
+
return [join(nodeModules, "vite-hub"), ...existsSync(scope) ? readdirSync(scope).map((name) => join(scope, name)) : []].filter(existsSync).map((link) => realpathSync(link)).filter((root) => !root.split(sep).includes("node_modules"));
|
|
628
|
+
}
|
|
629
|
+
/** Add packages that Nitro must bundle, unless Nitro already bundles every package. */
|
|
630
|
+
function addNoExternals(config, entries) {
|
|
631
|
+
if (config.noExternals === true) return;
|
|
632
|
+
const current = Array.isArray(config.noExternals) ? config.noExternals : [];
|
|
633
|
+
config.noExternals = [.../* @__PURE__ */ new Set([...current, ...entries])];
|
|
634
|
+
}
|
|
635
|
+
async function applyNitroConfig(plugins, nitroConfig, nuxt, projectRoot, deferHint) {
|
|
585
636
|
const incomingNoExternals = typeof nitroConfig.noExternals === "boolean" ? nitroConfig.noExternals : void 0;
|
|
586
637
|
const environment = {
|
|
587
638
|
command: nuxt.options.dev ? "serve" : "build",
|
|
@@ -597,12 +648,18 @@ async function applyNitroConfig(plugins, nitroConfig, nuxt, projectRoot) {
|
|
|
597
648
|
root: nuxt.options.rootDir || process.cwd()
|
|
598
649
|
}, nuxt.options.vite ?? {});
|
|
599
650
|
config.root = resolve(nuxt.options.rootDir || process.cwd(), config.root || ".");
|
|
651
|
+
const applies = (plugin) => typeof plugin.apply !== "string" || plugin.apply === environment.command;
|
|
652
|
+
plugins = plugins.filter(applies);
|
|
653
|
+
config.plugins = filterPluginOptions(config.plugins ?? [], applies);
|
|
600
654
|
const restoreReplayOwnership = () => {
|
|
601
655
|
config[VITEHUB_GENERATED_ROOT] = generatedRoot;
|
|
602
656
|
config[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
657
|
+
config[VITEHUB_NUXT_HINTS] = deferHint;
|
|
603
658
|
config[VITEHUB_PROJECT_ROOT] = projectRoot;
|
|
604
659
|
config[VITEHUB_APP_BASE_URL] = nuxt.options.app?.baseURL || "/";
|
|
605
660
|
if (serverDirs) config[VITEHUB_SERVER_DIRS] = serverDirs;
|
|
661
|
+
if (nuxt.options._prepare) config[VITEHUB_PREPARE] = true;
|
|
662
|
+
if (nuxt.options.vitehubCliDiscovery) config.vitehubCliDiscovery = true;
|
|
606
663
|
};
|
|
607
664
|
restoreReplayOwnership();
|
|
608
665
|
config.build ??= {};
|
|
@@ -618,20 +675,19 @@ async function applyNitroConfig(plugins, nitroConfig, nuxt, projectRoot) {
|
|
|
618
675
|
for (const plugin of orderedPlugins) {
|
|
619
676
|
const handler = configHandler(plugin);
|
|
620
677
|
if (handler) {
|
|
621
|
-
const previousDatabaseProjectRoot = configuredProjectRootOption(config
|
|
678
|
+
const previousDatabaseProjectRoot = configuredProjectRootOption(getResolvedFeatureOptions(config, "database"));
|
|
622
679
|
const result = await handler.call({}, config, environment);
|
|
623
|
-
|
|
680
|
+
const returnedDatabase = result ? getResolvedFeatureOptions(result, "database") : void 0;
|
|
624
681
|
if (result) {
|
|
625
682
|
const { nitro, ...viteConfig } = result;
|
|
626
|
-
if (Object.hasOwn(viteConfig, "database")) returnedDatabase = viteConfig.database;
|
|
627
683
|
config = mergeConfig(config, viteConfig);
|
|
628
684
|
if (nitro) config.nitro = nitro;
|
|
629
685
|
}
|
|
630
686
|
if (plugin.name !== "@vite-hub/database/vite") {
|
|
631
|
-
const
|
|
632
|
-
if (returnedDatabase !== void 0 ||
|
|
687
|
+
const database = getResolvedFeatureOptions(config, "database");
|
|
688
|
+
if (returnedDatabase !== void 0 || configuredProjectRootOption(database) !== previousDatabaseProjectRoot) {
|
|
633
689
|
hasReplayedDatabaseDiscoveryRoot = true;
|
|
634
|
-
replayedDatabaseDiscoveryRoot =
|
|
690
|
+
replayedDatabaseDiscoveryRoot = configuredProjectRoot(config.root || projectRoot, returnedDatabase ?? database);
|
|
635
691
|
}
|
|
636
692
|
}
|
|
637
693
|
restoreReplayOwnership();
|
|
@@ -660,10 +716,11 @@ async function applyNitroConfig(plugins, nitroConfig, nuxt, projectRoot) {
|
|
|
660
716
|
}
|
|
661
717
|
}
|
|
662
718
|
await finalizeNitroReplayPlugins(plugins, config);
|
|
719
|
+
if (!nuxt.options.dev && !nuxt.options._prepare) await (plugins.find((plugin) => plugin.name === "@vite-hub/rate-limit/vite")?.api)?.validateNitroBuild?.(asReplayResolvedConfig(Object.assign({}, config, { command: environment.command })));
|
|
663
720
|
if (config.nitro) {
|
|
664
721
|
installVitePluginNitroModules(config.nitro, plugins);
|
|
665
722
|
Object.assign(nitroConfig, config.nitro);
|
|
666
|
-
|
|
723
|
+
restoreNoExternals(nitroConfig, incomingNoExternals);
|
|
667
724
|
config.nitro = nitroConfig;
|
|
668
725
|
}
|
|
669
726
|
return {
|
|
@@ -673,187 +730,265 @@ async function applyNitroConfig(plugins, nitroConfig, nuxt, projectRoot) {
|
|
|
673
730
|
};
|
|
674
731
|
}
|
|
675
732
|
function resolvedKVFromPlugin(plugin, configured) {
|
|
676
|
-
|
|
733
|
+
const kvPlugin = plugin;
|
|
734
|
+
if (kvPlugin?.api?.getConfig) return kvPlugin.api.getConfig().kv;
|
|
735
|
+
return configured ? requireOptionalOwner(ownerModules.kvVite, "kv").resolveKVViteConfig(configured === true ? void 0 : configured).kv : false;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* An app that imports `vite-hub/ui` parts gets their runtime without adding `@vite-hub/ui/nuxt`: the plugin that gives
|
|
739
|
+
* them Nuxt UI's Nuxt icon, their icons in the `@nuxt/icon` client bundle, the Shiki WebAssembly alias, and component
|
|
740
|
+
* auto-imports. `@vite-hub/ui` owns all of them. Headless apps do not need the optional Nuxt UI peer or its module, so
|
|
741
|
+
* they must not receive a plugin that imports it.
|
|
742
|
+
*/
|
|
743
|
+
async function installViteHubUIRuntime(nuxt) {
|
|
744
|
+
if (!nuxt.hook || !isPackageInstalled("@nuxt/ui")) return;
|
|
745
|
+
const ui = await importOptionalOwner("@vite-hub/ui", () => import("@vite-hub/ui/nuxt"));
|
|
746
|
+
if (!ui) return;
|
|
747
|
+
const hook = nuxt.hook;
|
|
748
|
+
nuxt.hook("modules:done", () => {
|
|
749
|
+
if (!nuxt.options._installedModules?.some(({ meta }) => meta.name === "@nuxt/ui")) return;
|
|
750
|
+
ui.addViteHubUIRuntime({
|
|
751
|
+
hook: (name, callback) => Reflect.apply(hook, nuxt, [name, callback]),
|
|
752
|
+
options: {
|
|
753
|
+
plugins: nuxt.options.plugins ??= [],
|
|
754
|
+
vite: nuxt.options.vite ??= {}
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
ui.addViteHubUIComponents(nuxt);
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Stop before any setup on Nuxt 4 or older. They run Nitro 2 and H3 1, which ViteHub does not support, and a build
|
|
762
|
+
* there would fail later with errors that do not name the cause.
|
|
763
|
+
*/
|
|
764
|
+
function assertSupportedNuxt(version) {
|
|
765
|
+
if (!((version === void 0 ? NaN : Number.parseInt(version, 10)) < 5)) return;
|
|
766
|
+
throw viteHubErrorDiagnostics.VITE_HUB_B0023({ message: `[vitehub] vite-hub/nuxt needs Nuxt 5, which runs Nitro 3 and H3 2. This app runs Nuxt ${version}. Until Nuxt 5 is stable, install the nightly release: pnpm add nuxt@npm:nuxt-nightly@5x` });
|
|
767
|
+
}
|
|
768
|
+
function isPlainObject(value) {
|
|
769
|
+
if (typeof value !== "object" || value === null) return false;
|
|
770
|
+
const prototype = Object.getPrototypeOf(value);
|
|
771
|
+
return prototype === Object.prototype || prototype === null;
|
|
772
|
+
}
|
|
773
|
+
/** Merges `inline` into `config` one leaf at a time. The inline value wins; arrays and other values are replaced. */
|
|
774
|
+
function mergeOptionLeaves(inline, config) {
|
|
775
|
+
const merged = { ...config };
|
|
776
|
+
for (const [key, value] of Object.entries(inline)) {
|
|
777
|
+
if (value === void 0) continue;
|
|
778
|
+
const current = merged[key];
|
|
779
|
+
merged[key] = isPlainObject(value) && isPlainObject(current) ? mergeOptionLeaves(value, current) : value;
|
|
780
|
+
}
|
|
781
|
+
return merged;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Merges the inline options of a `modules` entry into the `vitehub` key of nuxt.config.ts, one leaf at a time, as in
|
|
785
|
+
* `defineNuxtModule`. A top-level feature switch set to `true` turns the feature on with its defaults, so it keeps the
|
|
786
|
+
* options object that the other form gives. Deeper `true` values, such as Env values, replace like any other leaf.
|
|
787
|
+
*/
|
|
788
|
+
function mergeNuxtModuleOptions(inline, config) {
|
|
789
|
+
const configured = isPlainObject(config) ? config : {};
|
|
790
|
+
if (!isPlainObject(inline)) return { ...configured };
|
|
791
|
+
return mergeOptionLeaves(Object.fromEntries(Object.entries(inline).filter(([key, value]) => !(value === true && isPlainObject(configured[key])))), configured);
|
|
677
792
|
}
|
|
678
793
|
const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtInstance) {
|
|
679
794
|
if (!nuxtInstance) return;
|
|
680
795
|
const nuxt = nuxtInstance;
|
|
796
|
+
assertSupportedNuxt(nuxt._version);
|
|
681
797
|
if (nuxt.hook) Reflect.apply(nuxt.hook, nuxt, ["doctor:extendExtensions", (entries) => {
|
|
682
798
|
entries.push(doctorExtensionEntry);
|
|
683
799
|
}]);
|
|
800
|
+
await installViteHubUIRuntime(nuxt);
|
|
801
|
+
const configuredModuleOptions = mergeNuxtModuleOptions(inlineOptions, nuxt.options.vitehub);
|
|
802
|
+
assertNoRemovedViteHubOptions(configuredModuleOptions, "the `vitehub` options of nuxt.config.ts");
|
|
684
803
|
const moduleOptions = {
|
|
685
|
-
...
|
|
686
|
-
|
|
804
|
+
...configuredModuleOptions,
|
|
805
|
+
host: resolveNuxtBuildHost(configuredModuleOptions.host, nuxt.options.nitro)
|
|
687
806
|
};
|
|
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
807
|
const rootDir = nuxt.options.rootDir || process.cwd();
|
|
700
808
|
const projectRoot = resolveViteHubProjectRoot(rootDir);
|
|
701
|
-
const
|
|
702
|
-
|
|
703
|
-
console: resolveConsoleOptions(moduleOptions.console),
|
|
704
|
-
env: envOptions
|
|
705
|
-
}, {
|
|
809
|
+
const viteRoot = resolve(rootDir, typeof nuxt.options.vite?.root === "string" ? nuxt.options.vite.root : rootDir);
|
|
810
|
+
const discoveryProject = {
|
|
706
811
|
projectRoot,
|
|
707
|
-
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
708
|
-
|
|
812
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options),
|
|
813
|
+
viteRoot
|
|
814
|
+
};
|
|
815
|
+
const options = markCmsPresetFeaturesResolved(withConnectionsDatabase(withDataDir(resolveCmsPresetFeatures(withComments(resolveDefinitionFeatures({
|
|
816
|
+
...moduleOptions,
|
|
817
|
+
console: moduleOptions.console === false ? false : resolveConsoleOptions(moduleOptions.console)
|
|
818
|
+
}, discoveryProject)), discoveryProject))));
|
|
709
819
|
const consoleOptions = resolveConsoleOptions(options.console);
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
820
|
+
const plan = resolveDeploymentPlan(moduleOptions.host);
|
|
821
|
+
const journalDatabaseRoot = options.database && options.database !== true && options.database.projectRoot !== void 0 ? rootDir : projectRoot;
|
|
822
|
+
const agentJournal = options.agent && options.agent !== true ? options.agent.invocations : void 0;
|
|
823
|
+
/**
|
|
824
|
+
* In Nuxt, an explicit Database root is relative to rootDir, and replayed Vite plugins can change the Database.
|
|
825
|
+
* A production build resolves the D1 binding of the default journal here and hands it to the Agent Invocations Vite
|
|
826
|
+
* plugin, so the plugin writes the same binding when the Vite build runs its config hook again.
|
|
827
|
+
*/
|
|
828
|
+
const writeNuxtAgentJournal = async (database, databaseRoot) => {
|
|
829
|
+
if (!options.agent || nuxt.options.dev || nuxt.options.vitehubCliDiscovery || !isDefaultAgentJournal(agentJournal)) return;
|
|
830
|
+
const d1Binding = agentJournal?.databaseUrl ? void 0 : defaultDatabaseD1Binding(plan.host, database, {
|
|
831
|
+
root: databaseRoot,
|
|
832
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
833
|
+
});
|
|
834
|
+
assertAgentInvocationsRetention(agentJournal?.retention, d1Binding !== void 0, agentJournal?.databaseUrl);
|
|
835
|
+
if (!nuxt.options._prepare) assertAgentInvocationsUrl(plan.host, agentJournal?.databaseUrl);
|
|
836
|
+
nuxt.options.vite[VITEHUB_AGENT_JOURNAL_D1] = { binding: d1Binding };
|
|
837
|
+
const libsql = defaultJournalNeedsLibsql({
|
|
838
|
+
build: true,
|
|
839
|
+
databaseUrl: agentJournal?.databaseUrl,
|
|
840
|
+
host: plan.host
|
|
841
|
+
});
|
|
842
|
+
await writeAgentInvocationsNitroPlugin({
|
|
843
|
+
database: Boolean(options.database),
|
|
844
|
+
d1Binding,
|
|
845
|
+
default: agentJournal,
|
|
846
|
+
libsql,
|
|
847
|
+
projectRoot,
|
|
848
|
+
stateUrl: agentJournalStateUrl(options)
|
|
849
|
+
});
|
|
850
|
+
};
|
|
851
|
+
await writeNuxtAgentJournal(options.database, journalDatabaseRoot);
|
|
725
852
|
const nitro = nuxt.options.nitro ??= {};
|
|
726
|
-
const nitroPreset = plan.
|
|
727
|
-
if (typeof nitro.preset === "string" && normalizeNitroPreset(nitro.preset) !== nitroPreset) throw viteHubErrorDiagnostics.VITE_HUB_B0009({ message: "[vitehub] vitehub
|
|
853
|
+
const nitroPreset = plan.host === "deno" ? "deno-server" : plan.nitroPreset;
|
|
854
|
+
if (typeof nitro.preset === "string" && normalizeNitroPreset(nitro.preset) !== nitroPreset) throw viteHubErrorDiagnostics.VITE_HUB_B0009({ message: "[vitehub] vitehub host " + JSON.stringify(plan.host) + " conflicts with nitro.preset " + JSON.stringify(nitro.preset) + "." });
|
|
728
855
|
nitro.preset = nitroPreset;
|
|
729
856
|
if (options.realtime) {
|
|
730
|
-
const
|
|
731
|
-
|
|
857
|
+
const features = nitro.features ??= {};
|
|
858
|
+
features.websocket = true;
|
|
732
859
|
}
|
|
733
|
-
if (plan.
|
|
860
|
+
if (plan.host === "cloudflare") {
|
|
734
861
|
const cloudflare = nitro.cloudflare ??= {};
|
|
735
862
|
cloudflare.deployConfig ??= true;
|
|
736
863
|
const wasm = nitro.wasm ??= {};
|
|
737
864
|
wasm.lazy ??= true;
|
|
865
|
+
if (!nuxt.options.dev) nitro.exportConditions = cloudflareExportConditions(nitro.exportConditions);
|
|
866
|
+
if (!nuxt.options.dev) {
|
|
867
|
+
if (nuxt.hook) Reflect.apply(nuxt.hook, nuxt, ["nitro:init", (instance) => {
|
|
868
|
+
instance.hooks.hook("compiled", async () => {
|
|
869
|
+
if (instance.options.dev) return;
|
|
870
|
+
const config = await findNearestFile([
|
|
871
|
+
"wrangler.json",
|
|
872
|
+
"wrangler.jsonc",
|
|
873
|
+
"wrangler.toml"
|
|
874
|
+
], { startingFrom: rootDir }).catch(() => void 0);
|
|
875
|
+
if (!config) return;
|
|
876
|
+
const generated = join(instance.options.output.serverDir, "wrangler.json");
|
|
877
|
+
if (!existsSync(generated)) return;
|
|
878
|
+
const redirect = join(dirname(config), ".wrangler/deploy/config.json");
|
|
879
|
+
await mkdir(dirname(redirect), { recursive: true });
|
|
880
|
+
await writeFile(redirect, `${JSON.stringify({ configPath: relative(dirname(redirect), generated) })}\n`);
|
|
881
|
+
});
|
|
882
|
+
}]);
|
|
883
|
+
}
|
|
884
|
+
if (nuxt.options.dev) {
|
|
885
|
+
const devServer = nitro.devServer ??= {};
|
|
886
|
+
devServer.runner ??= process.env.NITRO_DEV_RUNNER || "node-worker";
|
|
887
|
+
}
|
|
738
888
|
}
|
|
739
889
|
nuxt.options.vite ??= {};
|
|
740
890
|
nuxt.options.vite.root ??= rootDir;
|
|
741
|
-
const
|
|
742
|
-
const
|
|
743
|
-
const
|
|
744
|
-
const effectiveBlob = consoleOptions ? viteBlob ?? options.blob : false;
|
|
745
|
-
const explicitBlob = Boolean(effectiveBlob && effectiveBlob !== true && ("driver" in effectiveBlob || "stores" in effectiveBlob));
|
|
891
|
+
const configuredDatabaseDiscoveryRoot = configuredProjectRoot(rootDir, options.database);
|
|
892
|
+
const effectiveBlob = consoleOptions ? options.blob : false;
|
|
893
|
+
const explicitBlob = explicitBlobOption(effectiveBlob);
|
|
746
894
|
const consoleBlobEnabled = Boolean(effectiveBlob) && (plan.services.blob.supported || explicitBlob);
|
|
747
|
-
const resolvedConsoleBlob = consoleBlobEnabled ? resolveBlobViteConfig(effectiveBlob === true ? void 0 : effectiveBlob, { hosting: plan.nitroPreset }).blob : false;
|
|
895
|
+
const resolvedConsoleBlob = consoleBlobEnabled ? requireOptionalOwner(ownerModules.blobVite, "blob").resolveBlobViteConfig(effectiveBlob === true ? void 0 : effectiveBlob, { hosting: plan.nitroPreset }).blob : false;
|
|
748
896
|
const consoleBlobStores = resolvedConsoleBlob ? Object.keys(resolvedConsoleBlob.stores || { default: resolvedConsoleBlob.store }) : [];
|
|
749
|
-
const effectiveKV =
|
|
750
|
-
const effectiveQueue =
|
|
751
|
-
const effectiveWorkflow = nuxt.options.vite?.workflow ?? options.workflow;
|
|
897
|
+
const effectiveKV = options.kv;
|
|
898
|
+
const effectiveQueue = options.queue;
|
|
752
899
|
const consoleSections = resolveConsoleSectionIds({
|
|
753
900
|
...options,
|
|
754
|
-
connections: isConsoleConnectionsEnabled(options, nuxt.options.dev === true) ? options.connections : false,
|
|
755
901
|
env: options.env !== false,
|
|
756
902
|
blob: consoleBlobEnabled,
|
|
757
903
|
kv: effectiveKV,
|
|
758
|
-
preset: plan.preset,
|
|
759
904
|
queue: effectiveQueue,
|
|
760
|
-
sandboxTask: options.sandboxTask
|
|
761
|
-
workflow: effectiveWorkflow
|
|
905
|
+
sandboxTask: resolveSandboxTaskDriver(options.sandboxTask, plan) !== void 0
|
|
762
906
|
});
|
|
907
|
+
if (nuxt.options.dev) consoleSections.splice(0, consoleSections.length, ...insertConsoleSection(consoleSections, "setup"));
|
|
763
908
|
const runtimeCapabilityImports = {
|
|
764
|
-
blob: consoleBlobEnabled ? "vite-hub/
|
|
765
|
-
connections: options.connections ?
|
|
909
|
+
blob: consoleBlobEnabled ? "vite-hub/blob" : false,
|
|
910
|
+
connections: options.connections ? generatedModules.connectionsAgent : false,
|
|
766
911
|
console: consoleOptions ? "vite-hub/console/server" : false,
|
|
767
|
-
db: options.database ? "vite-hub/database/
|
|
768
|
-
|
|
769
|
-
|
|
912
|
+
db: options.database ? "@vite-hub/database/runtime/registry" : false,
|
|
913
|
+
i18n: options.i18n ? "vite-hub/i18n/server" : false,
|
|
914
|
+
realtime: options.realtime ? "vite-hub/realtime/agent" : false,
|
|
915
|
+
...ownerModules.emailVite ? { email: "vite-hub/email" } : {},
|
|
916
|
+
...ownerModules.kvVite ? { kv: "vite-hub/kv" } : {}
|
|
770
917
|
};
|
|
771
|
-
const consoleInvocationRootState =
|
|
918
|
+
const consoleInvocationRootState = {};
|
|
772
919
|
const consoleInvokeEnabled = consoleOptions ? consoleOptions.invoke ?? Boolean(nuxt.options.dev) : false;
|
|
773
|
-
let resolvedConsoleFixture;
|
|
774
920
|
let generatedConsolePluginPath;
|
|
775
921
|
let consoleWorkflowConfigResolved = false;
|
|
776
|
-
const effectiveAuth =
|
|
922
|
+
const effectiveAuth = options.auth;
|
|
923
|
+
const serverAutoImports = resolveViteHubServerImports({
|
|
924
|
+
...options,
|
|
925
|
+
auth: effectiveAuth,
|
|
926
|
+
blob: options.blob && (plan.services.blob.supported || explicitBlobOption(options.blob)),
|
|
927
|
+
env: options.env !== false,
|
|
928
|
+
kv: effectiveKV,
|
|
929
|
+
queue: effectiveQueue && plan.services.queue.supported,
|
|
930
|
+
sandboxTask: resolveSandboxTaskDriver(options.sandboxTask, plan) !== void 0,
|
|
931
|
+
seo: Boolean(options.seo?.sitemap),
|
|
932
|
+
source: true,
|
|
933
|
+
workflow: Boolean(options.workflow)
|
|
934
|
+
});
|
|
777
935
|
let consoleHasPrimaryAuth = false;
|
|
778
936
|
let consoleAccess;
|
|
779
937
|
if (consoleOptions) {
|
|
780
938
|
const configuredConsole = resolveConsoleOptions(consoleOptions);
|
|
781
|
-
|
|
939
|
+
invariant(configuredConsole, "resolveConsoleOptions() returns options for a console option that is set");
|
|
782
940
|
if (!nuxt.options.vitehubCliDiscovery) {
|
|
783
|
-
const appAuth = effectiveAuth ? resolveAuthViteConfig(
|
|
941
|
+
const appAuth = effectiveAuth ? requireOptionalOwner(ownerModules.authVite, "auth").resolveAuthViteConfig(void 0, viteRoot, { serverDirs: resolveNuxtServerDirs(nuxt.options) }) : void 0;
|
|
784
942
|
consoleHasPrimaryAuth = Boolean(appAuth);
|
|
785
943
|
const authIndex = consoleSections.indexOf("auth");
|
|
786
944
|
if (!appAuth && authIndex !== -1) consoleSections.splice(authIndex, 1);
|
|
787
945
|
if (appAuth && authIndex === -1) consoleSections.push("auth");
|
|
788
|
-
assertConsoleAccess(configuredConsole, {
|
|
789
|
-
|
|
790
|
-
|
|
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);
|
|
946
|
+
assertConsoleAccess(configuredConsole, { auth: appAuth });
|
|
947
|
+
consoleAccess = resolveConsoleAccessBuild(configuredConsole, { root: rootDir });
|
|
948
|
+
if (!nuxt.options.dev && !nuxt.options._prepare) assertConsoleProductionAuth(configuredConsole);
|
|
812
949
|
}
|
|
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
950
|
}
|
|
951
|
+
const writeNuxtConsolePlugin = (file, catalog) => writeConsoleNitroPlugin({
|
|
952
|
+
file,
|
|
953
|
+
projectRoot,
|
|
954
|
+
name: options.name,
|
|
955
|
+
sections: consoleSections,
|
|
956
|
+
catalog,
|
|
957
|
+
blobStores: consoleBlobStores,
|
|
958
|
+
invoke: consoleInvokeEnabled,
|
|
959
|
+
active: () => !consoleInvocationRootState.closed,
|
|
960
|
+
access: consoleAccess,
|
|
961
|
+
runtimeCapabilityImports,
|
|
962
|
+
development: nuxt.options.dev === true,
|
|
963
|
+
...consoleOptions?.pill === false ? {} : { pageTool: { base: nuxt.options.app?.baseURL || "/" } }
|
|
964
|
+
});
|
|
818
965
|
const viteConfig = nuxt.options.vite;
|
|
819
|
-
|
|
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);
|
|
966
|
+
const secondaryProjectRoots = [.../* @__PURE__ */ new Set([...configuredProjectRoots(options, rootDir, viteRoot), ...options.connections ? [viteRoot] : []])].filter((root) => root !== projectRoot);
|
|
829
967
|
const generatedTypes = [
|
|
830
968
|
relative(nuxt.options.buildDir, join(projectRoot, ".vitehub/types.d.ts")),
|
|
831
969
|
...effectiveQueue ? [relative(nuxt.options.buildDir, join(projectRoot, ".vitehub/queue.d.ts"))] : [],
|
|
832
970
|
...secondaryProjectRoots.map((root) => relative(nuxt.options.buildDir, join(root, ".vitehub/**/*.d.ts")))
|
|
833
971
|
];
|
|
834
972
|
const generatedData = secondaryProjectRoots.map((root) => relative(nuxt.options.buildDir, join(root, ".vitehub/data/**/*.d.ts")));
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
addTypeScriptDefaults(nuxt.options
|
|
973
|
+
const cloudflare = plan.host === "cloudflare";
|
|
974
|
+
const serverTypes = cloudflare ? [relative(nuxt.options.buildDir, isPackageInstalled("@cloudflare/workers-types") ? cloudflareTypes : cloudflareWorkersDeclaration)] : [];
|
|
975
|
+
const appTypes = cloudflare ? [relative(nuxt.options.buildDir, cloudflareWorkersDeclaration)] : [];
|
|
976
|
+
addTypeScriptDefaults(nuxt.options, [...generatedTypes, ...appTypes], generatedData);
|
|
977
|
+
addTypeScriptDefaults(nuxt.options, [...generatedTypes, ...appTypes], generatedData, "sharedTsConfig");
|
|
978
|
+
addTypeScriptDefaults(nuxt.options.nitro ??= {}, [...generatedTypes, ...serverTypes], generatedData);
|
|
839
979
|
if (options.database) {
|
|
840
|
-
const
|
|
841
|
-
const
|
|
842
|
-
const
|
|
843
|
-
|
|
844
|
-
|
|
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",
|
|
980
|
+
const databaseOptions = options.database === true ? {} : { ...options.database };
|
|
981
|
+
const defaultD1 = plan.host === "cloudflare" && !("driver" in databaseOptions) && !usesOnlyPostgresDatabases(resolveViteHubProjectRoot(rootDir, { projectRoot: databaseOptions.projectRoot }), databaseOptions.projectRoot === void 0 && nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0);
|
|
982
|
+
const { hubDatabase: hubDatabaseNuxt } = requireOptionalOwner(await importOptionalOwner("@vite-hub/database", () => import("@vite-hub/database/nuxt")), options.connections ? "connections" : "database");
|
|
983
|
+
await hubDatabaseNuxt(defaultD1 ? {
|
|
984
|
+
driver: "cloudflare",
|
|
852
985
|
...databaseOptions
|
|
853
986
|
} : databaseOptions)(void 0, nuxt);
|
|
854
987
|
}
|
|
855
|
-
const installedPlugins = flattenPlugins(
|
|
856
|
-
|
|
988
|
+
const installedPlugins = flattenPlugins(viteHubPlugins(markCmsPresetFeaturesResolved({
|
|
989
|
+
...options,
|
|
990
|
+
...effectiveKV !== void 0 ? { kv: effectiveKV } : {}
|
|
991
|
+
}))).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)).filter((plugin) => plugin.name !== staleChunkReloadPluginName);
|
|
857
992
|
const plugins = [
|
|
858
993
|
...installedPlugins.filter((plugin) => plugin.name !== "vite-hub/deployment-output"),
|
|
859
994
|
...nuxt.options.vitehubCliDiscovery ? [{
|
|
@@ -864,14 +999,35 @@ const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtIn
|
|
|
864
999
|
} }
|
|
865
1000
|
}] : [],
|
|
866
1001
|
...consoleOptions ? [{
|
|
867
|
-
name: "vite-hub/console-
|
|
868
|
-
vitehub: {
|
|
1002
|
+
name: "vite-hub/console-operations",
|
|
1003
|
+
vitehub: { operations: () => consoleOperationContributions(() => consoleSections) }
|
|
869
1004
|
}] : [],
|
|
870
|
-
...consoleOptions && options.agent ? [consoleInvocationRootPlugin(
|
|
1005
|
+
...consoleOptions && options.agent ? [consoleInvocationRootPlugin(consoleInvocationRootState)] : []
|
|
871
1006
|
];
|
|
872
1007
|
const existing = withoutDeploymentOutput(Array.isArray(nuxt.options.vite?.plugins) ? nuxt.options.vite.plugins : []);
|
|
873
1008
|
const existingPluginsByName = new Map(flattenPlugins(existing).filter((plugin) => plugin.name).map((plugin) => [plugin.name, plugin]));
|
|
874
1009
|
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))];
|
|
1010
|
+
const bundlePlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/bundle/vite");
|
|
1011
|
+
if (bundlePlugin && !nuxt.options.dev) {
|
|
1012
|
+
nuxt.hook?.("build:before", () => {
|
|
1013
|
+
bundlePlugin.api.startBuild();
|
|
1014
|
+
});
|
|
1015
|
+
let routerOptions;
|
|
1016
|
+
nuxt.hook?.("pages:routerOptions", (context) => {
|
|
1017
|
+
routerOptions = context;
|
|
1018
|
+
});
|
|
1019
|
+
nuxt.hook?.("app:templatesGenerated", (app) => {
|
|
1020
|
+
const customOptions = routerOptions?.files.find((file) => !file.optional);
|
|
1021
|
+
const layoutComponent = app.components.find((component) => component.pascalName === "NuxtLayout")?.filePath;
|
|
1022
|
+
bundlePlugin.api.setRoutes(customOptions ? [] : nuxtPageRoutes(app.pages ?? [], layoutComponent ? app.layouts : {}, layoutComponent), {
|
|
1023
|
+
sensitive: nuxt.options.router?.options?.sensitive ?? true,
|
|
1024
|
+
strict: nuxt.options.router?.options?.strict ?? false,
|
|
1025
|
+
...customOptions ? { unavailable: `Custom router options (${customOptions.path}) can change routes or matching at runtime.` } : {}
|
|
1026
|
+
});
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
const seoPlugin = replayPlugins.find((plugin) => plugin.name === "vite-hub/seo");
|
|
1030
|
+
if (seoPlugin) nuxt.hook?.("app:templatesGenerated", (app) => seoPlugin.api.setPages(nuxtPageRoutes(app.pages ?? []).filter((route) => !route.unavailable).map((route) => route.path)));
|
|
875
1031
|
const commentsPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/comments/vite");
|
|
876
1032
|
if (commentsPlugin) {
|
|
877
1033
|
await commentsPlugin.api.setComponents([]);
|
|
@@ -880,7 +1036,7 @@ const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtIn
|
|
|
880
1036
|
const retainedKVPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/kv/vite");
|
|
881
1037
|
const envPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/env/vite");
|
|
882
1038
|
if (envPlugin) for (const plugin of replayPlugins) deploymentOutputEnvPluginHandler(plugin)?.(envPlugin);
|
|
883
|
-
if (options.env !== false) await envPlugin?.api?.prepareTypes?.(viteConfig
|
|
1039
|
+
if (options.env !== false) await envPlugin?.api?.prepareTypes?.(envPlugin.api.resolveDeclarations?.(viteConfig), viteRoot);
|
|
884
1040
|
const emailPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/email/vite");
|
|
885
1041
|
const emailTemplatePaths = await emailPlugin?.api?.prepareTypes?.({
|
|
886
1042
|
materialize: true,
|
|
@@ -934,12 +1090,27 @@ const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtIn
|
|
|
934
1090
|
};
|
|
935
1091
|
viteConfig[VITEHUB_GENERATED_ROOT] = join(nuxt.options.buildDir, "vitehub");
|
|
936
1092
|
viteConfig[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
1093
|
+
viteConfig[VITEHUB_NUXT_HINTS] = true;
|
|
1094
|
+
const hints = {
|
|
1095
|
+
root: projectRoot,
|
|
1096
|
+
[VITEHUB_PROJECT_ROOT]: projectRoot,
|
|
1097
|
+
command: nuxt.options.dev ? "serve" : "build"
|
|
1098
|
+
};
|
|
1099
|
+
let replayHints = [];
|
|
1100
|
+
const startHints = () => {
|
|
1101
|
+
if (!nuxt.options._prepare && !nuxt.options.vitehubCliDiscovery) startViteHubHints(hints, nuxt);
|
|
1102
|
+
};
|
|
1103
|
+
nuxt.hook?.("build:before", startHints);
|
|
1104
|
+
nuxt.hook?.("nitro:build:before", () => {
|
|
1105
|
+
if (nuxt.options._prepare || nuxt.options.vitehubCliDiscovery) return;
|
|
1106
|
+
startHints();
|
|
1107
|
+
for (const hint of replayHints) reportViteHubHint(hints, hint);
|
|
1108
|
+
});
|
|
937
1109
|
viteConfig[VITEHUB_PROJECT_ROOT] = projectRoot;
|
|
938
1110
|
viteConfig[VITEHUB_APP_BASE_URL] = nuxt.options.app?.baseURL || "/";
|
|
939
1111
|
const viteServerDirs = resolveNuxtServerDirs(nuxt.options);
|
|
940
1112
|
if (viteServerDirs) viteConfig[VITEHUB_SERVER_DIRS] = viteServerDirs;
|
|
941
|
-
|
|
942
|
-
nuxt.options.vite.plugins = installedVitePlugins;
|
|
1113
|
+
nuxt.options.vite.plugins = [...plugins.map((plugin) => existingPluginsByName.get(plugin.name) || plugin), ...filterPluginOptions(existing, (plugin) => !plugins.some((candidate) => candidate.name === plugin.name))];
|
|
943
1114
|
const configuredEnvProjectRootOption = options.env && typeof options.env === "object" ? options.env.projectRoot : void 0;
|
|
944
1115
|
const configuredEnvProjectRoot = configuredEnvProjectRootOption ? resolve(viteRoot, configuredEnvProjectRootOption) : void 0;
|
|
945
1116
|
const envProjectRoot = envPlugin?.api?.resolveProjectRoot?.(viteRoot) ?? configuredEnvProjectRoot ?? projectRoot;
|
|
@@ -951,123 +1122,49 @@ const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtIn
|
|
|
951
1122
|
...!nuxt.options.dev ? Object.fromEntries(Object.entries(emailTemplatePaths).map(([name, path]) => [`#vitehub/emails/${name}`, path])) : {},
|
|
952
1123
|
...emailPlugin && !nuxt.options.dev ? { "#vitehub/emails": join(projectRoot, ".vitehub/email/templates") } : {}
|
|
953
1124
|
};
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}
|
|
962
|
-
}
|
|
1125
|
+
nuxt.hook?.("modules:done", () => {
|
|
1126
|
+
nuxt.hook?.("nitro:config", async (config) => {
|
|
1127
|
+
const alias = isRecord(config.alias) ? config.alias : void 0;
|
|
1128
|
+
if (typeof alias?.h3 !== "string") return;
|
|
1129
|
+
const manifest = findPackageJSON(pathToFileURL(alias.h3), import.meta.url);
|
|
1130
|
+
const pkg = manifest ? JSON.parse(readFileSync(manifest, "utf8")) : void 0;
|
|
1131
|
+
if (isRecord(pkg) && pkg.name === "h3" && typeof pkg.version === "string" && pkg.version.startsWith("1.")) delete alias.h3;
|
|
1132
|
+
});
|
|
1133
|
+
});
|
|
1134
|
+
const nitro3ExternalLists = /* @__PURE__ */ new WeakMap();
|
|
963
1135
|
nuxt.hook?.("nitro:config", async (config) => {
|
|
964
|
-
const
|
|
965
|
-
if (
|
|
1136
|
+
const previousExternalList = nitro3ExternalLists.get(config);
|
|
1137
|
+
if (previousExternalList && config.noExternals === previousExternalList) config.noExternals = false;
|
|
1138
|
+
const incomingNoExternals = config.noExternals;
|
|
1139
|
+
const nextHints = [];
|
|
1140
|
+
const { config: replayConfig, hasReplayedDatabaseDiscoveryRoot, replayedDatabaseDiscoveryRoot } = await applyNitroConfig(replayPlugins, config, nuxt, projectRoot, (hint) => nextHints.push(hint));
|
|
1141
|
+
replayHints = nextHints;
|
|
1142
|
+
if (options.env !== false) await envPlugin?.api?.prepareTypes?.(envPlugin.api.resolveDeclarations?.(replayConfig), viteRoot);
|
|
1143
|
+
await typesPlugin?.api?.prepareTypes?.({ projectRoot });
|
|
966
1144
|
consoleWorkflowConfigResolved = true;
|
|
1145
|
+
const replayedDatabase = hasReplayedDatabaseDiscoveryRoot ? getResolvedFeatureOptions(replayConfig, "database") ?? options.database : options.database;
|
|
1146
|
+
await writeNuxtAgentJournal(replayedDatabase && replayedDatabase !== true && hasReplayedDatabaseDiscoveryRoot ? {
|
|
1147
|
+
...replayedDatabase,
|
|
1148
|
+
projectRoot: replayedDatabaseDiscoveryRoot
|
|
1149
|
+
} : replayedDatabase, hasReplayedDatabaseDiscoveryRoot ? projectRoot : journalDatabaseRoot);
|
|
967
1150
|
if (consoleOptions) {
|
|
968
|
-
const
|
|
969
|
-
const
|
|
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;
|
|
1151
|
+
const resolvedKV = resolvedKVFromPlugin(retainedKVPlugin, effectiveKV);
|
|
1152
|
+
const replayedBlob = getResolvedFeatureOptions(replayConfig, "blob") ?? effectiveBlob;
|
|
1045
1153
|
const replayedExplicitBlob = Boolean(replayedBlob && replayedBlob !== true && ("driver" in replayedBlob || "stores" in replayedBlob));
|
|
1046
1154
|
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);
|
|
1155
|
+
const resolvedReplayedBlob = replayedBlobEnabled ? requireOptionalOwner(ownerModules.blobVite, "blob").resolveBlobViteConfig(replayedBlob === true ? void 0 : replayedBlob, { hosting: plan.nitroPreset }).blob : false;
|
|
1057
1156
|
const resolvedSections = resolveConsoleSectionIds({
|
|
1058
1157
|
...options,
|
|
1059
1158
|
auth: consoleHasPrimaryAuth,
|
|
1060
|
-
connections: isConsoleConnectionsEnabled(options, nuxt.options.dev === true) ? options.connections : false,
|
|
1061
1159
|
env: options.env !== false,
|
|
1062
1160
|
blob: replayedBlobEnabled,
|
|
1063
|
-
database: replayConfig
|
|
1161
|
+
database: getResolvedFeatureOptions(replayConfig, "database") ?? options.database,
|
|
1064
1162
|
email: options.email,
|
|
1065
1163
|
kv: resolvedKV,
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
workflow: replayConfig.workflow ?? options.workflow
|
|
1164
|
+
queue: effectiveQueue === false ? false : effectiveQueue === void 0 ? void 0 : getResolvedFeatureOptions(replayConfig, "queue") ?? effectiveQueue,
|
|
1165
|
+
sandboxTask: Boolean(getResolvedFeatureOptions(replayConfig, "sandboxTask") ?? options.sandboxTask) && resolveSandboxTaskDriver(options.sandboxTask, plan) !== void 0,
|
|
1166
|
+
workspace: options.workspace,
|
|
1167
|
+
workflow: options.workflow
|
|
1071
1168
|
});
|
|
1072
1169
|
const entrySections = await discoverConsoleEntrySections({
|
|
1073
1170
|
discoveryRoot: viteRoot,
|
|
@@ -1075,86 +1172,78 @@ const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtIn
|
|
|
1075
1172
|
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
1076
1173
|
});
|
|
1077
1174
|
consoleSections.splice(0, consoleSections.length, .../* @__PURE__ */ new Set([...resolvedSections, ...entrySections]));
|
|
1175
|
+
if (nuxt.options.dev) consoleSections.splice(0, consoleSections.length, ...insertConsoleSection(consoleSections, "setup"));
|
|
1078
1176
|
consoleBlobStores.splice(0, consoleBlobStores.length, ...resolvedReplayedBlob ? Object.keys(resolvedReplayedBlob.stores || { default: resolvedReplayedBlob.store }) : []);
|
|
1079
|
-
installConsoleSections(projectRoot, consoleSections
|
|
1080
|
-
installConsoleProjectName(projectRoot,
|
|
1081
|
-
addConsoleRpcHandler(config, consoleRuntimeRoot
|
|
1082
|
-
|
|
1083
|
-
if (
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1177
|
+
installConsoleSections(projectRoot, consoleSections);
|
|
1178
|
+
installConsoleProjectName(projectRoot, resolveConsoleProjectName(projectRoot, options.name));
|
|
1179
|
+
addConsoleRpcHandler(config, consoleRuntimeRoot);
|
|
1180
|
+
addConsoleAppRoutes(config, consoleRuntimeRoot);
|
|
1181
|
+
if (!nuxt.options.vitehubCliDiscovery) {
|
|
1182
|
+
const consoleCatalog = await discoverConsoleBuildCatalog({
|
|
1183
|
+
contentImportBase: "vite-hub/content",
|
|
1184
|
+
databaseDiscoveryRoot: hasReplayedDatabaseDiscoveryRoot ? replayedDatabaseDiscoveryRoot : configuredDatabaseDiscoveryRoot,
|
|
1185
|
+
discoveryRoot: viteRoot,
|
|
1186
|
+
plugins: nuxt.options.vite?.plugins,
|
|
1187
|
+
projectRoot,
|
|
1188
|
+
queueDiscoveryRoot: rootDir,
|
|
1189
|
+
rateLimitDiscoveryRoot: configuredProjectRoot(viteRoot, getResolvedFeatureOptions(replayConfig, "rateLimit") ?? options.rateLimit),
|
|
1190
|
+
rateLimitScanDirs: configuredScanDirs(getResolvedFeatureOptions(replayConfig, "rateLimit") ?? options.rateLimit),
|
|
1191
|
+
sections: consoleSections,
|
|
1192
|
+
scheduleDiscoveryRoot: configuredProjectRoot(viteRoot, options.schedule),
|
|
1193
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options),
|
|
1194
|
+
workspaceDiscoveryRoot: configuredProjectRoot(viteRoot, options.workspace),
|
|
1195
|
+
workflowDiscoveryRoot: rootDir
|
|
1196
|
+
});
|
|
1197
|
+
await writeNuxtConsolePlugin(generatedConsolePluginPath ?? resolveGeneratedConsolePlugin(projectRoot, nuxt.options.dev === true), consoleCatalog);
|
|
1086
1198
|
}
|
|
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
1199
|
}
|
|
1104
1200
|
Object.assign(config, mergeGeneratedSourceNitroConfig(config, generatedSourceHandlers));
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1201
|
+
addNoExternals(config, [
|
|
1202
|
+
"vite-hub",
|
|
1203
|
+
"@vite-hub/",
|
|
1204
|
+
join(projectRoot, ".vitehub"),
|
|
1205
|
+
h3RuntimeRoot,
|
|
1206
|
+
...linkedViteHubPackageRoots(projectRoot)
|
|
1207
|
+
]);
|
|
1208
|
+
if (incomingNoExternals === false && Array.isArray(config.noExternals)) nitro3ExternalLists.set(config, config.noExternals);
|
|
1209
|
+
else nitro3ExternalLists.delete(config);
|
|
1210
|
+
if (!nuxt.options.experimental?.nitroViteEnvironment) installNitroRuntimeResolvers(config, replayPlugins, {
|
|
1211
|
+
root: replayConfig.root || viteRoot,
|
|
1212
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options)
|
|
1213
|
+
});
|
|
1118
1214
|
normalizeGeneratedNitroPlugins(config, projectRoot);
|
|
1119
|
-
installNitroBuildPlugins(config, [join(projectRoot, ".vitehub"), join(nuxt.options.buildDir, "vitehub")], nuxt.options.dev === true && plan.
|
|
1120
|
-
if (nuxt.options.dev && plan.
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
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
|
-
}
|
|
1215
|
+
installNitroBuildPlugins(config, [join(projectRoot, ".vitehub"), join(nuxt.options.buildDir, "vitehub")], nuxt.options.dev === true && plan.host === "cloudflare", consoleSections, !nuxt.options.dev);
|
|
1216
|
+
if (nuxt.options.dev && plan.host === "cloudflare") await writeCloudflareDevShims(nuxt.options.buildDir, config.alias ??= {});
|
|
1217
|
+
if (plan.host === "cloudflare") {
|
|
1218
|
+
if (!nuxt.options.dev) {
|
|
1219
|
+
const handler = await writeCloudflareAssetsMiddleware(projectRoot);
|
|
1220
|
+
const handlers = Array.isArray(config.handlers) ? config.handlers : [];
|
|
1221
|
+
if (!handlers.some((entry) => isRecord(entry) && entry.handler === handler)) config.handlers = [...handlers, {
|
|
1222
|
+
handler,
|
|
1223
|
+
route: "/**",
|
|
1224
|
+
middleware: true
|
|
1225
|
+
}];
|
|
1146
1226
|
}
|
|
1227
|
+
const cloudflare = config.cloudflare ??= {};
|
|
1228
|
+
applyCloudflareNodeCompatOptOut(cloudflare, typeof config.rootDir === "string" ? config.rootDir : rootDir);
|
|
1147
1229
|
}
|
|
1148
1230
|
if (emailPlugin && nuxt.options.dev) installEmailTemplateResolver(config, join(projectRoot, ".vitehub/email/templates"));
|
|
1149
1231
|
const alias = config.alias ??= {};
|
|
1150
1232
|
for (const [name, path] of Object.entries(generatedAliases)) alias[name] ??= path;
|
|
1151
|
-
const kv = resolvedKVFromPlugin(retainedKVPlugin,
|
|
1152
|
-
if (!kv)
|
|
1233
|
+
const kv = resolvedKVFromPlugin(retainedKVPlugin, effectiveKV);
|
|
1234
|
+
if (!kv) {
|
|
1235
|
+
const virtual = config.virtual ??= {};
|
|
1236
|
+
if (virtual["#vitehub/kv/config"] === void 0 || virtual["#vitehub/kv/config"] === "export const hosting = undefined\nexport const kv = false\nexport const loadDatabases = undefined\nexport default { hosting, kv }\n") {
|
|
1237
|
+
virtual["#vitehub/kv/config"] = disabledKVConfigModule;
|
|
1238
|
+
const disabledConfig = join(projectRoot, ".vitehub/nuxt/disabled-kv-config.mjs");
|
|
1239
|
+
await mkdir(dirname(disabledConfig), { recursive: true });
|
|
1240
|
+
await writeFile(disabledConfig, disabledKVConfigModule, "utf8");
|
|
1241
|
+
alias["#vitehub/kv/config"] ??= disabledConfig;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1153
1244
|
if (!hasUpstashStore(kv)) alias[upstashDriverSpecifier] ??= disabledUpstashDriver;
|
|
1154
|
-
if (
|
|
1155
|
-
|
|
1156
|
-
if (options.database) addNitroImports(config, "vite-hub/database/drizzle", ["db", "schema"]);
|
|
1157
|
-
installGeneratedTypeScriptCompiler(config, join(nuxt.options.buildDir, "vitehub"));
|
|
1245
|
+
if (!hasRedisStore(kv)) alias[redisDriverSpecifier] ??= disabledRedisDriver;
|
|
1246
|
+
addNitroImports(config, serverAutoImports);
|
|
1158
1247
|
});
|
|
1159
1248
|
if (options.agent) {
|
|
1160
1249
|
addVueImports(nuxt, "vite-hub/agent/vue", agentVueComposables);
|
|
@@ -1163,8 +1252,42 @@ const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtIn
|
|
|
1163
1252
|
if (!include.includes("vite-hub/agent/vue")) include.push("vite-hub/agent/vue");
|
|
1164
1253
|
}
|
|
1165
1254
|
addVueImports(nuxt, "vite-hub/source/client", ["useCollection"]);
|
|
1255
|
+
if (options.observability && options.observability !== true && options.observability.browserErrors) await installBrowserErrorsNuxt(nuxt, projectRoot);
|
|
1256
|
+
await installStaleChunkReloadNuxt(nuxt, projectRoot);
|
|
1257
|
+
if (isPackageInstalled("@vite-hub/choices")) addVueImports(nuxt, "vite-hub/choices/vue", ["useChoices"]);
|
|
1258
|
+
if (isPackageInstalled("@vite-hub/forms")) {
|
|
1259
|
+
addVueImports(nuxt, "vite-hub/forms/vue", ["useFormAction"]);
|
|
1260
|
+
if (isPackageInstalled("@formisch/vue")) addVueImports(nuxt, "vite-hub/forms/formisch", ["useFormSubmit"]);
|
|
1261
|
+
}
|
|
1262
|
+
if (options.device !== false && isPackageInstalled("@vite-hub/device")) {
|
|
1263
|
+
addVueImports(nuxt, "vite-hub/device/vue", ["useStoredData", "useStoredFetch"]);
|
|
1264
|
+
addVueImports(nuxt, "vite-hub/device", [
|
|
1265
|
+
"setDeviceAccount",
|
|
1266
|
+
"clearDevice",
|
|
1267
|
+
"inspectDevice"
|
|
1268
|
+
]);
|
|
1269
|
+
await addDevicePlugin(nuxt, projectRoot, {
|
|
1270
|
+
version: options.device?.version,
|
|
1271
|
+
auth: Boolean(effectiveAuth) && options.device?.account !== false
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
if (isPackageInstalled("@vite-hub/sync") && hasSyncDirectory(projectRoot, resolveNuxtServerDirs(nuxt.options))) {
|
|
1275
|
+
addVueImports(nuxt, "vite-hub/sync/vue", ["useSync"]);
|
|
1276
|
+
addVueImports(nuxt, "vite-hub/sync/client", ["clearSync"]);
|
|
1277
|
+
if (effectiveAuth) await addSyncSignOutPlugin(nuxt, projectRoot);
|
|
1278
|
+
}
|
|
1279
|
+
if (nuxt.options.dev && isPackageInstalled("@vite-hub/sync")) restartOnSyncDefinitions(nuxt, projectRoot);
|
|
1280
|
+
if (options.i18n) {
|
|
1281
|
+
await requireOptionalOwner(ownerModules.i18nNuxt, "i18n").installI18nNuxt({ options: { plugins: nuxt.options.plugins ??= [] } }, {
|
|
1282
|
+
importBase: "vite-hub/i18n",
|
|
1283
|
+
nitroMajorVersion: 3,
|
|
1284
|
+
projectRoot
|
|
1285
|
+
});
|
|
1286
|
+
addVueImports(nuxt, "vite-hub/i18n/vue", ["useLocale"]);
|
|
1287
|
+
}
|
|
1166
1288
|
if (effectiveAuth) {
|
|
1167
1289
|
const envOptions = options.env || {};
|
|
1290
|
+
const { default: hubAuthNuxt } = requireOptionalOwner(await importOptionalOwner("@vite-hub/auth", () => import("@vite-hub/auth/nuxt")), "auth");
|
|
1168
1291
|
hubAuthNuxt({
|
|
1169
1292
|
auth: effectiveAuth === true ? void 0 : effectiveAuth,
|
|
1170
1293
|
env: options.env === false ? false : { projectRoot: envOptions.projectRoot },
|
|
@@ -1184,29 +1307,74 @@ const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxtIn
|
|
|
1184
1307
|
addVueImports(nuxt, "vite-hub/realtime", ["defineRealtime"]);
|
|
1185
1308
|
addVueImports(nuxt, "vite-hub/realtime/vue", ["useRealtimeTiptap"]);
|
|
1186
1309
|
}
|
|
1187
|
-
if (
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1310
|
+
if (consoleOptions) generatedConsolePluginPath = await installConsole({
|
|
1311
|
+
nuxt,
|
|
1312
|
+
projectRoot,
|
|
1313
|
+
name: options.name,
|
|
1314
|
+
sections: consoleSections,
|
|
1315
|
+
discovery: {
|
|
1316
|
+
contentImportBase: "vite-hub/content",
|
|
1317
|
+
databaseDiscoveryRoot: configuredDatabaseDiscoveryRoot,
|
|
1318
|
+
discoveryRoot: viteRoot,
|
|
1319
|
+
plugins: nuxt.options.vite?.plugins,
|
|
1320
|
+
queueDiscoveryRoot: rootDir,
|
|
1321
|
+
rateLimitDiscoveryRoot: configuredProjectRoot(viteRoot, options.rateLimit),
|
|
1322
|
+
rateLimitScanDirs: configuredScanDirs(options.rateLimit),
|
|
1323
|
+
scheduleDiscoveryRoot: configuredProjectRoot(viteRoot, options.schedule),
|
|
1324
|
+
serverDirs: resolveNuxtServerDirs(nuxt.options),
|
|
1325
|
+
workflowDiscoveryRoot: rootDir,
|
|
1326
|
+
workspaceDiscoveryRoot: configuredProjectRoot(viteRoot, options.workspace)
|
|
1327
|
+
},
|
|
1328
|
+
writeGeneratedPlugin: !nuxt.options.vitehubCliDiscovery,
|
|
1329
|
+
canDiscoverDefinitions: () => consoleWorkflowConfigResolved,
|
|
1330
|
+
access: consoleAccess,
|
|
1331
|
+
writePlugin: writeNuxtConsolePlugin
|
|
1332
|
+
});
|
|
1204
1333
|
};
|
|
1205
1334
|
viteHubNuxtModule.getMeta = async () => ({
|
|
1335
|
+
compatibility: { server: "nitro3" },
|
|
1206
1336
|
configKey: "vitehub",
|
|
1207
1337
|
name: "vite-hub/nuxt"
|
|
1208
1338
|
});
|
|
1339
|
+
viteHubNuxtModule.getModuleDependencies = async (nuxt) => {
|
|
1340
|
+
startPackageChecks();
|
|
1341
|
+
const image = nuxtImageProviderDependency(nuxt?.options ?? {});
|
|
1342
|
+
const content = await resolveNuxtContentDatabaseDependencies(nuxt);
|
|
1343
|
+
if (!isPackageInstalled("@nuxt/ui")) return {
|
|
1344
|
+
...content,
|
|
1345
|
+
...image
|
|
1346
|
+
};
|
|
1347
|
+
return {
|
|
1348
|
+
...(await importOptionalOwner("@vite-hub/ui", () => import("@vite-hub/ui/nuxt")))?.viteHubUIIconDependencies,
|
|
1349
|
+
...content,
|
|
1350
|
+
...image
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
/**
|
|
1354
|
+
* The Nuxt Content `database` default that the default Database gives, such as Postgres or remote libSQL. Nuxt applies
|
|
1355
|
+
* dependency defaults before it sets up any module, so Content reads it in any module order. A Database with an explicit
|
|
1356
|
+
* `driver` keeps its own Content wiring, and Cloudflare keeps Content on D1.
|
|
1357
|
+
*/
|
|
1358
|
+
async function resolveNuxtContentDatabaseDependencies(nuxtInstance) {
|
|
1359
|
+
const nuxtOptions = nuxtInstance?.options;
|
|
1360
|
+
if (!nuxtOptions || nuxtOptions.dev) return {};
|
|
1361
|
+
const configured = { ...nuxtOptions.vitehub };
|
|
1362
|
+
if (resolveNuxtBuildHost(configured.host, nuxtOptions.nitro) === "cloudflare") return {};
|
|
1363
|
+
const project = {
|
|
1364
|
+
projectRoot: resolveViteHubProjectRoot(nuxtOptions.rootDir || process.cwd()),
|
|
1365
|
+
serverDirs: resolveNuxtServerDirs(nuxtOptions)
|
|
1366
|
+
};
|
|
1367
|
+
const { database } = withConnectionsDatabase(resolveCmsPresetFeatures(withComments(configured), project));
|
|
1368
|
+
if (!database || database !== true && database.driver !== void 0) return {};
|
|
1369
|
+
return (await importOptionalOwner("@vite-hub/database", () => import("@vite-hub/database/nuxt")))?.hubDatabase(database === true ? {} : { ...database }).getModuleDependencies(nuxtInstance) ?? {};
|
|
1370
|
+
}
|
|
1371
|
+
/** Without a `host` option, a Nuxt app that sets `nitro.preset`, such as `cloudflare-module`, builds for that host. */
|
|
1372
|
+
function resolveNuxtBuildHost(host, nitro) {
|
|
1373
|
+
const preset = nitro?.preset;
|
|
1374
|
+
return resolveBuildHost(host ?? hostFromNitroPreset(typeof preset === "string" ? preset : void 0));
|
|
1375
|
+
}
|
|
1209
1376
|
function usesOnlyPostgresDatabases(rootDir, serverDirs) {
|
|
1377
|
+
const { discoverDatabaseDefinitions, readDatabaseDefinitionDialect } = requireOptionalOwner(ownerModules.databaseConfig, "database");
|
|
1210
1378
|
const definitions = discoverDatabaseDefinitions(rootDir, { serverDirs });
|
|
1211
1379
|
return definitions.length > 0 && definitions.every((definition) => readDatabaseDefinitionDialect(definition.handler) === "postgresql");
|
|
1212
1380
|
}
|