@openclaw/codex 2026.5.27 → 2026.5.28-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.
- package/dist/{client-BVK_jmHW.js → client-TfDda-h3.js} +1 -1
- package/dist/{client-factory-fW4Hh9q_.js → client-factory-BPBvbguy.js} +2 -2
- package/dist/{command-handlers-YXjMla3v.js → command-handlers-B8MXR7fh.js} +11 -11
- package/dist/{compact-DIXx9K0Q.js → compact-Dyz0rQLl.js} +10 -8
- package/dist/{computer-use-CakwWGCR.js → computer-use-BRIifWhE.js} +2 -2
- package/dist/{config-0-UN67Qg.js → config-BW7NPdAQ.js} +10 -3
- package/dist/{conversation-binding-CWaG0k5A.js → conversation-binding-D8OO0S9R.js} +7 -7
- package/dist/harness.js +5 -5
- package/dist/index.js +13 -12
- package/dist/media-understanding-provider.js +6 -6
- package/dist/{models-_XwpqjR8.js → models-Dnasi6LR.js} +1 -1
- package/dist/{vision-tools-DqpLmF5H.js → native-hook-relay-DYOYE3qb.js} +691 -14
- package/dist/{notification-correlation-YINts3PA.js → notification-correlation-BVB6XFQM.js} +44 -3
- package/dist/provider.js +2 -2
- package/dist/{request-Dtg0vQrE.js → request-Cj95iOk6.js} +3 -3
- package/dist/{run-attempt-BIbGYJog.js → run-attempt-Jyxv6IjU.js} +7276 -7058
- package/dist/{session-binding-4fRldGaa.js → session-binding-DuJisBZB.js} +1 -1
- package/dist/{shared-client-8kIrP817.js → shared-client-DICbgRn5.js} +21 -3
- package/dist/{side-question-v4nixmAs.js → side-question-280VWjeH.js} +7 -8
- package/dist/{thread-lifecycle-DZAfY4d6.js → thread-lifecycle-1u5ogKG_.js} +4 -4
- package/npm-shrinkwrap.json +96 -1771
- package/package.json +4 -5
- package/dist/dynamic-tools-BSZIYzfP.js +0 -560
- package/dist/test-api.js +0 -51
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as isJsonObject } from "./client-
|
|
1
|
+
import { l as isJsonObject } from "./client-TfDda-h3.js";
|
|
2
2
|
import { asFiniteNumber } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
//#region extensions/codex/src/app-server/rate-limits.ts
|
|
4
4
|
const CODEX_LIMIT_ID = "codex";
|
|
@@ -319,7 +319,7 @@ function formatCodexStatus(probes) {
|
|
|
319
319
|
lines.push(`Account: ${probes.account.ok ? formatCodexAccountSummary(probes.account.value) : formatCodexDisplayText(probes.account.error)}`);
|
|
320
320
|
lines.push(`Rate limits: ${probes.limits.ok ? formatCodexRateLimitSummary(probes.limits.value) : formatCodexDisplayText(probes.limits.error)}`);
|
|
321
321
|
lines.push(`MCP servers: ${probes.mcps.ok ? summarizeArrayLike(probes.mcps.value) : formatCodexDisplayText(probes.mcps.error)}`);
|
|
322
|
-
lines.push(`Skills: ${probes.skills.ok ?
|
|
322
|
+
lines.push(`Skills: ${probes.skills.ok ? summarizeCodexSkills(probes.skills.value) : formatCodexDisplayText(probes.skills.error)}`);
|
|
323
323
|
return lines.join("\n");
|
|
324
324
|
}
|
|
325
325
|
function formatModels(result) {
|
|
@@ -388,6 +388,32 @@ function formatList(response, label) {
|
|
|
388
388
|
return `- ${formatCodexDisplayText(readString$1(record, "name") ?? readString$1(record, "id") ?? JSON.stringify(entry))}`;
|
|
389
389
|
})].join("\n");
|
|
390
390
|
}
|
|
391
|
+
function formatSkills(response) {
|
|
392
|
+
const groups = isJsonObject(response) && Array.isArray(response.data) ? response.data : [];
|
|
393
|
+
if (groups.length === 0) return "Codex skills: none returned.";
|
|
394
|
+
const lines = ["Codex skills:"];
|
|
395
|
+
let renderedSkills = 0;
|
|
396
|
+
let loadErrors = 0;
|
|
397
|
+
for (const group of groups) {
|
|
398
|
+
const record = isJsonObject(group) ? group : {};
|
|
399
|
+
if (Array.isArray(record.errors)) loadErrors += record.errors.length;
|
|
400
|
+
const skills = Array.isArray(record.skills) ? record.skills : [];
|
|
401
|
+
if (skills.length === 0) continue;
|
|
402
|
+
for (const skill of skills) {
|
|
403
|
+
if (isJsonObject(skill) && skill.enabled === false) continue;
|
|
404
|
+
lines.push(`- ${formatCodexSkillEntry(skill)}`);
|
|
405
|
+
renderedSkills += 1;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (renderedSkills === 0) {
|
|
409
|
+
if (loadErrors > 0) return `Codex skills: none returned (${loadErrors} load ${loadErrors === 1 ? "error" : "errors"}).`;
|
|
410
|
+
return "Codex skills: none returned.";
|
|
411
|
+
}
|
|
412
|
+
return lines.join("\n");
|
|
413
|
+
}
|
|
414
|
+
function formatCodexSkillEntry(entry) {
|
|
415
|
+
return `\`${formatCodexDisplayText(readString$1(isJsonObject(entry) ? entry : {}, "name") ?? "<unknown>")}\``;
|
|
416
|
+
}
|
|
391
417
|
const CODEX_RESUME_SAFE_THREAD_ID_PATTERN = /^[A-Za-z0-9._:-]+$/;
|
|
392
418
|
function formatCodexResumeHint(threadId) {
|
|
393
419
|
const safe = formatCodexTextForDisplay(threadId);
|
|
@@ -478,6 +504,21 @@ function summarizeArrayLike(value) {
|
|
|
478
504
|
if (entries.length === 0) return "none returned";
|
|
479
505
|
return `${entries.length}`;
|
|
480
506
|
}
|
|
507
|
+
function summarizeCodexSkills(value) {
|
|
508
|
+
const groups = isJsonObject(value) && Array.isArray(value.data) ? value.data : [];
|
|
509
|
+
if (groups.length === 0) return "none returned";
|
|
510
|
+
let enabledSkills = 0;
|
|
511
|
+
let loadErrors = 0;
|
|
512
|
+
for (const group of groups) {
|
|
513
|
+
if (!isJsonObject(group)) continue;
|
|
514
|
+
if (Array.isArray(group.errors)) loadErrors += group.errors.length;
|
|
515
|
+
if (!Array.isArray(group.skills)) continue;
|
|
516
|
+
enabledSkills += group.skills.filter((skill) => !isJsonObject(skill) || skill.enabled !== false).length;
|
|
517
|
+
}
|
|
518
|
+
if (enabledSkills > 0) return `${enabledSkills}`;
|
|
519
|
+
if (loadErrors > 0) return `none returned (${loadErrors} load ${loadErrors === 1 ? "error" : "errors"})`;
|
|
520
|
+
return "none returned";
|
|
521
|
+
}
|
|
481
522
|
function formatCodexRateLimitSummary(value) {
|
|
482
523
|
const summary = summarizeCodexRateLimits(value);
|
|
483
524
|
if (summary) return formatCodexDisplayText(summary);
|
|
@@ -583,4 +624,4 @@ function readString(record, key) {
|
|
|
583
624
|
return typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
584
625
|
}
|
|
585
626
|
//#endregion
|
|
586
|
-
export {
|
|
627
|
+
export { shouldRefreshCodexRateLimitsForUsageLimitMessage as _, buildHelp as a, formatCodexStatus as c, formatModels as d, formatSkills as f, resolveCodexUsageLimitResetAtMs as g, formatCodexUsageLimitErrorMessage as h, readCodexNotificationTurnId as i, formatComputerUseStatus as l, readString$1 as m, isCodexNotificationForTurn as n, formatAccount as o, formatThreads as p, readCodexNotificationThreadId as r, formatCodexDisplayText as s, describeCodexNotificationCorrelation as t, formatList as u, summarizeCodexAccountUsage as v };
|
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 { c as readCodexPluginConfig, l as resolveCodexAppServerRuntimeOptions } from "./config-
|
|
2
|
+
import { c as readCodexPluginConfig, l as resolveCodexAppServerRuntimeOptions } from "./config-BW7NPdAQ.js";
|
|
3
3
|
import { resolveCodexSystemPromptContribution } from "./prompt-overlay.js";
|
|
4
4
|
import { resolvePluginConfigObject } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
5
5
|
import { normalizeModelCompat } from "openclaw/plugin-sdk/provider-model-shared";
|
|
@@ -123,7 +123,7 @@ async function listModelsBestEffort(params) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
async function listCodexAppServerModelsLazy(options) {
|
|
126
|
-
const { listCodexAppServerModels } = await import("./models-
|
|
126
|
+
const { listCodexAppServerModels } = await import("./models-Dnasi6LR.js").then((n) => n.r);
|
|
127
127
|
return listCodexAppServerModels(options);
|
|
128
128
|
}
|
|
129
129
|
function normalizeTimeoutMs(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as CodexAppServerRpcError } from "./client-
|
|
2
|
-
import {
|
|
3
|
-
import { a as releaseLeasedSharedCodexAppServerClient, c as withTimeout, i as getLeasedSharedCodexAppServerClient, m as resolveCodexAppServerHomeDir, r as createIsolatedCodexAppServerClient } from "./shared-client-
|
|
1
|
+
import { n as CodexAppServerRpcError } from "./client-TfDda-h3.js";
|
|
2
|
+
import { b as buildCodexAppInventoryCacheKey } from "./thread-lifecycle-1u5ogKG_.js";
|
|
3
|
+
import { a as releaseLeasedSharedCodexAppServerClient, c as withTimeout, i as getLeasedSharedCodexAppServerClient, m as resolveCodexAppServerHomeDir, r as createIsolatedCodexAppServerClient } from "./shared-client-DICbgRn5.js";
|
|
4
4
|
import { t as resolveCodexAppServerDirectSandboxBypassBlock } from "./sandbox-guard-CTnEWuor.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
//#region extensions/codex/src/app-server/capabilities.ts
|