@zvada/agent-server 0.3.25 → 0.3.26
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/CHANGELOG.md +80 -0
- package/README.md +3 -0
- package/dist/core/agents/acp/acp-agent.js +91 -14
- package/dist/core/agents/acp/mappings.js +5 -1
- package/dist/core/agents/claude-code/approvals.js +2 -1
- package/dist/core/agents/claude-code/claude-agent.js +12 -2
- package/dist/core/agents/claude-code/mcp.js +9 -1
- package/dist/core/agents/claude-code/models.js +16 -10
- package/dist/core/agents/claude-code/options.js +23 -2
- package/dist/core/agents/claude-code/session.js +21 -1
- package/dist/core/agents/claude-code/tools.js +9 -4
- package/dist/core/agents/claude-code/turn.js +2 -0
- package/dist/core/agents/codex-app-server/adapter.js +2 -0
- package/dist/core/agents/codex-app-server/client.js +8 -5
- package/dist/core/agents/codex-app-server/codex-agent.js +35 -2
- package/dist/core/agents/codex-app-server/effort.js +13 -6
- package/dist/core/agents/codex-app-server/mcp.js +35 -18
- package/dist/core/agents/codex-app-server/models.js +10 -10
- package/dist/core/agents/codex-app-server/options.js +11 -2
- package/dist/core/agents/codex-app-server/session.js +11 -4
- package/dist/core/agents/codex-app-server/thread-settings.js +30 -11
- package/dist/core/agents/host-tools.js +493 -0
- package/dist/core/agents/mcp-config.js +6 -2
- package/dist/core/agents/scripted/scripted-agent.js +9 -3
- package/dist/core/agents/scripted/steps.js +5 -1
- package/dist/core/agents/session-agent.js +70 -2
- package/dist/core/agents/thinking-levels.js +8 -5
- package/dist/core/index.js +1 -0
- package/dist/core/presets.js +12 -2
- package/dist/core/processes/lifeline.js +9 -5
- package/dist/core/provision/pins.js +7 -16
- package/dist/core/provision/releases.js +25 -25
- package/dist/core/proxy/loopback.js +22 -4
- package/dist/protocol/config.js +21 -1
- package/dist/protocol/model-catalog.js +58 -18
- package/dist/protocol/models.js +6 -27
- package/dist/protocol/thinking.js +22 -9
- package/dist/protocol/wire-api.js +2 -2
- package/dist/server/bin.js +6 -4
- package/dist/types/core/agents/acp/acp-agent.d.ts +15 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -1
- package/dist/types/core/agents/acp/mappings.d.ts +5 -1
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -1
- package/dist/types/core/agents/acp/requests.d.ts +2 -0
- package/dist/types/core/agents/acp/requests.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts +2 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +1 -0
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts +8 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/models.d.ts +9 -5
- package/dist/types/core/agents/claude-code/models.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/options.d.ts +10 -1
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/session.d.ts +2 -0
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/turn.d.ts +3 -0
- package/dist/types/core/agents/claude-code/turn.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/client.d.ts +2 -0
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +11 -0
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/effort.d.ts +7 -7
- package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/mcp.d.ts +11 -3
- package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts +4 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/options.d.ts +9 -2
- package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/requests.d.ts +2 -0
- package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/session.d.ts +6 -3
- package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -1
- package/dist/types/core/agents/host-tools.d.ts +162 -0
- package/dist/types/core/agents/host-tools.d.ts.map +1 -0
- package/dist/types/core/agents/mcp-config.d.ts +11 -2
- package/dist/types/core/agents/mcp-config.d.ts.map +1 -1
- package/dist/types/core/agents/scripted/scripted-agent.d.ts.map +1 -1
- package/dist/types/core/agents/scripted/steps.d.ts.map +1 -1
- package/dist/types/core/agents/session-agent.d.ts +2 -7
- package/dist/types/core/agents/session-agent.d.ts.map +1 -1
- package/dist/types/core/agents/thinking-levels.d.ts +7 -3
- package/dist/types/core/agents/thinking-levels.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/presets.d.ts +11 -1
- package/dist/types/core/presets.d.ts.map +1 -1
- package/dist/types/core/processes/lifeline.d.ts.map +1 -1
- package/dist/types/core/provision/pins.d.ts +5 -4
- package/dist/types/core/provision/pins.d.ts.map +1 -1
- package/dist/types/core/proxy/loopback.d.ts.map +1 -1
- package/dist/types/protocol/config.d.ts +12 -19
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +4 -36
- package/dist/types/protocol/conversation.d.ts.map +1 -1
- package/dist/types/protocol/execution.d.ts +2 -18
- package/dist/types/protocol/execution.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +8 -72
- package/dist/types/protocol/lifecycle.d.ts.map +1 -1
- package/dist/types/protocol/model-catalog.d.ts.map +1 -1
- package/dist/types/protocol/models.d.ts +4 -42
- package/dist/types/protocol/models.d.ts.map +1 -1
- package/dist/types/protocol/thinking.d.ts +19 -19
- package/dist/types/protocol/thinking.d.ts.map +1 -1
- package/dist/types/protocol/wire-api.d.ts +20 -105
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +16 -117
- package/dist/types/protocol/wire.d.ts.map +1 -1
- package/docs/consuming.md +68 -11
- package/docs/deploy.md +6 -5
- package/docs/harnesses.md +79 -31
- package/package.json +4 -4
- package/src/core/agents/acp/acp-agent.ts +123 -17
- package/src/core/agents/acp/mappings.ts +5 -1
- package/src/core/agents/acp/requests.ts +2 -0
- package/src/core/agents/claude-code/approvals.ts +2 -1
- package/src/core/agents/claude-code/claude-agent.ts +14 -2
- package/src/core/agents/claude-code/mcp.ts +11 -1
- package/src/core/agents/claude-code/models.ts +15 -10
- package/src/core/agents/claude-code/options.ts +33 -3
- package/src/core/agents/claude-code/session.ts +26 -1
- package/src/core/agents/claude-code/tools.ts +10 -4
- package/src/core/agents/claude-code/turn.ts +4 -0
- package/src/core/agents/codex-app-server/adapter.ts +2 -0
- package/src/core/agents/codex-app-server/client.ts +11 -5
- package/src/core/agents/codex-app-server/codex-agent.ts +45 -1
- package/src/core/agents/codex-app-server/effort.ts +15 -20
- package/src/core/agents/codex-app-server/mcp.ts +46 -23
- package/src/core/agents/codex-app-server/models.ts +10 -10
- package/src/core/agents/codex-app-server/options.ts +16 -2
- package/src/core/agents/codex-app-server/requests.ts +2 -0
- package/src/core/agents/codex-app-server/session.ts +19 -4
- package/src/core/agents/codex-app-server/thread-settings.ts +31 -11
- package/src/core/agents/host-tools.ts +649 -0
- package/src/core/agents/mcp-config.ts +15 -3
- package/src/core/agents/scripted/scripted-agent.ts +9 -2
- package/src/core/agents/scripted/steps.ts +5 -1
- package/src/core/agents/session-agent.ts +78 -2
- package/src/core/agents/thinking-levels.ts +9 -6
- package/src/core/index.ts +9 -0
- package/src/core/presets.ts +24 -3
- package/src/core/processes/lifeline.ts +9 -5
- package/src/core/provision/pins.ts +7 -16
- package/src/core/provision/releases.ts +25 -25
- package/src/core/proxy/loopback.ts +25 -4
- package/src/protocol/config.ts +22 -1
- package/src/protocol/model-catalog.ts +58 -18
- package/src/protocol/models.ts +6 -26
- package/src/protocol/thinking.ts +27 -14
- package/src/protocol/wire-api.ts +2 -2
- package/src/server/bin.ts +6 -4
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AgentExecuteOptions } from "../base.ts";
|
|
2
|
+
import type { LiveTurn } from "../host-tools.ts";
|
|
2
3
|
import type { CodexConnection } from "./client.ts";
|
|
3
4
|
import { type CodexAuth } from "./credentials.ts";
|
|
4
|
-
import { CodexMcpState, type CodexTurnMcp } from "./mcp.ts";
|
|
5
|
+
import { type CodexHostServer, CodexMcpState, type CodexTurnMcp } from "./mcp.ts";
|
|
5
6
|
import type { CodexModelThinking } from "./models.ts";
|
|
6
7
|
import { type CodexProcessIdentity, type CodexThreadPolicy } from "./options.ts";
|
|
7
8
|
import { type CodexTurnScope } from "./requests.ts";
|
|
@@ -61,8 +62,10 @@ export declare class CodexSessions {
|
|
|
61
62
|
/** The operator's: what a thread loads by itself, whether every turn needs a home, and Codex's own tools. */
|
|
62
63
|
policy?: CodexThreadPolicy);
|
|
63
64
|
get(sessionId: string): CodexSession | undefined;
|
|
64
|
-
/** The turn's MCP servers, in the `CODEX_HOME` the session claims when the turn names one. */
|
|
65
|
-
mcpFor(options: AgentExecuteOptions): CodexTurnMcp;
|
|
65
|
+
/** The turn's MCP servers, in the `CODEX_HOME` the session claims when the turn names one, and the host's. */
|
|
66
|
+
mcpFor(options: AgentExecuteOptions, host?: CodexHostServer): CodexTurnMcp;
|
|
67
|
+
/** The turn the session runs now, and its mode, for a host tool's caller. */
|
|
68
|
+
live(sessionId: string): ReturnType<LiveTurn>;
|
|
66
69
|
/**
|
|
67
70
|
* The session's process for the turn, which takes it (the pool's rule):
|
|
68
71
|
* the running one when the turn can run there as the same account, else a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,SAAS,EAA0B,MAAM,kBAAkB,CAAC;AAG1E,OAAO,EACN,KAAK,eAAe,EACpB,aAAa,EACb,KAAK,YAAY,EAGjB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACN,KAAK,oBAAoB,EAEzB,KAAK,iBAAiB,EAItB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAsB,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,0EAA0E;AAC1E,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACzD,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,EAAE,aAAa,CAAC;IACnB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,EAAE,CAAC;IAClB,yEAAyE;IACzE,MAAM,EAAE,WAAW,CAAC;IACpB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,cAAc,CAAC;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AC;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC5B;AAED,2FAA2F;AAC3F,UAAU,YAAY;IACrB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,uFAAuF;IACvF,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,cAAc,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAClC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,cAAc,GAClB;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,CAiB3D;
|
|
1
|
+
{"version":3,"file":"thread-settings.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/thread-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AASxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAKjD;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,gGAAgG;IAChG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC5B;AAED,2FAA2F;AAC3F,UAAU,YAAY;IACrB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,uFAAuF;IACvF,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,cAAc,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAClC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,cAAc,GAClB;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,CAiB3D;AA0CD,0EAA0E;AAC1E,qBAAa,WAAW;IACvB,QAAQ,EAAE,cAAc,CAAyC;IACjE,kFAAkF;IAClF,OAAO,CAAC,QAAQ,CAAC,CAA+B;IAEhD;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI;IAuBpE;;;;;OAKG;IACG,OAAO,CACZ,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,cAAc,GAClB,OAAO,CAAC,YAAY,CAAC;IAqExB;;;;;;OAMG;IACG,OAAO,CACZ,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,OAAO,CAAC,IAAI,CAAC;IA2BhB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAcnB;;;;OAIG;YACW,aAAa;CAU3B"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { type AgentHarness, type McpServerConfig, type PermissionMode } from "../../protocol/index.ts";
|
|
2
|
+
/** A tool the host gives its sessions' agents. */
|
|
3
|
+
export interface HostTool {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
/** The JSON Schema of its arguments: an object schema. */
|
|
7
|
+
inputSchema: Record<string, unknown>;
|
|
8
|
+
/** MCP's `readOnlyHint` and `destructiveHint`: Codex runs a read-only tool without asking. */
|
|
9
|
+
annotations?: {
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
destructive?: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export type HostToolContent = {
|
|
15
|
+
type: "text";
|
|
16
|
+
text: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: "image";
|
|
19
|
+
data: string;
|
|
20
|
+
mimeType: string;
|
|
21
|
+
};
|
|
22
|
+
/** What a call answers: its content, and whether it failed (the model reads why). */
|
|
23
|
+
export interface HostToolResult {
|
|
24
|
+
content: HostToolContent[];
|
|
25
|
+
isError?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** Who calls, as only the engine knows it at the moment of the call. */
|
|
28
|
+
export interface HostToolCaller {
|
|
29
|
+
sessionId: string;
|
|
30
|
+
harness: AgentHarness;
|
|
31
|
+
/** The turn running when the call came: a call outside a turn is refused before the host sees it. */
|
|
32
|
+
turnId: string;
|
|
33
|
+
/** The mode the session runs in at the moment of the call, a change mid-turn included. */
|
|
34
|
+
permissionMode: PermissionMode;
|
|
35
|
+
}
|
|
36
|
+
/** A session's tools: one MCP server, named `name` on every harness. */
|
|
37
|
+
export interface HostToolSource {
|
|
38
|
+
name: string;
|
|
39
|
+
tools: readonly HostTool[];
|
|
40
|
+
/** Words for the model about the tools (MCP's `instructions`). */
|
|
41
|
+
instructions?: string;
|
|
42
|
+
/** How long one call may run, on every harness (30 minutes by default). */
|
|
43
|
+
timeoutMs?: number;
|
|
44
|
+
/** Run a tool. `signal` aborts when the agent gives the call up. A throw is the call's failure. */
|
|
45
|
+
call(name: string, args: Record<string, unknown>, caller: HostToolCaller, signal: AbortSignal): Promise<HostToolResult>;
|
|
46
|
+
}
|
|
47
|
+
/** The host's tools for a session, asked once, at its first turn; none gives it none. */
|
|
48
|
+
export type HostTools = (session: {
|
|
49
|
+
sessionId: string;
|
|
50
|
+
cwd: string;
|
|
51
|
+
harness: AgentHarness;
|
|
52
|
+
}) => HostToolSource | undefined | Promise<HostToolSource | undefined>;
|
|
53
|
+
/** What the engine knows of a session's turn when a tool is called, and the turn's own cancel. */
|
|
54
|
+
export type LiveTurn = () => (Pick<HostToolCaller, "turnId" | "permissionMode"> & {
|
|
55
|
+
signal?: AbortSignal;
|
|
56
|
+
}) | undefined;
|
|
57
|
+
/** How long a host tool call may run unless its source says otherwise. */
|
|
58
|
+
export declare const HOST_TOOL_TIMEOUT_MS: number;
|
|
59
|
+
/** The MCP transport the Claude Agent SDK hands an in-process server (`connect`). */
|
|
60
|
+
interface SdkTransport {
|
|
61
|
+
onmessage?: (message: unknown) => void;
|
|
62
|
+
onclose?: () => void;
|
|
63
|
+
send(message: unknown): Promise<void>;
|
|
64
|
+
start(): Promise<void>;
|
|
65
|
+
}
|
|
66
|
+
/** The hosts a harness process must reach directly, never through a proxy (`NO_PROXY`). */
|
|
67
|
+
export declare const LOOPBACK_HOSTS: string[];
|
|
68
|
+
export interface HostToolSessionsOptions {
|
|
69
|
+
/** The session's turn now, for a call over HTTP. */
|
|
70
|
+
live?: (sessionId: string) => ReturnType<LiveTurn>;
|
|
71
|
+
/**
|
|
72
|
+
* The harness cannot be relied on to ask the person before a tool that
|
|
73
|
+
* changes something (an ACP agent): such a tool runs only with full access.
|
|
74
|
+
*/
|
|
75
|
+
writesNeedFullAccess?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/** A session's source, bound to the entry it came from: its HTTP server is that entry's or none. */
|
|
78
|
+
export interface HostLease {
|
|
79
|
+
source: HostToolSource;
|
|
80
|
+
/**
|
|
81
|
+
* The session's server on the engine's loopback, as a turn names it: the
|
|
82
|
+
* same URL and secret for the session's life, so a Codex thread's config
|
|
83
|
+
* does not change between its turns. A loopback that cannot start is the
|
|
84
|
+
* server's `mcp_unavailable`; a session released meanwhile gets nothing.
|
|
85
|
+
*/
|
|
86
|
+
http(): Promise<McpServerConfig>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A harness's host tools: each session's source, asked once; for Claude an
|
|
90
|
+
* in-process server, for an agent that reaches it over HTTP the engine's own
|
|
91
|
+
* loopback endpoint, which knows a session by the secret its config carries.
|
|
92
|
+
*/
|
|
93
|
+
export declare class HostToolSessions {
|
|
94
|
+
private readonly hostTools;
|
|
95
|
+
private readonly harness;
|
|
96
|
+
private readonly options;
|
|
97
|
+
private readonly entries;
|
|
98
|
+
private readonly bySecret;
|
|
99
|
+
private loopback?;
|
|
100
|
+
private closed;
|
|
101
|
+
constructor(hostTools: HostTools, harness: AgentHarness, options?: HostToolSessionsOptions);
|
|
102
|
+
/** The session's source: asked at its first turn, the same one after. */
|
|
103
|
+
source(sessionId: string, cwd: string): Promise<HostToolSource | undefined>;
|
|
104
|
+
/** The session's source and its HTTP server, both bound to the entry asked now. */
|
|
105
|
+
lease(sessionId: string, cwd: string): Promise<HostLease | undefined>;
|
|
106
|
+
private entry;
|
|
107
|
+
/** Claude's in-process server for the session's source, its caller read from `live` at each call. */
|
|
108
|
+
inProcess(sessionId: string, source: HostToolSource, live: LiveTurn): {
|
|
109
|
+
type: "sdk";
|
|
110
|
+
name: string;
|
|
111
|
+
timeout: number;
|
|
112
|
+
instance: {
|
|
113
|
+
connect(transport: SdkTransport): Promise<void>;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
private http;
|
|
117
|
+
/** The session's secret, when it has one: no text the engine lets out may hold it. */
|
|
118
|
+
secretOf(sessionId: string): string | undefined;
|
|
119
|
+
/** Forget the session: its source, its calls, and its secret, which answers no more. */
|
|
120
|
+
release(sessionId: string): void;
|
|
121
|
+
close(): Promise<void>;
|
|
122
|
+
private caller;
|
|
123
|
+
private refuse;
|
|
124
|
+
/** The session a request's bearer names, and its entry, when both still stand. */
|
|
125
|
+
private bearer;
|
|
126
|
+
/** One MCP POST: a secret of no session's, or none, is refused; never a 401, which starts OAuth. */
|
|
127
|
+
private serve;
|
|
128
|
+
}
|
|
129
|
+
/** A harness's host tools, when the operator gives any. */
|
|
130
|
+
export declare function hostToolSessions(hostTools: HostTools | undefined, harness: AgentHarness, options?: HostToolSessionsOptions): HostToolSessions | undefined;
|
|
131
|
+
/** A turn's own server may not take the host tools' name: neither harness would say whose it is. */
|
|
132
|
+
export declare function refuseHostName(servers: Readonly<Record<string, unknown>> | undefined, name: string): void;
|
|
133
|
+
/**
|
|
134
|
+
* The environment `env` changes to for the loopback to be reached directly,
|
|
135
|
+
* each value `""` for a variable to leave out:
|
|
136
|
+
* - each of `NO_PROXY` and `no_proxy` that is set gets the loopback hosts
|
|
137
|
+
* added to its own list (a tool may read either, and the two may differ);
|
|
138
|
+
* with neither set, both name the loopback;
|
|
139
|
+
* - one whose value is exactly `*` (no proxy for anything) is left as it is,
|
|
140
|
+
* since a client may honour `*` only as the whole value (Codex 0.169.1 sent
|
|
141
|
+
* its model's traffic through the proxy once it read `*,127.0.0.1`); when
|
|
142
|
+
* the value a client reads (`NO_PROXY`, else `no_proxy`) is exactly `*`, the
|
|
143
|
+
* proxy variables are left out instead: Codex's MCP client (hyper-util
|
|
144
|
+
* 0.1.20) checks an IP address only against IP entries, so `*` alone left
|
|
145
|
+
* 127.0.0.1 to the proxy, and with `*` the person asked for no proxy at all.
|
|
146
|
+
* A `*` inside a longer list is extended like any other list.
|
|
147
|
+
*/
|
|
148
|
+
export declare function loopbackDirect(env: Record<string, string | undefined>): Record<string, string>;
|
|
149
|
+
/** `env` with the loopback reached directly: a variable left out is gone, not empty. */
|
|
150
|
+
export declare function withLoopbackDirect(env: Record<string, string | undefined>): Record<string, string | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* `value` with `secret` replaced by `[redacted]` in every string, key and
|
|
153
|
+
* value alike, at any depth. A first pass looks for it without copying, so
|
|
154
|
+
* an event that does not hold it is returned as it is. One that does is
|
|
155
|
+
* copied whole (arrays and plain objects; strings are shared), each object
|
|
156
|
+
* once, so two fields sharing an object share its copy and a cycle stays a
|
|
157
|
+
* cycle in the copy. An error is changed in place: its message, stack,
|
|
158
|
+
* cause and every own field (`data`). Other objects are left as they are.
|
|
159
|
+
*/
|
|
160
|
+
export declare function withoutSecret<T>(value: T, secret: string | undefined): T;
|
|
161
|
+
export {};
|
|
162
|
+
//# sourceMappingURL=host-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-tools.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/host-tools.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,YAAY,EAEjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,MAAM,yBAAyB,CAAC;AAOjC,kDAAkD;AAClD,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,8FAA8F;IAC9F,WAAW,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC5D;AAED,MAAM,MAAM,eAAe,GACxB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC9B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,Y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AAM,GAAG,MAAM,GAAG,SAAS;IAI/C,wFAAwF;IACxF,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAQ1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ5B,OAAO,CAAC,MAAM;IAWd,OAAO,CAAC,MAAM;IAMd,kFAAkF;IAClF,OAAO,CAAC,MAAM;IASd,oGAAoG;YACtF,KAAK;CAyBnB;AAED,2DAA2D;AAC3D,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,OAAO,EAAE,YAAY,EACrB,OAAO,CAAC,EAAE,uBAAuB,GAC/B,gBAAgB,GAAG,SAAS,CAE9B;AAWD,oGAAoG;AACpG,wBAAgB,cAAc,CAC7B,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,EACtD,IAAI,EAAE,MAAM,GACV,IAAI,CAKN;AASD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAyB9F;AAWD,wFAAwF;AACxF,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GACrC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAKpC;AAGD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,CAkDxE"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import type { ErrorInfo, McpServerConfig } from "../../protocol/index.ts";
|
|
2
2
|
/** A turn owns its wire configuration even when the caller reuses its objects. */
|
|
3
3
|
export declare function snapshotMcpServers(servers: Record<string, McpServerConfig> | undefined): Record<string, McpServerConfig>;
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/** Each kind of server without the fields that are the engine's own. */
|
|
5
|
+
type WithoutEngineFields<Server> = Server extends unknown ? Omit<Server, "required" | "timeoutMs"> : never;
|
|
6
|
+
/** A server without the fields that are the engine's own, which no harness takes as they are. */
|
|
7
|
+
export type NativeMcpServer = WithoutEngineFields<McpServerConfig>;
|
|
8
|
+
/**
|
|
9
|
+
* The server as a harness takes it: whether a turn needs it is the engine's
|
|
10
|
+
* rule, and how long a tool call may run each harness says in its own way
|
|
11
|
+
* (Claude's `timeout`, Codex's `tool_timeout_sec`), if at all.
|
|
12
|
+
*/
|
|
13
|
+
export declare function nativeMcpServer(server: McpServerConfig): NativeMcpServer;
|
|
6
14
|
export declare function mcpConnectionErrors(names: string[], statuses: Array<{
|
|
7
15
|
name: string;
|
|
8
16
|
status: string | null;
|
|
@@ -50,4 +58,5 @@ export declare class UnavailableMcpServers {
|
|
|
50
58
|
/** Say each server the turn goes on without (`AgentExecuteOptions.onWarning`). */
|
|
51
59
|
announce(onWarning: ((warning: ErrorInfo) => Promise<void>) | undefined): Promise<void>;
|
|
52
60
|
}
|
|
61
|
+
export {};
|
|
53
62
|
//# sourceMappingURL=mcp-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/mcp-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1E,kFAAkF;AAClF,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,GAClD,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAEjC;AAQD,
|
|
1
|
+
{"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/mcp-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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OAAO,EAAG,UAAU,CAAU;IACvC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;MAAgB;IACrC,uFAAuF;IACvF,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAStB;IACF,iDAAiD;IACjD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6B;IAEnD,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,CAAC;gBAER,OAAO,EAAE,oBAAoB;IAKpD,UAAU,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;cAIpB,WAAW,CACpC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,eAAe,GACzB,qBAAqB,CAAC,aAAa,CAAC;YAoDxB,IAAI;IA2HnB;;;;OAIG;YACW,MAAM;IAwBL,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAIxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/steps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACN,KAAK,kBAAkB,EAMvB,KAAK,iBAAiB,EAEtB,MAAM,4BAA4B,CAAC;AAKpC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/steps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACN,KAAK,kBAAkB,EAMvB,KAAK,iBAAiB,EAEtB,MAAM,4BAA4B,CAAC;AAKpC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAyE3B,CAAC;AAEH,4EAA4E;AAC5E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAC1B;IACA,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC;CACpF,GACD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACtE;IAAE,MAAM,EAAE,kBAAkB,CAAA;CAAE,GAC9B,SAAS,CAAC;AAEb,4CAA4C;AAC5C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEzD,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,CAO/D"}
|
|
@@ -17,13 +17,6 @@ export interface SessionAgentOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
cancelConfirmMs?: number;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* The execution lifecycle the engine's own harnesses extend: one turn owns a
|
|
22
|
-
* logical session from preparation through native cleanup, with steering,
|
|
23
|
-
* the conversation it resumes and the answer to its cancel. It is not
|
|
24
|
-
* exported while its design is a Draft (LLP 0016); a product's own harness
|
|
25
|
-
* extends `BaseAgent`, the public base.
|
|
26
|
-
*/
|
|
27
20
|
export declare abstract class SessionAgent extends BaseAgent {
|
|
28
21
|
private terminated;
|
|
29
22
|
/**
|
|
@@ -83,6 +76,8 @@ export declare abstract class SessionAgent extends BaseAgent {
|
|
|
83
76
|
*/
|
|
84
77
|
protected holdSteering(options: AgentExecuteOptions): void;
|
|
85
78
|
/** Native protocol execution; options are prepared and the session is exclusively owned. */
|
|
79
|
+
/** The session's host-tools secret, which no event, warning or error it lets out may hold. */
|
|
80
|
+
protected hostSecret(_sessionId: string): string | undefined;
|
|
86
81
|
protected abstract executeTurn(input: AgentInput, options: AgentExecuteOptions, controller: AbortController): AsyncIterableIterator<RawAgentEvent>;
|
|
87
82
|
private prepareSessionOptions;
|
|
88
83
|
release(sessionId: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-agent.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/session-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EACN,KAAK,mBAAmB,EACxB,SAAS,EAET,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"session-agent.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/session-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EACN,KAAK,mBAAmB,EACxB,SAAS,EAET,KAAK,YAAY,EAGjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,MAAM,WAAW,CAAC;AAInB,oDAAoD;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,YAAY,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAW3F;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;AAa9C,MAAM,WAAW,mBAAmB;IACnC;;;O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IAC5F,8FAA8F;IAC9F,SAAS,CAAC,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI5D,SAAS,CAAC,QAAQ,CAAC,WAAW,CAC7B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,eAAe,GACzB,qBAAqB,CAAC,aAAa,CAAC;IAEvC,OAAO,CAAC,qBAAqB;IAiCd,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAO5C"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
1
|
+
import type { ThinkingLevel } from "../../protocol/index.ts";
|
|
2
|
+
/**
|
|
3
|
+
* The levels a harness lists: each non-blank string once, in the order given.
|
|
4
|
+
* The order is the harness's own (both CLIs list lowest first), and a name
|
|
5
|
+
* this build does not know is kept.
|
|
6
|
+
*/
|
|
7
|
+
export declare function listedThinkingLevels(values: Iterable<unknown>): ThinkingLevel[];
|
|
4
8
|
//# sourceMappingURL=thinking-levels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thinking-levels.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/thinking-levels.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"thinking-levels.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/thinking-levels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,aAAa,EAAE,CAI/E"}
|
|
@@ -5,6 +5,7 @@ export { type EventSink, EventSinkError, callbackSink, CollectingSink, serialSin
|
|
|
5
5
|
export { type Agent, type AgentExecuteOptions, type AppliedExecution, type CancelResult, type ChosenOption, type ElicitationRequest, type ElicitationRequestHandler, type ListModelsOptions, type PermissionDecision, type PermissionRequestHandler, type RawAgentEvent, type SteerOutcome, type SteerRequest, BaseAgent, } from "./agents/base.ts";
|
|
6
6
|
export { AgentRegistry } from "./agents/registry.ts";
|
|
7
7
|
export { type CredentialSource, credentialsFromUrl } from "./agents/credentials.ts";
|
|
8
|
+
export { HOST_TOOL_TIMEOUT_MS, type HostTool, type HostToolCaller, type HostToolContent, type HostToolResult, type HostToolSource, type HostTools, } from "./agents/host-tools.ts";
|
|
8
9
|
export type { LoginOptions, LoginStatus, CliLogin, NativeLogin, } from "./agents/login.ts";
|
|
9
10
|
export { INHERIT_CONFIGS, type InheritConfig, isInheritConfig, } from "./agents/inherit-config.ts";
|
|
10
11
|
export { DEFAULT_GRACE_MS, NativeProcess, NativeProcesses, type NativeExit, type NativeProcessEvent, type NativeProcessOptions, type NativeSpawn, type OrphanOutcome, } from "./processes/native-processes.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC9E,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EACN,KAAK,SAAS,EACd,cAAc,EACd,YAAY,EACZ,cAAc,EACd,UAAU,EACV,OAAO,GACP,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACN,KAAK,KAAK,EACV,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,aA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,mBAAmB,EACxB,KAAK,YAAY,GACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,aAAa,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,GAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACN,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,0BAA0B,GAC1B,MAAM,mBAAmB,CAAC;AAG3B,cAAc,sBAAsB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { type AcpAgentOptions } from "./agents/acp/acp-agent.ts";
|
|
|
3
3
|
import type { ClaudeCodeAgentOptions } from "./agents/claude-code/options.ts";
|
|
4
4
|
import { type CodexAppServerAgentOptions } from "./agents/codex-app-server/codex-agent.ts";
|
|
5
5
|
import type { CredentialSource } from "./agents/credentials.ts";
|
|
6
|
+
import type { HostTools } from "./agents/host-tools.ts";
|
|
6
7
|
import type { InheritConfig } from "./agents/inherit-config.ts";
|
|
7
8
|
import { AgentRegistry } from "./agents/registry.ts";
|
|
8
9
|
import { type ScriptedAgentOptions } from "./agents/scripted/scripted-agent.ts";
|
|
@@ -11,7 +12,7 @@ import { type NativeProcessOptions } from "./processes/native-processes.ts";
|
|
|
11
12
|
import { type ProvisionOptions } from "./provision/provisioner.ts";
|
|
12
13
|
import { AgentRuntime } from "./runtime/agent-runtime.ts";
|
|
13
14
|
/** What the registry gives every harness that has the notion, and takes from none of their options. */
|
|
14
|
-
type SaidOnce = "processes" | "resolveCliPath" | "inheritConfig" | "idleTimeoutMs" | "credentials" | "cancelConfirmMs" | "cancelGraceMs";
|
|
15
|
+
type SaidOnce = "processes" | "resolveCliPath" | "inheritConfig" | "idleTimeoutMs" | "credentials" | "cancelConfirmMs" | "cancelGraceMs" | "hostTools";
|
|
15
16
|
export interface CreateRegistryOptions {
|
|
16
17
|
/**
|
|
17
18
|
* Which harnesses to register. Defaults to `claude-code` and
|
|
@@ -49,6 +50,15 @@ export interface CreateRegistryOptions {
|
|
|
49
50
|
* Operator-level only.
|
|
50
51
|
*/
|
|
51
52
|
credentials?: CredentialSource;
|
|
53
|
+
/**
|
|
54
|
+
* The host's own tools (LLP 0018): asked once for each session, at its
|
|
55
|
+
* first turn, for a source of tools the engine gives its agent on every
|
|
56
|
+
* harness, under one server name. Claude runs them in process; Codex, and
|
|
57
|
+
* an ACP agent that takes HTTP MCP servers, reach them at the engine's
|
|
58
|
+
* loopback by a secret of the session's own. Each call names its session,
|
|
59
|
+
* the turn running and the mode. Operator-level only.
|
|
60
|
+
*/
|
|
61
|
+
hostTools?: HostTools;
|
|
52
62
|
/**
|
|
53
63
|
* How long a session's agent process may wait unused between turns before
|
|
54
64
|
* it is ended (5 minutes by default); 0 never ends one for idleness, and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/core/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAEN,KAAK,0BAA0B,EAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CA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E,qBAA0B,GAAG,aAAa,CAsBnF;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,IAAI,GAAE,qBAA0B,GAAG,YAAY,CAEjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifeline.d.ts","sourceRoot":"","sources":["../../../../src/core/processes/lifeline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifeline.d.ts","sourceRoot":"","sources":["../../../../src/core/processes/lifeline.ts"],"names":[],"mappings":"AAyKA;;;;GAIG;AACH,cAAM,QAAQ;IAOD,OAAO,CAAC,QAAQ,CAAC,OAAO;IANpC,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,SAAS,CAAK;IACtB,mFAAmF;IACnF,OAAO,CAAC,MAAM,CAAS;gBAEM,OAAO,EAAE,MAAM;IAE5C,uEAAuE;IACvE,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAE5B;IAED,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAM5B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI1B,qFAAqF;IACrF,OAAO,CAAC,MAAM;IAoCd,OAAO,CAAC,KAAK;CAQb;AAID,qGAAqG;AACrG,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CAGlD;AAED,yDAAyD;AACzD,wBAAgB,WAAW,IAAI,MAAM,GAAG,SAAS,CAEhD"}
|
|
@@ -15,10 +15,11 @@ import type { CliTool } from "./tools.ts";
|
|
|
15
15
|
* `auto` an installed `@openai/codex` package (a lockfile's) runs instead,
|
|
16
16
|
* and a `codex` on PATH only in `system` mode.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* A bump is `bun run bump -- <tool>`: it writes what changed upstream, moves
|
|
19
|
+
* the pin, and runs both refreshes, `releases:refresh` (each platform's build
|
|
20
|
+
* and its checksums, `releases.ts`) and `models:refresh` (the model catalog,
|
|
21
|
+
* which records the versions that listed it); tests fail until both match
|
|
22
|
+
* these pins. The `bump-clis` skill says what to read and prove.
|
|
22
23
|
*/
|
|
23
24
|
export declare const DEFAULT_PINS: Record<CliTool, string>;
|
|
24
25
|
//# sourceMappingURL=pins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pins.d.ts","sourceRoot":"","sources":["../../../../src/core/provision/pins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C
|
|
1
|
+
{"version":3,"file":"pins.d.ts","sourceRoot":"","sources":["../../../../src/core/provision/pins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAGhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loopback.d.ts","sourceRoot":"","sources":["../../../../src/core/proxy/loopback.ts"],"names":[],"mappings":"AAGA,iDAAiD;AACjD,MAAM,WAAW,QAAQ;IACxB,wDAAwD;IACxD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"loopback.d.ts","sourceRoot":"","sources":["../../../../src/core/proxy/loopback.ts"],"names":[],"mappings":"AAGA,iDAAiD;AACjD,MAAM,WAAW,QAAQ;IACxB,wDAAwD;IACxD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB;AA0DD;;;;;GAKG;AACH,wBAAsB,aAAa,CAClC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,GAC7C,OAAO,CAAC,QAAQ,CAAC,CAoDnB"}
|
|
@@ -22,7 +22,7 @@ export type PermissionMode = z.infer<typeof PermissionModeSchema>;
|
|
|
22
22
|
*/
|
|
23
23
|
export type ReportedPermissionMode = PermissionMode | (string & {});
|
|
24
24
|
export declare const ReportedPermissionModeSchema: z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>;
|
|
25
|
-
/** The longest `requestTimeoutMs`: a timer's own limit, about 24.8 days. */
|
|
25
|
+
/** The longest `requestTimeoutMs` and the longest MCP `timeoutMs`: a timer's own limit, about 24.8 days. */
|
|
26
26
|
export declare const MAX_REQUEST_TIMEOUT_MS = 2147483647;
|
|
27
27
|
/** Minimal external MCP server descriptor (stdio or http/sse). */
|
|
28
28
|
export declare const McpServerConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -31,16 +31,19 @@ export declare const McpServerConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
31
31
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
32
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
33
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
34
35
|
}, z.core.$strip>, z.ZodObject<{
|
|
35
36
|
type: z.ZodLiteral<"http">;
|
|
36
37
|
url: z.ZodString;
|
|
37
38
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
39
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
39
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
40
42
|
type: z.ZodLiteral<"sse">;
|
|
41
43
|
url: z.ZodString;
|
|
42
44
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
43
45
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
44
47
|
}, z.core.$strip>], "type">;
|
|
45
48
|
export type McpServerConfig = z.infer<typeof McpServerConfigSchema>;
|
|
46
49
|
/** Everything needed to configure a turn against a harness. */
|
|
@@ -52,15 +55,7 @@ export declare const RunConfigSchema: z.ZodObject<{
|
|
|
52
55
|
scripted: "scripted";
|
|
53
56
|
}>;
|
|
54
57
|
model: z.ZodOptional<z.ZodString>;
|
|
55
|
-
thinkingLevel: z.ZodOptional<z.
|
|
56
|
-
off: "off";
|
|
57
|
-
low: "low";
|
|
58
|
-
medium: "medium";
|
|
59
|
-
high: "high";
|
|
60
|
-
xhigh: "xhigh";
|
|
61
|
-
max: "max";
|
|
62
|
-
ultra: "ultra";
|
|
63
|
-
}>>;
|
|
58
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
64
59
|
cwd: z.ZodString;
|
|
65
60
|
additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
61
|
systemPromptAppend: z.ZodOptional<z.ZodString>;
|
|
@@ -83,16 +78,19 @@ export declare const RunConfigSchema: z.ZodObject<{
|
|
|
83
78
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
79
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
80
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
86
82
|
}, z.core.$strip>, z.ZodObject<{
|
|
87
83
|
type: z.ZodLiteral<"http">;
|
|
88
84
|
url: z.ZodString;
|
|
89
85
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
90
86
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
91
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
92
89
|
type: z.ZodLiteral<"sse">;
|
|
93
90
|
url: z.ZodString;
|
|
94
91
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
95
92
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
96
94
|
}, z.core.$strip>], "type">>>;
|
|
97
95
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
98
96
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
@@ -140,15 +138,7 @@ export declare const RunRequestSchema: z.ZodObject<{
|
|
|
140
138
|
scripted: "scripted";
|
|
141
139
|
}>;
|
|
142
140
|
model: z.ZodOptional<z.ZodString>;
|
|
143
|
-
thinkingLevel: z.ZodOptional<z.
|
|
144
|
-
off: "off";
|
|
145
|
-
low: "low";
|
|
146
|
-
medium: "medium";
|
|
147
|
-
high: "high";
|
|
148
|
-
xhigh: "xhigh";
|
|
149
|
-
max: "max";
|
|
150
|
-
ultra: "ultra";
|
|
151
|
-
}>>;
|
|
141
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
152
142
|
cwd: z.ZodString;
|
|
153
143
|
additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
144
|
systemPromptAppend: z.ZodOptional<z.ZodString>;
|
|
@@ -171,16 +161,19 @@ export declare const RunRequestSchema: z.ZodObject<{
|
|
|
171
161
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
162
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
173
163
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
174
165
|
}, z.core.$strip>, z.ZodObject<{
|
|
175
166
|
type: z.ZodLiteral<"http">;
|
|
176
167
|
url: z.ZodString;
|
|
177
168
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
178
169
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
179
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
180
172
|
type: z.ZodLiteral<"sse">;
|
|
181
173
|
url: z.ZodString;
|
|
182
174
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
183
175
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
184
177
|
}, z.core.$strip>], "type">>>;
|
|
185
178
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
186
179
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/protocol/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;;;;EAM/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AACpE,eAAO,MAAM,4BAA4B,yOAA+C,CAAC;AAEzF,
|
|
1
|
+
{"version":3,"file":"config.d.ts","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AAG,QAAQ,GAAG,YAAY,CAAC,CAAC;CACxE,CAGA"}
|
|
@@ -404,25 +404,9 @@ export declare const ConversationTurnSchema: z.ZodObject<{
|
|
|
404
404
|
execution: z.ZodOptional<z.ZodObject<{
|
|
405
405
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
406
406
|
model: z.ZodOptional<z.ZodString>;
|
|
407
|
-
thinkingLevel: z.ZodOptional<z.
|
|
408
|
-
off: "off";
|
|
409
|
-
low: "low";
|
|
410
|
-
medium: "medium";
|
|
411
|
-
high: "high";
|
|
412
|
-
xhigh: "xhigh";
|
|
413
|
-
max: "max";
|
|
414
|
-
ultra: "ultra";
|
|
415
|
-
}>>;
|
|
407
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
416
408
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
417
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
418
|
-
off: "off";
|
|
419
|
-
low: "low";
|
|
420
|
-
medium: "medium";
|
|
421
|
-
high: "high";
|
|
422
|
-
xhigh: "xhigh";
|
|
423
|
-
max: "max";
|
|
424
|
-
ultra: "ultra";
|
|
425
|
-
}>>;
|
|
409
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
426
410
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
427
411
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
412
|
}, z.core.$strip>>;
|
|
@@ -731,25 +715,9 @@ export declare const ConversationStateSchema: z.ZodObject<{
|
|
|
731
715
|
execution: z.ZodOptional<z.ZodObject<{
|
|
732
716
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
733
717
|
model: z.ZodOptional<z.ZodString>;
|
|
734
|
-
thinkingLevel: z.ZodOptional<z.
|
|
735
|
-
off: "off";
|
|
736
|
-
low: "low";
|
|
737
|
-
medium: "medium";
|
|
738
|
-
high: "high";
|
|
739
|
-
xhigh: "xhigh";
|
|
740
|
-
max: "max";
|
|
741
|
-
ultra: "ultra";
|
|
742
|
-
}>>;
|
|
718
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
743
719
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
744
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
745
|
-
off: "off";
|
|
746
|
-
low: "low";
|
|
747
|
-
medium: "medium";
|
|
748
|
-
high: "high";
|
|
749
|
-
xhigh: "xhigh";
|
|
750
|
-
max: "max";
|
|
751
|
-
ultra: "ultra";
|
|
752
|
-
}>>;
|
|
720
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
753
721
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
754
722
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
755
723
|
}, z.core.$strip>>;
|