@openclaw/codex 2026.9.1-beta.1 → 2026.9.2
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 +8 -9
- package/dist/{attempt-client-cleanup-bfsmcQ6m.js → attempt-client-cleanup-Bp1ZOnk2.js} +105 -75
- package/dist/attempt-context-CSazkWns.js +634 -0
- package/dist/{auth-binding-B4FfbcCg.js → auth-binding-Ds_QVm-X.js} +18 -3
- package/dist/{bounded-turn-B7iBUcuP.js → bounded-turn-DxGJRYbY.js} +53 -57
- package/dist/{capabilities-BRMh0aIq.js → capabilities-B1mgvpP8.js} +2 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{command-formatters-DEsIufkt.js → command-formatters-DSbGMXA0.js} +5 -4
- package/dist/{command-handlers-D_-1_qRp.js → command-handlers-DOJvGv6-.js} +243 -148
- package/dist/{compact-BglNFZrQ.js → compact-Y_xBqrHN.js} +109 -65
- package/dist/{config-giW8X0QA.js → config-CyapYSji.js} +328 -374
- package/dist/config-utils-C57JiJrU.js +69 -0
- package/dist/{context-compaction-activity-BOeJf7yo.js → context-compaction-activity-CMla5FPJ.js} +4 -1
- package/dist/{conversation-binding-data-CW2GuupV.js → conversation-binding-data-BiodpIzq.js} +2 -1
- package/dist/doctor-contract-api.js +144 -14
- package/dist/{dynamic-tools-Dnlfa--w.js → dynamic-tools-BwpvTxaX.js} +1119 -1135
- package/dist/{effective-mcp-catalog-CTeGrnfO.js → effective-mcp-catalog-CY9Jn4bA.js} +4 -3
- package/dist/{event-projector-assistant-message-C5-Ds8mA.js → event-projector-assistant-message-B9kp6iGC.js} +15 -6
- package/dist/event-projector-usage-ZqEVbAEY.js +212 -0
- package/dist/{harness-Csz0F-DK.js → harness-Czh2Sdoc.js} +65 -52
- package/dist/harness.js +1 -1
- package/dist/{image-payload-sanitizer-CnfoUPCE.js → image-payload-sanitizer-tupAr-2o.js} +29 -15
- package/dist/index.js +495 -457
- package/dist/{isolated-completion-Cv6FqygM.js → isolated-completion-CRh-51AK.js} +9 -21
- package/dist/{managed-binary-DFYK4DWq.js → managed-binary-DcpnJF9x.js} +117 -80
- package/dist/media-understanding-provider.js +1 -1
- package/dist/model-catalog-DT5vo6qo.js +101 -0
- package/dist/{models-TS3HBU-q.js → models-CcrgSMQR.js} +26 -29
- package/dist/{native-subagent-monitor-4Mfq2HDs.js → native-subagent-monitor-B3bvQGcg.js} +63 -122
- package/dist/{node-exec-server.runtime-BpWqJO1V.js → node-exec-server.runtime-nfbUOtUB.js} +10 -7
- package/dist/{plugin-approval-roundtrip-bUm777tR.js → plugin-approval-roundtrip-aQVdyL5g.js} +30 -3
- package/dist/{plugin-marketplace-discovery-B9DvaAG-.js → plugin-marketplace-discovery-B7gHXJ3d.js} +44 -30
- package/dist/{plugin-metadata-cache-CTCT3w5L.js → plugin-metadata-cache-BwCLTY_U.js} +6 -6
- package/dist/provider-capabilities-BpG9Ltc5.js +101 -0
- package/dist/{rate-limits-C5_D8Gmb.js → rate-limits-Fx_l4eNa.js} +3 -2
- package/dist/{sandbox-guard-kuWTn9C5.js → request-C8H22rPi.js} +195 -2
- package/dist/{run-attempt-DYc0QCBF.js → run-attempt-BzthFQSM.js} +1616 -2634
- package/dist/{runtime-artifact-BvyT1uyd.js → runtime-artifact-Bh_gf6-t.js} +22 -15
- package/dist/{session-binding-Bcynfd-_.js → session-binding-4Ki04sW-.js} +282 -399
- package/dist/session-binding-record-CyaXZvTe.js +270 -0
- package/dist/{session-catalog-DaLKVtpH.js → session-catalog-B47uwekb.js} +812 -504
- package/dist/{session-cli-DMc4oS2w.js → session-cli-BjLhpmS1.js} +1 -1
- package/dist/session-history-DWmMqiqW.js +93 -0
- package/dist/session-history-read-LHldwvyh.js +36 -0
- package/dist/session-history-worker-runtime.js +48 -0
- package/dist/session-history.worker-zZVcx0ME.js +267 -0
- package/dist/session-history.worker.js +2 -0
- package/dist/session-initialization-BCFVnLL4.js +75 -0
- package/dist/{session-permission-policy-BrNH1bjy.js → session-permission-policy-BaueHmSj.js} +2 -2
- package/dist/session-retirement-DNdmYdFc.js +97 -0
- package/dist/{session-upstream-marker-BIkusb95.js → session-upstream-marker-DReTpGz6.js} +20 -4
- package/dist/settled-turn-context-BOM3Y1pl.js +45 -0
- package/dist/settled-turn-finalizer-BI-b1sry.js +115 -0
- package/dist/{shared-client-DKz23hHY.js → shared-client-CKhX2kFt.js} +3659 -847
- package/dist/{side-question-DjA_jsNe.js → side-question-B6DWAw1A.js} +168 -81
- package/dist/{thread-lifecycle-L7oEkTlq.js → thread-lifecycle-DPK30jad.js} +2412 -2145
- package/dist/{thread-ownership-DZeuKH1j.js → thread-ownership-CbucAmmp.js} +27 -16
- package/dist/thread-policy-CTalhWFy.js +105 -0
- package/dist/{plugin-app-cache-key-C1CAdfcP.js → thread-resume-BLgqkUc1.js} +61 -9
- package/dist/{transcript-mirror-DsCMWBca.js → transcript-mirror-_njEB84z.js} +114 -110
- package/dist/transcript-mirror-attestation-Byl34PC-.js +76 -0
- package/dist/transport-stdio-CzTngV0j.js +728 -0
- package/dist/{upstream-prompt-provenance-CFmsKwr9.js → upstream-prompt-provenance-LphB8slG.js} +8 -4
- package/dist/upstream-session-fork-1fwbNKzQ.js +886 -0
- package/dist/{usage-ROIaW3wo.js → usage-i9fv5-4m.js} +3 -3
- package/dist/{web-search-provider.runtime-ClaNPV7N.js → web-search-provider.runtime-DKQn67A7.js} +3 -3
- package/openclaw.plugin.json +1 -30
- package/package.json +6 -6
- package/dist/binding-connection-BMvPX73o.js +0 -45
- package/dist/command-rpc-CCeCkf_v.js +0 -90
- package/dist/event-projector-usage-Bk1I90Bg.js +0 -328
- package/dist/incognito-session-ET_ufDH-.js +0 -2
- package/dist/model-catalog-i9rNBthX.js +0 -48
- package/dist/protocol-validators-VeJxxJ0U.js +0 -2421
- package/dist/request-DXXGHko0.js +0 -157
- package/dist/session-catalog-home-id-BNwAJ9D7.js +0 -18
- package/dist/session-retirement-CcNC3YSY.js +0 -36
- package/dist/settled-turn-finalizer-Dc3ApjU4.js +0 -328
- package/dist/thread-resume-BE9qNEW0.js +0 -30
- package/dist/transport-stdio-DhoGy33Z.js +0 -99
- package/dist/upstream-session-fork-DlaHxSLC.js +0 -326
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as resolvePackagedCodexNativeCommand } from "./managed-binary-DcpnJF9x.js";
|
|
2
|
+
import { n as resolveCodexAppServerSpawnEnv } from "./transport-stdio-CzTngV0j.js";
|
|
3
|
+
import { createHash } from "node:crypto";
|
|
2
4
|
import fs from "node:fs/promises";
|
|
3
5
|
import path from "node:path";
|
|
4
|
-
import {
|
|
6
|
+
import { isPathInside } from "openclaw/plugin-sdk/file-access-runtime";
|
|
5
7
|
import { constants } from "node:fs";
|
|
6
8
|
import { resolveWindowsExecutablePath, resolveWindowsSpawnProgram } from "openclaw/plugin-sdk/windows-spawn";
|
|
7
|
-
import { isPathInside } from "openclaw/plugin-sdk/file-access-runtime";
|
|
8
9
|
//#region extensions/codex/src/app-server/runtime-artifact.ts
|
|
9
10
|
/** Exact local runtime artifact identity for verified Codex setup turns. */
|
|
10
11
|
const ARTIFACT_ID_PREFIX = "codex-app-server:v1:";
|
|
11
12
|
const ARTIFACT_HASH_DOMAIN = "openclaw-codex-app-server-runtime-artifact-v1\0";
|
|
12
|
-
const MAX_ARTIFACT_ID_BYTES =
|
|
13
|
+
const MAX_ARTIFACT_ID_BYTES = 32768;
|
|
13
14
|
const MAX_ARTIFACT_PATH_BYTES = 4096;
|
|
14
15
|
const MAX_ARTIFACT_INVOCATION_PATHS = 8;
|
|
15
16
|
const MAX_ARTIFACT_DEPTH = 64;
|
|
16
17
|
const MAX_ARTIFACT_ENTRIES = 32768;
|
|
17
18
|
const MAX_ARTIFACT_FILES = 8192;
|
|
18
19
|
const MAX_ARTIFACT_TOTAL_BYTES = 1024n * 1024n * 1024n;
|
|
19
|
-
const READ_CHUNK_BYTES =
|
|
20
|
+
const READ_CHUNK_BYTES = 65536;
|
|
20
21
|
const CODE_MODE_HOST_PATH_ENV = "CODEX_CODE_MODE_HOST_PATH";
|
|
21
22
|
const SAFE_NODE_OPTIONS_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
22
23
|
"--enable-network-family-autoselection",
|
|
@@ -363,6 +364,8 @@ async function captureFilesystemDescriptor(params) {
|
|
|
363
364
|
const spawnCwd = path.resolve(params.startOptions.cwd ?? process.cwd());
|
|
364
365
|
const commandPath = await resolveCommandPath(params.startOptions.command, env, spawnCwd);
|
|
365
366
|
const commandRealPath = await fs.realpath(commandPath);
|
|
367
|
+
let nativeCommand = params.spawnIdentity.nativeCommand;
|
|
368
|
+
let nativeCandidate = commandRealPath;
|
|
366
369
|
let invocationPaths;
|
|
367
370
|
if (process.platform === "win32") {
|
|
368
371
|
const program = resolveWindowsSpawnProgram({
|
|
@@ -372,7 +375,10 @@ async function captureFilesystemDescriptor(params) {
|
|
|
372
375
|
execPath: process.execPath,
|
|
373
376
|
packageName: "@openai/codex"
|
|
374
377
|
});
|
|
375
|
-
|
|
378
|
+
const entrypoint = program.leadingArgv[0];
|
|
379
|
+
if (program.resolution === "node-entrypoint" && entrypoint && !nativeCommand) nativeCommand = resolvePackagedCodexNativeCommand(await fs.realpath(entrypoint));
|
|
380
|
+
if (program.resolution === "node-entrypoint" && !nativeCommand) throw new Error("Codex runtime cannot attest a custom Node launcher without its native target");
|
|
381
|
+
nativeCandidate = program.command;
|
|
376
382
|
const invocationCandidates = [
|
|
377
383
|
commandRealPath,
|
|
378
384
|
program.command,
|
|
@@ -383,17 +389,18 @@ async function captureFilesystemDescriptor(params) {
|
|
|
383
389
|
const resolved = await resolveCommandPath(candidate, env, spawnCwd);
|
|
384
390
|
invocationPaths.push(await fs.realpath(resolved));
|
|
385
391
|
}
|
|
386
|
-
} else
|
|
387
|
-
commandRealPath
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
+
} else {
|
|
393
|
+
nativeCommand ??= resolvePackagedCodexNativeCommand(commandRealPath);
|
|
394
|
+
invocationPaths = await resolvePosixInvocationPaths({
|
|
395
|
+
commandRealPath,
|
|
396
|
+
env,
|
|
397
|
+
cwd: spawnCwd,
|
|
398
|
+
nativeCommand
|
|
399
|
+
});
|
|
400
|
+
}
|
|
392
401
|
invocationPaths = [...new Set(invocationPaths)].toSorted(compareArtifactNames);
|
|
393
402
|
if (invocationPaths.length > MAX_ARTIFACT_INVOCATION_PATHS) throw new Error("Codex runtime launcher exceeds the bounded invocation file count");
|
|
394
|
-
const
|
|
395
|
-
if (!nativeCandidate) throw new Error("Codex runtime did not resolve a native executable");
|
|
396
|
-
const nativePath = await fs.realpath(await resolveCommandPath(nativeCandidate, env, spawnCwd));
|
|
403
|
+
const nativePath = await fs.realpath(await resolveCommandPath(nativeCommand ?? nativeCandidate, env, spawnCwd));
|
|
397
404
|
const packageRoot = await resolvePackageRoot(nativePath);
|
|
398
405
|
const configuredCodeModeHost = readEffectiveSpawnEnvironmentValue(env, CODE_MODE_HOST_PATH_ENV)?.trim();
|
|
399
406
|
const adjacentCodeModeHost = path.join(path.dirname(nativePath), process.platform === "win32" ? "codex-code-mode-host.exe" : "codex-code-mode-host");
|