vite-hub 0.4.1 → 0.5.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 +38 -14
- package/dist/_internal/runtime/browser-errors.d.ts +12 -4
- package/dist/_internal/runtime/browser-errors.js +69 -27
- package/dist/_internal/runtime/redirects.d.ts +1 -2
- package/dist/_internal/runtime/redirects.js +2 -3
- package/dist/_internal/runtime/request-policy.d.ts +11 -2
- package/dist/_internal/runtime/request-policy.js +25 -6
- package/dist/_internal/runtime/security.d.ts +1 -2
- package/dist/_internal/runtime/security.js +16 -3
- package/dist/{access-BDST818p.js → access-BBHk9b5P.js} +30 -20
- package/dist/{access-policy-DjBKLo3c.js → access-policy-BM48XstY.js} +5 -6
- package/dist/{access-policy-CGXhO3Ee.d.ts → access-policy-CUbJLvlR.d.ts} +4 -8
- package/dist/{account-BnOAU055.d.ts → account-CoAO1F8G.d.ts} +9 -7
- package/dist/agent/invocations/postgres.d.ts +1 -0
- package/dist/agent/invocations/postgres.js +2 -0
- package/dist/{agent-invocations.post-CcPvfA0n.js → agent-invocations.post-BAC1aHnG.js} +16 -18
- package/dist/agents-BClUWOj7.js +1 -0
- package/dist/{agents-BDeazoAW.js → agents-Cz_uhhov.js} +4 -5
- package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
- package/dist/auth/server.js +1 -2
- package/dist/{auth-BZOy7obk.d.ts → auth-CeKxL2xp.d.ts} +4 -8
- package/dist/{auth-operations-GcQk0O0X.js → auth-operations-arLIY2_2.js} +1 -2
- package/dist/{auth-types-CyqhWvYF.d.ts → auth-types-B4mq4YhK.d.ts} +1 -4
- package/dist/bin.js +34 -23
- package/dist/blob/nuxt-image.js +1 -2
- package/dist/{blob-CFLwMsjH.d.ts → blob-_TtxDb-t.d.ts} +1 -3
- package/dist/{blob-CpvlM8jp.js → blob-eH6j0AQj.js} +5 -6
- package/dist/browser-error-limits-B0yS95zt.js +24 -0
- package/dist/cache/operations.d.ts +2 -4
- package/dist/cache/operations.js +3 -4
- package/dist/cache.d.ts +1 -3
- package/dist/cache.js +2 -3
- package/dist/choices/testing.d.ts +1 -0
- package/dist/choices/testing.js +2 -0
- package/dist/{cli-config-wxKjF2Y0.js → cli-config-BX8H4ZCo.js} +12 -5
- package/dist/cli-config-DgpmE_7z.js +1 -0
- package/dist/cloudflare-app-types.d.ts +18 -0
- package/dist/{cloudflare-env-lookup-DKXdr4P_.js → cloudflare-env-lookup-DcN7pGlv.js} +1 -2
- package/dist/cms.js +1 -2
- package/dist/console/auth-types.d.ts +1 -1
- package/dist/console/auth.d.ts +1 -3
- package/dist/console/auth.js +2 -3
- package/dist/console/runtime/auth-operations.d.ts +1 -3
- package/dist/console/runtime/auth-operations.js +1 -2
- package/dist/console/runtime/client/account-views.d.ts +1 -3
- package/dist/console/runtime/client/account-views.js +1 -2
- package/dist/console/runtime/client/account.d.ts +1 -1
- package/dist/console/runtime/client/account.js +36 -48
- package/dist/console/runtime/client/add-primitive.ts +2 -2
- package/dist/console/runtime/client/appearance.d.ts +1 -2
- package/dist/console/runtime/client/appearance.js +1 -2
- package/dist/console/runtime/client/blob-media.d.ts +2 -4
- package/dist/console/runtime/client/blob-media.js +5 -6
- package/dist/console/runtime/client/comment-thread.d.ts +1 -3
- package/dist/console/runtime/client/comment-thread.js +11 -5
- package/dist/console/runtime/client/content-heads.d.ts +1 -2
- package/dist/console/runtime/client/content-heads.js +2 -3
- package/dist/console/runtime/client/documents.d.ts +2 -2
- package/dist/console/runtime/client/documents.js +1 -2
- package/dist/console/runtime/client/editor.d.ts +3 -5
- package/dist/console/runtime/client/editor.js +1 -2
- package/dist/console/runtime/client/env-groups.d.ts +1 -3
- package/dist/console/runtime/client/env-groups.js +1 -2
- package/dist/console/runtime/client/env-status.d.ts +1 -3
- package/dist/console/runtime/client/env-status.js +1 -2
- package/dist/console/runtime/client/format.d.ts +1 -3
- package/dist/console/runtime/client/format.js +1 -2
- package/dist/console/runtime/client/invocation-deletion.d.ts +1 -2
- package/dist/console/runtime/client/invocation-deletion.js +1 -2
- package/dist/console/runtime/client/invocation.d.ts +1 -2
- package/dist/console/runtime/client/invocation.js +4 -5
- package/dist/console/runtime/client/live.d.ts +2 -4
- package/dist/console/runtime/client/live.js +1 -2
- package/dist/console/runtime/client/mcp-client.d.ts +6 -4
- package/dist/console/runtime/client/mcp-client.js +12 -5
- package/dist/console/runtime/client/media-library.d.ts +1 -1
- package/dist/console/runtime/client/media-library.js +1 -2
- package/dist/console/runtime/client/media-uploads.d.ts +2 -4
- package/dist/console/runtime/client/media-uploads.js +2 -3
- package/dist/console/runtime/client/media.d.ts +1 -1
- package/dist/console/runtime/client/media.js +1 -2
- package/dist/console/runtime/client/operation-view.d.ts +2 -4
- package/dist/console/runtime/client/operation-view.js +4 -5
- package/dist/console/runtime/client/presence.d.ts +2 -4
- package/dist/console/runtime/client/presence.js +1 -2
- package/dist/console/runtime/client/preview.d.ts +1 -3
- package/dist/console/runtime/client/preview.js +1 -2
- package/dist/console/runtime/client/problem.d.ts +2 -4
- package/dist/console/runtime/client/problem.js +3 -4
- package/dist/console/runtime/client/project-link.d.ts +2 -2
- package/dist/console/runtime/client/project-link.js +1 -2
- package/dist/console/runtime/client/project-session.d.ts +19 -10
- package/dist/console/runtime/client/project-session.js +1 -723
- package/dist/console/runtime/client/project.d.ts +1 -3
- package/dist/console/runtime/client/project.js +1 -2
- package/dist/console/runtime/client/projects.d.ts +1 -1
- package/dist/console/runtime/client/projects.js +1 -2
- package/dist/console/runtime/client/publish.d.ts +2 -4
- package/dist/console/runtime/client/publish.js +1 -2
- package/dist/console/runtime/client/rate-limit.d.ts +1 -3
- package/dist/console/runtime/client/rate-limit.js +3 -4
- package/dist/console/runtime/client/read-only.d.ts +2 -4
- package/dist/console/runtime/client/read-only.js +2 -3
- package/dist/console/runtime/client/request.d.ts +2 -70
- package/dist/console/runtime/client/request.js +1 -2
- package/dist/console/runtime/client/route-query.d.ts +4 -5
- package/dist/console/runtime/client/route-query.js +1 -2
- package/dist/console/runtime/client/schedule-run.d.ts +1 -3
- package/dist/console/runtime/client/schedule-run.js +3 -4
- package/dist/console/runtime/client/schema-form.d.ts +1 -1
- package/dist/console/runtime/client/schema-form.js +1 -2
- package/dist/console/runtime/client/sections.d.ts +1 -1
- package/dist/console/runtime/client/sections.js +1 -2
- package/dist/console/runtime/client/site-access.d.ts +41 -10
- package/dist/console/runtime/client/site-access.js +157 -28
- package/dist/console/runtime/client/stored.d.ts +1 -3
- package/dist/console/runtime/client/stored.js +1 -2
- package/dist/console/runtime/client/ticket.d.ts +1 -1
- package/dist/console/runtime/client/ticket.js +1 -2
- package/dist/console/runtime/client/toast.d.ts +1 -3
- package/dist/console/runtime/client/toast.js +1 -2
- package/dist/console/runtime/client/workflow.d.ts +1 -3
- package/dist/console/runtime/client/workflow.js +3 -4
- package/dist/console/runtime/components/console-account-api-keys.vue +4 -4
- package/dist/console/runtime/components/console-account-home.vue +230 -51
- package/dist/console/runtime/components/console-account-link.vue +8 -5
- package/dist/console/runtime/components/console-account-setup.vue +10 -7
- package/dist/console/runtime/components/console-account-shell.vue +13 -19
- package/dist/console/runtime/components/console-account-unlink.vue +2 -3
- package/dist/console/runtime/components/console-app-settings.vue +8 -2
- package/dist/console/runtime/components/console-app.vue +1 -10
- package/dist/console/runtime/components/console-auth-activity.vue +2 -2
- package/dist/console/runtime/components/console-auth-chart.vue +1 -1
- package/dist/console/runtime/components/console-auth-overview.vue +1 -1
- package/dist/console/runtime/components/console-auth.vue +4 -4
- package/dist/console/runtime/components/console-comment-thread.vue +1 -1
- package/dist/console/runtime/components/console-definitions.vue +4 -4
- package/dist/console/runtime/components/console-document-dashboard.vue +2 -2
- package/dist/console/runtime/components/console-document-list.vue +2 -2
- package/dist/console/runtime/components/console-document-settings.vue +1 -1
- package/dist/console/runtime/components/console-env.vue +3 -3
- package/dist/console/runtime/components/console-home.vue +220 -311
- package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
- package/dist/console/runtime/components/console-loading.vue +1 -1
- package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
- package/dist/console/runtime/components/console-mcp-connection.vue +3 -3
- package/dist/console/runtime/components/console-mcp-items.vue +4 -17
- package/dist/console/runtime/components/console-media-browser.vue +20 -30
- package/dist/console/runtime/components/console-media-crops.vue +3 -2
- package/dist/console/runtime/components/console-media-uploads.vue +11 -7
- package/dist/console/runtime/components/console-page-toolbar.vue +5 -10
- package/dist/console/runtime/components/console-schema-list.vue +85 -31
- package/dist/console/runtime/components/console-search-palette.vue +14 -5
- package/dist/console/runtime/components/console-section.vue +2 -1
- package/dist/console/runtime/components/console-session-inspector.vue +5 -0
- package/dist/console/runtime/components/console-session.css +8 -2
- package/dist/console/runtime/components/console-settings-value.vue +4 -5
- package/dist/console/runtime/components/console-sidebar.vue +9 -8
- package/dist/console/runtime/components/console-site.vue +36 -15
- package/dist/console/runtime/components/console-stat-grid.vue +3 -2
- package/dist/console/runtime/components/console-toaster.vue +3 -2
- package/dist/console/runtime/components/console-usage-chart.vue +1 -1
- package/dist/console/runtime/components/console-usage.vue +36 -18
- package/dist/console/runtime/components/invocation/internal/brand-icons.ts +10 -0
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +6 -2
- package/dist/console/runtime/components/invocation/invocation.css +4 -27
- package/dist/console/runtime/console-route.d.ts +1 -3
- package/dist/console/runtime/console-route.js +1 -2
- package/dist/console/runtime/definitions.d.ts +1 -1
- package/dist/console/runtime/definitions.js +1 -2
- package/dist/console/runtime/diagnostics.ts +8 -1
- package/dist/console/runtime/mcp-client.d.ts +1 -1
- package/dist/console/runtime/mcp-client.js +1 -2
- package/dist/console/runtime/page/loader.js +45 -52
- package/dist/console/runtime/page-tool/account.js +26 -0
- package/dist/console/runtime/page-tool/page-tool.js +2 -3
- package/dist/console/runtime/public/skills/index.json +1 -1
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -7
- package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +1 -1
- package/dist/console/runtime/rpc.d.ts +1 -1
- package/dist/console/runtime/rpc.js +1 -2
- package/dist/console/runtime/sections.d.ts +1 -1
- package/dist/console/runtime/sections.js +1 -2
- package/dist/console/runtime/server/access-policy.d.ts +1 -1
- package/dist/console/runtime/server/access-policy.js +1 -2
- package/dist/console/runtime/server/agents.get.d.ts +2 -3
- package/dist/console/runtime/server/agents.get.js +3 -4
- package/dist/console/runtime/server/auth.d.ts +1 -1
- package/dist/console/runtime/server/auth.js +4 -5
- package/dist/console/runtime/server/blob.d.ts +1 -1
- package/dist/console/runtime/server/blob.js +1 -2
- package/dist/console/runtime/server/channel-replay.d.ts +3 -5
- package/dist/console/runtime/server/channel-replay.js +7 -7
- package/dist/console/runtime/server/database.d.ts +1 -1
- package/dist/console/runtime/server/database.get.d.ts +2 -3
- package/dist/console/runtime/server/database.get.js +4 -5
- package/dist/console/runtime/server/database.js +1 -2
- package/dist/console/runtime/server/definitions.d.ts +1 -1
- package/dist/console/runtime/server/definitions.get.d.ts +4 -6
- package/dist/console/runtime/server/definitions.get.js +5 -6
- package/dist/console/runtime/server/definitions.js +1 -2
- package/dist/console/runtime/server/development.d.ts +1 -1
- package/dist/console/runtime/server/development.js +1 -2
- package/dist/console/runtime/server/documents.d.ts +1 -1
- package/dist/console/runtime/server/documents.js +2 -2
- package/dist/console/runtime/server/env.d.ts +1 -3
- package/dist/console/runtime/server/env.get.d.ts +2 -4
- package/dist/console/runtime/server/env.get.js +7 -8
- package/dist/console/runtime/server/env.js +1 -2
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +1 -3
- package/dist/console/runtime/server/invocation-capabilities.get.js +4 -5
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -5
- package/dist/console/runtime/server/invocation-workspace.get.js +6 -7
- package/dist/console/runtime/server/invocation.get.d.ts +3 -5
- package/dist/console/runtime/server/invocation.get.js +8 -9
- package/dist/console/runtime/server/invocations.get.d.ts +1 -2
- package/dist/console/runtime/server/invocations.get.js +5 -6
- package/dist/console/runtime/server/logs.get.d.ts +3 -5
- package/dist/console/runtime/server/logs.get.js +7 -8
- package/dist/console/runtime/server/mcp-client-operations.d.ts +2 -4
- package/dist/console/runtime/server/mcp-client-operations.js +5 -7
- package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
- package/dist/console/runtime/server/operation-contributions.js +1 -2
- package/dist/console/runtime/server/page-auth.d.ts +2 -4
- package/dist/console/runtime/server/page-auth.js +1 -2
- package/dist/console/runtime/server/page-tool.d.ts +1 -1
- package/dist/console/runtime/server/page-tool.js +12 -7
- package/dist/console/runtime/server/page-tools-route.d.ts +2 -0
- package/dist/console/runtime/server/page-tools-route.js +4 -0
- package/dist/console/runtime/server/rpc.d.ts +3 -5
- package/dist/console/runtime/server/rpc.js +12 -13
- package/dist/console/runtime/server/runtime.d.ts +1 -1
- package/dist/console/runtime/server/runtime.js +1 -2
- package/dist/console/runtime/server/search.get.d.ts +1 -3
- package/dist/console/runtime/server/search.get.js +3 -5
- package/dist/console/runtime/server/sections.d.ts +5 -5
- package/dist/console/runtime/server/sections.get.d.ts +1 -1
- package/dist/console/runtime/server/sections.get.js +8 -9
- package/dist/console/runtime/server/sections.js +6 -6
- package/dist/console/runtime/server/setup.d.ts +5 -5
- package/dist/console/runtime/server/setup.js +5 -5
- package/dist/console/runtime/server/site-entry.d.ts +1 -3
- package/dist/console/runtime/server/site-entry.js +15 -10
- package/dist/console/runtime/server/site-session.d.ts +12 -22
- package/dist/console/runtime/server/site-session.js +1 -2
- package/dist/console/runtime/server/status.get.d.ts +2 -4
- package/dist/console/runtime/server/status.get.js +6 -7
- package/dist/console/runtime/server/tickets.d.ts +1 -1
- package/dist/console/runtime/server/tickets.js +1 -2
- package/dist/console/runtime/server/usage.get.d.ts +2 -4
- package/dist/console/runtime/server/usage.get.js +8 -9
- package/dist/console/runtime/server/workspace-files.get.d.ts +3 -5
- package/dist/console/runtime/server/workspace-files.get.js +4 -5
- package/dist/console/runtime/site-access.d.ts +1 -1
- package/dist/console/runtime/site-access.js +1 -2
- package/dist/console/runtime/skills.d.ts +1 -3
- package/dist/console/runtime/skills.js +1 -2
- package/dist/console/server.d.ts +7 -11
- package/dist/console/server.js +8 -8
- package/dist/console/ui.d.ts +0 -10
- package/dist/console/ui.js +32 -28
- package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
- package/dist/{console-route-CBuqZ4wO.js → console-route-DbdnLkkF.js} +3 -4
- package/dist/console.d.ts +1 -3
- package/dist/console.js +1 -2
- package/dist/{database-DyPVMjp_.d.ts → database-CPjZ3L0g.d.ts} +1 -3
- package/dist/{database-BdOBjPkS.js → database-CrgBUdIx.js} +3 -4
- package/dist/definition-catalog-1xPPtzOx.js +137 -0
- package/dist/definition-catalog-M5ua7JRS.js +1 -0
- package/dist/{definitions-BW6SvmMM.js → definitions-BFYqXchw.js} +1 -2
- package/dist/{definitions-DB4LbZ7T.d.ts → definitions-ChvMnA1L.d.ts} +0 -2
- package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
- package/dist/{definitions-CNq_Shkh.js → definitions-M7i2p8SR.js} +5 -6
- package/dist/deployment-CURATxjG.js +229 -0
- package/dist/deployment-l7RuKdEp.js +1 -0
- package/dist/{dev-peer-am78OsHH.js → dev-peer-DBq-isgi.js} +7 -6
- package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
- package/dist/{development-W5EwONyL.d.ts → development-I40mfD7B.d.ts} +1 -3
- package/dist/{diagnostics-9U_fYxMy.js → diagnostics-B2cqlCSz.js} +3 -3
- package/dist/{diagnostics-CjGiniKb.d.ts → diagnostics-BXxPggRw.d.ts} +1 -3
- package/dist/docs/nuxt.js +1 -2
- package/dist/doctor.d.ts +0 -6
- package/dist/doctor.js +15078 -2377
- package/dist/{documents-CjJTCrY8.js → documents-BOYwZ5g4.js} +7 -8
- package/dist/{documents-qrHHqlNU.js → documents-Ck_iub9w.js} +4 -5
- package/dist/{documents-BASIRZ91.d.ts → documents-DxK0tdjA.d.ts} +3 -5
- package/dist/{documents-CboVhYFz.d.ts → documents-LtkKCxtu.d.ts} +4 -8
- package/dist/durability/operations.d.ts +2 -4
- package/dist/durability/operations.js +3 -4
- package/dist/email/vue.d.ts +1 -0
- package/dist/email/vue.js +2 -0
- package/dist/{entries-Bj-jPs_J.js → entries-UFs9n1MB.js} +2 -3
- package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
- package/dist/{error-diagnostics-Bm3JKYjz.js → error-diagnostics-CBtvqI30.js} +33 -22
- package/dist/{operation-definition-a5keEpCd.js → error-diagnostics-kKXseq8d.js} +11 -169
- package/dist/error-diagnostics.ts +33 -23
- package/dist/{optional-owners-BNA2OX6z.js → features-BXRKlmtN.js} +57 -345
- package/dist/features-CD5i5I8V.js +1 -0
- package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
- package/dist/gateways/testing.d.ts +1 -0
- package/dist/gateways/testing.js +2 -0
- package/dist/github-login-W-vaahWP.js +6 -0
- package/dist/{host-CkL0jjBq.js → host-DeNPYIeV.js} +1 -2
- package/dist/{http-error-Bs6e8_-8.js → http-error-BorAxJYM.js} +1 -2
- package/dist/index.d.ts +2 -8
- package/dist/index.js +5 -6
- package/dist/inspect-CWwAuL-B.js +47 -0
- package/dist/internal/agent-invocations-libsql.js +1 -2
- package/dist/internal/disabled-redis-driver.d.ts +1 -3
- package/dist/internal/disabled-redis-driver.js +2 -3
- package/dist/internal/disabled-upstash-driver.d.ts +1 -3
- package/dist/internal/disabled-upstash-driver.js +2 -3
- package/dist/internal/test-loader.d.ts +1 -3
- package/dist/internal/test-loader.js +2 -3
- package/dist/internal/test-server.js +2 -3
- package/dist/{internal-BreyUsQ6.js → internal-0C_CC601.js} +1 -2
- package/dist/{internal-CO4OqqaS.d.ts → internal-CKocv79I.d.ts} +3 -7
- package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
- package/dist/{invocation-page-undo-DIZ-s3xT.js → invocation-page-undo-BEi-rO0Q.js} +5 -6
- package/dist/{invocations-CK_-G540.js → invocations-8NThe8Bx.js} +5 -6
- package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
- package/dist/logs/client.d.ts +19 -0
- package/dist/logs/client.js +11 -0
- package/dist/logs/host.d.ts +2 -4
- package/dist/logs/host.js +1 -2
- package/dist/logs/memory.d.ts +1 -1
- package/dist/logs/memory.js +1 -2
- package/dist/logs/source.d.ts +1 -1
- package/dist/logs/source.js +1 -2
- package/dist/logs.d.ts +2 -2
- package/dist/logs.js +2 -2
- package/dist/{mcp-client-CTbTbn7d.js → mcp-client-Bkh-khvr.js} +1 -2
- package/dist/{mcp-client-By4zk0vU.js → mcp-client-DiObFpDS.js} +35 -22
- package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-Q2XbUXuP.d.ts} +1 -4
- package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
- package/dist/{media-BHpQ-4jw.js → media-CAKz9yrp.js} +8 -9
- package/dist/{media-library-NaOMBKWS.js → media-library-BDX89xXA.js} +5 -6
- package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
- package/dist/{memory-DTmq-Z6x.js → memory-D3EJS_Bp.js} +21 -10
- package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
- package/dist/nuxt-server-auto-imports-4aT5BD4u.js +74 -0
- package/dist/{nuxt-server-imports-DH60Z7LA.js → nuxt-server-imports-BdJqiVhT.js} +10 -18
- package/dist/nuxt.d.ts +1 -3
- package/dist/nuxt.js +339 -189
- package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
- package/dist/{operation-contributions-DpkO_iSU.d.ts → operation-contributions-BCcQVlGb.d.ts} +1 -3
- package/dist/{operation-contributions-BdS0z3tx.js → operation-contributions-D10pjkJF.js} +4 -5
- package/dist/operation-definition-DTpNvLd8.js +164 -0
- package/dist/{operation-registry-BogGwk_I.js → operation-registry-DfQbL7vE.js} +1 -2
- package/dist/{operation-rpc-DI9txNxK.js → operation-rpc-BMdfapja.js} +3 -4
- package/dist/{operations-EOdyctDc.js → operations-CD_mu_Ww.js} +86 -9
- package/dist/operations-D7ENc68Y.js +1 -0
- package/dist/{operations-B0689BG1.d.ts → operations-DgFhA1WE.d.ts} +8 -6
- package/dist/{operations-CWP9dF3i.js → operations-vRLiH7dh.js} +35 -46
- package/dist/optional-owners-DAfShdgV.js +353 -0
- package/dist/out-Cw5Tvr92.js +20989 -0
- package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
- package/dist/page/pill.iife.js +25 -27
- package/dist/{page-tool-CRCK1RHV.d.ts → page-tool-BUnUbuSy.d.ts} +6 -7
- package/dist/{page-tools-BkSSBFoi.js → page-tools-BQzwuAHD.js} +28 -12
- package/dist/{page-tools-sw4I-Nqx.d.ts → page-tools-UwsfvH-B.d.ts} +2 -4
- package/dist/{page-tools-shared-D3fFoEV2.js → page-tools-shared-hJcG_xk8.js} +8 -5
- package/dist/{inspect-CDw7e0vK.js → pathe.M-eThtNZ-D4EC7Wue.js} +2 -31
- package/dist/{plugins-BqAtIEX2.d.ts → plugins-BpiTVULl.d.ts} +252 -262
- package/dist/{plugins-B-DpgDPB.js → plugins-H6-MQrsn.js} +3483 -797
- package/dist/presets/workspace.js +1 -2
- package/dist/project-BxyyclTE.js +58 -0
- package/dist/{project-CufkVP1u.d.ts → project-DKBIHOf4.d.ts} +16 -4
- package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
- package/dist/{project-link-D-6UefhA.js → project-link-CeS0T8Pr.js} +57 -9
- package/dist/{project-link-BuOzBH9f.d.ts → project-link-isfdRO3Q.d.ts} +42 -6
- package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
- package/dist/project-session--GN7MduT.js +764 -0
- package/dist/{projects-CAcXztf4.js → projects-BRp0iseV.js} +1 -2
- package/dist/{projects-Ddvl9EJp.d.ts → projects-mgPxrKZr.d.ts} +0 -2
- package/dist/{registry-zw6aE2N9.js → registry-B8JE5NY-.js} +1 -2
- package/dist/{registry-CDKLACCZ.js → registry-CnPC-gNu.js} +1 -2
- package/dist/{request-D7h3SQ92.d.ts → request-BC_krbEr.d.ts} +2 -4
- package/dist/request-CJCPyu2B.d.ts +70 -0
- package/dist/{request-DbFfYmCu.js → request-CQ8TkHLh.js} +4 -5
- package/dist/{request-DE8w_cSM.js → request-Cl68STwT.js} +7 -8
- package/dist/request-origin-pzWr9UUu.js +37 -0
- package/dist/rolldown-runtime-DegdyBIC.js +25 -0
- package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
- package/dist/{rpc-DIUA61pv.js → rpc-D3tsx5lZ.js} +1 -2
- package/dist/{rpc-7nlHSv3y.d.ts → rpc-oijgKQtD.d.ts} +0 -2
- package/dist/{runtime-YLWfdrtO.js → runtime-CAbuQGMP.js} +3 -4
- package/dist/{runtime-DQuHg7OO.js → runtime-CRJsqVTa.js} +2 -3
- package/dist/{runtime-B_btezs1.d.ts → runtime-Cf8R1Ztr.d.ts} +0 -2
- package/dist/{runtime-DxfJOfCd.js → runtime-CyPZMiyK.js} +2 -3
- package/dist/{runtime-OsEDfbM9.js → runtime-F0CTqBFx.js} +5 -6
- package/dist/{runtime-feature-guard-B64MMW9I.js → runtime-feature-guard-DpUn4Oxc.js} +91 -10
- package/dist/scan-module-B1A24jqP.js +1 -0
- package/dist/{scan-module-Df58L_6T.js → scan-module-BfZvDBxb.js} +2 -4
- package/dist/{schema-form-C-fy3xaU.d.ts → schema-form-Bl79Bdm-.d.ts} +0 -2
- package/dist/{secret-Dy5uqvq9.js → secret-D2KL_o2h.js} +2 -3
- package/dist/{sections-Do7X4Nwt.d.ts → sections-0qrBvGbf.d.ts} +0 -4
- package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
- package/dist/{sections-BogiCmtz.d.ts → sections-BTfWK14a.d.ts} +4 -6
- package/dist/{sections-DumoLKQN.js → sections-BiCOk9qP.js} +1 -2
- package/dist/sections-DAtgYMVz.d.ts +8 -0
- package/dist/{sections-et20h8w3.js → sections-HLxb9MrG.js} +14 -7
- package/dist/{sections.get-COiLcQ0P.d.ts → sections.get-CGmtYmfu.d.ts} +2 -4
- package/dist/seo/runtime.d.ts +2 -5
- package/dist/seo/runtime.js +3 -5
- package/dist/{seo-CtLywyRx.d.ts → seo-CgW5uI9L.d.ts} +0 -2
- package/dist/seo.d.ts +1 -1
- package/dist/seo.js +1 -2
- package/dist/{server-BRJE4t-W.js → server-DsOEa4_A.js} +5 -5
- package/dist/{setup-ZbA1by7W.d.ts → setup-Ca7jtBLS.d.ts} +8 -7
- package/dist/{setup-C-5nB7aY.js → setup-DQz_i-ee.js} +16 -5
- package/dist/{site-access-BmE8HGxs.js → site-access-1JIQjY11.js} +16 -16
- package/dist/{site-access-DxfdOel1.d.ts → site-access-CUXIbbbR.d.ts} +0 -2
- package/dist/{site-access-BycrwM2v.js → site-access-CmaZ-oaL.js} +1 -2
- package/dist/site-access-Cvmjb6aw.js +1 -0
- package/dist/{site-session-odJq1dYa.js → site-session-D36fr7Wf.js} +65 -40
- package/dist/skills/operations.d.ts +1 -5
- package/dist/skills/operations.js +4 -5
- package/dist/skills/vitehub/SKILL.md +142 -0
- package/dist/skills/vitehub/agents/openai.yaml +4 -0
- package/dist/skills/vitehub/references/agent-definitions.md +36 -0
- package/dist/skills/vitehub/references/bundle.md +57 -0
- package/dist/skills/vitehub/references/capabilities-authority.md +30 -0
- package/dist/skills/vitehub/references/channels-triggers.md +27 -0
- package/dist/skills/vitehub/references/framework-composition.md +29 -0
- package/dist/skills/vitehub/references/preview-contract.md +44 -0
- package/dist/skills/vitehub/references/primitives/auth.md +14 -0
- package/dist/skills/vitehub/references/primitives/blob.md +13 -0
- package/dist/skills/vitehub/references/primitives/browser.md +17 -0
- package/dist/skills/vitehub/references/primitives/cache.md +13 -0
- package/dist/skills/vitehub/references/primitives/channels.md +11 -0
- package/dist/skills/vitehub/references/primitives/connections.md +14 -0
- package/dist/skills/vitehub/references/primitives/content.md +13 -0
- package/dist/skills/vitehub/references/primitives/database.md +15 -0
- package/dist/skills/vitehub/references/primitives/email.md +11 -0
- package/dist/skills/vitehub/references/primitives/env.md +13 -0
- package/dist/skills/vitehub/references/primitives/kv.md +13 -0
- package/dist/skills/vitehub/references/primitives/markdown-template.md +13 -0
- package/dist/skills/vitehub/references/primitives/queue.md +14 -0
- package/dist/skills/vitehub/references/primitives/rate-limit.md +11 -0
- package/dist/skills/vitehub/references/primitives/realtime.md +19 -0
- package/dist/skills/vitehub/references/primitives/sandbox-task.md +11 -0
- package/dist/skills/vitehub/references/primitives/sandbox.md +13 -0
- package/dist/skills/vitehub/references/primitives/schedule.md +11 -0
- package/dist/skills/vitehub/references/primitives/shell.md +11 -0
- package/dist/skills/vitehub/references/primitives/source.md +11 -0
- package/dist/skills/vitehub/references/primitives/workflow.md +11 -0
- package/dist/skills/vitehub/references/primitives/workspace.md +11 -0
- package/dist/skills/vitehub/references/project-patterns.md +19 -0
- package/dist/skills/vitehub/references/project-shapes.md +81 -0
- package/dist/skills/vitehub/references/proof-recovery.md +31 -0
- package/dist/skills/vitehub/references/sandboxes-hosts.md +26 -0
- package/dist/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
- package/dist/skills/vitehub/references/server-primitives.md +39 -0
- package/dist/skills/vitehub/references/workspaces-sources-access.md +26 -0
- package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
- package/dist/skills.d.ts +1 -2
- package/dist/{skills.get-Bl8cBe8u.js → skills.get-DAooGWy5.js} +3 -4
- package/dist/skills.js +1 -2
- package/dist/{source-D4wWtoHh.js → source-DYFndd0W.js} +2 -3
- package/dist/{source-S-LChQvw.d.ts → source-DemBtwla.d.ts} +0 -2
- package/dist/{stored-Dhv2qsQv.js → stored-J3TetMKf.js} +1 -2
- package/dist/task/operations.d.ts +1 -5
- package/dist/task/operations.js +3 -4
- package/dist/test/register.js +2 -3
- package/dist/test.d.ts +0 -4
- package/dist/test.js +1 -2
- package/dist/{ticket-Pr_8ZtXW.d.ts → ticket-BFWwevWN.d.ts} +0 -2
- package/dist/{ticket-Cudn1dq3.js → ticket-BwsnryuU.js} +2 -3
- package/dist/{tickets-C_0Fhc00.js → tickets-Cj9_y3gw.js} +14 -16
- package/dist/ui/motion/core.d.ts +1 -0
- package/dist/ui/motion/core.js +2 -0
- package/dist/ui/motion.d.ts +1 -0
- package/dist/ui/motion.js +2 -0
- package/dist/ui/vite.js +1 -2
- package/dist/{usage-CoQXs5nW.d.ts → usage-BduF04ks.d.ts} +0 -2
- package/dist/{usage-B4taNt4a.js → usage-ZV3TBMzE.js} +6 -5
- package/dist/{usage-index-BsGAFzyq.js → usage-index-CR_xTrXO.js} +3 -4
- package/dist/{version-DNmSsk5r.js → version-CAhBr673.js} +59 -21
- package/dist/{vite-stage-mmtwQIMA.js → vite-stage-Dmo4RgnK.js} +32 -8
- package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
- package/dist/workspace/blob-database/postgres.d.ts +1 -0
- package/dist/workspace/blob-database/postgres.js +2 -0
- package/dist/{workspace-history-CraoERnc.js → workspace-history-B52xib2J.js} +3 -4
- package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
- package/package.json +190 -149
- package/dist/agents-BoWau_ei.js +0 -2
- package/dist/cli-config-UAGTmuFa.js +0 -2
- package/dist/console/runtime/server/page-session.d.ts +0 -2
- package/dist/console/runtime/server/page-session.js +0 -5
- package/dist/console-lazy-views-DXnIkdyd.js +0 -2
- package/dist/operations-CAQmIxGK.js +0 -2
- package/dist/project-C4N_Zcjl.js +0 -30
- package/dist/request-origin-Bq7mDQG9.js +0 -23
- package/dist/scan-module-D_3X08mj.js +0 -2
- package/dist/sections-CyrXbbkG.d.ts +0 -10
- package/dist/site-access-BbJUe5QI.js +0 -2
- /package/dist/{agent/channels.d.ts → channels/adapters.d.ts} +0 -0
- /package/dist/{agent/channels.js → channels/adapters.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/console/runtime/client/projects.ts
|
|
2
2
|
/**
|
|
3
3
|
* The projects that the Console page opens: the app of an embedded page, or the projects of the team that an `account`
|
|
4
4
|
* Console reads from its server. The page keeps them in memory.
|
|
@@ -150,5 +150,4 @@ function memoryProjectStorage() {
|
|
|
150
150
|
setItem: (key, value) => void values.set(key, value)
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
//#endregion
|
|
154
153
|
export { createConsoleProjectStore as a, consoleProjectsStorageKey as i, consoleProjectName as n, memoryProjectStorage as o, consoleProjectTarget as r, normalizeProjectUrl as s, consoleProjectHost as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/console/runtime/client/projects.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The projects that the Console page opens: the app of an embedded page, or the projects of the team that an `account`
|
|
4
3
|
* Console reads from its server. The page keeps them in memory.
|
|
@@ -62,5 +61,4 @@ interface ConsoleProjectStore {
|
|
|
62
61
|
declare function createConsoleProjectStore(storage: ConsoleProjectStorage): ConsoleProjectStore;
|
|
63
62
|
/** A storage that keeps the list in memory. The list ends with the page. */
|
|
64
63
|
declare function memoryProjectStorage(): ConsoleProjectStorage;
|
|
65
|
-
//#endregion
|
|
66
64
|
export { consoleProjectHost as a, consoleProjectsStorageKey as c, normalizeProjectUrl as d, ConsoleProjectTarget as i, createConsoleProjectStore as l, ConsoleProjectStorage as n, consoleProjectName as o, ConsoleProjectStore as r, consoleProjectTarget as s, ConsoleLinkedProject as t, memoryProjectStorage as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pathToFileURL } from "node:url";
|
|
2
|
-
|
|
2
|
+
// src/skills/registry.ts
|
|
3
3
|
/** Where the generated Nitro plugin leaves the loader of `server/skills.ts`, for the `served-skills.*` operations. */
|
|
4
4
|
const servedSkillsRegistryKey = "vitehub.skills.entry";
|
|
5
5
|
/**
|
|
@@ -14,5 +14,4 @@ function renderServedSkillsRegistryPlugin(entry) {
|
|
|
14
14
|
""
|
|
15
15
|
].join("\n");
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { servedSkillsRegistryKey as n, renderServedSkillsRegistryPlugin as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/task/registry.ts
|
|
2
2
|
/** Where the generated Nitro plugin leaves the task registry, for the `task.*` operations. */
|
|
3
3
|
const taskRegistryKey = "vitehub.task.registry";
|
|
4
4
|
/** The Nitro plugin that hands `#nitro/virtual/tasks` to the operations. It imports nothing from ViteHub. */
|
|
@@ -12,5 +12,4 @@ function renderTaskRegistryPlugin() {
|
|
|
12
12
|
""
|
|
13
13
|
].join("\n");
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { taskRegistryKey as n, renderTaskRegistryPlugin as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
1
|
+
import "./diagnostics-BXxPggRw.js";
|
|
2
|
+
import "./rpc-oijgKQtD.js";
|
|
3
3
|
import { ViteHubContext } from "@vite-hub/runtime";
|
|
4
4
|
import "h3";
|
|
5
|
-
//#region src/console/runtime/server/request.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* A Console request event: any value with Standard Context properties, such as the Request of a Console route or an
|
|
8
7
|
* H3 event in a ViteHub app. Console code reads the request, the response, the host lifetime, and the Cloudflare
|
|
@@ -17,5 +16,4 @@ type ConsoleRequestEvent = ViteHubContext<{
|
|
|
17
16
|
interface ConsoleRoute {
|
|
18
17
|
fetch(request: Request): Promise<Response>;
|
|
19
18
|
}
|
|
20
|
-
//#endregion
|
|
21
19
|
export { ConsoleRoute as n, ConsoleRequestEvent as t };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { r as ConsoleDiagnosticData } from "./diagnostics-BXxPggRw.js";
|
|
2
|
+
import { Diagnostic } from "nostics";
|
|
3
|
+
/** The diagnostic fields of a failed Console response. All are optional because the body is untrusted. */
|
|
4
|
+
interface ConsoleErrorFields {
|
|
5
|
+
code?: string;
|
|
6
|
+
docs?: string;
|
|
7
|
+
fix?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A failed Console or management response. `code` is the server code, or the Console code of the status when the
|
|
12
|
+
* response has none. `fix` and `docs` come from the server, or from the Console catalog for a Console code.
|
|
13
|
+
*/
|
|
14
|
+
declare class ConsoleRequestError extends Diagnostic {
|
|
15
|
+
readonly status: number;
|
|
16
|
+
/** Stable failure code of an owner action, such as `CONTENT_INVALID` or `WORKSPACE_CONFLICT`. */
|
|
17
|
+
readonly failureCode?: string;
|
|
18
|
+
/** JSON details of an owner action failure, such as per-field issues. */
|
|
19
|
+
readonly details?: Record<string, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* `fields` is the diagnostic body, or only its message. `failure` carries the code and JSON details of an owner
|
|
22
|
+
* action failure, which forms read to show field issues and conflicts.
|
|
23
|
+
*/
|
|
24
|
+
constructor(status: number, fields?: ConsoleErrorFields | string, failure?: {
|
|
25
|
+
code?: string;
|
|
26
|
+
details?: Record<string, unknown>;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/** Whether the project refused a Console request with `401`, such as a signature that it does not accept. */
|
|
30
|
+
declare function isConsoleSignInRequired(error: unknown): boolean;
|
|
31
|
+
/** Read the diagnostic fields of an untrusted error body. Accepts `{ code, message }` and `{ error: { code, message } }`. */
|
|
32
|
+
declare function consoleErrorFields(value: unknown): ConsoleErrorFields;
|
|
33
|
+
/** Read a failed response into a `ConsoleRequestError`. A short plain-text body, such as one from host middleware, becomes the why. */
|
|
34
|
+
declare function consoleResponseError(response: Response, fallback?: ConsoleErrorFields): Promise<ConsoleRequestError>;
|
|
35
|
+
/** The named operation and typed input of one Console route call. */
|
|
36
|
+
declare function consoleOperationCall(path: string, call: {
|
|
37
|
+
body?: unknown;
|
|
38
|
+
method: "GET" | "POST";
|
|
39
|
+
query: Record<string, string | string[]>;
|
|
40
|
+
}): {
|
|
41
|
+
input: Record<string, unknown>;
|
|
42
|
+
operation: string;
|
|
43
|
+
};
|
|
44
|
+
/** A fetch failure known to originate at the network boundary: `CONSOLE_UNAVAILABLE` with the message and cause of the fetch error. */
|
|
45
|
+
declare function consoleNetworkError(cause: unknown): Diagnostic<ConsoleDiagnosticData>;
|
|
46
|
+
declare function isRetryableConsoleRequestError(error: unknown): boolean;
|
|
47
|
+
declare function requestConsole(path: string, options?: {
|
|
48
|
+
body?: unknown;
|
|
49
|
+
method?: "GET" | "POST";
|
|
50
|
+
/** Let the request finish after the page unloads, such as a release sent on `pagehide`. */
|
|
51
|
+
keepalive?: boolean;
|
|
52
|
+
query?: Record<string, unknown>;
|
|
53
|
+
signal?: AbortSignal;
|
|
54
|
+
}): Promise<unknown>;
|
|
55
|
+
/** Call one named operation over the Console RPC of the project. */
|
|
56
|
+
declare function requestConsoleOperation(operation: string, input: Record<string, unknown>, options?: {
|
|
57
|
+
keepalive?: boolean;
|
|
58
|
+
path?: string;
|
|
59
|
+
signal?: AbortSignal;
|
|
60
|
+
}): Promise<unknown>;
|
|
61
|
+
declare function appendUniqueConsoleKeys(existing: string[], page: string[]): string[];
|
|
62
|
+
declare function loadConsoleKVPages(base: string, store: string, signal: AbortSignal, initial?: Record<string, unknown>, options?: {
|
|
63
|
+
limit?: number;
|
|
64
|
+
maxPages?: number;
|
|
65
|
+
prefix?: string;
|
|
66
|
+
}): Promise<{
|
|
67
|
+
pages: Record<string, unknown>[];
|
|
68
|
+
truncated: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
export { consoleNetworkError as a, isConsoleSignInRequired as c, requestConsole as d, requestConsoleOperation as f, consoleErrorFields as i, isRetryableConsoleRequestError as l, ConsoleRequestError as n, consoleOperationCall as o, appendUniqueConsoleKeys as r, consoleResponseError as s, ConsoleErrorFields as t, loadConsoleKVPages as u };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as consoleStatusDiagnosticCode, r as consoleDiagnosticBody, t as consoleDiagnostic } from "./diagnostics-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as consoleStatusDiagnosticCode, r as consoleDiagnosticBody, t as consoleDiagnostic } from "./diagnostics-B2cqlCSz.js";
|
|
2
|
+
import { t as consoleHttpError } from "./http-error-BorAxJYM.js";
|
|
3
|
+
import { i as isConsoleDevelopmentBuild } from "./development-DD567hhJ.js";
|
|
4
4
|
import { getStandardContext, installRequestStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
5
5
|
import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
|
|
6
|
-
|
|
6
|
+
// src/console/runtime/server/request.ts
|
|
7
7
|
function setConsoleResponseStatus(event, status) {
|
|
8
8
|
getStandardContext(event).res.status = status;
|
|
9
9
|
}
|
|
@@ -158,5 +158,4 @@ function consolePublicURL(request) {
|
|
|
158
158
|
}
|
|
159
159
|
return url;
|
|
160
160
|
}
|
|
161
|
-
//#endregion
|
|
162
161
|
export { consoleRequestJSON as a, isConsoleDevelopmentRuntime as c, consoleRequestError as i, setConsoleResponseStatus as l, consoleErrorResult as n, consoleRequestURL as o, consolePublicURL as r, consoleRoute as s, assertConsoleRequest as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
1
|
+
import { n as callOperationRpc } from "./operation-rpc-BMdfapja.js";
|
|
2
|
+
import { t as consoleRpcHeader } from "./rpc-D3tsx5lZ.js";
|
|
3
|
+
import { i as projectFetch } from "./project-DRC67Uiu.js";
|
|
4
|
+
import { a as isConsoleDiagnosticCode, i as consoleStatusDiagnosticCode, n as consoleDiagnosticAction, t as consoleDiagnostic } from "./diagnostics-B2cqlCSz.js";
|
|
5
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
6
6
|
import { Diagnostic } from "nostics";
|
|
7
|
-
|
|
7
|
+
// src/console/runtime/client/request.ts
|
|
8
8
|
const consoleApiMarker = "/_vitehub/api/";
|
|
9
9
|
function decodeConsoleId(value) {
|
|
10
10
|
try {
|
|
@@ -390,7 +390,7 @@ async function requestConsoleOperation(operation, input, options = {}) {
|
|
|
390
390
|
const outcome = await callOperationRpc(operation, input, async (body) => {
|
|
391
391
|
let response;
|
|
392
392
|
try {
|
|
393
|
-
response = await projectFetch(
|
|
393
|
+
response = await projectFetch(options.path ?? "/_vitehub/rpc", {
|
|
394
394
|
body,
|
|
395
395
|
cache: "no-store",
|
|
396
396
|
headers: {
|
|
@@ -469,5 +469,4 @@ async function loadConsoleKVPages(base, store, signal, initial, options = {}) {
|
|
|
469
469
|
truncated: hasMore
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
//#endregion
|
|
473
472
|
export { consoleOperationCall as a, isRetryableConsoleRequestError as c, requestConsoleOperation as d, consoleNetworkError as i, loadConsoleKVPages as l, appendUniqueConsoleKeys as n, consoleResponseError as o, consoleErrorFields as r, isConsoleSignInRequired as s, ConsoleRequestError as t, requestConsole as u };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// ../internal/src/runtime/request-origin.ts
|
|
2
|
+
function firstHeaderValue(headers, name) {
|
|
3
|
+
return headers.get(name)?.split(",", 1)[0]?.trim() || void 0;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The origin that the client used for `request`. A TLS-terminating proxy sends the client scheme in
|
|
7
|
+
* `X-Forwarded-Proto` and the client host in `X-Forwarded-Host`. Each proxy appends its value, so the first value wins.
|
|
8
|
+
* Without these headers, or with values that are not valid, the result is the origin of `request.url`.
|
|
9
|
+
*/
|
|
10
|
+
function forwardedRequestOrigin(request) {
|
|
11
|
+
const url = new URL(request.url);
|
|
12
|
+
const forwardedProtocol = firstHeaderValue(request.headers, "x-forwarded-proto")?.toLowerCase();
|
|
13
|
+
const protocol = forwardedProtocol === "http" || forwardedProtocol === "https" ? forwardedProtocol : url.protocol.slice(0, -1);
|
|
14
|
+
const host = firstHeaderValue(request.headers, "x-forwarded-host") ?? url.host;
|
|
15
|
+
if (/[\u0000-\u001F\s/\\?#@]/.test(host)) return url.origin;
|
|
16
|
+
try {
|
|
17
|
+
return new URL(`${protocol}://${host}`).origin;
|
|
18
|
+
} catch {
|
|
19
|
+
return url.origin;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Whether a request came in on one of the public `origins` of the app, such as the origin of `vitehub({ publicUrl })`.
|
|
24
|
+
* It compares the host that the client used, so a proxy that does not forward the scheme still matches. A loopback
|
|
25
|
+
* host, such as `localhost:3000` for a preview or a proxy that does not forward the host, also matches: it cannot be a
|
|
26
|
+
* second public hostname. Every request matches when `origins` is empty.
|
|
27
|
+
*/
|
|
28
|
+
function matchesPublicOrigin(request, origins) {
|
|
29
|
+
if (origins.length === 0) return true;
|
|
30
|
+
const { host, hostname } = new URL(forwardedRequestOrigin(request));
|
|
31
|
+
return isLoopbackHostname(hostname) || origins.some((origin) => new URL(origin).host === host);
|
|
32
|
+
}
|
|
33
|
+
/** `localhost`, `[::1]`, or an IPv4 address in `127.0.0.0/8`. URL parsing writes IPv4 addresses as four decimal parts. */
|
|
34
|
+
function isLoopbackHostname(hostname) {
|
|
35
|
+
return hostname === "localhost" || hostname === "[::1]" || /^127(?:\.\d{1,3}){3}$/.test(hostname);
|
|
36
|
+
}
|
|
37
|
+
export { matchesPublicOrigin as n, forwardedRequestOrigin as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
21
|
+
value: mod,
|
|
22
|
+
enumerable: true
|
|
23
|
+
}) : target, mod));
|
|
24
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
25
|
+
export { __require as n, __toESM as r, __commonJSMin as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "nostics";
|
|
2
2
|
import { inject, onBeforeUnmount, ref, watch } from "vue";
|
|
3
3
|
/*!
|
|
4
|
-
* vue-router v5.
|
|
4
|
+
* vue-router v5.5.1
|
|
5
5
|
* (c) 2026 Eduardo San Martin Morote
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
@@ -59,13 +59,13 @@ function useRouter() {
|
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Returns the current route location. Equivalent to using `$route` inside
|
|
62
|
-
* templates.
|
|
62
|
+
* templates. Inside a `<RouterView>` with a `route` prop, returns that route
|
|
63
|
+
* instead.
|
|
63
64
|
*/
|
|
64
65
|
function useRoute(_name) {
|
|
65
66
|
return inject(routeLocationKey);
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
-
//#region src/console/runtime/client/route-query.ts
|
|
68
|
+
// src/console/runtime/client/route-query.ts
|
|
69
69
|
/** The first text value of a query parameter. Empty and repeated-null values read as `undefined`. */
|
|
70
70
|
function consoleQueryText(value) {
|
|
71
71
|
const first = Array.isArray(value) ? value[0] : value;
|
|
@@ -218,5 +218,4 @@ function useConsoleQuery(params, options = {}) {
|
|
|
218
218
|
});
|
|
219
219
|
return refs;
|
|
220
220
|
}
|
|
221
|
-
//#endregion
|
|
222
221
|
export { querySelection as a, useConsoleQuery as c, queryInteger as i, writeConsoleQuery as l, queryChoice as n, queryText as o, queryFlag as r, readConsoleQuery as s, consoleQueryText as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Message } from "@vite-hub/agent";
|
|
2
|
-
//#region src/console/runtime/rpc.d.ts
|
|
3
2
|
declare const consoleRpcHeader = "x-vitehub-console";
|
|
4
3
|
interface ConsoleAgentInvocationInput {
|
|
5
4
|
attachments?: Array<{
|
|
@@ -33,5 +32,4 @@ type ConsoleRpcResult = {
|
|
|
33
32
|
ok: false;
|
|
34
33
|
status: number;
|
|
35
34
|
};
|
|
36
|
-
//#endregion
|
|
37
35
|
export { ConsoleRpcResult as n, consoleRpcHeader as r, ConsoleAgentInvocationInput as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as isSkillSettings } from "./skills-C1MaGEbO.js";
|
|
2
|
+
import { n as servedSkillsRegistryKey } from "./registry-B8JE5NY-.js";
|
|
3
3
|
import { defineErrors } from "@vite-hub/runtime";
|
|
4
|
-
|
|
4
|
+
// src/skills/runtime.ts
|
|
5
5
|
const servedSkillsErrors = /*#__PURE__*/ defineErrors({
|
|
6
6
|
docs: "https://vitehub.dev/docs/development/diagnostics",
|
|
7
7
|
codes: {
|
|
@@ -61,5 +61,4 @@ async function setServedSkill(name, enabled) {
|
|
|
61
61
|
if (error) throw withStatus(error, error.code === "SKILL_NOT_FOUND" ? 404 : 503);
|
|
62
62
|
return summary(state.skill, state.enabled);
|
|
63
63
|
}
|
|
64
|
-
//#endregion
|
|
65
64
|
export { listServedSkills, setServedSkill };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as getCacheEntry, r as listCacheEntries, t as deleteCacheEntries } from "./entries-
|
|
1
|
+
import { n as getCacheEntry, r as listCacheEntries, t as deleteCacheEntries } from "./entries-UFs9n1MB.js";
|
|
2
2
|
import { useStorage } from "nitro/storage";
|
|
3
|
-
|
|
3
|
+
// src/cache/runtime.ts
|
|
4
4
|
/** Nitro's `cache` mount, where `defineCachedFunction()` and `defineCachedHandler()` keep their entries. */
|
|
5
5
|
const storage = () => useStorage("cache");
|
|
6
6
|
const listCache = (input) => listCacheEntries(storage(), input);
|
|
7
7
|
const getCache = (input) => getCacheEntry(storage(), input);
|
|
8
8
|
const deleteCache = (input) => deleteCacheEntries(storage(), input);
|
|
9
|
-
//#endregion
|
|
10
9
|
export { deleteCache, getCache, listCache };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//#region src/console/runtime/server/runtime.d.ts
|
|
2
1
|
/** The generated plugin calls this at startup. `load` imports the runtime and returns its synchronous installer. */
|
|
3
2
|
declare function installConsoleRuntime(load: () => Promise<() => void>): void;
|
|
4
3
|
/** Load the Console runtime once. Without an installed runtime, there is nothing to load. */
|
|
5
4
|
declare function loadConsoleRuntime(): Promise<void>;
|
|
6
|
-
//#endregion
|
|
7
5
|
export { loadConsoleRuntime as n, installConsoleRuntime as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as installOperationRegistryLoader } from "./operation-registry-
|
|
2
|
-
|
|
1
|
+
import { n as installOperationRegistryLoader } from "./operation-registry-DfQbL7vE.js";
|
|
2
|
+
// src/console/runtime/server/runtime.ts
|
|
3
3
|
const runtimeKey = Symbol.for("vitehub.console.runtime");
|
|
4
4
|
const scope = globalThis;
|
|
5
5
|
/** The generated plugin calls this at startup. `load` imports the runtime and returns its synchronous installer. */
|
|
@@ -21,5 +21,4 @@ async function loadConsoleRuntime() {
|
|
|
21
21
|
if (scope[runtimeKey] === state) return;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { loadConsoleRuntime as n, installConsoleRuntime as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as taskRegistryKey } from "./registry-
|
|
1
|
+
import { n as redactInspectionText } from "./inspect-CWwAuL-B.js";
|
|
2
|
+
import { r as isRecordOrFunction } from "./object-DRSmpe04.js";
|
|
3
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
4
|
+
import { n as taskRegistryKey } from "./registry-CnPC-gNu.js";
|
|
5
5
|
import { runTask } from "nitro/task";
|
|
6
|
-
|
|
6
|
+
// src/task/runtime.ts
|
|
7
7
|
/** The HTTP status that every surface reports for a task failure. */
|
|
8
8
|
function withStatus(error, status) {
|
|
9
9
|
return Object.assign(error, { status });
|
|
@@ -51,5 +51,4 @@ async function runNamedTask(name, payload = {}) {
|
|
|
51
51
|
}), 500);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { listTasks, runNamedTask };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as importOptionalOwner } from "./optional-owners-DAfShdgV.js";
|
|
2
|
+
import { join, resolve } from "node:path";
|
|
2
3
|
import { existsSync } from "node:fs";
|
|
3
4
|
import { readFile } from "node:fs/promises";
|
|
4
|
-
|
|
5
|
+
// src/internal/runtime-feature-guard.ts
|
|
5
6
|
const configExtensions = [
|
|
6
7
|
"js",
|
|
7
8
|
"mjs",
|
|
@@ -11,7 +12,7 @@ const configExtensions = [
|
|
|
11
12
|
"cts"
|
|
12
13
|
];
|
|
13
14
|
/** The config scanner parses with `vite`. A production install can leave out that optional peer. */
|
|
14
|
-
async function loadConfigScanner(load = () => import("./scan-module-
|
|
15
|
+
async function loadConfigScanner(load = () => import("./scan-module-B1A24jqP.js")) {
|
|
15
16
|
try {
|
|
16
17
|
return await load();
|
|
17
18
|
} catch (error) {
|
|
@@ -19,10 +20,6 @@ async function loadConfigScanner(load = () => import("./scan-module-D_3X08mj.js"
|
|
|
19
20
|
throw error;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
/**
|
|
23
|
-
* The literal `vitehub()` options and `vitehub: {}` keys of a config file, read without evaluating it. Undefined without
|
|
24
|
-
* a config file, or without `vite` to parse it.
|
|
25
|
-
*/
|
|
26
23
|
async function viteHubOptionObjects(rootDir, loadScanner = loadConfigScanner) {
|
|
27
24
|
const owner = configExtensions.some((extension) => existsSync(join(rootDir, `nuxt.config.${extension}`))) ? "nuxt" : "vite";
|
|
28
25
|
const file = configExtensions.map((extension) => join(rootDir, `${owner}.config.${extension}`)).find((path) => existsSync(path));
|
|
@@ -84,7 +81,8 @@ async function viteHubOptionObjects(rootDir, loadScanner = loadConfigScanner) {
|
|
|
84
81
|
return {
|
|
85
82
|
active,
|
|
86
83
|
options,
|
|
87
|
-
scan
|
|
84
|
+
scan,
|
|
85
|
+
...owner === "nuxt" && config ? { nuxtConfig: config } : {}
|
|
88
86
|
};
|
|
89
87
|
}
|
|
90
88
|
/**
|
|
@@ -104,6 +102,16 @@ async function isAgentCliEnabled(rootDir, loadScanner = loadConfigScanner) {
|
|
|
104
102
|
});
|
|
105
103
|
}
|
|
106
104
|
/**
|
|
105
|
+
* Whether `vitehub agent emulator` runs without loading the project. It does when the command names its emulator, with
|
|
106
|
+
* `--url` or `VITEHUB_EMULATE_URL`, or asks for help, or when the directory has no Vite or Nuxt config. Otherwise the
|
|
107
|
+
* project loads, so the command finds the dev server under the configured Vite `root` and respects `agent.cli: false`.
|
|
108
|
+
*/
|
|
109
|
+
function isAgentEmulatorStandalone(args, env, cwd) {
|
|
110
|
+
if (env.VITEHUB_EMULATE_URL) return true;
|
|
111
|
+
if (args.some((arg) => arg === "--url" || arg.startsWith("--url=") || arg === "--help" || arg === "-h")) return true;
|
|
112
|
+
return !["nuxt", "vite"].some((owner) => configExtensions.some((extension) => existsSync(join(cwd, `${owner}.config.${extension}`))));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
107
115
|
* The `file:` Agent State URL that the default Invocation journal goes next to, as `agentJournalStateUrl()` selects it
|
|
108
116
|
* from the evaluated options. Reads only literal values: a computed value, a spread, or a `dataDir` gives undefined, and
|
|
109
117
|
* the CLI keeps its default journal.
|
|
@@ -136,5 +144,78 @@ async function readAgentJournalStateUrl(rootDir, env) {
|
|
|
136
144
|
const url = staticString(findProperty(state, "url")?.value)?.trim();
|
|
137
145
|
return url && /^file:/i.test(url) ? url : void 0;
|
|
138
146
|
}
|
|
139
|
-
|
|
140
|
-
|
|
147
|
+
/**
|
|
148
|
+
* The Postgres default Database where a Node production build keeps the default Invocation journal, as
|
|
149
|
+
* `defaultJournalDatabase()` selects it, with the connection that the runtime uses. Reads only literal config values.
|
|
150
|
+
* Undefined when the journal is elsewhere, or when the Database runs on PGlite, which only the dev server opens.
|
|
151
|
+
*/
|
|
152
|
+
async function readAgentJournalPostgres(rootDir, env) {
|
|
153
|
+
const config = await viteHubOptionObjects(rootDir);
|
|
154
|
+
const options = config?.active;
|
|
155
|
+
if (!config || !options) return;
|
|
156
|
+
const { findProperty, objectProperties, staticString, staticValue } = config.scan;
|
|
157
|
+
const literalObject = (node) => node?.type === "ObjectExpression" && objectProperties(node).every((property) => property.key !== void 0) ? node : void 0;
|
|
158
|
+
if (findProperty(options, "dataDir")) return;
|
|
159
|
+
const nuxt = config.nuxtConfig;
|
|
160
|
+
if (nuxt && ([
|
|
161
|
+
"rootDir",
|
|
162
|
+
"srcDir",
|
|
163
|
+
"serverDir"
|
|
164
|
+
].some((key) => findProperty(nuxt, key)) || existsSync(join(rootDir, "layers")))) return;
|
|
165
|
+
const host = findProperty(options, "host")?.value;
|
|
166
|
+
const configuredHost = host === void 0 ? void 0 : staticString(host);
|
|
167
|
+
if (host !== void 0 && configuredHost === void 0) return;
|
|
168
|
+
if (configuredHost !== void 0 && configuredHost !== "node" && configuredHost !== "vercel" && configuredHost !== "netlify" && configuredHost !== "cloudflare" && configuredHost !== "deno") return;
|
|
169
|
+
const { hostFromNitroPreset, resolveBuildHost } = await import("./deployment-l7RuKdEp.js");
|
|
170
|
+
const nitro = nuxt && findProperty(nuxt, "nitro")?.value;
|
|
171
|
+
const nitroOptions = literalObject(nitro);
|
|
172
|
+
if (configuredHost === void 0 && nitro !== void 0 && !nitroOptions) return;
|
|
173
|
+
const preset = nitroOptions && findProperty(nitroOptions, "preset")?.value;
|
|
174
|
+
const configuredPreset = staticString(preset);
|
|
175
|
+
if (configuredHost === void 0 && preset !== void 0 && configuredPreset === void 0) return;
|
|
176
|
+
if (resolveBuildHost(configuredHost ?? hostFromNitroPreset(configuredPreset), env) !== "node") return;
|
|
177
|
+
const agent = findProperty(options, "agent")?.value;
|
|
178
|
+
const agentOptions = literalObject(agent);
|
|
179
|
+
if (agent !== void 0 && staticValue(agent) !== true && !agentOptions) return;
|
|
180
|
+
if (agent === void 0) {
|
|
181
|
+
const { hasDefinitionFiles } = await import("./definition-catalog-M5ua7JRS.js");
|
|
182
|
+
const { features } = await import("./features-CD5i5I8V.js");
|
|
183
|
+
if (!features.agent.enabledByDiscovery?.some((name) => hasDefinitionFiles(join(rootDir, "server", name)))) return;
|
|
184
|
+
}
|
|
185
|
+
const invocations = agentOptions && findProperty(agentOptions, "invocations")?.value;
|
|
186
|
+
if (invocations !== void 0 && staticValue(invocations) !== true) {
|
|
187
|
+
const setting = literalObject(invocations);
|
|
188
|
+
if (!setting || findProperty(setting, "store") || findProperty(setting, "databaseUrl")) return;
|
|
189
|
+
}
|
|
190
|
+
const database = findProperty(options, "database")?.value;
|
|
191
|
+
if (database === void 0) return;
|
|
192
|
+
const databaseOptions = staticValue(database) === true ? void 0 : literalObject(database);
|
|
193
|
+
if (staticValue(database) !== true && !databaseOptions) return;
|
|
194
|
+
const projectRootValue = databaseOptions && findProperty(databaseOptions, "projectRoot")?.value;
|
|
195
|
+
const projectRoot = projectRootValue ? staticString(projectRootValue) : void 0;
|
|
196
|
+
if (projectRootValue && projectRoot === void 0) return;
|
|
197
|
+
const owner = await importOptionalOwner("@vite-hub/database", () => import("@vite-hub/database/config"));
|
|
198
|
+
if (!owner) return;
|
|
199
|
+
const root = resolve(rootDir, projectRoot ?? ".");
|
|
200
|
+
let resolved;
|
|
201
|
+
try {
|
|
202
|
+
resolved = owner.resolveDBViteConfig(void 0, root, {
|
|
203
|
+
implicitDefault: true,
|
|
204
|
+
provisionState: {},
|
|
205
|
+
...projectRoot === void 0 ? {} : { serverDirs: [resolve(root, "server")] }
|
|
206
|
+
});
|
|
207
|
+
} catch {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const target = resolved?.databases.default;
|
|
211
|
+
if (target?.dialect !== "postgresql" || target.driver === "pglite") return;
|
|
212
|
+
const definition = resolved?.definitions.find((item) => item.name === "default");
|
|
213
|
+
if (definition && !owner.readDatabaseDefinitionConnectionIsStatic(definition.handler)) return;
|
|
214
|
+
const url = owner.resolveConfigValue(target.connection?.url, { ...env })?.trim();
|
|
215
|
+
if (!url && !Object.entries(env).some(([name, value]) => name.startsWith("PG") && value?.trim())) return;
|
|
216
|
+
return {
|
|
217
|
+
...target.driver === "node-postgres" ? { driver: target.driver } : {},
|
|
218
|
+
...url ? { url } : {}
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export { isAgentCliEnabled, isAgentEmulatorStandalone, readAgentJournalPostgres, readAgentJournalStateUrl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as argumentExpression, n as defaultExportExpression, r as dynamic, i as exportNames, a as findCalls, o as findDefaultExportCall, s as findProperty, c as maskLiterals, l as moduleTokens, u as nodeText, d as objectProperties, f as scanModule, p as staticString, m as staticValue, h as templateExpressionSources, g as unwrapExpression, v as walk } from "./scan-module-BfZvDBxb.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseSync } from "vite";
|
|
2
|
-
|
|
2
|
+
// ../internal/src/build/ast-walk.ts
|
|
3
3
|
/** The oxc parser grammar for a file, from its extension. Defaults to TypeScript. */
|
|
4
4
|
function moduleLanguage(file) {
|
|
5
5
|
if (/\.(?:c|m)?tsx$/i.test(file)) return "tsx";
|
|
@@ -22,8 +22,7 @@ function walk(node, visit, parent) {
|
|
|
22
22
|
} else if (isNode(child)) walk(child, visit, node);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
//#region ../internal/src/build/scan-module.ts
|
|
25
|
+
// ../internal/src/build/scan-module.ts
|
|
27
26
|
/**
|
|
28
27
|
* Reads facts from JavaScript and TypeScript modules at build and dev time. The scanner parses each module once with
|
|
29
28
|
* the oxc parser that Vite ships through Rolldown, and never runs it. Values that are not static literals read as
|
|
@@ -307,5 +306,4 @@ function templateExpressionSources(template) {
|
|
|
307
306
|
if (literal.type !== "TemplateLiteral") return [];
|
|
308
307
|
return literal.expressions.map((_node, index) => module.source.slice(literal.quasis[index]?.end ?? 0, literal.quasis[index + 1]?.start ?? 0));
|
|
309
308
|
}
|
|
310
|
-
//#endregion
|
|
311
309
|
export { moduleLanguage as _, findCalls as a, maskLiterals as c, objectProperties as d, scanModule as f, unwrapExpression as g, templateExpressionSources as h, exportNames as i, moduleTokens as l, staticValue as m, defaultExportExpression as n, findDefaultExportCall as o, staticString as p, dynamic as r, findProperty as s, argumentExpression as t, nodeText as u, walk as v };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/console/runtime/client/schema-form.d.ts
|
|
2
1
|
/** One invalid field value at a field path, as an owner validator reports it, such as Content's `CONTENT_INVALID`. */
|
|
3
2
|
interface ConsoleFieldIssue {
|
|
4
3
|
field?: string;
|
|
@@ -75,5 +74,4 @@ declare function humanizeConsoleFieldIssues(fields: readonly ConsoleSchemaField[
|
|
|
75
74
|
* owner validators still run on save and stay the source of truth.
|
|
76
75
|
*/
|
|
77
76
|
declare function consoleFieldValueIssue(field: ConsoleSchemaField, value: unknown): string | undefined;
|
|
78
|
-
//#endregion
|
|
79
77
|
export { consoleFieldIssueMessage as a, consoleItemTitle as c, consoleValueParts as d, consoleValueSummary as f, humanizeConsoleFieldIssues as h, compactConsoleFieldValues as i, consoleSchemaDefaults as l, groupConsoleFieldIssues as m, ConsoleSchemaField as n, consoleFieldLabel as o, describeConsoleSchemaFields as p, ConsoleSchemaFieldKind as r, consoleFieldValueIssue as s, ConsoleFieldIssue as t, consoleSchemaItemValue as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as internalErrorDiagnostics } from "./error-diagnostics-kKXseq8d.js";
|
|
2
|
+
// ../internal/src/secret.ts
|
|
3
3
|
const secretEncoder = new TextEncoder();
|
|
4
4
|
/**
|
|
5
5
|
* Compares a request value with an expected secret in constant time for the length of `expected`. Returns `false`
|
|
@@ -40,5 +40,4 @@ async function deriveViteHubSecret(root, purpose) {
|
|
|
40
40
|
}, key, 256));
|
|
41
41
|
}
|
|
42
42
|
Object.freeze({ prefix: "sha256=" });
|
|
43
|
-
//#endregion
|
|
44
43
|
export { isViteHubSecretEqual as n, readViteHubSecret as r, deriveViteHubSecret as t };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
//#region ../internal/src/features.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The feature keys of `vitehub({...})`. `vitehub add <feature>` and `vitehub status` read this list before the owner
|
|
4
3
|
* package of a feature is installed, so the catalog is plain data with no owner imports.
|
|
5
4
|
*/
|
|
6
5
|
declare const featureIds: readonly ["agent", "auth", "blob", "browser", "cache", "channels", "comments", "connections", "console", "database", "email", "env", "i18n", "kv", "mcp", "observability", "queue", "rateLimit", "realtime", "sandboxTask", "schedule", "workflow", "workspace"];
|
|
7
6
|
type FeatureId = (typeof featureIds)[number];
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/console/runtime/sections.d.ts
|
|
10
7
|
/** Sections that the Console UI in `vite-hub` renders with its own components. Owner packages contribute the others. */
|
|
11
8
|
declare const consoleBuiltinSectionIds: readonly ["env", "agents", "skills", "usage", "channels", "mcp-client", "logs", "blob", "databases", "kv", "cache", "site", "setup"];
|
|
12
9
|
/**
|
|
@@ -154,5 +151,4 @@ declare function resolveConsoleSectionIds(options: {
|
|
|
154
151
|
declare function prioritizeConsoleSectionIds(sections: readonly ConsoleSectionId[], preferred: ConsoleSectionId | undefined): ConsoleSectionId[];
|
|
155
152
|
declare function readLastConsoleSection(storage?: ConsoleSectionStorage): ConsoleSectionId | undefined;
|
|
156
153
|
declare function rememberConsoleSection(section: ConsoleSectionId, storage?: ConsoleSectionStorage): void;
|
|
157
|
-
//#endregion
|
|
158
154
|
export { rememberConsoleSection as A, groupConsoleSections as C, isConsoleSectionId as D, isConsoleMcpClientEnabled as E, resolveConsoleSectionGroup as M, resolveConsoleSectionIds as N, prioritizeConsoleSectionIds as O, describeConsoleSectionRoutes as S, isConsoleBuiltinSectionId as T, consoleSectionPageSegment as _, ConsoleSectionId as a, consoleSectionShortcutKeys as b, consoleDocsBase as c, consoleOverviewShortcut as d, consolePrimitives as f, consoleSectionPageRouteName as g, consoleSectionGroupLabels as h, ConsoleSectionGroupId as i, resolveConsoleSectionDocs as j, readLastConsoleSection as k, consoleGoToKey as l, consoleSectionGroupIds as m, ConsolePrimitive as n, ConsoleSectionRoute as o, consoleSectionDetails as p, ConsoleSectionDetails as r, consoleBuiltinSectionIds as s, ConsoleBuiltinSectionId as t, consoleGuide as u, consoleSectionRouteName as v, insertConsoleSection as w, consoleToolSectionIds as x, consoleSectionShortcut as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as consoleState } from "./internal-
|
|
2
|
-
|
|
1
|
+
import { n as consoleState } from "./internal-0C_CC601.js";
|
|
2
|
+
// src/console/runtime/server/sections.ts
|
|
3
3
|
function getConsoleSections() {
|
|
4
4
|
return consoleState().sections ?? [];
|
|
5
5
|
}
|
|
@@ -9,5 +9,4 @@ function getConsoleProjectName() {
|
|
|
9
9
|
function getConsoleBuild() {
|
|
10
10
|
return consoleState().build;
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { getConsoleProjectName as n, getConsoleSections as r, getConsoleBuild as t };
|