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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type JsonRpcValue } from '../json-rpc-peer.js';
|
|
2
|
+
/** One JSON-RPC request recorded in arrival order by {@link FakeCodexAppServer}. */
|
|
3
|
+
export interface RecordedJsonRpcRequest {
|
|
4
|
+
/** Wire JSON-RPC request identifier. */
|
|
5
|
+
readonly id: string | number;
|
|
6
|
+
/** JSON-RPC method name requested by the client. */
|
|
7
|
+
readonly method: string;
|
|
8
|
+
/** Optional request params payload. */
|
|
9
|
+
readonly params?: JsonRpcValue | undefined;
|
|
10
|
+
}
|
|
11
|
+
/** Explicit JSON-RPC error object returned by a {@link FakeCodexRpcHandler}. */
|
|
12
|
+
export interface FakeCodexRpcErrorOutcome {
|
|
13
|
+
readonly error: {
|
|
14
|
+
readonly code: number;
|
|
15
|
+
readonly message: string;
|
|
16
|
+
readonly data?: JsonRpcValue | undefined;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** Return value accepted from a {@link FakeCodexRpcHandler}: JSON/DTO payload, explicit RPC error, or `'hang'` to omit any reply. */
|
|
20
|
+
export type FakeCodexRpcHandlerOutcome = JsonRpcValue | Readonly<Record<string, unknown>> | FakeCodexRpcErrorOutcome | 'hang';
|
|
21
|
+
/** Handler for one client JSON-RPC method on {@link FakeCodexAppServer}. */
|
|
22
|
+
export type FakeCodexRpcHandler = (params: JsonRpcValue | undefined, request: RecordedJsonRpcRequest) => Promise<FakeCodexRpcHandlerOutcome> | FakeCodexRpcHandlerOutcome;
|
|
23
|
+
/** Configuration for {@link createFakeCodexAppServer}. */
|
|
24
|
+
export interface FakeCodexAppServerConfig {
|
|
25
|
+
/** Absolute Unix domain socket path inside a private (`0o700`) directory. */
|
|
26
|
+
readonly socketPath: string;
|
|
27
|
+
/** `userAgent` returned by the default `initialize` handler. Defaults to `'codex/0.171.0'`; pass explicit `undefined` to omit. */
|
|
28
|
+
readonly userAgent?: string | undefined;
|
|
29
|
+
/** Per-method JSON-RPC handlers overriding or extending the default `initialize` handshake. */
|
|
30
|
+
readonly handlers?: Readonly<Record<string, FakeCodexRpcHandler>> | undefined;
|
|
31
|
+
/** Maximum incoming WebSocket frame size in bytes. Default 16 MiB. */
|
|
32
|
+
readonly maxFrameBytes?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** Running Unix-socket WebSocket JSON-RPC fake Codex app-server handle. */
|
|
35
|
+
export interface FakeCodexAppServer {
|
|
36
|
+
/** Bound Unix domain socket path accepted by `createCodexDriver({ transport: { kind: 'unix-connect', socketPath } })`. */
|
|
37
|
+
readonly socketPath: string;
|
|
38
|
+
/** All JSON-RPC requests (with `id`) received from clients in order. */
|
|
39
|
+
readonly requests: readonly RecordedJsonRpcRequest[];
|
|
40
|
+
/** Push a JSON-RPC notification frame to the active client; throws if no client is connected. */
|
|
41
|
+
sendNotification(method: string, params?: JsonRpcValue | Readonly<Record<string, unknown>>): void;
|
|
42
|
+
/** Push a JSON-RPC server request to the active client and resolve with its reply; rejects on error or disconnect. */
|
|
43
|
+
sendRequest(id: string | number, method: string, params?: JsonRpcValue | Readonly<Record<string, unknown>>): Promise<JsonRpcValue>;
|
|
44
|
+
/** Push an arbitrary UTF-8 WebSocket text frame to the active client (for malformed JSON or oversize-frame tests). */
|
|
45
|
+
sendRaw(text: string): void;
|
|
46
|
+
/** Drop all active client sockets without stopping the listening server (for `onDisconnect` and reconnect tests). */
|
|
47
|
+
disconnect(): void;
|
|
48
|
+
/** Stop the server, drop active sockets, and remove the bound socket file (idempotent). */
|
|
49
|
+
close(): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Start a portable (Bun and Node.js) Unix-socket WebSocket JSON-RPC fake Codex app-server for
|
|
53
|
+
* consumer integration tests with `createCodexDriver({ transport: { kind: 'unix-connect' } })`.
|
|
54
|
+
*/
|
|
55
|
+
export declare function createFakeCodexAppServer(config: FakeCodexAppServerConfig): Promise<FakeCodexAppServer>;
|
|
56
|
+
//# sourceMappingURL=fake-codex-app-server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fake-codex-app-server.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/fake-codex-app-server.ts"],"names":[],"mappings":"AAaA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAC;AAQ1B,oFAAoF;AACpF,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CAC5C;AAED,gFAAgF;AAChF,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC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M,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxD,OAAO,CAAC,YAAY,CAAC,CAAC;IACzB,sHAAsH;IACtH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qHAAqH;IACrH,UAAU,IAAI,IAAI,CAAC;IACnB,2FAA2F;IAC3F,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AA6OD;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CAiG7B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CodexNotificationEvent } from '../codex/handlers.js';
|
|
2
|
+
import { type CodexThread } from '../codex/protocol.js';
|
|
3
|
+
import { type JsonRpcValue } from '../json-rpc-peer.js';
|
|
4
|
+
import { type ExecutorDelta } from '../vocabulary.js';
|
|
5
|
+
/** Compact input accepted by {@link makeExecutorDelta}, making `turnId`, `itemId`, and `raw` optional across every `ExecutorDelta` branch. */
|
|
6
|
+
export type ExecutorDeltaInput<D extends ExecutorDelta = ExecutorDelta> = D extends ExecutorDelta ? Omit<D, 'turnId' | 'itemId' | 'raw'> & {
|
|
7
|
+
readonly turnId?: string | undefined;
|
|
8
|
+
readonly itemId?: string | undefined;
|
|
9
|
+
readonly raw?: ExecutorDelta['raw'] | undefined;
|
|
10
|
+
} : never;
|
|
11
|
+
/** Optional overrides accepted by {@link makeCodexNotificationEvent}. */
|
|
12
|
+
export interface CodexNotificationEventOverrides {
|
|
13
|
+
/** Override `duringActiveTurn` (defaults to `false`). */
|
|
14
|
+
readonly duringActiveTurn?: boolean | undefined;
|
|
15
|
+
/** Override classified `deltas` (defaults to `[]`). */
|
|
16
|
+
readonly deltas?: readonly ExecutorDelta[] | undefined;
|
|
17
|
+
}
|
|
18
|
+
/** Build a validated {@link ExecutorDelta} with sensible default `turnId`, `itemId`, and `raw` metadata. */
|
|
19
|
+
export declare function makeExecutorDelta(delta: ExecutorDeltaInput): ExecutorDelta;
|
|
20
|
+
/** Build a validated {@link CodexNotificationEvent} fixture for consumer unit tests. */
|
|
21
|
+
export declare function makeCodexNotificationEvent(method: string, params?: JsonRpcValue, overrides?: CodexNotificationEventOverrides): CodexNotificationEvent;
|
|
22
|
+
/** Build a validated {@link CodexThread} fixture with sensible defaults and optional field overrides. */
|
|
23
|
+
export declare function makeCodexThreadFixture(overrides?: {
|
|
24
|
+
[K in keyof CodexThread]?: CodexThread[K] | undefined;
|
|
25
|
+
} & Readonly<Record<string, unknown>>): CodexThread;
|
|
26
|
+
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,eAAe,CAAC;AAExE,8IAA8I;AAC9I,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IACpE,CAAC,SAAS,aAAa,GACnB,IAAI,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;CACjD,GACD,KAAK,CAAC;AAEZ,yEAAyE;AACzE,MAAM,WAAW,+BAA+B;IAC9C,yDAAyD;IACzD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,uDAAuD;IACvD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC;CACxD;AAED,4GAA4G;AAC5G,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,kBAAkB,GAAG,aAAa,CAO1E;AAED,wFAAwF;AACxF,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,YAAY,EACrB,SAAS,CAAC,EAAE,+BAA+B,GAC1C,sBAAsB,CAgBxB;AAED,yGAAyG;AACzG,wBAAgB,sBAAsB,CACpC,SAAS,CAAC,EAAE;KAAG,CAAC,IAAI,MAAM,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS;CAAE,GAAG,QAAQ,CAC9E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACxB,GACA,WAAW,CAeb"}
|
|
@@ -5,23 +5,23 @@ import { type ExecutorReplayTranscript } from './replay-transcript.js';
|
|
|
5
5
|
/** Configuration for {@link createReplayExecutorDriver}. */
|
|
6
6
|
export interface ReplayExecutorDriverConfig {
|
|
7
7
|
/** Which wire engine identity to emulate (any existing {@link ExecutorEngine}; default `'acp'`). */
|
|
8
|
-
readonly engine?: ExecutorEngine;
|
|
8
|
+
readonly engine?: ExecutorEngine | undefined;
|
|
9
9
|
/** Reconcile strategy emulated by this driver (`'none'` default, or `'client-id'` with `findInput`). */
|
|
10
|
-
readonly reconcile?: 'client-id' | 'none';
|
|
10
|
+
readonly reconcile?: 'client-id' | 'none' | undefined;
|
|
11
11
|
/** One transcript per turn (NDJSON string or validated {@link ExecutorReplayTranscript}). */
|
|
12
12
|
readonly turns: readonly (string | ExecutorReplayTranscript)[];
|
|
13
13
|
/** Optional label gate pausing execution on `{ kind: 'gate', label }` steps. */
|
|
14
|
-
readonly gate?: ReplayGate;
|
|
14
|
+
readonly gate?: ReplayGate | undefined;
|
|
15
15
|
/** Workspace path substituted for `<workspace>` placeholders in NDJSON transcripts. */
|
|
16
|
-
readonly workspace?: string;
|
|
16
|
+
readonly workspace?: string | undefined;
|
|
17
17
|
/** Optional capability overrides merged onto engine defaults and validated strictly. */
|
|
18
|
-
readonly capabilities?: Partial<ExecutorDriverCapabilities
|
|
18
|
+
readonly capabilities?: Partial<ExecutorDriverCapabilities> | undefined;
|
|
19
19
|
/** Engine version string reported in `info()`. Default `'replay-1.0.0'`. */
|
|
20
|
-
readonly version?: string;
|
|
20
|
+
readonly version?: string | undefined;
|
|
21
21
|
/** Optional model ids advertised by `info()`. When omitted, `info().models` is `'not-asked'`. */
|
|
22
|
-
readonly models?: readonly string[];
|
|
22
|
+
readonly models?: readonly string[] | undefined;
|
|
23
23
|
/** When `true`, `session.close()` fails if any configured turns or required steps were not consumed. */
|
|
24
|
-
readonly assertCompleteOnClose?: boolean;
|
|
24
|
+
readonly assertCompleteOnClose?: boolean | undefined;
|
|
25
25
|
}
|
|
26
26
|
/** In-process deterministic replay driver adding inspection and completeness assertions. */
|
|
27
27
|
export interface ReplayExecutorDriver extends AgentEngineDriver {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-driver.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/replay-driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAuC,MAAM,WAAW,CAAC;AAGxF,OAAO,EACL,KAAK,0BAA0B,EAE/B,KAAK,cAAc,EAGpB,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,
|
|
1
|
+
{"version":3,"file":"replay-driver.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/replay-driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAuC,MAAM,WAAW,CA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,OAAO,CAAC;IAC5C,0GAA0G;IAC1G,cAAc,IAAI,IAAI,CAAC;CACxB;AAoCD;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,0BAA0B,GACjC,oBAAoB,CA2KtB"}
|
|
@@ -2,11 +2,12 @@ import { type EngineRequestTurn } from '../engine-requests.js';
|
|
|
2
2
|
import type { InteractionReply } from '../executor-contract.js';
|
|
3
3
|
import type { ExecutorEngine, PlanLimits } from '../hello.js';
|
|
4
4
|
import type { ReplayGate } from './replay-gate.js';
|
|
5
|
-
import type { ExecutorReplayTranscript } from './replay-transcript.js';
|
|
5
|
+
import type { ExecutorReplayStep, ExecutorReplayTranscript } from './replay-transcript.js';
|
|
6
6
|
export interface ReplayTurnSlot extends EngineRequestTurn<InteractionReply['reply'], {
|
|
7
7
|
readonly interactionId: string;
|
|
8
8
|
}> {
|
|
9
9
|
readonly turnId: string;
|
|
10
|
+
readonly hostAnswered: Set<string>;
|
|
10
11
|
readonly interruptWaiters: Array<() => void>;
|
|
11
12
|
readonly replyPromises: Map<string, Promise<InteractionReply['reply']>>;
|
|
12
13
|
}
|
|
@@ -17,7 +18,7 @@ export interface ReplayTurnRunnerContext {
|
|
|
17
18
|
readonly profileId: string;
|
|
18
19
|
readonly limits: Map<string, PlanLimits>;
|
|
19
20
|
readonly answeredIds: Set<string>;
|
|
20
|
-
readonly
|
|
21
|
+
readonly consumedReplies: Set<ExecutorReplayStep>;
|
|
21
22
|
readonly gate?: ReplayGate;
|
|
22
23
|
readonly signal: AbortSignal;
|
|
23
24
|
readonly onTurnCompleted: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-runner.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/replay-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAIvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OA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UAAU,CAAC,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAClD,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,IAAI,CAAC;IACrC,QAAQ,CAAC,eAAe,EAAE,MAAM,IAAI,CAAC;CACtC;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqKzF"}
|
|
@@ -122,6 +122,7 @@ export declare const ExecutorReplayStepSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
122
122
|
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
123
123
|
windowDurationMins: z.ZodOptional<z.ZodInt>;
|
|
124
124
|
label: z.ZodOptional<z.ZodString>;
|
|
125
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
125
126
|
}, z.core.$strict>>;
|
|
126
127
|
}, z.core.$strict>, z.ZodObject<{
|
|
127
128
|
kind: z.ZodLiteral<"unknownRecord">;
|
|
@@ -258,6 +259,7 @@ export declare const ExecutorReplayTranscriptSchema: z.ZodObject<{
|
|
|
258
259
|
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
259
260
|
windowDurationMins: z.ZodOptional<z.ZodInt>;
|
|
260
261
|
label: z.ZodOptional<z.ZodString>;
|
|
262
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
261
263
|
}, z.core.$strict>>;
|
|
262
264
|
}, z.core.$strict>, z.ZodObject<{
|
|
263
265
|
kind: z.ZodLiteral<"unknownRecord">;
|
|
@@ -280,11 +282,11 @@ export type ExecutorReplayTranscript = z.infer<typeof ExecutorReplayTranscriptSc
|
|
|
280
282
|
/** Options for {@link parseReplayTranscript}. */
|
|
281
283
|
export interface ParseReplayTranscriptOptions {
|
|
282
284
|
/** Substitute literal `<workspace>` tokens inside parsed string values with this path. */
|
|
283
|
-
readonly workspace?: string;
|
|
285
|
+
readonly workspace?: string | undefined;
|
|
284
286
|
/** Maximum UTF-8 byte length accepted for the NDJSON source. Default 4 MiB. */
|
|
285
|
-
readonly maxBytes?: number;
|
|
287
|
+
readonly maxBytes?: number | undefined;
|
|
286
288
|
/** Maximum number of replay steps accepted. Default 4096. */
|
|
287
|
-
readonly maxSteps?: number;
|
|
289
|
+
readonly maxSteps?: number | undefined;
|
|
288
290
|
}
|
|
289
291
|
/**
|
|
290
292
|
* Parse and strictly validate an NDJSON replay transcript within finite byte and step limits.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-transcript.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/replay-transcript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,wBAAwB,QAAkB,CAAC;AACxD,eAAO,MAAM,wBAAwB,OAAQ,CAAC;AAsI9C,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"replay-transcript.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/testing/replay-transcript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,wBAAwB,QAAkB,CAAC;AACxD,eAAO,MAAM,wBAAwB,OAAQ,CAAC;AAsI9C,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAmBnC,CAAC;AAEH,0EAA0E;AAC1E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEzC,CAAC;AAEH,kFAAkF;AAClF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,oGAAoG;AACpG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,iDAAiD;AACjD,MAAM,WAAW,4BAA4B;IAC3C,0FAA0F;IAC1F,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,+EAA+E;IAC/E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC;AAqBD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,4BAAiC,GACzC,wBAAwB,CA6C1B;AAED,qEAAqE;AACrE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,CAEnF"}
|
|
@@ -134,25 +134,6 @@ export declare function branchObservation(ids: BranchIdentities, kind: string, r
|
|
|
134
134
|
artifactId?: string | undefined;
|
|
135
135
|
payloadOmitted?: "max-payload-bytes" | undefined;
|
|
136
136
|
payloadSha256: string;
|
|
137
|
-
} | {
|
|
138
|
-
effectName: string;
|
|
139
|
-
phase: "intent";
|
|
140
|
-
encoded?: string | undefined;
|
|
141
|
-
runId: string;
|
|
142
|
-
id?: string | undefined;
|
|
143
|
-
} | {
|
|
144
|
-
effectName: string;
|
|
145
|
-
phase: "accepted";
|
|
146
|
-
encoded: string;
|
|
147
|
-
via: "reconcile" | "run";
|
|
148
|
-
runId: string;
|
|
149
|
-
id?: string | undefined;
|
|
150
|
-
} | {
|
|
151
|
-
effectName: string;
|
|
152
|
-
phase: "uncertain";
|
|
153
|
-
encoded?: string | undefined;
|
|
154
|
-
runId: string;
|
|
155
|
-
id?: string | undefined;
|
|
156
137
|
} | {
|
|
157
138
|
kind: "sleep";
|
|
158
139
|
name: string;
|
|
@@ -176,6 +157,25 @@ export declare function branchObservation(ids: BranchIdentities, kind: string, r
|
|
|
176
157
|
id: string;
|
|
177
158
|
encoded: string;
|
|
178
159
|
runId: string;
|
|
160
|
+
} | {
|
|
161
|
+
effectName: string;
|
|
162
|
+
phase: "intent";
|
|
163
|
+
encoded?: string | undefined;
|
|
164
|
+
runId: string;
|
|
165
|
+
id?: string | undefined;
|
|
166
|
+
} | {
|
|
167
|
+
effectName: string;
|
|
168
|
+
phase: "accepted";
|
|
169
|
+
encoded: string;
|
|
170
|
+
via: "reconcile" | "run";
|
|
171
|
+
runId: string;
|
|
172
|
+
id?: string | undefined;
|
|
173
|
+
} | {
|
|
174
|
+
effectName: string;
|
|
175
|
+
phase: "uncertain";
|
|
176
|
+
encoded?: string | undefined;
|
|
177
|
+
runId: string;
|
|
178
|
+
id?: string | undefined;
|
|
179
179
|
} | {
|
|
180
180
|
bytes: number;
|
|
181
181
|
sha256?: string | undefined;
|
|
@@ -124,16 +124,6 @@ export declare function parseRunRow(value: unknown): {
|
|
|
124
124
|
provider: string;
|
|
125
125
|
data: Record<string, z.JSONType>;
|
|
126
126
|
} | undefined;
|
|
127
|
-
} | {
|
|
128
|
-
type: "file";
|
|
129
|
-
mediaType: string;
|
|
130
|
-
reference: string;
|
|
131
|
-
filename?: string | undefined;
|
|
132
|
-
} | {
|
|
133
|
-
type: "source";
|
|
134
|
-
sourceId: string;
|
|
135
|
-
url?: string | undefined;
|
|
136
|
-
title?: string | undefined;
|
|
137
127
|
} | {
|
|
138
128
|
type: "tool-call";
|
|
139
129
|
callId: string;
|
|
@@ -150,6 +140,16 @@ export declare function parseRunRow(value: unknown): {
|
|
|
150
140
|
toolName: string;
|
|
151
141
|
outcome: "error" | "interrupted" | "success";
|
|
152
142
|
output?: z.JSONType | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
type: "file";
|
|
145
|
+
mediaType: string;
|
|
146
|
+
reference: string;
|
|
147
|
+
filename?: string | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
type: "source";
|
|
150
|
+
sourceId: string;
|
|
151
|
+
url?: string | undefined;
|
|
152
|
+
title?: string | undefined;
|
|
153
153
|
} | {
|
|
154
154
|
type: "tool-approval-request";
|
|
155
155
|
approvalId: string;
|
|
@@ -141,6 +141,16 @@ export declare function fencingPhase(store: AgentRuntimeStore, conversationId: s
|
|
|
141
141
|
provider: string;
|
|
142
142
|
data: Record<string, import("zod").JSONType>;
|
|
143
143
|
} | undefined;
|
|
144
|
+
} | {
|
|
145
|
+
type: "file";
|
|
146
|
+
mediaType: string;
|
|
147
|
+
reference: string;
|
|
148
|
+
filename?: string | undefined;
|
|
149
|
+
} | {
|
|
150
|
+
type: "source";
|
|
151
|
+
sourceId: string;
|
|
152
|
+
url?: string | undefined;
|
|
153
|
+
title?: string | undefined;
|
|
144
154
|
} | {
|
|
145
155
|
type: "tool-call";
|
|
146
156
|
callId: string;
|
|
@@ -157,16 +167,6 @@ export declare function fencingPhase(store: AgentRuntimeStore, conversationId: s
|
|
|
157
167
|
toolName: string;
|
|
158
168
|
outcome: "error" | "interrupted" | "success";
|
|
159
169
|
output?: import("zod").JSONType | undefined;
|
|
160
|
-
} | {
|
|
161
|
-
type: "file";
|
|
162
|
-
mediaType: string;
|
|
163
|
-
reference: string;
|
|
164
|
-
filename?: string | undefined;
|
|
165
|
-
} | {
|
|
166
|
-
type: "source";
|
|
167
|
-
sourceId: string;
|
|
168
|
-
url?: string | undefined;
|
|
169
|
-
title?: string | undefined;
|
|
170
170
|
} | {
|
|
171
171
|
type: "tool-approval-request";
|
|
172
172
|
approvalId: string;
|
|
@@ -321,6 +321,16 @@ export declare function fencingPhase(store: AgentRuntimeStore, conversationId: s
|
|
|
321
321
|
provider: string;
|
|
322
322
|
data: Record<string, import("zod").JSONType>;
|
|
323
323
|
} | undefined;
|
|
324
|
+
} | {
|
|
325
|
+
type: "file";
|
|
326
|
+
mediaType: string;
|
|
327
|
+
reference: string;
|
|
328
|
+
filename?: string | undefined;
|
|
329
|
+
} | {
|
|
330
|
+
type: "source";
|
|
331
|
+
sourceId: string;
|
|
332
|
+
url?: string | undefined;
|
|
333
|
+
title?: string | undefined;
|
|
324
334
|
} | {
|
|
325
335
|
type: "tool-call";
|
|
326
336
|
callId: string;
|
|
@@ -337,16 +347,6 @@ export declare function fencingPhase(store: AgentRuntimeStore, conversationId: s
|
|
|
337
347
|
toolName: string;
|
|
338
348
|
outcome: "error" | "interrupted" | "success";
|
|
339
349
|
output?: import("zod").JSONType | undefined;
|
|
340
|
-
} | {
|
|
341
|
-
type: "file";
|
|
342
|
-
mediaType: string;
|
|
343
|
-
reference: string;
|
|
344
|
-
filename?: string | undefined;
|
|
345
|
-
} | {
|
|
346
|
-
type: "source";
|
|
347
|
-
sourceId: string;
|
|
348
|
-
url?: string | undefined;
|
|
349
|
-
title?: string | undefined;
|
|
350
350
|
} | {
|
|
351
351
|
type: "tool-approval-request";
|
|
352
352
|
approvalId: string;
|
|
@@ -16,16 +16,6 @@ export declare function userMessage(conversationId: string, id: string): {
|
|
|
16
16
|
provider: string;
|
|
17
17
|
data: Record<string, import("zod").JSONType>;
|
|
18
18
|
} | undefined;
|
|
19
|
-
} | {
|
|
20
|
-
type: "file";
|
|
21
|
-
mediaType: string;
|
|
22
|
-
reference: string;
|
|
23
|
-
filename?: string | undefined;
|
|
24
|
-
} | {
|
|
25
|
-
type: "source";
|
|
26
|
-
sourceId: string;
|
|
27
|
-
url?: string | undefined;
|
|
28
|
-
title?: string | undefined;
|
|
29
19
|
} | {
|
|
30
20
|
type: "tool-call";
|
|
31
21
|
callId: string;
|
|
@@ -42,6 +32,16 @@ export declare function userMessage(conversationId: string, id: string): {
|
|
|
42
32
|
toolName: string;
|
|
43
33
|
outcome: "error" | "interrupted" | "success";
|
|
44
34
|
output?: import("zod").JSONType | undefined;
|
|
35
|
+
} | {
|
|
36
|
+
type: "file";
|
|
37
|
+
mediaType: string;
|
|
38
|
+
reference: string;
|
|
39
|
+
filename?: string | undefined;
|
|
40
|
+
} | {
|
|
41
|
+
type: "source";
|
|
42
|
+
sourceId: string;
|
|
43
|
+
url?: string | undefined;
|
|
44
|
+
title?: string | undefined;
|
|
45
45
|
} | {
|
|
46
46
|
type: "tool-approval-request";
|
|
47
47
|
approvalId: string;
|
|
@@ -41,6 +41,16 @@ export declare function appliedSnapshot(result: AgentStoreMutationResult, operat
|
|
|
41
41
|
provider: string;
|
|
42
42
|
data: Record<string, import("zod").JSONType>;
|
|
43
43
|
} | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
type: "file";
|
|
46
|
+
mediaType: string;
|
|
47
|
+
reference: string;
|
|
48
|
+
filename?: string | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
type: "source";
|
|
51
|
+
sourceId: string;
|
|
52
|
+
url?: string | undefined;
|
|
53
|
+
title?: string | undefined;
|
|
44
54
|
} | {
|
|
45
55
|
type: "tool-call";
|
|
46
56
|
callId: string;
|
|
@@ -57,16 +67,6 @@ export declare function appliedSnapshot(result: AgentStoreMutationResult, operat
|
|
|
57
67
|
toolName: string;
|
|
58
68
|
outcome: "error" | "interrupted" | "success";
|
|
59
69
|
output?: import("zod").JSONType | undefined;
|
|
60
|
-
} | {
|
|
61
|
-
type: "file";
|
|
62
|
-
mediaType: string;
|
|
63
|
-
reference: string;
|
|
64
|
-
filename?: string | undefined;
|
|
65
|
-
} | {
|
|
66
|
-
type: "source";
|
|
67
|
-
sourceId: string;
|
|
68
|
-
url?: string | undefined;
|
|
69
|
-
title?: string | undefined;
|
|
70
70
|
} | {
|
|
71
71
|
type: "tool-approval-request";
|
|
72
72
|
approvalId: string;
|
|
@@ -2,6 +2,7 @@ export { acpFakeScenarios } from '../../agent-executor/acp/scenarios.js';
|
|
|
2
2
|
export type { AcpProbeMode, AcpPromptOutcomeOverride, AcpSessionMetaInput, AcpSteerMode, AcpWatchPromptOutcome, } from '../../agent-executor/acp/v1-connect.js';
|
|
3
3
|
export { type AcpApprovalEnforcement, type AcpDriver, type AcpDriverConfig, type AcpSession, type AcpSessionSummary, createAcpDriver, } from '../../agent-executor/acp/v1-driver.js';
|
|
4
4
|
export type { AcpPermissionRequestEvent, AcpTransformUpdate, AcpUpdateEvent, } from '../../agent-executor/acp/v1-handlers.js';
|
|
5
|
-
export
|
|
5
|
+
export type { AcpCapabilitiesProbe, AcpProbeCapabilitiesInput, } from '../../agent-executor/acp/v1-probe.js';
|
|
6
|
+
export { ACP_PROTOCOL_VERSION, type AcpClientInfo, AcpClientInfoSchema, type AcpConfigOption, type AcpConfigOptionChoice, AcpConfigOptionSchema, type AcpInitializeResult, AcpInitializeResultSchema, type AcpMcpServer, AcpMcpServerSchema, type AcpPermissionOption, AcpPermissionOptionSchema, type AcpPermissionRequest, AcpPermissionRequestSchema, type AcpPromptResult, type AcpPromptUsage, type AcpSessionUpdate, AcpSessionUpdateSchema, acpOptionChoices, acpOptionValues, } from '../../agent-executor/acp/v1-protocol.js';
|
|
6
7
|
export type { AcpOpenInput, AcpSteerTurnInput } from '../../agent-executor/acp/v1-session.js';
|
|
7
8
|
//# sourceMappingURL=acp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acp.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/agent-executor/acp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,YAAY,EACV,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,GACf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,KAAK,aAAa,EAClB,mBAAmB,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"acp.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/agent-executor/acp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,YAAY,EACV,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,GACf,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,oBAAoB,EACpB,KAAK,aAAa,EAClB,mBAAmB,EACnB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,YAAY,EACjB,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC"}
|