stitchkit 0.130.0 → 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 +48 -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 +9 -7
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-client.d.ts +112 -87
- 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 +42 -31
- 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 +9 -4
- 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 -144
- 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 +21 -169
- 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 +5 -53
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-server.d.ts +7 -5
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-thread.d.ts +8 -8
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-controls.d.ts +61 -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 +66 -0
- package/dist/agent-executor/codex/thread-open.d.ts.map +1 -0
- package/dist/agent-executor/codex/turn-input.d.ts +25 -7
- 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 +5 -5
- 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 +11 -6
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +2223 -1803
- 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 +13 -10
- 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 +160 -97
- package/llms.txt +8 -8
- package/package.json +3 -3
- package/dist/index-2s8sy57y.js +0 -229
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-controls.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/session-controls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-controls.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/session-controls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAE3B,KAAK,kBAAkB,EAKxB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAKL,KAAK,mBAAmB,EAEzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,gBAAgB,EAGtB,MAAM,cAAc,CAAC;AAEtB,gIAAgI;AAChI,MAAM,WAAW,4BAA4B;IAC3C,QAAQ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MAAM,EAChB,SAAS,EAAE,4BAA4B,EACvC,KAAK,EAAE,SAAS,gBAAgB,EAAE,EAClC,mBAAmB,CAAC,EAAE,MAAM,GAC3B,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAuB9B;AAED,sGAAsG;AACtG,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,IAAI,IAAI,CAAC;IACpB,aAAa,IAAI;QAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CAChE;IAES,SAAS,aACD,mBAAmB,GAAG;QAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,eAC/D,mBAAmB,GAC/B,OAAO,CAAC;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IA4FjC,UAAU,WACL,sBAAsB,eAClB,mBAAmB,GAC/B,OAAO,CAAC,iBAAiB,CAAC;EA8BhC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { AgentEngineDriver, AgentEngineSession, AgentEngineTurn } from '../engine.js';
|
|
2
|
+
import type { InteractionReply } from '../executor-contract.js';
|
|
3
|
+
import type { ExecutorDriverCapabilities } from '../hello.js';
|
|
4
|
+
import type { JsonRpcValue } from '../json-rpc-peer.js';
|
|
5
|
+
import type { ExecutorProfileConfig } from '../profile.js';
|
|
6
|
+
import type { ExecutorStartupPhase } from '../vocabulary.js';
|
|
7
|
+
import type { CodexControlClient, CodexControlConnectInput, CodexControlConnection, CodexListItemsParams, CodexListTurnsParams, CodexReadThreadParams } from './control-client.js';
|
|
8
|
+
import type { CodexApprovalPolicy, CodexCollaborationMode, CodexSandboxMode, CodexSandboxPolicy, CodexThreadContext, CodexTurnsPage } from './protocol.js';
|
|
9
|
+
import type { CodexItemsPage, CodexReadThreadResponse, CodexResumeThreadResponse, CodexThreadMetadataUpdateResponse, CodexThreadUnarchiveResponse, CodexThreadUnsubscribeResponse } from './responses.js';
|
|
10
|
+
import type { CodexSharedServer, CodexSharedServerOpenInput } from './shared-server.js';
|
|
11
|
+
import type { CodexInjectItemsParams, CodexInterruptTurnParams, CodexRevertThreadParams, CodexRevertThreadResult, CodexRpcCallOptions, CodexSetThreadNameParams, CodexUpdateThreadMetadataParams } from './thread-controls.js';
|
|
12
|
+
import type { CodexResumeThreadParams } from './thread-open.js';
|
|
13
|
+
import type { CodexTurnInputPart } from './turn-input.js';
|
|
14
|
+
/** Policy and configuration fields forwarded to Codex `thread/start`, `thread/resume`, and `thread/fork`. */
|
|
15
|
+
export interface CodexThreadPolicyOverrides {
|
|
16
|
+
/** Model identifier to use for the thread. */
|
|
17
|
+
readonly model?: string | undefined;
|
|
18
|
+
/** Model provider identifier (for example `openai`). */
|
|
19
|
+
readonly modelProvider?: string | undefined;
|
|
20
|
+
/** Approval policy applied to the thread. */
|
|
21
|
+
readonly approvalPolicy?: CodexApprovalPolicy | undefined;
|
|
22
|
+
/** Sandbox mode applied to the thread. */
|
|
23
|
+
readonly sandbox?: CodexSandboxMode | undefined;
|
|
24
|
+
/** Developer instructions appended to the thread system context. */
|
|
25
|
+
readonly developerInstructions?: string | undefined;
|
|
26
|
+
/** Additional workspace roots allowed for runtime filesystem access. */
|
|
27
|
+
readonly runtimeWorkspaceRoots?: readonly string[] | undefined;
|
|
28
|
+
/** Codex app-server config overrides for the thread (sandbox writable roots, disabled MCP/plugins/features, network policy). */
|
|
29
|
+
readonly config?: Readonly<Record<string, JsonRpcValue>> | undefined;
|
|
30
|
+
}
|
|
31
|
+
/** Input to {@link CodexSession.startTurn}, extending the portable turn input with Codex per-turn overrides, `localImage`, and `skill` items. */
|
|
32
|
+
export interface CodexTurnInput {
|
|
33
|
+
readonly turnId: string;
|
|
34
|
+
readonly clientId: string;
|
|
35
|
+
readonly input: readonly CodexTurnInputPart[];
|
|
36
|
+
/** Per-turn working directory override forwarded on `turn/start`. */
|
|
37
|
+
readonly cwd?: string | undefined;
|
|
38
|
+
/** Per-turn model override forwarded on `turn/start`. */
|
|
39
|
+
readonly model?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Verified fail-closed against the thread's active `modelProvider`; Codex's `turn/start`
|
|
42
|
+
* does not switch providers mid-thread.
|
|
43
|
+
*/
|
|
44
|
+
readonly modelProvider?: string | undefined;
|
|
45
|
+
/** Per-turn reasoning effort override (forwarded to Codex as `effort`). */
|
|
46
|
+
readonly reasoningEffort?: string | undefined;
|
|
47
|
+
/** Per-turn collaboration mode override (`plan` or `default`). */
|
|
48
|
+
readonly collaborationMode?: CodexCollaborationMode | undefined;
|
|
49
|
+
/** Per-turn approval policy override. */
|
|
50
|
+
readonly approvalPolicy?: CodexApprovalPolicy | undefined;
|
|
51
|
+
/** Per-turn sandbox policy object override (`sandboxPolicy`). */
|
|
52
|
+
readonly sandboxPolicy?: CodexSandboxPolicy | undefined;
|
|
53
|
+
/** Per-turn runtime workspace roots override. */
|
|
54
|
+
readonly runtimeWorkspaceRoots?: readonly string[] | undefined;
|
|
55
|
+
}
|
|
56
|
+
/** Codex turn handle returned by {@link CodexSession.startTurn}, exposing the server-assigned `nativeTurnId`. */
|
|
57
|
+
export interface CodexTurn extends AgentEngineTurn {
|
|
58
|
+
/** Native turn identifier assigned by Codex in the `turn/start` response (`turn.id`). */
|
|
59
|
+
readonly nativeTurnId: string;
|
|
60
|
+
}
|
|
61
|
+
/** Input to {@link CodexSession.steerTurn} (`turn/steer`). */
|
|
62
|
+
export interface CodexSteerTurnInput {
|
|
63
|
+
readonly input: readonly CodexTurnInputPart[];
|
|
64
|
+
readonly clientId?: string | undefined;
|
|
65
|
+
/** Active Codex turn id guard; required when steering an external/TUI turn without a local `startTurn()`. */
|
|
66
|
+
readonly expectedTurnId?: string | undefined;
|
|
67
|
+
}
|
|
68
|
+
/** Options for {@link CodexSession.forkThread} (`thread/fork`). */
|
|
69
|
+
export interface CodexForkThreadOptions extends CodexThreadPolicyOverrides {
|
|
70
|
+
readonly cwd?: string | undefined;
|
|
71
|
+
readonly beforeTurnId?: string | undefined;
|
|
72
|
+
readonly lastTurnId?: string | undefined;
|
|
73
|
+
readonly excludeTurns?: boolean | undefined;
|
|
74
|
+
/** Carry the source thread's goal into the fork without starting automatic continuation. */
|
|
75
|
+
readonly deferGoalContinuation?: boolean | undefined;
|
|
76
|
+
}
|
|
77
|
+
/** Options to open a new {@link CodexSession} directly via `thread/fork` instead of `thread/start`. */
|
|
78
|
+
export interface CodexOpenForkOptions extends CodexThreadPolicyOverrides {
|
|
79
|
+
/** Existing thread id to fork from. */
|
|
80
|
+
readonly threadId: string;
|
|
81
|
+
readonly beforeTurnId?: string | undefined;
|
|
82
|
+
readonly lastTurnId?: string | undefined;
|
|
83
|
+
/** Defaults to `true` when omitted so large threads do not inline full history into the fork reply. */
|
|
84
|
+
readonly excludeTurns?: boolean | undefined;
|
|
85
|
+
/** Carry the source thread's goal into the fork without starting automatic continuation. */
|
|
86
|
+
readonly deferGoalContinuation?: boolean | undefined;
|
|
87
|
+
}
|
|
88
|
+
/** Input to {@link CodexDriver.open}, extending {@link AgentEngineDriver.open} with `forkFrom`. */
|
|
89
|
+
export interface CodexOpenInput {
|
|
90
|
+
readonly profile: ExecutorProfileConfig;
|
|
91
|
+
readonly cwd: string;
|
|
92
|
+
/** Resume this native thread via `thread/resume` (mutually exclusive with `forkFrom`). */
|
|
93
|
+
readonly nativeThreadId?: string | undefined;
|
|
94
|
+
/** Open the session by forking an existing thread via `thread/fork` (mutually exclusive with `nativeThreadId`). */
|
|
95
|
+
readonly forkFrom?: CodexOpenForkOptions | undefined;
|
|
96
|
+
/** Optional observer invoked with startup phases (`spawning`, `initializing`, `verifying`) during open. */
|
|
97
|
+
readonly onStartupPhase?: ((phase: ExecutorStartupPhase) => void) | undefined;
|
|
98
|
+
readonly signal?: AbortSignal | undefined;
|
|
99
|
+
}
|
|
100
|
+
/** Result returned by {@link CodexSession.forkThread} without mutating the current session. */
|
|
101
|
+
export interface CodexForkedThread {
|
|
102
|
+
readonly nativeThreadId: string;
|
|
103
|
+
readonly threadContext: CodexThreadContext;
|
|
104
|
+
}
|
|
105
|
+
/** Extended Codex session handle exposing `providerPid`, `userAgent`, applied `threadContext`, and live app-server controls. */
|
|
106
|
+
export interface CodexSession extends AgentEngineSession, CodexControlClient {
|
|
107
|
+
/** OS process id of the spawned `codex app-server`, or `undefined` when attached via `unix-connect`. */
|
|
108
|
+
readonly providerPid: number | undefined;
|
|
109
|
+
/** Server-reported `userAgent` from the `initialize` response, or `undefined` when omitted. */
|
|
110
|
+
readonly userAgent: string | undefined;
|
|
111
|
+
/** Applied thread settings reported by `thread/start`, `thread/resume`, or `thread/fork`. */
|
|
112
|
+
readonly threadContext: CodexThreadContext;
|
|
113
|
+
/** Start a turn with optional per-turn Codex overrides, `localImage`, and `skill` items; resolves with `nativeTurnId`. */
|
|
114
|
+
startTurn(input: CodexTurnInput): Promise<CodexTurn>;
|
|
115
|
+
/** Answer a pending request from either the active turn or an external/TUI server request. */
|
|
116
|
+
respond(interactionId: string, reply: InteractionReply['reply']): Promise<void>;
|
|
117
|
+
/** Read thread metadata (`thread/read`); defaults `threadId` to this session's `nativeThreadId`. */
|
|
118
|
+
readThread(params?: Omit<CodexReadThreadParams, 'threadId'> & {
|
|
119
|
+
readonly threadId?: string | undefined;
|
|
120
|
+
}, options?: CodexRpcCallOptions): Promise<CodexReadThreadResponse>;
|
|
121
|
+
/** List turns (`thread/turns/list`); defaults `threadId` to this session's `nativeThreadId`. */
|
|
122
|
+
listTurns(params?: Omit<CodexListTurnsParams, 'threadId'> & {
|
|
123
|
+
readonly threadId?: string | undefined;
|
|
124
|
+
}, options?: CodexRpcCallOptions): Promise<CodexTurnsPage>;
|
|
125
|
+
/** List items (`thread/items/list`); defaults `threadId` to this session's `nativeThreadId`. */
|
|
126
|
+
listItems(params?: Omit<CodexListItemsParams, 'threadId'> & {
|
|
127
|
+
readonly threadId?: string | undefined;
|
|
128
|
+
}, options?: CodexRpcCallOptions): Promise<CodexItemsPage>;
|
|
129
|
+
/** Resume a thread (`thread/resume`, defaulting `excludeTurns` to `true`); defaults `threadId` to `nativeThreadId` and does not mutate cached `threadContext`. */
|
|
130
|
+
resumeThread(params?: Omit<CodexResumeThreadParams, 'threadId'> & {
|
|
131
|
+
readonly threadId?: string | undefined;
|
|
132
|
+
}, options?: CodexRpcCallOptions): Promise<CodexResumeThreadResponse>;
|
|
133
|
+
/** Revert thread durable history before `beforeTurnId` (`thread/revert`); defaults `threadId` to `nativeThreadId`. */
|
|
134
|
+
revertThread(params: Omit<CodexRevertThreadParams, 'threadId'> & {
|
|
135
|
+
readonly threadId?: string | undefined;
|
|
136
|
+
}, options?: CodexRpcCallOptions): Promise<CodexRevertThreadResult>;
|
|
137
|
+
/** Inject raw Responses API items (`thread/inject_items`); defaults `threadId` to `nativeThreadId`. */
|
|
138
|
+
injectItems(params: Omit<CodexInjectItemsParams, 'threadId'> & {
|
|
139
|
+
readonly threadId?: string | undefined;
|
|
140
|
+
}, options?: CodexRpcCallOptions): Promise<void>;
|
|
141
|
+
/** Unsubscribe this connection (`thread/unsubscribe`); defaults `threadId` to `nativeThreadId`. */
|
|
142
|
+
unsubscribeThread(params?: {
|
|
143
|
+
readonly threadId?: string | undefined;
|
|
144
|
+
}, options?: CodexRpcCallOptions): Promise<CodexThreadUnsubscribeResponse>;
|
|
145
|
+
/** Archive a thread (`thread/archive`); defaults `threadId` to `nativeThreadId`. */
|
|
146
|
+
archiveThread(params?: {
|
|
147
|
+
readonly threadId?: string | undefined;
|
|
148
|
+
}, options?: CodexRpcCallOptions): Promise<void>;
|
|
149
|
+
/** Unarchive a thread (`thread/unarchive`); defaults `threadId` to `nativeThreadId`. */
|
|
150
|
+
unarchiveThread(params?: {
|
|
151
|
+
readonly threadId?: string | undefined;
|
|
152
|
+
}, options?: CodexRpcCallOptions): Promise<CodexThreadUnarchiveResponse>;
|
|
153
|
+
/** Patch thread metadata (`thread/metadata/update`); defaults `threadId` to `nativeThreadId`. */
|
|
154
|
+
updateThreadMetadata(params?: Omit<CodexUpdateThreadMetadataParams, 'threadId'> & {
|
|
155
|
+
readonly threadId?: string | undefined;
|
|
156
|
+
}, options?: CodexRpcCallOptions): Promise<CodexThreadMetadataUpdateResponse>;
|
|
157
|
+
/** Set thread display name (`thread/name/set`); defaults `threadId` to `nativeThreadId`. */
|
|
158
|
+
setThreadName(params: Omit<CodexSetThreadNameParams, 'threadId'> & {
|
|
159
|
+
readonly threadId?: string | undefined;
|
|
160
|
+
}, options?: CodexRpcCallOptions): Promise<void>;
|
|
161
|
+
/** Interrupt a running turn (`turn/interrupt`), including external/TUI or reconnected turns; defaults `threadId` to `nativeThreadId`. */
|
|
162
|
+
interruptTurn(params: Omit<CodexInterruptTurnParams, 'threadId'> & {
|
|
163
|
+
readonly threadId?: string | undefined;
|
|
164
|
+
}, options?: CodexRpcCallOptions): Promise<void>;
|
|
165
|
+
/** Steer an active turn with additional input (`turn/steer`); accepts explicit `expectedTurnId` for external/TUI turns and optional `threadId`. */
|
|
166
|
+
steerTurn(input: CodexSteerTurnInput & {
|
|
167
|
+
readonly threadId?: string | undefined;
|
|
168
|
+
}, options?: CodexRpcCallOptions): Promise<{
|
|
169
|
+
readonly turnId: string;
|
|
170
|
+
}>;
|
|
171
|
+
/** Fork the session's thread into a new thread id without mutating the current session (`thread/fork`). */
|
|
172
|
+
forkThread(options?: CodexForkThreadOptions, rpcOptions?: CodexRpcCallOptions): Promise<CodexForkedThread>;
|
|
173
|
+
/** Request context compaction (`thread/compact/start`); defaults `threadId` to `nativeThreadId`. */
|
|
174
|
+
compactThread(params?: {
|
|
175
|
+
readonly threadId?: string | undefined;
|
|
176
|
+
}, options?: CodexRpcCallOptions): Promise<void>;
|
|
177
|
+
}
|
|
178
|
+
/** Codex driver returned by {@link createCodexDriver}; `open()` resolves to {@link CodexSession} and `connectControl()` opens a threadless control link. */
|
|
179
|
+
export interface CodexDriver extends AgentEngineDriver {
|
|
180
|
+
readonly engine: 'codex';
|
|
181
|
+
readonly reconcile: 'client-id';
|
|
182
|
+
readonly capabilities: ExecutorDriverCapabilities;
|
|
183
|
+
findInput: NonNullable<AgentEngineDriver['findInput']>;
|
|
184
|
+
open(input: CodexOpenInput): Promise<CodexSession>;
|
|
185
|
+
/** Connect to `codex app-server` without starting, resuming, or forking a thread. */
|
|
186
|
+
connectControl(input: CodexControlConnectInput): Promise<CodexControlConnection>;
|
|
187
|
+
/** Open a shared headless `stdio` `codex app-server` multiplexing multiple threads (ADR 0329). */
|
|
188
|
+
openSharedServer(input: CodexSharedServerOpenInput): Promise<CodexSharedServer>;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=session-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-types.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/session-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB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,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED,4JAA4J;AAC5J,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAClD,SAAS,EAAE,WAAW,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC;IACvD,IAAI,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACnD,qFAAqF;IACrF,cAAc,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACjF,kGAAkG;IAClG,gBAAgB,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACjF"}
|
|
@@ -1,58 +1,10 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
import { type
|
|
4
|
-
import type { JsonRpcPeer, JsonRpcValue } from '../json-rpc-peer.js';
|
|
5
|
-
import { type CodexConnectConfig } from './connect.js';
|
|
6
|
-
import { type CodexControlClient, type CodexControlConnectInput, type CodexControlConnection } from './control-client.js';
|
|
7
|
-
import { type CodexNotificationEvent, type CodexServerRequestEvent } from './handlers.js';
|
|
8
|
-
import { type CodexThreadContext } from './protocol.js';
|
|
9
|
-
import { type CodexTurnSlot } from './request-answers.js';
|
|
10
|
-
import { type CodexOpenForkOptions, type CodexOpenInput, type CodexSession, type CodexThreadPolicyOverrides, type CodexTurnInput } from './session-controls.js';
|
|
11
|
-
export interface CodexSessionConfig extends DriverImageOptions, CodexConnectConfig {
|
|
12
|
-
readonly model?: string;
|
|
13
|
-
readonly modelProvider?: string;
|
|
14
|
-
readonly approvalPolicy: CodexThreadPolicyOverrides['approvalPolicy'];
|
|
15
|
-
readonly sandbox: CodexThreadPolicyOverrides['sandbox'];
|
|
16
|
-
readonly developerInstructions?: string;
|
|
17
|
-
readonly runtimeWorkspaceRoots?: readonly string[];
|
|
18
|
-
readonly config?: Readonly<Record<string, JsonRpcValue>>;
|
|
19
|
-
readonly prepareThread?: (context: {
|
|
20
|
-
readonly controls: CodexControlClient;
|
|
21
|
-
readonly cwd: string;
|
|
22
|
-
readonly nativeThreadId?: string;
|
|
23
|
-
readonly forkFrom?: CodexOpenForkOptions;
|
|
24
|
-
}) => Promise<CodexThreadPolicyOverrides | undefined> | CodexThreadPolicyOverrides | undefined;
|
|
25
|
-
readonly verifyThread?: (context: {
|
|
26
|
-
readonly nativeThreadId: string;
|
|
27
|
-
readonly threadContext: CodexThreadContext;
|
|
28
|
-
readonly controls: CodexControlClient;
|
|
29
|
-
}) => Promise<void> | void;
|
|
30
|
-
readonly onNotification?: (event: CodexNotificationEvent) => void;
|
|
31
|
-
readonly onServerRequest?: (event: CodexServerRequestEvent) => void;
|
|
32
|
-
readonly onDisconnect?: (error: Error) => void;
|
|
33
|
-
readonly limits: Map<string, PlanLimits>;
|
|
34
|
-
}
|
|
35
|
-
export declare function createCodexStartTurn(input: {
|
|
36
|
-
config: CodexSessionConfig;
|
|
37
|
-
peer: JsonRpcPeer;
|
|
38
|
-
threadId: string;
|
|
39
|
-
activeModelProvider: string | undefined;
|
|
40
|
-
signal: AbortSignal;
|
|
41
|
-
ensureAlive(): void;
|
|
42
|
-
getTurn(): CodexTurnSlot | undefined;
|
|
43
|
-
setTurn(turn: CodexTurnSlot | undefined): void;
|
|
44
|
-
}): (turnInput: CodexTurnInput) => Promise<AgentEngineTurn>;
|
|
45
|
-
export declare function validateCodexOpenInput(input: CodexOpenInput): void;
|
|
46
|
-
export declare function mergeOpenThreadPolicy(config: CodexSessionConfig, forkFrom: CodexOpenForkOptions | undefined, dynamicOverrides: CodexThreadPolicyOverrides | undefined): Record<string, JsonRpcValue>;
|
|
47
|
-
/** Dispatch `thread/fork`, `thread/resume`, or `thread/start` with merged policy overrides. */
|
|
48
|
-
export declare function openCodexThreadRpc(peer: JsonRpcPeer, config: CodexSessionConfig, input: {
|
|
49
|
-
readonly cwd: string;
|
|
50
|
-
readonly nativeThreadId?: string;
|
|
51
|
-
readonly forkFrom?: CodexOpenForkOptions;
|
|
52
|
-
}, dynamicOverrides: CodexThreadPolicyOverrides | undefined): Promise<JsonRpcValue>;
|
|
1
|
+
import { type CodexControlConnectInput, type CodexControlConnection } from './control-client.js';
|
|
2
|
+
import type { CodexOpenInput, CodexSession } from './session-types.js';
|
|
3
|
+
import { type CodexSessionConfig } from './thread-open.js';
|
|
53
4
|
/**
|
|
54
5
|
* One app-server connection holding one thread. Server requests during `startTurn()` become
|
|
55
|
-
* `request` deltas answered by `respond
|
|
6
|
+
* `request` deltas answered by `respond` (and also reach `onServerRequest` when
|
|
7
|
+
* `serverRequestDelivery` is `'all'`); external/TUI requests route through `onServerRequest`
|
|
56
8
|
* when configured, and unknown methods are refused `-32601`.
|
|
57
9
|
*/
|
|
58
10
|
export declare function openCodexSession(config: CodexSessionConfig, input: CodexOpenInput): Promise<CodexSession>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/session.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/session.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAE5B,MAAM,kBAAkB,CAAC;AAgB1B,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,eAAe,CAAC;AAEvB;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,YAAY,CAAC,CA2KvB;AAED,8GAA8G;AAC9G,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,sBAAsB,CAAC,CAmFjC"}
|
|
@@ -2,22 +2,24 @@ import type { ExecutorDriverCapabilities } from '../hello.js';
|
|
|
2
2
|
import { type ExecutorProfileConfig } from '../profile.js';
|
|
3
3
|
import type { ExecutorStartupPhase } from '../vocabulary.js';
|
|
4
4
|
import { type CodexControlClient } from './control-client.js';
|
|
5
|
-
import type {
|
|
6
|
-
import type { CodexSession } from './session-controls.js';
|
|
5
|
+
import type { CodexSession } from './session-types.js';
|
|
7
6
|
import { type CodexSharedServerThreadInput } from './shared-thread.js';
|
|
7
|
+
import { type CodexSessionConfig } from './thread-open.js';
|
|
8
8
|
/** Input to {@link CodexDriver.openSharedServer} for a headless multi-thread `codex app-server`. */
|
|
9
9
|
export interface CodexSharedServerOpenInput {
|
|
10
10
|
readonly profile: ExecutorProfileConfig;
|
|
11
11
|
readonly cwd: string;
|
|
12
12
|
/** Maximum concurrent open threads multiplexed on this shared server (`1..256`). Default `32`. */
|
|
13
|
-
readonly maxThreads?: number;
|
|
13
|
+
readonly maxThreads?: number | undefined;
|
|
14
14
|
/** Optional observer invoked with startup phases (`spawning`, `initializing`) during server startup. */
|
|
15
|
-
readonly onStartupPhase?: (phase: ExecutorStartupPhase) => void;
|
|
16
|
-
readonly signal?: AbortSignal;
|
|
15
|
+
readonly onStartupPhase?: ((phase: ExecutorStartupPhase) => void) | undefined;
|
|
16
|
+
readonly signal?: AbortSignal | undefined;
|
|
17
17
|
}
|
|
18
18
|
/** Shared headless `codex app-server` multiplexing up to `maxThreads` independent {@link CodexSession}s. */
|
|
19
19
|
export interface CodexSharedServer extends CodexControlClient {
|
|
20
20
|
readonly providerPid: number | undefined;
|
|
21
|
+
/** Server-reported `userAgent` from the `initialize` response, or `undefined` when omitted. */
|
|
22
|
+
readonly userAgent: string | undefined;
|
|
21
23
|
readonly maxThreads: number;
|
|
22
24
|
readonly activeThreadCount: number;
|
|
23
25
|
readonly capabilities: ExecutorDriverCapabilities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-server.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/shared-server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared-server.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/shared-server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,KAAK,qBAAqB,EAAiB,MAAM,YAAY,CAAC;AAEvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,kBAAkB,CAAC;AAIrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EACL,KAAK,4BAA4B,EAIlC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,kBAAkB,EAA2B,MAAM,eAAe,CAAC;AAKjF,oGAAoG;AACpG,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,kGAAkG;IAClG,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,wGAAwG;IACxG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CAC3C;AAED,4GAA4G;AAC5G,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,+FAA+F;IAC/F,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAClD,UAAU,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACvE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAwBD,qGAAqG;AACrG,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,kBAAkB,EAC1B,gBAAgB,EAAE,0BAA0B,EAC5C,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,iBAAiB,CAAC,CA8I5B"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import type { JsonRpcPeer } from '../json-rpc-peer.js';
|
|
2
2
|
import type { ExecutorProfileConfig } from '../profile.js';
|
|
3
3
|
import type { ExecutorStartupPhase } from '../vocabulary.js';
|
|
4
|
-
import { type CodexControlClient } from './control-client.js';
|
|
5
4
|
import { createCodexHandlers } from './handlers.js';
|
|
6
5
|
import { type CodexTurnSlot, type PendingExternalCodexRequest } from './request-answers.js';
|
|
7
|
-
import {
|
|
8
|
-
import { type
|
|
6
|
+
import type { CodexOpenForkOptions, CodexSession } from './session-types.js';
|
|
7
|
+
import { type CodexSessionConfig } from './thread-open.js';
|
|
9
8
|
/** Input to {@link CodexSharedServer.openThread} for opening one thread over a shared server. */
|
|
10
9
|
export interface CodexSharedServerThreadInput {
|
|
11
10
|
readonly cwd: string;
|
|
12
11
|
/** Resume this native thread via `thread/resume` (mutually exclusive with `forkFrom`). */
|
|
13
|
-
readonly nativeThreadId?: string;
|
|
12
|
+
readonly nativeThreadId?: string | undefined;
|
|
14
13
|
/** Open the thread by forking an existing thread via `thread/fork` (mutually exclusive with `nativeThreadId`). */
|
|
15
|
-
readonly forkFrom?: CodexOpenForkOptions;
|
|
14
|
+
readonly forkFrom?: CodexOpenForkOptions | undefined;
|
|
16
15
|
/** Optional observer invoked with startup phases (`verifying`) during thread open. */
|
|
17
|
-
readonly onStartupPhase?: (phase: ExecutorStartupPhase) => void;
|
|
18
|
-
readonly signal?: AbortSignal;
|
|
16
|
+
readonly onStartupPhase?: ((phase: ExecutorStartupPhase) => void) | undefined;
|
|
17
|
+
readonly signal?: AbortSignal | undefined;
|
|
19
18
|
}
|
|
20
19
|
export interface SharedThreadSlot {
|
|
21
20
|
readonly threadId: string;
|
|
@@ -32,8 +31,9 @@ export interface SharedServerState {
|
|
|
32
31
|
readonly profile: ExecutorProfileConfig;
|
|
33
32
|
readonly peer: JsonRpcPeer;
|
|
34
33
|
readonly providerPid: number | undefined;
|
|
34
|
+
readonly userAgent: string | undefined;
|
|
35
35
|
readonly maxThreads: number;
|
|
36
|
-
readonly
|
|
36
|
+
readonly onBeforeInterruptTurn: (threadId: string, turnId: string) => void;
|
|
37
37
|
readonly serverSignal: AbortSignal;
|
|
38
38
|
readonly threads: Map<string, SharedThreadSlot>;
|
|
39
39
|
readonly openingNativeThreadIds: Set<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-thread.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/shared-thread.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"shared-thread.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/shared-thread.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eA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C,OAAO,EAAE,qBAAqB,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAChD,QAAQ,CAAC,sBAAsB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,eAAe,EAAE,MAAM,OAAO,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,MAAM,KAAK,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACxC;AAgHD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,iBAAiB,EACxB,WAAW,EAAE,4BAA4B,GACxC,OAAO,CAAC,YAAY,CAAC,CAuKvB"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import type { JsonRpcValue } from '../json-rpc-peer.js';
|
|
2
|
-
|
|
2
|
+
import { type CodexThread, type CodexThreadSourceKind } from './protocol.js';
|
|
3
|
+
import { type CodexLoadedThreadsPage, type CodexThreadMetadataUpdateResponse, type CodexThreadsPage, type CodexThreadUnarchiveResponse, type CodexThreadUnsubscribeResponse } from './responses.js';
|
|
4
|
+
/** Per-call timeout and cancellation options accepted by {@link CodexControlClient} and {@link CodexSession} RPC methods. */
|
|
5
|
+
export interface CodexRpcCallOptions {
|
|
6
|
+
/** Override the JSON-RPC request timeout in milliseconds for this call only. */
|
|
7
|
+
readonly timeoutMs?: number | undefined;
|
|
8
|
+
/** Cancel only this RPC call when aborted, leaving the underlying connection open. */
|
|
9
|
+
readonly signal?: AbortSignal | undefined;
|
|
10
|
+
}
|
|
11
|
+
/** Eagerly validate per-call RPC timeout and abort state before doing async pre-work or side effects. */
|
|
12
|
+
export declare function validateCodexRpcCallOptions(options: CodexRpcCallOptions | undefined): void;
|
|
13
|
+
/** Thread identifier target shared by single-thread Codex RPCs (`thread/unsubscribe`, `thread/archive`, `thread/unarchive`, `thread/compact/start`). */
|
|
3
14
|
export interface CodexThreadIdParams {
|
|
4
15
|
/** Thread identifier to target. */
|
|
5
16
|
readonly threadId: string;
|
|
6
17
|
}
|
|
18
|
+
/** Parameters for Codex `turn/interrupt`. */
|
|
19
|
+
export interface CodexInterruptTurnParams {
|
|
20
|
+
/** Thread identifier whose active turn will be interrupted. */
|
|
21
|
+
readonly threadId: string;
|
|
22
|
+
/** Turn identifier to interrupt (including external/TUI or reconnected turns). */
|
|
23
|
+
readonly turnId: string;
|
|
24
|
+
}
|
|
7
25
|
/** Parameters for Codex `thread/revert`. */
|
|
8
26
|
export interface CodexRevertThreadParams {
|
|
9
27
|
/** Thread identifier whose durable history will be reverted. */
|
|
@@ -14,7 +32,7 @@ export interface CodexRevertThreadParams {
|
|
|
14
32
|
/** Result returned by Codex `thread/revert`. */
|
|
15
33
|
export interface CodexRevertThreadResult {
|
|
16
34
|
/** Updated loaded thread metadata (`turns` is empty; hydrate via `thread/turns/list`). */
|
|
17
|
-
readonly thread:
|
|
35
|
+
readonly thread: CodexThread;
|
|
18
36
|
/** Opaque cursor for hydrating retained turns backwards, or `null` when absent. */
|
|
19
37
|
readonly turnsBackwardsCursor: string | null;
|
|
20
38
|
/** Opaque cursor for hydrating retained items backwards, or `null` when absent. */
|
|
@@ -29,63 +47,61 @@ export interface CodexInjectItemsParams {
|
|
|
29
47
|
}
|
|
30
48
|
/** Sort key accepted by Codex `thread/list`. */
|
|
31
49
|
export type CodexThreadSortKey = 'created_at' | 'updated_at' | 'recency_at' | 'section_position';
|
|
32
|
-
/** Thread source kind filter accepted by Codex `thread/list`. */
|
|
33
|
-
export type CodexThreadSourceKind = 'cli' | 'vscode' | 'exec' | 'appServer' | 'subAgent' | 'subAgentReview' | 'subAgentCompact' | 'subAgentThreadSpawn' | 'subAgentOther' | 'unknown';
|
|
34
50
|
/** Parameters for Codex `thread/list`. */
|
|
35
51
|
export interface CodexListThreadsParams {
|
|
36
52
|
/** Opaque pagination cursor returned by a previous call. */
|
|
37
|
-
readonly cursor?: string | null;
|
|
53
|
+
readonly cursor?: string | null | undefined;
|
|
38
54
|
/** Optional page size (`uint32`). */
|
|
39
|
-
readonly limit?: number | null;
|
|
55
|
+
readonly limit?: number | null | undefined;
|
|
40
56
|
/** Optional sort key (`created_at`, `updated_at`, `recency_at`, or `section_position`). */
|
|
41
|
-
readonly sortKey?: CodexThreadSortKey | null;
|
|
57
|
+
readonly sortKey?: CodexThreadSortKey | null | undefined;
|
|
42
58
|
/** Optional sort direction (`asc` or `desc`). */
|
|
43
|
-
readonly sortDirection?: 'asc' | 'desc' | null;
|
|
59
|
+
readonly sortDirection?: 'asc' | 'desc' | null | undefined;
|
|
44
60
|
/** Optional provider allowlist filter. */
|
|
45
|
-
readonly modelProviders?: readonly string[] | null;
|
|
61
|
+
readonly modelProviders?: readonly string[] | null | undefined;
|
|
46
62
|
/** Optional source kind filter. */
|
|
47
|
-
readonly sourceKinds?: readonly CodexThreadSourceKind[] | null;
|
|
63
|
+
readonly sourceKinds?: readonly CodexThreadSourceKind[] | null | undefined;
|
|
48
64
|
/** Optional archived filter (`true` for archived only; `false`/`null` for non-archived). */
|
|
49
|
-
readonly archived?: boolean | null;
|
|
65
|
+
readonly archived?: boolean | null | undefined;
|
|
50
66
|
/** Optional exact working directory filter (one path or list of paths). */
|
|
51
|
-
readonly cwd?: string | readonly string[] | null;
|
|
67
|
+
readonly cwd?: string | readonly string[] | null | undefined;
|
|
52
68
|
/** Optional substring filter for the extracted thread title. */
|
|
53
|
-
readonly searchTerm?: string | null;
|
|
69
|
+
readonly searchTerm?: string | null | undefined;
|
|
54
70
|
/** Section filter: omit for all sections, `null` for unsectioned, or a section id string. */
|
|
55
|
-
readonly sectionId?: string | null;
|
|
71
|
+
readonly sectionId?: string | null | undefined;
|
|
56
72
|
/** Restrict results to up to 100 thread IDs before pagination. */
|
|
57
|
-
readonly includedThreadIds?: readonly string[] | null;
|
|
73
|
+
readonly includedThreadIds?: readonly string[] | null | undefined;
|
|
58
74
|
/** Exclude up to 100 thread IDs before applying the page limit. */
|
|
59
|
-
readonly excludedThreadIds?: readonly string[] | null;
|
|
75
|
+
readonly excludedThreadIds?: readonly string[] | null | undefined;
|
|
60
76
|
/** Optional originator allowlist (hosted backends only). */
|
|
61
|
-
readonly originators?: readonly string[] | null;
|
|
77
|
+
readonly originators?: readonly string[] | null | undefined;
|
|
62
78
|
/** Show local history visible to the current ChatGPT account. */
|
|
63
|
-
readonly currentAccountOnly?: boolean;
|
|
79
|
+
readonly currentAccountOnly?: boolean | undefined;
|
|
64
80
|
/** Return indexed local state-DB metadata without scanning JSONL rollouts. */
|
|
65
|
-
readonly useStateDbOnly?: boolean;
|
|
81
|
+
readonly useStateDbOnly?: boolean | undefined;
|
|
66
82
|
}
|
|
67
83
|
/** Parameters for Codex `thread/loaded/list`. */
|
|
68
84
|
export interface CodexListLoadedThreadsParams {
|
|
69
85
|
/** Opaque pagination cursor returned by a previous call. */
|
|
70
|
-
readonly cursor?: string | null;
|
|
86
|
+
readonly cursor?: string | null | undefined;
|
|
71
87
|
/** Optional page size (`uint32`). */
|
|
72
|
-
readonly limit?: number | null;
|
|
88
|
+
readonly limit?: number | null | undefined;
|
|
73
89
|
}
|
|
74
90
|
/** Git metadata patch accepted by Codex `thread/metadata/update`. */
|
|
75
91
|
export interface CodexThreadGitInfoUpdate {
|
|
76
92
|
/** Omit to leave unchanged, `null` to clear, or a non-empty string to replace. */
|
|
77
|
-
readonly branch?: string | null;
|
|
93
|
+
readonly branch?: string | null | undefined;
|
|
78
94
|
/** Omit to leave unchanged, `null` to clear, or a non-empty string to replace. */
|
|
79
|
-
readonly originUrl?: string | null;
|
|
95
|
+
readonly originUrl?: string | null | undefined;
|
|
80
96
|
/** Omit to leave unchanged, `null` to clear, or a non-empty string to replace. */
|
|
81
|
-
readonly sha?: string | null;
|
|
97
|
+
readonly sha?: string | null | undefined;
|
|
82
98
|
}
|
|
83
99
|
/** Parameters for Codex `thread/metadata/update`. */
|
|
84
100
|
export interface CodexUpdateThreadMetadataParams {
|
|
85
101
|
/** Thread identifier whose stored metadata will be patched. */
|
|
86
102
|
readonly threadId: string;
|
|
87
103
|
/** Patch stored Git metadata for the thread. */
|
|
88
|
-
readonly gitInfo?: CodexThreadGitInfoUpdate | null;
|
|
104
|
+
readonly gitInfo?: CodexThreadGitInfoUpdate | null | undefined;
|
|
89
105
|
}
|
|
90
106
|
/** Parameters for Codex `thread/name/set`. */
|
|
91
107
|
export interface CodexSetThreadNameParams {
|
|
@@ -97,23 +113,27 @@ export interface CodexSetThreadNameParams {
|
|
|
97
113
|
/** Thread lifecycle, history, and catalog RPCs verified in `codex-cli 0.171.0`. */
|
|
98
114
|
export interface CodexThreadControlMethods {
|
|
99
115
|
/** Revert a thread's durable history to before `beforeTurnId` (`thread/revert`). */
|
|
100
|
-
revertThread(params: CodexRevertThreadParams): Promise<CodexRevertThreadResult>;
|
|
116
|
+
revertThread(params: CodexRevertThreadParams, options?: CodexRpcCallOptions): Promise<CodexRevertThreadResult>;
|
|
101
117
|
/** Append raw Responses API items to a thread's model-visible history (`thread/inject_items`). */
|
|
102
|
-
injectItems(params: CodexInjectItemsParams): Promise<
|
|
118
|
+
injectItems(params: CodexInjectItemsParams, options?: CodexRpcCallOptions): Promise<void>;
|
|
103
119
|
/** Unsubscribe this connection from a thread (`thread/unsubscribe`). */
|
|
104
|
-
unsubscribeThread(params: CodexThreadIdParams): Promise<
|
|
120
|
+
unsubscribeThread(params: CodexThreadIdParams, options?: CodexRpcCallOptions): Promise<CodexThreadUnsubscribeResponse>;
|
|
105
121
|
/** List threads with pagination and bounded filters (`thread/list`). */
|
|
106
|
-
listThreads(params?: CodexListThreadsParams): Promise<
|
|
122
|
+
listThreads(params?: CodexListThreadsParams, options?: CodexRpcCallOptions): Promise<CodexThreadsPage>;
|
|
107
123
|
/** List thread identifiers currently loaded in memory (`thread/loaded/list`). */
|
|
108
|
-
listLoadedThreads(params?: CodexListLoadedThreadsParams): Promise<
|
|
124
|
+
listLoadedThreads(params?: CodexListLoadedThreadsParams, options?: CodexRpcCallOptions): Promise<CodexLoadedThreadsPage>;
|
|
109
125
|
/** Archive a thread (`thread/archive`). */
|
|
110
|
-
archiveThread(params: CodexThreadIdParams): Promise<
|
|
126
|
+
archiveThread(params: CodexThreadIdParams, options?: CodexRpcCallOptions): Promise<void>;
|
|
111
127
|
/** Unarchive a thread (`thread/unarchive`). */
|
|
112
|
-
unarchiveThread(params: CodexThreadIdParams): Promise<
|
|
128
|
+
unarchiveThread(params: CodexThreadIdParams, options?: CodexRpcCallOptions): Promise<CodexThreadUnarchiveResponse>;
|
|
113
129
|
/** Patch stored metadata (such as Git info) for a thread (`thread/metadata/update`). */
|
|
114
|
-
updateThreadMetadata(params: CodexUpdateThreadMetadataParams): Promise<
|
|
130
|
+
updateThreadMetadata(params: CodexUpdateThreadMetadataParams, options?: CodexRpcCallOptions): Promise<CodexThreadMetadataUpdateResponse>;
|
|
115
131
|
/** Set a thread's display name (`thread/name/set`). */
|
|
116
|
-
setThreadName(params: CodexSetThreadNameParams): Promise<
|
|
132
|
+
setThreadName(params: CodexSetThreadNameParams, options?: CodexRpcCallOptions): Promise<void>;
|
|
133
|
+
/** Interrupt a running turn on a thread (`turn/interrupt`), including external/TUI or reconnected turns. */
|
|
134
|
+
interruptTurn(params: CodexInterruptTurnParams, options?: CodexRpcCallOptions): Promise<void>;
|
|
135
|
+
/** Request context compaction for a thread (`thread/compact/start`). */
|
|
136
|
+
compactThread(params: CodexThreadIdParams, options?: CodexRpcCallOptions): Promise<void>;
|
|
117
137
|
}
|
|
118
138
|
/** Validate a required non-empty thread identifier. */
|
|
119
139
|
export declare function assertNonEmptyThreadId(threadId: unknown, caller: string): string;
|
|
@@ -121,8 +141,13 @@ export declare function assertNonEmptyThreadId(threadId: unknown, caller: string
|
|
|
121
141
|
export declare function assertRequiredNonEmptyString(value: unknown, field: string, caller: string): string;
|
|
122
142
|
/** Validate an optional non-empty string parameter. */
|
|
123
143
|
export declare function assertOptionalNonEmptyString(value: string | undefined, field: string, caller: string): void;
|
|
144
|
+
/** Validate an optional non-empty string parameter without NUL bytes. */
|
|
145
|
+
export declare function assertOptionalNonEmptyNoNulString(value: string | undefined, field: string, caller: string): void;
|
|
124
146
|
/** Validate an optional or nullable `uint32` page limit. */
|
|
125
147
|
export declare function assertOptionalLimit(limit: number | null | undefined, caller: string): void;
|
|
126
|
-
/** Build the
|
|
127
|
-
export declare function createCodexThreadControlMethods(call: (method: string, params?: Record<string, JsonRpcValue
|
|
148
|
+
/** Build the verified `0.171.0` thread lifecycle, revert, injection, interrupt, compaction, and catalog RPC methods. */
|
|
149
|
+
export declare function createCodexThreadControlMethods(call: (method: string, params?: Record<string, JsonRpcValue>, options?: CodexRpcCallOptions) => Promise<JsonRpcValue>, options?: {
|
|
150
|
+
readonly ensureAlive?: () => void;
|
|
151
|
+
readonly onBeforeInterruptTurn?: (threadId: string, turnId: string) => void;
|
|
152
|
+
}): CodexThreadControlMethods;
|
|
128
153
|
//# sourceMappingURL=thread-controls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-controls.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/thread-controls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thread-controls.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/thread-controls.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAk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