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,10 +1,10 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-
|
|
2
|
-
import { t as defineOperation } from "./operation-definition-
|
|
3
|
-
import { c as operationCall, d as operationSection, g as table, o as operationAccessAllows } from "./operations-
|
|
4
|
-
import { n as bindConsoleAccess, s as consoleOperationAccess } from "./access-
|
|
5
|
-
import { i as consoleRequestError } from "./request-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
|
|
2
|
+
import { t as defineOperation } from "./operation-definition-a5keEpCd.js";
|
|
3
|
+
import { c as operationCall, d as operationSection, g as table, o as operationAccessAllows } from "./operations-EOdyctDc.js";
|
|
4
|
+
import { n as bindConsoleAccess, s as consoleOperationAccess } from "./access-BDST818p.js";
|
|
5
|
+
import { i as consoleRequestError } from "./request-DbFfYmCu.js";
|
|
6
6
|
import { n as loadConsoleRuntime } from "./runtime-DxfJOfCd.js";
|
|
7
|
-
import { r as loadConsoleMedia } from "./blob-
|
|
7
|
+
import { r as loadConsoleMedia } from "./blob-CpvlM8jp.js";
|
|
8
8
|
import { a as maximumConsoleMediaRequestBytes, i as maximumConsoleDocumentRequestBytes, n as consoleDocumentActionNames, r as consoleMediaUploadRequestBytes, s as maximumConsoleRpcRequestBytes, t as consoleAttachmentRequestBytes } from "./limits-BUlwWYQE.js";
|
|
9
9
|
import { n as authConsoleImpersonationOperations, r as authConsoleReadOperations, t as authConsoleActionOperations } from "./auth-operations-GcQk0O0X.js";
|
|
10
10
|
import * as v from "valibot";
|
|
@@ -122,7 +122,7 @@ const agentsInvoke = defineConsoleOperation({
|
|
|
122
122
|
kind: "write",
|
|
123
123
|
maxRequestBytes: consoleOperationRequestBytes["agents.invoke"],
|
|
124
124
|
name: "agents.invoke",
|
|
125
|
-
run: async ({ agent, agentRoute, ...body }, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./agent-invocations.post-
|
|
125
|
+
run: async ({ agent, agentRoute, ...body }, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./agent-invocations.post-CcPvfA0n.js"))).default(legacyEvent(`agents/${agent}/invocations`, "POST", {
|
|
126
126
|
agent,
|
|
127
127
|
body,
|
|
128
128
|
query: { agentRoute }
|
|
@@ -457,7 +457,7 @@ const invocationsUndo = defineConsoleOperation({
|
|
|
457
457
|
}),
|
|
458
458
|
kind: "write",
|
|
459
459
|
name: "invocations.undo",
|
|
460
|
-
run: async (input, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./invocation-page-undo-
|
|
460
|
+
run: async (input, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./invocation-page-undo-DIZ-s3xT.js"))).undoConsolePageChange(input, context),
|
|
461
461
|
section: "agents"
|
|
462
462
|
});
|
|
463
463
|
const invocationsDelete = defineConsoleOperation({
|
|
@@ -588,7 +588,7 @@ const projectGet = defineConsoleOperation({
|
|
|
588
588
|
input: v.strictObject({}),
|
|
589
589
|
kind: "read",
|
|
590
590
|
name: "project.get",
|
|
591
|
-
run: async (_input, context) => (await import("./project-
|
|
591
|
+
run: async (_input, context) => (await import("./project-C4N_Zcjl.js")).readConsoleProject(context.access, { navigation: context.surface === "console" }),
|
|
592
592
|
section: false
|
|
593
593
|
});
|
|
594
594
|
const searchQuery = defineConsoleOperation({
|
|
@@ -630,7 +630,7 @@ const skillsInspect = defineConsoleOperation({
|
|
|
630
630
|
}),
|
|
631
631
|
kind: "read",
|
|
632
632
|
name: "skills.inspect",
|
|
633
|
-
run: async (input) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./skills.get-
|
|
633
|
+
run: async (input) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./skills.get-Bl8cBe8u.js"))).inspectConsoleSkills(input),
|
|
634
634
|
section: "skills"
|
|
635
635
|
});
|
|
636
636
|
const statusGet = defineConsoleOperation({
|
|
@@ -647,7 +647,7 @@ const statusGet = defineConsoleOperation({
|
|
|
647
647
|
});
|
|
648
648
|
const sitePagePath = v.optional(v.pipe(text, v.maxLength(2048)));
|
|
649
649
|
const siteId = v.pipe(text, v.minLength(1), v.maxLength(64));
|
|
650
|
-
const siteAccess = () => import("./site-access-
|
|
650
|
+
const siteAccess = () => import("./site-access-BbJUe5QI.js");
|
|
651
651
|
function formatSiteSessions({ sessions }) {
|
|
652
652
|
if (!sessions.length) return "No browser is signed in through Site access.\n";
|
|
653
653
|
return `${table([[
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as isRecordOrFunction } from "./object-D8pRdprI.js";
|
|
2
|
-
import { a as reservedOperationNamespaces, i as isSectionId, n as invalidDefinition, o as internalErrorDiagnostics, r as isOperation } from "./operation-definition-
|
|
2
|
+
import { a as reservedOperationNamespaces, i as isSectionId, n as invalidDefinition, o as internalErrorDiagnostics, r as isOperation } from "./operation-definition-a5keEpCd.js";
|
|
3
3
|
//#region ../internal/src/operations.ts
|
|
4
4
|
/** Response header of the local dev RPC. Its value is {@link projectRootHash} of the project that the server runs. */
|
|
5
5
|
const operationRootHeader = "x-vitehub-root";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as invariant } from "./invariant-DolT9EEx.js";
|
|
2
2
|
import { n as isRecord } from "./object-D8pRdprI.js";
|
|
3
|
-
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-
|
|
3
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { dirname, join, resolve } from "node:path";
|
|
6
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -120,23 +120,20 @@ export default defineAgent({
|
|
|
120
120
|
suffix: "agent"
|
|
121
121
|
}),
|
|
122
122
|
docs: "/docs/agents",
|
|
123
|
+
enabledByDiscovery: ["agents"],
|
|
123
124
|
hosts: {
|
|
124
125
|
...everywhere("nitro", "Nitro"),
|
|
125
126
|
deno: native("nitro", "Nitro", "Agent routes run in the Nitro output. The Agent Deno runtime is not supported on this host."),
|
|
126
127
|
netlify: native("nitro", "Nitro", "Agent HTTP routes run in generated functions. `agent.invocations` is not supported.")
|
|
127
128
|
},
|
|
128
129
|
id: "agent",
|
|
129
|
-
implies: [{
|
|
130
|
-
except: ["netlify"],
|
|
131
|
-
feature: "workflow",
|
|
132
|
-
inline: ["deno"]
|
|
133
|
-
}],
|
|
134
130
|
packages: ["@vite-hub/agent"],
|
|
135
131
|
summary: "Agents in `server/agents/` with tools, Capabilities, channels, and invocations.",
|
|
136
132
|
title: "Agent"
|
|
137
133
|
}),
|
|
138
134
|
auth: feature({
|
|
139
135
|
docs: "/docs/auth",
|
|
136
|
+
enabledByDiscovery: sourceFiles("auth"),
|
|
140
137
|
hosts: everywhere("better-auth", "Better Auth"),
|
|
141
138
|
id: "auth",
|
|
142
139
|
packages: ["@vite-hub/auth", "better-auth"],
|
|
@@ -167,6 +164,7 @@ export default defineAgent({
|
|
|
167
164
|
}),
|
|
168
165
|
browser: feature({
|
|
169
166
|
docs: "/docs/browser",
|
|
167
|
+
enabledByDiscovery: ["browsers"],
|
|
170
168
|
hosts: {
|
|
171
169
|
cloudflare: native("cloudflare", "Browser Run", "Cloudflare Browser Run binding and provider output."),
|
|
172
170
|
deno: unsupported("Browser Definitions do not have a Deno provider."),
|
|
@@ -202,6 +200,7 @@ export default defineAgent({
|
|
|
202
200
|
}),
|
|
203
201
|
channels: feature({
|
|
204
202
|
docs: "/docs/channels",
|
|
203
|
+
enabledByDiscovery: ["channels"],
|
|
205
204
|
hosts: everywhere("nitro", "Nitro"),
|
|
206
205
|
id: "channels",
|
|
207
206
|
packages: ["@vite-hub/channels"],
|
|
@@ -225,6 +224,7 @@ export default defineAgent({
|
|
|
225
224
|
}),
|
|
226
225
|
connections: feature({
|
|
227
226
|
docs: "/docs/connections",
|
|
227
|
+
enabledByDiscovery: ["connections"],
|
|
228
228
|
hosts: everywhere("database", "Database"),
|
|
229
229
|
id: "connections",
|
|
230
230
|
implies: [{ feature: "database" }],
|
|
@@ -237,7 +237,7 @@ export default defineAgent({
|
|
|
237
237
|
title: "Connections"
|
|
238
238
|
}),
|
|
239
239
|
console: feature({
|
|
240
|
-
docs: "/docs/
|
|
240
|
+
docs: "/docs/console",
|
|
241
241
|
hosts: everywhere("nitro", "Nitro"),
|
|
242
242
|
id: "console",
|
|
243
243
|
packages: [],
|
|
@@ -291,11 +291,16 @@ ${name === "default" ? "" : ` name: ${JSON.stringify(name)},\n`} schema: {
|
|
|
291
291
|
hosts: {
|
|
292
292
|
cloudflare: native("cloudflare", "Cloudflare Email", "The Cloudflare Email driver is the default. Resend is also supported."),
|
|
293
293
|
deno: explicit("email.driver", "Resend", "Configure the built-in fetch-based Resend driver."),
|
|
294
|
-
dev:
|
|
294
|
+
dev: native("log", "Log", "`email: true` keeps each message in the development outbox and sends nothing. Set `email.driver` for a production build.", "process-local"),
|
|
295
295
|
netlify: explicit("email.driver", "Resend", "Configure the built-in Resend driver."),
|
|
296
296
|
node: explicit("email.driver", "Resend / custom", "Configure Resend or provide a custom ViteHub Email driver."),
|
|
297
297
|
vercel: explicit("email.driver", "Resend", "Configure the built-in Resend driver.")
|
|
298
298
|
},
|
|
299
|
+
developmentOverrides: [
|
|
300
|
+
"deno",
|
|
301
|
+
"netlify",
|
|
302
|
+
"vercel"
|
|
303
|
+
],
|
|
299
304
|
id: "email",
|
|
300
305
|
packages: ["@vite-hub/email"],
|
|
301
306
|
summary: "Send email from server code and Agents, with a development outbox.",
|
|
@@ -352,11 +357,14 @@ ${name === "default" ? "" : ` name: ${JSON.stringify(name)},\n`} schema: {
|
|
|
352
357
|
queue: feature({
|
|
353
358
|
definition: starter("server/queues", (name) => `import { defineQueue } from "vite-hub/queue"
|
|
354
359
|
|
|
355
|
-
export default defineQueue<{ id: string }>(
|
|
356
|
-
|
|
360
|
+
export default defineQueue<{ id: string }>({
|
|
361
|
+
handler: async ({ payload }) => {
|
|
362
|
+
console.log("${name}", payload.id)
|
|
363
|
+
},
|
|
357
364
|
})
|
|
358
365
|
`, { suffix: "queue" }),
|
|
359
366
|
docs: "/docs/queue",
|
|
367
|
+
enabledByDiscovery: ["queues"],
|
|
360
368
|
hosts: {
|
|
361
369
|
cloudflare: native("cloudflare", "Queues", "Cloudflare Queues bindings and consumers."),
|
|
362
370
|
deno: unsupported("No Deno Queue driver is provided."),
|
|
@@ -393,7 +401,7 @@ export default defineQueue<{ id: string }>(async ({ payload }) => {
|
|
|
393
401
|
definition: starter("server/realtime", (name) => `import { defineRealtime } from "vite-hub/realtime"
|
|
394
402
|
|
|
395
403
|
export default defineRealtime({
|
|
396
|
-
|
|
404
|
+
authorize: true,
|
|
397
405
|
document: { workspace: "${name}" },
|
|
398
406
|
})
|
|
399
407
|
`),
|
|
@@ -404,6 +412,7 @@ export default defineRealtime({
|
|
|
404
412
|
"vercel"
|
|
405
413
|
],
|
|
406
414
|
docs: "/docs/realtime",
|
|
415
|
+
enabledByDiscovery: ["realtime"],
|
|
407
416
|
hosts: {
|
|
408
417
|
cloudflare: native("cloudflare", "Durable Objects", "Cloudflare Durable Objects run the production rooms."),
|
|
409
418
|
deno: unsupported("Realtime has no distributed Deno driver, and process memory is rejected for the Deno host."),
|
|
@@ -423,7 +432,7 @@ export default defineRealtime({
|
|
|
423
432
|
hosts: {
|
|
424
433
|
cloudflare: native("cloudflare", "CF Sandbox", "Cloudflare Sandbox execution provider."),
|
|
425
434
|
deno: unsupported("No Deno Sandbox driver is provided."),
|
|
426
|
-
dev: unsupported("The default Node host has no Sandbox Provider.
|
|
435
|
+
dev: unsupported("The default Node host has no Sandbox Provider. With the Cloudflare or Vercel host, `vite dev` runs each Sandbox Task as a process on this machine, with no isolation and no provider account. `sandboxTask: { remote: true }` uses the host's Sandbox instead."),
|
|
427
436
|
netlify: explicit("sandboxTask.driver", "Vercel Sandbox", "The Netlify host has no Sandbox, so `sandboxTask: true` fails. Set `sandboxTask: { driver: \"vercel\" }` and Vercel credentials to use Vercel Sandbox."),
|
|
428
437
|
node: explicit("sandboxTask.driver", "Vercel Sandbox", "The Node host has no Sandbox, so `sandboxTask: true` fails. Set `sandboxTask: { driver: \"vercel\" }` and Vercel credentials to use Vercel Sandbox."),
|
|
429
438
|
vercel: native("vercel", "Vercel Sandbox", "Vercel Sandbox execution provider.")
|
|
@@ -450,12 +459,13 @@ export default defineSchedule({
|
|
|
450
459
|
"vercel"
|
|
451
460
|
],
|
|
452
461
|
docs: "/docs/schedule",
|
|
462
|
+
enabledByDiscovery: ["schedules"],
|
|
453
463
|
hosts: {
|
|
454
464
|
cloudflare: native("cloudflare", "Cron triggers", "Cloudflare scheduled events and Nitro Provider Wake."),
|
|
455
465
|
deno: native("deno", "Deno.cron", "`Deno.cron` output that the generated `.output/main.ts` loads before the Nitro server."),
|
|
456
466
|
dev: native("local", "Local / process", "Local development runner and the explicit process runtime.", "single-host"),
|
|
457
467
|
netlify: native("netlify", "Scheduled fn", "One generated Netlify scheduled function per static Schedule."),
|
|
458
|
-
node: native("process", "process", "Process runtime for one long-lived process or replica.
|
|
468
|
+
node: native("process", "process", "Process runtime for one long-lived process or replica. `schedule: true` uses it. Set `providerOutput: false` to wake Schedules yourself.", "single-host"),
|
|
459
469
|
vercel: native("vercel", "Vercel Cron", "Vercel Cron Jobs provider output.")
|
|
460
470
|
},
|
|
461
471
|
id: "schedule",
|
|
@@ -464,19 +474,22 @@ export default defineSchedule({
|
|
|
464
474
|
title: "Schedule"
|
|
465
475
|
}),
|
|
466
476
|
workflow: feature({
|
|
467
|
-
definition: starter("server/workflows", (
|
|
477
|
+
definition: starter("server/workflows", () => `import { defineWorkflow } from "vite-hub/workflow"
|
|
468
478
|
|
|
469
|
-
export default defineWorkflow
|
|
470
|
-
|
|
479
|
+
export default defineWorkflow<{ id: string }>({
|
|
480
|
+
handler: async ({ payload }) => {
|
|
481
|
+
return { id: payload.id }
|
|
482
|
+
},
|
|
471
483
|
})
|
|
472
484
|
`, {
|
|
473
485
|
folder: "index",
|
|
474
486
|
suffix: "workflow"
|
|
475
487
|
}),
|
|
476
488
|
docs: "/docs/workflows",
|
|
489
|
+
enabledByDiscovery: ["workflows"],
|
|
477
490
|
hosts: {
|
|
478
491
|
cloudflare: native("cloudflare", "CF Workflows", "Cloudflare Workflows provider."),
|
|
479
|
-
deno: explicit("workflow.driver", "OpenWorkflow", "Set `workflow.driver` to \"openworkflow\" with `workflow.postgres.url`, and start its worker. A build without a driver fails.
|
|
492
|
+
deno: explicit("workflow.driver", "OpenWorkflow", "Set `workflow.driver` to \"openworkflow\" with `workflow.postgres.url`, and start its worker. A build without a driver fails."),
|
|
480
493
|
dev: native("openworkflow", "OpenWorkflow", "The Node host runs OpenWorkflow and its worker in the dev server, on .vitehub/data/openworkflow.sqlite.db. workflow.remote lets it use the Postgres Default Database or OPENWORKFLOW_POSTGRES_URL."),
|
|
481
494
|
netlify: explicit("workflow.driver", "OpenWorkflow", "Use OpenWorkflow explicitly. No Netlify-native Workflow driver is provided."),
|
|
482
495
|
node: {
|
|
@@ -501,6 +514,7 @@ export default defineWorkflow(${JSON.stringify(name)}, async (payload: { id: str
|
|
|
501
514
|
"vercel"
|
|
502
515
|
],
|
|
503
516
|
docs: "/docs/workspace",
|
|
517
|
+
enabledByDiscovery: ["workspaces"],
|
|
504
518
|
hosts: {
|
|
505
519
|
cloudflare: native("memory", "Artifacts / GitHub", "Memory by default, or Cloudflare Artifacts beta and GitHub for durable state.", "process-local"),
|
|
506
520
|
deno: explicit("workspace.store", "GitHub", "Select the GitHub Workspace Store explicitly for durable state."),
|
|
@@ -585,7 +599,7 @@ const optionalFeaturePackages = {
|
|
|
585
599
|
],
|
|
586
600
|
"content": ["@vite-hub/content"],
|
|
587
601
|
"database": features.database.packages,
|
|
588
|
-
"
|
|
602
|
+
"choices": ["@vite-hub/choices"],
|
|
589
603
|
"device": ["@vite-hub/device"],
|
|
590
604
|
"email": features.email.packages,
|
|
591
605
|
"forge": ["@vite-hub/forge"],
|
|
@@ -755,14 +769,14 @@ function missingFeaturePackagesError(features, hostPackages = {}) {
|
|
|
755
769
|
* and warns when another installed package is outside its range. `hostPackages` adds the packages that the host or a
|
|
756
770
|
* provider needs, from `hostFeaturePackages`.
|
|
757
771
|
*/
|
|
758
|
-
function assertFeaturePackages(features, hostPackages = {}) {
|
|
772
|
+
function assertFeaturePackages(features, hostPackages = {}, reportVersionError = true) {
|
|
759
773
|
const isMissing = (feature) => !packagesOf(feature, hostPackages).every((name) => isFeaturePackageInstalled(feature, name));
|
|
760
774
|
if (features.some(isMissing)) {
|
|
761
775
|
forgetPackageChecks();
|
|
762
776
|
const missing = features.filter(isMissing);
|
|
763
777
|
if (missing.length) throw missingFeaturePackagesError(missing, hostPackages);
|
|
764
778
|
}
|
|
765
|
-
checkPackageVersions(features.flatMap((feature) => packagesOf(feature, hostPackages)));
|
|
779
|
+
checkPackageVersions(features.flatMap((feature) => packagesOf(feature, hostPackages)), reportVersionError);
|
|
766
780
|
}
|
|
767
781
|
/**
|
|
768
782
|
* The `version` of the installed `packageName`, as `vite-hub` resolves it, from the manifest that names the package. It
|
|
@@ -863,7 +877,7 @@ let viteHubManifest;
|
|
|
863
877
|
* package in range is checked only the first time. A package out of range stays unchecked, so the next check throws
|
|
864
878
|
* again until the app installs a supported version. A `vite-hub` manifest that the check cannot read turns it off.
|
|
865
879
|
*/
|
|
866
|
-
function checkPackageVersions(packages) {
|
|
880
|
+
function checkPackageVersions(packages, reportVersionError) {
|
|
867
881
|
const unchecked = [...new Set(packages)].filter((name) => !checkedPackageVersions.has(name));
|
|
868
882
|
if (!unchecked.length) return;
|
|
869
883
|
if (viteHubManifest === void 0) try {
|
|
@@ -873,7 +887,7 @@ function checkPackageVersions(packages) {
|
|
|
873
887
|
}
|
|
874
888
|
const error = unsupportedViteHubPackagesError(unchecked, installedPackageVersion, viteHubManifest);
|
|
875
889
|
if (error) {
|
|
876
|
-
console.error(formatDiagnostic(error));
|
|
890
|
+
if (reportVersionError) console.error(formatDiagnostic(error));
|
|
877
891
|
throw error;
|
|
878
892
|
}
|
|
879
893
|
for (const name of unchecked) checkedPackageVersions.add(name);
|
|
@@ -886,4 +900,4 @@ function requireOptionalOwner(module, feature) {
|
|
|
886
900
|
return module;
|
|
887
901
|
}
|
|
888
902
|
//#endregion
|
|
889
|
-
export {
|
|
903
|
+
export { installArguments as a, optionalFeaturePackages as c, featureSupport as d, features as f, importOptionalOwner as i, requireOptionalOwner as l, forgetPackageChecks as n, isPackageInstalled as o, hostFeaturePackages as r, isPackageInstalledInApp as s, assertFeaturePackages as t, startPackageChecks as u };
|