@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.
- package/dist/{app-server-policy-B7hqD3Xj.js → app-server-policy-BUk0GLMy.js} +5 -5
- package/dist/{attempt-notifications-tqyQ_Tdn.js → attempt-notifications-BGsEIIDI.js} +5 -40
- package/dist/{command-handlers-C9K-KRU-.js → command-handlers-UVniG5Hl.js} +267 -232
- package/dist/command-rpc-BjgEPh19.js +784 -0
- package/dist/compact-CZzbcygx.js +603 -0
- package/dist/{computer-use-CpurU-G9.js → computer-use-DDeySrnb.js} +3 -3
- package/dist/{config-C_whBx3M.js → config-CYEDnLJ2.js} +36 -15
- package/dist/conversation-binding-data-BHRpYbX3.js +121 -0
- package/dist/doctor-contract-api.js +439 -22
- package/dist/harness.js +29 -10
- package/dist/index.js +1117 -19
- package/dist/{media-understanding-provider-BOeoBhEw.js → media-understanding-provider-DgqRvU2_.js} +13 -8
- package/dist/media-understanding-provider.js +1 -1
- package/dist/{models-DpzY1xpp.js → models-DDmO1zwd.js} +2 -2
- package/dist/notification-correlation-Bo7KB3ks.js +35 -0
- package/dist/{plugin-app-cache-key-BrZUG9jj.js → plugin-app-cache-key-o-AHbdaf.js} +8 -4
- package/dist/{protocol-dh-ETiNd.js → protocol-2POPqAY4.js} +2 -1
- package/dist/{protocol-validators-CJiWigAJ.js → protocol-validators-dZQ-UTOa.js} +116 -59
- package/dist/{provider-capabilities-wqedK49Z.js → provider-capabilities-gTCwjfmh.js} +2916 -114
- package/dist/{provider-nmtMDcGH.js → provider-cc_62eQE.js} +19 -10
- package/dist/provider.js +2 -2
- package/dist/{request-BQuSQF29.js → request-BcJyl8KL.js} +2 -2
- package/dist/{run-attempt-DikbXia_.js → run-attempt-8SPLiDlT.js} +907 -3002
- package/dist/{sandbox-guard-pTY2COoC.js → sandbox-guard-DA2TQfZW.js} +3 -3
- package/dist/session-binding-Dc03iwRF.js +595 -0
- package/dist/session-binding-meta-B7aEMU7g.js +6 -0
- package/dist/{shared-client-rR6TDJA3.js → shared-client-4ICy3U6d.js} +892 -103
- package/dist/{side-question-Ca9wqmd0.js → side-question-DkjXvYv7.js} +132 -140
- package/dist/{thread-lifecycle-D6R40plk.js → thread-lifecycle-BskXnNP-.js} +609 -444
- package/dist/{web-search-provider.runtime-B6eZEFmd.js → web-search-provider.runtime-B5F42P7x.js} +3 -3
- package/npm-shrinkwrap.json +34 -34
- package/openclaw.plugin.json +20 -0
- package/package.json +9 -6
- package/dist/client-IcTBKEqA.js +0 -732
- package/dist/client-factory-DfFu9JH_.js +0 -15
- package/dist/compact-CILptrPS.js +0 -278
- package/dist/conversation-binding-DOJtUxOy.js +0 -1570
- package/dist/rate-limit-cache-C7qmZ0Jh.js +0 -26
- package/dist/session-binding-Cm0Gg7Z1.js +0 -339
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as canUseCodexModelBackedApprovalsReviewerForModel } from "./config-
|
|
3
|
-
import {
|
|
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 ||
|
|
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
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
|
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
|
-
|
|
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 {
|
|
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 };
|