@openclaw/codex 2026.8.2 → 2026.9.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/dist/api.js +3 -3
- package/dist/{attempt-client-cleanup-CpVfwctT.js → attempt-client-cleanup-DYHcRQAa.js} +6 -43
- package/dist/attempt-context-DmQUNWwT.js +634 -0
- package/dist/{binding-connection-CF7BmrDk.js → binding-connection-E6uDsPlx.js} +2 -2
- package/dist/{bounded-turn-DRC3hcjm.js → bounded-turn-wzJrwKKe.js} +8 -9
- package/dist/{capabilities-D6m_TdVy.js → capabilities-dIjNVCYH.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{command-formatters--UToCokS.js → command-formatters-CLHhEB1Q.js} +3 -3
- package/dist/{command-handlers-CLFx2Ypa.js → command-handlers-CTGb2csu.js} +54 -55
- package/dist/{compact-5xqW1oCh.js → compact-_t0HQrUS.js} +33 -25
- package/dist/{config-CcYL77O6.js → config-BhmfC1s6.js} +12 -8
- package/dist/{context-compaction-activity-BOeJf7yo.js → context-compaction-activity-CMla5FPJ.js} +4 -1
- package/dist/doctor-contract-api.js +31 -4
- package/dist/{dynamic-tools-BmeXjwNZ.js → dynamic-tools-BU9tmlYm.js} +448 -457
- package/dist/{effective-mcp-catalog-XXQKgK1U.js → effective-mcp-catalog-DzYBW4h1.js} +2 -2
- package/dist/{event-projector-assistant-message-C5-Ds8mA.js → event-projector-assistant-message-DHRFXKbS.js} +4 -4
- package/dist/{event-projector-usage-B2r5vhWH.js → event-projector-usage-C5mcrGjp.js} +9 -137
- package/dist/{harness-BgeB7LnD.js → harness-DXVZ5II5.js} +13 -13
- package/dist/harness.js +1 -1
- package/dist/index.js +323 -313
- package/dist/{isolated-completion-CxTus3vZ.js → isolated-completion-kg9kv4iH.js} +4 -4
- package/dist/{launch-args-sXOAg0SX.js → launch-args-RXQwn8zV.js} +7 -1
- package/dist/{managed-binary-ZkGodW19.js → managed-binary-4-Vjz5GH.js} +14 -9
- package/dist/media-understanding-provider.js +1 -1
- package/dist/{model-catalog-DULBcniB.js → model-catalog-CUM68Hkl.js} +11 -11
- package/dist/{models-DaWfETQk.js → models-sYnEc0gd.js} +3 -3
- package/dist/{native-subagent-monitor-vXYUZH37.js → native-subagent-monitor-CnH147jH.js} +3 -3
- package/dist/{node-exec-server.runtime-DirKVZ5h.js → node-exec-server.runtime-CstNHCmC.js} +2 -2
- package/dist/{plugin-approval-roundtrip-CCWQGlAI.js → plugin-approval-roundtrip-CNe-Xrjx.js} +29 -3
- package/dist/{plugin-marketplace-discovery-BXjIFEiw.js → plugin-marketplace-discovery-CfFlKqDl.js} +6 -6
- package/dist/{plugin-metadata-cache-DQQm4gWT.js → plugin-metadata-cache-BFrPhb2c.js} +5 -5
- package/dist/provider-capabilities-DW5p4k9w.js +101 -0
- package/dist/{rate-limits-BqHEHXQJ.js → rate-limits-CawQJfUS.js} +1 -1
- package/dist/{request-BWxweEdK.js → request-DYAI5FQE.js} +18 -6
- package/dist/{run-attempt-BVLE4Gbi.js → run-attempt-D1hJO4fX.js} +483 -1865
- package/dist/{runtime-artifact-D9pYp4zL.js → runtime-artifact-C3jVimFn.js} +19 -12
- package/dist/{session-binding-D0zinCP1.js → session-binding-BHuTCRZQ.js} +8 -10
- package/dist/{session-catalog-eMhVm0Ql.js → session-catalog-yyvTWFOw.js} +138 -116
- package/dist/{session-cli-B2lyjJA0.js → session-cli-CmFEXMAM.js} +1 -1
- package/dist/session-initialization-BeWzjGiR.js +74 -0
- package/dist/{session-permission-policy-ScnAyG90.js → session-permission-policy-DeWVTCMj.js} +2 -2
- package/dist/{session-retirement-CtUtUTr9.js → session-retirement-BujDjXVF.js} +16 -9
- package/dist/{session-upstream-marker-gqrYIRHk.js → session-upstream-marker-C351-5Qw.js} +18 -2
- package/dist/{settled-turn-context-Bk3IUwod.js → settled-turn-context-D3SNWtUn.js} +6 -28
- package/dist/{settled-turn-finalizer-BXLN9PfJ.js → settled-turn-finalizer-BVJx4yoc.js} +5 -5
- package/dist/{shared-client-B1tT5U6r.js → shared-client-DxcfF9KX.js} +2748 -101
- package/dist/{side-question-CZ-mCw-t.js → side-question-BTZAII4l.js} +97 -63
- package/dist/{thread-lifecycle-CGGKP720.js → thread-lifecycle-DAcEJ_Om.js} +2039 -1487
- package/dist/{thread-ownership-RkaoZCmQ.js → thread-ownership-zGokd8i1.js} +10 -9
- package/dist/thread-policy-g4KbJPzp.js +54 -0
- package/dist/{thread-resume-BFt1-ZDa.js → thread-resume-C7pyVKeW.js} +15 -7
- package/dist/{transcript-mirror-1ep4XjzF.js → transcript-mirror-DTUxFWa_.js} +47 -10
- package/dist/{transport-stdio-NT_Dpd9V.js → transport-stdio-CyPldczm.js} +3 -1
- package/dist/upstream-session-fork-CYlBIGVt.js +966 -0
- package/dist/{usage-DUhd58gI.js → usage-Bj-rrzkR.js} +3 -3
- package/dist/{web-search-provider.runtime-BEmlE7ov.js → web-search-provider.runtime-D2FWSK4w.js} +3 -3
- package/openclaw.plugin.json +0 -30
- package/package.json +5 -5
- package/dist/protocol-validators-Bg5rpNxk.js +0 -2542
- package/dist/session-catalog-home-id-Dt2GiG5o.js +0 -112
- package/dist/upstream-session-fork-Dc8BFExw.js +0 -312
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as retainSharedCodexAppServerClientByInstanceId } from "./shared-client-
|
|
2
|
-
import { d as sessionBindingIdentity } from "./session-binding-
|
|
1
|
+
import { _ as retainSharedCodexAppServerClientByInstanceId } from "./shared-client-DxcfF9KX.js";
|
|
2
|
+
import { d as sessionBindingIdentity } from "./session-binding-BHuTCRZQ.js";
|
|
3
3
|
import { asOptionalRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { assignMcpCatalogSafeServerNames } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
5
5
|
//#region extensions/codex/src/app-server/effective-mcp-catalog.ts
|
|
@@ -86,13 +86,13 @@ function createAssistantAsyncMessage(params, text, itemId, timestamp) {
|
|
|
86
86
|
openclawAsyncDelivery: { itemId }
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function createAssistantReasoningMessage(params, text) {
|
|
90
90
|
const attribution = resolveCodexLocalRuntimeAttribution(params);
|
|
91
91
|
return {
|
|
92
92
|
role: "assistant",
|
|
93
93
|
content: [{
|
|
94
|
-
type: "
|
|
95
|
-
|
|
94
|
+
type: "thinking",
|
|
95
|
+
thinking: text
|
|
96
96
|
}],
|
|
97
97
|
api: attribution.api ?? "openai-chatgpt-responses",
|
|
98
98
|
provider: attribution.provider,
|
|
@@ -103,4 +103,4 @@ function createAssistantMirrorMessage(params, title, text) {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
|
-
export { createAttributedCodexAssistantMessage as a,
|
|
106
|
+
export { createAttributedCodexAssistantMessage as a, createAssistantReasoningMessage as i, createAssistantCommentaryMessage as n, createAssistantMessage as r, createAssistantAsyncMessage as t };
|
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as isJsonObject } from "./shared-client-DxcfF9KX.js";
|
|
2
2
|
import { asSafeIntegerInRange, readStringField } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { normalizeUsage } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
4
|
-
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
5
4
|
//#region extensions/codex/src/app-server/attempt-notifications.ts
|
|
6
|
-
/**
|
|
7
|
-
* Predicates and readers for Codex app-server notification envelopes.
|
|
8
|
-
*/
|
|
9
5
|
const CODEX_TURN_ABORT_MARKER_START = "<turn_aborted>";
|
|
10
6
|
const CODEX_TURN_ABORT_MARKER_END = "</turn_aborted>";
|
|
11
|
-
/**
|
|
12
|
-
function describeNotificationActivity(notification) {
|
|
13
|
-
if (!isJsonObject(notification.params)) return { lastNotificationMethod: notification.method };
|
|
14
|
-
if (notification.method !== "rawResponseItem/completed") return { lastNotificationMethod: notification.method };
|
|
15
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
16
|
-
if (!item) return { lastNotificationMethod: notification.method };
|
|
17
|
-
return {
|
|
18
|
-
lastNotificationMethod: notification.method,
|
|
19
|
-
lastNotificationItemId: readStringField(item, "id"),
|
|
20
|
-
lastNotificationItemType: readStringField(item, "type"),
|
|
21
|
-
lastNotificationItemRole: readStringField(item, "role"),
|
|
22
|
-
lastAssistantTextPreview: readRawAssistantTextPreview(item)
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
/** Tracks active app-server item ids from item start/completion notifications. */
|
|
7
|
+
/** Tracks actual native items for explicit terminal-tool batching. */
|
|
26
8
|
function updateActiveTurnItemIds(notification, activeItemIds) {
|
|
27
9
|
if (notification.method !== "item/started" && notification.method !== "item/completed") return;
|
|
28
10
|
const itemId = readNotificationItemId(notification);
|
|
@@ -33,70 +15,6 @@ function updateActiveTurnItemIds(notification, activeItemIds) {
|
|
|
33
15
|
}
|
|
34
16
|
activeItemIds.delete(itemId);
|
|
35
17
|
}
|
|
36
|
-
function updateActiveCompletionBlockerItemIds(notification, activeItemIds) {
|
|
37
|
-
if (notification.method !== "item/started" && notification.method !== "item/completed") return;
|
|
38
|
-
const itemId = readNotificationItemId(notification);
|
|
39
|
-
if (!itemId) return;
|
|
40
|
-
if (notification.method === "item/completed") {
|
|
41
|
-
activeItemIds.delete(itemId);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const item = readCodexNotificationItem(notification.params);
|
|
45
|
-
if (item && isCompletionBlockingItem(item)) activeItemIds.add(itemId);
|
|
46
|
-
}
|
|
47
|
-
function isCompletionBlockingItem(item) {
|
|
48
|
-
switch (item.type) {
|
|
49
|
-
case "collabAgentToolCall":
|
|
50
|
-
case "commandExecution":
|
|
51
|
-
case "dynamicToolCall":
|
|
52
|
-
case "fileChange":
|
|
53
|
-
case "imageGeneration":
|
|
54
|
-
case "imageView":
|
|
55
|
-
case "mcpToolCall":
|
|
56
|
-
case "webSearch": return true;
|
|
57
|
-
default: return false;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function isCompletedAssistantNotification(notification) {
|
|
61
|
-
if (!isJsonObject(notification.params)) return false;
|
|
62
|
-
if (notification.method !== "item/completed") return false;
|
|
63
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
64
|
-
return Boolean(item && readStringField(item, "type") === "agentMessage" && readStringField(item, "phase") !== "commentary" && readStringField(item, "delivery") !== "async");
|
|
65
|
-
}
|
|
66
|
-
/** Returns true for completed app-server reasoning items. */
|
|
67
|
-
function isReasoningItemCompletionNotification(notification) {
|
|
68
|
-
if (!isJsonObject(notification.params) || notification.method !== "item/completed") return false;
|
|
69
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
70
|
-
return item ? readStringField(item, "type") === "reasoning" : false;
|
|
71
|
-
}
|
|
72
|
-
/** Returns true for completed assistant commentary items. */
|
|
73
|
-
function isAssistantCommentaryCompletionNotification(notification) {
|
|
74
|
-
if (!isJsonObject(notification.params) || notification.method !== "item/completed") return false;
|
|
75
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
76
|
-
return Boolean(item && readStringField(item, "type") === "agentMessage" && (readStringField(item, "phase") === "commentary" || readStringField(item, "delivery") === "async"));
|
|
77
|
-
}
|
|
78
|
-
/** Returns true for completed raw response reasoning items. */
|
|
79
|
-
function isRawReasoningCompletionNotification(notification) {
|
|
80
|
-
if (!isJsonObject(notification.params) || notification.method !== "rawResponseItem/completed") return false;
|
|
81
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
82
|
-
return item ? readStringField(item, "type") === "reasoning" : false;
|
|
83
|
-
}
|
|
84
|
-
/** Returns true for streamed app-server reasoning progress. */
|
|
85
|
-
function isReasoningProgressNotification(notification) {
|
|
86
|
-
return notification.method === "item/reasoning/textDelta" || notification.method === "item/reasoning/summaryTextDelta" || notification.method === "item/reasoning/summaryPartAdded";
|
|
87
|
-
}
|
|
88
|
-
/** Returns true when assistant completion can release the short idle watch. */
|
|
89
|
-
function isAssistantCompletionReleaseNotification(notification, turnCrossedToolHandoff) {
|
|
90
|
-
if (isCompletedAssistantNotification(notification)) return true;
|
|
91
|
-
return !turnCrossedToolHandoff && isRawAssistantCompletionNotification(notification);
|
|
92
|
-
}
|
|
93
|
-
/** Returns true when a notification proves assistant output is still active. */
|
|
94
|
-
function shouldDisarmAssistantCompletionIdleWatch(notification) {
|
|
95
|
-
if (!isJsonObject(notification.params)) return false;
|
|
96
|
-
if (notification.method === "item/started") return true;
|
|
97
|
-
if (notification.method === "item/agentMessage/delta") return true;
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
18
|
/** Reads an item id from supported notification envelope shapes. */
|
|
101
19
|
function readNotificationItemId(notification) {
|
|
102
20
|
if (!isJsonObject(notification.params)) return;
|
|
@@ -112,61 +30,18 @@ function isPendingOpenClawDynamicToolCompletionNotification(notification, pendin
|
|
|
112
30
|
const itemType = item ? readStringField(item, "type") : void 0;
|
|
113
31
|
return itemType === void 0 || itemType === "dynamicToolCall";
|
|
114
32
|
}
|
|
115
|
-
/** Returns true for raw response tool-output completion notifications. */
|
|
116
|
-
function isRawToolOutputCompletionNotification(notification) {
|
|
117
|
-
if (notification.method !== "rawResponseItem/completed" || !isJsonObject(notification.params)) return false;
|
|
118
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
119
|
-
switch (item ? readStringField(item, "type") : void 0) {
|
|
120
|
-
case "custom_tool_call_output":
|
|
121
|
-
case "function_call_output": return true;
|
|
122
|
-
default: return false;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
33
|
function isRawFunctionToolOutputCompletionNotification(notification) {
|
|
126
34
|
if (notification.method !== "rawResponseItem/completed" || !isJsonObject(notification.params)) return false;
|
|
127
35
|
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
128
36
|
return item ? readStringField(item, "type") === "function_call_output" : false;
|
|
129
37
|
}
|
|
130
|
-
/**
|
|
131
|
-
function
|
|
132
|
-
if (notification.
|
|
133
|
-
if (!isJsonObject(notification.params)) return false;
|
|
134
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
135
|
-
switch (item ? readStringField(item, "type") : void 0) {
|
|
136
|
-
case "commandExecution":
|
|
137
|
-
case "fileChange":
|
|
138
|
-
case "mcpToolCall":
|
|
139
|
-
case "webSearch": return true;
|
|
140
|
-
default: return false;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
/** Returns true for file-change patch update notifications. */
|
|
144
|
-
function isFileChangePatchUpdatedNotification(notification) {
|
|
145
|
-
return notification.method === "item/fileChange/patchUpdated" && isJsonObject(notification.params);
|
|
146
|
-
}
|
|
147
|
-
/** Returns true for raw assistant message progress with readable text. */
|
|
148
|
-
function isRawAssistantProgressNotification(notification) {
|
|
149
|
-
if (notification.method !== "rawResponseItem/completed" || !isJsonObject(notification.params)) return false;
|
|
150
|
-
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
151
|
-
return Boolean(item && readStringField(item, "type") === "message" && readStringField(item, "role") === "assistant" && readRawAssistantTextPreview(item));
|
|
152
|
-
}
|
|
153
|
-
/** Returns true for raw assistant completion outside commentary phase. */
|
|
154
|
-
function isRawAssistantCompletionNotification(notification) {
|
|
155
|
-
if (!isRawAssistantProgressNotification(notification) || !isJsonObject(notification.params)) return false;
|
|
38
|
+
/** Distinguishes progress-only assistant items from conversation answers. */
|
|
39
|
+
function isAssistantCommentaryCompletionNotification(notification) {
|
|
40
|
+
if (!isJsonObject(notification.params) || notification.method !== "item/completed") return false;
|
|
156
41
|
const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
|
|
157
|
-
return Boolean(item && readStringField(item, "phase")
|
|
158
|
-
}
|
|
159
|
-
function readRawAssistantTextPreview(item) {
|
|
160
|
-
if (readStringField(item, "role") !== "assistant" || !Array.isArray(item.content)) return;
|
|
161
|
-
const text = item.content.flatMap((content) => {
|
|
162
|
-
if (!isJsonObject(content)) return [];
|
|
163
|
-
const contentText = readStringField(content, "text");
|
|
164
|
-
return contentText ? [contentText] : [];
|
|
165
|
-
}).join("\n").trim();
|
|
166
|
-
if (!text) return;
|
|
167
|
-
return text.length > 240 ? `${truncateUtf16Safe(text, 237)}...` : text;
|
|
42
|
+
return Boolean(item && readStringField(item, "type") === "agentMessage" && (readStringField(item, "phase") === "commentary" || readStringField(item, "delivery") === "async"));
|
|
168
43
|
}
|
|
169
|
-
/**
|
|
44
|
+
/** A retryable native error is not a terminal outcome for bounded operations. */
|
|
170
45
|
function isRetryableErrorNotification(value) {
|
|
171
46
|
return isJsonObject(value) && value.willRetry === true;
|
|
172
47
|
}
|
|
@@ -174,10 +49,7 @@ function isRetryableErrorNotification(value) {
|
|
|
174
49
|
function isTerminalTurnStatus(status) {
|
|
175
50
|
return status === "completed" || status === "interrupted" || status === "failed";
|
|
176
51
|
}
|
|
177
|
-
/**
|
|
178
|
-
* Detects Codex's synthetic interrupted-turn marker while ignoring the current
|
|
179
|
-
* user prompt echoed through raw response events.
|
|
180
|
-
*/
|
|
52
|
+
/** Detects Codex's interrupted-turn marker, not user-authored copies of it. */
|
|
181
53
|
function isCodexTurnAbortMarkerNotification(notification, options = {}) {
|
|
182
54
|
if (notification.method !== "rawResponseItem/completed" || !isJsonObject(notification.params)) return false;
|
|
183
55
|
const item = notification.params.item;
|
|
@@ -320,4 +192,4 @@ var CodexResponseCompletionProjection = class {
|
|
|
320
192
|
}
|
|
321
193
|
};
|
|
322
194
|
//#endregion
|
|
323
|
-
export {
|
|
195
|
+
export { codexExecutionToolName as a, isPendingOpenClawDynamicToolCompletionNotification as c, isTerminalTurnStatus as d, readCodexNotificationItem as f, updateActiveTurnItemIds as h, readCodexThreadContextSnapshot as i, isRawFunctionToolOutputCompletionNotification as l, readRawResponseToolCallId as m, normalizeCodexResponseTokenUsage as n, isAssistantCommentaryCompletionNotification as o, readNotificationItemId as p, projectCodexThreadUsageUpdate as r, isCodexTurnAbortMarkerNotification as s, CodexResponseCompletionProjection as t, isRetryableErrorNotification as u };
|
|
@@ -77,7 +77,7 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
77
77
|
...sessionCatalogControlFactory && sessionRuntime ? { sessionFork: {
|
|
78
78
|
upstreamKinds: ["codex-app-server"],
|
|
79
79
|
fork: async (params) => {
|
|
80
|
-
const { forkCodexUpstreamSession } = await import("./upstream-session-fork-
|
|
80
|
+
const { forkCodexUpstreamSession } = await import("./upstream-session-fork-CYlBIGVt.js");
|
|
81
81
|
return await forkCodexUpstreamSession(params, {
|
|
82
82
|
bindingStore: options.bindingStore,
|
|
83
83
|
controlFactory: sessionCatalogControlFactory,
|
|
@@ -92,22 +92,22 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
92
92
|
return fingerprintCodexAppServerAuthBinding(params);
|
|
93
93
|
} },
|
|
94
94
|
runtimeArtifact: { validate: async (binding) => {
|
|
95
|
-
const { validateCodexAppServerRuntimeArtifact } = await import("./runtime-artifact-
|
|
95
|
+
const { validateCodexAppServerRuntimeArtifact } = await import("./runtime-artifact-C3jVimFn.js");
|
|
96
96
|
return validateCodexAppServerRuntimeArtifact(binding);
|
|
97
97
|
} },
|
|
98
98
|
fetchUsageSnapshot: async (ctx) => {
|
|
99
|
-
const { fetchCodexAppServerUsageSnapshot } = await import("./usage-
|
|
99
|
+
const { fetchCodexAppServerUsageSnapshot } = await import("./usage-Bj-rrzkR.js");
|
|
100
100
|
return await fetchCodexAppServerUsageSnapshot(ctx, { pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig });
|
|
101
101
|
},
|
|
102
102
|
loadModelCatalog: async (params) => {
|
|
103
|
-
const { createCodexAppServerModelCatalog } = await import("./model-catalog-
|
|
103
|
+
const { createCodexAppServerModelCatalog } = await import("./model-catalog-CUM68Hkl.js");
|
|
104
104
|
if (disposed) return [];
|
|
105
105
|
modelCatalog ??= createCodexAppServerModelCatalog(harnessRuntimeId);
|
|
106
106
|
return await modelCatalog.load(params, resolveAttemptPluginConfig(params.config));
|
|
107
107
|
},
|
|
108
108
|
readModelCatalogReadiness: (params) => modelCatalog?.read(params, resolveAttemptPluginConfig(params.config)),
|
|
109
109
|
loadMcpToolCatalog: async (params) => {
|
|
110
|
-
const { loadCodexEffectiveMcpCatalog } = await import("./effective-mcp-catalog-
|
|
110
|
+
const { loadCodexEffectiveMcpCatalog } = await import("./effective-mcp-catalog-DzYBW4h1.js");
|
|
111
111
|
return await loadCodexEffectiveMcpCatalog(params, { bindingStore: options.bindingStore });
|
|
112
112
|
},
|
|
113
113
|
supports: (ctx) => {
|
|
@@ -150,7 +150,7 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
150
150
|
};
|
|
151
151
|
},
|
|
152
152
|
runAttempt: async (params) => {
|
|
153
|
-
const { runCodexAppServerAttempt } = await import("./run-attempt-
|
|
153
|
+
const { runCodexAppServerAttempt } = await import("./run-attempt-D1hJO4fX.js");
|
|
154
154
|
return runCodexAppServerAttempt(params, {
|
|
155
155
|
bindingStore: options.bindingStore,
|
|
156
156
|
pluginConfig: resolveAttemptPluginConfig(params.config),
|
|
@@ -161,7 +161,7 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
161
161
|
},
|
|
162
162
|
runIsolatedCompletionV2: async (params) => {
|
|
163
163
|
if (params.authorization.owner === "host") return runHostPreparedIsolatedCompletion(params);
|
|
164
|
-
const { runCodexIsolatedCompletion } = await import("./isolated-completion-
|
|
164
|
+
const { runCodexIsolatedCompletion } = await import("./isolated-completion-kg9kv4iH.js");
|
|
165
165
|
return runCodexIsolatedCompletion(params, { pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig });
|
|
166
166
|
},
|
|
167
167
|
runIsolatedCompletion: async (params) => {
|
|
@@ -176,11 +176,11 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
176
176
|
});
|
|
177
177
|
},
|
|
178
178
|
finalizeSettledTurn: async (params) => {
|
|
179
|
-
const { runCodexSettledTurnFinalization } = await import("./settled-turn-finalizer-
|
|
179
|
+
const { runCodexSettledTurnFinalization } = await import("./settled-turn-finalizer-BVJx4yoc.js");
|
|
180
180
|
return runCodexSettledTurnFinalization(params, { pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig });
|
|
181
181
|
},
|
|
182
182
|
runSideQuestion: async (params) => {
|
|
183
|
-
const { runCodexAppServerSideQuestion } = await import("./side-question-
|
|
183
|
+
const { runCodexAppServerSideQuestion } = await import("./side-question-BTZAII4l.js");
|
|
184
184
|
return runCodexAppServerSideQuestion(params, {
|
|
185
185
|
bindingStore: options.bindingStore,
|
|
186
186
|
pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig,
|
|
@@ -190,20 +190,20 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
compact: async (params) => {
|
|
193
|
-
const { maybeCompactCodexAppServerSession } = await import("./compact-
|
|
193
|
+
const { maybeCompactCodexAppServerSession } = await import("./compact-_t0HQrUS.js");
|
|
194
194
|
return maybeCompactCodexAppServerSession(params, {
|
|
195
195
|
bindingStore: options.bindingStore,
|
|
196
196
|
pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig
|
|
197
197
|
});
|
|
198
198
|
},
|
|
199
199
|
withSessionDeletion: async (params, run) => {
|
|
200
|
-
const { withCodexAppServerSessionDeletion } = await import("./session-retirement-
|
|
200
|
+
const { withCodexAppServerSessionDeletion } = await import("./session-retirement-BujDjXVF.js");
|
|
201
201
|
params.assertCurrent();
|
|
202
202
|
return withCodexAppServerSessionDeletion(options.bindingStore, params, run);
|
|
203
203
|
},
|
|
204
204
|
reset: async (params) => {
|
|
205
205
|
if (params.sessionId && params.reason !== "deleted") {
|
|
206
|
-
const [{ reclaimCurrentCodexSessionGeneration, sessionBindingIdentity }, { retireCodexAppServerSessionGeneration }] = await Promise.all([import("./session-binding-
|
|
206
|
+
const [{ reclaimCurrentCodexSessionGeneration, sessionBindingIdentity }, { retireCodexAppServerSessionGeneration }] = await Promise.all([import("./session-binding-BHuTCRZQ.js").then((n) => n.f), import("./session-retirement-BujDjXVF.js")]);
|
|
207
207
|
const identity = sessionBindingIdentity({
|
|
208
208
|
agentId: params.agentId,
|
|
209
209
|
sessionId: params.sessionId,
|
|
@@ -235,7 +235,7 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
235
235
|
/** Creates the private native-compaction bridge registered in host-owned capability state. */
|
|
236
236
|
function createCodexAppServerNativeCompaction(options) {
|
|
237
237
|
return async (params) => {
|
|
238
|
-
const { maybeCompactCodexAppServerSession } = await import("./compact-
|
|
238
|
+
const { maybeCompactCodexAppServerSession } = await import("./compact-_t0HQrUS.js");
|
|
239
239
|
return maybeCompactCodexAppServerSession(params, {
|
|
240
240
|
bindingStore: options.bindingStore,
|
|
241
241
|
pluginConfig: options.resolvePluginConfig?.() ?? options.pluginConfig,
|
package/dist/harness.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCodexAppServerNativeCompaction, t as createCodexAppServerAgentHarness } from "./harness-
|
|
1
|
+
import { n as createCodexAppServerNativeCompaction, t as createCodexAppServerAgentHarness } from "./harness-DXVZ5II5.js";
|
|
2
2
|
export { createCodexAppServerAgentHarness, createCodexAppServerNativeCompaction };
|