vite-hub 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -36
- package/dist/_internal/runtime/browser-errors.d.ts +1 -1
- package/dist/_internal/runtime/browser-errors.js +1 -1
- package/dist/{access-F0YP5D5E.js → access-BDST818p.js} +6 -6
- package/dist/{access-policy-BsB3QVe5.d.ts → access-policy-CGXhO3Ee.d.ts} +3 -3
- package/dist/{access-policy-B_DCpZUt.js → access-policy-DjBKLo3c.js} +2 -2
- package/dist/{account-Bsu-LBOF.d.ts → account-BnOAU055.d.ts} +1 -1
- package/dist/{agent-invocations.post-DIm8tJV2.js → agent-invocations.post-CcPvfA0n.js} +7 -7
- package/dist/{agents-DnHexzTJ.js → agents-BDeazoAW.js} +2 -2
- package/dist/{agents-y5hBFHUQ.js → agents-BoWau_ei.js} +1 -1
- package/dist/{auth-BFVHYizM.d.ts → auth-BZOy7obk.d.ts} +2 -2
- package/dist/{auth-types-DWpTBZvp.d.ts → auth-types-CyqhWvYF.d.ts} +1 -1
- package/dist/bin.js +15 -7
- package/dist/{blob-CiUmptIp.d.ts → blob-CFLwMsjH.d.ts} +1 -1
- package/dist/{blob-BRV6_wZa.js → blob-CpvlM8jp.js} +3 -3
- package/dist/cache/operations.d.ts +1 -1
- package/dist/cache/operations.js +2 -2
- package/dist/cache.js +1 -1
- package/dist/choices/vue.d.ts +1 -0
- package/dist/choices/vue.js +2 -0
- package/dist/choices.d.ts +1 -0
- package/dist/choices.js +2 -0
- package/dist/cli-config-UAGTmuFa.js +2 -0
- package/dist/{cli-config-Bpjjfz5j.js → cli-config-wxKjF2Y0.js} +1 -16
- package/dist/console/auth-types.d.ts +1 -1
- package/dist/console/auth.d.ts +1 -1
- package/dist/console/auth.js +1 -1
- package/dist/console/runtime/client/account.d.ts +1 -1
- package/dist/console/runtime/client/account.js +2 -2
- package/dist/console/runtime/client/blob-media.d.ts +1 -1
- package/dist/console/runtime/client/blob-media.js +3 -3
- package/dist/console/runtime/client/comment-thread.js +1 -1
- package/dist/console/runtime/client/content-heads.d.ts +45 -0
- package/dist/console/runtime/client/content-heads.js +58 -0
- package/dist/console/runtime/client/documents.d.ts +2 -2
- package/dist/console/runtime/client/documents.js +1 -1
- package/dist/console/runtime/client/editor.d.ts +1 -1
- package/dist/console/runtime/client/invocation.js +3 -3
- package/dist/console/runtime/client/live.d.ts +1 -1
- package/dist/console/runtime/client/mcp-client.js +1 -1
- package/dist/console/runtime/client/media-library.d.ts +1 -1
- package/dist/console/runtime/client/media-library.js +1 -1
- package/dist/console/runtime/client/media-uploads.d.ts +1 -1
- package/dist/console/runtime/client/media-uploads.js +1 -1
- package/dist/console/runtime/client/operation-view.d.ts +1 -1
- package/dist/console/runtime/client/operation-view.js +2 -2
- package/dist/console/runtime/client/presence.d.ts +1 -1
- package/dist/console/runtime/client/problem.js +2 -2
- package/dist/console/runtime/client/project-link.d.ts +1 -1
- package/dist/console/runtime/client/project-link.js +1 -1
- package/dist/console/runtime/client/project-session.d.ts +2 -2
- package/dist/console/runtime/client/project-session.js +4 -4
- package/dist/console/runtime/client/project.d.ts +1 -1
- package/dist/console/runtime/client/project.js +1 -1
- package/dist/console/runtime/client/publish.d.ts +1 -1
- package/dist/console/runtime/client/rate-limit.js +2 -2
- package/dist/console/runtime/client/read-only.d.ts +1 -1
- package/dist/console/runtime/client/read-only.js +1 -1
- package/dist/console/runtime/client/request.js +1 -1
- package/dist/console/runtime/client/schedule-run.js +2 -2
- package/dist/console/runtime/client/sections.d.ts +1 -1
- package/dist/console/runtime/client/sections.js +1 -1
- package/dist/console/runtime/client/sidebar.ts +1 -1
- package/dist/console/runtime/client/site-access.js +2 -2
- package/dist/console/runtime/client/ticket.js +1 -1
- package/dist/console/runtime/client/workflow.js +2 -2
- package/dist/console/runtime/components/console-content-heads.vue +72 -0
- package/dist/console/runtime/components/console-document-dashboard.vue +43 -35
- package/dist/console/runtime/components/console-documents.vue +1 -0
- package/dist/console/runtime/components/console-markdown-editor.vue +4 -1
- package/dist/console/runtime/components/invocation/agent-invocation.ts +18 -5
- package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
- package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +67 -12
- package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +12 -4
- package/dist/console/runtime/components/invocation/invocation.css +16 -0
- package/dist/console/runtime/console-route.js +1 -1
- package/dist/console/runtime/definitions.d.ts +1 -1
- package/dist/console/runtime/definitions.js +1 -1
- package/dist/console/runtime/diagnostics.ts +30 -30
- package/dist/console/runtime/page-tool/page-tool.js +1 -1
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +9 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +4 -4
- package/dist/console/runtime/sections.d.ts +1 -1
- package/dist/console/runtime/sections.js +1 -1
- package/dist/console/runtime/server/access-policy.d.ts +1 -1
- package/dist/console/runtime/server/access-policy.js +1 -1
- package/dist/console/runtime/server/agents.get.js +2 -2
- package/dist/console/runtime/server/auth.d.ts +1 -1
- package/dist/console/runtime/server/auth.js +2 -2
- package/dist/console/runtime/server/blob.d.ts +1 -1
- package/dist/console/runtime/server/blob.js +1 -1
- package/dist/console/runtime/server/channel-replay.d.ts +2 -2
- package/dist/console/runtime/server/channel-replay.js +4 -4
- package/dist/console/runtime/server/database.d.ts +1 -1
- package/dist/console/runtime/server/database.get.d.ts +1 -1
- package/dist/console/runtime/server/database.get.js +2 -2
- package/dist/console/runtime/server/database.js +1 -1
- package/dist/console/runtime/server/definitions.d.ts +1 -1
- package/dist/console/runtime/server/definitions.get.d.ts +3 -3
- package/dist/console/runtime/server/definitions.get.js +3 -3
- package/dist/console/runtime/server/definitions.js +1 -1
- package/dist/console/runtime/server/development.d.ts +2 -2
- package/dist/console/runtime/server/development.js +2 -2
- package/dist/console/runtime/server/documents.d.ts +1 -1
- package/dist/console/runtime/server/documents.js +1 -1
- package/dist/console/runtime/server/env.get.d.ts +1 -1
- package/dist/console/runtime/server/env.get.js +3 -3
- package/dist/console/runtime/server/invocation-capabilities.get.js +2 -2
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +1 -1
- package/dist/console/runtime/server/invocation-workspace.get.js +5 -5
- package/dist/console/runtime/server/invocation.get.d.ts +1 -1
- package/dist/console/runtime/server/invocation.get.js +6 -6
- package/dist/console/runtime/server/invocations.get.js +3 -3
- package/dist/console/runtime/server/logs.get.d.ts +2 -2
- package/dist/console/runtime/server/logs.get.js +5 -5
- package/dist/console/runtime/server/mcp-client-operations.d.ts +1 -1
- package/dist/console/runtime/server/mcp-client-operations.js +3 -3
- package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
- package/dist/console/runtime/server/operation-contributions.js +1 -1
- package/dist/console/runtime/server/page-auth.d.ts +1 -1
- package/dist/console/runtime/server/page-tool.d.ts +1 -1
- package/dist/console/runtime/server/page-tool.js +2 -2
- package/dist/console/runtime/server/rpc.d.ts +2 -2
- package/dist/console/runtime/server/rpc.js +7 -7
- package/dist/console/runtime/server/search.get.js +1 -1
- package/dist/console/runtime/server/sections.d.ts +4 -4
- package/dist/console/runtime/server/sections.get.d.ts +1 -1
- package/dist/console/runtime/server/sections.get.js +5 -5
- package/dist/console/runtime/server/sections.js +3 -3
- package/dist/console/runtime/server/setup.d.ts +3 -3
- package/dist/console/runtime/server/setup.js +2 -2
- package/dist/console/runtime/server/site-entry.d.ts +1 -1
- package/dist/console/runtime/server/site-entry.js +9 -6
- package/dist/console/runtime/server/site-session.d.ts +5 -1
- package/dist/console/runtime/server/site-session.js +1 -1
- package/dist/console/runtime/server/status.get.d.ts +2 -2
- package/dist/console/runtime/server/status.get.js +5 -5
- package/dist/console/runtime/server/tickets.d.ts +1 -1
- package/dist/console/runtime/server/tickets.js +1 -1
- package/dist/console/runtime/server/usage.get.d.ts +2 -2
- package/dist/console/runtime/server/usage.get.js +7 -7
- package/dist/console/runtime/server/workspace-files.get.d.ts +1 -1
- package/dist/console/runtime/server/workspace-files.get.js +3 -3
- package/dist/console/server.d.ts +5 -5
- package/dist/console/server.js +6 -6
- package/dist/console/ui.js +121 -20
- package/dist/{console-route-COvNB_Xj.js → console-route-CBuqZ4wO.js} +1 -1
- package/dist/{database-J7M0B3ED.js → database-BdOBjPkS.js} +1 -1
- package/dist/{database-BVyhAxq-.d.ts → database-DyPVMjp_.d.ts} +1 -1
- package/dist/{definitions-BDRkT5-f.js → definitions-BW6SvmMM.js} +1 -0
- package/dist/{definitions-bepsXY5G.js → definitions-CNq_Shkh.js} +3 -3
- package/dist/{definitions-CxDT8D8Y.d.ts → definitions-DB4LbZ7T.d.ts} +2 -0
- package/dist/{definitions-CGTWTj67.d.ts → definitions-Dbgxfz3I.d.ts} +1 -1
- package/dist/development-W5EwONyL.d.ts +12 -0
- package/dist/{development-BzeSHZGH.js → development-zLxOp-AO.js} +12 -2
- package/dist/{diagnostics-D0DefmQj.js → diagnostics-9U_fYxMy.js} +30 -30
- package/dist/doctor.js +88 -107
- package/dist/{documents-C97WMaJZ.d.ts → documents-BASIRZ91.d.ts} +1 -1
- package/dist/{documents-RVHsQKFw.d.ts → documents-CboVhYFz.d.ts} +3 -3
- package/dist/{documents-DwPfR-fz.js → documents-CjJTCrY8.js} +3 -3
- package/dist/{documents-8US1nUgK.js → documents-qrHHqlNU.js} +1 -1
- package/dist/durability/operations.d.ts +1 -1
- package/dist/durability/operations.js +2 -2
- package/dist/{entries-D48wVEaS.js → entries-Bj-jPs_J.js} +1 -1
- package/dist/{error-diagnostics-C2rjmOlX.js → error-diagnostics-Bm3JKYjz.js} +19 -11
- package/dist/error-diagnostics.ts +19 -11
- package/dist/index.d.ts +15 -2
- package/dist/index.js +8 -4
- package/dist/internal/disabled-redis-driver.js +1 -1
- package/dist/internal/disabled-upstash-driver.js +1 -1
- package/dist/internal/test-loader.js +1 -1
- package/dist/internal/test-server.js +1 -1
- package/dist/{internal-BP_O70ic.d.ts → internal-CO4OqqaS.d.ts} +3 -3
- package/dist/{invocation-page-undo-BkUau8X7.js → invocation-page-undo-DIZ-s3xT.js} +2 -2
- package/dist/{invocations-CsucCJuq.js → invocations-CK_-G540.js} +3 -3
- package/dist/logs/memory.js +1 -1
- package/dist/logs/source.js +1 -1
- package/dist/logs.js +2 -2
- package/dist/{mcp-client-D0mUt18v.js → mcp-client-By4zk0vU.js} +6 -6
- package/dist/{media-wZMY6f2M.js → media-BHpQ-4jw.js} +4 -4
- package/dist/{media-library-CEo-Ye2B.d.ts → media-library-D9ThbXqs.d.ts} +1 -1
- package/dist/{media-library-BChf8XOd.js → media-library-NaOMBKWS.js} +2 -2
- package/dist/{memory-DhirB6SA.js → memory-DTmq-Z6x.js} +2 -2
- package/dist/{nuxt-server-imports-Lnaf5Fe-.js → nuxt-server-imports-DH60Z7LA.js} +3 -2
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +94 -67
- package/dist/{operation-contributions-DflAv5AC.js → operation-contributions-BdS0z3tx.js} +2 -2
- package/dist/{operation-contributions-fZyVo662.d.ts → operation-contributions-DpkO_iSU.d.ts} +1 -1
- package/dist/{operation-definition-Bn8V2hab.js → operation-definition-a5keEpCd.js} +6 -1
- package/dist/{operations-DX9EkHwb.d.ts → operations-B0689BG1.d.ts} +5 -0
- package/dist/operations-CAQmIxGK.js +2 -0
- package/dist/{operations-B6N-ja8x.js → operations-CWP9dF3i.js} +11 -11
- package/dist/{operations-Dj_cp-UK.js → operations-EOdyctDc.js} +1 -1
- package/dist/{optional-owners-Crm6kVS5.js → optional-owners-BNA2OX6z.js} +37 -23
- package/dist/{page-tool-BCRyx3pM.d.ts → page-tool-CRCK1RHV.d.ts} +1 -1
- package/dist/{plugins-DQ8pF-38.js → plugins-B-DpgDPB.js} +1459 -714
- package/dist/{plugins-5uDXr9Km.d.ts → plugins-BqAtIEX2.d.ts} +75 -56
- package/dist/{project-C2dnB9Kf.js → project-C4N_Zcjl.js} +3 -3
- package/dist/{project-5EN7JaXI.d.ts → project-CufkVP1u.d.ts} +2 -2
- package/dist/{project-DOeM0zg3.js → project-DlWTGB7h.js} +1 -1
- package/dist/{project-link-D_XQvBOC.d.ts → project-link-BuOzBH9f.d.ts} +1 -1
- package/dist/{project-link-Qi7nltHM.js → project-link-D-6UefhA.js} +2 -2
- package/dist/{request-yCybBeqT.js → request-DE8w_cSM.js} +8 -3
- package/dist/{request-BUYAlAJl.js → request-DbFfYmCu.js} +2 -2
- package/dist/{runtime-DM8Z6KLT.js → runtime-DQuHg7OO.js} +1 -1
- package/dist/{runtime-DG34DLXc.js → runtime-OsEDfbM9.js} +1 -1
- package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
- package/dist/scan-module-D_3X08mj.js +2 -0
- package/dist/scan-module-Df58L_6T.js +311 -0
- package/dist/{secret-AZLhaNyr.js → secret-Dy5uqvq9.js} +1 -1
- package/dist/{sections-BriKrBgN.d.ts → sections-BogiCmtz.d.ts} +2 -2
- package/dist/{sections-ACHVTCWn.d.ts → sections-CyrXbbkG.d.ts} +4 -4
- package/dist/{sections-4xyBoiar.d.ts → sections-Do7X4Nwt.d.ts} +1 -2
- package/dist/{sections-D6AM5Gy5.js → sections-DumoLKQN.js} +2 -3
- package/dist/{sections-CUJyQA9d.js → sections-et20h8w3.js} +3 -3
- package/dist/{sections.get-1lHjyKCI.d.ts → sections.get-COiLcQ0P.d.ts} +2 -2
- package/dist/seo/runtime.js +1 -1
- package/dist/{server-DbjFYSeU.js → server-BRJE4t-W.js} +2 -2
- package/dist/{setup-DLZFzuLv.d.ts → setup-ZbA1by7W.d.ts} +4 -3
- package/dist/{site-access-Bhsty_v4.js → site-access-BbJUe5QI.js} +1 -1
- package/dist/{site-access-CyRtc0gZ.js → site-access-BmE8HGxs.js} +4 -4
- package/dist/{site-session-Jf21TVw8.js → site-session-odJq1dYa.js} +5 -5
- package/dist/skills/operations.d.ts +1 -1
- package/dist/skills/operations.js +2 -2
- package/dist/skills.d.ts +1 -1
- package/dist/{skills.get-CHQMzSD_.js → skills.get-Bl8cBe8u.js} +2 -2
- package/dist/{source-w9BHUwyO.js → source-D4wWtoHh.js} +1 -1
- package/dist/task/operations.d.ts +1 -1
- package/dist/task/operations.js +2 -2
- package/dist/test/register.js +1 -1
- package/dist/{ticket-RKQF6Wy9.js → ticket-Cudn1dq3.js} +1 -1
- package/dist/{tickets-CfJhT7d0.js → tickets-C_0Fhc00.js} +6 -6
- package/dist/{usage-Bc0YY_ka.js → usage-B4taNt4a.js} +1 -1
- package/dist/{usage-index-CMMT4cXQ.js → usage-index-BsGAFzyq.js} +1 -1
- package/dist/{version-DDRL_OYz.js → version-DNmSsk5r.js} +22 -19
- package/dist/{cli-DjoDGgT4.js → vite-stage-mmtwQIMA.js} +32 -2
- package/dist/{workspace-history-l47NPVSy.js → workspace-history-CraoERnc.js} +1 -1
- package/package.json +93 -93
- package/dist/cli-config--rAg6V-a.js +0 -2
- package/dist/decisions/vue.d.ts +0 -1
- package/dist/decisions/vue.js +0 -2
- package/dist/decisions.d.ts +0 -1
- package/dist/decisions.js +0 -2
- package/dist/development-DgaQ05jw.d.ts +0 -9
- package/dist/operations-H9q0QB2C.js +0 -2
- package/dist/runtime-feature-guard-rpZz1eMF.js +0 -55
- package/dist/scan-module-BTeOuZsp.js +0 -2
- package/dist/scan-module-DlHQ8a0X.js +0 -148
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { s as ConsoleAccessRoute } from "../../../access-policy-
|
|
2
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
3
|
import { ServerEnvDescription } from "@vite-hub/env";
|
|
4
4
|
//#region src/console/runtime/server/env.get.d.ts
|
|
5
5
|
/** Returns declaration metadata. The `env.inspect` operation of Env returns the status of each value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-
|
|
2
|
-
import { h as withConsoleAccess } from "../../../access-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
|
|
2
|
+
import { h as withConsoleAccess } from "../../../access-BDST818p.js";
|
|
3
3
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
4
|
-
import { t as assertConsoleRequest } from "../../../request-
|
|
4
|
+
import { t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
|
|
5
5
|
import { r as getConsoleSections } from "../../../sections-C83x0slv.js";
|
|
6
6
|
import { t as getConsoleEnv } from "../../../env-Dg1I_DWr.js";
|
|
7
7
|
//#region src/console/runtime/server/env.get.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
|
|
2
2
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
3
|
-
import { t as getConsoleInvocations } from "../../../invocations-
|
|
3
|
+
import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
|
|
4
4
|
//#region 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) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { s as ConsoleAccessRoute } from "../../../access-policy-
|
|
2
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
3
|
import { n as WorkspaceFileResponse, t as WorkspaceDescriptor } from "../../../workspace-history-CeVwBB6Q.js";
|
|
4
4
|
//#region src/console/runtime/server/invocation-workspace.get.d.ts
|
|
5
5
|
declare function consoleInvocationWorkspaceHandler(event: ConsoleRequestEvent): Promise<WorkspaceDescriptor | WorkspaceFileResponse>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h as withConsoleAccess } from "../../../access-
|
|
2
|
-
import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-
|
|
3
|
-
import { t as getConsoleInvocations } from "../../../invocations-
|
|
4
|
-
import { s as getConsoleAgentDefinition } from "../../../agents-
|
|
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 { h as withConsoleAccess } from "../../../access-BDST818p.js";
|
|
2
|
+
import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
|
|
3
|
+
import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
|
|
4
|
+
import { s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
|
|
5
|
+
import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-CraoERnc.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { s as ConsoleAccessRoute } from "../../../access-policy-
|
|
2
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
3
|
import { t as invocationUsage } from "../../../usage-CoQXs5nW.js";
|
|
4
4
|
import { AgentInvocationCancelResult, AgentInvocationDeleteOutcome, AgentInvocationRerunUnavailableReason, AgentInvocationSummary } from "@vite-hub/agent";
|
|
5
5
|
import { TraceEventLogEntry } from "@vite-hub/runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-
|
|
2
|
-
import { h as withConsoleAccess } from "../../../access-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
|
|
2
|
+
import { h as withConsoleAccess } from "../../../access-BDST818p.js";
|
|
3
3
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
4
|
-
import { a as consoleRequestJSON, i as consoleRequestError, o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-
|
|
5
|
-
import { t as getConsoleInvocations } from "../../../invocations-
|
|
6
|
-
import { r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../../agents-
|
|
7
|
-
import { c as invocationUsage } from "../../../usage-
|
|
4
|
+
import { a as consoleRequestJSON, i as consoleRequestError, o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
|
|
5
|
+
import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
|
|
6
|
+
import { r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
|
|
7
|
+
import { c as invocationUsage } from "../../../usage-B4taNt4a.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
|
|
2
2
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
3
|
-
import { t as getConsoleInvocations } from "../../../invocations-
|
|
4
|
-
import { c as invocationUsage } from "../../../usage-
|
|
3
|
+
import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
|
|
4
|
+
import { c as invocationUsage } from "../../../usage-B4taNt4a.js";
|
|
5
5
|
//#region src/console/runtime/server/invocations.get.ts
|
|
6
6
|
const defaultListLimit = 50;
|
|
7
7
|
const maximumListLimit = 100;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ConsoleRoute, t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { s as ConsoleAccessRoute } from "../../../access-policy-
|
|
2
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
3
|
import { o as LogSourceInfo, r as LogPage } from "../../../source-S-LChQvw.js";
|
|
4
4
|
//#region src/console/runtime/server/logs.get.d.ts
|
|
5
5
|
export declare function consoleLogsHandler(event: ConsoleRequestEvent): Promise<{
|
|
@@ -10,7 +10,7 @@ export declare function consoleLogsHandler(event: ConsoleRequestEvent): Promise<
|
|
|
10
10
|
}>;
|
|
11
11
|
/** The log page, for the `logs.list` operation. */
|
|
12
12
|
export declare const readConsoleLogs: ConsoleAccessRoute<typeof consoleLogsHandler>;
|
|
13
|
-
/** `GET <base>/
|
|
13
|
+
/** `GET <base>/_vitehub/console/logs` */
|
|
14
14
|
declare const consoleLogsRoute: ConsoleRoute;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { consoleLogsRoute as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-
|
|
2
|
-
import { h as withConsoleAccess } from "../../../access-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
|
|
2
|
+
import { h as withConsoleAccess } from "../../../access-BDST818p.js";
|
|
3
3
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
4
|
-
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-
|
|
5
|
-
import { a as logPageSchema, c as parseLogQuery, s as logSourceInfoSchema, t as isLogCursorExpiredError } from "../../../source-
|
|
4
|
+
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
|
|
5
|
+
import { a as logPageSchema, c as parseLogQuery, s as logSourceInfoSchema, t as isLogCursorExpiredError } from "../../../source-D4wWtoHh.js";
|
|
6
6
|
import { t as getLogSource } from "../../../host-CkL0jjBq.js";
|
|
7
7
|
import * as v from "valibot";
|
|
8
8
|
import { getStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
@@ -50,7 +50,7 @@ async function consoleLogsHandler(event) {
|
|
|
50
50
|
}
|
|
51
51
|
/** The log page, for the `logs.list` operation. */
|
|
52
52
|
const readConsoleLogs = withConsoleAccess(consoleLogsHandler, { section: "logs" });
|
|
53
|
-
/** `GET <base>/
|
|
53
|
+
/** `GET <base>/_vitehub/console/logs` */
|
|
54
54
|
const consoleLogsRoute = consoleRoute(readConsoleLogs);
|
|
55
55
|
//#endregion
|
|
56
56
|
export { consoleLogsHandler, consoleLogsRoute as default, readConsoleLogs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as AnyOperation } from "../../../operations-
|
|
1
|
+
import { n as AnyOperation } from "../../../operations-B0689BG1.js";
|
|
2
2
|
//#region src/console/runtime/server/mcp-client-operations.d.ts
|
|
3
3
|
/** The operations of the MCP client section. The Console contributes them only when `console.mcpClient` is on. */
|
|
4
4
|
export declare const consoleMcpClientOperations: readonly AnyOperation[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as consoleRequestError } from "../../../request-
|
|
2
|
-
import { r as defineConsoleOperation } from "../../../operations-
|
|
1
|
+
import { i as consoleRequestError } from "../../../request-DbFfYmCu.js";
|
|
2
|
+
import { r as defineConsoleOperation } from "../../../operations-CWP9dF3i.js";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
//#region src/console/runtime/server/mcp-client-operations.ts
|
|
5
5
|
const id = v.pipe(v.string(), v.minLength(1), v.maxLength(64));
|
|
@@ -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-By4zk0vU.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({
|
|
@@ -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-DpkO_iSU.js";
|
|
2
2
|
export { ConsoleOperationContribution, consoleOperationRegistry, installConsoleOperations, isHeldBackConsoleOperation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as installConsoleOperations, r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-
|
|
1
|
+
import { n as installConsoleOperations, r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-BdS0z3tx.js";
|
|
2
2
|
export { consoleOperationRegistry, installConsoleOperations, isHeldBackConsoleOperation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ConsolePageUser } from "../../../page-tool-
|
|
1
|
+
import { n as ConsolePageUser } from "../../../page-tool-CRCK1RHV.js";
|
|
2
2
|
//#region src/console/runtime/server/page-auth.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Whether Better Auth's `admin()` plugin counts a user as an admin: one of the comma-separated roles in `user.role` is
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as installConsolePageTool, i as consolePageToolAllowed, n as ConsolePageUser, r as consolePageAccount, t as ConsolePageToolOptions } from "../../../page-tool-
|
|
1
|
+
import { a as installConsolePageTool, i as consolePageToolAllowed, n as ConsolePageUser, r as consolePageAccount, t as ConsolePageToolOptions } from "../../../page-tool-CRCK1RHV.js";
|
|
2
2
|
export { ConsolePageToolOptions, ConsolePageUser, consolePageAccount, consolePageToolAllowed, installConsolePageTool };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections } from "../../../access-policy-
|
|
1
|
+
import { i as isConsoleDevelopmentBuild } from "../../../development-zLxOp-AO.js";
|
|
2
|
+
import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections } from "../../../access-policy-DjBKLo3c.js";
|
|
3
3
|
import { i as registerViteHubPageTool, n as installViteHubSiteVisitor, r as registerViteHubPageAccount, t as installViteHubPageTools } from "../../../page-tools-BkSSBFoi.js";
|
|
4
4
|
import { installRequestStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
5
5
|
import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ConsoleRoute } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { o as ConsoleAccess } from "../../../access-policy-
|
|
3
|
-
import { n as consoleOperationRegistry } from "../../../operation-contributions-
|
|
2
|
+
import { o as ConsoleAccess } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
|
+
import { n as consoleOperationRegistry } from "../../../operation-contributions-DpkO_iSU.js";
|
|
4
4
|
//#region src/console/runtime/server/rpc.d.ts
|
|
5
5
|
interface ConsoleRpcContext {
|
|
6
6
|
/** The checked access of the RPC request. Each operation runs with it. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as readOperationRpcCall, i as operationRpcRefusal, t as answerOperationRpc } from "../../../operation-rpc-DI9txNxK.js";
|
|
2
2
|
import { t as consoleRpcHeader } from "../../../rpc-DIUA61pv.js";
|
|
3
|
-
import { t as consoleDiagnostic } from "../../../diagnostics-
|
|
3
|
+
import { t as consoleDiagnostic } from "../../../diagnostics-9U_fYxMy.js";
|
|
4
4
|
import { a as consoleBodySha256 } from "../../../dev-peer-am78OsHH.js";
|
|
5
|
-
import { c as operationCall, d as operationSection, h as projectRootHash, m as parseOperationInput, n as assertOperationConfirmed, o as operationAccessAllows, r as assertOperationProject, s as operationAccessDenial, t as assertOperationConfirmation, u as operationRootHeader } from "../../../operations-
|
|
6
|
-
import {
|
|
7
|
-
import { _ as isConsoleRpcPath, h as withConsoleAccess, m as readConsoleOperationUser, r as consoleAccessAllows } from "../../../access-
|
|
5
|
+
import { c as operationCall, d as operationSection, h as projectRootHash, m as parseOperationInput, n as assertOperationConfirmed, o as operationAccessAllows, r as assertOperationProject, s as operationAccessDenial, t as assertOperationConfirmation, u as operationRootHeader } from "../../../operations-EOdyctDc.js";
|
|
6
|
+
import { t as consoleDevelopmentContext } from "../../../development-zLxOp-AO.js";
|
|
7
|
+
import { _ as isConsoleRpcPath, h as withConsoleAccess, m as readConsoleOperationUser, r as consoleAccessAllows } from "../../../access-BDST818p.js";
|
|
8
8
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
9
|
-
import { i as consoleRequestError, n as consoleErrorResult, s as consoleRoute } from "../../../request-
|
|
9
|
+
import { i as consoleRequestError, n as consoleErrorResult, s as consoleRoute } from "../../../request-DbFfYmCu.js";
|
|
10
10
|
import { n as installedConsoleProjectRoot } from "../../../project-root-v6ba4tn7.js";
|
|
11
|
-
import { r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-
|
|
11
|
+
import { r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-BdS0z3tx.js";
|
|
12
12
|
import * as v from "valibot";
|
|
13
13
|
import { getStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
14
14
|
//#region src/console/runtime/server/rpc.ts
|
|
@@ -150,7 +150,7 @@ async function runConsoleOperation(operation, rawInput, request, context) {
|
|
|
150
150
|
const user = operation.user === false ? void 0 : await readConsoleOperationUser(context.access);
|
|
151
151
|
const operationContext = {
|
|
152
152
|
access: context.access,
|
|
153
|
-
|
|
153
|
+
...consoleDevelopmentContext(),
|
|
154
154
|
request,
|
|
155
155
|
response: context.response,
|
|
156
156
|
surface: mcp ? "mcp" : context.access.via === "cli" || context.access.via === "console" ? context.access.via : request.headers.get("x-vitehub-surface") === "cli" ? "cli" : "console",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getConsoleInvocations } from "../../../invocations-
|
|
1
|
+
import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
|
|
2
2
|
import { defineCollection } from "@vite-hub/source";
|
|
3
3
|
import { defineCollectionHandler } from "@vite-hub/source/server";
|
|
4
4
|
//#region src/console/runtime/server/search.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as ConsoleRealtimeAccess, i as installConsoleAccess, l as ConsoleRealtimeUser, u as consoleRealtimeAccess } from "../../../access-policy-
|
|
2
|
-
import {
|
|
1
|
+
import { c as ConsoleRealtimeAccess, i as installConsoleAccess, l as ConsoleRealtimeUser, u as consoleRealtimeAccess } from "../../../access-policy-CGXhO3Ee.js";
|
|
2
|
+
import { r as installConsoleDevelopment } from "../../../development-W5EwONyL.js";
|
|
3
3
|
import { t as installConsoleRuntime } from "../../../runtime-B_btezs1.js";
|
|
4
|
-
import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-
|
|
5
|
-
import { n as getConsoleProjectName, r as getConsoleSections, t as getConsoleBuild } from "../../../sections-
|
|
4
|
+
import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-ZbA1by7W.js";
|
|
5
|
+
import { n as getConsoleProjectName, r as getConsoleSections, t as getConsoleBuild } from "../../../sections-CyrXbbkG.js";
|
|
6
6
|
export { type ConsoleRealtimeAccess, type ConsoleRealtimeUser, consoleRealtimeAccess, getConsoleBuild, getConsoleProjectName, getConsoleSections, installConsoleAccess, installConsoleBuild, installConsoleDevelopment, installConsoleProjectName, installConsoleRuntime, installConsoleSections, installConsoleVersion };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as listConsoleSections, t as ConsoleSectionsResponse } from "../../../sections.get-
|
|
1
|
+
import { n as listConsoleSections, t as ConsoleSectionsResponse } from "../../../sections.get-COiLcQ0P.js";
|
|
2
2
|
export { ConsoleSectionsResponse, listConsoleSections };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as consoleState } from "../../../internal-BreyUsQ6.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as consoleAccessWrites, t as allowedConsoleSections } from "../../../access-
|
|
2
|
+
import { n as consoleSetupRoute } from "../../../development-zLxOp-AO.js";
|
|
3
|
+
import { a as consoleAccessWrites, t as allowedConsoleSections } from "../../../access-BDST818p.js";
|
|
4
4
|
import { n as getConsoleProjectName, r as getConsoleSections } from "../../../sections-C83x0slv.js";
|
|
5
|
-
import { n as getConsoleContributedSections } from "../../../definitions-
|
|
6
|
-
import { t as consoleOperationRegistry } from "../../../operation-contributions-
|
|
5
|
+
import { n as getConsoleContributedSections } from "../../../definitions-CNq_Shkh.js";
|
|
6
|
+
import { t as consoleOperationRegistry } from "../../../operation-contributions-BdS0z3tx.js";
|
|
7
7
|
//#region src/console/runtime/server/sections.get.ts
|
|
8
8
|
/** Whether an Agent field such as `channels` lists at least one entry, as an array or a record. */
|
|
9
9
|
function hasEntries(value) {
|
|
@@ -18,7 +18,7 @@ async function emptySections(sections) {
|
|
|
18
18
|
const empty = /* @__PURE__ */ new Set();
|
|
19
19
|
if (sections.includes("env") && !(await import("./env.js")).getConsoleEnv().entries.length) empty.add("env");
|
|
20
20
|
if (import.meta.viteHubConsoleAgents !== false && (sections.includes("skills") || sections.includes("channels"))) {
|
|
21
|
-
const { getConsoleAgentDefinition, getConsoleAgents } = await import("../../../agents-
|
|
21
|
+
const { getConsoleAgentDefinition, getConsoleAgents } = await import("../../../agents-BoWau_ei.js");
|
|
22
22
|
const definitions = getConsoleAgents().map((name) => getConsoleAgentDefinition(name, "inspect"));
|
|
23
23
|
if (sections.includes("channels") && !definitions.some((definition) => hasEntries(definition?.channels))) empty.add("channels");
|
|
24
24
|
if (sections.includes("skills")) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as installConsoleAccess } from "../../../access-policy-
|
|
3
|
-
import { u as consoleRealtimeAccess } from "../../../access-
|
|
1
|
+
import { r as installConsoleDevelopment } from "../../../development-zLxOp-AO.js";
|
|
2
|
+
import { i as installConsoleAccess } from "../../../access-policy-DjBKLo3c.js";
|
|
3
|
+
import { u as consoleRealtimeAccess } from "../../../access-BDST818p.js";
|
|
4
4
|
import { t as installConsoleRuntime } from "../../../runtime-DxfJOfCd.js";
|
|
5
5
|
import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-C-5nB7aY.js";
|
|
6
6
|
import { n as getConsoleProjectName, r as getConsoleSections, t as getConsoleBuild } from "../../../sections-C83x0slv.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as installConsoleAccess } from "../../../access-policy-
|
|
2
|
-
import {
|
|
1
|
+
import { i as installConsoleAccess } from "../../../access-policy-CGXhO3Ee.js";
|
|
2
|
+
import { r as installConsoleDevelopment } from "../../../development-W5EwONyL.js";
|
|
3
3
|
import { t as installConsoleRuntime } from "../../../runtime-B_btezs1.js";
|
|
4
|
-
import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-
|
|
4
|
+
import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-ZbA1by7W.js";
|
|
5
5
|
export { installConsoleAccess, installConsoleBuild, installConsoleDevelopment, installConsoleProjectName, installConsoleRuntime, installConsoleSections, installConsoleVersion };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as installConsoleAccess } from "../../../access-policy-
|
|
1
|
+
import { r as installConsoleDevelopment } from "../../../development-zLxOp-AO.js";
|
|
2
|
+
import { i as installConsoleAccess } from "../../../access-policy-DjBKLo3c.js";
|
|
3
3
|
import { t as installConsoleRuntime } from "../../../runtime-DxfJOfCd.js";
|
|
4
4
|
import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-C-5nB7aY.js";
|
|
5
5
|
export { installConsoleAccess, installConsoleBuild, installConsoleDevelopment, installConsoleProjectName, installConsoleRuntime, installConsoleSections, installConsoleVersion };
|
|
@@ -2,7 +2,7 @@ import { n as ConsoleRoute } from "../../../request-D7h3SQ92.js";
|
|
|
2
2
|
//#region src/console/runtime/server/site-entry.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* The first path segments below `/_vitehub` that ViteHub serves itself, such as `/_vitehub/rpc` of the Console and
|
|
5
|
-
* `/_vitehub/blob
|
|
5
|
+
* `/_vitehub/blob-signed` of Blob. `/_vitehub/<name>/...` never goes back to a page: the route answers 404 for a path
|
|
6
6
|
* that no ViteHub route served. Open such a page and follow a link to `/_vitehub` from it.
|
|
7
7
|
*/
|
|
8
8
|
export declare const siteEntryReservedNames: ReadonlySet<string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as installedConsoleAccessPolicy } from "../../../access-policy-
|
|
2
|
-
import { g as isConsoleLoopbackRequest } from "../../../access-
|
|
3
|
-
import { c as isConsoleDevelopmentRuntime, i as consoleRequestError, s as consoleRoute } from "../../../request-
|
|
1
|
+
import { a as installedConsoleAccessPolicy } from "../../../access-policy-DjBKLo3c.js";
|
|
2
|
+
import { g as isConsoleLoopbackRequest } from "../../../access-BDST818p.js";
|
|
3
|
+
import { c as isConsoleDevelopmentRuntime, i as consoleRequestError, s as consoleRoute } from "../../../request-DbFfYmCu.js";
|
|
4
4
|
import { n as siteStateCookie } from "../../../site-access-BycrwM2v.js";
|
|
5
5
|
import { s as viteHubPageToolAllows } from "../../../page-tools-BkSSBFoi.js";
|
|
6
|
-
import { a as base64url, f as seeOther, n as appOrigin } from "../../../tickets-
|
|
7
|
-
import { l as withPageTools } from "../../../site-access-
|
|
6
|
+
import { a as base64url, f as seeOther, n as appOrigin } from "../../../tickets-C_0Fhc00.js";
|
|
7
|
+
import { l as withPageTools } from "../../../site-access-BmE8HGxs.js";
|
|
8
8
|
import { getStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
9
9
|
import { hostedConsoleOrigin } from "@vite-hub/runtime";
|
|
10
10
|
//#region src/console/runtime/server/site-entry.ts
|
|
@@ -29,7 +29,7 @@ const siteStateLifetime = 600;
|
|
|
29
29
|
const entrySegment = /\/_vitehub(?=\/|$)/;
|
|
30
30
|
/**
|
|
31
31
|
* The first path segments below `/_vitehub` that ViteHub serves itself, such as `/_vitehub/rpc` of the Console and
|
|
32
|
-
* `/_vitehub/blob
|
|
32
|
+
* `/_vitehub/blob-signed` of Blob. `/_vitehub/<name>/...` never goes back to a page: the route answers 404 for a path
|
|
33
33
|
* that no ViteHub route served. Open such a page and follow a link to `/_vitehub` from it.
|
|
34
34
|
*/
|
|
35
35
|
const siteEntryReservedNames = /* @__PURE__ */ new Set([
|
|
@@ -39,6 +39,8 @@ const siteEntryReservedNames = /* @__PURE__ */ new Set([
|
|
|
39
39
|
"agents",
|
|
40
40
|
"api",
|
|
41
41
|
"blob",
|
|
42
|
+
"blob-signed",
|
|
43
|
+
"browser-errors",
|
|
42
44
|
"channel-task",
|
|
43
45
|
"channels",
|
|
44
46
|
"comments",
|
|
@@ -56,6 +58,7 @@ const siteEntryReservedNames = /* @__PURE__ */ new Set([
|
|
|
56
58
|
"realtime",
|
|
57
59
|
"rpc",
|
|
58
60
|
"schedule",
|
|
61
|
+
"sync",
|
|
59
62
|
"warm",
|
|
60
63
|
"webhook-queue"
|
|
61
64
|
]);
|
|
@@ -29,7 +29,11 @@ export interface ConsoleSiteKV {
|
|
|
29
29
|
getAndDelete: (key: string, options: {
|
|
30
30
|
type: "text";
|
|
31
31
|
}) => Promise<readonly [unknown, string | null | undefined]>;
|
|
32
|
-
|
|
32
|
+
list: (options: {
|
|
33
|
+
prefix: string;
|
|
34
|
+
}) => Promise<readonly [unknown, {
|
|
35
|
+
keys: string[];
|
|
36
|
+
} | undefined]>;
|
|
33
37
|
delete: (key: string) => Promise<readonly [unknown, unknown]>;
|
|
34
38
|
}
|
|
35
39
|
/** The keys of a KV store below a prefix. Some drivers list keys with `/` where the key had `:`. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as listConsoleSiteSessions, c as requireConsoleSiteKey, i as consoleSiteLifetime, l as revokeConsoleSiteSession, n as consoleSiteKV, o as openConsoleSiteSession, r as consoleSiteKeys, s as readConsoleSiteVisitor, t as consoleSiteCookie, u as setConsoleSiteKV } from "../../../site-session-
|
|
1
|
+
import { a as listConsoleSiteSessions, c as requireConsoleSiteKey, i as consoleSiteLifetime, l as revokeConsoleSiteSession, n as consoleSiteKV, o as openConsoleSiteSession, r as consoleSiteKeys, s as readConsoleSiteVisitor, t as consoleSiteCookie, u as setConsoleSiteKV } from "../../../site-session-odJq1dYa.js";
|
|
2
2
|
export { consoleSiteCookie, consoleSiteKV, consoleSiteKeys, consoleSiteLifetime, listConsoleSiteSessions, openConsoleSiteSession, readConsoleSiteVisitor, requireConsoleSiteKey, revokeConsoleSiteSession, setConsoleSiteKV };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ConsoleRoute, t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { s as ConsoleAccessRoute } from "../../../access-policy-
|
|
2
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
3
|
import { AgentProviderStatus } from "@vite-hub/agent";
|
|
4
4
|
import { ObservabilityStatus } from "@vite-hub/agent/observability";
|
|
5
5
|
//#region src/console/runtime/server/status.get.d.ts
|
|
@@ -10,7 +10,7 @@ declare function statusHandler(event: ConsoleRequestEvent): Promise<{
|
|
|
10
10
|
}>;
|
|
11
11
|
/** The status of the Agents, for the `status.get` operation. */
|
|
12
12
|
export declare const readConsoleStatus: ConsoleAccessRoute<typeof statusHandler>;
|
|
13
|
-
/** `GET <base>/
|
|
13
|
+
/** `GET <base>/_vitehub/console/status` */
|
|
14
14
|
declare const consoleStatusRoute: ConsoleRoute;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { consoleStatusRoute as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-
|
|
2
|
-
import { h as withConsoleAccess } from "../../../access-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
|
|
2
|
+
import { h as withConsoleAccess } from "../../../access-BDST818p.js";
|
|
3
3
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
4
|
-
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-
|
|
5
|
-
import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-
|
|
4
|
+
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
|
|
5
|
+
import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
|
|
6
6
|
import { createAgentStatusReader } from "@vite-hub/agent/server";
|
|
7
7
|
import { observabilityStatus } from "@vite-hub/agent/server/internal";
|
|
8
8
|
//#region src/console/runtime/server/status.get.ts
|
|
@@ -24,7 +24,7 @@ async function statusHandler(event) {
|
|
|
24
24
|
}
|
|
25
25
|
/** The status of the Agents, for the `status.get` operation. */
|
|
26
26
|
const readConsoleStatus = withConsoleAccess(statusHandler, { section: "agents" });
|
|
27
|
-
/** `GET <base>/
|
|
27
|
+
/** `GET <base>/_vitehub/console/status` */
|
|
28
28
|
const consoleStatusRoute = consoleRoute(readConsoleStatus);
|
|
29
29
|
//#endregion
|
|
30
30
|
export { consoleStatusRoute as default, readConsoleStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as setConsoleTicketStore, S as seeOther, _ as consoleRecordStore, b as issueConsoleTicket, c as ConsoleTicketPurpose, d as appBase, f as appOrigin, g as consoleInvitePrefix, h as base64url, l as ConsoleTicketRecord, m as authFailure, o as ConsoleRecordStore, p as authConsole, s as ConsoleTicket, u as ConsoleTicketStore, v as consoleTicketLifetime, w as ticketProblem, x as redeemConsoleTicket, y as consoleTicketParameter } from "../../../auth-
|
|
1
|
+
import { C as setConsoleTicketStore, S as seeOther, _ as consoleRecordStore, b as issueConsoleTicket, c as ConsoleTicketPurpose, d as appBase, f as appOrigin, g as consoleInvitePrefix, h as base64url, l as ConsoleTicketRecord, m as authFailure, o as ConsoleRecordStore, p as authConsole, s as ConsoleTicket, u as ConsoleTicketStore, v as consoleTicketLifetime, w as ticketProblem, x as redeemConsoleTicket, y as consoleTicketParameter } from "../../../auth-BZOy7obk.js";
|
|
2
2
|
export { ConsoleRecordStore, ConsoleTicket, ConsoleTicketPurpose, ConsoleTicketRecord, ConsoleTicketStore, appBase, appOrigin, authConsole, authFailure, base64url, consoleInvitePrefix, consoleRecordStore, consoleTicketLifetime, consoleTicketParameter, issueConsoleTicket, redeemConsoleTicket, seeOther, setConsoleTicketStore, ticketProblem };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as base64url, c as consoleTicketLifetime, d as redeemConsoleTicket, f as seeOther, i as authFailure, l as consoleTicketParameter, m as ticketProblem, n as appOrigin, o as consoleInvitePrefix, p as setConsoleTicketStore, r as authConsole, s as consoleRecordStore, t as appBase, u as issueConsoleTicket } from "../../../tickets-
|
|
1
|
+
import { a as base64url, c as consoleTicketLifetime, d as redeemConsoleTicket, f as seeOther, i as authFailure, l as consoleTicketParameter, m as ticketProblem, n as appOrigin, o as consoleInvitePrefix, p as setConsoleTicketStore, r as authConsole, s as consoleRecordStore, t as appBase, u as issueConsoleTicket } from "../../../tickets-C_0Fhc00.js";
|
|
2
2
|
export { appBase, appOrigin, authConsole, authFailure, base64url, consoleInvitePrefix, consoleRecordStore, consoleTicketLifetime, consoleTicketParameter, issueConsoleTicket, redeemConsoleTicket, seeOther, setConsoleTicketStore, ticketProblem };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as ConsoleRoute, t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { s as ConsoleAccessRoute } from "../../../access-policy-
|
|
2
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
3
|
//#region src/console/runtime/server/usage.get.d.ts
|
|
4
4
|
declare const usageHandler: (event: ConsoleRequestEvent) => Promise<Record<string, unknown>>;
|
|
5
5
|
/** The usage summary, for the `usage.get` operation. */
|
|
6
6
|
export declare const readConsoleUsage: ConsoleAccessRoute<typeof usageHandler>;
|
|
7
|
-
/** `GET <base>/
|
|
7
|
+
/** `GET <base>/_vitehub/console/usage` */
|
|
8
8
|
declare const consoleUsageRoute: ConsoleRoute;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { consoleUsageRoute as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-
|
|
2
|
-
import { h as withConsoleAccess } from "../../../access-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
|
|
2
|
+
import { h as withConsoleAccess } from "../../../access-BDST818p.js";
|
|
3
3
|
import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
|
|
4
|
-
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-
|
|
5
|
-
import { n as getConsoleUsageIndex, t as getConsoleInvocations } from "../../../invocations-
|
|
6
|
-
import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-
|
|
7
|
-
import { d as parseConsoleUsageWindow, r as createUsageSummary, u as parseConsoleUsageStatus } from "../../../usage-
|
|
4
|
+
import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
|
|
5
|
+
import { n as getConsoleUsageIndex, t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
|
|
6
|
+
import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
|
|
7
|
+
import { d as parseConsoleUsageWindow, r as createUsageSummary, u as parseConsoleUsageStatus } from "../../../usage-B4taNt4a.js";
|
|
8
8
|
//#region src/console/runtime/server/usage.get.ts
|
|
9
9
|
const caches = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
const requests = /* @__PURE__ */ new WeakMap();
|
|
@@ -86,7 +86,7 @@ const usageHandler = async (event) => {
|
|
|
86
86
|
};
|
|
87
87
|
/** The usage summary, for the `usage.get` operation. */
|
|
88
88
|
const readConsoleUsage = withConsoleAccess(usageHandler, { section: "usage" });
|
|
89
|
-
/** `GET <base>/
|
|
89
|
+
/** `GET <base>/_vitehub/console/usage` */
|
|
90
90
|
const consoleUsageRoute = consoleRoute(readConsoleUsage);
|
|
91
91
|
//#endregion
|
|
92
92
|
export { consoleUsageRoute as default, readConsoleUsage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
|
|
2
|
-
import { s as ConsoleAccessRoute } from "../../../access-policy-
|
|
2
|
+
import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
|
|
3
3
|
import { n as WorkspaceFileResponse, t as WorkspaceDescriptor } from "../../../workspace-history-CeVwBB6Q.js";
|
|
4
4
|
//#region src/console/runtime/server/workspace-files.get.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as withConsoleAccess } from "../../../access-
|
|
2
|
-
import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-
|
|
3
|
-
import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-
|
|
1
|
+
import { h as withConsoleAccess } from "../../../access-BDST818p.js";
|
|
2
|
+
import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
|
|
3
|
+
import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-CraoERnc.js";
|
|
4
4
|
import { useWorkspaceFiles } from "@vite-hub/workspace/files";
|
|
5
5
|
//#region src/console/runtime/server/workspace-files.get.ts
|
|
6
6
|
/** The ref that other refs are compared with. */
|
package/dist/console/server.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as installConsoleAgents, n as getConsoleAgents, r as installConsoleAgentDefinitions } from "../agents-C94A4N9u.js";
|
|
2
|
-
import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-
|
|
3
|
-
import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-
|
|
4
|
-
import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-
|
|
2
|
+
import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-CFLwMsjH.js";
|
|
3
|
+
import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-DyPVMjp_.js";
|
|
4
|
+
import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-Dbgxfz3I.js";
|
|
5
5
|
import "../usage-CoQXs5nW.js";
|
|
6
|
-
import { n as installConsoleProjectName, r as installConsoleSections } from "../setup-
|
|
7
|
-
import { n as getConsoleProjectName, r as getConsoleSections } from "../sections-
|
|
6
|
+
import { n as installConsoleProjectName, r as installConsoleSections } from "../setup-ZbA1by7W.js";
|
|
7
|
+
import { n as getConsoleProjectName, r as getConsoleSections } from "../sections-CyrXbbkG.js";
|
|
8
8
|
import { AgentInvocations } from "@vite-hub/agent";
|
|
9
9
|
import { RuntimeHostContext } from "@vite-hub/runtime";
|
|
10
10
|
import "@libsql/client";
|
package/dist/console/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-
|
|
2
|
-
import { r as installConsoleInvocations, t as getConsoleInvocations } from "../invocations-
|
|
3
|
-
import { c as getConsoleAgents, l as installConsoleAgentDefinitions, u as installConsoleAgents } from "../agents-
|
|
1
|
+
import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-CpvlM8jp.js";
|
|
2
|
+
import { r as installConsoleInvocations, t as getConsoleInvocations } from "../invocations-CK_-G540.js";
|
|
3
|
+
import { c as getConsoleAgents, l as installConsoleAgentDefinitions, u as installConsoleAgents } from "../agents-BDeazoAW.js";
|
|
4
4
|
import { n as installConsoleProjectName, r as installConsoleSections } from "../setup-C-5nB7aY.js";
|
|
5
5
|
import { n as getConsoleProjectName, r as getConsoleSections } from "../sections-C83x0slv.js";
|
|
6
|
-
import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-
|
|
7
|
-
import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-
|
|
8
|
-
import { t as agentConsole } from "../server-
|
|
6
|
+
import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-CNq_Shkh.js";
|
|
7
|
+
import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-BdOBjPkS.js";
|
|
8
|
+
import { t as agentConsole } from "../server-BRJE4t-W.js";
|
|
9
9
|
export { agentConsole, getConsoleAgents, getConsoleBlob, getConsoleDatabase, getConsoleDefinitions, getConsoleInvocations, getConsoleProjectName, getConsoleSections, installConsoleAgentDefinitions, installConsoleAgents, installConsoleBlob, installConsoleDatabase, installConsoleDefinitions, installConsoleInvocations, installConsoleProjectName, installConsoleSections };
|