@openclaw/codex 2026.5.28-beta.1 → 2026.5.28-beta.3
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/harness.js
CHANGED
|
@@ -32,7 +32,7 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
32
32
|
};
|
|
33
33
|
},
|
|
34
34
|
runAttempt: async (params) => {
|
|
35
|
-
const { runCodexAppServerAttempt } = await import("./run-attempt-
|
|
35
|
+
const { runCodexAppServerAttempt } = await import("./run-attempt-Jyxv6IjU.js");
|
|
36
36
|
return runCodexAppServerAttempt(params, {
|
|
37
37
|
pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig,
|
|
38
38
|
nativeHookRelay: { enabled: true }
|
|
@@ -25,7 +25,7 @@ import { createDiagnosticTraceContextFromActiveScope, emitTrustedDiagnosticEvent
|
|
|
25
25
|
import { markAuthProfileBlockedUntil, resolveAgentDir as resolveAgentDir$1, resolveAgentWorkspaceDir } from "openclaw/plugin-sdk/agent-runtime";
|
|
26
26
|
import { isToolAllowed } from "openclaw/plugin-sdk/sandbox";
|
|
27
27
|
import { appendRegularFile, pathExists } from "openclaw/plugin-sdk/security-runtime";
|
|
28
|
-
import { parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
28
|
+
import { parseFiniteNumber, parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
29
29
|
import { buildSessionContext, migrateSessionEntries, parseSessionEntries } from "openclaw/plugin-sdk/agent-sessions";
|
|
30
30
|
import { isIP } from "node:net";
|
|
31
31
|
import { createAgentHarnessTaskRuntime, deliverAgentHarnessTaskCompletion, isDurableAgentHarnessCompletionDelivery } from "openclaw/plugin-sdk/agent-harness-task-runtime";
|
|
@@ -967,6 +967,11 @@ const CODEX_TURN_COMPLETION_IDLE_TIMEOUT_MS = 6e4;
|
|
|
967
967
|
const CODEX_TURN_ASSISTANT_COMPLETION_IDLE_TIMEOUT_MS = 1e4;
|
|
968
968
|
const CODEX_POST_REASONING_SOURCE_REPLY_IDLE_TIMEOUT_MS = 5 * 6e4;
|
|
969
969
|
const CODEX_TURN_TERMINAL_IDLE_TIMEOUT_MS = 30 * 6e4;
|
|
970
|
+
function resolvePositiveIntegerTimeoutMs(value, fallbackMs) {
|
|
971
|
+
const fallback = parseFiniteNumber(fallbackMs) ?? 1;
|
|
972
|
+
const candidate = parseFiniteNumber(value) ?? fallback;
|
|
973
|
+
return Math.max(1, Math.floor(candidate));
|
|
974
|
+
}
|
|
970
975
|
async function withCodexStartupTimeout(params) {
|
|
971
976
|
if (params.signal.aborted) throw new Error("codex app-server startup aborted");
|
|
972
977
|
let timeout;
|
|
@@ -1005,27 +1010,21 @@ async function withCodexStartupTimeout(params) {
|
|
|
1005
1010
|
}
|
|
1006
1011
|
}
|
|
1007
1012
|
function resolveCodexStartupTimeoutMs(params) {
|
|
1008
|
-
|
|
1013
|
+
const timeoutFloorMs = resolvePositiveIntegerTimeoutMs(params.timeoutFloorMs, 100);
|
|
1014
|
+
const timeoutMs = resolvePositiveIntegerTimeoutMs(params.timeoutMs, timeoutFloorMs);
|
|
1015
|
+
return Math.max(timeoutFloorMs, timeoutMs);
|
|
1009
1016
|
}
|
|
1010
1017
|
function resolveCodexTurnCompletionIdleTimeoutMs(value) {
|
|
1011
|
-
|
|
1012
|
-
if (!Number.isFinite(value)) return CODEX_TURN_COMPLETION_IDLE_TIMEOUT_MS;
|
|
1013
|
-
return Math.max(1, Math.floor(value));
|
|
1018
|
+
return resolvePositiveIntegerTimeoutMs(value, CODEX_TURN_COMPLETION_IDLE_TIMEOUT_MS);
|
|
1014
1019
|
}
|
|
1015
1020
|
function resolveCodexTurnAssistantCompletionIdleTimeoutMs(value) {
|
|
1016
|
-
|
|
1017
|
-
if (!Number.isFinite(value)) return CODEX_TURN_ASSISTANT_COMPLETION_IDLE_TIMEOUT_MS;
|
|
1018
|
-
return Math.max(1, Math.floor(value));
|
|
1021
|
+
return resolvePositiveIntegerTimeoutMs(value, CODEX_TURN_ASSISTANT_COMPLETION_IDLE_TIMEOUT_MS);
|
|
1019
1022
|
}
|
|
1020
1023
|
function resolveCodexPostToolRawAssistantCompletionIdleTimeoutMs(value, fallbackMs) {
|
|
1021
|
-
|
|
1022
|
-
if (!Number.isFinite(value)) return fallbackMs;
|
|
1023
|
-
return Math.max(1, Math.floor(value));
|
|
1024
|
+
return resolvePositiveIntegerTimeoutMs(value, fallbackMs);
|
|
1024
1025
|
}
|
|
1025
1026
|
function resolveCodexTurnTerminalIdleTimeoutMs(value) {
|
|
1026
|
-
|
|
1027
|
-
if (!Number.isFinite(value)) return CODEX_TURN_TERMINAL_IDLE_TIMEOUT_MS;
|
|
1028
|
-
return Math.max(1, Math.floor(value));
|
|
1027
|
+
return resolvePositiveIntegerTimeoutMs(value, CODEX_TURN_TERMINAL_IDLE_TIMEOUT_MS);
|
|
1029
1028
|
}
|
|
1030
1029
|
//#endregion
|
|
1031
1030
|
//#region extensions/codex/src/app-server/attempt-notification-state.ts
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/codex",
|
|
3
|
-
"version": "2026.5.28-beta.
|
|
3
|
+
"version": "2026.5.28-beta.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/codex",
|
|
9
|
-
"version": "2026.5.28-beta.
|
|
9
|
+
"version": "2026.5.28-beta.3",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@openai/codex": "0.134.0",
|
|
12
12
|
"typebox": "1.1.38",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/codex",
|
|
3
|
-
"version": "2026.5.28-beta.
|
|
3
|
+
"version": "2026.5.28-beta.3",
|
|
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",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"minHostVersion": ">=2026.5.1-beta.1"
|
|
27
27
|
},
|
|
28
28
|
"compat": {
|
|
29
|
-
"pluginApi": ">=2026.5.28-beta.
|
|
29
|
+
"pluginApi": ">=2026.5.28-beta.3"
|
|
30
30
|
},
|
|
31
31
|
"build": {
|
|
32
|
-
"openclawVersion": "2026.5.28-beta.
|
|
32
|
+
"openclawVersion": "2026.5.28-beta.3"
|
|
33
33
|
},
|
|
34
34
|
"release": {
|
|
35
35
|
"publishToClawHub": true,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"npm-shrinkwrap.json"
|
|
47
47
|
],
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"openclaw": ">=2026.5.28-beta.
|
|
49
|
+
"openclaw": ">=2026.5.28-beta.3"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"openclaw": {
|