@openclaw/codex 2026.9.33 → 2026.9.35
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-dYM1lh1V.mjs → account-usage-runtime-BaJamBiM.mjs} +3 -3
- package/dist/.setup/{apply-C82xe8Bk.mjs → apply-CxwOGLd_.mjs} +8 -8
- package/dist/.setup/{attempt-client-cleanup-D1aznv7C.mjs → attempt-client-cleanup-BVtNsTOE.mjs} +4 -4
- package/dist/.setup/{attempt-workspace-context-DKAbD-vI.mjs → attempt-workspace-context-XRsWP165.mjs} +1 -1
- package/dist/.setup/{auth-binding-BLWz7stm.mjs → auth-binding-Bnaj0_iV.mjs} +1 -1
- package/dist/.setup/{auth-cache-key-CWpIEtTm.mjs → auth-cache-key-CskfconU.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-Ca4urQ25.mjs → bounded-turn-DBwLoFDR.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-E-CRUdgh.mjs → build-state-B3lvV1Op.mjs} +1 -1
- package/dist/.setup/{client-6GbdZFc0.mjs → client-DcTISXe3.mjs} +7 -7
- package/dist/.setup/{client-catalog-response-HvvnCxvX.mjs → client-catalog-response-BcbsrQXY.mjs} +1 -1
- package/dist/.setup/{command-dispatch-_PPJobF7.mjs → command-dispatch-MOoD3rsD.mjs} +1 -1
- package/dist/.setup/{command-handlers-Do_MOc5V.mjs → command-handlers-Cevt_YwM.mjs} +23 -23
- package/dist/.setup/{command-rpc-Bc_OIgK0.mjs → command-rpc-kf7Uq4L-.mjs} +11 -11
- package/dist/.setup/{compact-BVSQoyh-.mjs → compact-BNKuKa7o.mjs} +13 -13
- 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-CvjxRWI-.mjs → conversation-binding-CKYGEvcX.mjs} +15 -15
- package/dist/.setup/{conversation-binding-data-C746z5Pn.mjs → conversation-binding-data-DlsG-dQu.mjs} +1 -1
- package/dist/.setup/{conversation-control-DoxkQ9nq.mjs → conversation-control-CoWUL35l.mjs} +5 -5
- package/dist/.setup/{dynamic-tools-CGMXNyuw.mjs → dynamic-tools-Dr0ye5P3.mjs} +7 -7
- package/dist/.setup/{effective-mcp-catalog-C1zwj-bq.mjs → effective-mcp-catalog-BFJCwjSI.mjs} +4 -4
- package/dist/.setup/{ephemeral-turn-Cyu_xJDs.mjs → ephemeral-turn-Dj3iTfSP.mjs} +2 -2
- package/dist/.setup/{event-projector-assistant-message-CAI4foF8.mjs → event-projector-assistant-message-DXDX94zH.mjs} +1 -1
- package/dist/.setup/incognito-session-C5ve_-63.mjs +1 -0
- package/dist/.setup/{isolated-completion-DPr7Nsl7.mjs → isolated-completion-GB52W-qA.mjs} +6 -6
- package/dist/.setup/{managed-binary-B6hQ1UKR.mjs → managed-binary-Ckgvm_4V.mjs} +1 -1
- package/dist/.setup/{model-catalog-gcv3irT9.mjs → model-catalog-DxSrOSY0.mjs} +7 -7
- package/dist/.setup/{models-Bs4aEhpG.mjs → models-BwkZaXXj.mjs} +3 -3
- package/dist/.setup/{native-auth-BN-BD2AV.mjs → native-auth-BNGz77PF.mjs} +3 -3
- package/dist/.setup/{native-subagent-monitor-DbNIloTJ.mjs → native-subagent-monitor-g-ZDkvCr.mjs} +118 -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-NTSBQtKx.mjs → plan-Cwp_21m-.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-Z06WuND0.mjs → plugin-metadata-cache-C-LRxilF.mjs} +7 -7
- package/dist/.setup/{provider-BnX84knz.mjs → provider-DUotqBZ6.mjs} +4 -4
- package/dist/.setup/{provider-capabilities-CYK-rMwC.mjs → provider-capabilities-DBs9l8oL.mjs} +2 -2
- package/dist/.setup/{request-DQh7X3fU.mjs → request-CWERwKIL.mjs} +5 -5
- package/dist/.setup/{run-attempt-Bp6qFrIQ.mjs → run-attempt-ypT0LYSD.mjs} +77 -42
- 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-DFZmNlhW.mjs → session-catalog-DMagZcW-.mjs} +22 -22
- package/dist/.setup/{session-catalog-adoption-BU_pHWG7.mjs → session-catalog-adoption-58bqOngU.mjs} +5 -5
- package/dist/.setup/{session-catalog-archive-spHfihri.mjs → session-catalog-archive-BM9gCB82.mjs} +5 -5
- package/dist/.setup/{session-catalog-events-DVLgp99B.mjs → session-catalog-events-r59AxcQ4.mjs} +3 -3
- package/dist/.setup/{session-catalog-index-v3Yjgaih.mjs → session-catalog-index-CY1lNpxF.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-LshItrMe.mjs → session-catalog-native-projection-CXTe4qQr.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-CCBFozaQ.mjs → session-catalog-projection-DcDKizZd.mjs} +4 -4
- package/dist/.setup/{session-cli-KhdG-_Aj.mjs → session-cli-C3GejWcm.mjs} +2 -2
- 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-ERjp2r4a.mjs → session-retirement-CQCMiDul.mjs} +7 -7
- package/dist/.setup/{settled-turn-finalizer-DbS1Mwoq.mjs → settled-turn-finalizer-w92T5Rbb.mjs} +7 -7
- package/dist/.setup/{shared-client-zsK3DTPh.mjs → shared-client-ZXKMsK6f.mjs} +96 -46
- package/dist/.setup/{shared-client-lifecycle-4LdC3gM4.mjs → shared-client-lifecycle-BH_y_i8l.mjs} +24 -2
- package/dist/.setup/{side-question-DW4W4HY7.mjs → side-question-BBZJibHK.mjs} +15 -15
- package/dist/.setup/{source-DzsIjGO7.mjs → source-Iusn97ly.mjs} +4 -4
- package/dist/.setup/{thread-lifecycle-D03WesNn.mjs → thread-lifecycle-CzzYMvTL.mjs} +31 -15
- package/dist/.setup/{thread-ownership-B0xUCXOU.mjs → thread-ownership-BT_SeSUp.mjs} +4 -4
- package/dist/.setup/{thread-policy-g1TKKqWj.mjs → thread-policy-MM5YD22L.mjs} +3 -3
- package/dist/.setup/{thread-requests-15uBuGjw.mjs → thread-requests-y_MnVuWC.mjs} +9 -9
- package/dist/.setup/{thread-resume-BZfwM8Jh.mjs → thread-resume-B9clyqXE.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--vHya1T-.mjs → upstream-session-fork-2ipYynVl.mjs} +14 -14
- package/dist/.setup/{usage-CdWiiqqY.mjs → usage-BgB8DOas.mjs} +3 -3
- package/dist/.setup/{usage-limit-error-BEyQJjD_.mjs → usage-limit-error-B1FCZdeH.mjs} +1 -1
- package/dist/.setup/{web-search-provider.runtime--55TuUQG.mjs → web-search-provider.runtime-BWbZnYAL.mjs} +2 -2
- package/dist/.source-module-urls/78bb81623f5bb4c04c8cbd3fb1e9f10b4529f4811dc3cd99cedf5880f01c9b28.json +1 -0
- package/dist/api.js +3 -3
- package/dist/catalog-page.worker.js +1 -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 +53 -43
- package/dist/media-understanding-provider.js +2 -2
- package/dist/migration-provider-api.js +1 -2
- package/dist/provider-discovery.js +1 -1
- package/dist/session-history.worker.js +1 -2
- package/package.json +5 -5
- package/dist/.setup/incognito-session-DWYapfwf.mjs +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CodexAppServerRpcError } from "./rpc-error-BlD2vuzn.mjs";
|
|
2
2
|
import { i as withTimeout, r as withAbortableTimeout } from "./timeout-CXOfNoaX.mjs";
|
|
3
|
-
import { t as __exportAll } from "./session-binding-sidecars-
|
|
3
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
4
4
|
//#region extensions/codex/src/app-server/request.ts
|
|
5
5
|
var request_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CodexAppServerScopedRequestRejectedError: () => CodexAppServerScopedRequestRejectedError,
|
|
@@ -29,7 +29,7 @@ async function requestCodexAppServerClientJson(params) {
|
|
|
29
29
|
let phase = "prepare";
|
|
30
30
|
observeControlPhase(params.controlObservation, phase);
|
|
31
31
|
try {
|
|
32
|
-
const { resolveCodexAppServerDirectSandboxBypassBlock } = await import("./sandbox-guard-
|
|
32
|
+
const { resolveCodexAppServerDirectSandboxBypassBlock } = await import("./sandbox-guard-OIYEmTRF.mjs").then((n) => n.r);
|
|
33
33
|
const sandboxBlock = resolveCodexAppServerDirectSandboxBypassBlock({
|
|
34
34
|
method: params.method,
|
|
35
35
|
requestParams: params.requestParams,
|
|
@@ -58,7 +58,7 @@ async function requestCodexAppServerClientJson(params) {
|
|
|
58
58
|
}
|
|
59
59
|
async function requestCodexAppServerJson(params) {
|
|
60
60
|
observeControlPhase(params.controlObservation, "prepare");
|
|
61
|
-
const { resolveCodexAppServerDirectSandboxBypassBlock } = await import("./sandbox-guard-
|
|
61
|
+
const { resolveCodexAppServerDirectSandboxBypassBlock } = await import("./sandbox-guard-OIYEmTRF.mjs").then((n) => n.r);
|
|
62
62
|
const sandboxBlock = resolveCodexAppServerDirectSandboxBypassBlock({
|
|
63
63
|
method: params.method,
|
|
64
64
|
requestParams: params.requestParams,
|
|
@@ -179,8 +179,8 @@ async function withCodexAppServerJsonClient(params, run) {
|
|
|
179
179
|
timeoutMs,
|
|
180
180
|
timeoutMessage,
|
|
181
181
|
promise: (async () => {
|
|
182
|
-
const { resolveCodexAppServerDirectSandboxBypassBlock } = await import("./sandbox-guard-
|
|
183
|
-
const { createIsolatedCodexAppServerClient, getLeasedSharedCodexAppServerClient, isCodexAppServerStartSelectionChangedError, releaseLeasedSharedCodexAppServerClient, retireSharedCodexAppServerClientIfCurrent } = await import("./shared-client-
|
|
182
|
+
const { resolveCodexAppServerDirectSandboxBypassBlock } = await import("./sandbox-guard-OIYEmTRF.mjs").then((n) => n.r);
|
|
183
|
+
const { createIsolatedCodexAppServerClient, getLeasedSharedCodexAppServerClient, isCodexAppServerStartSelectionChangedError, releaseLeasedSharedCodexAppServerClient, retireSharedCodexAppServerClientIfCurrent } = await import("./shared-client-ZXKMsK6f.mjs").then((n) => n.v);
|
|
184
184
|
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
185
185
|
errorPhase = void 0;
|
|
186
186
|
activePhase = "prepare";
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { n as readCodexRuntimeModelId } from "./model-runtime-BdqzOMkU.mjs";
|
|
2
|
-
import { c as resolveRecoverableCodexPluginConfigKeys } from "./plugin-inventory-
|
|
3
|
-
import { g as createCodexNativeSubagentHistoryOwner } from "./native-subagent-pending-assignments-
|
|
2
|
+
import { c as resolveRecoverableCodexPluginConfigKeys } from "./plugin-inventory-B4uqIw4J.mjs";
|
|
3
|
+
import { g as createCodexNativeSubagentHistoryOwner } from "./native-subagent-pending-assignments-XHNn4k5q.mjs";
|
|
4
4
|
import { i as isJsonObject, r as flattenCodexDynamicToolFunctions } from "./protocol-CANUwXJ3.mjs";
|
|
5
|
-
import { i as matchesCodexNativeSubagentSubmissionBinding, n as assertCodexBindingMayBeReplaced, v as sessionBindingIdentity } from "./session-binding-record-
|
|
6
|
-
import { n as defineCodexBuildState } from "./build-state-
|
|
5
|
+
import { i as matchesCodexNativeSubagentSubmissionBinding, n as assertCodexBindingMayBeReplaced, v as sessionBindingIdentity } from "./session-binding-record-CUKpUKVm.mjs";
|
|
6
|
+
import { n as defineCodexBuildState } from "./build-state-B3lvV1Op.mjs";
|
|
7
7
|
import { c as shouldAutoApproveCodexAppServerApprovals, l as withMcpElicitationsApprovalPolicy, m as readCodexRequirementsToml, n as hasCodexMcpToolApprovalOverrides } from "./config-security-CE-FcGw9.mjs";
|
|
8
8
|
import { c as isCodexPairedNodeRemoteExecPlacementSandbox, d as readCodexPluginConfig, f as resolveCodexPluginsPolicy, l as isCodexRemoteExecPlacementSandbox, u as isCodexSandboxExecServerEnabled } from "./config-parsing-b088LyhT.mjs";
|
|
9
9
|
import { n as isCodexAppServerProxyLaunch } from "./launch-args-DbFCehO7.mjs";
|
|
10
10
|
import { t as resolveCodexAppServerHomeDir } from "./auth-start-options-BPIPeEX8.mjs";
|
|
11
11
|
import { i as resolveCodexAppServerHomeScope, l as resolveCodexModelBackedReviewerPolicyContext, o as resolveCodexComputerUseConfig } from "./config-options-CzyWLTJt.mjs";
|
|
12
|
-
import { c as resolveCodexAppServerPreparedApiKeyCacheKey, s as resolveCodexAppServerFallbackApiKeyCacheKey } from "./auth-cache-key-
|
|
13
|
-
import {
|
|
12
|
+
import { c as resolveCodexAppServerPreparedApiKeyCacheKey, s as resolveCodexAppServerFallbackApiKeyCacheKey } from "./auth-cache-key-CskfconU.mjs";
|
|
13
|
+
import { f as retireSharedCodexAppServerClientIfCurrent } from "./shared-client-lifecycle-BH_y_i8l.mjs";
|
|
14
14
|
import { o as formatCodexDisplayText } from "./command-formatters-R3ckE3Co.mjs";
|
|
15
|
-
import { t as isIncognitoSessionKey } from "./incognito-session-
|
|
15
|
+
import { t as isIncognitoSessionKey } from "./incognito-session-C5ve_-63.mjs";
|
|
16
16
|
import { n as CodexAppServerRpcError } from "./rpc-error-BlD2vuzn.mjs";
|
|
17
17
|
import { n as waitForPromiseOrAbort, r as withAbortableTimeout } from "./timeout-CXOfNoaX.mjs";
|
|
18
18
|
import { t as readCodexAsyncQuestions } from "./async-questions-DdhOCwGi.mjs";
|
|
19
19
|
import { a as readCodexProviderRefusal, d as splitPlanText, i as readCodexErrorNotificationMessage, l as readNonNegativeInteger, n as extractRawAssistantText, s as readItem, u as readNullableString } from "./event-projector-values-DJSz8BTk.mjs";
|
|
20
20
|
import { r as readMirrorIdentity, t as attachCodexMirrorIdentity } from "./upstream-prompt-provenance-fXkKbPVC.mjs";
|
|
21
21
|
import { a as defaultCodexAppInventoryCache, n as buildCodexAppServerRuntimeFingerprint, r as buildCodexPluginAppCacheKey } from "./plugin-app-cache-key-BL9B5H0L.mjs";
|
|
22
|
-
import { i as resolveCodexBindingAppServerConnection, r as requireCodexSupervisionModelSelection, t as assertCodexSessionRuntimeOwnership } from "./binding-connection-
|
|
23
|
-
import { r as requestCodexAppServerClientJson, t as CodexAppServerScopedRequestRejectedError } from "./request-
|
|
24
|
-
import { n as canUseCodexModelBackedApprovalsReviewerForModel, r as resolveOpenClawExecPolicyForCodexAppServer } from "./config-
|
|
22
|
+
import { i as resolveCodexBindingAppServerConnection, r as requireCodexSupervisionModelSelection, t as assertCodexSessionRuntimeOwnership } from "./binding-connection-DRPlnIgg.mjs";
|
|
23
|
+
import { r as requestCodexAppServerClientJson, t as CodexAppServerScopedRequestRejectedError } from "./request-CWERwKIL.mjs";
|
|
24
|
+
import { n as canUseCodexModelBackedApprovalsReviewerForModel, r as resolveOpenClawExecPolicyForCodexAppServer } from "./config-DqmrqI23.mjs";
|
|
25
25
|
import { a as isCodexDurableCustomMessage, c as resolveCodexContextEngineProjectionMaxChars, i as fitCodexProjectedContextForTurnStart, l as resolveCodexContinuityProjectionMaxChars, n as CodexContextAttachmentError, o as neutralizeCodexExplicitMentionSigils, r as buildCodexContinuityCalibration, s as projectContextEngineAssemblyForCodex, t as CODEX_TURN_START_TEXT_INPUT_MAX_CHARS } from "./context-engine-projection-PezSESth.mjs";
|
|
26
26
|
import { o as hasCodexMirrorOrigin, t as applyCodexTranscriptTaint } from "./transcript-mirror-attestation-YSegaktH.mjs";
|
|
27
27
|
import { t as readCodexMirroredSessionHistoryMessages } from "./session-history-D83lJWHG.mjs";
|
|
28
28
|
import { i as resolveCodexAppServerAuthProfileIdForAgent, r as resolveCodexAppServerAuthProfileId } from "./auth-profile-B0okYl2D.mjs";
|
|
29
|
-
import { E as isCodexContextRestartSelectionChangedError, I as ensureCodexAppServerClientRuntime, M as getCodexInferenceThreadQualification, U as prepareCodexWorkspaceReferences, W as protectCodexAppServerLiveThread, X as readCodexRateLimitsRevision, Z as readRecentCodexRateLimits, _ as retainSharedCodexAppServerClientIfCurrent, a as clearSharedCodexAppServerClientIfCurrentAndUnclaimed, c as getLeasedSharedCodexAppServerClient, dt as
|
|
29
|
+
import { E as isCodexContextRestartSelectionChangedError, I as ensureCodexAppServerClientRuntime, M as getCodexInferenceThreadQualification, U as prepareCodexWorkspaceReferences, W as protectCodexAppServerLiveThread, X as readCodexRateLimitsRevision, Z as readRecentCodexRateLimits, _ as retainSharedCodexAppServerClientIfCurrent, _t as withCodexStartupTimeout, a as clearSharedCodexAppServerClientIfCurrentAndUnclaimed, c as getLeasedSharedCodexAppServerClient, dt as CodexAppServerStartupError, f as readCodexAppServerClientDesktopGenerationFingerprint, ft as TURN_FINALIZE_DRAIN_ABORT_GRACE_MS, gt as resolveCodexStartupTimeoutMs, h as releaseLeasedSharedCodexAppServerClient, i as clearSharedCodexAppServerClientIfCurrent, j as getCodexInferenceThread, l as getSharedCodexAppServerClient, nt as resolveCodexAppServerAuthAccountCacheKey, pt as TURN_TERMINAL_SETTLEMENT_TIMEOUT_MS, rt as resolveCodexAppServerPreparedAuthHandoff, s as createIsolatedCodexAppServerClient, u as isCodexAppServerStartSelectionChangedError, w as CodexThreadClientReplacementError, x as CODEX_APP_SERVER_CONTEXT_RESTART_SELECTION_CHANGED } from "./shared-client-ZXKMsK6f.mjs";
|
|
30
30
|
import { a as isCodexResponsesOAuthRun, r as isCodexResponsesOAuth } from "./responses-oauth-twnuTaAa.mjs";
|
|
31
|
-
import { A as handleDynamicToolCallWithTimeout, E as readCodexTurnCompletedNotification, F as resolveTerminalDynamicToolBatchAction, I as shouldBlockTerminalReleaseForNonTerminalDynamicToolResult, L as shouldReleaseTurnAfterTerminalDynamicTool, M as isDynamicToolTerminalDiagnosticEvent, N as isMatchingDynamicToolTerminalDiagnostic, P as resolveDynamicToolCallTimeoutMs, R as toCodexDynamicToolProgressResponse, S as assertCodexTurnStartResponse, U as CODEX_APP_SERVER_OPT_OUT_NOTIFICATION_METHODS, c as isCodexAppServerIndeterminateTransportError, i as isCodexAppServerApprovalRequest, j as hasPendingDynamicToolTerminalDiagnostic, k as createCodexElicitationResponse, m as CodexServerRequestResolvedError, o as isCodexAppServerConnectionClosedError, p as resolveCodexAppServerClientInstanceId, r as getCodexAppServerClientInstanceId, s as isCodexAppServerIndeterminateRequestCancellationError, w as readCodexDynamicToolCallParams, z as toCodexDynamicToolProtocolResponse } from "./client-
|
|
32
|
-
import { n as isCodexWebSocketOpenFailure } from "./transport-websocket-
|
|
33
|
-
import { M as matchesCodexSnapshotTurn, N as shouldClearTerminalPresentationForNativeItem, _ as CodexProjectionDiagnostics, d as shouldRetireCodexStartupClient, f as terminateCodexBackgroundTerminals, h as getCodexAppServerTurnRouter, k as itemName, m as CODEX_APP_SERVER_NATIVE_TURN_WAIT_TIMEOUT_MS, n as CODEX_APP_SERVER_UNSUBSCRIBE_TIMEOUT_MS, o as closeCodexStartupClientBestEffort, p as unsubscribeCodexThreadBestEffort, r as CodexAppServerUnsafeSubscriptionError, s as interruptCodexTurnAndWaitBestEffort, u as retireUnsafeCodexTurnClientBestEffort, v as isCodexNotificationForTurn, y as readCodexNotificationThreadId } from "./attempt-client-cleanup-
|
|
34
|
-
import { r as prepareCodexAppServerAuthBinding } from "./auth-binding-
|
|
31
|
+
import { A as handleDynamicToolCallWithTimeout, E as readCodexTurnCompletedNotification, F as resolveTerminalDynamicToolBatchAction, I as shouldBlockTerminalReleaseForNonTerminalDynamicToolResult, L as shouldReleaseTurnAfterTerminalDynamicTool, M as isDynamicToolTerminalDiagnosticEvent, N as isMatchingDynamicToolTerminalDiagnostic, P as resolveDynamicToolCallTimeoutMs, R as toCodexDynamicToolProgressResponse, S as assertCodexTurnStartResponse, U as CODEX_APP_SERVER_OPT_OUT_NOTIFICATION_METHODS, c as isCodexAppServerIndeterminateTransportError, i as isCodexAppServerApprovalRequest, j as hasPendingDynamicToolTerminalDiagnostic, k as createCodexElicitationResponse, m as CodexServerRequestResolvedError, o as isCodexAppServerConnectionClosedError, p as resolveCodexAppServerClientInstanceId, r as getCodexAppServerClientInstanceId, s as isCodexAppServerIndeterminateRequestCancellationError, w as readCodexDynamicToolCallParams, z as toCodexDynamicToolProtocolResponse } from "./client-DcTISXe3.mjs";
|
|
32
|
+
import { n as isCodexWebSocketOpenFailure } from "./transport-websocket-zu3jRPnu.mjs";
|
|
33
|
+
import { M as matchesCodexSnapshotTurn, N as shouldClearTerminalPresentationForNativeItem, _ as CodexProjectionDiagnostics, d as shouldRetireCodexStartupClient, f as terminateCodexBackgroundTerminals, h as getCodexAppServerTurnRouter, k as itemName, m as CODEX_APP_SERVER_NATIVE_TURN_WAIT_TIMEOUT_MS, n as CODEX_APP_SERVER_UNSUBSCRIBE_TIMEOUT_MS, o as closeCodexStartupClientBestEffort, p as unsubscribeCodexThreadBestEffort, r as CodexAppServerUnsafeSubscriptionError, s as interruptCodexTurnAndWaitBestEffort, u as retireUnsafeCodexTurnClientBestEffort, v as isCodexNotificationForTurn, y as readCodexNotificationThreadId } from "./attempt-client-cleanup-BVtNsTOE.mjs";
|
|
34
|
+
import { r as prepareCodexAppServerAuthBinding } from "./auth-binding-Bnaj0_iV.mjs";
|
|
35
35
|
import { a as isRawFunctionToolOutputCompletionNotification, c as readNotificationItemId, i as isPendingOpenClawDynamicToolCompletionNotification, l as readRawResponseToolCallId, o as isTerminalTurnStatus, r as isCodexTurnAbortMarkerNotification, s as readCodexNotificationItem, t as CodexUsageProjection, u as updateActiveTurnItemIds } from "./event-projector-usage-03R0I2dM.mjs";
|
|
36
|
-
import { n as listAllCodexAppServerModels } from "./models-
|
|
37
|
-
import { A as createCodexNativeHookRelay, B as loadCodexNativeToolCatalog, D as buildCodexNativeHookRelayConfig, E as assertCodexNativeHookRelayAllowed, K as codexDynamicToolsFingerprint, M as resolveCodexNativeHookRelayEvents, N as resolveCodexNativeHookRelayTtlMs, O as buildCodexNativeHookRelayDisabledConfig, P as scheduleCodexNativeHookRelayUnregister, St as mergeCodexThreadConfigs, T as CodexManagedHooksOnlyError, W as areCodexDynamicToolFingerprintsCompatible, X as fingerprintJsonObject, _t as buildCodexPluginThreadConfigTimeoutFallback, gt as buildCodexPluginThreadConfigInputFingerprint, h as buildDeveloperInstructions, ht as buildCodexPluginThreadConfig, ot as filterCodexDynamicTools, p as resolveCodexWebSearchPlan, pt as resolveCodexDynamicToolsLoadingForRuntime, q as codexLegacyDynamicToolsFingerprint, tt as stabilizeJsonValue, ut as isSystemAgentOnlyCodexDynamicToolAllowlist, w as CODEX_NATIVE_HOOK_RELAY_TTL_GRACE_MS, wt as shouldBuildCodexPluginThreadConfig, x as joinPresentSections, y as resolveCodexAppServerThreadModelSelection, z as hasCodexNativeToolCatalog } from "./thread-requests-
|
|
38
|
-
import { _ as readCodexMcpToolUiVisibility, a as buildTurnStartParams, b as isContextEngineBindingCompatible, c as assertScheduledCodexAppAuthorityRuntime, d as buildScheduledCodexAppServerConnectionIdentity, f as captureScheduledCodexAppAuthority, g as readCodexMcpToolConnectorId, h as resolveScheduledCodexAppCreatorCaptureDecision, i as buildTurnCollaborationMode, l as buildLegacyScheduledCodexAppRecoveryPrompt, m as readCurrentCodexScheduledAppPolicy, n as buildCodexParentLocalInstructions, o as buildCodexUserInput, p as intersectCodexPluginThreadConfigWithScheduledAuthority, s as startOrResumeThread, t as buildCodexHistoryProvenancePrefix, u as buildScheduledCodexAppAuthorityInputFingerprint, v as isCodexAppServerProfilerEnabled, y as buildContextEngineBinding } from "./thread-lifecycle-
|
|
39
|
-
import { a as resolveCodexRunSessionBindingAuthority, n as createCodexSessionGenerationSupersededError, o as resolveCodexSessionBinding } from "./session-binding-
|
|
40
|
-
import { a as CodexToolTranscriptProjection, b as sanitizeCodexAgentEventRecord, c as shouldEmitTranscriptToolProgress, i as emitCodexAgentEvent, p as requestPluginApprovalOutcome, r as CodexEventProjection, s as CodexToolProgressProjection, t as codexNativeSubagentMonitorRuntime, v as isCodexCommandBearingToolCall, x as sanitizeCodexToolArguments, y as resolveCodexToolProgressDetailMode } from "./native-subagent-monitor-
|
|
41
|
-
import { n as CodexThreadPolicyHandoffError, s as restoreCodexThreadSkillsCatalogAfterCompaction } from "./thread-policy-
|
|
42
|
-
import { c as withExclusiveCodexAppServerThread, r as retainCodexAppServerBindingSubscription, t as isSameCodexAppServerThreadOwner } from "./thread-ownership-
|
|
43
|
-
import { c as promptSnapshot, i as mirrorPromptAtTurnStartBestEffort, n as createCodexAppServerUserMessagePersistenceNotifier, o as buildCodexUserPromptMessage, s as buildResolvedCodexUserPromptMessage, t as codexTranscriptMirrorRuntime } from "./transcript-mirror-
|
|
44
|
-
import { a as resolveCodexPromptError, i as refreshCodexUsageLimitPromptError, n as formatCodexTurnStartUsageLimitError, r as markCodexAuthProfileBlockedFromRateLimits, t as CodexUsageLimitPromptError } from "./usage-limit-error-
|
|
36
|
+
import { n as listAllCodexAppServerModels } from "./models-BwkZaXXj.mjs";
|
|
37
|
+
import { A as createCodexNativeHookRelay, B as loadCodexNativeToolCatalog, D as buildCodexNativeHookRelayConfig, E as assertCodexNativeHookRelayAllowed, K as codexDynamicToolsFingerprint, M as resolveCodexNativeHookRelayEvents, N as resolveCodexNativeHookRelayTtlMs, O as buildCodexNativeHookRelayDisabledConfig, P as scheduleCodexNativeHookRelayUnregister, St as mergeCodexThreadConfigs, T as CodexManagedHooksOnlyError, W as areCodexDynamicToolFingerprintsCompatible, X as fingerprintJsonObject, _t as buildCodexPluginThreadConfigTimeoutFallback, gt as buildCodexPluginThreadConfigInputFingerprint, h as buildDeveloperInstructions, ht as buildCodexPluginThreadConfig, ot as filterCodexDynamicTools, p as resolveCodexWebSearchPlan, pt as resolveCodexDynamicToolsLoadingForRuntime, q as codexLegacyDynamicToolsFingerprint, tt as stabilizeJsonValue, ut as isSystemAgentOnlyCodexDynamicToolAllowlist, w as CODEX_NATIVE_HOOK_RELAY_TTL_GRACE_MS, wt as shouldBuildCodexPluginThreadConfig, x as joinPresentSections, y as resolveCodexAppServerThreadModelSelection, z as hasCodexNativeToolCatalog } from "./thread-requests-y_MnVuWC.mjs";
|
|
38
|
+
import { _ as readCodexMcpToolUiVisibility, a as buildTurnStartParams, b as isContextEngineBindingCompatible, c as assertScheduledCodexAppAuthorityRuntime, d as buildScheduledCodexAppServerConnectionIdentity, f as captureScheduledCodexAppAuthority, g as readCodexMcpToolConnectorId, h as resolveScheduledCodexAppCreatorCaptureDecision, i as buildTurnCollaborationMode, l as buildLegacyScheduledCodexAppRecoveryPrompt, m as readCurrentCodexScheduledAppPolicy, n as buildCodexParentLocalInstructions, o as buildCodexUserInput, p as intersectCodexPluginThreadConfigWithScheduledAuthority, s as startOrResumeThread, t as buildCodexHistoryProvenancePrefix, u as buildScheduledCodexAppAuthorityInputFingerprint, v as isCodexAppServerProfilerEnabled, y as buildContextEngineBinding } from "./thread-lifecycle-CzzYMvTL.mjs";
|
|
39
|
+
import { a as resolveCodexRunSessionBindingAuthority, n as createCodexSessionGenerationSupersededError, o as resolveCodexSessionBinding } from "./session-binding-Fn7Ekzuv.mjs";
|
|
40
|
+
import { a as CodexToolTranscriptProjection, b as sanitizeCodexAgentEventRecord, c as shouldEmitTranscriptToolProgress, i as emitCodexAgentEvent, p as requestPluginApprovalOutcome, r as CodexEventProjection, s as CodexToolProgressProjection, t as codexNativeSubagentMonitorRuntime, v as isCodexCommandBearingToolCall, x as sanitizeCodexToolArguments, y as resolveCodexToolProgressDetailMode } from "./native-subagent-monitor-g-ZDkvCr.mjs";
|
|
41
|
+
import { n as CodexThreadPolicyHandoffError, s as restoreCodexThreadSkillsCatalogAfterCompaction } from "./thread-policy-MM5YD22L.mjs";
|
|
42
|
+
import { c as withExclusiveCodexAppServerThread, r as retainCodexAppServerBindingSubscription, t as isSameCodexAppServerThreadOwner } from "./thread-ownership-BT_SeSUp.mjs";
|
|
43
|
+
import { c as promptSnapshot, i as mirrorPromptAtTurnStartBestEffort, n as createCodexAppServerUserMessagePersistenceNotifier, o as buildCodexUserPromptMessage, s as buildResolvedCodexUserPromptMessage, t as codexTranscriptMirrorRuntime } from "./transcript-mirror-BRNhyb1o.mjs";
|
|
44
|
+
import { a as resolveCodexPromptError, i as refreshCodexUsageLimitPromptError, n as formatCodexTurnStartUsageLimitError, r as markCodexAuthProfileBlockedFromRateLimits, t as CodexUsageLimitPromptError } from "./usage-limit-error-B1FCZdeH.mjs";
|
|
45
45
|
import { t as persistCodexContextCompactionActivity } from "./context-compaction-activity-CMla5FPJ.mjs";
|
|
46
46
|
import { t as attemptTerminal } from "./attempt-terminal-gZrxQ35N.mjs";
|
|
47
47
|
import { a as shouldKeepCodexSharedAbortOpen, i as runCodexAgentEndHook, n as ensureCodexWorkspaceDirOnce, o as withCodexAppServerFastModeServiceTier, r as estimateCodexAppServerProjectedTurnTokens, t as emitCodexAppServerEvent } from "./run-attempt-lifecycle-C-6O3Exn.mjs";
|
|
48
48
|
import { t as CODEX_INFERENCE_GENERATION_KEY } from "./inference-metadata-CgIf7sOx.mjs";
|
|
49
49
|
import "./inference-context-D-9gWlTR.mjs";
|
|
50
|
-
import { i as createAssistantReasoningMessage, n as createAssistantCommentaryMessage, r as createAssistantMessage, t as createAssistantAsyncMessage } from "./event-projector-assistant-message-
|
|
51
|
-
import { C as readCodexRetainedBackgroundCommands, E as CodexNativeToolLifecycleProjector, S as hasCodexNativeBackgroundProcesses, T as mapCodexAppServerRemoteWorkspacePath, _ as shouldWarnCodexDynamicToolBuildStageSummary, a as emitDynamicToolStartedDiagnostic, b as createCodexNativePreToolUseFailureBuffer, c as buildDynamicTools, d as resolveCodexAppServerHookChannelId, f as resolveCodexExternalSandboxPolicyForOpenClawSandbox, g as shouldRequireCodexSandboxExecServerEnvironment, h as shouldEnableCodexAppServerNativeToolSurface, i as emitDynamicToolErrorDiagnostic, l as disableCodexPluginThreadConfig, m as resolveCodexSandboxEnvironmentSelection, n as projectCodexExecutableDynamicTools, o as emitDynamicToolTerminalDiagnostic, p as resolveCodexMessageToolProvider, r as routeCodexAppServerElicitationRequest, s as handleCodexAppServerApprovalRequest, t as createCodexDynamicToolBridge, u as resolveCodexAppServerExecutionCwd, v as ensureCodexSandboxExecServerEnvironment, w as readBoundedCodexRemoteWorkspaceFile, x as CodexNativeProcessAuthority, y as releaseCodexSandboxExecServerEnvironment } from "./dynamic-tools-
|
|
52
|
-
import { a as resolveCodexAppServerForModelProvider, i as resolveCodexSessionPermissionCwd, n as applyCodexSessionPermissionPolicy, r as resolveCodexEffectiveSessionPermissionPolicy } from "./session-permission-policy-
|
|
53
|
-
import { a as getCodexContextFileDisplayBasename, c as normalizeCodexDynamicToolName, i as getCodexContextFileBasename, n as CODEX_NATIVE_PROJECT_DOC_BASENAMES, o as isNonEmptyString, r as buildCodexWorkspaceBootstrapContext, s as normalizeCodexContextFilePath } from "./attempt-workspace-context-
|
|
50
|
+
import { i as createAssistantReasoningMessage, n as createAssistantCommentaryMessage, r as createAssistantMessage, t as createAssistantAsyncMessage } from "./event-projector-assistant-message-DXDX94zH.mjs";
|
|
51
|
+
import { C as readCodexRetainedBackgroundCommands, E as CodexNativeToolLifecycleProjector, S as hasCodexNativeBackgroundProcesses, T as mapCodexAppServerRemoteWorkspacePath, _ as shouldWarnCodexDynamicToolBuildStageSummary, a as emitDynamicToolStartedDiagnostic, b as createCodexNativePreToolUseFailureBuffer, c as buildDynamicTools, d as resolveCodexAppServerHookChannelId, f as resolveCodexExternalSandboxPolicyForOpenClawSandbox, g as shouldRequireCodexSandboxExecServerEnvironment, h as shouldEnableCodexAppServerNativeToolSurface, i as emitDynamicToolErrorDiagnostic, l as disableCodexPluginThreadConfig, m as resolveCodexSandboxEnvironmentSelection, n as projectCodexExecutableDynamicTools, o as emitDynamicToolTerminalDiagnostic, p as resolveCodexMessageToolProvider, r as routeCodexAppServerElicitationRequest, s as handleCodexAppServerApprovalRequest, t as createCodexDynamicToolBridge, u as resolveCodexAppServerExecutionCwd, v as ensureCodexSandboxExecServerEnvironment, w as readBoundedCodexRemoteWorkspaceFile, x as CodexNativeProcessAuthority, y as releaseCodexSandboxExecServerEnvironment } from "./dynamic-tools-Dr0ye5P3.mjs";
|
|
52
|
+
import { a as resolveCodexAppServerForModelProvider, i as resolveCodexSessionPermissionCwd, n as applyCodexSessionPermissionPolicy, r as resolveCodexEffectiveSessionPermissionPolicy } from "./session-permission-policy-7lM447LW.mjs";
|
|
53
|
+
import { a as getCodexContextFileDisplayBasename, c as normalizeCodexDynamicToolName, i as getCodexContextFileBasename, n as CODEX_NATIVE_PROJECT_DOC_BASENAMES, o as isNonEmptyString, r as buildCodexWorkspaceBootstrapContext, s as normalizeCodexContextFilePath } from "./attempt-workspace-context-XRsWP165.mjs";
|
|
54
54
|
import { n as captureCodexSettledTurnFinalizationContext } from "./settled-turn-context-D4yj4rxf.mjs";
|
|
55
|
-
import { t as resolveCodexProviderWebSearchSupport } from "./provider-capabilities-
|
|
56
|
-
import { a as createComputerUseRequest, n as ensureCodexComputerUse, o as runCodexComputerUseLiveTest, t as defaultCodexPluginMetadataCache } from "./plugin-metadata-cache-
|
|
55
|
+
import { t as resolveCodexProviderWebSearchSupport } from "./provider-capabilities-DBs9l8oL.mjs";
|
|
56
|
+
import { a as createComputerUseRequest, n as ensureCodexComputerUse, o as runCodexComputerUseLiveTest, t as defaultCodexPluginMetadataCache } from "./plugin-metadata-cache-C-LRxilF.mjs";
|
|
57
57
|
import { asOptionalRecord, normalizeOptionalString, readNonBlankString, readStringField } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
58
58
|
import { createHash } from "node:crypto";
|
|
59
59
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -77,7 +77,7 @@ import { getSessionEntry } from "openclaw/plugin-sdk/session-store-runtime";
|
|
|
77
77
|
import { acknowledgeInternalToolResult, createAgentHarnessToolExecutionRegistry } from "openclaw/plugin-sdk/agent-harness-tool-runtime";
|
|
78
78
|
import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
|
|
79
79
|
import { captureFinalCodexCronCreatorToolAllowlist, formatMcpCodexApprovalRemedy, materializeStaticMcpToolsForHarnessRun, resolveCodexMcpToolOverridesForAgent, resolveCodexTtsProvenanceTransfer } from "openclaw/plugin-sdk/codex-mcp-projection";
|
|
80
|
-
import { appendSessionYieldContext, hasPromptImageInput } from "openclaw/plugin-sdk/session-transcript-runtime";
|
|
80
|
+
import { appendSessionTranscriptMessageByIdentityStrict, appendSessionYieldContext, hasPromptImageInput } from "openclaw/plugin-sdk/session-transcript-runtime";
|
|
81
81
|
import { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/media-local-roots";
|
|
82
82
|
import { isSilentReplyPayloadText } from "openclaw/plugin-sdk/reply-chunking";
|
|
83
83
|
import { generatedImageAssetFromBase64 } from "openclaw/plugin-sdk/image-generation";
|
|
@@ -2807,7 +2807,7 @@ function activateCodexAttemptTurn(resources, turnRuntime, lifecycle, notificatio
|
|
|
2807
2807
|
isStreaming: () => !state.completed && !runAbortController.signal.aborted,
|
|
2808
2808
|
isAborted: () => runAbortController.signal.aborted,
|
|
2809
2809
|
isStopped: () => state.completed || runAbortController.signal.aborted,
|
|
2810
|
-
ownsLiveness: () => deadlines.ownsExecutionWait() && resourceState.turnRoute?.signal.aborted === false && !state.completed && !state.terminalTurnNotificationQueued
|
|
2810
|
+
ownsLiveness: () => deadlines.ownsExecutionWait() && resourceState.turnRoute?.signal.aborted === false && !state.completed && !state.terminalTurnNotificationQueued,
|
|
2811
2811
|
isAbortable: () => !terminalState.terminalOutcomeFrozen || terminalState.sharedAbortAllowedAfterTerminalOutcome,
|
|
2812
2812
|
isCompacting: () => projectorRef.current?.isCompacting() ?? false,
|
|
2813
2813
|
supportsTranscriptCommitWait: true,
|
|
@@ -5540,14 +5540,49 @@ function createNativeSubagentAssignmentStore(params) {
|
|
|
5540
5540
|
assertCurrent();
|
|
5541
5541
|
assertSourceCurrent();
|
|
5542
5542
|
}),
|
|
5543
|
-
consume: (assignment, assertSourceCurrent) =>
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5543
|
+
consume: async (assignment, assertSourceCurrent, undelivered) => {
|
|
5544
|
+
const applied = await bindingStore.mutate(identity, {
|
|
5545
|
+
kind: "consume-native-subagent-assignment",
|
|
5546
|
+
owner,
|
|
5547
|
+
assignment,
|
|
5548
|
+
...undelivered ? { undelivered: true } : {}
|
|
5549
|
+
}, () => {
|
|
5550
|
+
assertCurrent();
|
|
5551
|
+
assertSourceCurrent();
|
|
5552
|
+
});
|
|
5553
|
+
if (applied && undelivered) {
|
|
5554
|
+
embeddedAgentLog.warn("Native subagent completion retired without delivery", {
|
|
5555
|
+
childThreadId: assignment.childThreadId,
|
|
5556
|
+
nativeTurnId: assignment.nativeTurnId,
|
|
5557
|
+
status: undelivered.status,
|
|
5558
|
+
childSessionKey: assignment.runId
|
|
5559
|
+
});
|
|
5560
|
+
try {
|
|
5561
|
+
if (identity.kind !== "session" || !identity.sessionKey) throw new Error("Native completion has no parent transcript target.");
|
|
5562
|
+
const note = await appendSessionTranscriptMessageByIdentityStrict({
|
|
5563
|
+
agentId: identity.agentId,
|
|
5564
|
+
sessionId: owner.sessionId,
|
|
5565
|
+
sessionKey: identity.sessionKey,
|
|
5566
|
+
updateMode: "inline",
|
|
5567
|
+
message: {
|
|
5568
|
+
role: "custom",
|
|
5569
|
+
customType: "openclaw.system-note",
|
|
5570
|
+
display: true,
|
|
5571
|
+
content: `Native subagent ${assignment.childThreadId} finished with status ${undelivered.status}, but its completion could not be delivered. Automatic delivery has stopped. Inspect its native Codex thread history${assignment.nativeTurnId ? ` at turn ${assignment.nativeTurnId}` : ""}; child session key: ${assignment.runId}.`.slice(0, 2048),
|
|
5572
|
+
timestamp: Date.now(),
|
|
5573
|
+
idempotencyKey: `codex-undelivered:${owner.lifecycleRevision ?? owner.sessionId}:${assignment.childThreadId}:${assignment.nativeTurnId ?? "initial"}`
|
|
5574
|
+
}
|
|
5575
|
+
});
|
|
5576
|
+
if (note.kind !== "result") throw new Error(`Native completion note was ${note.kind}.`);
|
|
5577
|
+
} catch (error) {
|
|
5578
|
+
embeddedAgentLog.warn("Could not persist native completion retirement note", {
|
|
5579
|
+
childSessionKey: assignment.runId,
|
|
5580
|
+
error: formatErrorMessage(error)
|
|
5581
|
+
});
|
|
5582
|
+
}
|
|
5583
|
+
}
|
|
5584
|
+
return applied;
|
|
5585
|
+
}
|
|
5551
5586
|
};
|
|
5552
5587
|
}
|
|
5553
5588
|
//#endregion
|
|
@@ -6637,7 +6672,7 @@ function createCodexAttemptServerRequestController(resources, turnRuntime, lifec
|
|
|
6637
6672
|
//#region extensions/codex/src/app-server/attempt-runtime-artifact.ts
|
|
6638
6673
|
async function verifyStartupArtifact(params) {
|
|
6639
6674
|
if (!params.request) return;
|
|
6640
|
-
const { readCodexAppServerClientRuntimeArtifact, validateCodexAppServerRuntimeArtifact } = await import("./runtime-artifact-
|
|
6675
|
+
const { readCodexAppServerClientRuntimeArtifact, validateCodexAppServerRuntimeArtifact } = await import("./runtime-artifact-Riq878B2.mjs");
|
|
6641
6676
|
const runtimeArtifact = readCodexAppServerClientRuntimeArtifact(params.client);
|
|
6642
6677
|
const expected = params.request.expected;
|
|
6643
6678
|
const matchesExpected = !expected || runtimeArtifact?.id === expected.id && runtimeArtifact.fingerprint === expected.fingerprint;
|
|
@@ -8093,7 +8128,7 @@ async function prepareCodexAttemptTurnRequest(resources, turnRuntime, ensureCurr
|
|
|
8093
8128
|
enabled: turnAppServer.enableUltrafast === true && fastMode !== false,
|
|
8094
8129
|
serviceTier: turnStartParams.serviceTier,
|
|
8095
8130
|
model: turnStartParams.model ?? model,
|
|
8096
|
-
modelProvider,
|
|
8131
|
+
modelProvider: modelProvider ?? effectiveRuntimeProviderId,
|
|
8097
8132
|
client: turnClient,
|
|
8098
8133
|
timeoutMs: Math.min(params.timeoutMs, 2500),
|
|
8099
8134
|
signal: runAbortController.signal,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isCodexAppServerProxyLaunch } from "./launch-args-DbFCehO7.mjs";
|
|
2
|
-
import { a as resolvePackagedCodexNativeCommand } from "./managed-binary-
|
|
3
|
-
import { n as resolveCodexAppServerSpawnEnv, r as resolveCodexAppServerSpawnInvocation } from "./transport-stdio-
|
|
4
|
-
import { captureCodexConfiguredConnection, finalizeCodexConfiguredConnection, isCodexConfiguredConnectionArtifact, validateCodexConfiguredConnectionCapture } from "./runtime-artifact-connection-
|
|
2
|
+
import { a as resolvePackagedCodexNativeCommand } from "./managed-binary-Ckgvm_4V.mjs";
|
|
3
|
+
import { n as resolveCodexAppServerSpawnEnv, r as resolveCodexAppServerSpawnInvocation } from "./transport-stdio-DU8dIOCj.mjs";
|
|
4
|
+
import { captureCodexConfiguredConnection, finalizeCodexConfiguredConnection, isCodexConfiguredConnectionArtifact, validateCodexConfiguredConnectionCapture } from "./runtime-artifact-connection-Bjv8P6Sx.mjs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { resolveWindowsExecutablePath } from "openclaw/plugin-sdk/windows-spawn";
|
|
7
7
|
import { constants } from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as codexAppServerStartOptionsKey } from "./config-options-CzyWLTJt.mjs";
|
|
2
|
-
import "./config-runtime-
|
|
3
|
-
import { r as resolveCodexAppServerUnixSocketPath } from "./transport-websocket-
|
|
2
|
+
import "./config-runtime-DDhvIeUC.mjs";
|
|
3
|
+
import { r as resolveCodexAppServerUnixSocketPath } from "./transport-websocket-zu3jRPnu.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region extensions/codex/src/app-server/runtime-artifact-connection.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as isCodexRemoteExecPlacementSandbox } from "./config-parsing-b088LyhT.mjs";
|
|
2
2
|
import { n as resolveCodexNativeExecutionPolicy, t as formatCodexNativeNodeExecBlock } from "./native-execution-policy-BxZJy5mP.mjs";
|
|
3
|
-
import { t as __exportAll } from "./session-binding-sidecars-
|
|
3
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
4
4
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { tryResolveDefaultAgentId } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
6
6
|
import { parseAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as adoptCodexNativeSubagentSubmissions, n as mutateNativePendingAssignments, o as mutateCodexNativeSubagentSubmissions } from "./native-subagent-pending-assignments-
|
|
2
|
-
import { _ as readStoredCodexAppServerBinding, a as matchesPendingSupervisionBranch, b as validateBindingForWrite, c as preserveNativePendingAssignments, d as readCodexBindingTimestamp, f as readCurrentCodexAppServerBinding, g as readPluginAppPolicyContext, h as readCurrentNativePendingAssignments, i as matchesCodexNativeSubagentSubmissionBinding, l as preserveNativeTaskImport, m as readCurrentCodexNativeSubagentSubmissions, n as assertCodexBindingMayBeReplaced, o as ownsStoredSessionGeneration, p as readCurrentCodexAppServerBindings, r as bindingStoreKey, s as preserveCodexNativeSubagentSubmissions, t as CodexSupervisionBindingReplacementError, u as readCodexAppServerThreadBinding, v as sessionBindingIdentity, y as stripUndefinedBinding } from "./session-binding-record-
|
|
1
|
+
import { a as matchesCodexNativeSubagentSubmissionOwner, c as codexNativeSubagentRunId, i as adoptCodexNativeSubagentSubmissions, n as mutateNativePendingAssignments, o as mutateCodexNativeSubagentSubmissions, s as readCodexNativeSubagentSubmissions } from "./native-subagent-pending-assignments-XHNn4k5q.mjs";
|
|
2
|
+
import { _ as readStoredCodexAppServerBinding, a as matchesPendingSupervisionBranch, b as validateBindingForWrite, c as preserveNativePendingAssignments, d as readCodexBindingTimestamp, f as readCurrentCodexAppServerBinding, g as readPluginAppPolicyContext, h as readCurrentNativePendingAssignments, i as matchesCodexNativeSubagentSubmissionBinding, l as preserveNativeTaskImport, m as readCurrentCodexNativeSubagentSubmissions, n as assertCodexBindingMayBeReplaced, o as ownsStoredSessionGeneration, p as readCurrentCodexAppServerBindings, r as bindingStoreKey, s as preserveCodexNativeSubagentSubmissions, t as CodexSupervisionBindingReplacementError, u as readCodexAppServerThreadBinding, v as sessionBindingIdentity, y as stripUndefinedBinding } from "./session-binding-record-CUKpUKVm.mjs";
|
|
3
3
|
import { n as CODEX_APP_SERVER_BINDING_NAMESPACE, t as CODEX_APP_SERVER_BINDING_MAX_ENTRIES } from "./session-binding-meta-B7aEMU7g.mjs";
|
|
4
4
|
import { n as normalizeCodexAppServerBindingModelProvider } from "./auth-profile-B0okYl2D.mjs";
|
|
5
|
-
import { t as __exportAll } from "./session-binding-sidecars-
|
|
5
|
+
import { t as __exportAll } from "./session-binding-sidecars-BuEALwJY.mjs";
|
|
6
6
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { AgentHarnessSessionSupersededError, embeddedAgentLog } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
@@ -20,8 +20,23 @@ function mutateNativeSubagentBinding({ identity, current, mutation, assertCurren
|
|
|
20
20
|
assignment: mutation.assignment,
|
|
21
21
|
consume: mutation.kind === "consume-native-subagent-assignment"
|
|
22
22
|
});
|
|
23
|
-
if (!changed.applied) return { result:
|
|
23
|
+
if (!changed.applied) return { result: mutation.kind === "consume-native-subagent-assignment" && mutation.undelivered === true && changed.absent === true };
|
|
24
24
|
const { nativeSubagentAssignments: _previous, ...bindingOwner } = current;
|
|
25
|
+
const retired = changed.consumed;
|
|
26
|
+
if (retired && mutation.kind === "consume-native-subagent-assignment" && mutation.undelivered) {
|
|
27
|
+
let submissions;
|
|
28
|
+
try {
|
|
29
|
+
submissions = readCodexNativeSubagentSubmissions(bindingOwner.nativeSubagentSubmissions);
|
|
30
|
+
} catch {}
|
|
31
|
+
if (submissions && matchesCodexNativeSubagentSubmissionOwner(submissions.owner, mutation.owner)) {
|
|
32
|
+
const receipts = submissions.receipts.filter((receipt) => receipt.childThreadId !== retired.childThreadId || receipt.submissionId !== retired.nativeTurnId && codexNativeSubagentRunId(receipt.childThreadId, receipt.submissionId) !== retired.runId);
|
|
33
|
+
delete bindingOwner.nativeSubagentSubmissions;
|
|
34
|
+
if (receipts.length) bindingOwner.nativeSubagentSubmissions = {
|
|
35
|
+
...submissions,
|
|
36
|
+
receipts
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
25
40
|
return {
|
|
26
41
|
result: true,
|
|
27
42
|
next: {
|
package/dist/.setup/{session-binding-record-Oe9L-CNY.mjs → session-binding-record-CUKpUKVm.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as CODEX_PLUGIN_MARKETPLACE_NAME_PATTERN, r as normalizeCodexServiceTier } from "./config-utils-D0CXecki.mjs";
|
|
2
|
-
import { a as matchesCodexNativeSubagentSubmissionOwner, h as codexNativeSubagentHistoryConnectionFingerprint, r as readNativePendingAssignments, s as readCodexNativeSubagentSubmissions, t as matchesNativeAssignmentLifecycle } from "./native-subagent-pending-assignments-
|
|
2
|
+
import { a as matchesCodexNativeSubagentSubmissionOwner, h as codexNativeSubagentHistoryConnectionFingerprint, r as readNativePendingAssignments, s as readCodexNativeSubagentSubmissions, t as matchesNativeAssignmentLifecycle } from "./native-subagent-pending-assignments-XHNn4k5q.mjs";
|
|
3
3
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { isDeepStrictEqual } from "node:util";
|
package/dist/.setup/{session-binding-sidecars-jo6H8dFr.mjs → session-binding-sidecars-BuEALwJY.mjs}
RENAMED
|
@@ -478,7 +478,7 @@ async function migrateSource(source, candidates, params, store) {
|
|
|
478
478
|
return await withFileLock(source.sidecarPath, LEGACY_BINDING_LOCK_OPTIONS, async () => {
|
|
479
479
|
const [contents, stat] = await Promise.all([fs.readFile(source.sidecarPath, "utf8"), fs.stat(source.sidecarPath)]);
|
|
480
480
|
const raw = JSON.parse(contents);
|
|
481
|
-
const [{ bindingStoreKey, createStoredCodexAppServerBinding, normalizeStoredCodexAppServerBindingFingerprints, readStoredCodexAppServerBinding }, { legacyCodexConversationBindingId }] = await Promise.all([import("./session-binding-
|
|
481
|
+
const [{ bindingStoreKey, createStoredCodexAppServerBinding, normalizeStoredCodexAppServerBindingFingerprints, readStoredCodexAppServerBinding }, { legacyCodexConversationBindingId }] = await Promise.all([import("./session-binding-Fn7Ekzuv.mjs").then((n) => n.s), import("./conversation-binding-data-DlsG-dQu.mjs").then((n) => n.t)]);
|
|
482
482
|
const agentId = owner?.agentId ?? (source.agentIds.size === 1 ? [...source.agentIds][0] : void 0);
|
|
483
483
|
const baseStored = createStoredCodexAppServerBinding(raw, {
|
|
484
484
|
now: stat.mtime.toISOString(),
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as unwrapNodeInvokePayload, C as readGatewayParams, E as requireOnlyKeys, S as readControlCursor, _ as normalizeLimit, a as CODEX_LOCAL_SESSION_HOST_ID, b as parseTranscriptPage, f as catalogError, g as isInteractiveThreadSource, h as filterCatalogPageByTitle, i as CODEX_CATALOG_TRANSCRIPT_READ_COMMAND, l as MAX_TRANSCRIPT_PAGE_BYTES, n as CODEX_APP_SERVER_THREADS_LIST_COMMAND, o as CatalogParamsError, r as CODEX_APP_SERVER_THREAD_TURNS_LIST_COMMAND, s as MAX_CURSOR_LENGTH, t as CODEX_APP_SERVER_THREADS_CAPABILITY, u as NODE_INVOKE_TIMEOUT_MS, v as parseCatalogPage, w as readPageParams, x as readBoundedOptionalString, y as parseJsonParams } from "./session-catalog-parsing-
|
|
1
|
+
import { A as unwrapNodeInvokePayload, C as readGatewayParams, E as requireOnlyKeys, S as readControlCursor, _ as normalizeLimit, a as CODEX_LOCAL_SESSION_HOST_ID, b as parseTranscriptPage, f as catalogError, g as isInteractiveThreadSource, h as filterCatalogPageByTitle, i as CODEX_CATALOG_TRANSCRIPT_READ_COMMAND, l as MAX_TRANSCRIPT_PAGE_BYTES, n as CODEX_APP_SERVER_THREADS_LIST_COMMAND, o as CatalogParamsError, r as CODEX_APP_SERVER_THREAD_TURNS_LIST_COMMAND, s as MAX_CURSOR_LENGTH, t as CODEX_APP_SERVER_THREADS_CAPABILITY, u as NODE_INVOKE_TIMEOUT_MS, v as parseCatalogPage, w as readPageParams, x as readBoundedOptionalString, y as parseJsonParams } from "./session-catalog-parsing-CnEH565l.mjs";
|
|
2
2
|
import { n as assertCodexThreadForkParams } from "./protocol-CANUwXJ3.mjs";
|
|
3
|
-
import { v as sessionBindingIdentity } from "./session-binding-record-
|
|
3
|
+
import { v as sessionBindingIdentity } from "./session-binding-record-CUKpUKVm.mjs";
|
|
4
4
|
import { d as readCodexPluginConfig } from "./config-parsing-b088LyhT.mjs";
|
|
5
5
|
import { n as resolveCodexAppServerLocalHomeDir, r as resolveCodexAppServerUserHomeDir, t as resolveCodexAppServerHomeDir } from "./auth-start-options-BPIPeEX8.mjs";
|
|
6
|
-
import { i as hasActiveSharedCodexAppServerWork, r as getSharedCodexAppServerClientState } from "./shared-client-lifecycle-
|
|
6
|
+
import { i as hasActiveSharedCodexAppServerWork, r as getSharedCodexAppServerClientState } from "./shared-client-lifecycle-BH_y_i8l.mjs";
|
|
7
7
|
import { n as CodexAppServerRpcError, r as isCodexThreadReadMissingError } from "./rpc-error-BlD2vuzn.mjs";
|
|
8
8
|
import { t as CODEX_CONTROL_METHODS } from "./capabilities-B3WEZl4e.mjs";
|
|
9
9
|
import { n as codexCatalogHomeIdFromCanonicalPath } from "./session-catalog-home-id-vlih0B_g.mjs";
|
|
10
10
|
import { i as withTimeout } from "./timeout-CXOfNoaX.mjs";
|
|
11
|
-
import { a as CodexCatalogLoadingError, n as currentCodexCatalogListRequest, r as withCodexCatalogListRequest, t as CodexCatalogListRequest } from "./session-catalog-list-request-
|
|
12
|
-
import { t as lookupNodeCodexCatalogRecord } from "./session-catalog-node-lookup-
|
|
11
|
+
import { a as CodexCatalogLoadingError, n as currentCodexCatalogListRequest, r as withCodexCatalogListRequest, t as CodexCatalogListRequest } from "./session-catalog-list-request-A1wN4sKw.mjs";
|
|
12
|
+
import { t as lookupNodeCodexCatalogRecord } from "./session-catalog-node-lookup-D9AP5D5o.mjs";
|
|
13
13
|
import { r as projectCodexUserItemText } from "./transcript-history-projection-DRSifI-1.mjs";
|
|
14
14
|
import { r as codexUpstreamContinueResult } from "./session-upstream-marker-D15C9NHp.mjs";
|
|
15
15
|
import { t as buildCodexAppServerConnectionFingerprint } from "./plugin-app-cache-key-BL9B5H0L.mjs";
|
|
16
16
|
import { n as readCodexSessionMeta } from "./session-catalog-provenance-DoAvktcj.mjs";
|
|
17
|
-
import { t as codexCatalogResidentHomeKey } from "./session-catalog-events-
|
|
18
|
-
import { a as setCodexCatalogConnectionHomeResolver } from "./binding-connection-
|
|
17
|
+
import { t as codexCatalogResidentHomeKey } from "./session-catalog-events-r59AxcQ4.mjs";
|
|
18
|
+
import { a as setCodexCatalogConnectionHomeResolver } from "./binding-connection-DRPlnIgg.mjs";
|
|
19
19
|
import { n as findCodexAppServerSpawnError } from "./spawn-error-CL3n6MAa.mjs";
|
|
20
20
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
21
21
|
import { randomUUID } from "node:crypto";
|
|
@@ -702,7 +702,7 @@ function hostFailure(source, error) {
|
|
|
702
702
|
}
|
|
703
703
|
async function projectLocalHost(params, agentId, source, page) {
|
|
704
704
|
params.signal?.throwIfAborted();
|
|
705
|
-
const { listAdoptedSessionEntries } = await import("./session-catalog-adoption-
|
|
705
|
+
const { listAdoptedSessionEntries } = await import("./session-catalog-adoption-58bqOngU.mjs");
|
|
706
706
|
const { sessionCatalogAdoptedSourceKey } = await import("openclaw/plugin-sdk/session-catalog");
|
|
707
707
|
params.signal?.throwIfAborted();
|
|
708
708
|
const finishTiming = startCodexCatalogListTiming("adoptionSumMs", "adoptionCalls");
|
|
@@ -925,8 +925,8 @@ var CodexCatalogListDriver = class {
|
|
|
925
925
|
}
|
|
926
926
|
params.signal?.throwIfAborted();
|
|
927
927
|
this.nodeSnapshots.observe(this.nodeGeneration, inventory);
|
|
928
|
-
const { listNodeAdoptedSessionEntries, nodeAdoptedSourceKey } = await import("./session-catalog-node-adoption-
|
|
929
|
-
const { compareNodeLabels, listPairedNode, nodeLabel } = await import("./session-catalog-node-continue-
|
|
928
|
+
const { listNodeAdoptedSessionEntries, nodeAdoptedSourceKey } = await import("./session-catalog-node-adoption-BdS7zDuY.mjs");
|
|
929
|
+
const { compareNodeLabels, listPairedNode, nodeLabel } = await import("./session-catalog-node-continue-XFJG3JGh.mjs");
|
|
930
930
|
params.signal?.throwIfAborted();
|
|
931
931
|
const adopted = listNodeAdoptedSessionEntries({
|
|
932
932
|
agentId,
|
|
@@ -1397,7 +1397,7 @@ async function readCodexSessionTranscript(params) {
|
|
|
1397
1397
|
cursor,
|
|
1398
1398
|
limit
|
|
1399
1399
|
});
|
|
1400
|
-
const { nodeLabel } = await import("./session-catalog-node-continue-
|
|
1400
|
+
const { nodeLabel } = await import("./session-catalog-node-continue-XFJG3JGh.mjs");
|
|
1401
1401
|
return {
|
|
1402
1402
|
hostId: params.hostId,
|
|
1403
1403
|
label: nodeLabel(node),
|
|
@@ -1561,8 +1561,8 @@ async function requireEligibleCodexThread(params) {
|
|
|
1561
1561
|
remaining();
|
|
1562
1562
|
if (thread.id !== threadId || thread.ephemeral === true || !isInteractiveThreadSource(thread.source)) throw unverified();
|
|
1563
1563
|
if (!root) {
|
|
1564
|
-
const { CODEX_CATALOG_NATIVE_PAGE_LIMIT } = await import("./session-catalog-native-projection-
|
|
1565
|
-
const { CODEX_CATALOG_MAX_ROWS } = await import("./session-catalog-limits-
|
|
1564
|
+
const { CODEX_CATALOG_NATIVE_PAGE_LIMIT } = await import("./session-catalog-native-projection-CXTe4qQr.mjs").then((n) => n.a);
|
|
1565
|
+
const { CODEX_CATALOG_MAX_ROWS } = await import("./session-catalog-limits-bz5ZvjtY.mjs").then((n) => n.r);
|
|
1566
1566
|
let cursor;
|
|
1567
1567
|
const seenCursors = /* @__PURE__ */ new Set();
|
|
1568
1568
|
for (;;) {
|
|
@@ -2014,7 +2014,7 @@ function createCodexSessionCatalogControl(params) {
|
|
|
2014
2014
|
if (closed || generation !== config || residentEpoch !== epoch) throw new Error("Codex catalog configuration changed");
|
|
2015
2015
|
let index = indexes.get(homeId);
|
|
2016
2016
|
if (!index) {
|
|
2017
|
-
const [{ CodexCatalogIndex }, { canReuseCodexCatalogPreview, projectCodexCatalogDeltaPage, projectCodexCatalogPage }] = await Promise.all([import("./session-catalog-index-
|
|
2017
|
+
const [{ CodexCatalogIndex }, { canReuseCodexCatalogPreview, projectCodexCatalogDeltaPage, projectCodexCatalogPage }] = await Promise.all([import("./session-catalog-index-CY1lNpxF.mjs"), import("./session-catalog-projection-DcDKizZd.mjs")]);
|
|
2018
2018
|
source?.assertCurrent();
|
|
2019
2019
|
if (closed || generation !== config || residentEpoch !== epoch) throw new Error("Codex catalog configuration changed");
|
|
2020
2020
|
index = indexes.get(homeId);
|
|
@@ -2142,7 +2142,7 @@ function createCodexSessionCatalogControl(params) {
|
|
|
2142
2142
|
const runtime = source?.appServer ?? resolveRuntimeOptions({ pluginConfig });
|
|
2143
2143
|
const requestOptions = resolveRequestOptions(runtime.start, agentId, source);
|
|
2144
2144
|
return createCodexCatalogRequestSnapshot(runtime.requestTimeoutMs, async (method, requestParams, timeoutMs, assertCurrent, observation) => {
|
|
2145
|
-
const { codexControlRequest } = await import("./command-rpc-
|
|
2145
|
+
const { codexControlRequest } = await import("./command-rpc-kf7Uq4L-.mjs").then((n) => n.n);
|
|
2146
2146
|
return await codexControlRequest(pluginConfig, method, requestParams, {
|
|
2147
2147
|
...requestOptions,
|
|
2148
2148
|
authProfileId: null,
|
|
@@ -2164,9 +2164,9 @@ function createCodexSessionCatalogControl(params) {
|
|
|
2164
2164
|
const runtime = source?.appServer ?? resolveRuntimeOptions({ pluginConfig });
|
|
2165
2165
|
const { agentDir, config: runtimeConfig, startOptions } = resolveRequestOptions(runtime.start, agentId, source);
|
|
2166
2166
|
let catalogIndex;
|
|
2167
|
-
const { getLeasedSharedCodexAppServerClient, releaseLeasedSharedCodexAppServerClient, retireSharedCodexAppServerClientIfCurrent } = await import("./shared-client-
|
|
2168
|
-
const { resolveCodexAppServerClientInstanceId } = await import("./client-
|
|
2169
|
-
const { requestCodexAppServerClientJson } = await import("./request-
|
|
2167
|
+
const { getLeasedSharedCodexAppServerClient, releaseLeasedSharedCodexAppServerClient, retireSharedCodexAppServerClientIfCurrent } = await import("./shared-client-ZXKMsK6f.mjs").then((n) => n.v);
|
|
2168
|
+
const { resolveCodexAppServerClientInstanceId } = await import("./client-DcTISXe3.mjs").then((n) => n.n);
|
|
2169
|
+
const { requestCodexAppServerClientJson } = await import("./request-CWERwKIL.mjs").then((n) => n.a);
|
|
2170
2170
|
const client = await getLeasedSharedCodexAppServerClient({
|
|
2171
2171
|
agentDir,
|
|
2172
2172
|
config: runtimeConfig,
|
|
@@ -2235,7 +2235,7 @@ function createCodexSessionCatalogControl(params) {
|
|
|
2235
2235
|
await Promise.allSettled(residentRequests);
|
|
2236
2236
|
const clients = getSharedCodexAppServerClientState();
|
|
2237
2237
|
if (clients.liveClients.size > 0 || clients.startup.pending.size > 0) {
|
|
2238
|
-
const { clearSharedCodexAppServerClientAndWait } = await import("./shared-client-
|
|
2238
|
+
const { clearSharedCodexAppServerClientAndWait } = await import("./shared-client-ZXKMsK6f.mjs").then((n) => n.v);
|
|
2239
2239
|
await clearSharedCodexAppServerClientAndWait();
|
|
2240
2240
|
}
|
|
2241
2241
|
},
|
|
@@ -2584,15 +2584,15 @@ const codexSessionCatalogRuntime = {
|
|
|
2584
2584
|
archiveLocal: archiveLocalCodexSession
|
|
2585
2585
|
};
|
|
2586
2586
|
async function continueLocalCodexSession(...args) {
|
|
2587
|
-
const { continueLocalCodexSession: run } = await import("./session-catalog-adoption-
|
|
2587
|
+
const { continueLocalCodexSession: run } = await import("./session-catalog-adoption-58bqOngU.mjs");
|
|
2588
2588
|
return run(...args);
|
|
2589
2589
|
}
|
|
2590
2590
|
async function archiveLocalCodexSession(...args) {
|
|
2591
|
-
const { archiveLocalCodexSession: run } = await import("./session-catalog-archive-
|
|
2591
|
+
const { archiveLocalCodexSession: run } = await import("./session-catalog-archive-BM9gCB82.mjs");
|
|
2592
2592
|
return run(...args);
|
|
2593
2593
|
}
|
|
2594
2594
|
async function continueNodeCodexSession(...args) {
|
|
2595
|
-
const { continueNodeCodexSession: run } = await import("./session-catalog-node-continue-
|
|
2595
|
+
const { continueNodeCodexSession: run } = await import("./session-catalog-node-continue-XFJG3JGh.mjs");
|
|
2596
2596
|
return run(...args);
|
|
2597
2597
|
}
|
|
2598
2598
|
//#endregion
|
package/dist/.setup/{session-catalog-adoption-BU_pHWG7.mjs → session-catalog-adoption-58bqOngU.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as requireBoundThread, d as boundedCatalogString, o as CatalogParamsError } from "./session-catalog-parsing-
|
|
2
|
-
import { v as sessionBindingIdentity } from "./session-binding-record-
|
|
1
|
+
import { T as requireBoundThread, d as boundedCatalogString, o as CatalogParamsError } from "./session-catalog-parsing-CnEH565l.mjs";
|
|
2
|
+
import { v as sessionBindingIdentity } from "./session-binding-record-CUKpUKVm.mjs";
|
|
3
3
|
import { n as codexUpstreamBaseline, t as codexLastTerminalTurnId } from "./session-upstream-marker-D15C9NHp.mjs";
|
|
4
|
-
import { i as reclaimCurrentCodexSessionGeneration } from "./session-binding-
|
|
5
|
-
import { adoptionSessionKeyRest, catalogSessionActions } from "./session-catalog-node-adoption-
|
|
4
|
+
import { i as reclaimCurrentCodexSessionGeneration } from "./session-binding-Fn7Ekzuv.mjs";
|
|
5
|
+
import { adoptionSessionKeyRest, catalogSessionActions } from "./session-catalog-node-adoption-BdS7zDuY.mjs";
|
|
6
6
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { listSessionCatalogEntries, sessionCatalogAdoptedSessionKey, sessionCatalogAdoptedSourceKey } from "openclaw/plugin-sdk/session-catalog";
|
|
8
8
|
//#region extensions/codex/src/session-catalog-adoption.ts
|
|
@@ -152,7 +152,7 @@ async function createOrReuseAdoptedSession(params) {
|
|
|
152
152
|
sourceThreadId: params.sourceThread.id,
|
|
153
153
|
...params.sourceHomeId ? { sourceHomeId: params.sourceHomeId } : {}
|
|
154
154
|
};
|
|
155
|
-
const { createImportedCodexSession } = await import("./session-history-import-
|
|
155
|
+
const { createImportedCodexSession } = await import("./session-history-import-tquj9DCz.mjs");
|
|
156
156
|
const created = await createImportedCodexSession({
|
|
157
157
|
runtime: params.api.runtime,
|
|
158
158
|
bindingStore: params.bindingStore,
|
package/dist/.setup/{session-catalog-archive-spHfihri.mjs → session-catalog-archive-BM9gCB82.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as CatalogParamsError } from "./session-catalog-parsing-
|
|
2
|
-
import { v as sessionBindingIdentity } from "./session-binding-record-
|
|
1
|
+
import { o as CatalogParamsError } from "./session-catalog-parsing-CnEH565l.mjs";
|
|
2
|
+
import { v as sessionBindingIdentity } from "./session-binding-record-CUKpUKVm.mjs";
|
|
3
3
|
import { t as assertCodexArchiveDescendantsUnowned } from "./thread-archive-guard-C9frICzX.mjs";
|
|
4
|
-
import "./session-binding-
|
|
5
|
-
import { catalogSessionActions } from "./session-catalog-node-adoption-
|
|
6
|
-
import { isAdoptionSessionKeyForThread, requireIdleThread } from "./session-catalog-adoption-
|
|
4
|
+
import "./session-binding-Fn7Ekzuv.mjs";
|
|
5
|
+
import { catalogSessionActions } from "./session-catalog-node-adoption-BdS7zDuY.mjs";
|
|
6
|
+
import { isAdoptionSessionKeyForThread, requireIdleThread } from "./session-catalog-adoption-58bqOngU.mjs";
|
|
7
7
|
import { listAgentIds } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
8
8
|
import { sessionCatalogAdoptedSourceKey } from "openclaw/plugin-sdk/session-catalog";
|
|
9
9
|
//#region extensions/codex/src/session-catalog-archive.ts
|
package/dist/.setup/{session-catalog-events-DVLgp99B.mjs → session-catalog-events-r59AxcQ4.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as MAX_CWD_LENGTH, d as boundedCatalogString } from "./session-catalog-parsing-
|
|
2
|
-
import { n as defineCodexBuildState } from "./build-state-
|
|
1
|
+
import { c as MAX_CWD_LENGTH, d as boundedCatalogString } from "./session-catalog-parsing-CnEH565l.mjs";
|
|
2
|
+
import { n as defineCodexBuildState } from "./build-state-B3lvV1Op.mjs";
|
|
3
3
|
import { r as inferCodexAppServerConnectionClass } from "./config-security-CE-FcGw9.mjs";
|
|
4
4
|
import { n as resolveCodexAppServerLocalHomeDir } from "./auth-start-options-BPIPeEX8.mjs";
|
|
5
5
|
import { n as codexCatalogHomeIdFromCanonicalPath } from "./session-catalog-home-id-vlih0B_g.mjs";
|
|
6
6
|
import { t as buildCodexAppServerConnectionFingerprint } from "./plugin-app-cache-key-BL9B5H0L.mjs";
|
|
7
|
-
import { d as observeCodexCatalogEphemeralThreads, r as projectCodexCatalogNativeThread, s as codexCatalogSourceForClient } from "./session-catalog-native-projection-
|
|
7
|
+
import { d as observeCodexCatalogEphemeralThreads, r as projectCodexCatalogNativeThread, s as codexCatalogSourceForClient } from "./session-catalog-native-projection-CXTe4qQr.mjs";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
9
9
|
import { embeddedAgentLog } from "openclaw/plugin-sdk/agent-harness-registration";
|
|
10
10
|
import path from "node:path";
|
package/dist/.setup/{session-catalog-index-v3Yjgaih.mjs → session-catalog-index-CY1lNpxF.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as readControlCursor, _ as normalizeLimit, c as MAX_CWD_LENGTH, d as boundedCatalogString, h as filterCatalogPageByTitle, m as codexCatalogThreadStatus, o as CatalogParamsError, p as codexCatalogThreadName } from "./session-catalog-parsing-
|
|
2
|
-
import { t as CODEX_CATALOG_MAX_ROWS } from "./session-catalog-limits-
|
|
3
|
-
import { i as retainCodexCatalogRow, n as codexCatalogRowRecency, r as compareCodexCatalogRows, t as CodexCatalogOrdering } from "./session-catalog-index-order-
|
|
4
|
-
import { n as CodexCatalogPersistence, r as codexCatalogMetadataPage } from "./session-catalog-index-state-
|
|
5
|
-
import { i as CodexCatalogAvailability, r as withCodexCatalogListRequest } from "./session-catalog-list-request-
|
|
6
|
-
import { l as getCodexCatalogSource, p as setCodexCatalogSource, r as projectCodexCatalogNativeThread, u as hasLiveCodexCatalogSource } from "./session-catalog-native-projection-
|
|
7
|
-
import { i as subscribeCodexCatalogEvents } from "./session-catalog-events-
|
|
1
|
+
import { S as readControlCursor, _ as normalizeLimit, c as MAX_CWD_LENGTH, d as boundedCatalogString, h as filterCatalogPageByTitle, m as codexCatalogThreadStatus, o as CatalogParamsError, p as codexCatalogThreadName } from "./session-catalog-parsing-CnEH565l.mjs";
|
|
2
|
+
import { t as CODEX_CATALOG_MAX_ROWS } from "./session-catalog-limits-bz5ZvjtY.mjs";
|
|
3
|
+
import { i as retainCodexCatalogRow, n as codexCatalogRowRecency, r as compareCodexCatalogRows, t as CodexCatalogOrdering } from "./session-catalog-index-order-DQhmgM3b.mjs";
|
|
4
|
+
import { n as CodexCatalogPersistence, r as codexCatalogMetadataPage } from "./session-catalog-index-state-DhLoAnfy.mjs";
|
|
5
|
+
import { i as CodexCatalogAvailability, r as withCodexCatalogListRequest } from "./session-catalog-list-request-A1wN4sKw.mjs";
|
|
6
|
+
import { l as getCodexCatalogSource, p as setCodexCatalogSource, r as projectCodexCatalogNativeThread, u as hasLiveCodexCatalogSource } from "./session-catalog-native-projection-CXTe4qQr.mjs";
|
|
7
|
+
import { i as subscribeCodexCatalogEvents } from "./session-catalog-events-r59AxcQ4.mjs";
|
|
8
8
|
import { a as reportCodexCatalogSpawnFailure, n as findCodexAppServerSpawnError } from "./spawn-error-CL3n6MAa.mjs";
|
|
9
|
-
import { CodexCatalogProjectionCapacityError, CodexCatalogProjections, a as resolveCodexCatalogRolloutFingerprint, i as readCodexCatalogRollout, mergeCodexCatalogRolloutRow, n as indexCodexCatalogRowsByRollout, o as scanCodexCatalogRollouts, projectCodexCatalogThread, r as isCodexCatalogRolloutPathCovered, t as codexCatalogRolloutLogicalPath } from "./session-catalog-projection-
|
|
9
|
+
import { CodexCatalogProjectionCapacityError, CodexCatalogProjections, a as resolveCodexCatalogRolloutFingerprint, i as readCodexCatalogRollout, mergeCodexCatalogRolloutRow, n as indexCodexCatalogRowsByRollout, o as scanCodexCatalogRollouts, projectCodexCatalogThread, r as isCodexCatalogRolloutPathCovered, t as codexCatalogRolloutLogicalPath } from "./session-catalog-projection-DcDKizZd.mjs";
|
|
10
10
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
12
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CODEX_CATALOG_MAX_ROWS } from "./session-catalog-limits-
|
|
1
|
+
import { t as CODEX_CATALOG_MAX_ROWS } from "./session-catalog-limits-bz5ZvjtY.mjs";
|
|
2
2
|
//#region extensions/codex/src/session-catalog-index-order.ts
|
|
3
3
|
function codexCatalogRowRecency(row) {
|
|
4
4
|
return row.recencyAt ?? row.updatedAt ?? 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { v as parseCatalogPage } from "./session-catalog-parsing-
|
|
2
|
-
import { n as detachCodexCatalogString } from "./session-catalog-limits-
|
|
3
|
-
import { i as retainCodexCatalogRow } from "./session-catalog-index-order-
|
|
1
|
+
import { v as parseCatalogPage } from "./session-catalog-parsing-CnEH565l.mjs";
|
|
2
|
+
import { n as detachCodexCatalogString } from "./session-catalog-limits-bz5ZvjtY.mjs";
|
|
3
|
+
import { i as retainCodexCatalogRow } from "./session-catalog-index-order-DQhmgM3b.mjs";
|
|
4
4
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { setImmediate } from "node:timers/promises";
|
package/dist/.setup/{session-catalog-limits-DDxOsQeC.mjs → session-catalog-limits-bz5ZvjtY.mjs}
RENAMED
|
@@ -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
|
//#region extensions/codex/src/session-catalog-limits.ts
|
|
3
3
|
var session_catalog_limits_exports = /* @__PURE__ */ __exportAll({
|
|
4
4
|
CODEX_CATALOG_MAX_ROWS: () => CODEX_CATALOG_MAX_ROWS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as CatalogParamsError } from "./session-catalog-parsing-
|
|
2
|
-
import { r as compareCodexCatalogRows } from "./session-catalog-index-order-
|
|
1
|
+
import { o as CatalogParamsError } from "./session-catalog-parsing-CnEH565l.mjs";
|
|
2
|
+
import { r as compareCodexCatalogRows } from "./session-catalog-index-order-DQhmgM3b.mjs";
|
|
3
3
|
import { i as withTimeout } from "./timeout-CXOfNoaX.mjs";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
|