@openclaw/codex 2026.5.10-beta.5 → 2026.5.12-beta.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.
Files changed (25) hide show
  1. package/dist/{client-factory-D2P0KD6r.js → client-factory-Bw7M3rdW.js} +1 -1
  2. package/dist/{client-CpksBQ9l.js → client-kySkmL1r.js} +1 -1
  3. package/dist/{command-handlers-iLF1EI-b.js → command-handlers-D9CzemFF.js} +7 -7
  4. package/dist/{compact-BJ1UYEyA.js → compact-DfmGNV9J.js} +3 -3
  5. package/dist/{computer-use-CVLaKaW3.js → computer-use-Br-1hHIR.js} +2 -2
  6. package/dist/{config-C7xdbzrp.js → config-0rd3LnKg.js} +1 -1
  7. package/dist/{conversation-binding-D4XZ-tvV.js → conversation-binding-Dn66MHqg.js} +4 -4
  8. package/dist/harness.js +5 -5
  9. package/dist/index.js +324 -50
  10. package/dist/media-understanding-provider.js +3 -3
  11. package/dist/{models-Bg-Qf5s-.js → models-DqfYggBz.js} +1 -1
  12. package/dist/{plugin-activation-C0soz2YD.js → plugin-activation-PXGqUjwY.js} +2 -2
  13. package/dist/plugin-app-cache-key-DjrZp49q.js +46 -0
  14. package/dist/provider.js +2 -2
  15. package/dist/{request-BCAfJvSg.js → request-DSOsuqmX.js} +3 -2
  16. package/dist/{run-attempt-DZvighJE.js → run-attempt-y4QDhBHf.js} +494 -67
  17. package/dist/{session-binding-UFKjHkKJ.js → session-binding-CDN-Pf8K.js} +1 -1
  18. package/dist/{shared-client-K13b0L1X.js → shared-client-DSSqFqHM.js} +17 -11
  19. package/dist/{side-question-Dh_g53P9.js → side-question-BcATx0hX.js} +7 -7
  20. package/dist/test-api.js +2 -2
  21. package/dist/{thread-lifecycle-i42nWiSS.js → thread-lifecycle-DW0z5zYm.js} +4 -4
  22. package/dist/{vision-tools-Bo0P6gwM.js → vision-tools-DHyuabWn.js} +21 -0
  23. package/openclaw.plugin.json +2 -2
  24. package/package.json +7 -7
  25. /package/dist/{rate-limit-cache-dvhq-4pi.js → rate-limit-cache-BFi-50LG.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { l as resolveCodexPluginsPolicy, t as CODEX_PLUGINS_MARKETPLACE_NAME } from "./config-C7xdbzrp.js";
1
+ import { l as resolveCodexPluginsPolicy, t as CODEX_PLUGINS_MARKETPLACE_NAME } from "./config-0rd3LnKg.js";
2
2
  import "node:fs/promises";
3
3
  import "node:path";
4
4
  var CodexAppInventoryCache = class {
@@ -386,4 +386,4 @@ function activationFailure(identity, reason, diagnostic) {
386
386
  };
387
387
  }
388
388
  //#endregion
389
- export { defaultCodexAppInventoryCache as i, readCodexPluginInventory as n, buildCodexAppInventoryCacheKey as r, ensureCodexPluginActivation as t };
389
+ export { defaultCodexAppInventoryCache as a, buildCodexAppInventoryCacheKey as i, pluginReadParams as n, readCodexPluginInventory as r, ensureCodexPluginActivation as t };
@@ -0,0 +1,46 @@
1
+ import { d as resolveCodexAppServerHomeDir } from "./shared-client-DSSqFqHM.js";
2
+ import { i as buildCodexAppInventoryCacheKey } from "./plugin-activation-PXGqUjwY.js";
3
+ import { createHash } from "node:crypto";
4
+ //#region extensions/codex/src/app-server/plugin-app-cache-key.ts
5
+ function buildCodexPluginAppCacheKey(params) {
6
+ return buildCodexAppInventoryCacheKey({
7
+ codexHome: resolveCodexPluginAppCacheCodexHome(params.appServer, params.agentDir),
8
+ endpoint: resolveCodexPluginAppCacheEndpoint(params.appServer),
9
+ authProfileId: params.authProfileId,
10
+ accountId: params.accountId,
11
+ envApiKeyFingerprint: params.envApiKeyFingerprint,
12
+ appServerVersion: params.appServerVersion
13
+ });
14
+ }
15
+ function resolveCodexPluginAppCacheEndpoint(appServer) {
16
+ return JSON.stringify({
17
+ transport: appServer.start.transport,
18
+ command: appServer.start.command,
19
+ args: appServer.start.args,
20
+ url: appServer.start.url ?? null,
21
+ credentialFingerprint: fingerprintCodexPluginAppCacheCredentials(appServer.start)
22
+ });
23
+ }
24
+ function resolveCodexPluginAppCacheCodexHome(appServer, agentDir) {
25
+ const configuredCodexHome = appServer.start.env?.CODEX_HOME?.trim();
26
+ if (configuredCodexHome) return configuredCodexHome;
27
+ return appServer.start.transport === "stdio" && agentDir ? resolveCodexAppServerHomeDir(agentDir) : void 0;
28
+ }
29
+ function fingerprintCodexPluginAppCacheCredentials(startOptions) {
30
+ const authToken = startOptions.authToken ?? "";
31
+ const headers = Object.entries(startOptions.headers).map(([key, value]) => [key.toLowerCase(), value]).toSorted(([left], [right]) => left.localeCompare(right));
32
+ if (!authToken && headers.length === 0) return null;
33
+ const hash = createHash("sha256");
34
+ hash.update("openclaw:codex:plugin-app-cache-credentials:v1");
35
+ hash.update("\0");
36
+ hash.update(authToken);
37
+ for (const [key, value] of headers) {
38
+ hash.update("\0");
39
+ hash.update(key);
40
+ hash.update("\0");
41
+ hash.update(value);
42
+ }
43
+ return `sha256:${hash.digest("hex")}`;
44
+ }
45
+ //#endregion
46
+ export { buildCodexPluginAppCacheKey as t };
package/dist/provider.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CODEX_APP_SERVER_AUTH_MARKER, CODEX_BASE_URL, CODEX_PROVIDER_ID, FALLBACK_CODEX_MODELS, buildCodexModelDefinition, buildCodexProviderConfig } from "./provider-catalog.js";
2
- import { o as readCodexPluginConfig, s as resolveCodexAppServerRuntimeOptions } from "./config-C7xdbzrp.js";
2
+ import { o as readCodexPluginConfig, s as resolveCodexAppServerRuntimeOptions } from "./config-0rd3LnKg.js";
3
3
  import { resolveCodexSystemPromptContribution } from "./prompt-overlay.js";
4
4
  import { resolvePluginConfigObject } from "openclaw/plugin-sdk/plugin-config-runtime";
5
5
  import { createSubsystemLogger } from "openclaw/plugin-sdk/core";
@@ -123,7 +123,7 @@ async function listModelsBestEffort(params) {
123
123
  }
124
124
  }
125
125
  async function listCodexAppServerModelsLazy(options) {
126
- const { listCodexAppServerModels } = await import("./models-Bg-Qf5s-.js").then((n) => n.r);
126
+ const { listCodexAppServerModels } = await import("./models-DqfYggBz.js").then((n) => n.r);
127
127
  return listCodexAppServerModels(options);
128
128
  }
129
129
  function normalizeTimeoutMs(value) {
@@ -1,5 +1,5 @@
1
- import { n as CodexAppServerRpcError } from "./client-CpksBQ9l.js";
2
- import { a as withTimeout, n as createIsolatedCodexAppServerClient, r as getSharedCodexAppServerClient } from "./shared-client-K13b0L1X.js";
1
+ import { n as CodexAppServerRpcError } from "./client-kySkmL1r.js";
2
+ import { a as withTimeout, n as createIsolatedCodexAppServerClient, r as getSharedCodexAppServerClient } from "./shared-client-DSSqFqHM.js";
3
3
  //#region extensions/codex/src/app-server/capabilities.ts
4
4
  const CODEX_CONTROL_METHODS = {
5
5
  account: "account/read",
@@ -28,6 +28,7 @@ async function requestCodexAppServerJson(params) {
28
28
  startOptions: params.startOptions,
29
29
  timeoutMs,
30
30
  authProfileId: params.authProfileId,
31
+ agentDir: params.agentDir,
31
32
  config: params.config
32
33
  });
33
34
  try {