@intentic/sandbox-contract 1.244.0 → 1.246.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 +17 -1
- package/dist/batch-runs.d.ts +32 -0
- package/dist/batch-runs.d.ts.map +1 -0
- package/dist/batch-runs.js +43 -0
- package/dist/batch-runs.js.map +1 -0
- package/dist/command-classes.d.ts +6 -3
- package/dist/command-classes.d.ts.map +1 -1
- package/dist/command-classes.js +43 -18
- package/dist/command-classes.js.map +1 -1
- package/dist/contracts/{cursor.contract.d.ts → accounts.contract.d.ts} +102 -3
- package/dist/contracts/accounts.contract.d.ts.map +1 -0
- package/dist/contracts/accounts.contract.js +61 -0
- package/dist/contracts/accounts.contract.js.map +1 -0
- package/dist/contracts/agents.contract.d.ts +121 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +4 -4
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/ci.contract.d.ts +2 -0
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/host.contract.d.ts +35 -0
- package/dist/contracts/host.contract.d.ts.map +1 -1
- package/dist/contracts/host.contract.js +3 -2
- package/dist/contracts/host.contract.js.map +1 -1
- package/dist/contracts/personas.contract.d.ts +4 -2
- package/dist/contracts/personas.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +2 -2
- package/dist/contracts/settings.contract.d.ts +2 -51
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +52 -2
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +26 -17
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/definition.d.ts +4 -8
- package/dist/definition.d.ts.map +1 -1
- package/dist/documents.d.ts +0 -1
- package/dist/documents.d.ts.map +1 -1
- package/dist/documents.js +1 -2
- package/dist/documents.js.map +1 -1
- package/dist/embed.d.ts +23 -0
- package/dist/embed.d.ts.map +1 -0
- package/dist/embed.js +84 -0
- package/dist/embed.js.map +1 -0
- package/dist/events.d.ts +21 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +5 -2
- package/dist/events.js.map +1 -1
- package/dist/history-state.d.ts.map +1 -1
- package/dist/history-state.js +2 -0
- package/dist/history-state.js.map +1 -1
- package/dist/index.d.ts +354 -335
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/peer-dial.d.ts +33 -0
- package/dist/peer-dial.d.ts.map +1 -0
- package/dist/peer-dial.js +79 -0
- package/dist/peer-dial.js.map +1 -0
- package/dist/peer-mcp-server.d.ts +36 -0
- package/dist/peer-mcp-server.d.ts.map +1 -0
- package/dist/peer-mcp-server.js +71 -0
- package/dist/peer-mcp-server.js.map +1 -0
- package/dist/provider-specs.d.ts +38 -20
- package/dist/provider-specs.d.ts.map +1 -1
- package/dist/provider-specs.js +39 -13
- package/dist/provider-specs.js.map +1 -1
- package/dist/quick-model.d.ts.map +1 -1
- package/dist/quick-model.js +2 -1
- package/dist/quick-model.js.map +1 -1
- package/dist/runtime-state.d.ts +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/runtime-state.js.map +1 -1
- package/dist/safety-policy.d.ts +12 -3
- package/dist/safety-policy.d.ts.map +1 -1
- package/dist/safety-policy.js +30 -5
- package/dist/safety-policy.js.map +1 -1
- package/dist/schemas/agent.d.ts +6 -6
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +6 -2
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents.d.ts +42 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +25 -4
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/automations.d.ts +11 -2
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +1 -1
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/ci.d.ts +6 -0
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +3 -2
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/context.d.ts +30 -0
- package/dist/schemas/context.d.ts.map +1 -0
- package/dist/schemas/context.js +34 -0
- package/dist/schemas/context.js.map +1 -0
- package/dist/schemas/{computers.d.ts → devices.d.ts} +155 -61
- package/dist/schemas/devices.d.ts.map +1 -0
- package/dist/schemas/devices.js +157 -0
- package/dist/schemas/devices.js.map +1 -0
- package/dist/schemas/hosts.d.ts +12 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +1 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/issues.d.ts +0 -5
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +0 -1
- package/dist/schemas/issues.js.map +1 -1
- package/dist/schemas/personas.d.ts +5 -3
- package/dist/schemas/personas.d.ts.map +1 -1
- package/dist/schemas/personas.js +3 -2
- package/dist/schemas/personas.js.map +1 -1
- package/dist/schemas/provider-oauth.d.ts +48 -16
- package/dist/schemas/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/provider-oauth.js +22 -20
- package/dist/schemas/provider-oauth.js.map +1 -1
- package/dist/schemas/settings.d.ts +1 -52
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +8 -11
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/terminal.js +9 -9
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/usage.d.ts +0 -2
- package/dist/schemas/usage.d.ts.map +1 -1
- package/dist/schemas/usage.js +0 -2
- package/dist/schemas/usage.js.map +1 -1
- package/dist/shell-regions.d.ts +4 -0
- package/dist/shell-regions.d.ts.map +1 -0
- package/dist/shell-regions.js +156 -0
- package/dist/shell-regions.js.map +1 -0
- package/dist/workspace-state.d.ts +15 -0
- package/dist/workspace-state.d.ts.map +1 -1
- package/dist/workspace-state.js +21 -5
- package/dist/workspace-state.js.map +1 -1
- package/package.json +48 -4
- package/src/agent-catalog.ts +1 -1
- package/src/arrival.ts +3 -3
- package/src/batch-runs.test.ts +167 -0
- package/src/batch-runs.ts +181 -0
- package/src/command-classes.test.ts +195 -71
- package/src/command-classes.ts +148 -46
- package/src/contracts/accounts.contract.ts +94 -0
- package/src/contracts/agents.contract.ts +4 -3
- package/src/contracts/exit.contract.ts +2 -2
- package/src/contracts/host.contract.ts +17 -5
- package/src/contracts/settings.contract.ts +1 -1
- package/src/contracts/system.contract.ts +43 -24
- package/src/contracts/vpn.contract.ts +2 -2
- package/src/documents.test.ts +2 -1
- package/src/documents.ts +7 -11
- package/src/embed.test.ts +68 -0
- package/src/embed.ts +164 -0
- package/src/events.ts +30 -3
- package/src/history-state.ts +12 -3
- package/src/host-protocol.ts +2 -2
- package/src/index.ts +6 -14
- package/src/model-order.ts +1 -1
- package/src/peer-dial.test.ts +203 -0
- package/src/peer-dial.ts +163 -0
- package/src/peer-mcp-server.test.ts +104 -0
- package/src/peer-mcp-server.ts +144 -0
- package/src/provider-specs.test.ts +44 -17
- package/src/provider-specs.ts +147 -67
- package/src/quick-model.ts +10 -3
- package/src/routes.test.ts +6 -3
- package/src/runner-protocol.ts +1 -1
- package/src/runtime-state.ts +2 -2
- package/src/safety-policy.test.ts +88 -0
- package/src/safety-policy.ts +84 -14
- package/src/schemas/agent.ts +41 -13
- package/src/schemas/agents.ts +65 -4
- package/src/schemas/automations.ts +6 -4
- package/src/schemas/capabilities.ts +4 -4
- package/src/schemas/ci.ts +23 -6
- package/src/schemas/context.ts +87 -0
- package/src/schemas/{computers.ts → devices.ts} +201 -109
- package/src/schemas/hosts.ts +5 -1
- package/src/schemas/issues.ts +0 -4
- package/src/schemas/personas.ts +8 -3
- package/src/schemas/provider-oauth.ts +49 -52
- package/src/schemas/settings.ts +30 -54
- package/src/schemas/terminal.ts +12 -12
- package/src/schemas/usage.ts +3 -27
- package/src/schemas/version-seam.test.ts +0 -1
- package/src/shell-regions.ts +289 -0
- package/src/versions.ts +2 -2
- package/src/webext-links.ts +2 -2
- package/src/webext-protocol.ts +2 -2
- package/src/workspace-state.test.ts +55 -1
- package/src/workspace-state.ts +76 -11
- package/dist/contracts/claude.contract.d.ts +0 -91
- package/dist/contracts/claude.contract.d.ts.map +0 -1
- package/dist/contracts/claude.contract.js +0 -50
- package/dist/contracts/claude.contract.js.map +0 -1
- package/dist/contracts/cursor.contract.d.ts.map +0 -1
- package/dist/contracts/cursor.contract.js +0 -50
- package/dist/contracts/cursor.contract.js.map +0 -1
- package/dist/contracts/grok.contract.d.ts +0 -36
- package/dist/contracts/grok.contract.d.ts.map +0 -1
- package/dist/contracts/grok.contract.js +0 -31
- package/dist/contracts/grok.contract.js.map +0 -1
- package/dist/contracts/keys.contract.d.ts +0 -81
- package/dist/contracts/keys.contract.d.ts.map +0 -1
- package/dist/contracts/keys.contract.js +0 -51
- package/dist/contracts/keys.contract.js.map +0 -1
- package/dist/schemas/computers.d.ts.map +0 -1
- package/dist/schemas/computers.js +0 -134
- package/dist/schemas/computers.js.map +0 -1
- package/src/contracts/claude.contract.ts +0 -71
- package/src/contracts/cursor.contract.ts +0 -74
- package/src/contracts/grok.contract.ts +0 -41
- package/src/contracts/keys.contract.ts +0 -79
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export declare const claudeContract: {
|
|
2
|
-
start: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
-
authorizeUrl: import("zod").ZodString;
|
|
4
|
-
verifier: import("zod").ZodString;
|
|
5
|
-
state: import("zod").ZodString;
|
|
6
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
7
|
-
exchange: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
8
|
-
code: import("zod").ZodString;
|
|
9
|
-
verifier: import("zod").ZodString;
|
|
10
|
-
state: import("zod").ZodString;
|
|
11
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
13
|
-
id: import("zod").ZodString;
|
|
14
|
-
label: import("zod").ZodString;
|
|
15
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
-
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
-
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
-
connectedAt: import("zod").ZodNumber;
|
|
19
|
-
needsReauth: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
20
|
-
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
-
usage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
22
|
-
windows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
23
|
-
kind: import("zod").ZodString;
|
|
24
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
-
utilization: import("zod").ZodNumber;
|
|
26
|
-
resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
27
|
-
gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
|
|
28
|
-
models: import("zod").ZodArray<import("zod").ZodString>;
|
|
29
|
-
}, import("zod/v4/core").$strip>]>;
|
|
30
|
-
}, import("zod/v4/core").$strip>>;
|
|
31
|
-
measuredAt: import("zod").ZodNumber;
|
|
32
|
-
}, import("zod/v4/core").$strip>>;
|
|
33
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
34
|
-
accounts: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
35
|
-
force: import("zod").ZodDefault<import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
36
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
37
|
-
accounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
38
|
-
id: import("zod").ZodString;
|
|
39
|
-
label: import("zod").ZodString;
|
|
40
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
-
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
-
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
-
connectedAt: import("zod").ZodNumber;
|
|
44
|
-
needsReauth: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
45
|
-
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
-
usage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
47
|
-
windows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
48
|
-
kind: import("zod").ZodString;
|
|
49
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
-
utilization: import("zod").ZodNumber;
|
|
51
|
-
resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
52
|
-
gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
|
|
53
|
-
models: import("zod").ZodArray<import("zod").ZodString>;
|
|
54
|
-
}, import("zod/v4/core").$strip>]>;
|
|
55
|
-
}, import("zod/v4/core").$strip>>;
|
|
56
|
-
measuredAt: import("zod").ZodNumber;
|
|
57
|
-
}, import("zod/v4/core").$strip>>;
|
|
58
|
-
}, import("zod/v4/core").$strip>>;
|
|
59
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
60
|
-
rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
61
|
-
id: import("zod").ZodString;
|
|
62
|
-
label: import("zod").ZodString;
|
|
63
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
64
|
-
id: import("zod").ZodString;
|
|
65
|
-
label: import("zod").ZodString;
|
|
66
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
67
|
-
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
-
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
69
|
-
connectedAt: import("zod").ZodNumber;
|
|
70
|
-
needsReauth: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
71
|
-
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
-
usage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
73
|
-
windows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
74
|
-
kind: import("zod").ZodString;
|
|
75
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
76
|
-
utilization: import("zod").ZodNumber;
|
|
77
|
-
resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
78
|
-
gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
|
|
79
|
-
models: import("zod").ZodArray<import("zod").ZodString>;
|
|
80
|
-
}, import("zod/v4/core").$strip>]>;
|
|
81
|
-
}, import("zod/v4/core").$strip>>;
|
|
82
|
-
measuredAt: import("zod").ZodNumber;
|
|
83
|
-
}, import("zod/v4/core").$strip>>;
|
|
84
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
85
|
-
disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
86
|
-
id: import("zod").ZodString;
|
|
87
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
88
|
-
ok: import("zod").ZodLiteral<true>;
|
|
89
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
90
|
-
};
|
|
91
|
-
//# sourceMappingURL=claude.contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"claude.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/claude.contract.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,cAAc;IACvB,KAAK;;;;;IASL,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;CASb,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { oc } from "@orpc/contract";
|
|
2
|
-
import { AccountIdSchema, AccountListQuerySchema, AccountRenameSchema, AuthorizeChallengeSchema, OauthAccountListSchema, OauthAccountSchema, OauthExchangeSchema, } from "../schemas/provider-oauth.js";
|
|
3
|
-
import { OkSchema } from "../schemas/shared.js";
|
|
4
|
-
export const claudeContract = {
|
|
5
|
-
start: oc
|
|
6
|
-
.route({
|
|
7
|
-
method: "POST",
|
|
8
|
-
path: "/claude/oauth/start",
|
|
9
|
-
summary: "Begin connecting a Claude account",
|
|
10
|
-
description: "Hands back the address to send somebody to, and the proof this sandbox will need to finish the exchange. The sandbox holds the credential afterwards, not the browser.",
|
|
11
|
-
})
|
|
12
|
-
.output(AuthorizeChallengeSchema),
|
|
13
|
-
exchange: oc
|
|
14
|
-
.route({
|
|
15
|
-
method: "POST",
|
|
16
|
-
path: "/claude/oauth/exchange",
|
|
17
|
-
summary: "Finish connecting a Claude account",
|
|
18
|
-
description: "Trades the code from the sign-in for stored tokens and answers with the account it just connected. A sandbox can hold several Claude accounts side by side.",
|
|
19
|
-
})
|
|
20
|
-
.input(OauthExchangeSchema)
|
|
21
|
-
.output(OauthAccountSchema),
|
|
22
|
-
accounts: oc
|
|
23
|
-
.route({
|
|
24
|
-
method: "GET",
|
|
25
|
-
path: "/claude/accounts",
|
|
26
|
-
summary: "Connected Claude accounts",
|
|
27
|
-
description: "Each connected account with how full its plan limits were when last measured. Ask for a fresh measurement and it takes one before answering, which is slower.",
|
|
28
|
-
})
|
|
29
|
-
.input(AccountListQuerySchema)
|
|
30
|
-
.output(OauthAccountListSchema),
|
|
31
|
-
rename: oc
|
|
32
|
-
.route({
|
|
33
|
-
method: "POST",
|
|
34
|
-
path: "/claude/account/rename",
|
|
35
|
-
summary: "Rename a Claude account",
|
|
36
|
-
description: "Changes the label one account shows under, so several are tellable apart.",
|
|
37
|
-
})
|
|
38
|
-
.input(AccountRenameSchema)
|
|
39
|
-
.output(OauthAccountSchema),
|
|
40
|
-
disconnect: oc
|
|
41
|
-
.route({
|
|
42
|
-
method: "POST",
|
|
43
|
-
path: "/claude/account/disconnect",
|
|
44
|
-
summary: "Disconnect a Claude account",
|
|
45
|
-
description: "Clears the stored tokens for one account. The others stay connected.",
|
|
46
|
-
})
|
|
47
|
-
.input(AccountIdSchema)
|
|
48
|
-
.output(OkSchema),
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=claude.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"claude.contract.js","sourceRoot":"","sources":["../../src/contracts/claude.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAUhD,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EACP,wKAAwK;KAC/K,CAAC;SACD,MAAM,CAAC,wBAAwB,CAAC;IACrC,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EACP,6JAA6J;KACpK,CAAC;SACD,KAAK,CAAC,mBAAmB,CAAC;SAC1B,MAAM,CAAC,kBAAkB,CAAC;IAG/B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,2BAA2B;QACpC,WAAW,EACP,+JAA+J;KACtK,CAAC;SACD,KAAK,CAAC,sBAAsB,CAAC;SAC7B,MAAM,CAAC,sBAAsB,CAAC;IACnC,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,yBAAyB;QAClC,WAAW,EAAE,2EAA2E;KAC3F,CAAC;SACD,KAAK,CAAC,mBAAmB,CAAC;SAC1B,MAAM,CAAC,kBAAkB,CAAC;IAC/B,UAAU,EAAE,EAAE;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,4BAA4B;QAClC,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,sEAAsE;KACtF,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/cursor.contract.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,cAAc;IACvB,KAAK;;;;;IASL,MAAM;;;;;IAYN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;CASb,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { oc } from "@orpc/contract";
|
|
2
|
-
import { AccountIdSchema, AccountListQuerySchema, AccountRenameSchema, CursorLoginCancelSchema, CursorLoginStartSchema, OauthAccountListSchema, OauthAccountSchema, } from "../schemas/provider-oauth.js";
|
|
3
|
-
import { OkSchema } from "../schemas/shared.js";
|
|
4
|
-
export const cursorContract = {
|
|
5
|
-
start: oc
|
|
6
|
-
.route({
|
|
7
|
-
method: "POST",
|
|
8
|
-
path: "/cursor/login/start",
|
|
9
|
-
summary: "Begin connecting a Cursor account",
|
|
10
|
-
description: "Hands back the page to sign in on. The sandbox finishes the handshake itself and stores the credential, so nothing has to be pasted back: watch the account list instead.",
|
|
11
|
-
})
|
|
12
|
-
.output(CursorLoginStartSchema),
|
|
13
|
-
cancel: oc
|
|
14
|
-
.route({
|
|
15
|
-
method: "POST",
|
|
16
|
-
path: "/cursor/login/cancel",
|
|
17
|
-
summary: "Abandon a Cursor sign-in",
|
|
18
|
-
description: "Stops waiting on a sign-in nobody completed. An abandoned attempt also expires on its own.",
|
|
19
|
-
})
|
|
20
|
-
.input(CursorLoginCancelSchema)
|
|
21
|
-
.output(OkSchema),
|
|
22
|
-
accounts: oc
|
|
23
|
-
.route({
|
|
24
|
-
method: "GET",
|
|
25
|
-
path: "/cursor/accounts",
|
|
26
|
-
summary: "Connected Cursor accounts",
|
|
27
|
-
description: "Each connected account, and whether its stored key is still good. Cursor publishes no plan-wide allowance, so these rows carry no usage reading.",
|
|
28
|
-
})
|
|
29
|
-
.input(AccountListQuerySchema)
|
|
30
|
-
.output(OauthAccountListSchema),
|
|
31
|
-
rename: oc
|
|
32
|
-
.route({
|
|
33
|
-
method: "POST",
|
|
34
|
-
path: "/cursor/account/rename",
|
|
35
|
-
summary: "Rename a Cursor account",
|
|
36
|
-
description: "Changes the label one account shows under, so several are tellable apart.",
|
|
37
|
-
})
|
|
38
|
-
.input(AccountRenameSchema)
|
|
39
|
-
.output(OauthAccountSchema),
|
|
40
|
-
disconnect: oc
|
|
41
|
-
.route({
|
|
42
|
-
method: "POST",
|
|
43
|
-
path: "/cursor/account/disconnect",
|
|
44
|
-
summary: "Disconnect a Cursor account",
|
|
45
|
-
description: "Clears the stored key for one account. The others stay connected.",
|
|
46
|
-
})
|
|
47
|
-
.input(AccountIdSchema)
|
|
48
|
-
.output(OkSchema),
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=cursor.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"c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H,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,4BAA4B;QAClC,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,mEAAmE;KACnF,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const grokContract: {
|
|
2
|
-
start: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
-
url: import("zod").ZodString;
|
|
4
|
-
code: import("zod").ZodString;
|
|
5
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
6
|
-
accounts: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
7
|
-
accounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
8
|
-
id: import("zod").ZodString;
|
|
9
|
-
label: import("zod").ZodString;
|
|
10
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
-
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
-
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
-
connectedAt: import("zod").ZodNumber;
|
|
14
|
-
needsReauth: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
|
-
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
-
usage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
17
|
-
windows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
18
|
-
kind: import("zod").ZodString;
|
|
19
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
-
utilization: import("zod").ZodNumber;
|
|
21
|
-
resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
22
|
-
gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
|
|
23
|
-
models: import("zod").ZodArray<import("zod").ZodString>;
|
|
24
|
-
}, import("zod/v4/core").$strip>]>;
|
|
25
|
-
}, import("zod/v4/core").$strip>>;
|
|
26
|
-
measuredAt: import("zod").ZodNumber;
|
|
27
|
-
}, import("zod/v4/core").$strip>>;
|
|
28
|
-
}, import("zod/v4/core").$strip>>;
|
|
29
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
30
|
-
disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
31
|
-
id: import("zod").ZodString;
|
|
32
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
33
|
-
ok: import("zod").ZodLiteral<true>;
|
|
34
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=grok.contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grok.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY;IACrB,KAAK;;;;IASL,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;IAQR,UAAU;;;;;CASb,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { oc } from "@orpc/contract";
|
|
2
|
-
import { AccountIdSchema, DeviceStartSchema, OauthAccountListSchema } from "../schemas/provider-oauth.js";
|
|
3
|
-
import { OkSchema } from "../schemas/shared.js";
|
|
4
|
-
export const grokContract = {
|
|
5
|
-
start: oc
|
|
6
|
-
.route({
|
|
7
|
-
method: "POST",
|
|
8
|
-
path: "/grok/oauth/start",
|
|
9
|
-
summary: "Begin connecting a Grok account",
|
|
10
|
-
description: "Hands back the page to open and the one-time code to type there. Nothing is pasted back afterwards: the sandbox waits for the sign-in to complete on its own, so poll the accounts call until it appears.",
|
|
11
|
-
})
|
|
12
|
-
.output(DeviceStartSchema),
|
|
13
|
-
accounts: oc
|
|
14
|
-
.route({
|
|
15
|
-
method: "GET",
|
|
16
|
-
path: "/grok/accounts",
|
|
17
|
-
summary: "Connected Grok account",
|
|
18
|
-
description: "What is signed in. A list for consistency with the other providers, though there is at most one.",
|
|
19
|
-
})
|
|
20
|
-
.output(OauthAccountListSchema),
|
|
21
|
-
disconnect: oc
|
|
22
|
-
.route({
|
|
23
|
-
method: "POST",
|
|
24
|
-
path: "/grok/account/disconnect",
|
|
25
|
-
summary: "Disconnect the Grok account",
|
|
26
|
-
description: "Clears the stored tokens.",
|
|
27
|
-
})
|
|
28
|
-
.input(AccountIdSchema)
|
|
29
|
-
.output(OkSchema),
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=grok.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grok.contract.js","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC1G,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAWhD,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,2MAA2M;KAClN,CAAC;SACD,MAAM,CAAC,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EAAE,kGAAkG;KAClH,CAAC;SACD,MAAM,CAAC,sBAAsB,CAAC;IACnC,UAAU,EAAE,EAAE;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,2BAA2B;KAC3C,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const keysContract: {
|
|
3
|
-
accounts: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
-
provider: z.ZodEnum<{
|
|
5
|
-
meta: "meta";
|
|
6
|
-
zai: "zai";
|
|
7
|
-
}>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
accounts: z.ZodArray<z.ZodObject<{
|
|
10
|
-
id: z.ZodString;
|
|
11
|
-
label: z.ZodString;
|
|
12
|
-
email: z.ZodOptional<z.ZodString>;
|
|
13
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
14
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
15
|
-
connectedAt: z.ZodNumber;
|
|
16
|
-
needsReauth: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
18
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
19
|
-
windows: z.ZodArray<z.ZodObject<{
|
|
20
|
-
kind: z.ZodString;
|
|
21
|
-
label: z.ZodOptional<z.ZodString>;
|
|
22
|
-
utilization: z.ZodNumber;
|
|
23
|
-
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
25
|
-
models: z.ZodArray<z.ZodString>;
|
|
26
|
-
}, z.core.$strip>]>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
measuredAt: z.ZodNumber;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
32
|
-
connect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
33
|
-
provider: z.ZodEnum<{
|
|
34
|
-
meta: "meta";
|
|
35
|
-
zai: "zai";
|
|
36
|
-
}>;
|
|
37
|
-
apiKey: z.ZodString;
|
|
38
|
-
label: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
id: z.ZodString;
|
|
41
|
-
label: z.ZodString;
|
|
42
|
-
email: z.ZodOptional<z.ZodString>;
|
|
43
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
44
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
45
|
-
connectedAt: z.ZodNumber;
|
|
46
|
-
needsReauth: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
48
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
49
|
-
windows: z.ZodArray<z.ZodObject<{
|
|
50
|
-
kind: z.ZodString;
|
|
51
|
-
label: z.ZodOptional<z.ZodString>;
|
|
52
|
-
utilization: z.ZodNumber;
|
|
53
|
-
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
55
|
-
models: z.ZodArray<z.ZodString>;
|
|
56
|
-
}, z.core.$strip>]>;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
measuredAt: z.ZodNumber;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
61
|
-
rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
62
|
-
provider: z.ZodEnum<{
|
|
63
|
-
meta: "meta";
|
|
64
|
-
zai: "zai";
|
|
65
|
-
}>;
|
|
66
|
-
id: z.ZodString;
|
|
67
|
-
label: z.ZodString;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
ok: z.ZodLiteral<true>;
|
|
70
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
71
|
-
disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
72
|
-
provider: z.ZodEnum<{
|
|
73
|
-
meta: "meta";
|
|
74
|
-
zai: "zai";
|
|
75
|
-
}>;
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
ok: z.ZodLiteral<true>;
|
|
79
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=keys.contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/keys.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8BxB,eAAO,MAAM,YAAY;IACrB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASR,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBP,MAAM;;;;;;;;;;IASN,UAAU;;;;;;;;;CASb,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { oc } from "@orpc/contract";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { KeyProviderParamSchema } from "../schemas/agent.js";
|
|
4
|
-
import { AccountIdSchema, AccountRenameSchema, OauthAccountListSchema, OauthAccountSchema } from "../schemas/provider-oauth.js";
|
|
5
|
-
import { OkSchema } from "../schemas/shared.js";
|
|
6
|
-
export const keysContract = {
|
|
7
|
-
accounts: oc
|
|
8
|
-
.route({
|
|
9
|
-
method: "GET",
|
|
10
|
-
path: "/keys/{provider}/accounts",
|
|
11
|
-
summary: "Connected accounts for a key-based provider",
|
|
12
|
-
description: "Which keys are connected for this provider. The keys themselves never travel: being in this list is what connected means.",
|
|
13
|
-
})
|
|
14
|
-
.input(KeyProviderParamSchema)
|
|
15
|
-
.output(OauthAccountListSchema),
|
|
16
|
-
connect: oc
|
|
17
|
-
.route({
|
|
18
|
-
method: "POST",
|
|
19
|
-
path: "/keys/{provider}/connect",
|
|
20
|
-
summary: "Connect an API key",
|
|
21
|
-
description: "Stores an API key for this provider and answers with the account it became. A sandbox can hold several keys for one provider side by side.",
|
|
22
|
-
})
|
|
23
|
-
.input(KeyProviderParamSchema.extend({
|
|
24
|
-
apiKey: z.string().min(1).describe("The key, as the provider issued it. Stored in this sandbox and never sent back out."),
|
|
25
|
-
label: z
|
|
26
|
-
.string()
|
|
27
|
-
.max(80)
|
|
28
|
-
.optional()
|
|
29
|
-
.describe("What to call it. Blank falls back to the provider's own name, which is all a pasted key can say about itself."),
|
|
30
|
-
}))
|
|
31
|
-
.output(OauthAccountSchema),
|
|
32
|
-
rename: oc
|
|
33
|
-
.route({
|
|
34
|
-
method: "POST",
|
|
35
|
-
path: "/keys/{provider}/account/rename",
|
|
36
|
-
summary: "Rename one connected key",
|
|
37
|
-
description: "Nothing in a pasted key says whose it is, so naming it is the only way to tell two of them apart.",
|
|
38
|
-
})
|
|
39
|
-
.input(KeyProviderParamSchema.extend(AccountRenameSchema.shape))
|
|
40
|
-
.output(OkSchema),
|
|
41
|
-
disconnect: oc
|
|
42
|
-
.route({
|
|
43
|
-
method: "POST",
|
|
44
|
-
path: "/keys/{provider}/account/disconnect",
|
|
45
|
-
summary: "Disconnect one key",
|
|
46
|
-
description: "Removes a single stored key. Any others under the same provider stay connected.",
|
|
47
|
-
})
|
|
48
|
-
.input(KeyProviderParamSchema.extend(AccountIdSchema.shape))
|
|
49
|
-
.output(OkSchema),
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=keys.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys.contract.js","sourceRoot":"","sources":["../../src/contracts/keys.contract.ts"],"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Q,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAOnH,CAAC;AAIF,eAAO,MAAM,iBAAiB;;;;;EAW5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAsB5D,eAAO,MAAM,kBAAkB;;;;;;;iBAS7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAmD,CAAC;AAWpF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { HostFactsSchema } from "./hosts.js";
|
|
3
|
-
export const MachineSandboxSchema = z.object({
|
|
4
|
-
slug: z.string(),
|
|
5
|
-
container: z.string(),
|
|
6
|
-
name: z.string().optional(),
|
|
7
|
-
running: z.boolean(),
|
|
8
|
-
image: z.string(),
|
|
9
|
-
tunnelRunning: z.boolean().optional(),
|
|
10
|
-
});
|
|
11
|
-
export const MachineSandboxOpSchema = z.enum([
|
|
12
|
-
"start",
|
|
13
|
-
"stop",
|
|
14
|
-
"restart",
|
|
15
|
-
"prepare",
|
|
16
|
-
"update",
|
|
17
|
-
"rebuild",
|
|
18
|
-
"rollback",
|
|
19
|
-
"remove",
|
|
20
|
-
"logs",
|
|
21
|
-
"runner-up",
|
|
22
|
-
"runner-remove",
|
|
23
|
-
]);
|
|
24
|
-
export const MachineSandboxFlowSchema = z.object({
|
|
25
|
-
op: MachineSandboxOpSchema,
|
|
26
|
-
slug: z.string().min(1),
|
|
27
|
-
hash: z.string().optional(),
|
|
28
|
-
parentUrl: z.string().optional(),
|
|
29
|
-
pair: z.string().optional().meta({ secret: true }),
|
|
30
|
-
definition: z.string().optional(),
|
|
31
|
-
overlay: z.string().optional(),
|
|
32
|
-
overlayHash: z.string().optional(),
|
|
33
|
-
});
|
|
34
|
-
export const MachineSandboxFlowInputSchema = MachineSandboxFlowSchema.extend({ id: z.string().min(1) });
|
|
35
|
-
export const MachineFlowLineSchema = z.discriminatedUnion("kind", [
|
|
36
|
-
z.object({ kind: z.literal("line"), text: z.string() }),
|
|
37
|
-
z.object({ kind: z.literal("result"), message: z.string() }),
|
|
38
|
-
z.object({ kind: z.literal("error"), message: z.string() }),
|
|
39
|
-
]);
|
|
40
|
-
export const MachineCommandSchema = z.enum(["mirror-off", "mirror-on", "sync-pause", "sync-resume", "sync-unpair"]);
|
|
41
|
-
export const MachineSandboxIdSchema = z
|
|
42
|
-
.string()
|
|
43
|
-
.max(200)
|
|
44
|
-
.regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/);
|
|
45
|
-
export const MachineCommandInputSchema = z.object({
|
|
46
|
-
id: z.string().min(1),
|
|
47
|
-
command: MachineCommandSchema,
|
|
48
|
-
sandboxId: MachineSandboxIdSchema.optional(),
|
|
49
|
-
});
|
|
50
|
-
export const MachineCommandResultSchema = z.object({
|
|
51
|
-
ok: z.boolean(),
|
|
52
|
-
message: z.string(),
|
|
53
|
-
output: z.string().optional(),
|
|
54
|
-
});
|
|
55
|
-
export const MachinePairingSchema = z.object({
|
|
56
|
-
sandboxId: z.string(),
|
|
57
|
-
mode: z.enum(["sync", "mirror"]),
|
|
58
|
-
localDir: z.string().optional(),
|
|
59
|
-
mirroring: z.enum(["on", "off"]).optional(),
|
|
60
|
-
mutagenStatus: z.string().optional(),
|
|
61
|
-
conflicts: z.number().int().nonnegative().optional(),
|
|
62
|
-
paused: z.boolean().optional(),
|
|
63
|
-
backupStatus: z.string().optional(),
|
|
64
|
-
});
|
|
65
|
-
export const MachinePortStateSchema = z.enum([
|
|
66
|
-
"mirrored",
|
|
67
|
-
"held-by-sandbox",
|
|
68
|
-
"busy",
|
|
69
|
-
]);
|
|
70
|
-
export const MachinePortSchema = z.object({
|
|
71
|
-
port: z.number().int().min(1).max(65535),
|
|
72
|
-
host: z.enum(["127.0.0.1", "::1"]),
|
|
73
|
-
sandboxId: z.string(),
|
|
74
|
-
state: MachinePortStateSchema,
|
|
75
|
-
heldBy: z.string().optional(),
|
|
76
|
-
command: z.string().optional(),
|
|
77
|
-
});
|
|
78
|
-
export const MachineWatcherSchema = z.object({
|
|
79
|
-
running: z.boolean(),
|
|
80
|
-
pid: z.number().int().optional(),
|
|
81
|
-
build: z.string().optional(),
|
|
82
|
-
lastTickAt: z.number().optional(),
|
|
83
|
-
});
|
|
84
|
-
export const WATCHER_STALL_AFTER_MS = 60_000;
|
|
85
|
-
export const watcherStalled = (watcher, now) => watcher.running && watcher.lastTickAt !== undefined && now - watcher.lastTickAt > WATCHER_STALL_AFTER_MS;
|
|
86
|
-
export const MachineReportSchema = z.object({
|
|
87
|
-
hostname: z.string(),
|
|
88
|
-
os: z.string(),
|
|
89
|
-
agents: z.object({ sync: z.string().optional(), host: z.string().optional() }),
|
|
90
|
-
sandboxes: z.array(MachineSandboxSchema),
|
|
91
|
-
pairings: z.array(MachinePairingSchema),
|
|
92
|
-
ports: z.array(MachinePortSchema),
|
|
93
|
-
watcher: MachineWatcherSchema,
|
|
94
|
-
capturedAt: z.number(),
|
|
95
|
-
});
|
|
96
|
-
export const watcherBuildSkew = (report) => {
|
|
97
|
-
const running = report.watcher.build;
|
|
98
|
-
const installed = report.agents.sync;
|
|
99
|
-
if (!report.watcher.running || running === undefined || installed === undefined || running === installed) {
|
|
100
|
-
return undefined;
|
|
101
|
-
}
|
|
102
|
-
return { running, installed };
|
|
103
|
-
};
|
|
104
|
-
export const ComputerGapSchema = z.enum([
|
|
105
|
-
"offline",
|
|
106
|
-
"scope-off",
|
|
107
|
-
"no-agent",
|
|
108
|
-
"unreported",
|
|
109
|
-
]);
|
|
110
|
-
export const ComputerSyncSchema = z.object({
|
|
111
|
-
machine: z.string(),
|
|
112
|
-
mode: z.enum(["sync", "mirror"]),
|
|
113
|
-
seenAt: z.number().optional(),
|
|
114
|
-
});
|
|
115
|
-
export const ComputerSchema = z.object({
|
|
116
|
-
key: z.string(),
|
|
117
|
-
label: z.string(),
|
|
118
|
-
sync: ComputerSyncSchema.optional(),
|
|
119
|
-
hostId: z.string().optional(),
|
|
120
|
-
online: z.boolean().optional(),
|
|
121
|
-
platform: z.string().optional(),
|
|
122
|
-
facts: HostFactsSchema.optional(),
|
|
123
|
-
hostAgent: z.string().optional(),
|
|
124
|
-
lastSeen: z.number().optional(),
|
|
125
|
-
report: MachineReportSchema.optional(),
|
|
126
|
-
gap: ComputerGapSchema.optional(),
|
|
127
|
-
});
|
|
128
|
-
export const ComputersListSchema = z.object({ computers: z.array(ComputerSchema) });
|
|
129
|
-
export const SyncStatusSchema = z.object({
|
|
130
|
-
enrolled: z.boolean(),
|
|
131
|
-
available: z.boolean().optional(),
|
|
132
|
-
machines: z.array(MachineReportSchema).optional(),
|
|
133
|
-
});
|
|
134
|
-
//# sourceMappingURL=computers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"computers.js","sourceRoot":"","sources":["../../src/schemas/computers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC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