@openclaw/codex 2026.5.28 → 2026.5.30-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.
Files changed (25) hide show
  1. package/dist/{client-DMXvboVu.js → client-B08x7Y93.js} +6 -0
  2. package/dist/client-factory-bqIbmRDu.js +20 -0
  3. package/dist/{command-handlers-C2t6-ChO.js → command-handlers-VSWuNdgc.js} +10 -10
  4. package/dist/{compact-Dlnt5G3v.js → compact-DJruF_vy.js} +3 -3
  5. package/dist/{computer-use-Ba4vW9fO.js → computer-use-Cq-EEnLL.js} +1 -1
  6. package/dist/{conversation-binding-CC9XMAwn.js → conversation-binding-DzF_JII7.js} +67 -90
  7. package/dist/harness.js +6 -10
  8. package/dist/index.js +16 -56
  9. package/dist/media-understanding-provider.js +5 -5
  10. package/dist/{models-QT-XOhE7.js → models-DuyStYTT.js} +1 -1
  11. package/dist/{native-hook-relay-B8qM8ZwR.js → native-hook-relay-zY7m-pAu.js} +74 -6
  12. package/dist/{notification-correlation-BDakP_d3.js → notification-correlation-DR9cQN_M.js} +3 -3
  13. package/dist/provider-catalog.js +2 -2
  14. package/dist/provider.js +1 -1
  15. package/dist/{request-CF4f5hWY.js → request-DGOj3AyX.js} +4 -4
  16. package/dist/{run-attempt-CuhGEh0u.js → run-attempt-lD4FLxNV.js} +424 -244
  17. package/dist/{sandbox-guard-mXE4_vE_.js → sandbox-guard-DMCJlzmz.js} +4 -1
  18. package/dist/{session-binding-ueMCn4om.js → session-binding-BGOpicy0.js} +17 -2
  19. package/dist/{shared-client-Duh1bHaP.js → shared-client-2d0XB7wz.js} +32 -3
  20. package/dist/{side-question-B-Cjb9wm.js → side-question-BsyY3v3K.js} +7 -7
  21. package/dist/{thread-lifecycle-Dv9Npl7a.js → thread-lifecycle-BR74qMaY.js} +32 -90
  22. package/npm-shrinkwrap.json +2 -2
  23. package/openclaw.plugin.json +4 -3
  24. package/package.json +4 -4
  25. package/dist/client-factory-qZvhyyXr.js +0 -15
@@ -1,5 +1,6 @@
1
- import { l as isJsonObject } from "./client-DMXvboVu.js";
1
+ import { l as isJsonObject } from "./client-B08x7Y93.js";
2
2
  import { asFiniteNumber } from "openclaw/plugin-sdk/string-coerce-runtime";
3
+ import { MAX_DATE_TIMESTAMP_MS, resolveExpiresAtMsFromEpochSeconds } from "openclaw/plugin-sdk/number-runtime";
3
4
  //#region extensions/codex/src/app-server/rate-limits.ts
4
5
  const CODEX_LIMIT_ID = "codex";
5
6
  const LIMIT_WINDOW_KEYS = ["primary", "secondary"];
@@ -152,9 +153,8 @@ function isRateLimitSnapshot(value) {
152
153
  function readRateLimitWindow(snapshot, key) {
153
154
  const window = snapshot[key];
154
155
  if (!isJsonObject(window)) return;
155
- const resetsAt = readNumber(window, "resetsAt") ?? readNumber(window, "resets_at");
156
156
  return {
157
- ...typeof resetsAt === "number" && Number.isFinite(resetsAt) && resetsAt > 0 ? { resetsAtMs: resetsAt * 1e3 } : { resetsAtMs: 0 },
157
+ resetsAtMs: resolveExpiresAtMsFromEpochSeconds(readNumber(window, "resetsAt") ?? readNumber(window, "resets_at"), { maxMs: MAX_DATE_TIMESTAMP_MS }) ?? 0,
158
158
  ...readOptionalNumberField(window, "usedPercent", "used_percent"),
159
159
  ...readOptionalNumberField(window, "windowDurationMins", "window_duration_mins", "windowMinutes", "window_minutes")
160
160
  };
@@ -35,7 +35,7 @@ function buildCodexModelDefinition(model) {
35
35
  return {
36
36
  id,
37
37
  name: model.displayName?.trim() || id,
38
- api: "openai-codex-responses",
38
+ api: "openai-chatgpt-responses",
39
39
  reasoning: model.supportedReasoningEfforts.length > 0 || shouldDefaultToReasoningModel(id),
40
40
  input: model.inputModalities.includes("image") ? ["text", "image"] : ["text"],
41
41
  cost: {
@@ -57,7 +57,7 @@ function buildCodexProviderConfig(models) {
57
57
  baseUrl: CODEX_BASE_URL,
58
58
  apiKey: CODEX_APP_SERVER_AUTH_MARKER,
59
59
  auth: "token",
60
- api: "openai-codex-responses",
60
+ api: "openai-chatgpt-responses",
61
61
  models: models.map(buildCodexModelDefinition)
62
62
  };
63
63
  }
package/dist/provider.js CHANGED
@@ -123,7 +123,7 @@ async function listModelsBestEffort(params) {
123
123
  }
124
124
  }
125
125
  async function listCodexAppServerModelsLazy(options) {
126
- const { listCodexAppServerModels } = await import("./models-QT-XOhE7.js").then((n) => n.r);
126
+ const { listCodexAppServerModels } = await import("./models-DuyStYTT.js").then((n) => n.r);
127
127
  return listCodexAppServerModels(options);
128
128
  }
129
129
  function normalizeTimeoutMs(value) {
@@ -1,7 +1,7 @@
1
- import { n as CodexAppServerRpcError } from "./client-DMXvboVu.js";
2
- import { b as buildCodexAppInventoryCacheKey } from "./thread-lifecycle-Dv9Npl7a.js";
3
- import { a as releaseLeasedSharedCodexAppServerClient, c as withTimeout, i as getLeasedSharedCodexAppServerClient, m as resolveCodexAppServerHomeDir, r as createIsolatedCodexAppServerClient } from "./shared-client-Duh1bHaP.js";
4
- import { t as resolveCodexAppServerDirectSandboxBypassBlock } from "./sandbox-guard-mXE4_vE_.js";
1
+ import { n as CodexAppServerRpcError } from "./client-B08x7Y93.js";
2
+ import { b as buildCodexAppInventoryCacheKey } from "./thread-lifecycle-BR74qMaY.js";
3
+ import { a as releaseLeasedSharedCodexAppServerClient, c as withTimeout, i as getLeasedSharedCodexAppServerClient, m as resolveCodexAppServerHomeDir, r as createIsolatedCodexAppServerClient } from "./shared-client-2d0XB7wz.js";
4
+ import { t as resolveCodexAppServerDirectSandboxBypassBlock } from "./sandbox-guard-DMCJlzmz.js";
5
5
  import { createHash } from "node:crypto";
6
6
  //#region extensions/codex/src/app-server/capabilities.ts
7
7
  const CODEX_CONTROL_METHODS = {