@openclaw/codex 2026.9.34 → 2026.9.36
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/.setup/{account-usage-runtime-CD8HYWaz.mjs → account-usage-runtime-BOmEegZv.mjs} +3 -3
- package/dist/.setup/{apply-DN-qPbcH.mjs → apply-DhLjXde1.mjs} +8 -8
- package/dist/.setup/{attempt-client-cleanup-93r-CLTi.mjs → attempt-client-cleanup-C9dwStbK.mjs} +5 -5
- package/dist/.setup/{attempt-workspace-context-ejEuxrY1.mjs → attempt-workspace-context-DJrvhJDC.mjs} +1 -1
- package/dist/.setup/{auth-binding-BLWz7stm.mjs → auth-binding-Bnaj0_iV.mjs} +1 -1
- package/dist/.setup/{auth-cache-key-Bs_3kRJD.mjs → auth-cache-key-DWIq3Lzf.mjs} +3 -3
- package/dist/.setup/{binding-connection-DTtN1KrX.mjs → binding-connection-DRPlnIgg.mjs} +2 -2
- package/dist/.setup/{binding-connection.runtime-6TpgD1M6.mjs → binding-connection.runtime-DC3oUqo-.mjs} +1 -1
- package/dist/.setup/{bounded-turn-I8Vb-qq3.mjs → bounded-turn-Csc9Qvpm.mjs} +11 -11
- package/dist/.setup/{bounded-turn-isolation-B8K_ylqk.mjs → bounded-turn-isolation-Ce-oOk-D.mjs} +2 -2
- package/dist/.setup/{build-state--SrHyc6r.mjs → build-state-CmeL24P5.mjs} +1 -1
- package/dist/.setup/{client-CyquSiJ2.mjs → client-BdNoDUaQ.mjs} +268 -7
- package/dist/.setup/{command-dispatch-BPLz7tlx.mjs → command-dispatch-9sYDmuIo.mjs} +1 -1
- package/dist/.setup/{command-handlers-95-WVrcl.mjs → command-handlers-C-uyeN_H.mjs} +22 -22
- package/dist/.setup/{command-rpc-BDfCWgc_.mjs → command-rpc-BHE3OG7z.mjs} +11 -11
- package/dist/.setup/{compact-5zzFlH-W.mjs → compact-DsrYq-_j.mjs} +12 -12
- package/dist/.setup/{config-DKhXquav.mjs → config-DqmrqI23.mjs} +2 -2
- package/dist/.setup/{config-runtime-C0NbLms1.mjs → config-runtime-DDhvIeUC.mjs} +1 -1
- package/dist/.setup/{conversation-binding-C-0jWdSo.mjs → conversation-binding-CfIcWNVS.mjs} +15 -15
- package/dist/.setup/{conversation-binding-data-C746z5Pn.mjs → conversation-binding-data-DlsG-dQu.mjs} +1 -1
- package/dist/.setup/{conversation-control-BEotI-gH.mjs → conversation-control-BWzVNh-v.mjs} +5 -5
- package/dist/.setup/{dynamic-tools-D3NAwGw3.mjs → dynamic-tools-CAWsGyFZ.mjs} +7 -7
- package/dist/.setup/{effective-mcp-catalog-C0DfQNYU.mjs → effective-mcp-catalog-BYzIV1DD.mjs} +4 -4
- package/dist/.setup/{ephemeral-turn-ksZ9NfsS.mjs → ephemeral-turn-CIcaAzR4.mjs} +2 -2
- package/dist/.setup/{event-projector-assistant-message-BmWQXFLV.mjs → event-projector-assistant-message-CDe3ohIy.mjs} +1 -1
- package/dist/.setup/{isolated-completion-Ci27cKqA.mjs → isolated-completion-DLV0kBu2.mjs} +6 -6
- package/dist/.setup/{managed-binary-B6hQ1UKR.mjs → managed-binary-Ckgvm_4V.mjs} +1 -1
- package/dist/.setup/{model-catalog-qzAfnHzR.mjs → model-catalog-CbhJ0pMa.mjs} +7 -7
- package/dist/.setup/{models-BbEE4EWS.mjs → models-DXVC1KpU.mjs} +3 -3
- package/dist/.setup/{native-auth-BN-BD2AV.mjs → native-auth-BNGz77PF.mjs} +3 -3
- package/dist/.setup/{native-subagent-monitor-B9aAqfnU.mjs → native-subagent-monitor-GOGINNw0.mjs} +116 -27
- package/dist/.setup/{native-subagent-pending-assignments-DwkCzLvD.mjs → native-subagent-pending-assignments-XHNn4k5q.mjs} +51 -14
- package/dist/.setup/{native-task-assignments-DMQ0g3hu.mjs → native-task-assignments-Dna952zv.mjs} +2 -2
- package/dist/.setup/{node-cli-sessions-HC4W6FLI.mjs → node-cli-sessions-BwhIYgCZ.mjs} +2 -2
- package/dist/.setup/{node-exec-server.runtime-BS7jsvK-.mjs → node-exec-server.runtime-9IZtsOmo.mjs} +2 -2
- package/dist/.setup/{plan-DTyFfTkk.mjs → plan-BB5rf7qh.mjs} +5 -5
- package/dist/.setup/{plugin-activation-cNHRfaxU.mjs → plugin-activation-BaDnJKJd.mjs} +2 -2
- package/dist/.setup/{plugin-inventory-Cky2XJUw.mjs → plugin-inventory-B4uqIw4J.mjs} +1 -1
- package/dist/.setup/{plugin-metadata-cache-Q4ZFn6UH.mjs → plugin-metadata-cache-DuaAXtXC.mjs} +7 -7
- package/dist/.setup/{provider-Cnr_icbk.mjs → provider-BEDFjTWv.mjs} +4 -4
- package/dist/.setup/{provider-capabilities-ByhBukaD.mjs → provider-capabilities-DcF-V_3D.mjs} +2 -2
- package/dist/.setup/{request-DxKAfWyy.mjs → request-DZKa6YSy.mjs} +5 -5
- package/dist/.setup/{run-attempt-BZKhzSrb.mjs → run-attempt-EMGdmQqt.mjs} +75 -40
- package/dist/.setup/{runtime-artifact-D7lCXdhV.mjs → runtime-artifact-Riq878B2.mjs} +3 -3
- package/dist/.setup/{runtime-artifact-connection-D68qQn1m.mjs → runtime-artifact-connection-Bjv8P6Sx.mjs} +2 -2
- package/dist/.setup/{sandbox-guard-DjCz2eOw.mjs → sandbox-guard-OIYEmTRF.mjs} +1 -1
- package/dist/.setup/{session-binding-DGCYAfvD.mjs → session-binding-Fn7Ekzuv.mjs} +19 -4
- package/dist/.setup/{session-binding-record-Oe9L-CNY.mjs → session-binding-record-CUKpUKVm.mjs} +1 -1
- package/dist/.setup/{session-binding-sidecars-jo6H8dFr.mjs → session-binding-sidecars-BuEALwJY.mjs} +1 -1
- package/dist/.setup/{session-catalog-adoption-BU_pHWG7.mjs → session-catalog-adoption-58bqOngU.mjs} +5 -5
- package/dist/.setup/{session-catalog-BaVqm4-Q.mjs → session-catalog-apN5C2Oz.mjs} +22 -22
- package/dist/.setup/{session-catalog-archive-spHfihri.mjs → session-catalog-archive-BM9gCB82.mjs} +5 -5
- package/dist/.setup/{session-catalog-events-D9zC7gRb.mjs → session-catalog-events-DHPtqvWu.mjs} +3 -3
- package/dist/.setup/{session-catalog-index-CNKpHanP.mjs → session-catalog-index-JJogsGuf.mjs} +8 -8
- package/dist/.setup/{session-catalog-index-order-BcQpHks3.mjs → session-catalog-index-order-DQhmgM3b.mjs} +1 -1
- package/dist/.setup/{session-catalog-index-state-TeO7EyO-.mjs → session-catalog-index-state-DhLoAnfy.mjs} +3 -3
- package/dist/.setup/{session-catalog-limits-DDxOsQeC.mjs → session-catalog-limits-bz5ZvjtY.mjs} +1 -1
- package/dist/.setup/{session-catalog-list-request-CvtxrYSe.mjs → session-catalog-list-request-A1wN4sKw.mjs} +2 -2
- package/dist/.setup/{session-catalog-native-projection-DhId_sl8.mjs → session-catalog-native-projection-C_xvyztm.mjs} +4 -4
- package/dist/.setup/{session-catalog-node-adoption-DgXvSGu0.mjs → session-catalog-node-adoption-BdS7zDuY.mjs} +2 -2
- package/dist/.setup/{session-catalog-node-continue-DjKXHBbi.mjs → session-catalog-node-continue-XFJG3JGh.mjs} +5 -5
- package/dist/.setup/{session-catalog-node-lookup-CtAXI5W5.mjs → session-catalog-node-lookup-D9AP5D5o.mjs} +2 -2
- package/dist/.setup/{session-catalog-parsing-CPGaPYr-.mjs → session-catalog-parsing-CnEH565l.mjs} +1 -1
- package/dist/.setup/{session-catalog-projection-DcqN7DuI.mjs → session-catalog-projection-C6PSmTcX.mjs} +4 -4
- package/dist/.setup/{session-cli-TEVHpWaE.mjs → session-cli-B5RvT_Rs.mjs} +3 -3
- package/dist/.setup/{session-history-import-WhX-X33a.mjs → session-history-import-tquj9DCz.mjs} +4 -4
- package/dist/.setup/{session-initialization-6aveB9qb.mjs → session-initialization-DefAI1_5.mjs} +2 -2
- package/dist/.setup/{session-permission-policy-Ci_fVX6y.mjs → session-permission-policy-7lM447LW.mjs} +1 -1
- package/dist/.setup/{session-retirement-CW0ciVbW.mjs → session-retirement-Bdygfnxa.mjs} +6 -6
- package/dist/.setup/{settled-turn-finalizer-DlPT87wW.mjs → settled-turn-finalizer-BzVjkwgJ.mjs} +7 -7
- package/dist/.setup/{shared-client-tOOyadmg.mjs → shared-client-B__jQti1.mjs} +44 -31
- package/dist/.setup/{shared-client-lifecycle-CJ0lYVCW.mjs → shared-client-lifecycle-wN_lOZkB.mjs} +24 -2
- package/dist/.setup/{side-question-BbnuMFTT.mjs → side-question-B25zswMS.mjs} +15 -15
- package/dist/.setup/{source-Cr8STZpF.mjs → source-DuNxTQoz.mjs} +4 -4
- package/dist/.setup/{thread-lifecycle-DcNw9n7E.mjs → thread-lifecycle-Cw5Nsciw.mjs} +13 -13
- package/dist/.setup/{thread-ownership-DDban_4i.mjs → thread-ownership-Cxb01Uwq.mjs} +4 -4
- package/dist/.setup/{thread-policy-TTAb-1yF.mjs → thread-policy-BHr4QsDO.mjs} +3 -3
- package/dist/.setup/{thread-requests-DmkmrGIt.mjs → thread-requests-D-GTNAnZ.mjs} +8 -8
- package/dist/.setup/{thread-resume-eo3IhOhh.mjs → thread-resume-BNdEFZpM.mjs} +5 -5
- package/dist/.setup/{transcript-mirror-kxmCYsuF.mjs → transcript-mirror-BRNhyb1o.mjs} +1 -1
- package/dist/.setup/{transport-stdio-CbutOIEh.mjs → transport-stdio-DU8dIOCj.mjs} +1 -1
- package/dist/.setup/{transport-websocket-BTBE-LD9.mjs → transport-websocket-zu3jRPnu.mjs} +1 -1
- package/dist/.setup/{upstream-session-fork-BbUNlJPZ.mjs → upstream-session-fork-D8rqW9ad.mjs} +14 -14
- package/dist/.setup/{usage-CDiI_zkr.mjs → usage-D_W8Be4u.mjs} +3 -3
- package/dist/.setup/{usage-limit-error-BLnJh1mB.mjs → usage-limit-error-CpasNGjp.mjs} +1 -1
- package/dist/.setup/{web-search-provider.runtime-B_E2kpZN.mjs → web-search-provider.runtime-CyRLuVOO.mjs} +2 -2
- package/dist/.source-module-urls/0560e3825cf513bbe9e095a85951c1215dfced0c1e581c5f32b007a3e759636e.json +1 -0
- package/dist/.source-module-urls/89af8e902f34481d87fbb497cd5ac223d504b1fa22d95d3038b6d33a3b97c3da.json +1 -0
- package/dist/api.js +3 -3
- package/dist/catalog-page.worker.js +338 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/doctor-contract-api.js +5 -5
- package/dist/harness.js +19 -19
- package/dist/index.js +52 -42
- package/dist/media-understanding-provider.js +2 -2
- package/dist/migration-provider-api.js +1 -1
- package/dist/provider-discovery.js +1 -1
- package/package.json +5 -5
- package/dist/.setup/client-catalog-response-B9pLl58Y.mjs +0 -285
package/dist/.setup/{account-usage-runtime-CD8HYWaz.mjs → account-usage-runtime-BOmEegZv.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as isCodexAppServerProxyLaunch } from "./launch-args-DbFCehO7.mjs";
|
|
2
2
|
import { t as buildCodexAppServerUsageSnapshot } from "./rate-limits-B7-X2TgG.mjs";
|
|
3
|
-
import { n as readCodexAppServerUsage } from "./request-
|
|
4
|
-
import "./config-
|
|
5
|
-
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-
|
|
3
|
+
import { n as readCodexAppServerUsage } from "./request-DZKa6YSy.mjs";
|
|
4
|
+
import "./config-DqmrqI23.mjs";
|
|
5
|
+
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
6
6
|
import { a as resolveCodexAppServerAuthProfileStore } from "./auth-profile-B0okYl2D.mjs";
|
|
7
7
|
import { isDeepStrictEqual } from "node:util";
|
|
8
8
|
import { listAgentIds, resolveAgentDir } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as isOpenAiCuratedMarketplace, u as CODEX_PLUGINS_MARKETPLACE_NAME } from "./plugin-inventory-
|
|
1
|
+
import { n as isOpenAiCuratedMarketplace, u as CODEX_PLUGINS_MARKETPLACE_NAME } from "./plugin-inventory-B4uqIw4J.mjs";
|
|
2
2
|
import { d as readCodexPluginConfig } from "./config-parsing-b088LyhT.mjs";
|
|
3
|
-
import { s as resolveCodexAppServerFallbackApiKeyCacheKey } from "./auth-cache-key-
|
|
3
|
+
import { s as resolveCodexAppServerFallbackApiKeyCacheKey } from "./auth-cache-key-DWIq3Lzf.mjs";
|
|
4
4
|
import { a as defaultCodexAppInventoryCache, r as buildCodexPluginAppCacheKey } from "./plugin-app-cache-key-BL9B5H0L.mjs";
|
|
5
|
-
import { i as requestCodexAppServerJson } from "./request-
|
|
6
|
-
import "./config-
|
|
7
|
-
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-
|
|
5
|
+
import { i as requestCodexAppServerJson } from "./request-DZKa6YSy.mjs";
|
|
6
|
+
import "./config-DqmrqI23.mjs";
|
|
7
|
+
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
8
8
|
import { i as resolveCodexAppServerAuthProfileIdForAgent } from "./auth-profile-B0okYl2D.mjs";
|
|
9
|
-
import { c as getLeasedSharedCodexAppServerClient, h as releaseLeasedSharedCodexAppServerClient, nt as resolveCodexAppServerAuthAccountCacheKey, o as clearSharedCodexAppServerClientIfCurrentAndWait } from "./shared-client-
|
|
10
|
-
import { t as ensureCodexPluginActivation } from "./plugin-activation-
|
|
11
|
-
import { CODEX_PLUGIN_CONFIG_PATH, buildCodexMigrationPlan, buildCodexPluginsConfigValue, hasCodexPluginConfigConflict, n as resolveCodexConfigPatchMode, readCodexPluginMigrationConfigEntry, t as createCodexAuthItemApplier } from "./plan-
|
|
9
|
+
import { c as getLeasedSharedCodexAppServerClient, h as releaseLeasedSharedCodexAppServerClient, nt as resolveCodexAppServerAuthAccountCacheKey, o as clearSharedCodexAppServerClientIfCurrentAndWait } from "./shared-client-B__jQti1.mjs";
|
|
10
|
+
import { t as ensureCodexPluginActivation } from "./plugin-activation-BaDnJKJd.mjs";
|
|
11
|
+
import { CODEX_PLUGIN_CONFIG_PATH, buildCodexMigrationPlan, buildCodexPluginsConfigValue, hasCodexPluginConfigConflict, n as resolveCodexConfigPatchMode, readCodexPluginMigrationConfigEntry, t as createCodexAuthItemApplier } from "./plan-BB5rf7qh.mjs";
|
|
12
12
|
import { uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
13
13
|
import { parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
14
14
|
import path from "node:path";
|
package/dist/.setup/{attempt-client-cleanup-93r-CLTi.mjs → attempt-client-cleanup-C9dwStbK.mjs}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { E as readCodexTurnCompletedNotification, a as isCodexAppServerBrokenPipeError, d as isCodexAppServerRequestTimeoutError, l as isCodexAppServerOverloadError } from "./client-BdNoDUaQ.mjs";
|
|
1
2
|
import { i as isJsonObject } from "./protocol-CANUwXJ3.mjs";
|
|
2
|
-
import {
|
|
3
|
+
import { f as retireSharedCodexAppServerClientIfCurrent } from "./shared-client-lifecycle-wN_lOZkB.mjs";
|
|
3
4
|
import { n as CodexAppServerRpcError } from "./rpc-error-BlD2vuzn.mjs";
|
|
4
5
|
import { n as waitForPromiseOrAbort, t as abortReason } from "./timeout-CXOfNoaX.mjs";
|
|
5
|
-
import { Y as unsubscribeCodexAppServerLiveThread, mt as isCodexAppServerStartupError, u as isCodexAppServerStartSelectionChangedError } from "./shared-client-
|
|
6
|
-
import {
|
|
7
|
-
import { t as __exportAll } from "./session-binding-sidecars-jo6H8dFr.mjs";
|
|
6
|
+
import { Y as unsubscribeCodexAppServerLiveThread, mt as isCodexAppServerStartupError, u as isCodexAppServerStartSelectionChangedError } from "./shared-client-B__jQti1.mjs";
|
|
7
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
8
8
|
import { normalizeOptionalString, readStringField } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { AsyncResource } from "node:async_hooks";
|
|
10
10
|
import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
|
|
11
|
-
import { sanitizeTerminalText } from "openclaw/plugin-sdk/text-chunking";
|
|
12
11
|
import { AgentHarnessPreflightError, embeddedAgentLog } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
13
12
|
import { redactSensitiveText } from "openclaw/plugin-sdk/logging-core";
|
|
13
|
+
import { sanitizeTerminalText } from "openclaw/plugin-sdk/text-chunking";
|
|
14
14
|
//#region extensions/codex/src/app-server/event-projector-items.ts
|
|
15
15
|
const itemStatuses = /* @__PURE__ */ new Map([
|
|
16
16
|
["completed", "completed"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as flattenCodexDynamicToolFunctions } from "./protocol-CANUwXJ3.mjs";
|
|
2
|
-
import { lt as isMessageOnlyCodexSourceReply } from "./thread-requests-
|
|
2
|
+
import { lt as isMessageOnlyCodexSourceReply } from "./thread-requests-D-GTNAnZ.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { buildAgentWorkspaceInstructionSnapshot, buildBootstrapContextForFiles, embeddedAgentLog, prepareAgentWorkspaceContext } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
5
5
|
import { resolveAgentWorkspaceMemoryRouting, shouldIncludeAgentHarnessRuntimeContext } from "openclaw/plugin-sdk/agent-harness-attempt-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as isCodexResponsesOAuthCredential, o as resolveCodexResponsesOAuthProfileFingerprint } from "./responses-oauth-twnuTaAa.mjs";
|
|
2
|
-
import { t as __exportAll } from "./session-binding-sidecars-
|
|
2
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
3
3
|
import { resolveApiKeyForProfile } from "openclaw/plugin-sdk/agent-runtime";
|
|
4
4
|
import { fingerprintResolvedAuthProfileCredential } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
5
5
|
import { resolveOpenAICodexAuthIdentity } from "openclaw/plugin-sdk/provider-auth";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as defineCodexBuildState } from "./build-state
|
|
2
|
-
import { u as resolveMacOSDesktopCodexAppPathCandidates } from "./managed-binary-
|
|
3
|
-
import { n as resolveCodexAppServerSpawnEnv } from "./transport-stdio-
|
|
1
|
+
import { n as defineCodexBuildState } from "./build-state-CmeL24P5.mjs";
|
|
2
|
+
import { u as resolveMacOSDesktopCodexAppPathCandidates } from "./managed-binary-Ckgvm_4V.mjs";
|
|
3
|
+
import { n as resolveCodexAppServerSpawnEnv } from "./transport-stdio-DU8dIOCj.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import fs, { constants, existsSync, watch } from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./session-binding-sidecars-
|
|
1
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
2
2
|
import { AgentHarnessPreflightError } from "openclaw/plugin-sdk/agent-harness-registration";
|
|
3
3
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
4
4
|
//#region extensions/codex/src/app-server/binding-connection.ts
|
|
@@ -44,7 +44,7 @@ function requireCodexSupervisionModelSelection(binding) {
|
|
|
44
44
|
}
|
|
45
45
|
/** Registration publishes the resolver; connection policy loads only for an actual request. */
|
|
46
46
|
async function resolveCodexBindingAppServerConnection(params) {
|
|
47
|
-
return (await import("./binding-connection.runtime-
|
|
47
|
+
return (await import("./binding-connection.runtime-DC3oUqo-.mjs")).resolveCodexBindingAppServerConnection(params, catalogHomes.tryGetRuntime());
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
export { setCodexCatalogConnectionHomeResolver as a, resolveCodexBindingAppServerConnection as i, binding_connection_exports as n, requireCodexSupervisionModelSelection as r, assertCodexSessionRuntimeOwnership as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as readCodexPluginConfig } from "./config-parsing-b088LyhT.mjs";
|
|
2
2
|
import { n as resolveCodexAppServerLocalHomeDir } from "./auth-start-options-BPIPeEX8.mjs";
|
|
3
3
|
import { t as buildCodexAppServerConnectionFingerprint } from "./plugin-app-cache-key-BL9B5H0L.mjs";
|
|
4
|
-
import { n as resolveCodexAppServerRuntimeOptions, r as resolveCodexSupervisionAppServerRuntimeOptions } from "./config-runtime-
|
|
4
|
+
import { n as resolveCodexAppServerRuntimeOptions, r as resolveCodexSupervisionAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
5
5
|
//#region extensions/codex/src/app-server/binding-connection.runtime.ts
|
|
6
6
|
/** Resolves connection and auth ownership exclusively from the private thread binding. */
|
|
7
7
|
async function resolveCodexBindingAppServerConnection(params, discoverHomes) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { S as assertCodexTurnStartResponse, T as readCodexErrorNotification, k as createCodexElicitationResponse, x as assertCodexThreadStartResponse } from "./client-BdNoDUaQ.mjs";
|
|
1
2
|
import { i as isJsonObject } from "./protocol-CANUwXJ3.mjs";
|
|
2
3
|
import { a as resolveCodexPrivateLauncher, i as readCodexAppServerConfigOptions } from "./launch-args-DbFCehO7.mjs";
|
|
3
4
|
import { d as readCodexEffectiveConfig } from "./config-options-CzyWLTJt.mjs";
|
|
4
|
-
import "./config-
|
|
5
|
-
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-
|
|
6
|
-
import { u as isCodexAppServerStartSelectionChangedError } from "./shared-client-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { a as resolveCodexPromptError } from "./usage-limit-error-BLnJh1mB.mjs";
|
|
5
|
+
import "./config-DqmrqI23.mjs";
|
|
6
|
+
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
7
|
+
import { u as isCodexAppServerStartSelectionChangedError } from "./shared-client-B__jQti1.mjs";
|
|
8
|
+
import { o as closeCodexStartupClientBestEffort, s as interruptCodexTurnAndWaitBestEffort, t as CODEX_APP_SERVER_INTERRUPT_TIMEOUT_MS } from "./attempt-client-cleanup-C9dwStbK.mjs";
|
|
9
|
+
import { t as CodexEphemeralTurn } from "./ephemeral-turn-CIcaAzR4.mjs";
|
|
10
|
+
import { i as readModelListResult } from "./models-DXVC1KpU.mjs";
|
|
11
|
+
import { R as attestCodexRestrictedToolSurfaceMcpServersDisabled, St as mergeCodexThreadConfigs, l as readCodexInheritedMcpServerNames, n as buildCodexRingZeroThreadConfigPatch, r as buildCodexRuntimeThreadConfig, t as assertCodexManagedRequirementsDoNotOverrideToolPolicy } from "./thread-requests-D-GTNAnZ.mjs";
|
|
12
|
+
import { S as resolveCodexAppServerReasoningEffort } from "./thread-lifecycle-Cw5Nsciw.mjs";
|
|
13
|
+
import { a as resolveCodexPromptError } from "./usage-limit-error-CpasNGjp.mjs";
|
|
14
14
|
import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
|
|
15
15
|
import { parse } from "smol-toml";
|
|
16
16
|
import path from "node:path";
|
|
@@ -144,7 +144,7 @@ async function runBoundedCodexAppServerTurnInWorkspace(params, appServer, worksp
|
|
|
144
144
|
assertCurrent: params.assertCurrent,
|
|
145
145
|
...params.signal ? { abandonSignal: params.signal } : {}
|
|
146
146
|
};
|
|
147
|
-
const client = params.options.clientFactory ? await params.options.clientFactory(clientOptions) : await import("./shared-client-
|
|
147
|
+
const client = params.options.clientFactory ? await params.options.clientFactory(clientOptions) : await import("./shared-client-B__jQti1.mjs").then((n) => n.v).then(({ createIsolatedCodexAppServerClient }) => createIsolatedCodexAppServerClient({
|
|
148
148
|
...clientOptions,
|
|
149
149
|
authProfileStore: params.authProfileStore
|
|
150
150
|
}));
|
package/dist/.setup/{bounded-turn-isolation-B8K_ylqk.mjs → bounded-turn-isolation-Ce-oOk-D.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as readCodexPluginConfig } from "./config-parsing-b088LyhT.mjs";
|
|
2
2
|
import { n as isCodexAppServerProxyLaunch } from "./launch-args-DbFCehO7.mjs";
|
|
3
3
|
import { i as resolveCodexAppServerHomeScope } from "./config-options-CzyWLTJt.mjs";
|
|
4
|
-
import "./config-
|
|
5
|
-
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-
|
|
4
|
+
import "./config-DqmrqI23.mjs";
|
|
5
|
+
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
6
6
|
//#region extensions/codex/src/app-server/bounded-turn-isolation.ts
|
|
7
7
|
function resolveCodexBoundedTurnIsolation(options) {
|
|
8
8
|
const pluginConfig = readCodexPluginConfig(options.pluginConfig);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { a as stringifyCodexAppServerMessage, c as isRpcResponse, i as readCodexCatalogDecodeRoute, n as projectCodexCatalogMessage, o as CodexAppServerMessageDecoder, r as listenCodexAppServerLines, s as redactCodexAppServerLinePreview } from "./client-catalog-response-B9pLl58Y.mjs";
|
|
2
1
|
import { i as isJsonObject } from "./protocol-CANUwXJ3.mjs";
|
|
3
|
-
import { c as MIN_SUPPORTED_CODEX_APP_SERVER_VERSION, s as CODEX_APP_SERVER_VERSION } from "./managed-binary-
|
|
4
|
-
import { a as closeCodexAppServerTransportAndWait, i as closeCodexAppServerTransport, o as hasCodexAppServerNaturalExit, t as createStdioTransport } from "./transport-stdio-
|
|
2
|
+
import { c as MIN_SUPPORTED_CODEX_APP_SERVER_VERSION, s as CODEX_APP_SERVER_VERSION } from "./managed-binary-Ckgvm_4V.mjs";
|
|
3
|
+
import { a as closeCodexAppServerTransportAndWait, i as closeCodexAppServerTransport, o as hasCodexAppServerNaturalExit, t as createStdioTransport } from "./transport-stdio-DU8dIOCj.mjs";
|
|
5
4
|
import { n as CodexAppServerRpcError, t as CODEX_APP_SERVER_OVERLOADED_ERROR_CODE } from "./rpc-error-BlD2vuzn.mjs";
|
|
6
|
-
import { f as recordCodexCatalogResponseSource, i as reuseCodexCatalogPreview, o as closeCodexCatalogClientSource, s as codexCatalogSourceForClient } from "./session-catalog-native-projection-
|
|
7
|
-
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-
|
|
5
|
+
import { f as recordCodexCatalogResponseSource, i as reuseCodexCatalogPreview, n as projectCodexCatalogNativeResponse, o as closeCodexCatalogClientSource, r as projectCodexCatalogNativeThread, s as codexCatalogSourceForClient } from "./session-catalog-native-projection-C_xvyztm.mjs";
|
|
6
|
+
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
8
7
|
import { codexCatalogPageWorkerEntrypoint } from "../catalog-page-worker-entrypoint.js";
|
|
9
|
-
import { t as createWebSocketTransport } from "./transport-websocket-
|
|
10
|
-
import { t as __exportAll } from "./session-binding-sidecars-
|
|
8
|
+
import { t as createWebSocketTransport } from "./transport-websocket-zu3jRPnu.mjs";
|
|
9
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
11
10
|
import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
12
11
|
import { randomUUID } from "node:crypto";
|
|
13
12
|
import { normalizeJsonSchemaForTypeBox } from "openclaw/plugin-sdk/json-schema-runtime";
|
|
@@ -20,9 +19,271 @@ import { hasPendingInternalDiagnosticEvent } from "openclaw/plugin-sdk/diagnosti
|
|
|
20
19
|
import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
|
|
21
20
|
import { OPENCLAW_VERSION, embeddedAgentLog, formatToolExecutionErrorMessage, normalizeQuestionTimeoutSeconds, resolveToolExecutionErrorKind } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
22
21
|
import { parse } from "semver";
|
|
22
|
+
import { sanitizeTerminalText } from "openclaw/plugin-sdk/text-chunking";
|
|
23
23
|
import { AsyncWorkScope } from "openclaw/plugin-sdk/concurrency-runtime";
|
|
24
24
|
import { copyInternalToolResultState, runWithAsyncWorkResources } from "openclaw/plugin-sdk/agent-harness-tool-runtime";
|
|
25
25
|
import { Compile } from "typebox/compile";
|
|
26
|
+
//#region extensions/codex/src/app-server/protocol-json.ts
|
|
27
|
+
function isRpcResponse(message) {
|
|
28
|
+
return message !== null && typeof message === "object" && "id" in message && (typeof message.id === "number" || typeof message.id === "string") && !("method" in message);
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region extensions/codex/src/app-server/client-line-preview.ts
|
|
32
|
+
const CODEX_APP_SERVER_PARSE_LOG_MAX = 500;
|
|
33
|
+
function redactCodexAppServerLinePreview(value) {
|
|
34
|
+
const redacted = value.replace(/\s+/g, " ").trim().replace(/(Bearer\s+)[A-Za-z0-9._~+/-]+/gi, "$1<redacted>").replace(/("(?:api_?key|authorization|token|access_token|refresh_token)"\s*:\s*")([^"]+)(")/gi, "$1<redacted>$3").replace(/\b([a-z0-9_]*(?:api_?key|authorization|access_token|refresh_token|token))(\s*=\s*)(["']?)[^\s"']+(\3)/gi, "$1$2$3<redacted>$4");
|
|
35
|
+
return redacted.length > CODEX_APP_SERVER_PARSE_LOG_MAX ? `${truncateUtf16Safe(redacted, CODEX_APP_SERVER_PARSE_LOG_MAX)}...` : redacted;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region extensions/codex/src/app-server/client-message-decoder.ts
|
|
39
|
+
const PARSE_BUFFER_MAX = 8388608;
|
|
40
|
+
const PARSE_BUFFER_MAX_LINES = 1e3;
|
|
41
|
+
const UNICODE_ESCAPE_QUAD = /^[\da-fA-F]{4}$/u;
|
|
42
|
+
/** Recovers the raw newlines observed inside native JSON string values. */
|
|
43
|
+
var CodexAppServerMessageDecoder = class {
|
|
44
|
+
constructor(reportError) {
|
|
45
|
+
this.reportError = reportError;
|
|
46
|
+
}
|
|
47
|
+
clear() {
|
|
48
|
+
this.pending = void 0;
|
|
49
|
+
}
|
|
50
|
+
get hasPending() {
|
|
51
|
+
return this.pending !== void 0;
|
|
52
|
+
}
|
|
53
|
+
parse(line) {
|
|
54
|
+
const rawLine = line.endsWith("\r") ? line.slice(0, -1) : line;
|
|
55
|
+
if (this.pending) return this.parseContinuation(rawLine, this.pending);
|
|
56
|
+
const trimmed = rawLine.trim();
|
|
57
|
+
if (!trimmed) return;
|
|
58
|
+
try {
|
|
59
|
+
return JSON.parse(trimmed);
|
|
60
|
+
} catch (error) {
|
|
61
|
+
if (isRecoverableParseFailure(trimmed, error)) {
|
|
62
|
+
const text = rawLine.trimStart();
|
|
63
|
+
this.pending = {
|
|
64
|
+
fragments: [text],
|
|
65
|
+
length: text.length,
|
|
66
|
+
inString: endsInsideJsonString(text)
|
|
67
|
+
};
|
|
68
|
+
} else this.reportError(trimmed, error, 1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
parseContinuation(line, pending) {
|
|
72
|
+
pending.fragments.push(line);
|
|
73
|
+
pending.length += 2 + line.length;
|
|
74
|
+
const withinBounds = pending.length <= PARSE_BUFFER_MAX && pending.fragments.length <= PARSE_BUFFER_MAX_LINES;
|
|
75
|
+
if (withinBounds && pending.inString && scanJsonString(line, 0) === line.length) return;
|
|
76
|
+
const candidate = pending.fragments.join("\\n");
|
|
77
|
+
this.pending = void 0;
|
|
78
|
+
try {
|
|
79
|
+
return JSON.parse(candidate);
|
|
80
|
+
} catch (error) {
|
|
81
|
+
if (withinBounds && isRecoverableParseFailure(candidate, error)) {
|
|
82
|
+
pending.inString = endsInsideJsonString(candidate);
|
|
83
|
+
this.pending = pending;
|
|
84
|
+
} else this.reportError(candidate, error, pending.fragments.length);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
function isRecoverableParseFailure(value, error) {
|
|
89
|
+
if (!value.startsWith("{") && !value.startsWith("[")) return false;
|
|
90
|
+
const message = coerceErrorMessage(error);
|
|
91
|
+
return message.includes("Unterminated string") || message.includes("Unexpected end of JSON input");
|
|
92
|
+
}
|
|
93
|
+
function endsInsideJsonString(value) {
|
|
94
|
+
for (let index = 0; index < value.length; index++) {
|
|
95
|
+
if (value[index] !== "\"") continue;
|
|
96
|
+
const end = scanJsonString(value, index + 1);
|
|
97
|
+
if (end < 0) return false;
|
|
98
|
+
if (end === value.length) return true;
|
|
99
|
+
index = end;
|
|
100
|
+
}
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
/** Finds a closing quote; incomplete or invalid escapes require native parsing. */
|
|
104
|
+
function scanJsonString(value, start) {
|
|
105
|
+
for (let index = start; index < value.length; index++) {
|
|
106
|
+
const character = value[index];
|
|
107
|
+
if (character === "\"") return index;
|
|
108
|
+
if (value.charCodeAt(index) < 32) return -1;
|
|
109
|
+
if (character !== "\\") continue;
|
|
110
|
+
const escape = value[++index];
|
|
111
|
+
if (escape === "u") {
|
|
112
|
+
if (!UNICODE_ESCAPE_QUAD.test(value.slice(index + 1, index + 5))) return -1;
|
|
113
|
+
index += 4;
|
|
114
|
+
} else if (!escape || !"\"\\/bfnrt".includes(escape)) return -1;
|
|
115
|
+
}
|
|
116
|
+
return value.length;
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region extensions/codex/src/app-server/client-message-frames.ts
|
|
120
|
+
const UNPAIRED_SURROGATE_RE = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g;
|
|
121
|
+
/** One byte reader owns framing and stops at an asynchronous page decode. */
|
|
122
|
+
function listenCodexAppServerLines(input, onLine, onError) {
|
|
123
|
+
let fragments = [];
|
|
124
|
+
let length = 0;
|
|
125
|
+
let remainder;
|
|
126
|
+
let waiting = false;
|
|
127
|
+
let ended = false;
|
|
128
|
+
let closed = false;
|
|
129
|
+
const close = () => {
|
|
130
|
+
closed = true;
|
|
131
|
+
fragments = [];
|
|
132
|
+
remainder = void 0;
|
|
133
|
+
input.off("data", onData);
|
|
134
|
+
input.off("end", onEnd);
|
|
135
|
+
input.pause();
|
|
136
|
+
};
|
|
137
|
+
const deliver = (tail) => {
|
|
138
|
+
const line = fragments.length ? Buffer.concat([...fragments, tail], length + tail.length) : tail;
|
|
139
|
+
fragments = [];
|
|
140
|
+
length = 0;
|
|
141
|
+
const completion = onLine(line);
|
|
142
|
+
if (!completion) return true;
|
|
143
|
+
waiting = true;
|
|
144
|
+
input.pause();
|
|
145
|
+
completion.then(() => {
|
|
146
|
+
waiting = false;
|
|
147
|
+
if (!closed) {
|
|
148
|
+
drain();
|
|
149
|
+
if (!waiting && !ended && !closed) input.resume();
|
|
150
|
+
}
|
|
151
|
+
}).catch((error) => {
|
|
152
|
+
close();
|
|
153
|
+
onError(error);
|
|
154
|
+
});
|
|
155
|
+
return false;
|
|
156
|
+
};
|
|
157
|
+
const drain = () => {
|
|
158
|
+
try {
|
|
159
|
+
const chunk = remainder;
|
|
160
|
+
remainder = void 0;
|
|
161
|
+
if (chunk) {
|
|
162
|
+
let start = 0;
|
|
163
|
+
let end;
|
|
164
|
+
while ((end = chunk.indexOf(10, start)) !== -1) {
|
|
165
|
+
if (closed) return;
|
|
166
|
+
remainder = chunk.subarray(end + 1);
|
|
167
|
+
if (!deliver(chunk.subarray(start, end))) return;
|
|
168
|
+
remainder = void 0;
|
|
169
|
+
start = end + 1;
|
|
170
|
+
}
|
|
171
|
+
if (!closed && start < chunk.length) {
|
|
172
|
+
fragments.push(chunk.subarray(start));
|
|
173
|
+
length += chunk.length - start;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (ended && !closed) {
|
|
177
|
+
if (length && !deliver(Buffer.alloc(0))) return;
|
|
178
|
+
close();
|
|
179
|
+
}
|
|
180
|
+
} catch (error) {
|
|
181
|
+
close();
|
|
182
|
+
onError(error);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
const onData = (chunk) => {
|
|
186
|
+
remainder = chunk;
|
|
187
|
+
drain();
|
|
188
|
+
};
|
|
189
|
+
const onEnd = () => {
|
|
190
|
+
ended = true;
|
|
191
|
+
if (!waiting) drain();
|
|
192
|
+
};
|
|
193
|
+
input.on("data", onData);
|
|
194
|
+
input.once("end", onEnd);
|
|
195
|
+
return close;
|
|
196
|
+
}
|
|
197
|
+
function codexCatalogResponseRoute(id) {
|
|
198
|
+
return typeof id === "number" && Number.isSafeInteger(id) && id >= 2 ** 52 ? {
|
|
199
|
+
id,
|
|
200
|
+
kind: id % 2 === 1 ? "list" : "thread"
|
|
201
|
+
} : void 0;
|
|
202
|
+
}
|
|
203
|
+
/** Read bounded envelope keys and IDs; skip native payload strings as bytes. */
|
|
204
|
+
function readCodexCatalogDecodeRoute(line) {
|
|
205
|
+
let depth = 0;
|
|
206
|
+
let route;
|
|
207
|
+
let response = false;
|
|
208
|
+
for (let index = 0; index < line.length; index++) {
|
|
209
|
+
const byte = line[index];
|
|
210
|
+
if (byte === 123 || byte === 91) depth++;
|
|
211
|
+
else if (byte === 125 || byte === 93) depth--;
|
|
212
|
+
else if (byte === 34) {
|
|
213
|
+
const start = index;
|
|
214
|
+
for (;;) {
|
|
215
|
+
index = line.indexOf(34, index + 1);
|
|
216
|
+
if (index < 0) return "unresolved";
|
|
217
|
+
let slash = index - 1;
|
|
218
|
+
while (line[slash] === 92) slash--;
|
|
219
|
+
if ((index - slash) % 2 === 1) break;
|
|
220
|
+
}
|
|
221
|
+
if (depth !== 1 || index - start > 64) continue;
|
|
222
|
+
let colon = index + 1;
|
|
223
|
+
while (line[colon] === 32 || line[colon] === 9 || line[colon] === 13) colon++;
|
|
224
|
+
if (line[colon] !== 58) continue;
|
|
225
|
+
const token = line.toString("utf8", start, index + 1);
|
|
226
|
+
let key = token.slice(1, -1);
|
|
227
|
+
if (token.includes("\\")) try {
|
|
228
|
+
key = JSON.parse(token);
|
|
229
|
+
} catch {
|
|
230
|
+
return "unresolved";
|
|
231
|
+
}
|
|
232
|
+
if (key === "method") return;
|
|
233
|
+
if (key === "result" || key === "error") {
|
|
234
|
+
response = true;
|
|
235
|
+
if (route) return route;
|
|
236
|
+
}
|
|
237
|
+
if (key !== "id") continue;
|
|
238
|
+
const match = /^\s*:\s*(\d+)(?=\s*[,}])/u.exec(line.toString("utf8", index + 1, Math.min(index + 100, line.length)));
|
|
239
|
+
if (!match) continue;
|
|
240
|
+
route = codexCatalogResponseRoute(Number(match[1]));
|
|
241
|
+
if (!route || response) return route;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return response || route ? "unresolved" : void 0;
|
|
245
|
+
}
|
|
246
|
+
function stringifyCodexAppServerMessage(message) {
|
|
247
|
+
return JSON.stringify(message, (_key, value) => typeof value === "string" ? value.replace(UNPAIRED_SURROGATE_RE, "") : value) ?? "null";
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region extensions/codex/src/app-server/client-catalog-response.ts
|
|
251
|
+
function projectCodexCatalogMessage(parsed, input, cachedPreview) {
|
|
252
|
+
const result = {
|
|
253
|
+
pending: false,
|
|
254
|
+
failures: []
|
|
255
|
+
};
|
|
256
|
+
if (!isJsonObject(parsed)) return result;
|
|
257
|
+
result.message = parsed;
|
|
258
|
+
if (!isRpcResponse(parsed)) return result;
|
|
259
|
+
const message = parsed;
|
|
260
|
+
const route = codexCatalogResponseRoute(message.id);
|
|
261
|
+
if (message.error || !route) return result;
|
|
262
|
+
const remainingRows = input.route === "unresolved" ? input.catalogRows?.has(route.id) ? input.catalogRows.get(route.id) : 0 : input.remainingRows;
|
|
263
|
+
try {
|
|
264
|
+
if (!isJsonObject(message.result)) throw new Error("Codex catalog response contains an invalid result");
|
|
265
|
+
if (route.kind === "list") {
|
|
266
|
+
const raw = message.result;
|
|
267
|
+
message.result = projectCodexCatalogNativeResponse(raw, sanitizeTerminalText, cachedPreview, remainingRows);
|
|
268
|
+
if (!cachedPreview) result.previewStates = Array.isArray(raw.data) ? raw.data.slice(0, Array.isArray(message.result.data) ? message.result.data.length : 0).map((row) => isJsonObject(row) && typeof row.preview === "string" ? Boolean(row.preview) : void 0) : [];
|
|
269
|
+
} else {
|
|
270
|
+
const thread = message.result.thread;
|
|
271
|
+
message.result = { thread: {
|
|
272
|
+
...projectCodexCatalogNativeThread(thread, sanitizeTerminalText),
|
|
273
|
+
...isJsonObject(thread) && typeof thread.cwd === "string" ? { cwd: thread.cwd } : {},
|
|
274
|
+
...isJsonObject(thread) && (thread.historyMode === "paginated" || thread.historyMode === "legacy") ? { historyMode: thread.historyMode } : {}
|
|
275
|
+
} };
|
|
276
|
+
}
|
|
277
|
+
} catch (error) {
|
|
278
|
+
delete result.message;
|
|
279
|
+
result.projectionError = {
|
|
280
|
+
id: route.id,
|
|
281
|
+
error: error instanceof Error ? error : new Error("Codex catalog projection failed", { cause: error })
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
return result;
|
|
285
|
+
}
|
|
286
|
+
//#endregion
|
|
26
287
|
//#region extensions/codex/src/app-server/client-catalog-worker.ts
|
|
27
288
|
const INLINE_CATALOG_MAX_BYTES = 65536;
|
|
28
289
|
const CATALOG_WORKER_IDLE_MS = 6e4;
|
|
@@ -9,7 +9,7 @@ async function handleCodexCommand(ctx, options) {
|
|
|
9
9
|
};
|
|
10
10
|
const { resolvePluginConfig, ...subcommandOptions } = options;
|
|
11
11
|
try {
|
|
12
|
-
const { handleCodexSubcommand } = await import("./command-handlers-
|
|
12
|
+
const { handleCodexSubcommand } = await import("./command-handlers-C-uyeN_H.mjs");
|
|
13
13
|
return await handleCodexSubcommand(commandContext, {
|
|
14
14
|
...subcommandOptions,
|
|
15
15
|
pluginConfig: resolvePluginConfig?.() ?? subcommandOptions.pluginConfig
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { n as isCodexFastServiceTier } from "./config-utils-D0CXecki.mjs";
|
|
2
|
-
import { o as pluginReadParams, r as isOpenAiCuratedMarketplaceName, t as findCodexMarketplacePluginSummary, u as CODEX_PLUGINS_MARKETPLACE_NAME } from "./plugin-inventory-
|
|
2
|
+
import { o as pluginReadParams, r as isOpenAiCuratedMarketplaceName, t as findCodexMarketplacePluginSummary, u as CODEX_PLUGINS_MARKETPLACE_NAME } from "./plugin-inventory-B4uqIw4J.mjs";
|
|
3
|
+
import { b as assertCodexThreadResumeResponse, s as isCodexAppServerIndeterminateRequestCancellationError, u as isCodexAppServerPrewriteRequestCancellationError, v as assertCodexThreadAcceptsDirectInput } from "./client-BdNoDUaQ.mjs";
|
|
3
4
|
import { i as isJsonObject } from "./protocol-CANUwXJ3.mjs";
|
|
4
|
-
import { n as assertCodexBindingMayBeReplaced, r as bindingStoreKey, v as sessionBindingIdentity } from "./session-binding-record-
|
|
5
|
-
import { c as resolveCodexAppServerPreparedApiKeyCacheKey, s as resolveCodexAppServerFallbackApiKeyCacheKey } from "./auth-cache-key-
|
|
5
|
+
import { n as assertCodexBindingMayBeReplaced, r as bindingStoreKey, v as sessionBindingIdentity } from "./session-binding-record-CUKpUKVm.mjs";
|
|
6
|
+
import { c as resolveCodexAppServerPreparedApiKeyCacheKey, s as resolveCodexAppServerFallbackApiKeyCacheKey } from "./auth-cache-key-DWIq3Lzf.mjs";
|
|
6
7
|
import { n as withCodexConversationThreadActivity } from "./thread-ownership-queue-Dp24d7-F.mjs";
|
|
7
8
|
import { a as CODEX_HOST_INSPECTION_AUTH_ERROR, c as canMutateCodexHost, i as CODEX_FULL_PERMISSIONS_AUTH_ERROR, l as hasCodexAdminScope, n as filterCodexMarketplacePlugins, o as CODEX_NATIVE_EXECUTION_AUTH_ERROR, r as parseCodexPluginMarketplaceId, s as assertCodexHostOwnerCurrent, t as discoverCodexMarketplacePlugins } from "./plugin-marketplace-discovery-D_dV9FXa.mjs";
|
|
8
9
|
import { l as formatRelativeDuration, s as summarizeCodexAccountUsage } from "./rate-limits-B7-X2TgG.mjs";
|
|
9
10
|
import { a as formatCodexAccountLine, c as formatCodexTextForDisplay, d as formatModels, f as formatSkills, i as formatAccount, l as formatComputerUseStatus, n as buildHelp, o as formatCodexDisplayText, p as formatThreads, r as escapeCodexChatText, s as formatCodexStatus, t as CODEX_RESUME_SAFE_THREAD_ID_PATTERN, u as formatList } from "./command-formatters-R3ckE3Co.mjs";
|
|
10
|
-
import { i as readCodexConversationBindingData, n as createCodexCliNodeConversationBindingData, o as resolveCodexDefaultWorkspaceDir, r as createCodexConversationBindingData } from "./conversation-binding-data-
|
|
11
|
+
import { i as readCodexConversationBindingData, n as createCodexCliNodeConversationBindingData, o as resolveCodexDefaultWorkspaceDir, r as createCodexConversationBindingData } from "./conversation-binding-data-DlsG-dQu.mjs";
|
|
11
12
|
import { t as isIncognitoSessionKey } from "./incognito-session-C5ve_-63.mjs";
|
|
12
13
|
import { n as CodexAppServerRpcError } from "./rpc-error-BlD2vuzn.mjs";
|
|
13
14
|
import { t as CODEX_CONTROL_METHODS } from "./capabilities-B3WEZl4e.mjs";
|
|
14
|
-
import { o as formatCodexCliSessions } from "./node-cli-sessions-
|
|
15
|
+
import { o as formatCodexCliSessions } from "./node-cli-sessions-BwhIYgCZ.mjs";
|
|
15
16
|
import { a as defaultCodexAppInventoryCache, r as buildCodexPluginAppCacheKey } from "./plugin-app-cache-key-BL9B5H0L.mjs";
|
|
16
|
-
import { i as resolveCodexBindingAppServerConnection } from "./binding-connection-
|
|
17
|
-
import { o as withCodexAppServerJsonClient } from "./request-
|
|
18
|
-
import "./config-
|
|
19
|
-
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-
|
|
17
|
+
import { i as resolveCodexBindingAppServerConnection } from "./binding-connection-DRPlnIgg.mjs";
|
|
18
|
+
import { o as withCodexAppServerJsonClient } from "./request-DZKa6YSy.mjs";
|
|
19
|
+
import "./config-DqmrqI23.mjs";
|
|
20
|
+
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
20
21
|
import { a as resolveCodexAppServerAuthProfileStore, i as resolveCodexAppServerAuthProfileIdForAgent, n as normalizeCodexAppServerBindingModelProvider } from "./auth-profile-B0okYl2D.mjs";
|
|
21
|
-
import { F as consumeCodexAppServerLiveThread, R as hasCodexAppServerLiveThread, c as getLeasedSharedCodexAppServerClient, h as releaseLeasedSharedCodexAppServerClient, nt as resolveCodexAppServerAuthAccountCacheKey } from "./shared-client-
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { n as
|
|
25
|
-
import { n as
|
|
26
|
-
import { n as
|
|
27
|
-
import {
|
|
28
|
-
import { i as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { i as
|
|
32
|
-
import { a as
|
|
33
|
-
import { a as setCodexConversationFastMode, c as steerCodexConversationTurn, i as readCodexConversationActiveTurn, l as stopCodexConversationTurn, n as parseCodexFastModeArg, o as setCodexConversationModel, r as parseCodexPermissionsModeArg, s as setCodexConversationPermissions, t as formatPermissionsMode } from "./conversation-control-BEotI-gH.mjs";
|
|
22
|
+
import { F as consumeCodexAppServerLiveThread, R as hasCodexAppServerLiveThread, c as getLeasedSharedCodexAppServerClient, h as releaseLeasedSharedCodexAppServerClient, nt as resolveCodexAppServerAuthAccountCacheKey } from "./shared-client-B__jQti1.mjs";
|
|
23
|
+
import { o as closeCodexStartupClientBestEffort } from "./attempt-client-cleanup-C9dwStbK.mjs";
|
|
24
|
+
import { n as fingerprintCodexAppServerAuthBinding } from "./auth-binding-Bnaj0_iV.mjs";
|
|
25
|
+
import { n as listAllCodexAppServerModels } from "./models-DXVC1KpU.mjs";
|
|
26
|
+
import { n as refreshCodexAppRuntimeState, r as refreshCodexPluginRuntimeState } from "./plugin-activation-BaDnJKJd.mjs";
|
|
27
|
+
import { n as createCodexSessionGenerationSupersededError, o as resolveCodexSessionBinding } from "./session-binding-Fn7Ekzuv.mjs";
|
|
28
|
+
import { i as assertCodexSupervisionThreadLineage } from "./thread-policy-BHr4QsDO.mjs";
|
|
29
|
+
import { a as rollbackCodexAppServerBindingSubscription, c as withExclusiveCodexAppServerThread, i as retireCodexConversationThreadBinding, n as releaseCodexAppServerBindingSubscription, r as retainCodexAppServerBindingSubscription, t as isSameCodexAppServerThreadOwner } from "./thread-ownership-Cxb01Uwq.mjs";
|
|
30
|
+
import { n as resolveCodexNativeSandboxBlock, t as resolveCodexNativeExecutionBlock } from "./sandbox-guard-OIYEmTRF.mjs";
|
|
31
|
+
import { i as readCodexComputerUseStatus, r as installCodexComputerUse, t as defaultCodexPluginMetadataCache } from "./plugin-metadata-cache-DuaAXtXC.mjs";
|
|
32
|
+
import { a as requestOptions, i as readCodexStatusProbes, o as safeCodexControlRequest, r as prepareCodexControlSessionAuth, t as codexControlRequest } from "./command-rpc-BHE3OG7z.mjs";
|
|
33
|
+
import { a as setCodexConversationFastMode, c as steerCodexConversationTurn, i as readCodexConversationActiveTurn, l as stopCodexConversationTurn, n as parseCodexFastModeArg, o as setCodexConversationModel, r as parseCodexPermissionsModeArg, s as setCodexConversationPermissions, t as formatPermissionsMode } from "./conversation-control-BWzVNh-v.mjs";
|
|
34
34
|
import { normalizeOptionalString, normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
35
35
|
import crypto from "node:crypto";
|
|
36
36
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import { c as isCodexAppServerIndeterminateTransportError, l as isCodexAppServerOverloadError, s as isCodexAppServerIndeterminateRequestCancellationError } from "./client-BdNoDUaQ.mjs";
|
|
1
2
|
import { i as isJsonObject } from "./protocol-CANUwXJ3.mjs";
|
|
2
3
|
import { n as CodexAppServerRpcError } from "./rpc-error-BlD2vuzn.mjs";
|
|
3
4
|
import { n as describeControlFailure, t as CODEX_CONTROL_METHODS } from "./capabilities-B3WEZl4e.mjs";
|
|
4
|
-
import { i as requestCodexAppServerJson, o as withCodexAppServerJsonClient } from "./request-
|
|
5
|
-
import "./config-
|
|
6
|
-
import { n as resolveCodexAppServerRuntimeOptions, r as resolveCodexSupervisionAppServerRuntimeOptions } from "./config-runtime-
|
|
5
|
+
import { i as requestCodexAppServerJson, o as withCodexAppServerJsonClient } from "./request-DZKa6YSy.mjs";
|
|
6
|
+
import "./config-DqmrqI23.mjs";
|
|
7
|
+
import { n as resolveCodexAppServerRuntimeOptions, r as resolveCodexSupervisionAppServerRuntimeOptions } from "./config-runtime-DDhvIeUC.mjs";
|
|
7
8
|
import { a as resolveCodexAppServerAuthProfileStore, r as resolveCodexAppServerAuthProfileId } from "./auth-profile-B0okYl2D.mjs";
|
|
8
|
-
import { rt as resolveCodexAppServerPreparedAuthHandoff } from "./shared-client-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { r as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as __exportAll } from "./session-binding-sidecars-jo6H8dFr.mjs";
|
|
9
|
+
import { rt as resolveCodexAppServerPreparedAuthHandoff } from "./shared-client-B__jQti1.mjs";
|
|
10
|
+
import { o as closeCodexStartupClientBestEffort } from "./attempt-client-cleanup-C9dwStbK.mjs";
|
|
11
|
+
import { r as prepareCodexAppServerAuthBinding } from "./auth-binding-Bnaj0_iV.mjs";
|
|
12
|
+
import { r as listCodexAppServerModels } from "./models-DXVC1KpU.mjs";
|
|
13
|
+
import { n as createCodexSessionGenerationSupersededError } from "./session-binding-Fn7Ekzuv.mjs";
|
|
14
|
+
import { t as resumeCodexAppServerThread } from "./thread-resume-BNdEFZpM.mjs";
|
|
15
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
16
16
|
import { resolveAgentDir, resolveSessionAgentIdsStrict } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
17
17
|
import { resolveAgentWorkspaceDir } from "openclaw/plugin-sdk/agent-runtime";
|
|
18
18
|
import { prepareAgentRuntimeAuth } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { n as readCodexRuntimeModelId } from "./model-runtime-BdqzOMkU.mjs";
|
|
2
|
+
import { s as isCodexAppServerIndeterminateRequestCancellationError, u as isCodexAppServerPrewriteRequestCancellationError } from "./client-BdNoDUaQ.mjs";
|
|
2
3
|
import { i as isJsonObject } from "./protocol-CANUwXJ3.mjs";
|
|
3
|
-
import { v as sessionBindingIdentity } from "./session-binding-record-
|
|
4
|
-
import {
|
|
4
|
+
import { v as sessionBindingIdentity } from "./session-binding-record-CUKpUKVm.mjs";
|
|
5
|
+
import { m as waitForCodexAppServerClientExit, u as retainSharedCodexAppServerClientByInstanceId } from "./shared-client-lifecycle-wN_lOZkB.mjs";
|
|
5
6
|
import { t as isIncognitoSessionKey } from "./incognito-session-C5ve_-63.mjs";
|
|
6
7
|
import { n as CodexAppServerRpcError } from "./rpc-error-BlD2vuzn.mjs";
|
|
7
|
-
import { i as resolveCodexBindingAppServerConnection } from "./binding-connection-
|
|
8
|
-
import { F as consumeCodexAppServerLiveThread, J as revertCodexAppServerLiveThreadSkillsCatalog, M as getCodexInferenceThreadQualification, W as protectCodexAppServerLiveThread, _ as retainSharedCodexAppServerClientIfCurrent, q as retainCodexAppServerLiveThread, s as createIsolatedCodexAppServerClient } from "./shared-client-
|
|
8
|
+
import { i as resolveCodexBindingAppServerConnection } from "./binding-connection-DRPlnIgg.mjs";
|
|
9
|
+
import { F as consumeCodexAppServerLiveThread, J as revertCodexAppServerLiveThreadSkillsCatalog, M as getCodexInferenceThreadQualification, W as protectCodexAppServerLiveThread, _ as retainSharedCodexAppServerClientIfCurrent, q as retainCodexAppServerLiveThread, s as createIsolatedCodexAppServerClient } from "./shared-client-B__jQti1.mjs";
|
|
9
10
|
import "./responses-oauth-twnuTaAa.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { b as readCodexNotificationTurnId, l as isCodexNoActiveTurnInterruptError, o as closeCodexStartupClientBestEffort, p as unsubscribeCodexThreadBestEffort, r as CodexAppServerUnsafeSubscriptionError, y as readCodexNotificationThreadId } from "./attempt-client-cleanup-93r-CLTi.mjs";
|
|
11
|
+
import { b as readCodexNotificationTurnId, l as isCodexNoActiveTurnInterruptError, o as closeCodexStartupClientBestEffort, p as unsubscribeCodexThreadBestEffort, r as CodexAppServerUnsafeSubscriptionError, y as readCodexNotificationThreadId } from "./attempt-client-cleanup-C9dwStbK.mjs";
|
|
12
12
|
import { n as readCodexThreadContextSnapshot, s as readCodexNotificationItem } from "./event-projector-usage-03R0I2dM.mjs";
|
|
13
|
-
import { o as resolveCodexSessionBinding, t as CODEX_APP_SERVER_BINDING_GUARDED_REQUEST_TIMEOUT_MS } from "./session-binding-
|
|
14
|
-
import { t as codexNativeSubagentMonitorRuntime } from "./native-subagent-monitor-
|
|
15
|
-
import { i as assertCodexSupervisionThreadLineage } from "./thread-policy-
|
|
16
|
-
import { t as resumeCodexAppServerThread } from "./thread-resume-
|
|
17
|
-
import { s as withCodexAppServerThreadMutationHold, t as isSameCodexAppServerThreadOwner } from "./thread-ownership-
|
|
13
|
+
import { o as resolveCodexSessionBinding, t as CODEX_APP_SERVER_BINDING_GUARDED_REQUEST_TIMEOUT_MS } from "./session-binding-Fn7Ekzuv.mjs";
|
|
14
|
+
import { t as codexNativeSubagentMonitorRuntime } from "./native-subagent-monitor-GOGINNw0.mjs";
|
|
15
|
+
import { i as assertCodexSupervisionThreadLineage } from "./thread-policy-BHr4QsDO.mjs";
|
|
16
|
+
import { t as resumeCodexAppServerThread } from "./thread-resume-BNdEFZpM.mjs";
|
|
17
|
+
import { s as withCodexAppServerThreadMutationHold, t as isSameCodexAppServerThreadOwner } from "./thread-ownership-Cxb01Uwq.mjs";
|
|
18
18
|
import { t as persistCodexContextCompactionActivity } from "./context-compaction-activity-CMla5FPJ.mjs";
|
|
19
|
-
import { t as resolveCodexNativeExecutionBlock } from "./sandbox-guard-
|
|
19
|
+
import { t as resolveCodexNativeExecutionBlock } from "./sandbox-guard-OIYEmTRF.mjs";
|
|
20
20
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
21
21
|
import { coerceErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
22
22
|
import { AsyncLocalStorage } from "node:async_hooks";
|