@intentic/sandbox-contract 1.167.0 → 1.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-catalog.d.ts +20 -2
- package/dist/agent-catalog.d.ts.map +1 -1
- package/dist/agent-catalog.js +80 -4
- package/dist/agent-catalog.js.map +1 -1
- package/dist/contracts/agent.contract.d.ts +36 -8
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +1 -2
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +37 -39
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +4 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +1 -39
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +0 -2
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +56 -0
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +7 -2
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/translator.contract.d.ts +36 -0
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/events.d.ts +88 -159
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +37 -4
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +185 -102
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +168 -23
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +41 -17
- package/dist/schemas.js.map +1 -1
- package/dist/title.d.ts.map +1 -1
- package/dist/title.js.map +1 -1
- package/dist/workspace-state.d.ts +9 -0
- package/dist/workspace-state.d.ts.map +1 -0
- package/dist/workspace-state.js +71 -0
- package/dist/workspace-state.js.map +1 -0
- package/package.json +2 -2
- package/src/agent-catalog.test.ts +118 -0
- package/src/agent-catalog.ts +179 -15
- package/src/contracts/agent.contract.ts +1 -14
- package/src/contracts/system.contract.ts +15 -1
- package/src/events.test.ts +32 -0
- package/src/events.ts +105 -27
- package/src/index.ts +1 -0
- package/src/schemas.test.ts +2 -8
- package/src/schemas.ts +136 -57
- package/src/title.ts +6 -2
- package/src/workspace-state.test.ts +129 -0
- package/src/workspace-state.ts +160 -0
package/dist/agent-catalog.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AgentHarness, type AgentProvider, type Model, type NativeProvider, type PermissionMode } from "./schemas.js";
|
|
2
2
|
export interface CatalogOption {
|
|
3
3
|
readonly label: string;
|
|
4
4
|
readonly value: string;
|
|
@@ -14,14 +14,32 @@ export interface ProviderAccess {
|
|
|
14
14
|
readonly runs: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const PROVIDER_ACCESS: Record<NativeProvider, ProviderAccess>;
|
|
17
|
+
export declare const PROVIDER_VENDOR: Record<NativeProvider, string>;
|
|
17
18
|
export declare const ACCESS_COST: Record<AccessKind, number>;
|
|
18
19
|
export declare const accessFor: (provider: AgentProvider) => ProviderAccess | undefined;
|
|
19
20
|
export declare const providerLabel: (provider: AgentProvider) => string;
|
|
21
|
+
export declare const PLAN_LIMIT_PROVIDERS: readonly NativeProvider[];
|
|
22
|
+
export declare const reportsPlanLimits: (provider: AgentProvider) => boolean;
|
|
20
23
|
export declare const HARNESSES: readonly {
|
|
21
24
|
label: string;
|
|
22
25
|
value: AgentHarness;
|
|
23
26
|
}[];
|
|
24
|
-
export
|
|
27
|
+
export interface AgentCapabilities {
|
|
28
|
+
readonly runtime: "claude-code" | "codex" | "opencode" | "acp";
|
|
29
|
+
readonly steering: boolean;
|
|
30
|
+
readonly permissions: "modes" | "plan";
|
|
31
|
+
readonly questions: boolean;
|
|
32
|
+
readonly mcp: "full" | "http" | "none";
|
|
33
|
+
readonly effort: boolean;
|
|
34
|
+
readonly isolation: "namespace" | "cwd";
|
|
35
|
+
readonly commands: boolean;
|
|
36
|
+
readonly terminals: boolean;
|
|
37
|
+
readonly recovery: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const capabilitiesOf: (provider: AgentProvider, harness: AgentHarness) => AgentCapabilities;
|
|
40
|
+
export declare const modesFor: (capabilities: AgentCapabilities) => readonly PermissionMode[];
|
|
41
|
+
export declare const clampMode: (mode: PermissionMode, capabilities: AgentCapabilities) => PermissionMode;
|
|
42
|
+
export declare const limitationsOf: (capabilities: AgentCapabilities) => string[];
|
|
25
43
|
export declare const CLAUDE_SEED_MODELS: readonly Model[];
|
|
26
44
|
export declare const modelsFor: (provider: AgentProvider) => CatalogOption[];
|
|
27
45
|
export declare const effortAllowed: (effort: string, provider: AgentProvider, thinking: boolean) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-catalog.d.ts","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"agent-catalog.d.ts","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,KAAK,EAAoB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAO7I,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AAKD,eAAO,MAAM,SAAS,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,EASxE,CAAC;AAMF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,cAAc,GAAG,KAAK,CAAC;AAEzD,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAE1B,QAAQ,CAAC,WAA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M,cAAc,aAAc,aAAa,WAAW,YAAY,KAAG,iBAQ/E,CAAC;AAIF,eAAO,MAAM,QAAQ,iBAAkB,iBAAiB,KAAG,SAAS,cAAc,EACgD,CAAC;AAInI,eAAO,MAAM,SAAS,SAAU,cAAc,gBAAgB,iBAAiB,KAAG,cACZ,CAAC;AAIvE,eAAO,MAAM,aAAa,iBAAkB,iBAAiB,KAAG,MAAM,EAUrE,CAAC;AASF,eAAO,MAAM,kBAAkB,EAAE,SAAS,KAAK,EAI9C,CAAC;AAOF,eAAO,MAAM,SAAS,aAAc,aAAa,KAAG,aAAa,EAMhE,CAAC;AASF,eAAO,MAAM,aAAa,WAAY,MAAM,YAAY,aAAa,YAAY,OAAO,KAAG,OAChC,CAAC"}
|
package/dist/agent-catalog.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NATIVE_PROVIDERS } from "./schemas.js";
|
|
1
2
|
export const PROVIDERS = [
|
|
2
3
|
{ label: "Claude Code", value: "claude" },
|
|
3
4
|
{ label: "Codex", value: "codex" },
|
|
@@ -12,17 +13,92 @@ export const PROVIDER_ACCESS = {
|
|
|
12
13
|
kimi: { kind: "subscription", requirement: "Kimi Code subscription", runs: "Kimi Code" },
|
|
13
14
|
gemini: { kind: "free", requirement: "Google sign-in", runs: "Gemini, Claude and GPT-OSS under Claude Code" },
|
|
14
15
|
};
|
|
16
|
+
export const PROVIDER_VENDOR = {
|
|
17
|
+
claude: "Claude",
|
|
18
|
+
codex: "ChatGPT",
|
|
19
|
+
grok: "xAI",
|
|
20
|
+
kimi: "Kimi Code",
|
|
21
|
+
gemini: "Google",
|
|
22
|
+
};
|
|
15
23
|
export const ACCESS_COST = { free: 0, subscription: 1, key: 2 };
|
|
16
24
|
export const accessFor = (provider) => PROVIDER_ACCESS[provider];
|
|
17
25
|
export const providerLabel = (provider) => PROVIDERS.find((p) => p.value === provider)?.label ?? provider;
|
|
26
|
+
export const PLAN_LIMIT_PROVIDERS = ["claude", "codex", "gemini"];
|
|
27
|
+
export const reportsPlanLimits = (provider) => PLAN_LIMIT_PROVIDERS.includes(provider);
|
|
18
28
|
export const HARNESSES = [
|
|
19
29
|
{ label: "Native", value: "native" },
|
|
20
30
|
{ label: "Claude Code", value: "claude-code" },
|
|
21
31
|
];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
const CLAUDE_CODE = {
|
|
33
|
+
runtime: "claude-code",
|
|
34
|
+
steering: true,
|
|
35
|
+
permissions: "modes",
|
|
36
|
+
questions: true,
|
|
37
|
+
mcp: "full",
|
|
38
|
+
effort: true,
|
|
39
|
+
isolation: "namespace",
|
|
40
|
+
commands: true,
|
|
41
|
+
terminals: true,
|
|
42
|
+
recovery: true,
|
|
43
|
+
};
|
|
44
|
+
const CODEX = {
|
|
45
|
+
runtime: "codex",
|
|
46
|
+
steering: false,
|
|
47
|
+
permissions: "plan",
|
|
48
|
+
questions: false,
|
|
49
|
+
mcp: "none",
|
|
50
|
+
effort: true,
|
|
51
|
+
isolation: "cwd",
|
|
52
|
+
commands: false,
|
|
53
|
+
terminals: false,
|
|
54
|
+
recovery: false,
|
|
55
|
+
};
|
|
56
|
+
const OPENCODE = {
|
|
57
|
+
runtime: "opencode",
|
|
58
|
+
steering: false,
|
|
59
|
+
permissions: "plan",
|
|
60
|
+
questions: false,
|
|
61
|
+
mcp: "none",
|
|
62
|
+
effort: false,
|
|
63
|
+
isolation: "cwd",
|
|
64
|
+
commands: false,
|
|
65
|
+
terminals: false,
|
|
66
|
+
recovery: false,
|
|
67
|
+
};
|
|
68
|
+
const ACP = {
|
|
69
|
+
runtime: "acp",
|
|
70
|
+
steering: false,
|
|
71
|
+
permissions: "plan",
|
|
72
|
+
questions: false,
|
|
73
|
+
mcp: "http",
|
|
74
|
+
effort: false,
|
|
75
|
+
isolation: "cwd",
|
|
76
|
+
commands: true,
|
|
77
|
+
terminals: true,
|
|
78
|
+
recovery: false,
|
|
79
|
+
};
|
|
80
|
+
export const capabilitiesOf = (provider, harness) => {
|
|
81
|
+
if (provider === "codex") {
|
|
82
|
+
return harness === "claude-code" ? CLAUDE_CODE : CODEX;
|
|
83
|
+
}
|
|
84
|
+
if (provider === "grok") {
|
|
85
|
+
return harness === "claude-code" ? CLAUDE_CODE : OPENCODE;
|
|
86
|
+
}
|
|
87
|
+
return NATIVE_PROVIDERS.includes(provider) ? CLAUDE_CODE : ACP;
|
|
88
|
+
};
|
|
89
|
+
export const modesFor = (capabilities) => capabilities.permissions === "modes" ? ["default", "acceptEdits", "plan", "bypassPermissions"] : ["plan", "bypassPermissions"];
|
|
90
|
+
export const clampMode = (mode, capabilities) => modesFor(capabilities).includes(mode) ? mode : "bypassPermissions";
|
|
91
|
+
export const limitationsOf = (capabilities) => [
|
|
92
|
+
...(capabilities.permissions === "plan" ? ["no per-tool approvals"] : []),
|
|
93
|
+
...(capabilities.questions ? [] : ["no clarifying questions"]),
|
|
94
|
+
...(capabilities.steering ? [] : ["no mid-turn steering"]),
|
|
95
|
+
...(capabilities.mcp === "none" ? ["no MCP tools or plugins"] : capabilities.mcp === "http" ? ["MCP tools only — no plugins or browser"] : []),
|
|
96
|
+
...(capabilities.effort ? [] : ["no effort control"]),
|
|
97
|
+
...(capabilities.commands ? [] : ["no slash commands"]),
|
|
98
|
+
...(capabilities.terminals ? [] : ["no terminal panel"]),
|
|
99
|
+
...(capabilities.isolation === "namespace" ? [] : ["worktree by working directory only"]),
|
|
100
|
+
...(capabilities.recovery ? [] : ["no auto-resume after an outage"]),
|
|
101
|
+
];
|
|
26
102
|
export const CLAUDE_SEED_MODELS = [
|
|
27
103
|
{ id: "claude-opus-5", label: "Claude Opus 5" },
|
|
28
104
|
{ id: "claude-sonnet-5", label: "Claude Sonnet 5" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-catalog.js","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-catalog.js","sourceRoot":"","sources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AS,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC;IACzF,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC;CACvE,CAAC;AASF,MAAM,CAAC,MAAM,kBAAkB,GAAqB;IAChD,EAAE,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAC/C,EAAE,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;IACnD,EAAE,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE,kBAAkB,EAAE;CACjE,CAAC;AAOF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAuB,EAAmB,EAAE;IAClE,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACxF,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAc,EAAE,QAAuB,EAAE,QAAiB,EAAW,EAAE,CACjG,MAAM,KAAK,KAAK,IAAI,CAAC,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,CAAC"}
|
|
@@ -145,6 +145,24 @@ export declare const agentContract: {
|
|
|
145
145
|
} | {
|
|
146
146
|
kind: "browser";
|
|
147
147
|
session: string;
|
|
148
|
+
} | {
|
|
149
|
+
kind: "subagent";
|
|
150
|
+
id: string;
|
|
151
|
+
subagentKind: "codex" | "grok" | "subagent";
|
|
152
|
+
agentType?: string | undefined;
|
|
153
|
+
description?: string | undefined;
|
|
154
|
+
model?: string | undefined;
|
|
155
|
+
background?: boolean | undefined;
|
|
156
|
+
terminal?: string | undefined;
|
|
157
|
+
} | {
|
|
158
|
+
kind: "subagent_update";
|
|
159
|
+
id: string;
|
|
160
|
+
status?: "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined;
|
|
161
|
+
tokens?: number | undefined;
|
|
162
|
+
toolUses?: number | undefined;
|
|
163
|
+
lastTool?: string | undefined;
|
|
164
|
+
summary?: string | undefined;
|
|
165
|
+
error?: string | undefined;
|
|
148
166
|
} | {
|
|
149
167
|
kind: "todos";
|
|
150
168
|
items: {
|
|
@@ -261,7 +279,6 @@ export declare const agentContract: {
|
|
|
261
279
|
attempt: number;
|
|
262
280
|
maxAttempts: number;
|
|
263
281
|
} | undefined;
|
|
264
|
-
account?: string | undefined;
|
|
265
282
|
} | {
|
|
266
283
|
kind: "done";
|
|
267
284
|
};
|
|
@@ -365,6 +382,24 @@ export declare const agentContract: {
|
|
|
365
382
|
} | {
|
|
366
383
|
kind: "browser";
|
|
367
384
|
session: string;
|
|
385
|
+
} | {
|
|
386
|
+
kind: "subagent";
|
|
387
|
+
id: string;
|
|
388
|
+
subagentKind: "codex" | "grok" | "subagent";
|
|
389
|
+
agentType?: string | undefined;
|
|
390
|
+
description?: string | undefined;
|
|
391
|
+
model?: string | undefined;
|
|
392
|
+
background?: boolean | undefined;
|
|
393
|
+
terminal?: string | undefined;
|
|
394
|
+
} | {
|
|
395
|
+
kind: "subagent_update";
|
|
396
|
+
id: string;
|
|
397
|
+
status?: "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined;
|
|
398
|
+
tokens?: number | undefined;
|
|
399
|
+
toolUses?: number | undefined;
|
|
400
|
+
lastTool?: string | undefined;
|
|
401
|
+
summary?: string | undefined;
|
|
402
|
+
error?: string | undefined;
|
|
368
403
|
} | {
|
|
369
404
|
kind: "todos";
|
|
370
405
|
items: {
|
|
@@ -481,7 +516,6 @@ export declare const agentContract: {
|
|
|
481
516
|
attempt: number;
|
|
482
517
|
maxAttempts: number;
|
|
483
518
|
} | undefined;
|
|
484
|
-
account?: string | undefined;
|
|
485
519
|
} | {
|
|
486
520
|
kind: "done";
|
|
487
521
|
};
|
|
@@ -534,12 +568,6 @@ export declare const agentContract: {
|
|
|
534
568
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
535
569
|
ok: import("zod").ZodLiteral<true>;
|
|
536
570
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
537
|
-
resumeLimit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
538
|
-
conversationId: import("zod").ZodString;
|
|
539
|
-
account: import("zod").ZodOptional<import("zod").ZodString>;
|
|
540
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
541
|
-
run: import("zod").ZodString;
|
|
542
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
543
571
|
commands: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
544
572
|
agent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
545
573
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa;IACtB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACN,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACL,KAAK;;;;;;;;;;;;;IACL,IAAI;;;;;IAGJ,QAAQ;;;;;;;;;CACX,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { eventIterator, oc } from "@orpc/contract";
|
|
2
2
|
import { AgentCommandsQuerySchema, AgentCommandsSchema, AttachFrameSchema } from "../events.js";
|
|
3
|
-
import { AgentReplySchema, AgentTurnSchema, AttachTurnSchema, OkSchema,
|
|
3
|
+
import { AgentReplySchema, AgentTurnSchema, AttachTurnSchema, OkSchema, StartedTurnSchema, SteerSchema, StopTurnSchema } from "../schemas.js";
|
|
4
4
|
export const agentContract = {
|
|
5
5
|
run: oc.route({ method: "POST", path: "/agent" }).input(AgentTurnSchema).output(StartedTurnSchema),
|
|
6
6
|
attach: oc.route({ method: "POST", path: "/agent/attach" }).input(AttachTurnSchema).output(eventIterator(AttachFrameSchema)),
|
|
7
7
|
reply: oc.route({ method: "POST", path: "/agent/reply" }).input(AgentReplySchema).output(OkSchema),
|
|
8
8
|
steer: oc.route({ method: "POST", path: "/agent/steer" }).input(SteerSchema).output(OkSchema),
|
|
9
9
|
stop: oc.route({ method: "POST", path: "/agent/stop" }).input(StopTurnSchema).output(OkSchema),
|
|
10
|
-
resumeLimit: oc.route({ method: "POST", path: "/agent/resume-limit" }).input(ResumeLimitSchema).output(StartedTurnSchema),
|
|
11
10
|
commands: oc.route({ method: "GET", path: "/agent/commands" }).input(AgentCommandsQuerySchema).output(AgentCommandsSchema),
|
|
12
11
|
};
|
|
13
12
|
//# sourceMappingURL=agent.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.contract.js","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,
|
|
1
|
+
{"version":3,"file":"agent.contract.js","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAO9I,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAClG,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC5H,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAClG,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC7F,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAG9F,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;CAC7H,CAAC"}
|
|
@@ -55,6 +55,10 @@ export declare const agentsContract: {
|
|
|
55
55
|
}, import("zod/v4/core").$strip>;
|
|
56
56
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
57
57
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
58
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
59
|
+
running: import("zod").ZodNumber;
|
|
60
|
+
total: import("zod").ZodNumber;
|
|
61
|
+
}, import("zod/v4/core").$strip>>;
|
|
58
62
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
59
63
|
files: import("zod").ZodNumber;
|
|
60
64
|
insertions: import("zod").ZodNumber;
|
|
@@ -120,6 +124,10 @@ export declare const agentsContract: {
|
|
|
120
124
|
}, import("zod/v4/core").$strip>;
|
|
121
125
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
122
126
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
127
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
128
|
+
running: import("zod").ZodNumber;
|
|
129
|
+
total: import("zod").ZodNumber;
|
|
130
|
+
}, import("zod/v4/core").$strip>>;
|
|
123
131
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
124
132
|
files: import("zod").ZodNumber;
|
|
125
133
|
insertions: import("zod").ZodNumber;
|
|
@@ -195,6 +203,10 @@ export declare const agentsContract: {
|
|
|
195
203
|
}, import("zod/v4/core").$strip>;
|
|
196
204
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
197
205
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
206
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
207
|
+
running: import("zod").ZodNumber;
|
|
208
|
+
total: import("zod").ZodNumber;
|
|
209
|
+
}, import("zod/v4/core").$strip>>;
|
|
198
210
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
199
211
|
files: import("zod").ZodNumber;
|
|
200
212
|
insertions: import("zod").ZodNumber;
|
|
@@ -213,45 +225,7 @@ export declare const agentsContract: {
|
|
|
213
225
|
text: import("zod").ZodString;
|
|
214
226
|
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
215
227
|
thinking: import("zod").ZodOptional<import("zod").ZodString>;
|
|
216
|
-
tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").
|
|
217
|
-
id: import("zod").ZodString;
|
|
218
|
-
name: import("zod").ZodString;
|
|
219
|
-
category: import("zod").ZodEnum<{
|
|
220
|
-
delete: "delete";
|
|
221
|
-
edit: "edit";
|
|
222
|
-
execute: "execute";
|
|
223
|
-
fetch: "fetch";
|
|
224
|
-
move: "move";
|
|
225
|
-
other: "other";
|
|
226
|
-
read: "read";
|
|
227
|
-
search: "search";
|
|
228
|
-
think: "think";
|
|
229
|
-
}>;
|
|
230
|
-
status: import("zod").ZodEnum<{
|
|
231
|
-
completed: "completed";
|
|
232
|
-
failed: "failed";
|
|
233
|
-
in_progress: "in_progress";
|
|
234
|
-
pending: "pending";
|
|
235
|
-
}>;
|
|
236
|
-
target: import("zod").ZodOptional<import("zod").ZodString>;
|
|
237
|
-
locations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
238
|
-
path: import("zod").ZodString;
|
|
239
|
-
line: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
240
|
-
}, import("zod/v4/core").$strip>>>;
|
|
241
|
-
content: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
242
|
-
type: import("zod").ZodLiteral<"text">;
|
|
243
|
-
text: import("zod").ZodString;
|
|
244
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
245
|
-
type: import("zod").ZodLiteral<"diff">;
|
|
246
|
-
path: import("zod").ZodString;
|
|
247
|
-
oldText: import("zod").ZodOptional<import("zod").ZodString>;
|
|
248
|
-
newText: import("zod").ZodString;
|
|
249
|
-
truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
250
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
251
|
-
type: import("zod").ZodLiteral<"image">;
|
|
252
|
-
path: import("zod").ZodString;
|
|
253
|
-
}, import("zod/v4/core").$strip>], "type">>>;
|
|
254
|
-
}, import("zod/v4/core").$strip>>>;
|
|
228
|
+
tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("../events.js").RestoredToolCall, unknown, import("zod/v4/core").$ZodTypeInternals<import("../events.js").RestoredToolCall, unknown>>>>;
|
|
255
229
|
}, import("zod/v4/core").$strip>>;
|
|
256
230
|
sessionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
257
231
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -313,6 +287,10 @@ export declare const agentsContract: {
|
|
|
313
287
|
}, import("zod/v4/core").$strip>;
|
|
314
288
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
315
289
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
290
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
291
|
+
running: import("zod").ZodNumber;
|
|
292
|
+
total: import("zod").ZodNumber;
|
|
293
|
+
}, import("zod/v4/core").$strip>>;
|
|
316
294
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
317
295
|
files: import("zod").ZodNumber;
|
|
318
296
|
insertions: import("zod").ZodNumber;
|
|
@@ -378,6 +356,10 @@ export declare const agentsContract: {
|
|
|
378
356
|
}, import("zod/v4/core").$strip>;
|
|
379
357
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
380
358
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
359
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
360
|
+
running: import("zod").ZodNumber;
|
|
361
|
+
total: import("zod").ZodNumber;
|
|
362
|
+
}, import("zod/v4/core").$strip>>;
|
|
381
363
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
382
364
|
files: import("zod").ZodNumber;
|
|
383
365
|
insertions: import("zod").ZodNumber;
|
|
@@ -442,6 +424,10 @@ export declare const agentsContract: {
|
|
|
442
424
|
}, import("zod/v4/core").$strip>;
|
|
443
425
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
444
426
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
427
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
428
|
+
running: import("zod").ZodNumber;
|
|
429
|
+
total: import("zod").ZodNumber;
|
|
430
|
+
}, import("zod/v4/core").$strip>>;
|
|
445
431
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
446
432
|
files: import("zod").ZodNumber;
|
|
447
433
|
insertions: import("zod").ZodNumber;
|
|
@@ -505,6 +491,10 @@ export declare const agentsContract: {
|
|
|
505
491
|
}, import("zod/v4/core").$strip>;
|
|
506
492
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
507
493
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
494
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
495
|
+
running: import("zod").ZodNumber;
|
|
496
|
+
total: import("zod").ZodNumber;
|
|
497
|
+
}, import("zod/v4/core").$strip>>;
|
|
508
498
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
509
499
|
files: import("zod").ZodNumber;
|
|
510
500
|
insertions: import("zod").ZodNumber;
|
|
@@ -649,6 +639,10 @@ export declare const agentsContract: {
|
|
|
649
639
|
}, import("zod/v4/core").$strip>;
|
|
650
640
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
651
641
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
642
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
643
|
+
running: import("zod").ZodNumber;
|
|
644
|
+
total: import("zod").ZodNumber;
|
|
645
|
+
}, import("zod/v4/core").$strip>>;
|
|
652
646
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
653
647
|
files: import("zod").ZodNumber;
|
|
654
648
|
insertions: import("zod").ZodNumber;
|
|
@@ -716,6 +710,10 @@ export declare const agentsContract: {
|
|
|
716
710
|
}, import("zod/v4/core").$strip>;
|
|
717
711
|
turns: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
718
712
|
toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
713
|
+
subagents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
714
|
+
running: import("zod").ZodNumber;
|
|
715
|
+
total: import("zod").ZodNumber;
|
|
716
|
+
}, import("zod/v4/core").$strip>>;
|
|
719
717
|
diff: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
720
718
|
files: import("zod").ZodNumber;
|
|
721
719
|
insertions: import("zod").ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"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 +24,10 @@ export declare const extensionsContract: {
|
|
|
24
24
|
}>;
|
|
25
25
|
badge: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
26
26
|
}, import("zod/v4/core").$strip>>>;
|
|
27
|
+
files: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
28
|
+
path: import("zod").ZodString;
|
|
29
|
+
invalidates: import("zod").ZodArray<import("zod").ZodString>;
|
|
30
|
+
}, import("zod/v4/core").$strip>>>;
|
|
27
31
|
viewers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
28
32
|
id: import("zod").ZodString;
|
|
29
33
|
extensions: import("zod").ZodArray<import("zod").ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/extensions.contract.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,kBAAkB;IAC3B,IAAI
|
|
1
|
+
{"version":3,"file":"extensions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/extensions.contract.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,kBAAkB;IAC3B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACJ,QAAQ;;;;;;IACR,WAAW;;;;;;IAGX,aAAa;;;;;;;;;IAIb,YAAY;;;;;;IACZ,WAAW;;;;;;CACd,CAAC"}
|
|
@@ -21,45 +21,7 @@ export declare const sessionsContract: {
|
|
|
21
21
|
text: z.ZodString;
|
|
22
22
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
23
|
thinking: z.ZodOptional<z.ZodString>;
|
|
24
|
-
tools: z.ZodOptional<z.ZodArray<z.
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
name: z.ZodString;
|
|
27
|
-
category: z.ZodEnum<{
|
|
28
|
-
delete: "delete";
|
|
29
|
-
edit: "edit";
|
|
30
|
-
execute: "execute";
|
|
31
|
-
fetch: "fetch";
|
|
32
|
-
move: "move";
|
|
33
|
-
other: "other";
|
|
34
|
-
read: "read";
|
|
35
|
-
search: "search";
|
|
36
|
-
think: "think";
|
|
37
|
-
}>;
|
|
38
|
-
status: z.ZodEnum<{
|
|
39
|
-
completed: "completed";
|
|
40
|
-
failed: "failed";
|
|
41
|
-
in_progress: "in_progress";
|
|
42
|
-
pending: "pending";
|
|
43
|
-
}>;
|
|
44
|
-
target: z.ZodOptional<z.ZodString>;
|
|
45
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
-
path: z.ZodString;
|
|
47
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
48
|
-
}, z.core.$strip>>>;
|
|
49
|
-
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
-
type: z.ZodLiteral<"text">;
|
|
51
|
-
text: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
type: z.ZodLiteral<"diff">;
|
|
54
|
-
path: z.ZodString;
|
|
55
|
-
oldText: z.ZodOptional<z.ZodString>;
|
|
56
|
-
newText: z.ZodString;
|
|
57
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
type: z.ZodLiteral<"image">;
|
|
60
|
-
path: z.ZodString;
|
|
61
|
-
}, z.core.$strip>], "type">>>;
|
|
62
|
-
}, z.core.$strip>>>;
|
|
24
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodType<import("../events.js").RestoredToolCall, unknown, z.core.$ZodTypeInternals<import("../events.js").RestoredToolCall, unknown>>>>;
|
|
63
25
|
}, z.core.$strip>>;
|
|
64
26
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
65
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;IAIJ,GAAG
|
|
1
|
+
{"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;IAIJ,GAAG;;;;;;;;;;;;;;CACN,CAAC"}
|
|
@@ -23,7 +23,6 @@ export declare const settingsContract: {
|
|
|
23
23
|
quickModel: import("zod").ZodDefault<import("zod").ZodString>;
|
|
24
24
|
agentRetentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
25
25
|
autoLand: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
26
|
-
autoResumeOnLimit: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
27
26
|
resumeAfterOutage: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
28
27
|
autoResumeOnRestart: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
29
28
|
gateCommand: import("zod").ZodDefault<import("zod").ZodString>;
|
|
@@ -55,7 +54,6 @@ export declare const settingsContract: {
|
|
|
55
54
|
quickModel: import("zod").ZodDefault<import("zod").ZodString>;
|
|
56
55
|
agentRetentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
57
56
|
autoLand: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
58
|
-
autoResumeOnLimit: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
59
57
|
resumeAfterOutage: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
60
58
|
autoResumeOnRestart: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
61
59
|
gateCommand: import("zod").ZodDefault<import("zod").ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/settings.contract.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,gBAAgB;IACzB,GAAG
|
|
1
|
+
{"version":3,"file":"settings.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/settings.contract.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACP,aAAa;;;;;;;;;CAChB,CAAC"}
|
|
@@ -102,6 +102,10 @@ export declare const systemContract: {
|
|
|
102
102
|
};
|
|
103
103
|
turns?: number | undefined;
|
|
104
104
|
toolUses?: number | undefined;
|
|
105
|
+
subagents?: {
|
|
106
|
+
running: number;
|
|
107
|
+
total: number;
|
|
108
|
+
} | undefined;
|
|
105
109
|
diff?: {
|
|
106
110
|
files: number;
|
|
107
111
|
insertions: number;
|
|
@@ -198,6 +202,10 @@ export declare const systemContract: {
|
|
|
198
202
|
};
|
|
199
203
|
turns?: number | undefined;
|
|
200
204
|
toolUses?: number | undefined;
|
|
205
|
+
subagents?: {
|
|
206
|
+
running: number;
|
|
207
|
+
total: number;
|
|
208
|
+
} | undefined;
|
|
201
209
|
diff?: {
|
|
202
210
|
files: number;
|
|
203
211
|
insertions: number;
|
|
@@ -264,6 +272,7 @@ export declare const systemContract: {
|
|
|
264
272
|
server: z.ZodString;
|
|
265
273
|
running: z.ZodBoolean;
|
|
266
274
|
activityAt: z.ZodNumber;
|
|
275
|
+
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
267
276
|
pages: z.ZodArray<z.ZodObject<{
|
|
268
277
|
id: z.ZodString;
|
|
269
278
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -277,5 +286,52 @@ export declare const systemContract: {
|
|
|
277
286
|
}, z.core.$strip>, z.ZodObject<{
|
|
278
287
|
ok: z.ZodLiteral<true>;
|
|
279
288
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
289
|
+
subagents: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
290
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
291
|
+
id: z.ZodString;
|
|
292
|
+
kind: z.ZodEnum<{
|
|
293
|
+
codex: "codex";
|
|
294
|
+
grok: "grok";
|
|
295
|
+
subagent: "subagent";
|
|
296
|
+
}>;
|
|
297
|
+
conversationId: z.ZodString;
|
|
298
|
+
agentType: z.ZodOptional<z.ZodString>;
|
|
299
|
+
description: z.ZodOptional<z.ZodString>;
|
|
300
|
+
model: z.ZodOptional<z.ZodString>;
|
|
301
|
+
spawnDepth: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
status: z.ZodEnum<{
|
|
304
|
+
completed: "completed";
|
|
305
|
+
failed: "failed";
|
|
306
|
+
killed: "killed";
|
|
307
|
+
paused: "paused";
|
|
308
|
+
pending: "pending";
|
|
309
|
+
running: "running";
|
|
310
|
+
}>;
|
|
311
|
+
startedAt: z.ZodNumber;
|
|
312
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
activityAt: z.ZodNumber;
|
|
314
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
toolUses: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
lastTool: z.ZodOptional<z.ZodString>;
|
|
317
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
318
|
+
error: z.ZodOptional<z.ZodString>;
|
|
319
|
+
terminal: z.ZodOptional<z.ZodString>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
322
|
+
subagentTranscript: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
325
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
326
|
+
role: z.ZodEnum<{
|
|
327
|
+
assistant: "assistant";
|
|
328
|
+
user: "user";
|
|
329
|
+
}>;
|
|
330
|
+
text: z.ZodString;
|
|
331
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
332
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
333
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodType<import("../events.js").RestoredToolCall, unknown, z.core.$ZodTypeInternals<import("../events.js").RestoredToolCall, unknown>>>>;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
280
336
|
};
|
|
281
337
|
//# sourceMappingURL=system.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;IAGJ,OAAO;;;;;IACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKN,QAAQ;;;;;;;;;IACR,UAAU;;;;;;IAEV,KAAK;;;;;;;;;;;;IAKL,SAAS;;;;;;;;;;;;;;;;;;IACT,YAAY;;;;;IAMZ,QAAQ;;;;;;;;;;;;;;;;IACR,YAAY;;;;;IAQZ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACT,kBAAkB;;;;;;;;;;;;;;CAIrB,CAAC"}
|