stitchkit 0.130.1 → 0.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist/agent-executor/acp/v1-connect.d.ts +40 -26
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +10 -4
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts +6 -2
- package/dist/agent-executor/acp/v1-handlers.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-probe.d.ts +38 -0
- package/dist/agent-executor/acp/v1-probe.d.ts.map +1 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts +15 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +9 -7
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +7 -7
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/limits.d.ts +6 -4
- package/dist/agent-executor/claude/limits.d.ts.map +1 -1
- package/dist/agent-executor/claude/session.d.ts +3 -3
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/controls.d.ts +1 -0
- package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +51 -50
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/probe.d.ts +3 -3
- package/dist/agent-executor/claude-sdk/probe.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-loop.d.ts +2 -1
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
- package/dist/agent-executor/codex/classify.d.ts.map +1 -1
- package/dist/agent-executor/codex/connect.d.ts +7 -7
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-client.d.ts +86 -99
- package/dist/agent-executor/codex/control-client.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-read-methods.d.ts +7 -0
- package/dist/agent-executor/codex/control-read-methods.d.ts.map +1 -0
- package/dist/agent-executor/codex/driver.d.ts +29 -28
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/event-routing.d.ts +14 -0
- package/dist/agent-executor/codex/event-routing.d.ts.map +1 -0
- package/dist/agent-executor/codex/handlers.d.ts +2 -2
- package/dist/agent-executor/codex/handlers.d.ts.map +1 -1
- package/dist/agent-executor/codex/limits.d.ts +9 -3
- package/dist/agent-executor/codex/limits.d.ts.map +1 -1
- package/dist/agent-executor/codex/notifications.d.ts +183 -0
- package/dist/agent-executor/codex/notifications.d.ts.map +1 -0
- package/dist/agent-executor/codex/pagination.d.ts +54 -0
- package/dist/agent-executor/codex/pagination.d.ts.map +1 -0
- package/dist/agent-executor/codex/protocol.d.ts +586 -148
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts +4 -2
- package/dist/agent-executor/codex/request-answers.d.ts.map +1 -1
- package/dist/agent-executor/codex/responses.d.ts +855 -0
- package/dist/agent-executor/codex/responses.d.ts.map +1 -0
- package/dist/agent-executor/codex/session-bind.d.ts +410 -0
- package/dist/agent-executor/codex/session-bind.d.ts.map +1 -0
- package/dist/agent-executor/codex/session-controls.d.ts +19 -190
- package/dist/agent-executor/codex/session-controls.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-types.d.ts +190 -0
- package/dist/agent-executor/codex/session-types.d.ts.map +1 -0
- package/dist/agent-executor/codex/session.d.ts +1 -1
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-server.d.ts +4 -4
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-thread.d.ts +5 -5
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-controls.d.ts +45 -36
- package/dist/agent-executor/codex/thread-controls.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-list-query.d.ts +5 -0
- package/dist/agent-executor/codex/thread-list-query.d.ts.map +1 -0
- package/dist/agent-executor/codex/thread-open.d.ts +20 -20
- package/dist/agent-executor/codex/thread-open.d.ts.map +1 -1
- package/dist/agent-executor/codex/turn-input.d.ts +4 -3
- package/dist/agent-executor/codex/turn-input.d.ts.map +1 -1
- package/dist/agent-executor/codex/unix-socket-target.d.ts +12 -3
- package/dist/agent-executor/codex/unix-socket-target.d.ts.map +1 -1
- package/dist/agent-executor/codex/ws-frame.d.ts +4 -1
- package/dist/agent-executor/codex/ws-frame.d.ts.map +1 -1
- package/dist/agent-executor/contract.d.ts +3 -1
- package/dist/agent-executor/contract.d.ts.map +1 -1
- package/dist/agent-executor/engine-process.d.ts +4 -4
- package/dist/agent-executor/engine-process.d.ts.map +1 -1
- package/dist/agent-executor/engine.d.ts +3 -3
- package/dist/agent-executor/engine.d.ts.map +1 -1
- package/dist/agent-executor/handoff.d.ts.map +1 -1
- package/dist/agent-executor/hello.d.ts +7 -0
- package/dist/agent-executor/hello.d.ts.map +1 -1
- package/dist/agent-executor/json-rpc-peer.d.ts +9 -4
- package/dist/agent-executor/json-rpc-peer.d.ts.map +1 -1
- package/dist/agent-executor/leases.d.ts +1 -1
- package/dist/agent-executor/leases.d.ts.map +1 -1
- package/dist/agent-executor/plan-limits.d.ts +12 -1
- package/dist/agent-executor/plan-limits.d.ts.map +1 -1
- package/dist/agent-executor/profile.d.ts +7 -0
- package/dist/agent-executor/profile.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +8 -0
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/consumer-stubs.d.ts +45 -0
- package/dist/agent-executor/testing/consumer-stubs.d.ts.map +1 -0
- package/dist/agent-executor/testing/fake-claude-sdk-query.d.ts +88 -0
- package/dist/agent-executor/testing/fake-claude-sdk-query.d.ts.map +1 -0
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts +56 -0
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts.map +1 -0
- package/dist/agent-executor/testing/fixtures.d.ts +26 -0
- package/dist/agent-executor/testing/fixtures.d.ts.map +1 -0
- package/dist/agent-executor/testing/replay-driver.d.ts +8 -8
- package/dist/agent-executor/testing/replay-driver.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-runner.d.ts +3 -2
- package/dist/agent-executor/testing/replay-runner.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-transcript.d.ts +5 -3
- package/dist/agent-executor/testing/replay-transcript.d.ts.map +1 -1
- package/dist/agent-runtime/branch-observations.d.ts +19 -19
- package/dist/agent-runtime/sql-rows.d.ts +10 -10
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +20 -20
- package/dist/agent-runtime/store-conformance-support.d.ts +10 -10
- package/dist/agent-runtime/terminal-commit.d.ts +10 -10
- package/dist/entrypoints/agent-executor/acp.d.ts +2 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +284 -82
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts +4 -0
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude-sdk.js +58 -32
- package/dist/entrypoints/agent-executor/claude.d.ts +2 -2
- package/dist/entrypoints/agent-executor/claude.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude.js +25 -20
- package/dist/entrypoints/agent-executor/codex.d.ts +9 -5
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +1724 -1557
- package/dist/entrypoints/agent-executor/testing.d.ts +4 -0
- package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/testing.js +880 -18
- package/dist/entrypoints/agent-executor.d.ts +3 -3
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +42 -8
- package/dist/entrypoints/process.js +3 -3
- package/dist/{index-jrn3prgm.js → index-32vaajec.js} +29 -4
- package/dist/{index-p1qmpq0p.js → index-64e9p079.js} +92 -56
- package/dist/{index-dbp6xemn.js → index-g2d9kws8.js} +199 -3
- package/dist/index-gm9yz82v.js +56 -0
- package/dist/index-j15dhkda.js +749 -0
- package/dist/{index-1q0n6zek.js → index-kwsr7j5k.js} +84 -44
- package/llms/agent-executor-acp.txt +5 -5
- package/llms/agent-executor-claude-sdk.txt +3 -1
- package/llms/agent-executor-claude.txt +2 -2
- package/llms/agent-executor-codex.txt +11 -8
- package/llms/agent-executor-testing.txt +5 -1
- package/llms/agent-executor.txt +4 -4
- package/llms/stitchkit.txt +75 -74
- package/llms/{upgrading-0.128.0-0.130.0.txt → upgrading-0.128.0-0.131.0.txt} +56 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +158 -95
- package/llms.txt +8 -8
- package/package.json +3 -3
- package/dist/index-2s8sy57y.js +0 -229
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-open.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/thread-open.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"thread-open.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/thread-open.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAA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B,EAAE,0BAA0B,GAAG,SAAS,GACvD,OAAO,CAAC,YAAY,CAAC,CA0BvB"}
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import type { AgentMessagePart } from '../../agent-parts/parts.js';
|
|
3
3
|
import { type DriverImageOptions, type InlinedPart } from '../image-input.js';
|
|
4
4
|
import type { JsonRpcPeer, JsonRpcValue } from '../json-rpc-peer.js';
|
|
5
|
+
import type { CodexRpcCallOptions } from './thread-controls.js';
|
|
5
6
|
/** Codex-native `skill` user input item forwarded verbatim in `turn/start` and `turn/steer`. */
|
|
6
7
|
export declare const CodexSkillInputSchema: z.ZodObject<{
|
|
7
8
|
type: z.ZodLiteral<"skill">;
|
|
@@ -27,7 +28,7 @@ export type InlinedCodexPart = InlinedPart | CodexSkillInput | CodexLocalImageIn
|
|
|
27
28
|
*/
|
|
28
29
|
export declare function inlineCodexParts(parts: readonly CodexTurnInputPart[], options: DriverImageOptions & {
|
|
29
30
|
readonly driverLabel: string;
|
|
30
|
-
readonly signal?: AbortSignal;
|
|
31
|
+
readonly signal?: AbortSignal | undefined;
|
|
31
32
|
}): Promise<InlinedCodexPart[]>;
|
|
32
33
|
/**
|
|
33
34
|
* Encode validated Codex turn parts into app-server `UserInput[]` items: plain text joins into
|
|
@@ -40,8 +41,8 @@ export declare function sendCodexTurnSteer(peer: JsonRpcPeer, params: {
|
|
|
40
41
|
readonly threadId: string;
|
|
41
42
|
readonly expectedTurnId: string;
|
|
42
43
|
readonly parts: readonly InlinedCodexPart[];
|
|
43
|
-
readonly clientId?: string;
|
|
44
|
-
}): Promise<{
|
|
44
|
+
readonly clientId?: string | undefined;
|
|
45
|
+
}, rpcOptions?: CodexRpcCallOptions): Promise<{
|
|
45
46
|
readonly turnId: string;
|
|
46
47
|
}>;
|
|
47
48
|
//# sourceMappingURL=turn-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-input.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/turn-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAsB,MAAM,gBAAgB,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"turn-input.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/turn-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAsB,MAAM,gBAAgB,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAgB7D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB;;;;kBAIhC,CAAC;AAEH,mFAAmF;AACnF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,gGAAgG;AAChG,eAAO,MAAM,0BAA0B;;;kBAGrC,CAAC;AAEH,6FAA6F;AAC7F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,kJAAkJ;AAClJ,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,eAAe,GAAG,oBAAoB,CAAC;AAE3F,6EAA6E;AAC7E,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,eAAe,GAAG,oBAAoB,CAAC;AA0BpF;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,kBAAkB,EAAE,EACpC,OAAO,EAAE,kBAAkB,GAAG;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CAC3C,GACA,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAM7B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAmBjF;AAED,4FAA4F;AAC5F,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE;IACN,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC5C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,EACD,UAAU,CAAC,EAAE,mBAAmB,GAC/B,OAAO,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAgBtC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { lstatSync, readlinkSync, realpathSync } from 'node:fs';
|
|
2
|
+
interface CodexUnixSocketTargetFsOps {
|
|
3
|
+
readonly lstatSync?: typeof lstatSync;
|
|
4
|
+
readonly readlinkSync?: typeof readlinkSync;
|
|
5
|
+
readonly realpathSync?: typeof realpathSync;
|
|
6
|
+
}
|
|
1
7
|
/** Distinct failure categories for Codex WebSocket-over-Unix-socket connections. */
|
|
2
8
|
export type CodexUnixSocketErrorKind = 'endpoint-absent' | 'endpoint-not-listening' | 'target-refused' | 'upgrade-refused' | 'connection-lost';
|
|
3
9
|
/** Typed transport error raised when dialing, upgrading, or reading a Codex Unix socket. */
|
|
@@ -19,8 +25,11 @@ export declare function assertCodexUnixListenTargetAvailable(socketPath: string,
|
|
|
19
25
|
*
|
|
20
26
|
* Real `codex app-server --listen unix://<path>` publishes `<path>` as a user-owned symlink
|
|
21
27
|
* pointing into a private `0o700` daemon directory (`/tmp/codex-daemon-<uid>/<hash>`). When
|
|
22
|
-
* `<path>` is a symlink,
|
|
23
|
-
*
|
|
28
|
+
* `<path>` is a symlink, each link hop is resolved iteratively with `readlinkSync` while
|
|
29
|
+
* canonicalizing only parent directories via `realpathSync`, never calling `realpathSync` on the
|
|
30
|
+
* socket inode itself (which fails with `EOPNOTSUPP` on Darwin/macOS). Every symlink hop, parent
|
|
31
|
+
* directory, and the final socket inode must satisfy ownership and privacy checks.
|
|
24
32
|
*/
|
|
25
|
-
export declare function assertCodexUnixSocketClientTarget(socketPath: string, caller: string, expectedOwnerUid?: number): 'present' | 'absent';
|
|
33
|
+
export declare function assertCodexUnixSocketClientTarget(socketPath: string, caller: string, expectedOwnerUid?: number, fsOps?: CodexUnixSocketTargetFsOps): 'present' | 'absent';
|
|
34
|
+
export {};
|
|
26
35
|
//# sourceMappingURL=unix-socket-target.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unix-socket-target.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/unix-socket-target.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unix-socket-target.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/unix-socket-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAc,MAAM,SAAS,CAAC;AAW5E,UAAU,0BAA0B;IAClC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,SAAS,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,YAAY,CAAC;IAC5C,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,YAAY,CAAC;CAC7C;AAED,oFAAoF;AACpF,MAAM,MAAM,wBAAwB,GAChC,iBAAiB,GACjB,wBAAwB,GACxB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,4FAA4F;AAC5F,qBAAa,oBAAqB,SAAQ,KAAK;IAE3C,QAAQ,CAAC,IAAI,EAAE,wBAAwB;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM;IAF7B,YACW,IAAI,EAAE,wBAAwB,EAC9B,UAAU,EAAE,MAAM,EAC3B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,YAAY,EAIvB;CACF;AAED,+EAA+E;AAC/E,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAoBpF;AAsED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACb,IAAI,CAkBN;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,MAAM,EACzB,KAAK,CAAC,EAAE,0BAA0B,GACjC,SAAS,GAAG,QAAQ,CAyFtB"}
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
export declare function maskedWsFrameByteLength(payloadBytes: number): number;
|
|
3
3
|
/** Encode a single masked client-to-server RFC 6455 WebSocket frame. */
|
|
4
4
|
export declare function encodeMaskedWsFrame(opcode: number, payload: Uint8Array): Buffer;
|
|
5
|
-
/**
|
|
5
|
+
/** Encode a single unmasked server-to-client RFC 6455 WebSocket frame. */
|
|
6
|
+
export declare function encodeUnmaskedWsFrame(opcode: number, payload: Uint8Array): Buffer;
|
|
7
|
+
/** Bounded streaming RFC 6455 frame decoder (UTF-8 text + control frames; unmasked by default, or masked when `expectMasked` is `true`). */
|
|
6
8
|
export declare function createWsFrameDecoder(handlers: {
|
|
7
9
|
maxFrameBytes: number;
|
|
10
|
+
expectMasked?: boolean;
|
|
8
11
|
onMessage(text: string): void;
|
|
9
12
|
onPing(payload: Buffer): void;
|
|
10
13
|
onClose(code: number | undefined, reason: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-frame.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/ws-frame.ts"],"names":[],"mappings":"AAKA,wFAAwF;AACxF,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,MAAM,CA2B/E;AAmFD
|
|
1
|
+
{"version":3,"file":"ws-frame.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/ws-frame.ts"],"names":[],"mappings":"AAKA,wFAAwF;AACxF,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,MAAM,CA2B/E;AAmFD,0EAA0E;AAC1E,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,MAAM,CAmBjF;AAaD,4IAA4I;AAC5I,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACxD,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC,GAAG;IAAE,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CA+IhC"}
|
|
@@ -94,8 +94,10 @@ declare const agentExecutorEndpoints: {
|
|
|
94
94
|
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
95
95
|
windowDurationMins: z.ZodOptional<z.ZodInt>;
|
|
96
96
|
label: z.ZodOptional<z.ZodString>;
|
|
97
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
97
98
|
}, z.core.$strict>>;
|
|
98
99
|
observedAt: z.ZodISODateTime;
|
|
100
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
99
101
|
error: z.ZodOptional<z.ZodString>;
|
|
100
102
|
}, z.core.$strict>>;
|
|
101
103
|
}, z.core.$strict>>;
|
|
@@ -419,7 +421,7 @@ declare const agentExecutorEndpoints: {
|
|
|
419
421
|
export declare function defineAgentExecutorContract<TScope extends string>(config: {
|
|
420
422
|
scope: TScope;
|
|
421
423
|
/** Route prefix; default `agent-executor`. */
|
|
422
|
-
prefix?: string;
|
|
424
|
+
prefix?: string | undefined;
|
|
423
425
|
}): ContractDef<typeof agentExecutorEndpoints, TScope>;
|
|
424
426
|
/** The events the server pushes to a connected executor. */
|
|
425
427
|
declare const agentExecutorServerEvents: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/agent-executor/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,WAAW,EAAoC,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAc9B,yFAAyF;AACzF,QAAA,MAAM,sBAAsB;;iBAExB,MAAM,EAAE,MAAM;iBACd,IAAI,EAAE,QAAQ;iBACd,MAAM;iBACN,MAAM,EAAE,OAAO;iBACf,IAAI,EAAE,mGAAmG;iBACzG,KAAK
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/agent-executor/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACL,MAAM;;;;;;;;;;CAEsC,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,SAAS,MAAM,EAAE,MAAM,EAAE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,GAAG,WAAW,CAAC,OAAO,sBAAsB,EAAE,MAAM,CAAC,CAKrD;AAED,4DAA4D;AAC5D,QAAA,MAAM,yBAAyB;;QACb,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACA,IAAI;;;;;;QACR,IAAI;;;;;;;;;;;;;;;;;;;;CACW,CAAC;AAElC,wFAAwF;AACxF,eAAO,MAAM,6BAA6B,EAAE,gBAAgB,CAC1D,OAAO,yBAAyB,EAChC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CACuE,CAAC"}
|
|
@@ -37,18 +37,18 @@ export declare function spawnEngineProcess(input: {
|
|
|
37
37
|
/** The connection's lifetime: aborting it stops the engine. */
|
|
38
38
|
signal: AbortSignal;
|
|
39
39
|
/** The longest line the engine may write. Default 8 MiB. */
|
|
40
|
-
maxLineBytes?: number;
|
|
40
|
+
maxLineBytes?: number | undefined;
|
|
41
41
|
/** Maximum bytes queued for the engine's stdin before `send()` refuses. Default 16 MiB. */
|
|
42
|
-
maxPendingStdinBytes?: number;
|
|
42
|
+
maxPendingStdinBytes?: number | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* The most bytes the connection writes into the engine over its life; `send()` refuses a
|
|
45
45
|
* line past it and the engine keeps running. Default 256 MiB.
|
|
46
46
|
*/
|
|
47
|
-
maxStdinBytes?: number;
|
|
47
|
+
maxStdinBytes?: number | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* How stdout is consumed: `'lines'` (default, caller reads `lines`) or `'drain'` (drained
|
|
50
50
|
* continuously in the background when the engine speaks over another transport such as a Unix socket).
|
|
51
51
|
*/
|
|
52
|
-
stdoutMode?: 'lines' | 'drain';
|
|
52
|
+
stdoutMode?: 'lines' | 'drain' | undefined;
|
|
53
53
|
}): EngineProcess;
|
|
54
54
|
//# sourceMappingURL=engine-process.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-process.d.ts","sourceRoot":"","sources":["../../src/agent-executor/engine-process.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AAQjD,yEAAyE;AACzE,MAAM,WAAW,aAAa;IAC5B,qFAAqF;IACrF,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,mGAAmG;IACnG,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,sDAAsD;IACtD,UAAU,IAAI,MAAM,CAAC;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC9C,uEAAuE;IACvE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,+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1C;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;CAC5C,GAAG,aAAa,CA+HhB"}
|
|
@@ -52,10 +52,10 @@ export interface AgentEngineDriver {
|
|
|
52
52
|
profile: ExecutorProfileConfig;
|
|
53
53
|
cwd: string;
|
|
54
54
|
/** Resume this native session; a fresh one is started without it. */
|
|
55
|
-
nativeThreadId?: string;
|
|
55
|
+
nativeThreadId?: string | undefined;
|
|
56
56
|
/** Optional observer invoked with startup phases (`spawning`, `initializing`, `verifying`) during open. */
|
|
57
|
-
onStartupPhase?: (phase: ExecutorStartupPhase) => void;
|
|
58
|
-
signal?: AbortSignal;
|
|
57
|
+
onStartupPhase?: ((phase: ExecutorStartupPhase) => void) | undefined;
|
|
58
|
+
signal?: AbortSignal | undefined;
|
|
59
59
|
}): Promise<AgentEngineSession>;
|
|
60
60
|
/** Whether the engine holds the input sent under `clientId`; only for `reconcile: 'client-id'`. */
|
|
61
61
|
findInput?(input: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/agent-executor/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EACV,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAExE,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,aAAa,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QAAQ,CAAC,YAAY,CAAC,EAAE,0BAA0B,CAAC;IACnD,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACpC,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC;QAC9C,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;QAChC,mBAAmB,EAAE,eAAe,CAAC,qBAAqB,CAAC,CAAC;QAC5D,UAAU,CAAC,EAAE,UAAU,CAAC;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,qBAAqB,CAAC;QAC/B,GAAG,EAAE,MAAM,CAAC;QACZ,qEAAqE;QACrE,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,2GAA2G;QAC3G,cAAc,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;QACrE,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;KAClC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAChC,mGAAmG;IACnG,SAAS,CAAC,CAAC,KAAK,EAAE;QAChB,OAAO,EAAE,qBAAqB,CAAC;QAC/B,GAAG,EAAE,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/agent-executor/handoff.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAIzB,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/agent-executor/handoff.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAIzB,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAC;AA2L3B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,oBAAoB,CA0KvF;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,wBAAwB,CAW1B"}
|
|
@@ -46,6 +46,7 @@ export declare const PlanWindowSchema: z.ZodObject<{
|
|
|
46
46
|
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
47
47
|
windowDurationMins: z.ZodOptional<z.ZodInt>;
|
|
48
48
|
label: z.ZodOptional<z.ZodString>;
|
|
49
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
49
50
|
}, z.core.$strict>;
|
|
50
51
|
/**
|
|
51
52
|
* A subscription's limits, as its source answers: `known` with windows,
|
|
@@ -65,8 +66,10 @@ export declare const PlanLimitsSchema: z.ZodObject<{
|
|
|
65
66
|
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
66
67
|
windowDurationMins: z.ZodOptional<z.ZodInt>;
|
|
67
68
|
label: z.ZodOptional<z.ZodString>;
|
|
69
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
68
70
|
}, z.core.$strict>>;
|
|
69
71
|
observedAt: z.ZodISODateTime;
|
|
72
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
70
73
|
error: z.ZodOptional<z.ZodString>;
|
|
71
74
|
}, z.core.$strict>;
|
|
72
75
|
/**
|
|
@@ -109,8 +112,10 @@ export declare const ExecutorProfileSchema: z.ZodObject<{
|
|
|
109
112
|
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
110
113
|
windowDurationMins: z.ZodOptional<z.ZodInt>;
|
|
111
114
|
label: z.ZodOptional<z.ZodString>;
|
|
115
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
112
116
|
}, z.core.$strict>>;
|
|
113
117
|
observedAt: z.ZodISODateTime;
|
|
118
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
114
119
|
error: z.ZodOptional<z.ZodString>;
|
|
115
120
|
}, z.core.$strict>>;
|
|
116
121
|
}, z.core.$strict>;
|
|
@@ -254,8 +259,10 @@ export declare const ExecutorHelloSchema: z.ZodObject<{
|
|
|
254
259
|
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
255
260
|
windowDurationMins: z.ZodOptional<z.ZodInt>;
|
|
256
261
|
label: z.ZodOptional<z.ZodString>;
|
|
262
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
257
263
|
}, z.core.$strict>>;
|
|
258
264
|
observedAt: z.ZodISODateTime;
|
|
265
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
259
266
|
error: z.ZodOptional<z.ZodString>;
|
|
260
267
|
}, z.core.$strict>>;
|
|
261
268
|
}, z.core.$strict>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hello.d.ts","sourceRoot":"","sources":["../../src/agent-executor/hello.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB;;;;;EAAuD,CAAC;AAEzF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;EAAgC,CAAC;AAErE,2FAA2F;AAC3F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;kBA6B3C,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"hello.d.ts","sourceRoot":"","sources":["../../src/agent-executor/hello.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB;;;;;EAAuD,CAAC;AAEzF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;EAAgC,CAAC;AAErE,2FAA2F;AAC3F,eAAO,MAAM,gCAAgC;;;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AAC,CAAC;AACtE,qFAAqF;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,kGAAkG;AAClG,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -4,8 +4,12 @@ import { z } from 'zod';
|
|
|
4
4
|
* app-server omits it. Reading accepts either, writing follows the dialect.
|
|
5
5
|
*/
|
|
6
6
|
export type JsonRpcHeader = 'jsonrpc-2.0' | 'omitted';
|
|
7
|
+
/** Zod schema accepting any valid JSON value carried over JSON-RPC. */
|
|
8
|
+
export declare const JsonRpcValueSchema: z.ZodJSONSchema;
|
|
9
|
+
/** Zod schema accepting a plain JSON object whose values are valid JSON-RPC values. */
|
|
10
|
+
export declare const JsonRpcRecordSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
7
11
|
/** A JSON value as a request, a notification or an answer carries it. */
|
|
8
|
-
export type JsonRpcValue = z.infer<
|
|
12
|
+
export type JsonRpcValue = z.infer<typeof JsonRpcValueSchema>;
|
|
9
13
|
/** An error the peer answered a request with, by its code. */
|
|
10
14
|
export declare class JsonRpcError extends Error {
|
|
11
15
|
readonly code: number;
|
|
@@ -24,8 +28,8 @@ export interface JsonRpcPeerConfig {
|
|
|
24
28
|
/** How long a request waits for its answer before it fails. */
|
|
25
29
|
requestTimeoutMs: number;
|
|
26
30
|
/** A request from the other side. Throw a `JsonRpcError` to answer with its code; no handler answers `-32601`. */
|
|
27
|
-
onRequest
|
|
28
|
-
onNotification
|
|
31
|
+
onRequest?: ((method: string, params: JsonRpcValue | undefined, id: string | number) => Promise<JsonRpcValue> | JsonRpcValue) | undefined;
|
|
32
|
+
onNotification?: ((method: string, params: JsonRpcValue | undefined) => void) | undefined;
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
31
35
|
* A bidirectional JSON-RPC peer over a line stream: requests both ways,
|
|
@@ -35,7 +39,8 @@ export interface JsonRpcPeerConfig {
|
|
|
35
39
|
*/
|
|
36
40
|
export declare function createJsonRpcPeer(config: JsonRpcPeerConfig): {
|
|
37
41
|
request(method: string, params?: JsonRpcValue, options?: {
|
|
38
|
-
readonly timeoutMs?: number | null;
|
|
42
|
+
readonly timeoutMs?: number | null | undefined;
|
|
43
|
+
readonly signal?: AbortSignal | undefined;
|
|
39
44
|
}): Promise<JsonRpcValue>;
|
|
40
45
|
notify(method: string, params?: JsonRpcValue): void;
|
|
41
46
|
/** Feed one line from the other side. A line that is not JSON-RPC is an error the caller reports. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-rpc-peer.d.ts","sourceRoot":"","sources":["../../src/agent-executor/json-rpc-peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"json-rpc-peer.d.ts","sourceRoot":"","sources":["../../src/agent-executor/json-rpc-peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,SAAS,CAAC;AAEtD,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,iBAAW,CAAC;AAE3C,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,2CAA2C,CAAC;AAE5E,yEAAyE;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,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M,GAAG,IAAI;IA8C3B,0DAA0D;IAC1D,KAAK,UAAU,OAAO,GAAG,IAAI;EAUhC;AAED,0EAA0E;AAC1E,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -122,7 +122,7 @@ export declare function createExecutorLeases(input: {
|
|
|
122
122
|
* answered `duplicate`; an older turn's report is `not-retained`. Default 64, at most
|
|
123
123
|
* {@link MAX_RETAINED_TURNS}.
|
|
124
124
|
*/
|
|
125
|
-
retainedTurns?: number;
|
|
125
|
+
retainedTurns?: number | undefined;
|
|
126
126
|
}): {
|
|
127
127
|
claim: (claim: ThreadClaim) => Promise<{
|
|
128
128
|
threadId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leases.d.ts","sourceRoot":"","sources":["../../src/agent-executor/leases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,OAAO,EACL,eAAe,EACf,KAAK,WAAW,EAEhB,KAAK,WAAW,EAChB,mBAAmB,EACnB,iBAAiB,EAGjB,KAAK,UAAU,EACf,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,iBAAiB,EACvB,MAAM,SAAS,CAAC;AAGjB,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAIvC;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6BnC,CAAC;AACH,gGAAgG;AAChG,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,qBAAqB,EAAE,kBAA+C,CAAC;AAEpF;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,QAAQ,CAChD,CAAC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WAAW,CACzB,KAAK,EAAE,kBAAkB,EACzB,YAAY,EAAE,SAAS,qBAAqB,EAAE,GAC7C,iBAAiB,EAAE,CAWrB;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,CAAC,EACN,UAAU,EAAE,CACV,OAAO,EAAE,kBAAkB,GAAG,IAAI,KAEhC;QAAE,KAAK,EAAE,kBAAkB,CAAC;QAAC,MAAM,EAAE,CAAC,CAAA;KAAE,GACxC,OAAO,CAAC;QAAE,KAAK,EAAE,kBAAkB,CAAC;QAAC,MAAM,EAAE,CAAC,CAAA;KAAE,CAAC,GACpD,OAAO,CAAC,CAAC,CAAC,CAAC;CACf;AAED,oEAAoE;AACpE,wBAAgB,wBAAwB,IAAI,uBAAuB,GAAG;IACpE,QAAQ,IAAI,kBAAkB,CAAC;CAChC,CAeA;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,KAAK,EAAE,uBAAuB,CAAC;IAC/B,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;IASG,KAAK,UAAU,WAAW;;;;;IAK1B,KAAK,UAAU,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;;;;;IAKhD,OAAO,YAAY,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;;;IAKtD,+EAA+E;IAC/E,MAAM,cAAc,SAAS,qBAAqB,EAAE;;;;;;;;IAEpD,MAAM,WAAW,UAAU;;;;;;;;;EAM9B"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { type PlanLimits, type PlanWindow } from './hello.js';
|
|
2
2
|
/** A window whose reset time has passed no longer limits anything. */
|
|
3
3
|
export declare function planWindowExpired(window: PlanWindow, now: Date): boolean;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Return the duration of a {@link PlanWindow} in minutes when known: prefers the explicit
|
|
6
|
+
* `windowDurationMins` field, falling back to canonical window names (`five_hour*` → 300,
|
|
7
|
+
* `seven_day*` / `weekly` → 10080, `:<N>m` → `N`), or `undefined` when unknown.
|
|
8
|
+
*/
|
|
9
|
+
export declare function planWindowDurationMins(window: PlanWindow | Pick<PlanWindow, 'name' | 'windowDurationMins'>): number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the limits should be read again: never read, a window has reset, or a `known` / errored
|
|
12
|
+
* answer is older than `maxAgeMs`. Clean `no-plan-limit` and `unpublished` answers without an
|
|
13
|
+
* `error` do not trigger periodic re-polling.
|
|
14
|
+
*/
|
|
5
15
|
export declare function planLimitsDue(input: {
|
|
6
16
|
limits?: PlanLimits | undefined;
|
|
7
17
|
now: Date;
|
|
@@ -20,6 +30,7 @@ export declare function planLimitsReadFailed(input: {
|
|
|
20
30
|
export declare function mergeRateLimitEvent(input: {
|
|
21
31
|
previous?: PlanLimits | undefined;
|
|
22
32
|
windows: readonly PlanWindow[];
|
|
33
|
+
plan?: string | undefined;
|
|
23
34
|
now: Date;
|
|
24
35
|
}): PlanLimits;
|
|
25
36
|
//# sourceMappingURL=plan-limits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-limits.d.ts","sourceRoot":"","sources":["../../src/agent-executor/plan-limits.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan-limits.d.ts","sourceRoot":"","sources":["../../src/agent-executor/plan-limits.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAoB,KAAK,UAAU,EAAoB,MAAM,SAAS,CAAC;AAK/F,sEAAsE;AACtE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,GAAG,OAAO,CAExE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,oBAAoB,CAAC,GACnE,MAAM,GAAG,SAAS,CAgBpB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,GAAG,EAAE,IAAI,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAUV;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,IAAI,CAAC;CACX,GAAG,UAAU,CAWb;AAED,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,GAAG,EAAE,IAAI,CAAC;CACX,GAAG,UAAU,CAab"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type ExecutorEngine, type ExecutorProfile } from './hello.js';
|
|
3
|
+
/** Pattern matched by every environment variable name accepted in {@link ExecutorProfileConfigSchema}. */
|
|
4
|
+
export declare const EXECUTOR_ENV_KEY_PATTERN: RegExp;
|
|
5
|
+
/**
|
|
6
|
+
* Filter an environment record down to entries whose keys match {@link EXECUTOR_ENV_KEY_PATTERN}
|
|
7
|
+
* and whose values are defined strings, preserving empty strings without trimming.
|
|
8
|
+
*/
|
|
9
|
+
export declare function sanitizeProfileEnv(env: Readonly<Record<string, string | undefined>> | undefined): Record<string, string>;
|
|
3
10
|
/**
|
|
4
11
|
* A profile as the executor's machine configures it: an account's own engine
|
|
5
12
|
* home and the variables the operator declared for it. Its `home` never
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prof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AAE,OAAO,GAAG,qBAAqB,GAAG,YAAY,CAAC,CAAC;IAC9E,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CACvD,GAAG,eAAe,CAWlB"}
|
|
@@ -3,8 +3,16 @@ import { type BoundedChannel } from '../internal/channel.js';
|
|
|
3
3
|
import type { EngineProcess } from './engine-process.js';
|
|
4
4
|
import { type ExecutorProfileConfig } from './profile.js';
|
|
5
5
|
import { type ExecutorDelta, type ExecutorStartupPhase } from './vocabulary.js';
|
|
6
|
+
export declare const TURN_QUEUE: {
|
|
7
|
+
maxItems: number;
|
|
8
|
+
maxBytes: number;
|
|
9
|
+
};
|
|
6
10
|
/** Return `value` when it contains non-whitespace characters, else `undefined`. */
|
|
7
11
|
export declare function nonEmptyString(value: unknown): string | undefined;
|
|
12
|
+
/** Trim and clamp a plan or bucket label to `maxChars` (default 256), returning `undefined` when blank. */
|
|
13
|
+
export declare function clampPlanName(value: string | null | undefined, maxChars?: number): string | undefined;
|
|
14
|
+
/** Convert epoch milliseconds to ISO-8601 when within JavaScript `Date` range; otherwise `undefined`. */
|
|
15
|
+
export declare function epochMsToIso(ms: number | null | undefined): string | undefined;
|
|
8
16
|
/** Convert epoch seconds to ISO-8601 when within JavaScript `Date` range; otherwise `undefined`. */
|
|
9
17
|
export declare function epochSecondsToIso(seconds: number | null | undefined): string | undefined;
|
|
10
18
|
/** Create the bounded ordered delta channel for a single turn. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-primitives.d.ts","sourceRoot":"","sources":["../../src/agent-executor/session-primitives.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,qBAAqB,CAAC;AAGhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,qBAAqB,E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C,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAOhF;AAED,uGAAuG;AACvG,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,OAAO,GAAG,IAAI,CAcxD;AAED,kHAAkH;AAClH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC,GAAG,SAAS,EAC7D,KAAK,EAAE,oBAAoB,GAC1B,IAAI,CAIN;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EACtB,iBAAiB,EAAE,MAAM,EACzB,QAAQ,SAAM,GACb,MAAM,CAuBR"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { AcpSession } from '../acp/v1-session.js';
|
|
2
|
+
import type { ClaudeSdkSession } from '../claude-sdk/driver.js';
|
|
3
|
+
import type { CodexControlClient, CodexControlConnection } from '../codex/control-client.js';
|
|
4
|
+
import type { CodexSession, CodexTurn } from '../codex/session-types.js';
|
|
5
|
+
import type { CodexSharedServer } from '../codex/shared-server.js';
|
|
6
|
+
import type { AgentEngineTurn } from '../engine.js';
|
|
7
|
+
import type { ExecutorDelta } from '../vocabulary.js';
|
|
8
|
+
/**
|
|
9
|
+
* Override map compatible with `exactOptionalPropertyTypes: true`: every property of `T` may be
|
|
10
|
+
* omitted or explicitly set to `undefined`.
|
|
11
|
+
*/
|
|
12
|
+
export type StubOverrides<T> = {
|
|
13
|
+
[K in keyof T]?: T[K] | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** Overrides accepted by {@link createStubAgentEngineTurn}. */
|
|
16
|
+
export interface StubAgentEngineTurnOverrides {
|
|
17
|
+
/** Deltas yielded by the turn (array or async iterable). Defaults to `[]`. */
|
|
18
|
+
readonly deltas?: readonly ExecutorDelta[] | AsyncIterable<ExecutorDelta> | undefined;
|
|
19
|
+
/** Override `interrupt()`. Defaults to throwing an unexpected-call error. */
|
|
20
|
+
readonly interrupt?: AgentEngineTurn['interrupt'] | undefined;
|
|
21
|
+
/** Override `respond()`. Defaults to throwing an unexpected-call error. */
|
|
22
|
+
readonly respond?: AgentEngineTurn['respond'] | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** Overrides accepted by {@link createStubCodexTurn}. */
|
|
25
|
+
export interface StubCodexTurnOverrides extends StubAgentEngineTurnOverrides {
|
|
26
|
+
/** Native turn identifier assigned by Codex. Defaults to `'stub-turn-1'`. */
|
|
27
|
+
readonly nativeTurnId?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
/** Create a fail-loud {@link CodexControlClient} stub; every unoverridden method throws `Unexpected call to StubCodexControlClient.<method>()`. */
|
|
30
|
+
export declare function createStubCodexControlClient(overrides?: StubOverrides<CodexControlClient>): CodexControlClient;
|
|
31
|
+
/** Create a fail-loud {@link CodexControlConnection} stub with a safe no-op `close()` default. */
|
|
32
|
+
export declare function createStubCodexControlConnection(overrides?: StubOverrides<CodexControlConnection>): CodexControlConnection;
|
|
33
|
+
/** Create a fail-loud {@link CodexSession} stub with a safe no-op `close()` default and a valid default `threadContext`. */
|
|
34
|
+
export declare function createStubCodexSession(overrides?: StubOverrides<CodexSession>): CodexSession;
|
|
35
|
+
/** Create a fail-loud {@link CodexSharedServer} stub with a safe no-op `close()` default. */
|
|
36
|
+
export declare function createStubCodexSharedServer(overrides?: StubOverrides<CodexSharedServer>): CodexSharedServer;
|
|
37
|
+
/** Create a fail-loud {@link AgentEngineTurn} stub yielding `overrides.deltas` (default empty). */
|
|
38
|
+
export declare function createStubAgentEngineTurn(overrides?: StubAgentEngineTurnOverrides): AgentEngineTurn;
|
|
39
|
+
/** Create a fail-loud {@link CodexTurn} stub yielding `overrides.deltas` (default empty). */
|
|
40
|
+
export declare function createStubCodexTurn(overrides?: StubCodexTurnOverrides): CodexTurn;
|
|
41
|
+
/** Create a fail-loud {@link ClaudeSdkSession} stub with a safe no-op `close()` default. */
|
|
42
|
+
export declare function createStubClaudeSdkSession(overrides?: StubOverrides<ClaudeSdkSession>): ClaudeSdkSession;
|
|
43
|
+
/** Create a fail-loud {@link AcpSession} stub with a safe no-op `close()` default. */
|
|
44
|
+
export declare function createStubAcpSession(overrides?: StubOverrides<AcpSession>): AcpSession;
|
|
45
|
+
//# sourceMappingURL=consumer-stubs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-stubs.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/consumer-stubs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;KAC5B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS;CAClC,CAAC;AAEF,+DAA+D;AAC/D,MAAM,WAAW,4BAA4B;IAC3C,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,aAAa,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;IACtF,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,eAA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KControlGetContextUsageResponse, SDKControlGetUsageResponse, SDKControlInitializeResponse, SDKControlSetPermissionModeResponse, SDKUserMessage, SlashCommand } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
+
import type { ClaudeSdkQuery } from '../claude-sdk/driver.js';
|
|
3
|
+
/** Recorded live control invocation observed on {@link FakeClaudeSdkQueryHarness}. */
|
|
4
|
+
export interface FakeClaudeSdkRecordedCall {
|
|
5
|
+
/** Control method name invoked by the driver (`interrupt`, `setModel`, `setPermissionMode`, `applyFlagSettings`, `rewindFiles`, `close`, etc.). */
|
|
6
|
+
readonly method: string;
|
|
7
|
+
/** Positional arguments passed to the control method. */
|
|
8
|
+
readonly args: readonly unknown[];
|
|
9
|
+
}
|
|
10
|
+
/** Imperative controller handed to scripted turns and `onRun` callbacks in {@link createFakeClaudeSdkQuery}. */
|
|
11
|
+
export interface FakeClaudeSdkRunController {
|
|
12
|
+
/** SDK options passed when this query run was created. */
|
|
13
|
+
readonly options: Options | undefined;
|
|
14
|
+
/** User messages pulled from the `prompt` async iterable for this run. */
|
|
15
|
+
readonly promptMessages: readonly SDKUserMessage[];
|
|
16
|
+
/** Emit one raw Claude SDK stream record to the driver's drain loop. */
|
|
17
|
+
emit(record: unknown): void;
|
|
18
|
+
/** Trigger the driver's `options.canUseTool` callback with a real `AbortSignal` and `toolUseID`. */
|
|
19
|
+
askPermission(toolName: string, input: Record<string, unknown>, options?: {
|
|
20
|
+
readonly toolUseID?: string | undefined;
|
|
21
|
+
readonly signal?: AbortSignal | undefined;
|
|
22
|
+
readonly requestId?: string | undefined;
|
|
23
|
+
readonly decisionReason?: string | undefined;
|
|
24
|
+
readonly blockedPath?: string | undefined;
|
|
25
|
+
readonly title?: string | undefined;
|
|
26
|
+
readonly displayName?: string | undefined;
|
|
27
|
+
readonly description?: string | undefined;
|
|
28
|
+
readonly agentID?: string | undefined;
|
|
29
|
+
readonly defaultToNo?: boolean | undefined;
|
|
30
|
+
readonly suppressAlwaysAllowRule?: boolean | undefined;
|
|
31
|
+
}): Promise<PermissionResult | null>;
|
|
32
|
+
/** End the run's async iterable cleanly (simulates unexpected idle or mid-turn query exit). */
|
|
33
|
+
end(): void;
|
|
34
|
+
/** Fail the run's async iterable with `error`. */
|
|
35
|
+
fail(error: unknown): void;
|
|
36
|
+
}
|
|
37
|
+
/** One scripted turn driven by {@link createFakeClaudeSdkQuery}: static record list or imperative handler. */
|
|
38
|
+
export type FakeClaudeSdkScriptedTurn = {
|
|
39
|
+
readonly records: readonly unknown[];
|
|
40
|
+
} | ((message: SDKUserMessage, controller: FakeClaudeSdkRunController) => Promise<void> | void);
|
|
41
|
+
/** Configuration for {@link createFakeClaudeSdkQuery}. */
|
|
42
|
+
export interface FakeClaudeSdkQueryConfig {
|
|
43
|
+
/** Ordered turns executed as user messages arrive on the query's `prompt` iterable. */
|
|
44
|
+
readonly turns?: readonly FakeClaudeSdkScriptedTurn[] | undefined;
|
|
45
|
+
/** Optional hook invoked as soon as each `ClaudeSdkRun` is created (before prompt messages arrive). */
|
|
46
|
+
readonly onRun?: ((controller: FakeClaudeSdkRunController) => Promise<void> | void) | undefined;
|
|
47
|
+
/** Canned `initializationResult()` response. */
|
|
48
|
+
readonly initializationResult?: SDKControlInitializeResponse | undefined;
|
|
49
|
+
/** Canned `supportedModels()` list. */
|
|
50
|
+
readonly models?: readonly ModelInfo[] | undefined;
|
|
51
|
+
/** Canned `supportedCommands()` list. */
|
|
52
|
+
readonly commands?: readonly SlashCommand[] | undefined;
|
|
53
|
+
/** Canned `accountInfo()` response. */
|
|
54
|
+
readonly account?: AccountInfo | undefined;
|
|
55
|
+
/** Canned `mcpServerStatus()` list. */
|
|
56
|
+
readonly mcpServers?: readonly McpServerStatus[] | undefined;
|
|
57
|
+
/** Canned `getContextUsage()` response. */
|
|
58
|
+
readonly contextUsage?: SDKControlGetContextUsageResponse | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Optional `get_usage` response or factory. When omitted, the experimental usage method is NOT
|
|
61
|
+
* attached to the fake query (so `readUsage()` reports `{ supported: false }`).
|
|
62
|
+
*/
|
|
63
|
+
readonly usage?: SDKControlGetUsageResponse | (() => Promise<SDKControlGetUsageResponse> | SDKControlGetUsageResponse) | undefined;
|
|
64
|
+
/** Optional custom `setPermissionMode` response resolver (defaults to `{ mode }`). */
|
|
65
|
+
readonly onSetPermissionMode?: ((mode: PermissionMode) => Promise<SDKControlSetPermissionModeResponse | undefined> | SDKControlSetPermissionModeResponse | undefined) | undefined;
|
|
66
|
+
/** Canned `rewindFiles()` response (defaults to `{ canRewind: true }`). */
|
|
67
|
+
readonly rewindFilesResult?: RewindFilesResult | undefined;
|
|
68
|
+
/** Canned `setMcpServers()` response (defaults to `{ added: [], removed: [], errors: {} }`). */
|
|
69
|
+
readonly setMcpServersResult?: McpSetServersResult | undefined;
|
|
70
|
+
}
|
|
71
|
+
/** Harness returned by {@link createFakeClaudeSdkQuery} for E2E tests over `createClaudeSdkDriver`. */
|
|
72
|
+
export interface FakeClaudeSdkQueryHarness {
|
|
73
|
+
/** Drop-in `ClaudeSdkQuery` implementation passed as `createClaudeSdkDriver({ query })`. */
|
|
74
|
+
readonly query: ClaudeSdkQuery;
|
|
75
|
+
/** Recorded control method calls across all query runs in chronological order. */
|
|
76
|
+
readonly calls: readonly FakeClaudeSdkRecordedCall[];
|
|
77
|
+
/** All user messages consumed from `prompt` across all runs in chronological order. */
|
|
78
|
+
readonly promptMessages: readonly SDKUserMessage[];
|
|
79
|
+
/** Controllers for every `ClaudeSdkRun` created by this harness. */
|
|
80
|
+
readonly runs: readonly FakeClaudeSdkRunController[];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Create a scripted in-process {@link ClaudeSdkQuery} harness for consumer E2E tests against real
|
|
84
|
+
* `createClaudeSdkDriver`, keeping runs open across multiple turns and supporting `canUseTool`,
|
|
85
|
+
* live control recording, and non-inference `probeCapabilities`.
|
|
86
|
+
*/
|
|
87
|
+
export declare function createFakeClaudeSdkQuery(config?: FakeClaudeSdkQueryConfig): FakeClaudeSdkQueryHarness;
|
|
88
|
+
//# sourceMappingURL=fake-claude-sdk-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fake-claude-sdk-query.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/fake-claude-sdk-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iCAAiC,EACjC,0BAA0B,EAC1B,4BAA4B,EAC5B,mCAAmC,EACnC,cAAc,EACd,YAAY,EACb,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,sBAAsB,CAAC;AAEzE,sFAAsF;AACtF,MAAM,WAAW,yBAAyB;IACxC,mJAAmJ;IACnJ,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAC;CACnC;AAED,gHAAgH;AAChH,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,0EAA0E;IAC1E,QAAQ,CAAC,cAAc,EAAE,SAAS,cAAc,EAAE,CAAC;IACnD,wEAAwE;IACxE,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,oGAAoG;IACpG,aAAa,CACX,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;QAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SA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