@openclaw/codex 2026.7.1-beta.2 → 2026.7.1-beta.4

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 (39) hide show
  1. package/dist/{app-server-policy-B7hqD3Xj.js → app-server-policy-BUk0GLMy.js} +5 -5
  2. package/dist/{attempt-notifications-tqyQ_Tdn.js → attempt-notifications-BGsEIIDI.js} +5 -40
  3. package/dist/{command-handlers-C9K-KRU-.js → command-handlers-UVniG5Hl.js} +267 -232
  4. package/dist/command-rpc-BjgEPh19.js +784 -0
  5. package/dist/compact-CZzbcygx.js +603 -0
  6. package/dist/{computer-use-CpurU-G9.js → computer-use-DDeySrnb.js} +3 -3
  7. package/dist/{config-C_whBx3M.js → config-CYEDnLJ2.js} +36 -15
  8. package/dist/conversation-binding-data-BHRpYbX3.js +121 -0
  9. package/dist/doctor-contract-api.js +439 -22
  10. package/dist/harness.js +29 -10
  11. package/dist/index.js +1117 -19
  12. package/dist/{media-understanding-provider-BOeoBhEw.js → media-understanding-provider-DgqRvU2_.js} +13 -8
  13. package/dist/media-understanding-provider.js +1 -1
  14. package/dist/{models-DpzY1xpp.js → models-DDmO1zwd.js} +2 -2
  15. package/dist/notification-correlation-Bo7KB3ks.js +35 -0
  16. package/dist/{plugin-app-cache-key-BrZUG9jj.js → plugin-app-cache-key-o-AHbdaf.js} +8 -4
  17. package/dist/{protocol-dh-ETiNd.js → protocol-2POPqAY4.js} +2 -1
  18. package/dist/{protocol-validators-CJiWigAJ.js → protocol-validators-dZQ-UTOa.js} +116 -59
  19. package/dist/{provider-capabilities-wqedK49Z.js → provider-capabilities-gTCwjfmh.js} +2916 -114
  20. package/dist/{provider-nmtMDcGH.js → provider-cc_62eQE.js} +19 -10
  21. package/dist/provider.js +2 -2
  22. package/dist/{request-BQuSQF29.js → request-BcJyl8KL.js} +2 -2
  23. package/dist/{run-attempt-DikbXia_.js → run-attempt-8SPLiDlT.js} +907 -3002
  24. package/dist/{sandbox-guard-pTY2COoC.js → sandbox-guard-DA2TQfZW.js} +3 -3
  25. package/dist/session-binding-Dc03iwRF.js +595 -0
  26. package/dist/session-binding-meta-B7aEMU7g.js +6 -0
  27. package/dist/{shared-client-rR6TDJA3.js → shared-client-4ICy3U6d.js} +892 -103
  28. package/dist/{side-question-Ca9wqmd0.js → side-question-DkjXvYv7.js} +132 -140
  29. package/dist/{thread-lifecycle-D6R40plk.js → thread-lifecycle-BskXnNP-.js} +609 -444
  30. package/dist/{web-search-provider.runtime-B6eZEFmd.js → web-search-provider.runtime-B5F42P7x.js} +3 -3
  31. package/npm-shrinkwrap.json +34 -34
  32. package/openclaw.plugin.json +20 -0
  33. package/package.json +9 -6
  34. package/dist/client-IcTBKEqA.js +0 -732
  35. package/dist/client-factory-DfFu9JH_.js +0 -15
  36. package/dist/compact-CILptrPS.js +0 -278
  37. package/dist/conversation-binding-DOJtUxOy.js +0 -1570
  38. package/dist/rate-limit-cache-C7qmZ0Jh.js +0 -26
  39. package/dist/session-binding-Cm0Gg7Z1.js +0 -339
@@ -1,6 +1,6 @@
1
- import { n as isJsonObject } from "./protocol-dh-ETiNd.js";
2
- import { n as canUseCodexModelBackedApprovalsReviewerForModel } from "./config-C_whBx3M.js";
3
- import { c as hasCodexRateLimitSnapshots, d as summarizeCodexAccountRateLimits, p as summarizeCodexRateLimits } from "./provider-nmtMDcGH.js";
1
+ import { r as isJsonObject } from "./protocol-2POPqAY4.js";
2
+ import { n as canUseCodexModelBackedApprovalsReviewerForModel } from "./config-CYEDnLJ2.js";
3
+ import { f as summarizeCodexAccountRateLimits, l as hasCodexRateLimitSnapshots, m as summarizeCodexRateLimits } from "./provider-cc_62eQE.js";
4
4
  //#region extensions/codex/src/command-formatters.ts
5
5
  /** Formats the combined `/codex status` probe result. */
6
6
  function formatCodexStatus(probes) {
@@ -285,7 +285,7 @@ function readString(record, key) {
285
285
  function resolveCodexAppServerForOpenClawToolPolicy(params) {
286
286
  if (!params.shouldPromote || !params.canUseUntrustedApprovalPolicy || params.appServer.approvalPolicy !== "never") return params.appServer;
287
287
  const explicitMode = params.execPolicy?.mode === "full" || params.pluginConfig.appServer?.mode !== void 0 || isCodexAppServerPolicyMode(params.env.OPENCLAW_CODEX_APP_SERVER_MODE);
288
- const explicitApprovalPolicy = params.pluginConfig.appServer?.approvalPolicy !== void 0 || isCodexAppServerApprovalPolicy(params.env.OPENCLAW_CODEX_APP_SERVER_APPROVAL_POLICY) || params.appServer.approvalPolicySource === "requirements";
288
+ const explicitApprovalPolicy = params.pluginConfig.appServer?.approvalPolicy !== void 0 || isConfiguredCodexAppServerApprovalPolicy(params.env.OPENCLAW_CODEX_APP_SERVER_APPROVAL_POLICY) || params.appServer.approvalPolicySource === "requirements";
289
289
  if (explicitMode || explicitApprovalPolicy) return params.appServer;
290
290
  return {
291
291
  ...params.appServer,
@@ -310,7 +310,7 @@ function resolveCodexAppServerForModelProvider(params) {
310
310
  function isCodexAppServerPolicyMode(value) {
311
311
  return value === "guardian" || value === "yolo";
312
312
  }
313
- function isCodexAppServerApprovalPolicy(value) {
313
+ function isConfiguredCodexAppServerApprovalPolicy(value) {
314
314
  return value === "never" || value === "on-request" || value === "on-failure" || value === "untrusted";
315
315
  }
316
316
  function isCodexModelBackedApprovalsReviewer(value) {
@@ -1,6 +1,5 @@
1
- import { n as isJsonObject } from "./protocol-dh-ETiNd.js";
2
- import { V as isCodexNotificationForTurn } from "./thread-lifecycle-D6R40plk.js";
3
- import { asBoolean } from "openclaw/plugin-sdk/string-coerce-runtime";
1
+ import { r as isJsonObject } from "./protocol-2POPqAY4.js";
2
+ import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
4
3
  //#region extensions/codex/src/app-server/attempt-notifications.ts
5
4
  /**
6
5
  * Predicates and readers for Codex app-server notification envelopes.
@@ -141,10 +140,6 @@ function isNativeToolProgressNotification(notification) {
141
140
  default: return false;
142
141
  }
143
142
  }
144
- /** Returns true for raw native response stream delta events. */
145
- function isNativeResponseStreamDeltaNotification(notification) {
146
- return notification.method.startsWith("response.") && notification.method.endsWith(".delta");
147
- }
148
143
  /** Returns true for file-change patch update notifications. */
149
144
  function isFileChangePatchUpdatedNotification(notification) {
150
145
  return notification.method === "item/fileChange/patchUpdated" && isJsonObject(notification.params);
@@ -169,38 +164,11 @@ function readRawAssistantTextPreview(item) {
169
164
  return contentText ? [contentText] : [];
170
165
  }).join("\n").trim();
171
166
  if (!text) return;
172
- return text.length > 240 ? `${text.slice(0, 237)}...` : text;
173
- }
174
- /** Returns true when notification params correlate to a specific thread/turn. */
175
- function isTurnNotification(value, threadId, turnId) {
176
- return isCodexNotificationForTurn(value, threadId, turnId);
177
- }
178
- /** Returns true when a correlated notification belongs to another active run. */
179
- function isCodexNotificationOutsideActiveRun(correlation) {
180
- if (!Boolean(correlation.threadId || correlation.nestedTurnThreadId)) return false;
181
- if (!correlation.matchesActiveThread) return true;
182
- return Boolean(correlation.turnId || correlation.nestedTurnId) && correlation.matchesActiveTurn === false;
183
- }
184
- /** Checks request params that must contain the current thread and turn ids. */
185
- function isCurrentThreadTurnRequestParams(value, threadId, turnId) {
186
- if (!isJsonObject(value)) return false;
187
- return readString(value, "threadId") === threadId && readString(value, "turnId") === turnId;
188
- }
189
- /** Checks approval request params, accepting `conversationId` as thread id. */
190
- function isCurrentApprovalTurnRequestParams(value, threadId, turnId) {
191
- if (!isJsonObject(value)) return false;
192
- return (readString(value, "threadId") ?? readString(value, "conversationId")) === threadId && readString(value, "turnId") === turnId;
193
- }
194
- /** Checks request params where `turnId` may be omitted or null for the thread. */
195
- function isCurrentThreadOptionalTurnRequestParams(value, threadId, turnId) {
196
- if (!isJsonObject(value) || readString(value, "threadId") !== threadId) return false;
197
- const requestTurnId = value.turnId;
198
- return requestTurnId === null || requestTurnId === void 0 || requestTurnId === turnId;
167
+ return text.length > 240 ? `${truncateUtf16Safe(text, 237)}...` : text;
199
168
  }
200
169
  /** Returns true for app-server error notifications that will retry. */
201
170
  function isRetryableErrorNotification(value) {
202
- if (!isJsonObject(value)) return false;
203
- return readBoolean(value, "willRetry") === true || readBoolean(value, "will_retry") === true;
171
+ return isJsonObject(value) && value.willRetry === true;
204
172
  }
205
173
  /** Returns true for terminal app-server thread status strings. */
206
174
  function isTerminalTurnStatus(status) {
@@ -240,9 +208,6 @@ function readString(record, key) {
240
208
  const value = record[key];
241
209
  return typeof value === "string" ? value : void 0;
242
210
  }
243
- function readBoolean(record, key) {
244
- return asBoolean(record[key]);
245
- }
246
211
  /** Reads a typed Codex item from notification params when id/type are present. */
247
212
  function readCodexNotificationItem(params) {
248
213
  if (!isJsonObject(params) || !isJsonObject(params.item)) return;
@@ -279,4 +244,4 @@ function isNonEmptyString(value) {
279
244
  return typeof value === "string" && value.length > 0;
280
245
  }
281
246
  //#endregion
282
- export { readCodexNotificationItem as C, updateActiveCompletionBlockerItemIds as D, shouldDisarmAssistantCompletionIdleWatch as E, updateActiveTurnItemIds as O, isTurnNotification as S, readRawResponseToolCallId as T, isRawToolOutputCompletionNotification as _, isCodexNotificationOutsideActiveRun as a, isRetryableErrorNotification as b, isCurrentThreadOptionalTurnRequestParams as c, isNativeResponseStreamDeltaNotification as d, isNativeToolProgressNotification as f, isRawReasoningCompletionNotification as g, isRawFunctionToolOutputCompletionNotification as h, isAssistantCompletionReleaseNotification as i, isCurrentThreadTurnRequestParams as l, isRawAssistantProgressNotification as m, describeNotificationActivity as n, isCodexTurnAbortMarkerNotification as o, isPendingOpenClawDynamicToolCompletionNotification as p, isAssistantCommentaryCompletionNotification as r, isCurrentApprovalTurnRequestParams as s, codexExecutionToolName as t, isFileChangePatchUpdatedNotification as u, isReasoningItemCompletionNotification as v, readNotificationItemId as w, isTerminalTurnStatus as x, isReasoningProgressNotification as y };
247
+ export { updateActiveTurnItemIds as S, readCodexNotificationItem as _, isCodexTurnAbortMarkerNotification as a, shouldDisarmAssistantCompletionIdleWatch as b, isPendingOpenClawDynamicToolCompletionNotification as c, isRawReasoningCompletionNotification as d, isRawToolOutputCompletionNotification as f, isTerminalTurnStatus as g, isRetryableErrorNotification as h, isAssistantCompletionReleaseNotification as i, isRawAssistantProgressNotification as l, isReasoningProgressNotification as m, describeNotificationActivity as n, isFileChangePatchUpdatedNotification as o, isReasoningItemCompletionNotification as p, isAssistantCommentaryCompletionNotification as r, isNativeToolProgressNotification as s, codexExecutionToolName as t, isRawFunctionToolOutputCompletionNotification as u, readNotificationItemId as v, updateActiveCompletionBlockerItemIds as x, readRawResponseToolCallId as y };