stitchkit 0.130.0 → 0.130.1
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 +6 -0
- package/dist/agent-executor/codex/connect.d.ts +3 -1
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-client.d.ts +44 -6
- package/dist/agent-executor/codex/control-client.d.ts.map +1 -1
- package/dist/agent-executor/codex/driver.d.ts +15 -5
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/handlers.d.ts +7 -2
- package/dist/agent-executor/codex/handlers.d.ts.map +1 -1
- package/dist/agent-executor/codex/protocol.d.ts +4 -0
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-controls.d.ts +36 -13
- package/dist/agent-executor/codex/session-controls.d.ts.map +1 -1
- 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 +3 -1
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-thread.d.ts +3 -3
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-controls.d.ts +19 -3
- package/dist/agent-executor/codex/thread-controls.d.ts.map +1 -1
- 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 +23 -6
- package/dist/agent-executor/codex/turn-input.d.ts.map +1 -1
- package/dist/agent-runtime/branch-observations.d.ts +18 -18
- 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/codex.d.ts +5 -4
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +1475 -1222
- package/llms/agent-executor-codex.txt +8 -8
- package/llms-full.txt +8 -8
- package/llms.txt +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
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 { type CodexSessionConfig } from './session.js';
|
|
8
6
|
import { type CodexOpenForkOptions, type CodexSession } from './session-controls.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;
|
|
@@ -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,KA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-thread Codex RPCs (`thread/unsubscribe`, `thread/archive`, `thread/unarchive`). */
|
|
2
|
+
/** Thread identifier target shared by single-thread Codex RPCs (`thread/unsubscribe`, `thread/archive`, `thread/unarchive`, `thread/compact/start`). */
|
|
3
3
|
export interface CodexThreadIdParams {
|
|
4
4
|
/** Thread identifier to target. */
|
|
5
5
|
readonly threadId: string;
|
|
6
6
|
}
|
|
7
|
+
/** Parameters for Codex `turn/interrupt`. */
|
|
8
|
+
export interface CodexInterruptTurnParams {
|
|
9
|
+
/** Thread identifier whose active turn will be interrupted. */
|
|
10
|
+
readonly threadId: string;
|
|
11
|
+
/** Turn identifier to interrupt (including external/TUI or reconnected turns). */
|
|
12
|
+
readonly turnId: string;
|
|
13
|
+
}
|
|
7
14
|
/** Parameters for Codex `thread/revert`. */
|
|
8
15
|
export interface CodexRevertThreadParams {
|
|
9
16
|
/** Thread identifier whose durable history will be reverted. */
|
|
@@ -114,6 +121,10 @@ export interface CodexThreadControlMethods {
|
|
|
114
121
|
updateThreadMetadata(params: CodexUpdateThreadMetadataParams): Promise<JsonRpcValue>;
|
|
115
122
|
/** Set a thread's display name (`thread/name/set`). */
|
|
116
123
|
setThreadName(params: CodexSetThreadNameParams): Promise<JsonRpcValue>;
|
|
124
|
+
/** Interrupt a running turn on a thread (`turn/interrupt`), including external/TUI or reconnected turns. */
|
|
125
|
+
interruptTurn(params: CodexInterruptTurnParams): Promise<void>;
|
|
126
|
+
/** Request context compaction for a thread (`thread/compact/start`). */
|
|
127
|
+
compactThread(params: CodexThreadIdParams): Promise<void>;
|
|
117
128
|
}
|
|
118
129
|
/** Validate a required non-empty thread identifier. */
|
|
119
130
|
export declare function assertNonEmptyThreadId(threadId: unknown, caller: string): string;
|
|
@@ -121,8 +132,13 @@ export declare function assertNonEmptyThreadId(threadId: unknown, caller: string
|
|
|
121
132
|
export declare function assertRequiredNonEmptyString(value: unknown, field: string, caller: string): string;
|
|
122
133
|
/** Validate an optional non-empty string parameter. */
|
|
123
134
|
export declare function assertOptionalNonEmptyString(value: string | undefined, field: string, caller: string): void;
|
|
135
|
+
/** Validate an optional non-empty string parameter without NUL bytes. */
|
|
136
|
+
export declare function assertOptionalNonEmptyNoNulString(value: string | undefined, field: string, caller: string): void;
|
|
124
137
|
/** Validate an optional or nullable `uint32` page limit. */
|
|
125
138
|
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>) => Promise<JsonRpcValue
|
|
139
|
+
/** Build the verified `0.171.0` thread lifecycle, revert, injection, interrupt, compaction, and catalog RPC methods. */
|
|
140
|
+
export declare function createCodexThreadControlMethods(call: (method: string, params?: Record<string, JsonRpcValue>) => Promise<JsonRpcValue>, options?: {
|
|
141
|
+
readonly ensureAlive?: () => void;
|
|
142
|
+
readonly onBeforeInterruptTurn?: (threadId: string, turnId: string) => void;
|
|
143
|
+
}): CodexThreadControlMethods;
|
|
128
144
|
//# 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":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAOrD,
|
|
1
|
+
{"version":3,"file":"thread-controls.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/thread-controls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAOrD,wJAAwJ;AACxJ,MAAM,WAAW,mBAAmB;IAClC,mCAAmC;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,QAAQ,CAAC,M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AC;IAClC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE,GACL,yBAAyB,CA+F3B"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { PlanLimits } from '../hello.js';
|
|
2
|
+
import { type DriverImageOptions } from '../image-input.js';
|
|
3
|
+
import type { JsonRpcPeer, JsonRpcValue } from '../json-rpc-peer.js';
|
|
4
|
+
import type { CodexConnectConfig } from './connect.js';
|
|
5
|
+
import type { CodexControlClient } from './control-client.js';
|
|
6
|
+
import type { CodexNotificationEvent, CodexServerRequestEvent } from './handlers.js';
|
|
7
|
+
import { type CodexThreadContext } from './protocol.js';
|
|
8
|
+
import { type CodexTurnSlot } from './request-answers.js';
|
|
9
|
+
import { type CodexOpenForkOptions, type CodexOpenInput, type CodexThreadPolicyOverrides, type CodexTurn, type CodexTurnInput } from './session-controls.js';
|
|
10
|
+
/** Parameters for Codex `thread/resume`. */
|
|
11
|
+
export interface CodexResumeThreadParams extends CodexThreadPolicyOverrides {
|
|
12
|
+
/** Thread identifier to resume. */
|
|
13
|
+
readonly threadId: string;
|
|
14
|
+
/** Optional working directory override forwarded on `thread/resume`. */
|
|
15
|
+
readonly cwd?: string;
|
|
16
|
+
/** Defaults to `true` when omitted so large threads do not inline full history into the resume reply. */
|
|
17
|
+
readonly excludeTurns?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface CodexSessionConfig extends DriverImageOptions, CodexConnectConfig {
|
|
20
|
+
readonly model?: string;
|
|
21
|
+
readonly modelProvider?: string;
|
|
22
|
+
readonly approvalPolicy: CodexThreadPolicyOverrides['approvalPolicy'];
|
|
23
|
+
readonly sandbox: CodexThreadPolicyOverrides['sandbox'];
|
|
24
|
+
readonly developerInstructions?: string;
|
|
25
|
+
readonly runtimeWorkspaceRoots?: readonly string[];
|
|
26
|
+
readonly config?: Readonly<Record<string, JsonRpcValue>>;
|
|
27
|
+
readonly prepareThread?: (context: {
|
|
28
|
+
readonly controls: CodexControlClient;
|
|
29
|
+
readonly cwd: string;
|
|
30
|
+
readonly nativeThreadId?: string;
|
|
31
|
+
readonly forkFrom?: CodexOpenForkOptions;
|
|
32
|
+
}) => Promise<CodexThreadPolicyOverrides | undefined> | CodexThreadPolicyOverrides | undefined;
|
|
33
|
+
readonly verifyThread?: (context: {
|
|
34
|
+
readonly nativeThreadId: string;
|
|
35
|
+
readonly threadContext: CodexThreadContext;
|
|
36
|
+
readonly controls: CodexControlClient;
|
|
37
|
+
}) => Promise<void> | void;
|
|
38
|
+
readonly onNotification?: (event: CodexNotificationEvent) => void;
|
|
39
|
+
readonly onServerRequest?: (event: CodexServerRequestEvent) => void;
|
|
40
|
+
readonly serverRequestDelivery?: 'external-only' | 'all';
|
|
41
|
+
readonly onDisconnect?: (error: Error) => void;
|
|
42
|
+
readonly limits: Map<string, PlanLimits>;
|
|
43
|
+
}
|
|
44
|
+
/** Mark and drain a local driver-started turn when `turn/interrupt` targets its exact `codexTurnId`. */
|
|
45
|
+
export declare function interruptLocalCodexTurn(turn: CodexTurnSlot | undefined, turnId: string): void;
|
|
46
|
+
/** Validate and normalize JSON-RPC params for `thread/resume` (defaults `excludeTurns` to `true`). */
|
|
47
|
+
export declare function buildCodexResumeThreadParams(params: CodexResumeThreadParams): Record<string, JsonRpcValue>;
|
|
48
|
+
export declare function createCodexStartTurn(input: {
|
|
49
|
+
config: CodexSessionConfig;
|
|
50
|
+
peer: JsonRpcPeer;
|
|
51
|
+
threadId: string;
|
|
52
|
+
activeModelProvider: string | undefined;
|
|
53
|
+
signal: AbortSignal;
|
|
54
|
+
ensureAlive(): void;
|
|
55
|
+
getTurn(): CodexTurnSlot | undefined;
|
|
56
|
+
setTurn(turn: CodexTurnSlot | undefined): void;
|
|
57
|
+
}): (turnInput: CodexTurnInput) => Promise<CodexTurn>;
|
|
58
|
+
export declare function validateCodexOpenInput(input: CodexOpenInput): void;
|
|
59
|
+
export declare function mergeOpenThreadPolicy(config: CodexSessionConfig, forkFrom: CodexOpenForkOptions | undefined, dynamicOverrides: CodexThreadPolicyOverrides | undefined): Record<string, JsonRpcValue>;
|
|
60
|
+
/** Dispatch `thread/fork`, `thread/resume`, or `thread/start` with merged policy overrides. */
|
|
61
|
+
export declare function openCodexThreadRpc(peer: JsonRpcPeer, config: CodexSessionConfig, input: {
|
|
62
|
+
readonly cwd: string;
|
|
63
|
+
readonly nativeThreadId?: string;
|
|
64
|
+
readonly forkFrom?: CodexOpenForkOptions;
|
|
65
|
+
}, dynamicOverrides: CodexThreadPolicyOverrides | undefined): Promise<JsonRpcValue>;
|
|
66
|
+
//# sourceMappingURL=thread-open.d.ts.map
|
|
@@ -0,0 +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;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAClF,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,SAAS,EACd,KAAK,cAAc,EAIpB,MAAM,oBAAoB,CAAC;AAI5B,4CAA4C;AAC5C,MAAM,WAAW,uBAAwB,SAAQ,0B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AG,SAAS,EAC1C,gBAAgB,EAAE,0BAA0B,GAAG,SAAS,GACvD,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAsC9B;AAED,+FAA+F;AAC/F,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE;IACL,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CAC1C,EACD,gBAAgB,EAAE,0BAA0B,GAAG,SAAS,GACvD,OAAO,CAAC,YAAY,CAAC,CA0BvB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import type { JsonRpcValue } from '../json-rpc-peer.js';
|
|
4
|
+
import type { JsonRpcPeer, JsonRpcValue } from '../json-rpc-peer.js';
|
|
5
5
|
/** Codex-native `skill` user input item forwarded verbatim in `turn/start` and `turn/steer`. */
|
|
6
6
|
export declare const CodexSkillInputSchema: z.ZodObject<{
|
|
7
7
|
type: z.ZodLiteral<"skill">;
|
|
@@ -10,13 +10,20 @@ export declare const CodexSkillInputSchema: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strict>;
|
|
11
11
|
/** Codex-native `skill` input item inferred from {@link CodexSkillInputSchema}. */
|
|
12
12
|
export type CodexSkillInput = z.infer<typeof CodexSkillInputSchema>;
|
|
13
|
-
/**
|
|
14
|
-
export
|
|
13
|
+
/** Codex-native `localImage` user input item referencing a host-authorized local image path. */
|
|
14
|
+
export declare const CodexLocalImageInputSchema: z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<"localImage">;
|
|
16
|
+
path: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
/** Codex-native `localImage` input item inferred from {@link CodexLocalImageInputSchema}. */
|
|
19
|
+
export type CodexLocalImageInput = z.infer<typeof CodexLocalImageInputSchema>;
|
|
20
|
+
/** Ordered input element accepted by {@link CodexSession.startTurn}, {@link CodexSession.steerTurn}, and {@link CodexControlClient.steerTurn}. */
|
|
21
|
+
export type CodexTurnInputPart = AgentMessagePart | CodexSkillInput | CodexLocalImageInput;
|
|
15
22
|
/** Validated, host-resolved Codex turn part ready for wire serialization. */
|
|
16
|
-
export type InlinedCodexPart = InlinedPart | CodexSkillInput;
|
|
23
|
+
export type InlinedCodexPart = InlinedPart | CodexSkillInput | CodexLocalImageInput;
|
|
17
24
|
/**
|
|
18
25
|
* Validate every Codex turn part synchronously before the first `resolveFile` call, then resolve
|
|
19
|
-
* image attachments in original order alongside text and `skill` items.
|
|
26
|
+
* image attachments in original order alongside text, `localImage`, and `skill` items.
|
|
20
27
|
*/
|
|
21
28
|
export declare function inlineCodexParts(parts: readonly CodexTurnInputPart[], options: DriverImageOptions & {
|
|
22
29
|
readonly driverLabel: string;
|
|
@@ -24,7 +31,17 @@ export declare function inlineCodexParts(parts: readonly CodexTurnInputPart[], o
|
|
|
24
31
|
}): Promise<InlinedCodexPart[]>;
|
|
25
32
|
/**
|
|
26
33
|
* Encode validated Codex turn parts into app-server `UserInput[]` items: plain text joins into
|
|
27
|
-
* one text item (preserving wire compatibility), while inputs with images or skills
|
|
34
|
+
* one text item (preserving wire compatibility), while inputs with images, `localImage`, or skills
|
|
35
|
+
* keep exact order.
|
|
28
36
|
*/
|
|
29
37
|
export declare function codexTurnInput(parts: readonly InlinedCodexPart[]): JsonRpcValue[];
|
|
38
|
+
/** Send one validated `turn/steer` JSON-RPC request and parse its acknowledged `turnId`. */
|
|
39
|
+
export declare function sendCodexTurnSteer(peer: JsonRpcPeer, params: {
|
|
40
|
+
readonly threadId: string;
|
|
41
|
+
readonly expectedTurnId: string;
|
|
42
|
+
readonly parts: readonly InlinedCodexPart[];
|
|
43
|
+
readonly clientId?: string;
|
|
44
|
+
}): Promise<{
|
|
45
|
+
readonly turnId: string;
|
|
46
|
+
}>;
|
|
30
47
|
//# 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":"
|
|
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;AAiBlE,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,CAAC;CAC/B,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,CAAC;CAC5B,GACA,OAAO,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAUtC"}
|
|
@@ -135,8 +135,22 @@ export declare function branchObservation(ids: BranchIdentities, kind: string, r
|
|
|
135
135
|
payloadOmitted?: "max-payload-bytes" | undefined;
|
|
136
136
|
payloadSha256: string;
|
|
137
137
|
} | {
|
|
138
|
-
|
|
138
|
+
effectName: string;
|
|
139
|
+
phase: "intent";
|
|
140
|
+
encoded?: string | undefined;
|
|
141
|
+
runId: string;
|
|
142
|
+
id?: string | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
effectName: string;
|
|
145
|
+
phase: "accepted";
|
|
139
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;
|
|
140
154
|
runId: string;
|
|
141
155
|
id?: string | undefined;
|
|
142
156
|
} | {
|
|
@@ -153,29 +167,15 @@ export declare function branchObservation(ids: BranchIdentities, kind: string, r
|
|
|
153
167
|
encoded?: string | undefined;
|
|
154
168
|
runId: string;
|
|
155
169
|
} | {
|
|
156
|
-
|
|
157
|
-
id: string;
|
|
170
|
+
stepName: string;
|
|
158
171
|
encoded: string;
|
|
159
172
|
runId: string;
|
|
160
|
-
} | {
|
|
161
|
-
effectName: string;
|
|
162
|
-
phase: "intent";
|
|
163
|
-
encoded?: string | undefined;
|
|
164
|
-
runId: string;
|
|
165
173
|
id?: string | undefined;
|
|
166
174
|
} | {
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
event: string;
|
|
176
|
+
id: string;
|
|
169
177
|
encoded: string;
|
|
170
|
-
via: "reconcile" | "run";
|
|
171
178
|
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,6 +124,16 @@ 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;
|
|
127
137
|
} | {
|
|
128
138
|
type: "tool-call";
|
|
129
139
|
callId: string;
|
|
@@ -140,16 +150,6 @@ export declare function parseRunRow(value: unknown): {
|
|
|
140
150
|
toolName: string;
|
|
141
151
|
outcome: "error" | "interrupted" | "success";
|
|
142
152
|
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,16 +141,6 @@ 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;
|
|
154
144
|
} | {
|
|
155
145
|
type: "tool-call";
|
|
156
146
|
callId: string;
|
|
@@ -167,6 +157,16 @@ export declare function fencingPhase(store: AgentRuntimeStore, conversationId: s
|
|
|
167
157
|
toolName: string;
|
|
168
158
|
outcome: "error" | "interrupted" | "success";
|
|
169
159
|
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,16 +321,6 @@ 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;
|
|
334
324
|
} | {
|
|
335
325
|
type: "tool-call";
|
|
336
326
|
callId: string;
|
|
@@ -347,6 +337,16 @@ export declare function fencingPhase(store: AgentRuntimeStore, conversationId: s
|
|
|
347
337
|
toolName: string;
|
|
348
338
|
outcome: "error" | "interrupted" | "success";
|
|
349
339
|
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,6 +16,16 @@ 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;
|
|
19
29
|
} | {
|
|
20
30
|
type: "tool-call";
|
|
21
31
|
callId: string;
|
|
@@ -32,16 +42,6 @@ export declare function userMessage(conversationId: string, id: string): {
|
|
|
32
42
|
toolName: string;
|
|
33
43
|
outcome: "error" | "interrupted" | "success";
|
|
34
44
|
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,16 +41,6 @@ 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;
|
|
54
44
|
} | {
|
|
55
45
|
type: "tool-call";
|
|
56
46
|
callId: string;
|
|
@@ -67,6 +57,16 @@ export declare function appliedSnapshot(result: AgentStoreMutationResult, operat
|
|
|
67
57
|
toolName: string;
|
|
68
58
|
outcome: "error" | "interrupted" | "success";
|
|
69
59
|
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;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
export type { CodexTransportConfig } from '../../agent-executor/codex/connect.js';
|
|
2
|
-
export type { CodexControlClient, CodexControlConnectInput, CodexControlConnection, CodexListItemsParams, CodexListTurnsParams, CodexReadThreadParams, CodexThreadItemsCursor, CodexThreadItemsDeferOutput, } from '../../agent-executor/codex/control-client.js';
|
|
2
|
+
export type { CodexControlClient, CodexControlConnectInput, CodexControlConnection, CodexControlSteerTurnParams, CodexListItemsParams, CodexListTurnsParams, CodexReadThreadParams, CodexThreadItemsCursor, CodexThreadItemsDeferOutput, } from '../../agent-executor/codex/control-client.js';
|
|
3
3
|
export { type CodexDriverConfig, createCodexDriver } from '../../agent-executor/codex/driver.js';
|
|
4
4
|
export type { CodexNotificationEvent, CodexServerRequestEvent, } from '../../agent-executor/codex/handlers.js';
|
|
5
5
|
export { codexPlanWindows } from '../../agent-executor/codex/limits.js';
|
|
6
6
|
export type { CodexApprovalPolicy, CodexCollaborationMode, CodexMcpElicitationMode, CodexSandboxMode, CodexThreadContext, } from '../../agent-executor/codex/protocol.js';
|
|
7
7
|
export type { CodexServerRequestMethod } from '../../agent-executor/codex/request-answers.js';
|
|
8
8
|
export { codexFakeScenarios } from '../../agent-executor/codex/scenarios.js';
|
|
9
|
-
export type { CodexDriver, CodexForkedThread, CodexForkThreadOptions, CodexOpenForkOptions, CodexOpenInput, CodexSession, CodexSteerTurnInput, CodexThreadPolicyOverrides, CodexTurnInput, } from '../../agent-executor/codex/session-controls.js';
|
|
9
|
+
export type { CodexDriver, CodexForkedThread, CodexForkThreadOptions, CodexOpenForkOptions, CodexOpenInput, CodexSession, CodexSteerTurnInput, CodexThreadPolicyOverrides, CodexTurn, CodexTurnInput, } from '../../agent-executor/codex/session-controls.js';
|
|
10
10
|
export type { CodexSharedServer, CodexSharedServerOpenInput, } from '../../agent-executor/codex/shared-server.js';
|
|
11
11
|
export type { CodexSharedServerThreadInput } from '../../agent-executor/codex/shared-thread.js';
|
|
12
|
-
export type { CodexInjectItemsParams, CodexListLoadedThreadsParams, CodexListThreadsParams, CodexRevertThreadParams, CodexRevertThreadResult, CodexSetThreadNameParams, CodexThreadGitInfoUpdate, CodexThreadIdParams, CodexThreadSortKey, CodexThreadSourceKind, CodexUpdateThreadMetadataParams, } from '../../agent-executor/codex/thread-controls.js';
|
|
13
|
-
export
|
|
12
|
+
export type { CodexInjectItemsParams, CodexInterruptTurnParams, CodexListLoadedThreadsParams, CodexListThreadsParams, CodexRevertThreadParams, CodexRevertThreadResult, CodexSetThreadNameParams, CodexThreadGitInfoUpdate, CodexThreadIdParams, CodexThreadSortKey, CodexThreadSourceKind, CodexUpdateThreadMetadataParams, } from '../../agent-executor/codex/thread-controls.js';
|
|
13
|
+
export type { CodexResumeThreadParams } from '../../agent-executor/codex/thread-open.js';
|
|
14
|
+
export { type CodexLocalImageInput, CodexLocalImageInputSchema, type CodexSkillInput, CodexSkillInputSchema, type CodexTurnInputPart, } from '../../agent-executor/codex/turn-input.js';
|
|
14
15
|
export { CodexUnixSocketError, type CodexUnixSocketErrorKind, } from '../../agent-executor/codex/unix-socket.js';
|
|
15
16
|
//# sourceMappingURL=codex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/agent-executor/codex.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,KAAK,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC9F,YAAY,EACV,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,cAAc,GACf,MAAM,6CAA6C,CAAC;AACrD,YAAY,EACV,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,0CAA0C,CAAC;AAClD,YAAY,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAC7F,YAAY,EACV,sBAAsB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,MAAM,wCAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/agent-executor/codex.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,KAAK,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC9F,YAAY,EACV,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EA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