@openclaw/codex 2026.5.6 → 2026.5.7-beta.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/harness.js
CHANGED
|
@@ -18,7 +18,7 @@ function createCodexAppServerAgentHarness(options) {
|
|
|
18
18
|
};
|
|
19
19
|
},
|
|
20
20
|
runAttempt: async (params) => {
|
|
21
|
-
const { runCodexAppServerAttempt } = await import("./run-attempt-
|
|
21
|
+
const { runCodexAppServerAttempt } = await import("./run-attempt-BaT_FcTv.js");
|
|
22
22
|
return runCodexAppServerAttempt(params, { pluginConfig: options?.pluginConfig });
|
|
23
23
|
},
|
|
24
24
|
compact: async (params) => {
|
|
@@ -2534,6 +2534,7 @@ const CODEX_TURN_TERMINAL_IDLE_TIMEOUT_MS = 30 * 6e4;
|
|
|
2534
2534
|
const CODEX_STEER_ALL_DEBOUNCE_MS = 500;
|
|
2535
2535
|
const LOG_FIELD_MAX_LENGTH = 160;
|
|
2536
2536
|
const CODEX_NATIVE_PROJECT_DOC_BASENAMES = new Set(["agents.md"]);
|
|
2537
|
+
const CODEX_NATIVE_HOOK_RELAY_EVENTS_WITH_APP_SERVER_APPROVALS = CODEX_NATIVE_HOOK_RELAY_EVENTS.filter((event) => event !== "permission_request");
|
|
2537
2538
|
const CODEX_BOOTSTRAP_CONTEXT_ORDER = new Map([
|
|
2538
2539
|
["soul.md", 10],
|
|
2539
2540
|
["identity.md", 20],
|
|
@@ -2684,6 +2685,10 @@ async function runCodexAppServerAttempt(params, options = {}) {
|
|
|
2684
2685
|
const attemptClientFactory = clientFactory;
|
|
2685
2686
|
const pluginConfig = readCodexPluginConfig(options.pluginConfig);
|
|
2686
2687
|
const appServer = resolveCodexAppServerRuntimeOptions({ pluginConfig });
|
|
2688
|
+
const nativeHookRelayEvents = resolveCodexNativeHookRelayEvents({
|
|
2689
|
+
configuredEvents: options.nativeHookRelay?.events,
|
|
2690
|
+
appServer
|
|
2691
|
+
});
|
|
2687
2692
|
const resolvedWorkspace = resolveUserPath(params.workspaceDir);
|
|
2688
2693
|
await fs.mkdir(resolvedWorkspace, { recursive: true });
|
|
2689
2694
|
const sandboxSessionKey = params.sandboxSessionKey?.trim() || params.sessionKey?.trim() || params.sessionId;
|
|
@@ -2852,6 +2857,7 @@ async function runCodexAppServerAttempt(params, options = {}) {
|
|
|
2852
2857
|
});
|
|
2853
2858
|
nativeHookRelay = createCodexNativeHookRelay({
|
|
2854
2859
|
options: options.nativeHookRelay,
|
|
2860
|
+
events: nativeHookRelayEvents,
|
|
2855
2861
|
agentId: sessionAgentId,
|
|
2856
2862
|
sessionId: params.sessionId,
|
|
2857
2863
|
sessionKey: sandboxSessionKey,
|
|
@@ -2861,7 +2867,7 @@ async function runCodexAppServerAttempt(params, options = {}) {
|
|
|
2861
2867
|
});
|
|
2862
2868
|
const threadConfig = mergeCodexConfigInstructions(nativeHookRelay ? buildCodexNativeHookRelayConfig({
|
|
2863
2869
|
relay: nativeHookRelay,
|
|
2864
|
-
events:
|
|
2870
|
+
events: nativeHookRelayEvents,
|
|
2865
2871
|
hookTimeoutSec: options.nativeHookRelay?.hookTimeoutSec
|
|
2866
2872
|
}) : options.nativeHookRelay?.enabled === false ? buildCodexNativeHookRelayDisabledConfig() : void 0, workspaceBootstrapInstructions);
|
|
2867
2873
|
({client, thread} = await withCodexStartupTimeout({
|
|
@@ -3586,12 +3592,16 @@ function createCodexNativeHookRelay(params) {
|
|
|
3586
3592
|
...params.sessionKey ? { sessionKey: params.sessionKey } : {},
|
|
3587
3593
|
...params.config ? { config: params.config } : {},
|
|
3588
3594
|
runId: params.runId,
|
|
3589
|
-
allowedEvents: params.
|
|
3595
|
+
allowedEvents: params.events,
|
|
3590
3596
|
ttlMs: params.options?.ttlMs,
|
|
3591
3597
|
signal: params.signal,
|
|
3592
3598
|
command: { timeoutMs: params.options?.gatewayTimeoutMs }
|
|
3593
3599
|
});
|
|
3594
3600
|
}
|
|
3601
|
+
function resolveCodexNativeHookRelayEvents(params) {
|
|
3602
|
+
if (params.configuredEvents?.length) return params.configuredEvents;
|
|
3603
|
+
return params.appServer.approvalPolicy === "never" ? CODEX_NATIVE_HOOK_RELAY_EVENTS : CODEX_NATIVE_HOOK_RELAY_EVENTS_WITH_APP_SERVER_APPROVALS;
|
|
3604
|
+
}
|
|
3595
3605
|
function buildCodexNativeHookRelayId(params) {
|
|
3596
3606
|
const hash = createHash("sha256");
|
|
3597
3607
|
hash.update("openclaw:codex:native-hook-relay:v1");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/codex",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.7-beta.1",
|
|
4
4
|
"description": "OpenClaw Codex harness and model provider plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"minHostVersion": ">=2026.5.1-beta.1"
|
|
28
28
|
},
|
|
29
29
|
"compat": {
|
|
30
|
-
"pluginApi": ">=2026.5.
|
|
30
|
+
"pluginApi": ">=2026.5.7-beta.1"
|
|
31
31
|
},
|
|
32
32
|
"build": {
|
|
33
|
-
"openclawVersion": "2026.5.
|
|
33
|
+
"openclawVersion": "2026.5.7-beta.1"
|
|
34
34
|
},
|
|
35
35
|
"release": {
|
|
36
36
|
"publishToClawHub": true,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"openclaw.plugin.json"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"openclaw": ">=2026.5.
|
|
48
|
+
"openclaw": ">=2026.5.7-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"openclaw": {
|