@zvada/agent-server 0.3.25 → 0.3.27
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 +113 -0
- package/README.md +4 -1
- package/dist/client/client.js +27 -11
- package/dist/client/connection.js +35 -3
- 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 +3 -2
- 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/plan-approval.js +1 -1
- 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 +39 -6
- 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 +16 -3
- 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/core/runtime/agent-runtime.js +15 -5
- package/dist/core/runtime/event-processor.js +13 -8
- package/dist/core/runtime/origin-line.js +42 -0
- package/dist/core/runtime/request-broker.js +2 -1
- package/dist/core/runtime/steering.js +4 -3
- package/dist/core/runtime/turn.js +6 -4
- package/dist/operator/errors.js +97 -0
- package/dist/operator/index.js +10 -5
- package/dist/operator/mcp.js +7 -12
- package/dist/operator/operator.js +1336 -380
- package/dist/operator/refs.js +59 -0
- package/dist/operator/render.js +171 -74
- package/dist/operator/session-tools.js +87 -0
- package/dist/operator/types.js +30 -0
- package/dist/operator/view.js +82 -27
- package/dist/protocol/config.js +33 -6
- package/dist/protocol/conversation.js +3 -0
- package/dist/protocol/history.js +2 -1
- package/dist/protocol/index.js +1 -0
- package/dist/protocol/lifecycle.js +19 -0
- package/dist/protocol/model-catalog.js +58 -18
- package/dist/protocol/models.js +6 -27
- package/dist/protocol/origin.js +39 -0
- package/dist/protocol/reduce.js +2 -0
- package/dist/protocol/thinking.js +22 -9
- package/dist/protocol/wire-api.js +2 -2
- package/dist/protocol/wire.js +17 -0
- package/dist/server/bin.js +6 -4
- package/dist/server/routes.js +15 -5
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/client/connection.d.ts +14 -2
- package/dist/types/client/connection.d.ts.map +1 -1
- package/dist/types/client/turns.d.ts +2 -2
- package/dist/types/client/turns.d.ts.map +1 -1
- 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/base.d.ts +2 -0
- package/dist/types/core/agents/base.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 +14 -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/core/runtime/agent-runtime.d.ts +4 -2
- package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/types/core/runtime/event-processor.d.ts +2 -2
- package/dist/types/core/runtime/event-processor.d.ts.map +1 -1
- package/dist/types/core/runtime/origin-line.d.ts +15 -0
- package/dist/types/core/runtime/origin-line.d.ts.map +1 -0
- package/dist/types/core/runtime/request-broker.d.ts +1 -1
- package/dist/types/core/runtime/request-broker.d.ts.map +1 -1
- package/dist/types/core/runtime/steering.d.ts +7 -4
- package/dist/types/core/runtime/steering.d.ts.map +1 -1
- package/dist/types/core/runtime/turn.d.ts.map +1 -1
- package/dist/types/operator/errors.d.ts +83 -0
- package/dist/types/operator/errors.d.ts.map +1 -0
- package/dist/types/operator/index.d.ts +10 -5
- package/dist/types/operator/index.d.ts.map +1 -1
- package/dist/types/operator/mcp.d.ts +1 -1
- package/dist/types/operator/mcp.d.ts.map +1 -1
- package/dist/types/operator/operator.d.ts +15 -197
- package/dist/types/operator/operator.d.ts.map +1 -1
- package/dist/types/operator/refs.d.ts +25 -0
- package/dist/types/operator/refs.d.ts.map +1 -0
- package/dist/types/operator/render.d.ts +59 -19
- package/dist/types/operator/render.d.ts.map +1 -1
- package/dist/types/operator/session-tools.d.ts +61 -0
- package/dist/types/operator/session-tools.d.ts.map +1 -0
- package/dist/types/operator/types.d.ts +441 -0
- package/dist/types/operator/types.d.ts.map +1 -0
- package/dist/types/operator/view.d.ts +19 -29
- package/dist/types/operator/view.d.ts.map +1 -1
- package/dist/types/protocol/config.d.ts +32 -24
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +48 -39
- 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/history.d.ts +1 -1
- package/dist/types/protocol/history.d.ts.map +1 -1
- package/dist/types/protocol/index.d.ts +1 -0
- package/dist/types/protocol/index.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +48 -74
- 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/origin.d.ts +49 -0
- package/dist/types/protocol/origin.d.ts.map +1 -0
- package/dist/types/protocol/reduce.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 +59 -106
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +81 -119
- package/dist/types/protocol/wire.d.ts.map +1 -1
- package/dist/types/server/routes.d.ts.map +1 -1
- package/docs/consuming.md +124 -132
- package/docs/deploy.md +6 -5
- package/docs/harnesses.md +79 -31
- package/docs/sync-history.md +2 -1
- package/package.json +4 -4
- package/src/client/client.ts +36 -9
- package/src/client/connection.ts +31 -1
- package/src/client/turns.ts +2 -1
- 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/base.ts +2 -0
- package/src/core/agents/claude-code/approvals.ts +4 -3
- 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/plan-approval.ts +1 -1
- 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 +51 -5
- 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 +28 -4
- 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/core/runtime/agent-runtime.ts +31 -7
- package/src/core/runtime/event-processor.ts +13 -6
- package/src/core/runtime/origin-line.ts +43 -0
- package/src/core/runtime/request-broker.ts +2 -0
- package/src/core/runtime/steering.ts +8 -4
- package/src/core/runtime/turn.ts +11 -4
- package/src/operator/errors.ts +218 -0
- package/src/operator/index.ts +18 -23
- package/src/operator/mcp.ts +7 -16
- package/src/operator/operator.ts +1583 -613
- package/src/operator/refs.ts +75 -0
- package/src/operator/render.ts +208 -98
- package/src/operator/session-tools.ts +126 -0
- package/src/operator/types.ts +505 -0
- package/src/operator/view.ts +93 -42
- package/src/protocol/config.ts +36 -7
- package/src/protocol/conversation.ts +3 -0
- package/src/protocol/history.ts +2 -1
- package/src/protocol/index.ts +1 -0
- package/src/protocol/lifecycle.ts +21 -0
- package/src/protocol/model-catalog.ts +58 -18
- package/src/protocol/models.ts +6 -26
- package/src/protocol/origin.ts +47 -0
- package/src/protocol/reduce.ts +4 -0
- package/src/protocol/thinking.ts +27 -14
- package/src/protocol/wire-api.ts +2 -2
- package/src/protocol/wire.ts +18 -0
- package/src/server/bin.ts +6 -4
- package/src/server/routes.ts +16 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type ThinkingLevel } from "../../../protocol/index.ts";
|
|
2
|
-
/** Codex reasoning-effort string for a level (matches the `ReasoningEffort` enum). */
|
|
3
|
-
type CodexReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
|
|
4
2
|
/**
|
|
5
3
|
* The effort Codex runs for `level`. `supported` is what the model accepts, in
|
|
6
4
|
* this vocabulary, where `off` stands for its least effort: `offEffort`, the
|
|
7
|
-
* native `none` or `minimal` the model advertises. A level it
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* native `none` or `minimal` the model advertises. A level it lists is sent as
|
|
6
|
+
* it is, and one it lacks is fitted to the nearest level this build can order;
|
|
7
|
+
* when there is none (a level this build does not know, or a model listing
|
|
8
|
+
* none it knows), the level is not applied: `undefined`. Without `supported`,
|
|
9
|
+
* the level is sent as asked, and `off` becomes `low`: no model the pinned CLI
|
|
10
|
+
* lists accepts `none` or `minimal`, and every one accepts `low`.
|
|
10
11
|
*/
|
|
11
|
-
export declare function codexReasoningEffort
|
|
12
|
-
export {};
|
|
12
|
+
export declare function codexReasoningEffort(level: ThinkingLevel, supported?: readonly ThinkingLevel[], offEffort?: "none" | "minimal"): string | undefined;
|
|
13
13
|
//# sourceMappingURL=effort.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effort.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/effort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAsB,MAAM,4BAA4B,CAAC;AAEpF
|
|
1
|
+
{"version":3,"file":"effort.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/effort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAsB,MAAM,4BAA4B,CAAC;AAEpF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,aAAa,EACpB,SAAS,CAAC,EAAE,SAAS,aAAa,EAAE,EACpC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAC5B,MAAM,GAAG,SAAS,CAOpB"}
|
|
@@ -3,6 +3,8 @@ import type { AgentExecuteOptions } from "../base.ts";
|
|
|
3
3
|
import { type CodexConnection } from "./client.ts";
|
|
4
4
|
import type { CodexHomes } from "./homes.ts";
|
|
5
5
|
import type { CodexNotification } from "./protocol.ts";
|
|
6
|
+
/** Codex supports stdio and Streamable HTTP, not the legacy SSE transport. */
|
|
7
|
+
export declare function codexMcpServers(servers: Record<string, McpServerConfig>): Record<string, unknown>;
|
|
6
8
|
/**
|
|
7
9
|
* Codex's startup error for a server, readable: its Rust type paths out, a
|
|
8
10
|
* chain it repeats said once, and no prefix naming the server again.
|
|
@@ -21,8 +23,14 @@ export interface CodexTurnMcp {
|
|
|
21
23
|
/** For the thread's own config: a turn with servers that names no home, which the engine never writes. */
|
|
22
24
|
thread?: Record<string, unknown>;
|
|
23
25
|
}
|
|
24
|
-
/** The
|
|
25
|
-
export
|
|
26
|
+
/** The host's tools, as the session's turns name them (`HostToolSessions.http`). */
|
|
27
|
+
export type CodexHostServer = Record<string, McpServerConfig>;
|
|
28
|
+
/**
|
|
29
|
+
* The turn's servers, snapshotted before anything asynchronous can let the
|
|
30
|
+
* caller change them. The host's server goes in the thread's own config
|
|
31
|
+
* whether or not the turn names a home: its secret is never written to disk.
|
|
32
|
+
*/
|
|
33
|
+
export declare function codexTurnMcp(options: AgentExecuteOptions, homes: CodexHomes, host?: CodexHostServer): CodexTurnMcp;
|
|
26
34
|
/**
|
|
27
35
|
* Which `mcp_servers` table a thread was opened with (`threadServers`): a
|
|
28
36
|
* turn that needs another runs on the thread opened again in a new process.
|
|
@@ -64,7 +72,7 @@ export declare class CodexMcpState {
|
|
|
64
72
|
* Read before the thread opens, so no connection is made first, and
|
|
65
73
|
* before each turn.
|
|
66
74
|
*/
|
|
67
|
-
threadServers({
|
|
75
|
+
threadServers({ thread }: CodexTurnMcp): Promise<Record<string, unknown> | undefined>;
|
|
68
76
|
/**
|
|
69
77
|
* Get the thread's servers ready for a turn: configured, started, and the
|
|
70
78
|
* ones it goes on without said through `onWarning`. A required server that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG9F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAQtD,OAAO,EAAE,KAAK,eAAe,EAAS,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/mc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,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAhBrB,qFAAqF;IACrF,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,kGAAkG;IAClG,OAAO,CAAC,QAAQ,CAAS;IACzB,8EAA8E;IAC9E,OAAO,CAAC,SAAS,CAAS;IAC1B;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;gBAGzC,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,MAAM;IAG7B,gGAAgG;IAChG,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAUtE;;;;OAIG;IACG,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAazD;;;;;OAKG;IACG,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAU3F;;;;OAIG;IACG,OAAO,CACZ,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,GAC5D,OAAO,CAAC,IAAI,CAAC;IAwBhB;;;OAGG;YACW,gBAAgB;IAU9B;;;;;OAKG;YACW,kBAAkB;CAOhC"}
|
|
@@ -9,7 +9,10 @@ export interface CodexModelThinking {
|
|
|
9
9
|
/** The native effort the model runs when the thread sets none. */
|
|
10
10
|
defaultEffort?: string;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The level a native Codex effort is: `none` and `minimal` are `off`, and any
|
|
14
|
+
* other effort is a level of its own name, known to this build or not.
|
|
15
|
+
*/
|
|
13
16
|
export declare function codexThinkingLevel(effort: unknown): ThinkingLevel | undefined;
|
|
14
17
|
/**
|
|
15
18
|
* The thinking levels each model the logged-in account can run accepts, from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG/F,OAAO,EAAE,KAAK,eAAe,EAAS,MAAM,aAAa,CAAC;AAO1D,+DAA+D;AAC/D,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1C,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAG7E;AAuDD;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC3C,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GACtC,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,CAAC,CAQ9D;AAED,qEAAqE;AACrE,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAsBD;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC5C,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,EACxC,GAAG,EAAE,MAAM,GACT,OAAO,CAAC,mBAAmB,CAAC,CAQ9B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,SAAS,UAAU,EAAE,EAC7B,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,kBAAkB,CAAC,EAClD,eAAe,CAAC,EAAE,MAAM,GACtB,eAAe,EAAE,CA0BnB;AAED,yDAAyD;AACzD,UAAU,iBAAiB;IAC1B,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,4EAA4E;AAC5E,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,EACxC,GAAG,EAAE,MAAM,GACT,OAAO,CAAC,iBAAiB,CAAC,CAO5B;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACpC,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,MAAM,EACX,EACC,MAAM,EACN,KAAK,GACL,GAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAAO,GAClF,OAAO,CAAC,iBAAiB,CAAC,CAY5B"}
|
|
@@ -38,13 +38,20 @@ export declare function codexSessionCompatible(existing: CodexProcessIdentity &
|
|
|
38
38
|
export declare function clientOptionsFor(codexPath: string, { cwd, env }: {
|
|
39
39
|
cwd: string;
|
|
40
40
|
env?: Record<string, string>;
|
|
41
|
-
}, auth: CodexAuth | undefined, experimentalApi: boolean, inheritConfig?: InheritConfig
|
|
41
|
+
}, auth: CodexAuth | undefined, experimentalApi: boolean, inheritConfig?: InheritConfig,
|
|
42
|
+
/** The engine serves host tools on loopback: reach it directly, past any proxy. */
|
|
43
|
+
loopback?: boolean): Omit<CodexAppServerClientOptions, "processes">;
|
|
42
44
|
/**
|
|
43
45
|
* Codex's own tools, by group, that the operator leaves on (the default for
|
|
44
46
|
* each, Codex's own behaviour) or turns off for every thread (LLP 0017).
|
|
45
47
|
*/
|
|
46
48
|
export interface CodexBuiltInTools {
|
|
47
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* The local environment: the shell, unified exec, `apply_patch`,
|
|
51
|
+
* `view_image`, `write_stdin`. Off, Codex (since 0.164) still lists
|
|
52
|
+
* `apply_patch` to the model and refuses a call to it, so nothing the agent
|
|
53
|
+
* calls reads or writes the disk.
|
|
54
|
+
*/
|
|
48
55
|
local?: boolean;
|
|
49
56
|
webSearch?: boolean;
|
|
50
57
|
imageGeneration?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,gOAC6L,CAAC;AAE/N,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAcnE;AAkBD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kB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC3B,OAAO,EAAE,mBAAmB,EAC5B,MAAM,GAAE,iBAAsB,EAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,iBAAiB,CA8DnB"}
|
|
@@ -20,6 +20,8 @@ export interface CodexTurnScope {
|
|
|
20
20
|
items: TurnItems;
|
|
21
21
|
/** The mode the turn runs in now: its own, until the user approves a plan. */
|
|
22
22
|
mode: PermissionMode;
|
|
23
|
+
/** The engine's id of the turn, for a host tool's caller. */
|
|
24
|
+
turnId?: string;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Answer Codex's requests (server → client) for the turn that has the session.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAQtF,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,kBAAkB,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,mBAAmB,CAAC,EAAE,wBAAwB,CAAC;IAC/C,sEAAsE;IACtE,oBAAoB,CAAC,EAAE,yBAAyB,CAAC;IACjD,MAAM,E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MAAM,CAAA;CAAE,GAAG,IAAI,CAazB"}
|
|
@@ -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","s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;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS;IAU9D;;;;;OAKG;IACH,UAAU,IAAI,IAAI;IAIlB;;;;;OAKG;IACH,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIlC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzC,6DAA6D;IAC7D,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAO7B;;;;;;;;OAQG;YACW,eAAe;IA+B7B;;;;OAIG;YACW,KAAK;CA6DnB"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,YAAY,CAAC;IACtB,qGAAqG;IACrG,MAAM,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,cAAc,EAAE,cAAc,CAAC;CAC/B;AAED,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC3B,kEAAkE;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AAoG;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,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,wEAAwE;AACxE,KAAK,mBA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EAAE,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAW7F,kFAAkF;IAC5E,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAI7F"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type AgentInput, type ModelDescriptor } from "../../../protocol/index.ts";
|
|
2
2
|
import type { NativeProcesses } from "../../processes/native-processes.ts";
|
|
3
3
|
import type { AgentExecuteOptions, RawAgentEvent } from "../base.ts";
|
|
4
|
+
import { type HostTools } from "../host-tools.ts";
|
|
4
5
|
import type { CliLogin } from "../login.ts";
|
|
5
6
|
import { SessionAgent } from "../session-agent.ts";
|
|
6
7
|
import { type ScriptStep, type ScriptStepOutcome } from "./steps.ts";
|
|
@@ -34,6 +35,12 @@ export interface ScriptedAgentOptions {
|
|
|
34
35
|
* restart fences its cut-off sessions.
|
|
35
36
|
*/
|
|
36
37
|
processes?: NativeProcesses;
|
|
38
|
+
/**
|
|
39
|
+
* The host's tools (`hostTools`): a session's source is a turn's `http`
|
|
40
|
+
* MCP server at the engine's loopback, so a `call` step calls it as an
|
|
41
|
+
* agent would, each call naming the turn running then (LLP 0018).
|
|
42
|
+
*/
|
|
43
|
+
hostTools?: HostTools;
|
|
37
44
|
}
|
|
38
45
|
/** A harness that plays a script instead of a model (see the top of this file). */
|
|
39
46
|
export declare class ScriptedAgent extends SessionAgent {
|
|
@@ -58,9 +65,12 @@ export declare class ScriptedAgent extends SessionAgent {
|
|
|
58
65
|
/** Turns each session has run in this engine. */
|
|
59
66
|
private readonly turns;
|
|
60
67
|
readonly processes?: NativeProcesses;
|
|
68
|
+
private readonly host?;
|
|
69
|
+
/** Each session's running turn and its mode, as its host tools' calls read them. */
|
|
70
|
+
private readonly live;
|
|
61
71
|
constructor(options: ScriptedAgentOptions);
|
|
62
72
|
listModels(): Promise<ModelDescriptor[]>;
|
|
63
|
-
protected executeTurn(input: AgentInput,
|
|
73
|
+
protected executeTurn(input: AgentInput, given: AgentExecuteOptions, controller: AbortController): AsyncIterableIterator<RawAgentEvent>;
|
|
64
74
|
private play;
|
|
65
75
|
/**
|
|
66
76
|
* Ask the engine's permission broker about a call: the input to run (the
|
|
@@ -68,6 +78,9 @@ export declare class ScriptedAgent extends SessionAgent {
|
|
|
68
78
|
* the user cancelled the turn.
|
|
69
79
|
*/
|
|
70
80
|
private permit;
|
|
81
|
+
/** The turn's MCP servers with the host's, by the name its source gives, when it has one. */
|
|
82
|
+
private withHostTools;
|
|
71
83
|
release(sessionId: string): Promise<void>;
|
|
84
|
+
terminateAll(): Promise<void>;
|
|
72
85
|
}
|
|
73
86
|
//# sourceMappingURL=scripted-agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripted-agent.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/scripted-agent.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"scripted-agent.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/scripted-agent.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,eAAe,EAKpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,EAEN,KAAK,SAAS,EAGd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAiB,KAAK,UAAU,EAAE,KAAK,iBAAi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,IAAI,CAAC,CAAmB;IACzC,oFAAoF;IACpF,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyE;gBAEjE,OAAO,EAAE,oBAAoB;IASpD,UAAU,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;cAIpB,WAAW,CACpC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,mBAAmB,EAC1B,UAAU,EAAE,eAAe,GACzB,qBAAqB,CAAC,aAAa,CAAC;YAuDxB,IAAI;IA2HnB;;;;OAIG;YACW,MAAM;IAwBpB,6FAA6F;YAC/E,aAAa;IASZ,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAI5C"}
|
|
@@ -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;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAqDD,8BAAsB,YAAa,SAAQ,SAAS;IACnD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AS;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,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,SAAS,GACT,MAAM,kBAAkB,CAAC;AAC1B,O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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,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,aAAa,E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