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,2 +1,2 @@
|
|
|
1
|
-
import { a as installedConsoleAccessPolicy, i as installConsoleAccess, n as consoleAuthorizedSections, r as consoleOpenAccessWarning, t as consoleAuthorizedGrants } from "../../../access-policy-
|
|
1
|
+
import { a as installedConsoleAccessPolicy, i as installConsoleAccess, n as consoleAuthorizedSections, r as consoleOpenAccessWarning, t as consoleAuthorizedGrants } from "../../../access-policy-CUbJLvlR.js";
|
|
2
2
|
export { consoleAuthorizedGrants, consoleAuthorizedSections, consoleOpenAccessWarning, installConsoleAccess, installedConsoleAccessPolicy };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { consoleAuthorizedGrants, consoleAuthorizedSections, consoleOpenAccessWarning, installConsoleAccess, installedConsoleAccessPolicy };
|
|
1
|
+
export { t as consoleAuthorizedGrants, n as consoleAuthorizedSections, r as consoleOpenAccessWarning, i as installConsoleAccess, a as installedConsoleAccessPolicy } from "../../../access-policy-BM48XstY.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as consoleAgentInvokerProfiles } from "../../../agents-
|
|
2
|
-
//#region src/console/runtime/server/agents.get.d.ts
|
|
1
|
+
import { t as consoleAgentInvokerProfiles } from "../../../agents-Gyw4VKPt.js";
|
|
3
2
|
interface ConsoleAgentsResult {
|
|
4
3
|
/** Agents registered in this application. */
|
|
5
4
|
agents: readonly string[];
|
|
@@ -11,4 +10,4 @@ interface ConsoleAgentsResult {
|
|
|
11
10
|
}
|
|
12
11
|
/** The Agents of the `agents.list` operation. */
|
|
13
12
|
export declare function listConsoleAgents(): Promise<ConsoleAgentsResult>;
|
|
14
|
-
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { c as getConsoleAgents, r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../../agents-Cz_uhhov.js";
|
|
2
|
+
import { t as getConsoleInvocations } from "../../../invocations-8NThe8Bx.js";
|
|
3
|
+
// src/console/runtime/server/agents.get.ts
|
|
4
4
|
/** The Agents of the `agents.list` operation. */
|
|
5
5
|
async function listConsoleAgents() {
|
|
6
6
|
const registeredNames = [...new Set(getConsoleAgents())].sort();
|
|
@@ -16,5 +16,4 @@ async function listConsoleAgents() {
|
|
|
16
16
|
if (Object.keys(invocation).length) result.invocation = invocation;
|
|
17
17
|
return result;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { listConsoleAgents };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as runAuthConsoleRead, i as runAuthConsoleAction, n as authConsoleFailure, r as issueImpersonationTicket, t as AuthOperationContext } from "../../../auth-
|
|
1
|
+
import { a as runAuthConsoleRead, i as runAuthConsoleAction, n as authConsoleFailure, r as issueImpersonationTicket, t as AuthOperationContext } from "../../../auth-CeKxL2xp.js";
|
|
2
2
|
export { AuthOperationContext, authConsoleFailure, issueImpersonationTicket, runAuthConsoleAction, runAuthConsoleRead };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as consolePerson, o as consoleImpersonation } from "../../../access-
|
|
2
|
-
import { i as consoleRequestError } from "../../../request-
|
|
3
|
-
import { r as getConsoleSections } from "../../../sections-
|
|
1
|
+
import { l as consolePerson, o as consoleImpersonation } from "../../../access-BBHk9b5P.js";
|
|
2
|
+
import { i as consoleRequestError } from "../../../request-CQ8TkHLh.js";
|
|
3
|
+
import { r as getConsoleSections } from "../../../sections-BNTdIEJw.js";
|
|
4
4
|
import { getAuthConsoleForRequest } from "@vite-hub/auth/server";
|
|
5
|
-
|
|
5
|
+
// src/console/runtime/server/auth.ts
|
|
6
6
|
const statuses = {
|
|
7
7
|
AUTH_CONSOLE_INVALID_REQUEST: 400,
|
|
8
8
|
AUTH_CONSOLE_FORBIDDEN: 403,
|
|
@@ -77,5 +77,4 @@ async function issueImpersonationTicket(context, userId) {
|
|
|
77
77
|
if (detail.impersonation && !detail.impersonation.enabled) throw consoleRequestError(403, detail.impersonation.reason ?? "Better Auth does not impersonate this user.", "CONSOLE_ACCESS_DENIED");
|
|
78
78
|
return await issueConsoleTicket(context, "auth.impersonate", { userId });
|
|
79
79
|
}
|
|
80
|
-
//#endregion
|
|
81
80
|
export { authConsoleFailure, issueImpersonationTicket, runAuthConsoleAction, runAuthConsoleRead };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as installConsoleBlob, r as loadConsoleMedia, t as getConsoleBlob } from "../../../blob-
|
|
1
|
+
import { n as installConsoleBlob, r as loadConsoleMedia, t as getConsoleBlob } from "../../../blob-_TtxDb-t.js";
|
|
2
2
|
export { getConsoleBlob, installConsoleBlob, loadConsoleMedia };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { getConsoleBlob, installConsoleBlob, loadConsoleMedia };
|
|
1
|
+
export { t as getConsoleBlob, n as installConsoleBlob, r as loadConsoleMedia } from "../../../blob-eH6j0AQj.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
//#region src/console/runtime/server/channel-replay.d.ts
|
|
1
|
+
import { o as ConsoleAccess } from "../../../access-policy-CUbJLvlR.js";
|
|
2
|
+
import { r as OperationContext } from "../../../operations-DgFhA1WE.js";
|
|
4
3
|
/** The input of `channels.replay`: the Agent, then the replay fields of `handleChannelReplayRequest()`. */
|
|
5
4
|
export interface ConsoleChannelReplayInput {
|
|
6
5
|
agent: string;
|
|
@@ -19,5 +18,4 @@ export interface ConsoleChannelReplayInput {
|
|
|
19
18
|
*/
|
|
20
19
|
export declare function replayConsoleChannel({ agent: name, ...replay }: ConsoleChannelReplayInput, context: Omit<OperationContext, "access"> & {
|
|
21
20
|
access: ConsoleAccess;
|
|
22
|
-
}): Promise<unknown>;
|
|
23
|
-
//#endregion
|
|
21
|
+
}): Promise<unknown>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as agentConsole } from "../../../server-DsOEa4_A.js";
|
|
2
|
+
import { o as getConsoleAgentCapabilities, s as getConsoleAgentDefinition } from "../../../agents-Cz_uhhov.js";
|
|
3
|
+
import { i as consoleAccessInvoker, p as readConsoleAccessUser } from "../../../access-BBHk9b5P.js";
|
|
4
|
+
import { i as consoleRequestError } from "../../../request-CQ8TkHLh.js";
|
|
5
5
|
import { createExecutionContext } from "@vite-hub/runtime";
|
|
6
6
|
import { handleChannelReplayRequest } from "@vite-hub/agent/server/internal";
|
|
7
7
|
import { createRuntimeWaitUntilController } from "@vite-hub/runtime/internal/context";
|
|
8
|
-
|
|
8
|
+
// src/console/runtime/server/channel-replay.ts
|
|
9
9
|
/** Items per call. The CLI continues with the returned cursor. */
|
|
10
10
|
const maximumReplayItemsPerRequest = 100;
|
|
11
11
|
function memo() {
|
|
@@ -49,5 +49,4 @@ async function replayConsoleChannel({ agent: name, ...replay }, context) {
|
|
|
49
49
|
const error = consoleRequestError(response.status, typeof message === "string" ? message : "Channel replay failed.");
|
|
50
50
|
throw typeof code === "string" ? Object.assign(error, { consoleCode: code }) : error;
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { replayConsoleChannel };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as installConsoleDatabase, t as getConsoleDatabase } from "../../../database-
|
|
1
|
+
import { n as installConsoleDatabase, t as getConsoleDatabase } from "../../../database-CPjZ3L0g.js";
|
|
2
2
|
export { getConsoleDatabase, installConsoleDatabase };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as ConsoleDatabaseInspection } from "../../../internal-
|
|
1
|
+
import { r as ConsoleDatabaseInspection } from "../../../internal-CKocv79I.js";
|
|
2
2
|
import { Column } from "drizzle-orm";
|
|
3
3
|
import { PgTable } from "drizzle-orm/pg-core";
|
|
4
4
|
import { SQLiteTable } from "drizzle-orm/sqlite-core";
|
|
5
|
-
//#region src/console/runtime/server/database.get.d.ts
|
|
6
5
|
interface ConsoleDatabaseCell {
|
|
7
6
|
kind: "bigint" | "boolean" | "bytes" | "date" | "json" | "null" | "number" | "text";
|
|
8
7
|
truncated?: true;
|
|
@@ -76,4 +75,4 @@ export declare function consoleDatabaseSchema(requested: string | null): {
|
|
|
76
75
|
};
|
|
77
76
|
/** One page of rows of a database table, with the tables of the database, for the `databases.*` operations. */
|
|
78
77
|
export declare function browseConsoleDatabase(query: ConsoleDatabaseQuery): Promise<ConsoleDatabaseResponse>;
|
|
79
|
-
|
|
78
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
1
|
+
import { t as consoleHttpError } from "../../../http-error-BorAxJYM.js";
|
|
2
|
+
import { t as getConsoleDatabase } from "../../../database-CrgBUdIx.js";
|
|
3
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
4
4
|
import { asc, count, desc, getTableColumns, is, or, sql } from "drizzle-orm";
|
|
5
5
|
import { PgTable, getTableConfig } from "drizzle-orm/pg-core";
|
|
6
6
|
import { SQLiteTable, getTableConfig as getTableConfig$1 } from "drizzle-orm/sqlite-core";
|
|
7
|
-
|
|
7
|
+
// src/console/runtime/server/database.get.ts
|
|
8
8
|
const defaultLimit = 50;
|
|
9
9
|
const maximumLimit = 100;
|
|
10
10
|
const maximumSearchLength = 512;
|
|
@@ -225,5 +225,4 @@ async function browseConsoleDatabase(query) {
|
|
|
225
225
|
total
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
//#endregion
|
|
229
228
|
export { browseConsoleDatabase, consoleDatabaseSchema };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { getConsoleDatabase, installConsoleDatabase };
|
|
1
|
+
export { t as getConsoleDatabase, n as installConsoleDatabase } from "../../../database-CrgBUdIx.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as installConsoleDefinitions, i as getConsoleSchedules, n as getConsoleContributedSections, o as installConsoleSchedules, r as getConsoleDefinitions, t as copyConsoleRecords } from "../../../definitions-
|
|
1
|
+
import { a as installConsoleDefinitions, i as getConsoleSchedules, n as getConsoleContributedSections, o as installConsoleSchedules, r as getConsoleDefinitions, t as copyConsoleRecords } from "../../../definitions-DRkgHKmk.js";
|
|
2
2
|
export { copyConsoleRecords, getConsoleContributedSections, getConsoleDefinitions, getConsoleSchedules, installConsoleDefinitions, installConsoleSchedules };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
//#region src/console/runtime/server/definitions.get.d.ts
|
|
1
|
+
import { o as ConsoleAccess } from "../../../access-policy-CUbJLvlR.js";
|
|
2
|
+
import { y as ConsoleSectionContent } from "../../../definitions-ChvMnA1L.js";
|
|
3
|
+
import { a as ConsoleSectionId } from "../../../sections-0qrBvGbf.js";
|
|
5
4
|
/** The definitions of one Console section, for the `definitions.list` operation. */
|
|
6
5
|
export declare function listConsoleDefinitions(input: {
|
|
7
6
|
section: string;
|
|
8
7
|
}, access: ConsoleAccess): Promise<ConsoleSectionContent & {
|
|
9
8
|
section: ConsoleSectionId;
|
|
10
|
-
}>;
|
|
11
|
-
//#endregion
|
|
9
|
+
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { t as consoleHttpError } from "../../../http-error-BorAxJYM.js";
|
|
2
|
+
import { i as getConsoleSchedules, r as getConsoleDefinitions, t as copyConsoleRecords } from "../../../definitions-M7i2p8SR.js";
|
|
3
|
+
import { x as isConsoleSectionId } from "../../../sections-BiCOk9qP.js";
|
|
4
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
5
|
+
// src/console/runtime/server/definitions.get.ts
|
|
6
6
|
function requestError(statusCode, statusMessage) {
|
|
7
7
|
return consoleHttpError(statusCode, viteHubErrorDiagnostics.VITE_HUB_C0001({ message: statusMessage }));
|
|
8
8
|
}
|
|
@@ -80,5 +80,4 @@ async function listConsoleDefinitions(input, access) {
|
|
|
80
80
|
section
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
//#endregion
|
|
84
83
|
export { listConsoleDefinitions };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { copyConsoleRecords, getConsoleContributedSections, getConsoleDefinitions, getConsoleSchedules, installConsoleDefinitions, installConsoleSchedules };
|
|
1
|
+
export { t as copyConsoleRecords, n as getConsoleContributedSections, r as getConsoleDefinitions, i as getConsoleSchedules, a as installConsoleDefinitions, o as installConsoleSchedules } from "../../../definitions-M7i2p8SR.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as isConsoleDevelopmentBuild, n as consoleSetupRoute, r as installConsoleDevelopment, t as consoleDevelopmentContext } from "../../../development-
|
|
1
|
+
import { i as isConsoleDevelopmentBuild, n as consoleSetupRoute, r as installConsoleDevelopment, t as consoleDevelopmentContext } from "../../../development-I40mfD7B.js";
|
|
2
2
|
export { consoleDevelopmentContext, consoleSetupRoute, installConsoleDevelopment, isConsoleDevelopmentBuild };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { consoleDevelopmentContext, consoleSetupRoute, installConsoleDevelopment, isConsoleDevelopmentBuild };
|
|
1
|
+
export { t as consoleDevelopmentContext, n as consoleSetupRoute, r as installConsoleDevelopment, i as isConsoleDevelopmentBuild } from "../../../development-DD567hhJ.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsoleDocumentEditors, c as consoleDocumentActionContext, d as issueConsoleDocumentPreview, f as loadConsoleDocumentActions, g as maximumConsoleDocumentRequestBytes, h as consoleDocumentActionNames, i as ConsoleDocumentEditorInstall, l as guardedHandler, m as runConsoleDocumentAction, n as ConsoleDocumentActionName, o as ConsoleMediaAccess, p as readConsoleDocumentSection, r as ConsoleDocumentActions, s as consoleActionError, t as ConsoleDocumentActionContext, u as installConsoleDocuments } from "../../../documents-
|
|
1
|
+
import { a as ConsoleDocumentEditors, c as consoleDocumentActionContext, d as issueConsoleDocumentPreview, f as loadConsoleDocumentActions, g as maximumConsoleDocumentRequestBytes, h as consoleDocumentActionNames, i as ConsoleDocumentEditorInstall, l as guardedHandler, m as runConsoleDocumentAction, n as ConsoleDocumentActionName, o as ConsoleMediaAccess, p as readConsoleDocumentSection, r as ConsoleDocumentActions, s as consoleActionError, t as ConsoleDocumentActionContext, u as installConsoleDocuments } from "../../../documents-LtkKCxtu.js";
|
|
2
2
|
export { ConsoleDocumentActionContext, ConsoleDocumentActionName, ConsoleDocumentActions, ConsoleDocumentEditorInstall, ConsoleDocumentEditors, ConsoleMediaAccess, consoleActionError, consoleDocumentActionContext, consoleDocumentActionNames, guardedHandler as default, installConsoleDocuments, issueConsoleDocumentPreview, loadConsoleDocumentActions, maximumConsoleDocumentRequestBytes, readConsoleDocumentSection, runConsoleDocumentAction };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as maximumConsoleDocumentRequestBytes, n as consoleDocumentActionNames } from "../../../limits-
|
|
2
|
-
import { a as issueConsoleDocumentPreview, c as runConsoleDocumentAction, i as installConsoleDocuments, n as consoleDocumentActionContext, o as loadConsoleDocumentActions, r as guardedHandler, s as readConsoleDocumentSection, t as consoleActionError } from "../../../documents-
|
|
1
|
+
import { i as maximumConsoleDocumentRequestBytes, n as consoleDocumentActionNames } from "../../../limits-BLo31qDR.js";
|
|
2
|
+
import { a as issueConsoleDocumentPreview, c as runConsoleDocumentAction, i as installConsoleDocuments, n as consoleDocumentActionContext, o as loadConsoleDocumentActions, r as guardedHandler, s as readConsoleDocumentSection, t as consoleActionError } from "../../../documents-BOYwZ5g4.js";
|
|
3
3
|
export { consoleActionError, consoleDocumentActionContext, consoleDocumentActionNames, guardedHandler as default, installConsoleDocuments, issueConsoleDocumentPreview, loadConsoleDocumentActions, maximumConsoleDocumentRequestBytes, readConsoleDocumentSection, runConsoleDocumentAction };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ServerEnvDescription } from "@vite-hub/env";
|
|
2
|
-
//#region src/console/runtime/server/env.d.ts
|
|
3
2
|
/** Keeps the Server Env declarations for `env.get`. The `env.inspect` operation of Env reads their status. */
|
|
4
3
|
export declare function installConsoleEnv(projectRoot: string, description: ServerEnvDescription): ServerEnvDescription;
|
|
5
|
-
export declare function getConsoleEnv(): ServerEnvDescription;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function getConsoleEnv(): ServerEnvDescription;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CUbJLvlR.js";
|
|
2
|
+
import { t as ConsoleRequestEvent } from "../../../request-BC_krbEr.js";
|
|
3
3
|
import { ServerEnvDescription } from "@vite-hub/env";
|
|
4
|
-
//#region src/console/runtime/server/env.get.d.ts
|
|
5
4
|
/** Returns declaration metadata. The `env.inspect` operation of Env returns the status of each value. */
|
|
6
5
|
declare function consoleEnvHandler(event: ConsoleRequestEvent): Promise<ServerEnvDescription>;
|
|
7
6
|
declare const guardedHandler: ConsoleAccessRoute<typeof consoleEnvHandler>;
|
|
8
|
-
//#endregion
|
|
9
7
|
export { guardedHandler as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as consoleHttpError } from "../../../http-error-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as getConsoleEnv } from "../../../env-
|
|
7
|
-
|
|
1
|
+
import { h as withConsoleAccess } from "../../../access-BBHk9b5P.js";
|
|
2
|
+
import { t as assertConsoleRequest } from "../../../request-CQ8TkHLh.js";
|
|
3
|
+
import { t as consoleHttpError } from "../../../http-error-BorAxJYM.js";
|
|
4
|
+
import { r as getConsoleSections } from "../../../sections-BNTdIEJw.js";
|
|
5
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
6
|
+
import { t as getConsoleEnv } from "../../../env-D-wtSupz.js";
|
|
7
|
+
// src/console/runtime/server/env.get.ts
|
|
8
8
|
/** Returns declaration metadata. The `env.inspect` operation of Env returns the status of each value. */
|
|
9
9
|
async function consoleEnvHandler(event) {
|
|
10
10
|
assertConsoleRequest(event);
|
|
@@ -12,5 +12,4 @@ async function consoleEnvHandler(event) {
|
|
|
12
12
|
return getConsoleEnv();
|
|
13
13
|
}
|
|
14
14
|
const guardedHandler = withConsoleAccess(consoleEnvHandler, { section: "env" });
|
|
15
|
-
//#endregion
|
|
16
15
|
export { guardedHandler as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { getConsoleEnv, installConsoleEnv };
|
|
1
|
+
export { t as getConsoleEnv, n as installConsoleEnv } from "../../../env-D-wtSupz.js";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/console/runtime/server/invocation-capabilities.get.d.ts
|
|
2
1
|
/** The capabilities and the triggering people of the recorded invocations, for the `invocations.capabilities` operation. */
|
|
3
2
|
export declare function listConsoleInvocationCapabilities(input: {
|
|
4
3
|
agent?: string;
|
|
5
4
|
}): Promise<{
|
|
6
5
|
capabilities: readonly string[];
|
|
7
6
|
triggeredBy: readonly string[];
|
|
8
|
-
}>;
|
|
9
|
-
//#endregion
|
|
7
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as consoleHttpError } from "../../../http-error-
|
|
3
|
-
import { t as
|
|
4
|
-
|
|
1
|
+
import { t as getConsoleInvocations } from "../../../invocations-8NThe8Bx.js";
|
|
2
|
+
import { t as consoleHttpError } from "../../../http-error-BorAxJYM.js";
|
|
3
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
4
|
+
// src/console/runtime/server/invocation-capabilities.get.ts
|
|
5
5
|
/** The capabilities and the triggering people of the recorded invocations, for the `invocations.capabilities` operation. */
|
|
6
6
|
async function listConsoleInvocationCapabilities(input) {
|
|
7
7
|
const agentName = input.agent?.trim() || void 0;
|
|
@@ -13,5 +13,4 @@ async function listConsoleInvocationCapabilities(input) {
|
|
|
13
13
|
triggeredBy
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { listConsoleInvocationCapabilities };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
//#region src/console/runtime/server/invocation-workspace.get.d.ts
|
|
1
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CUbJLvlR.js";
|
|
2
|
+
import { n as WorkspaceFileResponse, t as WorkspaceDescriptor } from "../../../workspace-history-WuxgLsi4.js";
|
|
3
|
+
import { t as ConsoleRequestEvent } from "../../../request-BC_krbEr.js";
|
|
5
4
|
declare function consoleInvocationWorkspaceHandler(event: ConsoleRequestEvent): Promise<WorkspaceDescriptor | WorkspaceFileResponse>;
|
|
6
5
|
declare const guardedHandler: ConsoleAccessRoute<typeof consoleInvocationWorkspaceHandler>;
|
|
7
|
-
//#endregion
|
|
8
6
|
export { guardedHandler as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-
|
|
1
|
+
import { s as getConsoleAgentDefinition } from "../../../agents-Cz_uhhov.js";
|
|
2
|
+
import { t as getConsoleInvocations } from "../../../invocations-8NThe8Bx.js";
|
|
3
|
+
import { h as withConsoleAccess } from "../../../access-BBHk9b5P.js";
|
|
4
|
+
import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-CQ8TkHLh.js";
|
|
5
|
+
import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-B52xib2J.js";
|
|
6
6
|
import { agentHostWorkspaceRoute, getAgentHostWorkspaceInspector } from "@vite-hub/agent/server";
|
|
7
7
|
import * as v from "valibot";
|
|
8
8
|
import { useWorkspaceFiles } from "@vite-hub/workspace/files";
|
|
9
|
-
|
|
9
|
+
// src/console/runtime/server/invocation-workspace.get.ts
|
|
10
10
|
const configurationSchema = v.object({ workspace: v.object({
|
|
11
11
|
name: v.string(),
|
|
12
12
|
ref: v.optional(v.string()),
|
|
@@ -73,5 +73,4 @@ async function consoleInvocationWorkspaceHandler(event) {
|
|
|
73
73
|
return await readMountedWorkspace(workspace, name, path, historyPageValue);
|
|
74
74
|
}
|
|
75
75
|
const guardedHandler = withConsoleAccess(consoleInvocationWorkspaceHandler, { section: "agents" });
|
|
76
|
-
//#endregion
|
|
77
76
|
export { guardedHandler as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CUbJLvlR.js";
|
|
2
|
+
import { t as invocationUsage } from "../../../usage-BduF04ks.js";
|
|
3
|
+
import { t as ConsoleRequestEvent } from "../../../request-BC_krbEr.js";
|
|
4
4
|
import { AgentInvocationCancelResult, AgentInvocationDeleteOutcome, AgentInvocationRerunUnavailableReason, AgentInvocationSummary } from "@vite-hub/agent";
|
|
5
5
|
import { TraceEventLogEntry } from "@vite-hub/runtime";
|
|
6
|
-
//#region src/console/runtime/server/invocation.get.d.ts
|
|
7
6
|
type ConsoleInvocationRerun = {
|
|
8
7
|
available: true;
|
|
9
8
|
invokerProfileId?: string;
|
|
@@ -43,5 +42,4 @@ export declare function cancelConsoleInvocation(event: ConsoleRequestEvent): Pro
|
|
|
43
42
|
export declare function getConsoleInvocationDetail(event: ConsoleRequestEvent): Promise<ConsoleInvocationDetail>;
|
|
44
43
|
declare const invocationHandler: (event: ConsoleRequestEvent) => Promise<ConsoleInvocationDetail | Awaited<ReturnType<typeof deleteConsoleInvocation>> | AgentInvocationCancelResult>;
|
|
45
44
|
declare const guardedHandler: ConsoleAccessRoute<typeof invocationHandler>;
|
|
46
|
-
//#endregion
|
|
47
45
|
export { guardedHandler as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as consoleRequestJSON, i as consoleRequestError, o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../../agents-Cz_uhhov.js";
|
|
2
|
+
import { t as getConsoleInvocations } from "../../../invocations-8NThe8Bx.js";
|
|
3
|
+
import { h as withConsoleAccess } from "../../../access-BBHk9b5P.js";
|
|
4
|
+
import { a as consoleRequestJSON, i as consoleRequestError, o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-CQ8TkHLh.js";
|
|
5
|
+
import { t as consoleHttpError } from "../../../http-error-BorAxJYM.js";
|
|
6
|
+
import { c as invocationUsage } from "../../../usage-ZV3TBMzE.js";
|
|
7
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
8
8
|
import { agentInvocationRerunInput } from "@vite-hub/agent";
|
|
9
9
|
import * as v from "valibot";
|
|
10
10
|
import { getStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
|
-
|
|
12
|
+
// src/console/runtime/server/invocation.get.ts
|
|
13
13
|
function formatObservationCursor(count, digest) {
|
|
14
14
|
return `${count.toString(36)}-${digest}`;
|
|
15
15
|
}
|
|
@@ -157,5 +157,4 @@ const invocationHandler = async (event) => {
|
|
|
157
157
|
return v.safeParse(cancelActionSchema, body).success ? cancelConsoleInvocationAction(event, body) : deleteConsoleInvocationAction(event, body);
|
|
158
158
|
};
|
|
159
159
|
const guardedHandler = withConsoleAccess(invocationHandler, { section: "agents" });
|
|
160
|
-
//#endregion
|
|
161
160
|
export { cancelConsoleInvocation, guardedHandler as default, deleteConsoleInvocation, getConsoleInvocationDetail };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AgentInvocationListResult } from "@vite-hub/agent";
|
|
2
|
-
//#region src/console/runtime/server/invocations.get.d.ts
|
|
3
2
|
/** What an `invocations.list` call reads. `id` reads those invocations only. */
|
|
4
3
|
interface ConsoleInvocationListQuery {
|
|
5
4
|
agent?: string;
|
|
@@ -11,4 +10,4 @@ interface ConsoleInvocationListQuery {
|
|
|
11
10
|
}
|
|
12
11
|
/** One page of Agent Invocations, newest first, for the `invocations.list` operation. */
|
|
13
12
|
export declare function listConsoleInvocations(query: ConsoleInvocationListQuery): Promise<AgentInvocationListResult>;
|
|
14
|
-
|
|
13
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as consoleHttpError } from "../../../http-error-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { t as getConsoleInvocations } from "../../../invocations-8NThe8Bx.js";
|
|
2
|
+
import { t as consoleHttpError } from "../../../http-error-BorAxJYM.js";
|
|
3
|
+
import { c as invocationUsage } from "../../../usage-ZV3TBMzE.js";
|
|
4
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
5
|
+
// src/console/runtime/server/invocations.get.ts
|
|
6
6
|
const defaultListLimit = 50;
|
|
7
7
|
const maximumListLimit = 100;
|
|
8
8
|
function invalidCursor() {
|
|
@@ -208,5 +208,4 @@ async function listConsoleInvocations(query) {
|
|
|
208
208
|
if (nextCursor) result.cursor = nextCursor;
|
|
209
209
|
return result;
|
|
210
210
|
}
|
|
211
|
-
//#endregion
|
|
212
211
|
export { listConsoleInvocations };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { o as LogSourceInfo, r as LogPage } from "../../../source-
|
|
4
|
-
//#region src/console/runtime/server/logs.get.d.ts
|
|
1
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CUbJLvlR.js";
|
|
2
|
+
import { n as ConsoleRoute, t as ConsoleRequestEvent } from "../../../request-BC_krbEr.js";
|
|
3
|
+
import { o as LogSourceInfo, r as LogPage } from "../../../source-DemBtwla.js";
|
|
5
4
|
export declare function consoleLogsHandler(event: ConsoleRequestEvent): Promise<{
|
|
6
5
|
source: LogSourceInfo;
|
|
7
6
|
page: LogPage;
|
|
@@ -12,5 +11,4 @@ export declare function consoleLogsHandler(event: ConsoleRequestEvent): Promise<
|
|
|
12
11
|
export declare const readConsoleLogs: ConsoleAccessRoute<typeof consoleLogsHandler>;
|
|
13
12
|
/** `GET <base>/_vitehub/console/logs` */
|
|
14
13
|
declare const consoleLogsRoute: ConsoleRoute;
|
|
15
|
-
//#endregion
|
|
16
14
|
export { consoleLogsRoute as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
1
|
+
import { t as getLogSource } from "../../../host-DeNPYIeV.js";
|
|
2
|
+
import { a as logPageSchema, c as parseLogQuery, s as logSourceInfoSchema, t as isLogCursorExpiredError } from "../../../source-DYFndd0W.js";
|
|
3
|
+
import { h as withConsoleAccess } from "../../../access-BBHk9b5P.js";
|
|
4
|
+
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-CQ8TkHLh.js";
|
|
5
|
+
import { t as consoleHttpError } from "../../../http-error-BorAxJYM.js";
|
|
6
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
7
7
|
import * as v from "valibot";
|
|
8
8
|
import { getStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
9
|
-
|
|
9
|
+
// src/console/runtime/server/logs.get.ts
|
|
10
10
|
/** A Logs failure that names its own code, which the route answers with. */
|
|
11
11
|
function isLogsDiagnostic(error) {
|
|
12
12
|
const code = error instanceof Error ? Reflect.get(error, "code") : void 0;
|
|
@@ -52,5 +52,4 @@ async function consoleLogsHandler(event) {
|
|
|
52
52
|
const readConsoleLogs = withConsoleAccess(consoleLogsHandler, { section: "logs" });
|
|
53
53
|
/** `GET <base>/_vitehub/console/logs` */
|
|
54
54
|
const consoleLogsRoute = consoleRoute(readConsoleLogs);
|
|
55
|
-
//#endregion
|
|
56
55
|
export { consoleLogsHandler, consoleLogsRoute as default, readConsoleLogs };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { n as AnyOperation } from "../../../operations-
|
|
2
|
-
//#region src/console/runtime/server/mcp-client-operations.d.ts
|
|
1
|
+
import { n as AnyOperation } from "../../../operations-DgFhA1WE.js";
|
|
3
2
|
/** The operations of the MCP client section. The Console contributes them only when `console.mcpClient` is on. */
|
|
4
|
-
export declare const consoleMcpClientOperations: readonly AnyOperation[];
|
|
5
|
-
//#endregion
|
|
3
|
+
export declare const consoleMcpClientOperations: readonly AnyOperation[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as defineConsoleOperation } from "../../../operations-vRLiH7dh.js";
|
|
2
|
+
import { i as consoleRequestError } from "../../../request-CQ8TkHLh.js";
|
|
3
3
|
import * as v from "valibot";
|
|
4
|
-
|
|
4
|
+
// src/console/runtime/server/mcp-client-operations.ts
|
|
5
5
|
const id = v.pipe(v.string(), v.minLength(1), v.maxLength(64));
|
|
6
6
|
const optionalText = v.optional(v.pipe(v.string(), v.maxLength(4096)));
|
|
7
7
|
const prompt = v.optional(v.picklist(["login"]));
|
|
@@ -22,7 +22,7 @@ function caller(context) {
|
|
|
22
22
|
...context.request ? { request: context.request } : {}
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
const server = () => import("../../../mcp-client-
|
|
25
|
+
const server = () => import("../../../mcp-client-DiObFpDS.js");
|
|
26
26
|
/** The operations of the MCP client section. The Console contributes them only when `console.mcpClient` is on. */
|
|
27
27
|
const consoleMcpClientOperations = [
|
|
28
28
|
defineConsoleOperation({
|
|
@@ -84,9 +84,8 @@ const consoleMcpClientOperations = [
|
|
|
84
84
|
}),
|
|
85
85
|
defineConsoleOperation({
|
|
86
86
|
cli: { positional: ["id", "kind"] },
|
|
87
|
-
description: "List the tools, resources, resource templates, or prompts of an MCP connection
|
|
87
|
+
description: "List all the tools, resources, resource templates, or prompts of an MCP connection.",
|
|
88
88
|
input: v.strictObject({
|
|
89
|
-
cursor: optionalText,
|
|
90
89
|
id,
|
|
91
90
|
kind: listKind
|
|
92
91
|
}),
|
|
@@ -135,5 +134,4 @@ const consoleMcpClientOperations = [
|
|
|
135
134
|
section: "mcp-client"
|
|
136
135
|
})
|
|
137
136
|
];
|
|
138
|
-
//#endregion
|
|
139
137
|
export { consoleMcpClientOperations };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as isHeldBackConsoleOperation, n as consoleOperationRegistry, r as installConsoleOperations, t as ConsoleOperationContribution } from "../../../operation-contributions-
|
|
1
|
+
import { i as isHeldBackConsoleOperation, n as consoleOperationRegistry, r as installConsoleOperations, t as ConsoleOperationContribution } from "../../../operation-contributions-BCcQVlGb.js";
|
|
2
2
|
export { ConsoleOperationContribution, consoleOperationRegistry, installConsoleOperations, isHeldBackConsoleOperation };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { consoleOperationRegistry, installConsoleOperations, isHeldBackConsoleOperation };
|
|
1
|
+
export { t as consoleOperationRegistry, n as installConsoleOperations, r as isHeldBackConsoleOperation } from "../../../operation-contributions-D10pjkJF.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as ConsolePageUser } from "../../../page-tool-
|
|
2
|
-
//#region src/console/runtime/server/page-auth.d.ts
|
|
1
|
+
import { n as ConsolePageUser } from "../../../page-tool-BUnUbuSy.js";
|
|
3
2
|
/**
|
|
4
3
|
* Whether Better Auth's `admin()` plugin counts a user as an admin: one of the comma-separated roles in `user.role` is
|
|
5
4
|
* in `adminRoles` (default `admin`), or the id is in `adminUserIds`. `VITEHUB_ADMINS` and `vitehub auth claim` give
|
|
@@ -14,5 +13,4 @@ export declare function isAuthAdmin(plugins: readonly unknown[] | undefined, use
|
|
|
14
13
|
* `console` role, which Site access gives to Console members, gets the link. `signOut` is Better Auth's sign-out route
|
|
15
14
|
* below the app's Auth `basePath`, for the account menu of the pill. Generated Console output loads it for apps with Auth.
|
|
16
15
|
*/
|
|
17
|
-
export declare function consolePageAuthUser(request: Request): Promise<ConsolePageUser | undefined>;
|
|
18
|
-
//#endregion
|
|
16
|
+
export declare function consolePageAuthUser(request: Request): Promise<ConsolePageUser | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useAuth } from "@vite-hub/auth/server";
|
|
2
|
-
|
|
2
|
+
// src/console/runtime/server/page-auth.ts
|
|
3
3
|
function strings(value) {
|
|
4
4
|
if (typeof value === "string") return value.split(",").map((entry) => entry.trim()).filter(Boolean);
|
|
5
5
|
return Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : [];
|
|
@@ -40,5 +40,4 @@ async function consolePageAuthUser(request) {
|
|
|
40
40
|
signOut: `${auth.options.basePath ?? "/api/auth"}/sign-out`
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { consolePageAuthUser, isAuthAdmin };
|