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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { u as requestConsole } from "../../../request-Cl68STwT.js";
|
|
2
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
3
|
+
// src/console/runtime/client/workflow.ts
|
|
4
4
|
function record(value) {
|
|
5
5
|
return value instanceof Object && !Array.isArray(value) ? Object.fromEntries(Object.entries(value)) : void 0;
|
|
6
6
|
}
|
|
@@ -75,5 +75,4 @@ async function resumeConsoleWorkflow(base, token, payload) {
|
|
|
75
75
|
method: "POST"
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
//#endregion
|
|
79
78
|
export { cancelConsoleWorkflow, isConsoleWorkflowRunActive, parseConsoleWorkflowPayload, parseConsoleWorkflowRun, readConsoleWorkflow, resumeConsoleWorkflow, startConsoleWorkflow };
|
|
@@ -87,7 +87,7 @@ function reportedName(app: ConsoleAccountProject): string {
|
|
|
87
87
|
* the page tools. Anyone of the team can share it: it holds no secret.
|
|
88
88
|
*/
|
|
89
89
|
function siteEntry(app: ConsoleAccountProject): string {
|
|
90
|
-
return `${app.url.replace(/\/+$/, "")}/_vitehub`;
|
|
90
|
+
return app.publicKey === null ? app.url : `${app.url.replace(/\/+$/, "")}/_vitehub`;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
const toast = useConsoleToast();
|
|
@@ -100,16 +100,17 @@ async function copySiteEntry(app: ConsoleAccountProject): Promise<void> {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
function appActions(app: ConsoleAccountProject): DropdownMenuItem[][] {
|
|
103
|
-
const copy: DropdownMenuItem = { icon: "i-lucide-copy", label: "Copy the /_vitehub link", onSelect: () => void copySiteEntry(app) };
|
|
103
|
+
const copy: DropdownMenuItem = { icon: "i-lucide-copy", label: app.publicKey === null ? "Copy site URL" : "Copy the /_vitehub link", onSelect: () => void copySiteEntry(app) };
|
|
104
104
|
return [[copy], ...(manage.value ? [[{ icon: "i-lucide-pencil", label: "Rename app", onSelect: () => askRename(app) }], [{ icon: "i-lucide-unlink", label: "Unlink app", color: "error" as const, onSelect: () => askUnlink(app) }]] : [])];
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
const url = ref("");
|
|
108
|
+
const commentsOnly = shallowRef(false);
|
|
108
109
|
const busy = ref(false);
|
|
109
110
|
const problem = ref<string>();
|
|
110
111
|
|
|
111
112
|
const linked = computed(() => apps.value.length > 0);
|
|
112
|
-
const connected = computed(() => apps.value.some(app => props.status[app.id] === "connected"));
|
|
113
|
+
const connected = computed(() => apps.value.some(app => app.publicKey === null || props.status[app.id] === "connected"));
|
|
113
114
|
const checking = computed(() => apps.value.some(app => props.status[app.id] === "checking"));
|
|
114
115
|
// The app that step 3 opens: one that is not connected and not still being checked.
|
|
115
116
|
const setupApp = computed(() => apps.value.find(app => ["setup", "unconfigured", "unreachable"].includes(props.status[app.id] ?? "checking")));
|
|
@@ -171,7 +172,7 @@ async function link(): Promise<void> {
|
|
|
171
172
|
busy.value = true;
|
|
172
173
|
problem.value = undefined;
|
|
173
174
|
try {
|
|
174
|
-
await linkAccountProject(url.value);
|
|
175
|
+
await linkAccountProject(url.value, undefined, commentsOnly.value ? "site" : undefined);
|
|
175
176
|
}
|
|
176
177
|
catch (error) {
|
|
177
178
|
problem.value = error instanceof Error ? error.message : "Try again.";
|
|
@@ -304,16 +305,17 @@ async function link(): Promise<void> {
|
|
|
304
305
|
<div class="vitehub-account-step__body">
|
|
305
306
|
<h3 class="vitehub-account-step__title"><span class="sr-only">{{ stepLabel(1, steps[1].done) }} </span>Link an app</h3>
|
|
306
307
|
<p v-if="!steps[1].done" class="vitehub-account-step__text">
|
|
307
|
-
<template v-if="manage">Enable Console access, deploy your app, then enter its URL
|
|
308
|
+
<template v-if="manage">{{ commentsOnly ? "Enter the URL of the site you want to review." : "Enable Console access, deploy your app, then enter its URL." }}</template>
|
|
308
309
|
<template v-else>Only owners and admins of {{ teamName }} link apps. Ask one of them to link yours.</template>
|
|
309
310
|
</p>
|
|
310
311
|
<template v-if="active === 'link' && manage">
|
|
311
|
-
<ConsoleAccountSnippet class="vitehub-account-step__wide" />
|
|
312
|
+
<ConsoleAccountSnippet v-if="!commentsOnly" class="vitehub-account-step__wide" />
|
|
312
313
|
<form class="vitehub-account-step__wide grid gap-1.5" @submit.prevent="link">
|
|
313
314
|
<div class="flex flex-wrap gap-2">
|
|
314
315
|
<UInput v-model="url" type="url" inputmode="url" autocomplete="url" placeholder="https://app.example.com" aria-label="App URL" required :aria-invalid="problem ? true : undefined" :aria-describedby="problem ? 'vitehub-home-link-problem' : undefined" class="min-w-0 flex-1 basis-56" />
|
|
315
|
-
<UButton type="submit" icon="i-lucide-link" label="Link app" class="justify-center max-sm:w-full" :loading="busy" />
|
|
316
|
+
<UButton type="submit" icon="i-lucide-link" :label="commentsOnly ? 'Register site' : 'Link app'" class="justify-center max-sm:w-full" :loading="busy" />
|
|
316
317
|
</div>
|
|
318
|
+
<UCheckbox v-model="commentsOnly" label="Hosted Comments only" />
|
|
317
319
|
<p v-if="problem" id="vitehub-home-link-problem" role="alert" class="text-[13px] text-error">{{ problem }}</p>
|
|
318
320
|
</form>
|
|
319
321
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, watch } from "vue";
|
|
2
|
+
import { ref, shallowRef, watch } from "vue";
|
|
3
3
|
|
|
4
4
|
import { linkAccountProject } from "../client/project-session";
|
|
5
5
|
import ConsoleAccountSnippet from "./console-account-snippet.vue";
|
|
@@ -13,6 +13,7 @@ const open = defineModel<boolean>("open", { required: true });
|
|
|
13
13
|
const props = defineProps<{ url?: string }>();
|
|
14
14
|
const url = ref("");
|
|
15
15
|
const label = ref("");
|
|
16
|
+
const commentsOnly = shallowRef(false);
|
|
16
17
|
const busy = ref(false);
|
|
17
18
|
const problem = ref<string>();
|
|
18
19
|
|
|
@@ -23,6 +24,7 @@ watch(open, (value) => {
|
|
|
23
24
|
}
|
|
24
25
|
url.value = "";
|
|
25
26
|
label.value = "";
|
|
27
|
+
commentsOnly.value = false;
|
|
26
28
|
problem.value = undefined;
|
|
27
29
|
busy.value = false;
|
|
28
30
|
});
|
|
@@ -32,7 +34,7 @@ async function link(): Promise<void> {
|
|
|
32
34
|
busy.value = true;
|
|
33
35
|
problem.value = undefined;
|
|
34
36
|
try {
|
|
35
|
-
await linkAccountProject(url.value, label.value);
|
|
37
|
+
await linkAccountProject(url.value, label.value, commentsOnly.value ? "site" : undefined);
|
|
36
38
|
}
|
|
37
39
|
catch (error) {
|
|
38
40
|
problem.value = error instanceof Error ? error.message : "Try again.";
|
|
@@ -42,10 +44,11 @@ async function link(): Promise<void> {
|
|
|
42
44
|
</script>
|
|
43
45
|
|
|
44
46
|
<template>
|
|
45
|
-
<UModal v-model:open="open" title="Link an app" description="
|
|
47
|
+
<UModal v-model:open="open" title="Link an app" description="Enter the URL of your deployed app or site." :ui="{ content: 'sm:max-w-[440px]' }">
|
|
46
48
|
<template #body>
|
|
47
49
|
<form id="vitehub-account-link" class="grid gap-4" @submit.prevent="link">
|
|
48
|
-
<
|
|
50
|
+
<UCheckbox v-model="commentsOnly" label="Hosted Comments only" description="Use a browser script to add page review." />
|
|
51
|
+
<ConsoleAccountSnippet v-if="!commentsOnly" />
|
|
49
52
|
<UFormField label="App URL" name="url" required :error="problem" :ui="{ error: problem ? undefined : 'mt-0' }">
|
|
50
53
|
<!-- Nuxt UI renders the error without a live region, so the message announces itself here. -->
|
|
51
54
|
<template #error="{ error }">
|
|
@@ -61,7 +64,7 @@ async function link(): Promise<void> {
|
|
|
61
64
|
<template #footer>
|
|
62
65
|
<div class="flex w-full justify-end gap-2">
|
|
63
66
|
<UButton color="neutral" variant="ghost" label="Cancel" @click="open = false" />
|
|
64
|
-
<UButton type="submit" form="vitehub-account-link" label="Link app" :loading="busy" />
|
|
67
|
+
<UButton type="submit" form="vitehub-account-link" :label="commentsOnly ? 'Register site' : 'Link app'" :loading="busy" />
|
|
65
68
|
</div>
|
|
66
69
|
</template>
|
|
67
70
|
</UModal>
|
|
@@ -8,11 +8,8 @@ import { openAccountProject } from "../client/project-session";
|
|
|
8
8
|
import { consoleProjectHost } from "../client/projects";
|
|
9
9
|
import { useConsoleToast } from "../client/toast";
|
|
10
10
|
import ConsoleAccountUnlink from "./console-account-unlink.vue";
|
|
11
|
+
import ConsoleHostedCommentsEmbed from "./console-hosted-comments-embed.vue";
|
|
11
12
|
|
|
12
|
-
/**
|
|
13
|
-
* The step after linking an app to an `account` Console: the app must keep the public key of the link. The page shows
|
|
14
|
-
* the line to set, and asks the Console server to check the app again.
|
|
15
|
-
*/
|
|
16
13
|
const props = defineProps<{ project: ConsoleAccountProject }>();
|
|
17
14
|
const emit = defineEmits<{ checked: [status: ConsoleAccountAppStatus] }>();
|
|
18
15
|
|
|
@@ -48,7 +45,14 @@ async function check(): Promise<void> {
|
|
|
48
45
|
</script>
|
|
49
46
|
|
|
50
47
|
<template>
|
|
51
|
-
<div class="grid max-w-2xl gap-6">
|
|
48
|
+
<div v-if="project.publicKey === null" class="grid max-w-2xl gap-6">
|
|
49
|
+
<ConsoleHostedCommentsEmbed :project-id="project.id" />
|
|
50
|
+
<div class="flex flex-wrap gap-2">
|
|
51
|
+
<UButton icon="i-lucide-external-link" label="Open site" :to="`${project.url}?vitehub`" target="_blank" rel="noopener" />
|
|
52
|
+
<UButton color="neutral" variant="ghost" icon="i-lucide-unlink" :label="`Unlink ${name}`" @click="unlinking = true" />
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div v-else class="grid max-w-2xl gap-6">
|
|
52
56
|
<p class="text-sm text-pretty text-muted">
|
|
53
57
|
{{ host }} needs <code class="rounded-sm bg-elevated px-1 py-px font-mono text-[0.9em] whitespace-nowrap text-highlighted">console: true</code> in its config.
|
|
54
58
|
Then add this environment variable to its deployment settings, redeploy, and check the connection.
|
|
@@ -76,7 +80,6 @@ async function check(): Promise<void> {
|
|
|
76
80
|
</div>
|
|
77
81
|
<p role="status" class="text-[13px] leading-5 text-muted">{{ result }}</p>
|
|
78
82
|
</div>
|
|
79
|
-
|
|
80
|
-
<ConsoleAccountUnlink v-model:open="unlinking" :project-id="project.id" :name="name" />
|
|
81
83
|
</div>
|
|
84
|
+
<ConsoleAccountUnlink v-model:open="unlinking" :project-id="project.id" :name="name" />
|
|
82
85
|
</template>
|
|
@@ -70,7 +70,7 @@ const title = computed(() => {
|
|
|
70
70
|
if (page.value === "env") return "Env values";
|
|
71
71
|
if (page.value === "settings") return "Account settings";
|
|
72
72
|
if (page.value === "home") return "Apps";
|
|
73
|
-
if (gate.value.kind === "setup") return `Connect ${appName(gate.value.project)}`;
|
|
73
|
+
if (gate.value.kind === "setup") return gate.value.project.publicKey === null ? appName(gate.value.project) : `Connect ${appName(gate.value.project)}`;
|
|
74
74
|
return projects.current.value ? appName(projects.current.value) : "App";
|
|
75
75
|
});
|
|
76
76
|
|
|
@@ -122,6 +122,10 @@ function intent(target: LazyPage): void {
|
|
|
122
122
|
// The server calls each app with its token. A linked app answers, and an app without the variable refuses it. The
|
|
123
123
|
// device keeps each answer, so the names of the apps show in the first frame of the next visit.
|
|
124
124
|
for (const app of apps.value) {
|
|
125
|
+
if (app.publicKey === null) {
|
|
126
|
+
status[app.id] = "site";
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
125
129
|
status[app.id] = "checking";
|
|
126
130
|
const check = useStoredData(consoleAppCheckKey(app.id), () => checkConsoleAccountProject(app.id));
|
|
127
131
|
if (check.storedAt.value && check.data.value) {
|
|
@@ -283,7 +287,8 @@ async function retry(): Promise<void> {
|
|
|
283
287
|
box-shadow: inset 0 0 0 1px var(--muted-foreground);
|
|
284
288
|
}
|
|
285
289
|
|
|
286
|
-
.vitehub-account-shell__dot[data-status="connected"]
|
|
290
|
+
.vitehub-account-shell__dot[data-status="connected"],
|
|
291
|
+
.vitehub-account-shell__dot[data-status="site"] {
|
|
287
292
|
background: var(--ui-success);
|
|
288
293
|
}
|
|
289
294
|
|
|
@@ -3,7 +3,6 @@ import { ref, watch } from "vue";
|
|
|
3
3
|
|
|
4
4
|
import { forgetConsoleProject } from "../client/project-session";
|
|
5
5
|
|
|
6
|
-
/** Asks before an app leaves the team. The app keeps its variable, but the token behind it stops working. */
|
|
7
6
|
const props = defineProps<{ projectId: string, name: string }>();
|
|
8
7
|
const open = defineModel<boolean>("open", { required: true });
|
|
9
8
|
|
|
@@ -34,7 +33,7 @@ async function unlink(): Promise<void> {
|
|
|
34
33
|
<UModal
|
|
35
34
|
v-model:open="open"
|
|
36
35
|
:title="`Unlink ${name}?`"
|
|
37
|
-
description="The
|
|
36
|
+
description="The link key stops working. Hosted comment threads and replies for this app are permanently deleted."
|
|
38
37
|
:dismissible="!busy"
|
|
39
38
|
:close="{ disabled: busy }"
|
|
40
39
|
:ui="{ content: 'sm:max-w-[440px]' }"
|
|
@@ -45,7 +44,7 @@ async function unlink(): Promise<void> {
|
|
|
45
44
|
<template #footer>
|
|
46
45
|
<div class="flex w-full justify-end gap-2">
|
|
47
46
|
<UButton color="neutral" variant="ghost" label="Cancel" :disabled="busy" @click="open = false" />
|
|
48
|
-
<UButton color="error"
|
|
47
|
+
<UButton color="error" label="Unlink and delete comments" :loading="busy" @click="unlink" />
|
|
49
48
|
</div>
|
|
50
49
|
</template>
|
|
51
50
|
</UModal>
|
|
@@ -12,6 +12,7 @@ import { loadConsoleNavigation, resolveConsoleSectionDetails, subscribeConsoleNa
|
|
|
12
12
|
import { consoleAddPrimitiveOpen } from "../client/sidebar";
|
|
13
13
|
import { resolveConsoleRouteName } from "../console-route";
|
|
14
14
|
import ConsoleAccountUnlink from "./console-account-unlink.vue";
|
|
15
|
+
import ConsoleHostedCommentsEmbed from "./console-hosted-comments-embed.vue";
|
|
15
16
|
import ConsoleAppLogo from "./console-app-logo.vue";
|
|
16
17
|
import ConsolePageHeader from "./console-page-header.vue";
|
|
17
18
|
import ConsoleSectionIcon from "./console-section-icon.vue";
|
|
@@ -85,6 +86,7 @@ const statusTones: Record<ConsoleAccountAppStatus, StatusTone> = {
|
|
|
85
86
|
setup: "warning",
|
|
86
87
|
unconfigured: "warning",
|
|
87
88
|
unreachable: "error",
|
|
89
|
+
site: "success",
|
|
88
90
|
};
|
|
89
91
|
const check = shallowRef<ConsoleAccountCheck & { at: Date }>();
|
|
90
92
|
const checking = ref(false);
|
|
@@ -202,12 +204,16 @@ onBeforeUnmount(() => unsubscribe?.());
|
|
|
202
204
|
<template v-else-if="section === 'connection' && link">
|
|
203
205
|
<ConsoleSettingsCard title="Console key" description="The app checks each Console call with this public key. The Console server keeps the private key.">
|
|
204
206
|
<div class="grid gap-2">
|
|
205
|
-
<ConsoleSettingsValue label="Variable name" :value="link.keyVariable" mono copy />
|
|
206
|
-
<ConsoleSettingsValue label="Public key" :value="link.publicKey" mono copy />
|
|
207
|
+
<ConsoleSettingsValue label="Variable name" :value="link.keyVariable ?? undefined" mono copy />
|
|
208
|
+
<ConsoleSettingsValue label="Public key" :value="link.publicKey ?? undefined" mono copy />
|
|
207
209
|
</div>
|
|
208
210
|
<template #footer>Set as an environment variable of the app. Linking the app again makes a new key.</template>
|
|
209
211
|
</ConsoleSettingsCard>
|
|
210
212
|
|
|
213
|
+
<ConsoleSettingsCard title="Hosted Comments">
|
|
214
|
+
<ConsoleHostedCommentsEmbed :project-id="link.id" />
|
|
215
|
+
</ConsoleSettingsCard>
|
|
216
|
+
|
|
211
217
|
<ConsoleSettingsCard title="Connection check" description="The Console server calls the app with a signed request. Home checks every app the same way.">
|
|
212
218
|
<p class="flex min-h-8 items-center gap-2 text-sm text-highlighted" role="status">
|
|
213
219
|
<USkeleton v-if="!check && !checkFailed" class="h-3 w-48" />
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockHeader, CodeBlockTitle } from "@vite-hub/ui";
|
|
3
|
+
import { computed, ref } from "vue";
|
|
4
|
+
|
|
5
|
+
import { canManageConsoleProjects, useConsoleProjects } from "../client/project-session";
|
|
6
|
+
import { grantSummary, inviteHostedCommentsGuest, readHostedCommentsAccess, revokeHostedCommentsAccess } from "../client/site-access";
|
|
7
|
+
import { useConsoleToast } from "../client/toast";
|
|
8
|
+
|
|
9
|
+
const props = defineProps<{ projectId: string }>();
|
|
10
|
+
const { account, pageOrigin } = useConsoleProjects();
|
|
11
|
+
const manage = computed(() => account.value ? canManageConsoleProjects(account.value) : false);
|
|
12
|
+
const toast = useConsoleToast();
|
|
13
|
+
const code = computed(() => `<script type="module" src="${pageOrigin}/hosted-comments.js" data-vitehub-comments="${props.projectId}"><${"/script"}>`);
|
|
14
|
+
const access = ref<Awaited<ReturnType<typeof readHostedCommentsAccess>>>();
|
|
15
|
+
const name = ref("");
|
|
16
|
+
const permission = ref("write");
|
|
17
|
+
const days = ref("7");
|
|
18
|
+
const busy = ref(false);
|
|
19
|
+
const problem = ref("");
|
|
20
|
+
const inviteUrl = ref("");
|
|
21
|
+
const permissions = [
|
|
22
|
+
{ label: "Read comments", value: "read" },
|
|
23
|
+
{ label: "Write comments", value: "write" },
|
|
24
|
+
{ label: "Write and resolve", value: "resolve" },
|
|
25
|
+
];
|
|
26
|
+
const lifetimes = [{ label: "1 day", value: "1" }, { label: "7 days", value: "7" }, { label: "30 days", value: "30" }];
|
|
27
|
+
|
|
28
|
+
async function run(action?: () => Promise<void>): Promise<void> {
|
|
29
|
+
if (busy.value) return;
|
|
30
|
+
busy.value = true;
|
|
31
|
+
problem.value = "";
|
|
32
|
+
try {
|
|
33
|
+
await action?.();
|
|
34
|
+
access.value = await readHostedCommentsAccess(props.projectId);
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
problem.value = error instanceof Error ? error.message : "The Console did not answer. Try again.";
|
|
38
|
+
}
|
|
39
|
+
finally {
|
|
40
|
+
busy.value = false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async function invite(): Promise<void> {
|
|
45
|
+
await run(async () => {
|
|
46
|
+
const roles = permission.value === "resolve" ? ["comments-write", "comments-resolve"] : [`comments-${permission.value}`];
|
|
47
|
+
const answer = await inviteHostedCommentsGuest(props.projectId, { name: name.value.trim(), grants: roles, expiresInDays: Number(days.value) });
|
|
48
|
+
inviteUrl.value = answer.url;
|
|
49
|
+
name.value = "";
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function opened(event: Event): void {
|
|
54
|
+
if (event.currentTarget instanceof HTMLDetailsElement && event.currentTarget.open) void run();
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<template>
|
|
59
|
+
<div class="grid gap-3">
|
|
60
|
+
<p class="text-sm text-pretty text-muted">Add this script to the registered page and the pages you want to review. The registered page completes sign-in.</p>
|
|
61
|
+
<CodeBlock size="sm">
|
|
62
|
+
<CodeBlockHeader>
|
|
63
|
+
<CodeBlockTitle>Hosted Comments script</CodeBlockTitle>
|
|
64
|
+
<CodeBlockActions>
|
|
65
|
+
<CodeBlockCopyButton :value="code" aria-label="Copy the Hosted Comments script" color="neutral" @error="toast.error('The browser blocked the clipboard. Select the script and copy it.')" />
|
|
66
|
+
</CodeBlockActions>
|
|
67
|
+
</CodeBlockHeader>
|
|
68
|
+
<CodeBlockContent wrap class="break-all text-[13px] text-highlighted">{{ code }}</CodeBlockContent>
|
|
69
|
+
</CodeBlock>
|
|
70
|
+
<details class="grid gap-3" @toggle="opened">
|
|
71
|
+
<summary class="cursor-pointer text-sm font-medium text-highlighted">Guest access</summary>
|
|
72
|
+
<p v-if="!manage" class="mt-3 text-sm text-muted">Owners and admins of the team invite and remove guests.</p>
|
|
73
|
+
<form v-else class="mt-3 grid gap-3" @submit.prevent="invite">
|
|
74
|
+
<div class="flex flex-wrap items-end gap-2">
|
|
75
|
+
<UFormField label="Guest name" required>
|
|
76
|
+
<UInput v-model="name" maxlength="64" required />
|
|
77
|
+
</UFormField>
|
|
78
|
+
<UFormField label="Permission">
|
|
79
|
+
<USelect v-model="permission" :items="permissions" />
|
|
80
|
+
</UFormField>
|
|
81
|
+
<UFormField label="Expires in">
|
|
82
|
+
<USelect v-model="days" :items="lifetimes" />
|
|
83
|
+
</UFormField>
|
|
84
|
+
<UButton label="Create invite" type="submit" :disabled="busy || !name.trim()" />
|
|
85
|
+
</div>
|
|
86
|
+
<p v-if="problem" class="text-sm text-error" role="alert">{{ problem }}</p>
|
|
87
|
+
<div v-if="inviteUrl" class="flex items-end gap-2">
|
|
88
|
+
<UFormField class="min-w-0 flex-1" label="One-time invite link">
|
|
89
|
+
<UInput class="w-full" :model-value="inviteUrl" readonly />
|
|
90
|
+
</UFormField>
|
|
91
|
+
<CodeBlockCopyButton :value="inviteUrl" aria-label="Copy invite link" color="neutral" />
|
|
92
|
+
</div>
|
|
93
|
+
</form>
|
|
94
|
+
<ul v-if="access" class="mt-3 divide-y divide-default">
|
|
95
|
+
<li v-for="item in access.invites" :key="item.id" class="flex items-center justify-between gap-2 py-2 text-sm">
|
|
96
|
+
<span>{{ item.name }} · Open invite · {{ grantSummary("guest", item.grants, access.grants) }}</span>
|
|
97
|
+
<UButton v-if="manage" label="Revoke" :aria-label="`Revoke the invite for ${item.name}`" color="neutral" variant="ghost" size="xs" :disabled="busy" @click="run(() => revokeHostedCommentsAccess(projectId, 'invites', item.id))" />
|
|
98
|
+
</li>
|
|
99
|
+
<li v-for="item in access.sessions" :key="item.id" class="flex items-center justify-between gap-2 py-2 text-sm">
|
|
100
|
+
<span>{{ item.person.name }} · {{ item.device }} · {{ grantSummary("guest", item.grants, access.grants) }}</span>
|
|
101
|
+
<UButton v-if="manage" label="Revoke" :aria-label="`Revoke access for ${item.person.name}`" color="neutral" variant="ghost" size="xs" :disabled="busy" @click="run(() => revokeHostedCommentsAccess(projectId, 'sessions', item.id))" />
|
|
102
|
+
</li>
|
|
103
|
+
</ul>
|
|
104
|
+
</details>
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
@@ -3,6 +3,7 @@ import { onMounted, ref } from "vue";
|
|
|
3
3
|
import { useRoute, useRouter } from "vue-router";
|
|
4
4
|
|
|
5
5
|
import { consoleMcpAccount, requestConsoleMcp } from "../client/mcp-client";
|
|
6
|
+
import { openAccountProject, useConsoleProjects } from "../client/project-session";
|
|
6
7
|
import { useConsoleToast } from "../client/toast";
|
|
7
8
|
import ConsoleSearch from "./console-search.vue";
|
|
8
9
|
import ConsoleState from "./console-state.vue";
|
|
@@ -11,7 +12,8 @@ import Icon from "./console-icon.vue";
|
|
|
11
12
|
/**
|
|
12
13
|
* Where an authorization server sends the browser after an MCP sign-in. The page hands the code to the server, which
|
|
13
14
|
* exchanges it with the PKCE verifier that never left the server, then opens the new connection. The code leaves the
|
|
14
|
-
* address bar as soon as the page has read it.
|
|
15
|
+
* address bar as soon as the page has read it. The server finishes the sign-in on the project in its state, so when
|
|
16
|
+
* another tab opened another project since, the page opens that project after the sign-in.
|
|
15
17
|
*/
|
|
16
18
|
const props = defineProps<{
|
|
17
19
|
agentsBase: string;
|
|
@@ -25,6 +27,7 @@ const route = useRoute();
|
|
|
25
27
|
const router = useRouter();
|
|
26
28
|
const toast = useConsoleToast();
|
|
27
29
|
const error = ref<unknown>();
|
|
30
|
+
const projects = useConsoleProjects();
|
|
28
31
|
|
|
29
32
|
function query(name: string): string | undefined {
|
|
30
33
|
const value = route.query[name];
|
|
@@ -44,6 +47,8 @@ onMounted(async () => {
|
|
|
44
47
|
await router.replace({ name: "vitehub-console-mcp-client-callback" });
|
|
45
48
|
try {
|
|
46
49
|
const connection = await requestConsoleMcp("mcp-client.complete", Object.fromEntries(Object.entries(input).filter(([, value]) => value !== undefined)));
|
|
50
|
+
const project = input.state.includes(".") ? input.state.slice(0, input.state.indexOf(".")) : undefined;
|
|
51
|
+
if (projects.mode === "account" && project && project !== projects.current.value?.id) return openAccountProject(project);
|
|
47
52
|
toast.show({ title: `Connected as ${consoleMcpAccount(connection).primary}` });
|
|
48
53
|
await router.replace({ name: "vitehub-console-mcp-client", query: { connection: connection.id } });
|
|
49
54
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { consoleInitials } from "../client/format";
|
|
3
3
|
import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
4
|
-
import { viteHubErrorDiagnostics } from "../../../error-diagnostics";
|
|
5
4
|
|
|
6
5
|
import { consoleMcpAccount, consoleMcpPromptSchema, consoleMcpToolHints, requestConsoleMcp } from "../client/mcp-client";
|
|
7
6
|
import ConsoleMcpContent from "./console-mcp-content.vue";
|
|
@@ -47,7 +46,6 @@ const templateUri = ref("");
|
|
|
47
46
|
const runAs = ref<string[]>([props.connection.id]);
|
|
48
47
|
const results = ref<Record<string, Result>>({});
|
|
49
48
|
let request: AbortController | undefined;
|
|
50
|
-
const maximumListPages = 1_000;
|
|
51
49
|
|
|
52
50
|
const nouns = { prompts: "prompts", resources: "resources", tools: "tools" } as const;
|
|
53
51
|
const action = computed(() => ({ prompts: "Get prompt", resources: "Read", tools: "Run" })[props.kind]);
|
|
@@ -92,20 +90,9 @@ async function load(): Promise<void> {
|
|
|
92
90
|
error.value = undefined;
|
|
93
91
|
try {
|
|
94
92
|
const pages = async (kind: ConsoleMcpListKind) => {
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
for (let page = 0; page < maximumListPages && !controller.signal.aborted; page++) {
|
|
99
|
-
const response = await requestConsoleMcp("mcp-client.items", { id: props.connection.id, kind, ...(cursor ? { cursor } : {}) }, controller.signal);
|
|
100
|
-
all.push(...response.items);
|
|
101
|
-
emit("connection", response.connection);
|
|
102
|
-
cursor = response.nextCursor;
|
|
103
|
-
if (!cursor) break;
|
|
104
|
-
if (cursors.has(cursor)) throw viteHubErrorDiagnostics.VITE_HUB_CONSOLE_MCP_LIST_INCOMPLETE({ reason: "repeated-cursor" });
|
|
105
|
-
cursors.add(cursor);
|
|
106
|
-
if (page + 1 === maximumListPages) throw viteHubErrorDiagnostics.VITE_HUB_CONSOLE_MCP_LIST_INCOMPLETE({ reason: "too-many-pages" });
|
|
107
|
-
}
|
|
108
|
-
return all;
|
|
93
|
+
const response = await requestConsoleMcp("mcp-client.items", { id: props.connection.id, kind }, controller.signal);
|
|
94
|
+
emit("connection", response.connection);
|
|
95
|
+
return response.items;
|
|
109
96
|
};
|
|
110
97
|
// Both lists use one grant. Finish one before the other can rotate its refresh token.
|
|
111
98
|
const list = await pages(props.kind);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
3
3
|
|
|
4
4
|
import { consoleDateTime, consoleInitials, consoleRelativeTime } from "../client/format";
|
|
5
|
-
import { grantSummary, inviteGuest,
|
|
5
|
+
import { grantSummary, inviteGuest, isSiteAccessProblem, openSite, phoneLink, qrCode, readSiteAccess, revokeInvite, revokeSession, usesConsoleSiteAccess } from "../client/site-access";
|
|
6
6
|
import { useConsoleToast } from "../client/toast";
|
|
7
7
|
import { rememberConsoleSection } from "../sections";
|
|
8
8
|
import ConsoleConfirm from "./console-confirm.vue";
|
|
@@ -15,9 +15,9 @@ import type { ConsoleRequestError } from "../client/request";
|
|
|
15
15
|
import type { SiteGrant, SiteInvite, SiteSession } from "../client/site-access";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Site access: who the Console signs in to the app for the page tools. Members open the site from here, or
|
|
19
|
-
* code with a phone. Guests get a one-time link with a name and the roles a member picked; they never see the
|
|
20
|
-
* Each browser is one row
|
|
18
|
+
* Site access: who the Console signs in to the app for the page tools. Members of the team open the site from here, or
|
|
19
|
+
* scan a QR code with a phone. Guests get a one-time link with a name and the roles a member picked; they never see the
|
|
20
|
+
* Console. Each browser with a Console pass is one row. Revoking it stops new sign-ins of that browser.
|
|
21
21
|
*/
|
|
22
22
|
defineProps<{
|
|
23
23
|
agentsBase: string;
|
|
@@ -81,7 +81,7 @@ function expiresIn(value: string): string {
|
|
|
81
81
|
// Open site: the new tab is signed in as you, then opens the app's home page.
|
|
82
82
|
const opening = ref(false);
|
|
83
83
|
function showLinkError(cause: unknown, title: string): void {
|
|
84
|
-
if (
|
|
84
|
+
if (isSiteAccessProblem(cause)) linkError.value = { title, cause };
|
|
85
85
|
else toast.error(`${title}. Try again.`);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -168,7 +168,7 @@ async function invite(): Promise<void> {
|
|
|
168
168
|
invites.value = [result.invite, ...invites.value];
|
|
169
169
|
}
|
|
170
170
|
catch (cause) {
|
|
171
|
-
if (
|
|
171
|
+
if (isSiteAccessProblem(cause)) inviteError.value = cause;
|
|
172
172
|
else toast.error("Couldn't create the invite. Try again.");
|
|
173
173
|
}
|
|
174
174
|
finally {
|
|
@@ -188,7 +188,9 @@ const revokeOpen = ref(false);
|
|
|
188
188
|
const revokeBusy = ref(false);
|
|
189
189
|
const revokeTitle = computed(() => revoking.value?.kind === "session" ? `Revoke ${revoking.value.session.person.name} on ${revoking.value.session.device}?` : `Revoke the invite for ${revoking.value?.invite.name}?`);
|
|
190
190
|
const revokeDescription = computed(() => revoking.value?.kind === "session"
|
|
191
|
-
? (
|
|
191
|
+
? (usesConsoleSiteAccess()
|
|
192
|
+
? (revoking.value.session.kind === "guest" ? "The Console stops signing this guest in. Their comments stay." : "The Console stops signing this browser in. Members still open the site from the Console.")
|
|
193
|
+
: (revoking.value.session.kind === "guest" ? "This signs the browser out and deletes the guest. Their comments stay." : "This signs the browser out of the app."))
|
|
192
194
|
: "The link stops working. Nobody has opened it yet.");
|
|
193
195
|
|
|
194
196
|
function askRevoke(target: NonNullable<typeof revoking.value>): void {
|
|
@@ -260,7 +262,7 @@ onBeforeUnmount(() => {
|
|
|
260
262
|
</div>
|
|
261
263
|
<div v-else class="vitehub-console-page grid gap-8">
|
|
262
264
|
<p class="text-pretty text-[13px] text-muted">
|
|
263
|
-
The Console signs these browsers in to the app, so they get the page tools.
|
|
265
|
+
The Console signs these browsers in to the app, so they get the page tools. Every member of the team opens the site from the Console; guests get only the roles you picked.
|
|
264
266
|
</p>
|
|
265
267
|
|
|
266
268
|
<section v-for="group in sessionsError ? [] : [{ id: 'members', title: 'Members', rows: members }, { id: 'guests', title: 'Guests', rows: guests }]" :key="group.id" :aria-labelledby="`site-${group.id}`" class="grid gap-2">
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/console/runtime/console-route.d.ts
|
|
2
1
|
export declare const consoleDatabasesSchemaPath = "/databases/:database/schema/diagram";
|
|
3
2
|
export declare const consoleDatabasesTablePath = "/databases/:database?/:table?";
|
|
4
3
|
/** Return the application mount prefix before the Console route marker. */
|
|
@@ -12,5 +11,4 @@ export declare function resolveUsageSessionsAgent(query: {
|
|
|
12
11
|
agent?: string | null | (string | null)[];
|
|
13
12
|
returnAgent?: string | null | (string | null)[];
|
|
14
13
|
}, selectedAgent?: string): string | undefined;
|
|
15
|
-
export declare function resolveConsoleRouteName(currentRouteName: string | symbol | null | undefined, targetRouteName: string): string;
|
|
16
|
-
//#endregion
|
|
14
|
+
export declare function resolveConsoleRouteName(currentRouteName: string | symbol | null | undefined, targetRouteName: string): string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { consoleDatabasesSchemaPath, consoleDatabasesTablePath, consoleMountBase, consoleMountPath, decodeAgentRouteParam, encodeAgentRouteParam, resolveConsoleRouteName, resolveUsageSessionsAgent };
|
|
1
|
+
export { t as consoleDatabasesSchemaPath, n as consoleDatabasesTablePath, r as consoleMountBase, i as consoleMountPath, a as decodeAgentRouteParam, o as encodeAgentRouteParam, s as resolveConsoleRouteName, c as resolveUsageSessionsAgent } from "../../console-route-DbdnLkkF.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as parseConsoleSectionContent, C as parseConsoleContributedSection, D as parseConsoleDocumentSetup, E as parseConsoleDocumentCollections, O as parseConsoleRecordActivity, S as ConsoleSectionView, T as parseConsoleDefinitionSummaries, _ as ConsoleRuntimeRecordReader, a as ConsoleDocumentCollection, b as ConsoleSectionPage, c as ConsoleDocumentSetup, d as ConsoleOperationFilter, f as ConsoleOperationTone, g as ConsoleRecordColumn, h as ConsoleRecordActivity, i as ConsoleDocumentAccess, k as parseConsoleRecordLink, l as ConsoleOperationAction, m as ConsoleRecord, n as ConsoleDefinitionField, o as ConsoleDocumentComponent, p as ConsoleOperationView, r as ConsoleDefinitionSummary, s as ConsoleDocumentHint, t as ConsoleContributedSection, u as ConsoleOperationColumn, v as ConsoleSectionCatalog, w as parseConsoleDefinitionFields, x as ConsoleSectionPageView, y as ConsoleSectionContent } from "../../definitions-
|
|
1
|
+
import { A as parseConsoleSectionContent, C as parseConsoleContributedSection, D as parseConsoleDocumentSetup, E as parseConsoleDocumentCollections, O as parseConsoleRecordActivity, S as ConsoleSectionView, T as parseConsoleDefinitionSummaries, _ as ConsoleRuntimeRecordReader, a as ConsoleDocumentCollection, b as ConsoleSectionPage, c as ConsoleDocumentSetup, d as ConsoleOperationFilter, f as ConsoleOperationTone, g as ConsoleRecordColumn, h as ConsoleRecordActivity, i as ConsoleDocumentAccess, k as parseConsoleRecordLink, l as ConsoleOperationAction, m as ConsoleRecord, n as ConsoleDefinitionField, o as ConsoleDocumentComponent, p as ConsoleOperationView, r as ConsoleDefinitionSummary, s as ConsoleDocumentHint, t as ConsoleContributedSection, u as ConsoleOperationColumn, v as ConsoleSectionCatalog, w as parseConsoleDefinitionFields, x as ConsoleSectionPageView, y as ConsoleSectionContent } from "../../definitions-ChvMnA1L.js";
|
|
2
2
|
export { ConsoleContributedSection, ConsoleDefinitionField, ConsoleDefinitionSummary, ConsoleDocumentAccess, ConsoleDocumentCollection, ConsoleDocumentComponent, ConsoleDocumentHint, ConsoleDocumentSetup, ConsoleOperationAction, ConsoleOperationColumn, ConsoleOperationFilter, ConsoleOperationTone, ConsoleOperationView, ConsoleRecord, ConsoleRecordActivity, ConsoleRecordColumn, ConsoleRuntimeRecordReader, ConsoleSectionCatalog, ConsoleSectionContent, ConsoleSectionPage, ConsoleSectionPageView, ConsoleSectionView, parseConsoleContributedSection, parseConsoleDefinitionFields, parseConsoleDefinitionSummaries, parseConsoleDocumentCollections, parseConsoleDocumentSetup, parseConsoleRecordActivity, parseConsoleRecordLink, parseConsoleSectionContent };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { parseConsoleContributedSection, parseConsoleDefinitionFields, parseConsoleDefinitionSummaries, parseConsoleDocumentCollections, parseConsoleDocumentSetup, parseConsoleRecordActivity, parseConsoleRecordLink, parseConsoleSectionContent };
|
|
1
|
+
export { t as parseConsoleContributedSection, n as parseConsoleDefinitionFields, r as parseConsoleDefinitionSummaries, i as parseConsoleDocumentCollections, a as parseConsoleDocumentSetup, o as parseConsoleRecordActivity, s as parseConsoleRecordLink, c as parseConsoleSectionContent } from "../../definitions-BFYqXchw.js";
|
|
@@ -18,6 +18,7 @@ export type ConsoleDiagnosticCode =
|
|
|
18
18
|
| "CONSOLE_MCP_AUTHORIZATION_FAILED"
|
|
19
19
|
| "CONSOLE_MCP_KEY_INVALID"
|
|
20
20
|
| "CONSOLE_MCP_KV_REQUIRED"
|
|
21
|
+
| "CONSOLE_MCP_LIST_INCOMPLETE"
|
|
21
22
|
| "CONSOLE_MCP_SIGNED_OUT"
|
|
22
23
|
| "CONSOLE_MCP_UNREACHABLE"
|
|
23
24
|
| "CONSOLE_NOT_FOUND"
|
|
@@ -211,6 +212,12 @@ const consoleDiagnostics = /*#__PURE__*/ defineDiagnostics({
|
|
|
211
212
|
`${consoleGuide}/mcp-client#keep-connections-across-restarts`,
|
|
212
213
|
"docs",
|
|
213
214
|
),
|
|
215
|
+
CONSOLE_MCP_LIST_INCOMPLETE: code(
|
|
216
|
+
"The MCP server sent a list of more than 20 pages, so the Console did not show it.",
|
|
217
|
+
"Make the MCP server send its tools, resources, resource templates, or prompts in 20 pages or fewer, such as with more items in each page.",
|
|
218
|
+
`${consoleGuide}/mcp-client`,
|
|
219
|
+
"docs",
|
|
220
|
+
),
|
|
214
221
|
CONSOLE_REQUEST_INVALID: code(
|
|
215
222
|
"The server cannot read this Console request.",
|
|
216
223
|
"Reload the Console. If this continues, deploy the Console and the server from the same build.",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsoleMcpGrant, c as ConsoleMcpOutcome, d as ConsoleMcpServerInfo, f as ConsoleMcpStatus, i as ConsoleMcpConnection, l as ConsoleMcpOverview, n as ConsoleMcpCandidate, o as ConsoleMcpIdentity, p as consoleMcpCallbackPath, r as ConsoleMcpConnectResult, s as ConsoleMcpListKind, t as ConsoleMcpAuth, u as ConsoleMcpPage } from "../../mcp-client-
|
|
1
|
+
import { a as ConsoleMcpGrant, c as ConsoleMcpOutcome, d as ConsoleMcpServerInfo, f as ConsoleMcpStatus, i as ConsoleMcpConnection, l as ConsoleMcpOverview, n as ConsoleMcpCandidate, o as ConsoleMcpIdentity, p as consoleMcpCallbackPath, r as ConsoleMcpConnectResult, s as ConsoleMcpListKind, t as ConsoleMcpAuth, u as ConsoleMcpPage } from "../../mcp-client-Q2XbUXuP.js";
|
|
2
2
|
export { ConsoleMcpAuth, ConsoleMcpCandidate, ConsoleMcpConnectResult, ConsoleMcpConnection, ConsoleMcpGrant, ConsoleMcpIdentity, ConsoleMcpListKind, ConsoleMcpOutcome, ConsoleMcpOverview, ConsoleMcpPage, ConsoleMcpServerInfo, ConsoleMcpStatus, consoleMcpCallbackPath };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { consoleMcpCallbackPath };
|
|
1
|
+
export { t as consoleMcpCallbackPath } from "../../mcp-client-Bkh-khvr.js";
|