@openclaw/codex 2026.6.11-beta.2 → 2026.6.33
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/{app-server-policy-BPTiVNsW.js → app-server-policy-BaB2492Z.js} +2 -2
- package/dist/{attempt-notifications-BYnndyFl.js → attempt-notifications-Dl3RWAT-.js} +1 -1
- package/dist/{client-CLrtWgrD.js → client-DsqoRGhJ.js} +1 -1
- package/dist/{client-factory-Bm6HsGob.js → client-factory-E-67xUhS.js} +1 -1
- package/dist/{command-handlers-DEPTJYk0.js → command-handlers-bbSxpNAI.js} +9 -9
- package/dist/{compact-aQJ0ZKhe.js → compact-C-fHdAIB.js} +4 -4
- package/dist/{computer-use-ClrJwoFp.js → computer-use-B_iZKrBI.js} +3 -3
- package/dist/{config-CszD0vP3.js → config-DfV7hMHu.js} +23 -12
- package/dist/{conversation-binding-t0XMLz-j.js → conversation-binding-Ba3nVSYu.js} +6 -6
- package/dist/harness.js +6 -6
- package/dist/index.js +11 -11
- package/dist/{media-understanding-provider-ZUQHN7gT.js → media-understanding-provider-S-u-JwTs.js} +5 -5
- package/dist/media-understanding-provider.js +1 -1
- package/dist/{models-CAmfBWRl.js → models-CrrooS6N.js} +1 -1
- package/dist/{plugin-app-cache-key-C9ILt7bl.js → plugin-app-cache-key-BwzTPSGU.js} +3 -3
- package/dist/{provider-B-OHpbD3.js → provider-J2nTGL8Q.js} +3 -3
- package/dist/{provider-capabilities-D7hnTO76.js → provider-capabilities-B3pUz-8b.js} +326 -172
- package/dist/provider.js +1 -1
- package/dist/{request-Dcd452Nk.js → request-RiBbqNPj.js} +1 -1
- package/dist/{run-attempt-CXxtFC9d.js → run-attempt-CDCK3aeX.js} +80 -307
- package/dist/{session-binding-HOuPt-E0.js → session-binding-CP5b8iN1.js} +1 -1
- package/dist/{shared-client-Dtx5i7Ez.js → shared-client-Ll9fWpy9.js} +2 -2
- package/dist/{side-question-C-DhgJOd.js → side-question-DJ4g2wVk.js} +10 -92
- package/dist/{thread-lifecycle-DtT3-ehU.js → thread-lifecycle-DXrm-WWA.js} +4 -4
- package/dist/{web-search-provider.runtime-CkwxrXQj.js → web-search-provider.runtime-3WDe3iwG.js} +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -4
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { n as isJsonObject } from "./protocol-dh-ETiNd.js";
|
|
2
|
-
import { H as readCodexNotificationTurnId, N as mergeCodexThreadConfigs, S as filterCodexDynamicTools, T as resolveCodexDynamicToolsLoading, V as readCodexNotificationThreadId, _ as resolveCodexWebSearchPlan, d as resolveCodexAppServerRequestModelSelection, m as resolveReasoningEffort, p as resolveCodexBindingModelProviderFallback, r as buildCodexRuntimeThreadConfig, t as CODEX_NATIVE_PERSONALITY_NONE, u as resolveCodexAppServerModelProvider } from "./thread-lifecycle-
|
|
3
|
-
import {
|
|
2
|
+
import { H as readCodexNotificationTurnId, N as mergeCodexThreadConfigs, S as filterCodexDynamicTools, T as resolveCodexDynamicToolsLoading, V as readCodexNotificationThreadId, _ as resolveCodexWebSearchPlan, d as resolveCodexAppServerRequestModelSelection, m as resolveReasoningEffort, p as resolveCodexBindingModelProviderFallback, r as buildCodexRuntimeThreadConfig, t as CODEX_NATIVE_PERSONALITY_NONE, u as resolveCodexAppServerModelProvider } from "./thread-lifecycle-DXrm-WWA.js";
|
|
3
|
+
import { f as resolveCodexModelBackedReviewerPolicyContext, h as shouldAutoApproveCodexAppServerApprovals, l as readCodexPluginConfig, m as resolveOpenClawExecPolicyForCodexAppServer, n as canUseCodexModelBackedApprovalsReviewerForModel, u as resolveCodexAppServerRuntimeOptions } from "./config-DfV7hMHu.js";
|
|
4
4
|
import { a as readCodexDynamicToolCallParams, c as readCodexTurn, i as assertCodexTurnStartResponse, t as assertCodexThreadForkResponse } from "./protocol-validators-B19q5BIX.js";
|
|
5
|
-
import { i as formatCodexUsageLimitErrorMessage } from "./provider-
|
|
6
|
-
import { i as isCodexAppServerApprovalRequest } from "./client-
|
|
7
|
-
import { i as isCodexAppServerNativeAuthProfile, o as readCodexAppServerBinding } from "./session-binding-
|
|
8
|
-
import { t as resolveCodexAppServerForModelProvider } from "./app-server-policy-
|
|
9
|
-
import { a as getLeasedSharedCodexAppServerClient, o as releaseLeasedSharedCodexAppServerClient, u as refreshCodexAppServerAuthTokens } from "./shared-client-
|
|
5
|
+
import { i as formatCodexUsageLimitErrorMessage } from "./provider-J2nTGL8Q.js";
|
|
6
|
+
import { i as isCodexAppServerApprovalRequest } from "./client-DsqoRGhJ.js";
|
|
7
|
+
import { i as isCodexAppServerNativeAuthProfile, o as readCodexAppServerBinding } from "./session-binding-CP5b8iN1.js";
|
|
8
|
+
import { t as resolveCodexAppServerForModelProvider } from "./app-server-policy-BaB2492Z.js";
|
|
9
|
+
import { a as getLeasedSharedCodexAppServerClient, o as releaseLeasedSharedCodexAppServerClient, u as refreshCodexAppServerAuthTokens } from "./shared-client-Ll9fWpy9.js";
|
|
10
10
|
import { n as resolveCodexNativeExecutionBlock } from "./sandbox-guard-3tnjhjFb.js";
|
|
11
|
-
import { C as
|
|
11
|
+
import { C as emitDynamicToolErrorDiagnostic, F as shouldEnableCodexAppServerNativeToolSurface, N as resolveCodexMessageToolProvider, R as filterToolsForVisionInputs, T as emitDynamicToolTerminalDiagnostic, _ as resolveDynamicToolCallTimeoutMs, a as buildCodexNativeHookRelayConfig, d as handleCodexAppServerElicitationRequest, f as createCodexDynamicToolBridge, n as resolveCodexProviderWebSearchSupportForClient, o as buildCodexNativeHookRelayDisabledConfig, p as handleDynamicToolCallWithTimeout, r as CODEX_NATIVE_HOOK_RELAY_EVENTS, w as emitDynamicToolStartedDiagnostic, z as handleCodexAppServerApprovalRequest } from "./provider-capabilities-B3pUz-8b.js";
|
|
12
12
|
import { n as rememberCodexRateLimits, t as readRecentCodexRateLimits } from "./rate-limit-cache-C7qmZ0Jh.js";
|
|
13
13
|
import { loadExecApprovals } from "openclaw/plugin-sdk/exec-approvals-runtime";
|
|
14
14
|
import { buildAgentHookContextChannelFields, embeddedAgentLog, formatErrorMessage, registerNativeHookRelay, resolveAgentDir, resolveAttemptSpawnWorkspaceDir, resolveModelAuthMode, resolveSandboxContext, resolveSessionAgentIds, supportsModelTools } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
15
15
|
//#region extensions/codex/src/app-server/side-question.ts
|
|
16
|
-
const CODEX_SIDE_DYNAMIC_TOOL_TIMEOUT_MS = 9e4;
|
|
17
|
-
const CODEX_SIDE_DYNAMIC_TOOL_MAX_TIMEOUT_MS = 6e5;
|
|
18
|
-
const CODEX_SIDE_DYNAMIC_IMAGE_GENERATION_TOOL_TIMEOUT_MS = 12e4;
|
|
19
|
-
const CODEX_SIDE_DYNAMIC_IMAGE_TOOL_TIMEOUT_MS = 6e4;
|
|
20
16
|
const SIDE_QUESTION_COMPLETION_TIMEOUT_MS = 6e5;
|
|
21
17
|
const CODEX_SIDE_NATIVE_HOOK_RELAY_MIN_TTL_MS = 30 * 6e4;
|
|
22
18
|
const CODEX_SIDE_NATIVE_HOOK_RELAY_TTL_GRACE_MS = 5 * 6e4;
|
|
@@ -190,9 +186,6 @@ async function runCodexAppServerSideQuestion(params, options = {}) {
|
|
|
190
186
|
threadId: childThreadId,
|
|
191
187
|
turnId,
|
|
192
188
|
nativeHookRelay,
|
|
193
|
-
execPolicy,
|
|
194
|
-
execReviewerAgentId: sessionAgentId,
|
|
195
|
-
internalExecAutoReview: modelScopedAppServer.approvalsReviewer === "user",
|
|
196
189
|
autoApprove: shouldAutoApproveCodexAppServerApprovals({
|
|
197
190
|
approvalPolicy,
|
|
198
191
|
networkProxy: modelScopedAppServer.networkProxy,
|
|
@@ -203,7 +196,7 @@ async function runCodexAppServerSideQuestion(params, options = {}) {
|
|
|
203
196
|
if (request.method !== "item/tool/call") return;
|
|
204
197
|
const call = readCodexDynamicToolCallParams(request.params);
|
|
205
198
|
if (!call || call.threadId !== childThreadId || call.turnId !== turnId) return;
|
|
206
|
-
const timeoutMs =
|
|
199
|
+
const timeoutMs = resolveDynamicToolCallTimeoutMs({
|
|
207
200
|
call,
|
|
208
201
|
config: params.cfg
|
|
209
202
|
});
|
|
@@ -216,7 +209,7 @@ async function runCodexAppServerSideQuestion(params, options = {}) {
|
|
|
216
209
|
};
|
|
217
210
|
emitDynamicToolStartedDiagnostic(diagnosticContext);
|
|
218
211
|
try {
|
|
219
|
-
const response = await
|
|
212
|
+
const response = await handleDynamicToolCallWithTimeout({
|
|
220
213
|
call,
|
|
221
214
|
toolBridge,
|
|
222
215
|
signal: runAbortController.signal,
|
|
@@ -531,87 +524,12 @@ async function createCodexSideToolBridge(input) {
|
|
|
531
524
|
webSearchPlan
|
|
532
525
|
};
|
|
533
526
|
}
|
|
534
|
-
async function handleSideDynamicToolCallWithTimeout(params) {
|
|
535
|
-
if (params.signal.aborted) return failedSideDynamicToolResponse("OpenClaw dynamic tool call aborted before execution.");
|
|
536
|
-
const controller = new AbortController();
|
|
537
|
-
let timeout;
|
|
538
|
-
let resolveAbort;
|
|
539
|
-
const abortFromRun = () => {
|
|
540
|
-
const message = "OpenClaw dynamic tool call aborted.";
|
|
541
|
-
controller.abort(params.signal.reason ?? /* @__PURE__ */ new Error(message));
|
|
542
|
-
resolveAbort?.(failedSideDynamicToolResponse(message));
|
|
543
|
-
};
|
|
544
|
-
const abortPromise = new Promise((resolve) => {
|
|
545
|
-
resolveAbort = resolve;
|
|
546
|
-
});
|
|
547
|
-
const timeoutPromise = new Promise((resolve) => {
|
|
548
|
-
const timeoutMs = clampSideDynamicToolTimeoutMs(params.timeoutMs);
|
|
549
|
-
timeout = setTimeout(() => {
|
|
550
|
-
controller.abort(/* @__PURE__ */ new Error(`OpenClaw dynamic tool call timed out after ${timeoutMs}ms.`));
|
|
551
|
-
resolve(failedSideDynamicToolResponse(`OpenClaw dynamic tool call timed out after ${timeoutMs}ms.`));
|
|
552
|
-
}, timeoutMs);
|
|
553
|
-
timeout.unref?.();
|
|
554
|
-
});
|
|
555
|
-
try {
|
|
556
|
-
params.signal.addEventListener("abort", abortFromRun, { once: true });
|
|
557
|
-
if (params.signal.aborted) abortFromRun();
|
|
558
|
-
return await Promise.race([
|
|
559
|
-
params.toolBridge.handleToolCall(params.call, { signal: controller.signal }),
|
|
560
|
-
abortPromise,
|
|
561
|
-
timeoutPromise
|
|
562
|
-
]);
|
|
563
|
-
} catch (error) {
|
|
564
|
-
return failedSideDynamicToolResponse(error instanceof Error ? error.message : String(error));
|
|
565
|
-
} finally {
|
|
566
|
-
if (timeout) clearTimeout(timeout);
|
|
567
|
-
params.signal.removeEventListener("abort", abortFromRun);
|
|
568
|
-
resolveAbort = void 0;
|
|
569
|
-
if (!controller.signal.aborted) controller.abort(/* @__PURE__ */ new Error("OpenClaw dynamic tool call finished."));
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
function failedSideDynamicToolResponse(message) {
|
|
573
|
-
const response = {
|
|
574
|
-
contentItems: [{
|
|
575
|
-
type: "inputText",
|
|
576
|
-
text: message
|
|
577
|
-
}],
|
|
578
|
-
success: false
|
|
579
|
-
};
|
|
580
|
-
Object.defineProperty(response, "diagnosticTerminalType", {
|
|
581
|
-
configurable: true,
|
|
582
|
-
enumerable: false,
|
|
583
|
-
value: "error"
|
|
584
|
-
});
|
|
585
|
-
return response;
|
|
586
|
-
}
|
|
587
527
|
function emptySideUserInputResponse() {
|
|
588
528
|
return { answers: {} };
|
|
589
529
|
}
|
|
590
530
|
function isSideUserInputRequest(value, threadId, turnId) {
|
|
591
531
|
return isJsonObject(value) && value.threadId === threadId && value.turnId === turnId;
|
|
592
532
|
}
|
|
593
|
-
function resolveSideDynamicToolCallTimeoutMs(params) {
|
|
594
|
-
return clampSideDynamicToolTimeoutMs(readSideDynamicToolCallTimeoutMs(params.call.arguments) ?? (params.call.tool === "image_generate" ? readSideImageGenerationModelTimeoutMs(params.config) ?? CODEX_SIDE_DYNAMIC_IMAGE_GENERATION_TOOL_TIMEOUT_MS : void 0) ?? (params.call.tool === "image" ? readSideTimeoutSecondsAsMs(params.config?.tools?.media?.image?.timeoutSeconds) ?? CODEX_SIDE_DYNAMIC_IMAGE_TOOL_TIMEOUT_MS : void 0) ?? CODEX_SIDE_DYNAMIC_TOOL_TIMEOUT_MS);
|
|
595
|
-
}
|
|
596
|
-
function readSideDynamicToolCallTimeoutMs(value) {
|
|
597
|
-
if (!isJsonObject(value)) return;
|
|
598
|
-
return readSidePositiveFiniteTimeoutMs(value.timeoutMs);
|
|
599
|
-
}
|
|
600
|
-
function readSideImageGenerationModelTimeoutMs(config) {
|
|
601
|
-
const imageGenerationModel = config?.agents?.defaults?.imageGenerationModel;
|
|
602
|
-
if (!imageGenerationModel || typeof imageGenerationModel !== "object") return;
|
|
603
|
-
return readSidePositiveFiniteTimeoutMs(imageGenerationModel.timeoutMs);
|
|
604
|
-
}
|
|
605
|
-
function readSideTimeoutSecondsAsMs(value) {
|
|
606
|
-
const seconds = readSidePositiveFiniteTimeoutMs(value);
|
|
607
|
-
return seconds === void 0 ? void 0 : seconds * 1e3;
|
|
608
|
-
}
|
|
609
|
-
function readSidePositiveFiniteTimeoutMs(value) {
|
|
610
|
-
return typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.floor(value) : void 0;
|
|
611
|
-
}
|
|
612
|
-
function clampSideDynamicToolTimeoutMs(timeoutMs) {
|
|
613
|
-
return Math.max(1, Math.min(CODEX_SIDE_DYNAMIC_TOOL_MAX_TIMEOUT_MS, Math.floor(timeoutMs)));
|
|
614
|
-
}
|
|
615
533
|
async function forkCodexSideThread(client, params, options) {
|
|
616
534
|
try {
|
|
617
535
|
return await client.request("thread/fork", params, options);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as isJsonObject, t as flattenCodexDynamicToolFunctions } from "./protocol-dh-ETiNd.js";
|
|
2
|
-
import { i as codexSandboxPolicyForTurn,
|
|
2
|
+
import { i as codexSandboxPolicyForTurn, p as resolveCodexPluginsPolicy, t as CODEX_PLUGINS_MARKETPLACE_NAME } from "./config-DfV7hMHu.js";
|
|
3
3
|
import { n as assertCodexThreadResumeResponse, r as assertCodexThreadStartResponse } from "./protocol-validators-B19q5BIX.js";
|
|
4
4
|
import { CODEX_GPT5_HEARTBEAT_PROMPT_OVERLAY } from "./prompt-overlay.js";
|
|
5
|
-
import { r as isModernCodexModel } from "./provider-
|
|
6
|
-
import { a as isCodexAppServerConnectionClosedError, n as CodexAppServerRpcError } from "./client-
|
|
7
|
-
import { i as isCodexAppServerNativeAuthProfile, l as writeCodexAppServerBinding, n as clearCodexAppServerBinding, o as readCodexAppServerBinding } from "./session-binding-
|
|
5
|
+
import { r as isModernCodexModel } from "./provider-J2nTGL8Q.js";
|
|
6
|
+
import { a as isCodexAppServerConnectionClosedError, n as CodexAppServerRpcError } from "./client-DsqoRGhJ.js";
|
|
7
|
+
import { i as isCodexAppServerNativeAuthProfile, l as writeCodexAppServerBinding, n as clearCodexAppServerBinding, o as readCodexAppServerBinding } from "./session-binding-CP5b8iN1.js";
|
|
8
8
|
import "node:fs/promises";
|
|
9
9
|
import "node:path";
|
|
10
10
|
import { isFutureDateTimestampMs, resolveDateTimestampMs, resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
|
package/dist/{web-search-provider.runtime-CkwxrXQj.js → web-search-provider.runtime-3WDe3iwG.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isJsonObject } from "./protocol-dh-ETiNd.js";
|
|
2
|
-
import { g as buildCodexNativeWebSearchThreadConfig } from "./thread-lifecycle-
|
|
3
|
-
import { n as runBoundedCodexAppServerTurn } from "./media-understanding-provider-
|
|
2
|
+
import { g as buildCodexNativeWebSearchThreadConfig } from "./thread-lifecycle-DXrm-WWA.js";
|
|
3
|
+
import { n as runBoundedCodexAppServerTurn } from "./media-understanding-provider-S-u-JwTs.js";
|
|
4
4
|
import { readStringParam, resolveSearchTimeoutSeconds, wrapWebContent } from "openclaw/plugin-sdk/provider-web-search";
|
|
5
5
|
//#region extensions/codex/src/web-search-provider.runtime.ts
|
|
6
6
|
async function executeCodexWebSearchProviderTool(ctx, args, executionContext, options) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/codex",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.33",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/codex",
|
|
9
|
-
"version": "2026.6.
|
|
9
|
+
"version": "2026.6.33",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@openai/codex": "0.139.0",
|
|
12
12
|
"typebox": "1.1.39",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/codex",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.33",
|
|
4
4
|
"description": "OpenClaw Codex app-server harness and model provider plugin with a Codex-managed GPT catalog.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"compat": {
|
|
37
|
-
"pluginApi": ">=2026.6.
|
|
37
|
+
"pluginApi": ">=2026.6.33"
|
|
38
38
|
},
|
|
39
39
|
"build": {
|
|
40
|
-
"openclawVersion": "2026.6.
|
|
40
|
+
"openclawVersion": "2026.6.33"
|
|
41
41
|
},
|
|
42
42
|
"release": {
|
|
43
43
|
"publishToClawHub": true,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"README.md"
|
|
56
56
|
],
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"openclaw": ">=2026.6.
|
|
58
|
+
"openclaw": ">=2026.6.33"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|
|
61
61
|
"openclaw": {
|