vite-hub 0.5.0 → 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/dist/_internal/runtime/browser-errors.d.ts +0 -2
- package/dist/_internal/runtime/browser-errors.js +3 -4
- 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 +1 -2
- package/dist/_internal/runtime/request-policy.js +2 -3
- package/dist/_internal/runtime/security.d.ts +1 -2
- package/dist/_internal/runtime/security.js +1 -2
- package/dist/{access-BC9HtX_M.js → access-BBHk9b5P.js} +12 -15
- package/dist/{access-policy-CVZg9LPR.js → access-policy-BM48XstY.js} +5 -6
- package/dist/{access-policy-DhsEACna.d.ts → access-policy-CUbJLvlR.d.ts} +4 -8
- package/dist/{account-Cjj-tYzo.d.ts → account-CoAO1F8G.d.ts} +5 -7
- package/dist/{agent-invocations.post-C3Onl2yH.js → agent-invocations.post-BAC1aHnG.js} +14 -17
- package/dist/agents-BClUWOj7.js +1 -0
- package/dist/{agents-B76RICcy.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-GFIN6xSJ.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-D3ugQ8xM.d.ts → auth-types-B4mq4YhK.d.ts} +0 -4
- package/dist/bin.js +8 -11
- package/dist/blob/nuxt-image.js +1 -2
- package/dist/{blob-iVewd7KQ.d.ts → blob-_TtxDb-t.d.ts} +1 -3
- package/dist/{blob-BcgsZtqM.js → blob-eH6j0AQj.js} +5 -6
- package/dist/{browser-error-limits-CToqAD-O.js → browser-error-limits-B0yS95zt.js} +2 -4
- 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/{cli-config-FPHk1nbC.js → cli-config-BX8H4ZCo.js} +2 -3
- package/dist/cli-config-DgpmE_7z.js +1 -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 +29 -45
- 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 +3 -4
- 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 +1 -1
- 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 +1 -1
- 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 +40 -12
- package/dist/console/runtime/client/site-access.js +152 -32
- 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-home.vue +9 -7
- 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 +7 -2
- 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-hosted-comments-embed.vue +106 -0
- package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
- package/dist/console/runtime/components/console-mcp-items.vue +3 -16
- package/dist/console/runtime/components/console-site.vue +10 -8
- 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 +7 -0
- 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 +22 -21
- package/dist/console/runtime/page-tool/account.js +26 -0
- package/dist/console/runtime/page-tool/page-tool.js +2 -2
- 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 +5 -6
- 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 +5 -5
- package/dist/console/runtime/server/page-tools-route.d.ts +1 -1
- package/dist/console/runtime/server/page-tools-route.js +2 -3
- 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 +4 -4
- package/dist/console/runtime/server/setup.js +4 -4
- package/dist/console/runtime/server/site-entry.d.ts +1 -3
- package/dist/console/runtime/server/site-entry.js +9 -10
- package/dist/console/runtime/server/site-session.d.ts +3 -4
- 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 +14 -27
- package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
- package/dist/{console-route-CM2G5hiC.js → console-route-DbdnLkkF.js} +2 -3
- package/dist/console.d.ts +1 -3
- package/dist/console.js +1 -2
- package/dist/{database-DC67Ipm-.d.ts → database-CPjZ3L0g.d.ts} +1 -3
- package/dist/{database-UMJgnU2z.js → database-CrgBUdIx.js} +3 -4
- package/dist/{definition-catalog-BUcclwSH.js → definition-catalog-1xPPtzOx.js} +3 -4
- 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-DTytrw42.js → definitions-M7i2p8SR.js} +5 -6
- package/dist/{deployment-BUshgN5Q.js → deployment-CURATxjG.js} +2 -3
- package/dist/deployment-l7RuKdEp.js +1 -0
- package/dist/{dev-peer-CHjyHYG6.js → dev-peer-DBq-isgi.js} +3 -5
- package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
- package/dist/{development-RnopiRwK.d.ts → development-I40mfD7B.d.ts} +1 -3
- package/dist/{diagnostics-DtR0TAmq.js → diagnostics-B2cqlCSz.js} +2 -2
- 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 +11492 -12152
- package/dist/{documents-BewAPY61.js → documents-BOYwZ5g4.js} +7 -8
- package/dist/{documents-B4R4JSfH.js → documents-Ck_iub9w.js} +4 -5
- package/dist/{documents-BASIRZ91.d.ts → documents-DxK0tdjA.d.ts} +3 -5
- package/dist/{documents-BDR0AkYR.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/{entries-DbyNPLC9.js → entries-UFs9n1MB.js} +2 -3
- package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
- package/dist/{error-diagnostics-B1yAIaSn.js → error-diagnostics-CBtvqI30.js} +2 -7
- package/dist/{error-diagnostics-C0KyI408.js → error-diagnostics-kKXseq8d.js} +5 -2
- package/dist/error-diagnostics.ts +1 -7
- package/dist/{features-CC5OcZqJ.js → features-BXRKlmtN.js} +5 -6
- package/dist/features-CD5i5I8V.js +1 -0
- package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
- package/dist/{github-login-Bi3bfjRX.js → github-login-W-vaahWP.js} +1 -2
- 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 +1 -7
- package/dist/index.js +5 -7
- package/dist/{inspect-DbZuP_7b.js → inspect-CWwAuL-B.js} +2 -3
- 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-Cc9N0shU.d.ts → internal-CKocv79I.d.ts} +3 -7
- package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
- package/dist/{invocation-page-undo-DqYcPlkQ.js → invocation-page-undo-BEi-rO0Q.js} +4 -5
- package/dist/{invocations-6jxqLkGY.js → invocations-8NThe8Bx.js} +5 -6
- package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
- package/dist/logs/client.d.ts +1 -3
- package/dist/logs/client.js +1 -2
- 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-C91h8Taa.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-D3OfyKni.js → media-CAKz9yrp.js} +8 -9
- package/dist/{media-library-o8RRsnn_.js → media-library-BDX89xXA.js} +5 -6
- package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
- package/dist/{memory-C54SDH_l.js → memory-D3EJS_Bp.js} +3 -4
- package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
- package/dist/{nuxt-server-auto-imports-cfTZYvgy.js → nuxt-server-auto-imports-4aT5BD4u.js} +1 -2
- package/dist/{nuxt-server-imports-75bWMeXc.js → nuxt-server-imports-BdJqiVhT.js} +1 -2
- package/dist/nuxt.d.ts +1 -3
- package/dist/nuxt.js +184 -130
- package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
- package/dist/{operation-contributions-CrdmqtJW.d.ts → operation-contributions-BCcQVlGb.d.ts} +1 -3
- package/dist/{operation-contributions-C3lwePQu.js → operation-contributions-D10pjkJF.js} +4 -5
- package/dist/{operation-definition-DxjKcCGm.js → operation-definition-DTpNvLd8.js} +5 -8
- 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-CFYGXqLm.js → operations-CD_mu_Ww.js} +4 -5
- package/dist/operations-D7ENc68Y.js +1 -0
- package/dist/{operations-TTjL_7Zc.d.ts → operations-DgFhA1WE.d.ts} +0 -4
- package/dist/{operations-ChEXk2ij.js → operations-vRLiH7dh.js} +15 -16
- package/dist/{optional-owners-O6sj4uoj.js → optional-owners-DAfShdgV.js} +4 -5
- package/dist/{out-fRNaVslw.js → out-Cw5Tvr92.js} +2933 -2301
- package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
- package/dist/page/pill.iife.js +2 -2
- package/dist/{page-tool-PmxH65gt.d.ts → page-tool-BUnUbuSy.d.ts} +4 -6
- package/dist/{page-tools-ClgqElu-.js → page-tools-BQzwuAHD.js} +5 -7
- package/dist/{page-tools-DcCCtDKi.d.ts → page-tools-UwsfvH-B.d.ts} +0 -2
- package/dist/{page-tools-shared-aNC9YtoI.js → page-tools-shared-hJcG_xk8.js} +2 -2
- package/dist/{pathe.M-eThtNZ-J4gfe1m9.js → pathe.M-eThtNZ-D4EC7Wue.js} +1 -2
- package/dist/{plugins-DoXnU6-s.d.ts → plugins-BpiTVULl.d.ts} +3 -101
- package/dist/{plugins-BTZQaFtZ.js → plugins-H6-MQrsn.js} +1544 -1087
- package/dist/presets/workspace.js +1 -2
- package/dist/{project-DXZRZEPX.js → project-BxyyclTE.js} +8 -9
- package/dist/{project-Dgyq1F1V.d.ts → project-DKBIHOf4.d.ts} +3 -7
- package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
- package/dist/{project-link-DT99MoyU.js → project-link-CeS0T8Pr.js} +7 -8
- package/dist/{project-link-bNS-KROO.d.ts → project-link-isfdRO3Q.d.ts} +2 -4
- 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-SBLxvpyr.d.ts → request-CJCPyu2B.d.ts} +2 -3
- package/dist/{request-CMA2UKKq.js → request-CQ8TkHLh.js} +4 -5
- package/dist/{request-Cs0FqxEL.js → request-Cl68STwT.js} +7 -8
- package/dist/{request-origin-COUkgHd6.js → request-origin-pzWr9UUu.js} +1 -2
- package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-DegdyBIC.js} +2 -3
- 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-B-46Bawt.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-CX_l_78I.js → runtime-F0CTqBFx.js} +5 -6
- package/dist/{runtime-feature-guard-CuyPVGj9.js → runtime-feature-guard-DpUn4Oxc.js} +6 -7
- 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-DELGKpCJ.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-BKUReack.js → sections-HLxb9MrG.js} +14 -7
- package/dist/{sections.get-H46e2urg.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-W0c79AYZ.js → server-DsOEa4_A.js} +3 -4
- package/dist/{setup-BC0P3eZy.d.ts → setup-Ca7jtBLS.d.ts} +4 -6
- package/dist/{setup-DNGzawFn.js → setup-DQz_i-ee.js} +3 -4
- package/dist/{site-access-L1qbvKt6.js → site-access-1JIQjY11.js} +8 -9
- 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-CRwgKtTF.js → site-session-D36fr7Wf.js} +8 -11
- package/dist/skills/operations.d.ts +1 -5
- package/dist/skills/operations.js +4 -5
- package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
- package/dist/skills.d.ts +1 -2
- package/dist/{skills.get-CRd06TTb.js → skills.get-DAooGWy5.js} +3 -4
- package/dist/skills.js +1 -2
- package/dist/{source-Cw3iYvJF.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-DtBAstEU.js → ticket-BwsnryuU.js} +2 -3
- package/dist/{tickets-DahBmKDT.js → tickets-Cj9_y3gw.js} +10 -11
- package/dist/ui/vite.js +1 -2
- package/dist/{usage-CoQXs5nW.d.ts → usage-BduF04ks.d.ts} +0 -2
- package/dist/{usage-jKtAgJZ0.js → usage-ZV3TBMzE.js} +3 -4
- package/dist/{usage-index-VJAZ7a0p.js → usage-index-CR_xTrXO.js} +3 -4
- package/dist/{version-dkga9imp.js → version-CAhBr673.js} +13 -16
- package/dist/{vite-stage-D7fe614I.js → vite-stage-Dmo4RgnK.js} +3 -5
- package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
- package/dist/{workspace-history-B95Q-kGI.js → workspace-history-B52xib2J.js} +3 -4
- package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
- package/package.json +144 -144
- package/dist/agents-BhFggA26.js +0 -2
- package/dist/cli-config-g_mbWdjT.js +0 -2
- package/dist/console-lazy-views-DXnIkdyd.js +0 -2
- package/dist/definition-catalog-og_1razf.js +0 -2
- package/dist/deployment-C2B0hBBj.js +0 -2
- package/dist/features-ujWsvlEH.js +0 -2
- package/dist/operations-5Lwd1xEI.js +0 -2
- package/dist/scan-module-D_3X08mj.js +0 -2
- package/dist/sections-CFiMNsqu.d.ts +0 -10
- package/dist/site-access-CAiWyKOD.js +0 -2
|
@@ -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 };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as ConsoleDiagnosticData } from "./diagnostics-
|
|
1
|
+
import { r as ConsoleDiagnosticData } from "./diagnostics-BXxPggRw.js";
|
|
2
2
|
import { Diagnostic } from "nostics";
|
|
3
|
-
//#region src/console/runtime/client/request.d.ts
|
|
4
3
|
/** The diagnostic fields of a failed Console response. All are optional because the body is untrusted. */
|
|
5
4
|
interface ConsoleErrorFields {
|
|
6
5
|
code?: string;
|
|
@@ -56,6 +55,7 @@ declare function requestConsole(path: string, options?: {
|
|
|
56
55
|
/** Call one named operation over the Console RPC of the project. */
|
|
57
56
|
declare function requestConsoleOperation(operation: string, input: Record<string, unknown>, options?: {
|
|
58
57
|
keepalive?: boolean;
|
|
58
|
+
path?: string;
|
|
59
59
|
signal?: AbortSignal;
|
|
60
60
|
}): Promise<unknown>;
|
|
61
61
|
declare function appendUniqueConsoleKeys(existing: string[], page: string[]): string[];
|
|
@@ -67,5 +67,4 @@ declare function loadConsoleKVPages(base: string, store: string, signal: AbortSi
|
|
|
67
67
|
pages: Record<string, unknown>[];
|
|
68
68
|
truncated: boolean;
|
|
69
69
|
}>;
|
|
70
|
-
//#endregion
|
|
71
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../internal/src/runtime/request-origin.ts
|
|
2
2
|
function firstHeaderValue(headers, name) {
|
|
3
3
|
return headers.get(name)?.split(",", 1)[0]?.trim() || void 0;
|
|
4
4
|
}
|
|
@@ -34,5 +34,4 @@ function matchesPublicOrigin(request, origins) {
|
|
|
34
34
|
function isLoopbackHostname(hostname) {
|
|
35
35
|
return hostname === "localhost" || hostname === "[::1]" || /^127(?:\.\d{1,3}){3}$/.test(hostname);
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
export { matchesPublicOrigin as n, forwardedRequestOrigin as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -22,5 +22,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
enumerable: true
|
|
23
23
|
}) : target, mod));
|
|
24
24
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
25
|
-
//#endregion
|
|
26
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 {
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { i as importOptionalOwner } from "./optional-owners-
|
|
1
|
+
import { i as importOptionalOwner } from "./optional-owners-DAfShdgV.js";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
|
-
|
|
5
|
+
// src/internal/runtime-feature-guard.ts
|
|
6
6
|
const configExtensions = [
|
|
7
7
|
"js",
|
|
8
8
|
"mjs",
|
|
@@ -12,7 +12,7 @@ const configExtensions = [
|
|
|
12
12
|
"cts"
|
|
13
13
|
];
|
|
14
14
|
/** The config scanner parses with `vite`. A production install can leave out that optional peer. */
|
|
15
|
-
async function loadConfigScanner(load = () => import("./scan-module-
|
|
15
|
+
async function loadConfigScanner(load = () => import("./scan-module-B1A24jqP.js")) {
|
|
16
16
|
try {
|
|
17
17
|
return await load();
|
|
18
18
|
} catch (error) {
|
|
@@ -166,7 +166,7 @@ async function readAgentJournalPostgres(rootDir, env) {
|
|
|
166
166
|
const configuredHost = host === void 0 ? void 0 : staticString(host);
|
|
167
167
|
if (host !== void 0 && configuredHost === void 0) return;
|
|
168
168
|
if (configuredHost !== void 0 && configuredHost !== "node" && configuredHost !== "vercel" && configuredHost !== "netlify" && configuredHost !== "cloudflare" && configuredHost !== "deno") return;
|
|
169
|
-
const { hostFromNitroPreset, resolveBuildHost } = await import("./deployment-
|
|
169
|
+
const { hostFromNitroPreset, resolveBuildHost } = await import("./deployment-l7RuKdEp.js");
|
|
170
170
|
const nitro = nuxt && findProperty(nuxt, "nitro")?.value;
|
|
171
171
|
const nitroOptions = literalObject(nitro);
|
|
172
172
|
if (configuredHost === void 0 && nitro !== void 0 && !nitroOptions) return;
|
|
@@ -178,8 +178,8 @@ async function readAgentJournalPostgres(rootDir, env) {
|
|
|
178
178
|
const agentOptions = literalObject(agent);
|
|
179
179
|
if (agent !== void 0 && staticValue(agent) !== true && !agentOptions) return;
|
|
180
180
|
if (agent === void 0) {
|
|
181
|
-
const { hasDefinitionFiles } = await import("./definition-catalog-
|
|
182
|
-
const { features } = await import("./features-
|
|
181
|
+
const { hasDefinitionFiles } = await import("./definition-catalog-M5ua7JRS.js");
|
|
182
|
+
const { features } = await import("./features-CD5i5I8V.js");
|
|
183
183
|
if (!features.agent.enabledByDiscovery?.some((name) => hasDefinitionFiles(join(rootDir, "server", name)))) return;
|
|
184
184
|
}
|
|
185
185
|
const invocations = agentOptions && findProperty(agentOptions, "invocations")?.value;
|
|
@@ -218,5 +218,4 @@ async function readAgentJournalPostgres(rootDir, env) {
|
|
|
218
218
|
...url ? { url } : {}
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
//#endregion
|
|
222
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 { t as internalErrorDiagnostics } from "./error-diagnostics-
|
|
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 };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as ConsoleContributedSection } from "./definitions-
|
|
2
|
-
import { a as ConsoleSectionId, r as ConsoleSectionDetails } from "./sections-
|
|
3
|
-
import { a as RouteLocationRaw, o as RouteRecordRaw, r as RouteLocationNormalized, s as Router } from "./vue-router-
|
|
4
|
-
//#region src/console/runtime/client/sections.d.ts
|
|
1
|
+
import { t as ConsoleContributedSection } from "./definitions-ChvMnA1L.js";
|
|
2
|
+
import { a as ConsoleSectionId, r as ConsoleSectionDetails } from "./sections-0qrBvGbf.js";
|
|
3
|
+
import { a as RouteLocationRaw, o as RouteRecordRaw, r as RouteLocationNormalized, s as Router } from "./vue-router-plZJLlpm.js";
|
|
5
4
|
interface ConsoleNavigation {
|
|
6
5
|
/** Descriptors of the installed sections that owner packages contribute, keyed by section id. */
|
|
7
6
|
contributions: Readonly<Record<ConsoleSectionId, ConsoleContributedSection>>;
|
|
@@ -28,7 +27,7 @@ declare function loadConsoleNavigation(base: string): Promise<ConsoleNavigation
|
|
|
28
27
|
* `sections.list` call. A newer answer, such as the answer of this visit after a stored one, replaces it, and the
|
|
29
28
|
* subscribers get it when it changed.
|
|
30
29
|
*/
|
|
31
|
-
declare function seedConsoleNavigation(base: string,
|
|
30
|
+
declare function seedConsoleNavigation(base: string, answer: ConsoleNavigation): void;
|
|
32
31
|
/**
|
|
33
32
|
* Drop the navigation of `base` that a `project.get` answer gave, such as a stored one, when a newer answer has none.
|
|
34
33
|
* The sections come from `sections.list` again, and the subscribers get them.
|
|
@@ -53,5 +52,4 @@ declare const consolePendingSectionRoute: RouteRecordRaw & {
|
|
|
53
52
|
* sends the navigation to the real route, or to the Overview when the path is still unknown.
|
|
54
53
|
*/
|
|
55
54
|
declare function resolveConsoleSectionDeepLink(router: Router, to: RouteLocationNormalized, addSectionRoutes: () => Promise<void>): Promise<RouteLocationRaw | undefined>;
|
|
56
|
-
//#endregion
|
|
57
55
|
export { createConsoleSectionLoader as a, parseConsoleNavigation as c, resolveConsoleSectionDetails as d, seedConsoleNavigation as f, consoleSectionsPath as i, reloadConsoleNavigation as l, consoleNavigationError as n, isConsoleSectionRevoked as o, subscribeConsoleNavigation as p, consolePendingSectionRoute as r, loadConsoleNavigation as s, ConsoleNavigation as t, resolveConsoleSectionDeepLink as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/console/runtime/sections.ts
|
|
2
2
|
/** Sections that the Console UI in `vite-hub` renders with its own components. Owner packages contribute the others. */
|
|
3
3
|
const consoleBuiltinSectionIds = [
|
|
4
4
|
"env",
|
|
@@ -364,5 +364,4 @@ function rememberConsoleSection(section, storage) {
|
|
|
364
364
|
(storage ?? globalThis.localStorage)?.setItem(lastConsoleSectionStorageKey, section);
|
|
365
365
|
} catch {}
|
|
366
366
|
}
|
|
367
|
-
//#endregion
|
|
368
367
|
export { readLastConsoleSection as C, resolveConsoleSectionIds as D, resolveConsoleSectionGroup as E, prioritizeConsoleSectionIds as S, resolveConsoleSectionDocs as T, groupConsoleSections as _, consoleOverviewShortcut as a, isConsoleMcpClientEnabled as b, consoleSectionGroupIds as c, consoleSectionPageSegment as d, consoleSectionRouteName as f, describeConsoleSectionRoutes as g, consoleToolSectionIds as h, consoleGuide as i, consoleSectionGroupLabels as l, consoleSectionShortcutKeys as m, consoleDocsBase as n, consolePrimitives as o, consoleSectionShortcut as p, consoleGoToKey as r, consoleSectionDetails as s, consoleBuiltinSectionIds as t, consoleSectionPageRouteName as u, insertConsoleSection as v, rememberConsoleSection as w, isConsoleSectionId as x, isConsoleBuiltinSectionId as y };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as ConsoleProjectBuild } from "./project-DKBIHOf4.js";
|
|
2
|
+
import { a as ConsoleSectionId } from "./sections-0qrBvGbf.js";
|
|
3
|
+
import "./access-policy-CUbJLvlR.js";
|
|
4
|
+
import "./setup-Ca7jtBLS.js";
|
|
5
|
+
declare function getConsoleSections(): readonly ConsoleSectionId[];
|
|
6
|
+
declare function getConsoleProjectName(): string | undefined;
|
|
7
|
+
declare function getConsoleBuild(): ConsoleProjectBuild | undefined;
|
|
8
|
+
export { getConsoleProjectName as n, getConsoleSections as r, getConsoleBuild as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as parseConsoleContributedSection } from "./definitions-
|
|
2
|
-
import { f as consoleSectionRouteName, s as consoleSectionDetails, x as isConsoleSectionId, y as isConsoleBuiltinSectionId } from "./sections-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { t as parseConsoleContributedSection } from "./definitions-BFYqXchw.js";
|
|
2
|
+
import { f as consoleSectionRouteName, s as consoleSectionDetails, v as insertConsoleSection, x as isConsoleSectionId, y as isConsoleBuiltinSectionId } from "./sections-BiCOk9qP.js";
|
|
3
|
+
import { t as consoleProject } from "./project-DRC67Uiu.js";
|
|
4
|
+
import { u as requestConsole } from "./request-Cl68STwT.js";
|
|
5
|
+
// src/console/runtime/client/sections.ts
|
|
5
6
|
/** The Console path of `sections.list`. Views pass it as `sectionsBase`, and the navigation cache keys on it. */
|
|
6
7
|
const consoleSectionsPath = "/_vitehub/api/sections";
|
|
7
8
|
const navigationRequests = /* @__PURE__ */ new Map();
|
|
@@ -38,12 +39,18 @@ function resolveConsoleSectionDetails(navigation, section) {
|
|
|
38
39
|
routeName: consoleSectionRouteName(section)
|
|
39
40
|
} : void 0;
|
|
40
41
|
}
|
|
42
|
+
function withConsoleServerSections(navigation) {
|
|
43
|
+
return consoleProject().remote ? {
|
|
44
|
+
...navigation,
|
|
45
|
+
sections: insertConsoleSection(navigation.sections, "mcp-client")
|
|
46
|
+
} : navigation;
|
|
47
|
+
}
|
|
41
48
|
async function loadConsoleNavigation(base) {
|
|
42
49
|
let request = navigationRequests.get(base);
|
|
43
50
|
if (!request) {
|
|
44
51
|
request = requestConsole(base).then((value) => {
|
|
45
52
|
navigationErrors.delete(base);
|
|
46
|
-
const navigation = parseConsoleNavigation(value);
|
|
53
|
+
const navigation = withConsoleServerSections(parseConsoleNavigation(value));
|
|
47
54
|
navigationValues.set(base, navigation);
|
|
48
55
|
for (const subscriber of navigationSubscribers.get(base) || []) subscriber(navigation);
|
|
49
56
|
return navigation;
|
|
@@ -60,7 +67,8 @@ async function loadConsoleNavigation(base) {
|
|
|
60
67
|
* `sections.list` call. A newer answer, such as the answer of this visit after a stored one, replaces it, and the
|
|
61
68
|
* subscribers get it when it changed.
|
|
62
69
|
*/
|
|
63
|
-
function seedConsoleNavigation(base,
|
|
70
|
+
function seedConsoleNavigation(base, answer) {
|
|
71
|
+
const navigation = withConsoleServerSections(answer);
|
|
64
72
|
const known = navigationValues.get(base);
|
|
65
73
|
navigationErrors.delete(base);
|
|
66
74
|
navigationRequests.set(base, Promise.resolve(navigation));
|
|
@@ -118,5 +126,4 @@ async function resolveConsoleSectionDeepLink(router, to, addSectionRoutes) {
|
|
|
118
126
|
await addSectionRoutes();
|
|
119
127
|
return router.resolve(to.fullPath).name === consolePendingSectionRoute.name ? { name: "vitehub-console" } : to.fullPath;
|
|
120
128
|
}
|
|
121
|
-
//#endregion
|
|
122
129
|
export { isConsoleSectionRevoked as a, reloadConsoleNavigation as c, seedConsoleNavigation as d, subscribeConsoleNavigation as f, createConsoleSectionLoader as i, resolveConsoleSectionDeepLink as l, consolePendingSectionRoute as n, loadConsoleNavigation as o, consoleSectionsPath as r, parseConsoleNavigation as s, consoleNavigationError as t, resolveConsoleSectionDetails as u };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
//#region src/console/runtime/server/sections.get.d.ts
|
|
1
|
+
import { o as ConsoleAccess } from "./access-policy-CUbJLvlR.js";
|
|
2
|
+
import { t as ConsoleContributedSection } from "./definitions-ChvMnA1L.js";
|
|
4
3
|
interface ConsoleSectionsResponse {
|
|
5
4
|
contributions?: readonly ConsoleContributedSection[];
|
|
6
5
|
/** The registered operations that run app code (`console.invoke`) and that this request may run. The pages hide the others. */
|
|
@@ -16,5 +15,4 @@ interface ConsoleSectionsResponse {
|
|
|
16
15
|
}
|
|
17
16
|
/** The sections that this access may use. The client hides the others. Each operation still checks its own section. */
|
|
18
17
|
declare function listConsoleSections(access: ConsoleAccess): Promise<ConsoleSectionsResponse>;
|
|
19
|
-
//#endregion
|
|
20
18
|
export { listConsoleSections as n, ConsoleSectionsResponse as t };
|
package/dist/seo/runtime.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as SitemapEntries } from "../seo-
|
|
2
|
-
//#region ../internal/src/sitemap.d.ts
|
|
1
|
+
import { t as SitemapEntries } from "../seo-CgW5uI9L.js";
|
|
3
2
|
/** One URL of a sitemap. */
|
|
4
3
|
interface SitemapUrl {
|
|
5
4
|
/** The absolute URL of the page. */
|
|
@@ -7,8 +6,6 @@ interface SitemapUrl {
|
|
|
7
6
|
/** When the page last changed, as an ISO timestamp. */
|
|
8
7
|
lastmod?: string;
|
|
9
8
|
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/seo/runtime.d.ts
|
|
12
9
|
/** The part of a Content runtime, the default export of `server/content.ts`, that the sitemap and robots.txt read. */
|
|
13
10
|
export interface SeoContent {
|
|
14
11
|
readonly seo?: {
|
|
@@ -61,4 +58,4 @@ export declare function defineRobotsRoute(options: {
|
|
|
61
58
|
disallow: readonly string[];
|
|
62
59
|
content?: () => Promise<SeoContent>;
|
|
63
60
|
}): Fetchable;
|
|
64
|
-
|
|
61
|
+
export {};
|
package/dist/seo/runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../error-diagnostics-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../error-diagnostics-CBtvqI30.js";
|
|
2
2
|
import { getStandardContext } from "@vite-hub/runtime";
|
|
3
|
-
|
|
3
|
+
// ../internal/src/sitemap.ts
|
|
4
4
|
/** One sitemap file holds at most this many URLs. */
|
|
5
5
|
const sitemapUrlLimit = 5e4;
|
|
6
6
|
function escapeXml(value) {
|
|
@@ -39,8 +39,7 @@ function renderRobots(options) {
|
|
|
39
39
|
if (options.sitemap) lines.push("", `Sitemap: ${options.sitemap}`);
|
|
40
40
|
return `${lines.join("\n")}\n`;
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
//#region src/seo/runtime.ts
|
|
42
|
+
// src/seo/runtime.ts
|
|
44
43
|
function siteOf(options, request) {
|
|
45
44
|
return `${options.site ?? new URL(request.url).origin}${options.base.replace(/\/+$/, "")}`;
|
|
46
45
|
}
|
|
@@ -119,5 +118,4 @@ function defineRobotsRoute(options) {
|
|
|
119
118
|
}), { headers: { "content-type": "text/plain; charset=utf-8" } });
|
|
120
119
|
} };
|
|
121
120
|
}
|
|
122
|
-
//#endregion
|
|
123
121
|
export { defineRobotsRoute, defineSitemapRoute };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/seo.d.ts
|
|
2
1
|
/** One page that `server/sitemap.ts` adds to `/sitemap.xml`. */
|
|
3
2
|
interface SitemapEntry {
|
|
4
3
|
/** The page path, such as `/blog/hello`, or an absolute `http(s)` URL. A path starts after the app base. */
|
|
@@ -20,5 +19,4 @@ type SitemapEntries = readonly SitemapEntry[] | (() => readonly SitemapEntry[] |
|
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
declare function defineSitemap(entries: SitemapEntries): SitemapEntries;
|
|
23
|
-
//#endregion
|
|
24
22
|
export { SitemapEntry as n, defineSitemap as r, SitemapEntries as t };
|