@openclaw/codex 2026.10.5-beta.4 → 2026.10.10-beta.1
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/README.md +10 -3
- package/dist/.setup/{account-usage-runtime-CoVpNIlD.mjs → account-usage-runtime-DDCDkvtl.mjs} +15 -9
- package/dist/.setup/{app-server-policy-D_zv8J7V.mjs → app-server-policy-Cog6mm2i.mjs} +1 -1
- package/dist/.setup/{apply-BXDMd05l.mjs → apply-BVSXYkTV.mjs} +11 -11
- package/dist/.setup/{attempt-client-cleanup-zNuNTKVr.mjs → attempt-client-cleanup-6OcbMH46.mjs} +14 -8
- package/dist/.setup/attempt-terminal-sZutF0WY.mjs +1 -0
- package/dist/.setup/{attempt-workspace-context-CcwP3DA3.mjs → attempt-workspace-context-GYPLawX6.mjs} +2 -2
- package/dist/.setup/{auth-binding-BaxlhaNx.mjs → auth-binding-830RLAJW.mjs} +2 -2
- package/dist/.setup/{auth-cache-key-f8ODJ_OX.mjs → auth-cache-key-CVcYw8HD.mjs} +92 -80
- package/dist/.setup/{auth-profile-CgHQ8Vot.mjs → auth-profile-auwzSwwy.mjs} +14 -8
- package/dist/.setup/{auth-profile-health-oHizqgye.mjs → auth-profile-health-BVPZU9I8.mjs} +15 -8
- package/dist/.setup/{auth-profile-selection-hr8ocLtz.mjs → auth-profile-selection-Bp5PDk3W.mjs} +24 -7
- package/dist/.setup/{binding-connection-B7HAAZSI.mjs → binding-connection-GTgUj9pi.mjs} +2 -2
- package/dist/.setup/{binding-connection.runtime-DAXn7iFl.mjs → binding-connection.runtime-RcWR3vQu.mjs} +4 -3
- package/dist/.setup/{bounded-turn-isolation-BfDAo-qZ.mjs → bounded-turn-isolation-D8CDrAVX.mjs} +3 -3
- package/dist/.setup/{bounded-turn-DfIJtRlv.mjs → bounded-turn-mN_ekXYW.mjs} +18 -22
- package/dist/.setup/{build-state-Ds14X10-.mjs → build-state-VcujMRqP.mjs} +1 -1
- package/dist/.setup/{capabilities-DbOzOglY.mjs → capabilities-DAS-JX1z.mjs} +1 -1
- package/dist/.setup/{client-D93nbdB8.mjs → client-BS8X7HmG.mjs} +47 -317
- package/dist/.setup/{client-catalog-response-CuVLp4I0.mjs → client-catalog-response-jM38o5w1.mjs} +2 -2
- package/dist/.setup/client-initialize-CjgZcX61.mjs +165 -0
- package/dist/.setup/{command-dispatch-DxdH5a9-.mjs → command-dispatch-DzXbHqCn.mjs} +3 -3
- package/dist/.setup/{command-formatters-xW9KpoSZ.mjs → command-formatters-B_7-QZ1c.mjs} +2 -2
- package/dist/.setup/{command-handlers-fiYvYYq0.mjs → command-handlers-tfb5Uq-O.mjs} +539 -406
- package/dist/.setup/command-rpc-SXqLQukR.mjs +296 -0
- package/dist/.setup/compact-M-JxLcbZ.mjs +823 -0
- package/dist/.setup/{computer-use-DL2v3Kxq.mjs → computer-use-FqQ-Flbl.mjs} +21 -68
- package/dist/.setup/{config-C1YVVLEA.mjs → config-BfrAlTMT.mjs} +3 -3
- package/dist/.setup/{config-options-DDzeNQ8m.mjs → config-options-DMFZkd3X.mjs} +1 -1
- package/dist/.setup/{config-runtime-DWzK-k0n.mjs → config-runtime-BZRizyuG.mjs} +2 -2
- package/dist/.setup/{context-engine-projection-ps-yn_ci.mjs → context-engine-projection-PIeLSnR-.mjs} +16 -30
- package/dist/.setup/{conversation-binding-BieJZRRV.mjs → conversation-binding-C7MZy-Cx.mjs} +228 -116
- package/dist/.setup/{conversation-binding-data-UgLuTSQT.mjs → conversation-binding-data-khgW0n-o.mjs} +4 -2
- package/dist/.setup/{conversation-control-GXM3unE4.mjs → conversation-control-B2EpVZEb.mjs} +53 -23
- package/dist/.setup/{cyber-failover-D4dgNfFf.mjs → cyber-failover-CqEZoQsj.mjs} +1 -1
- package/dist/.setup/{cyber-failover-notice-ljgGGL0s.mjs → cyber-failover-notice-poL3Advd.mjs} +1 -1
- package/dist/.setup/{doctor-start-options-JjTAl-q_.mjs → doctor-start-options-8uIBXIzR.mjs} +8 -5
- package/dist/.setup/{dynamic-tool-build-DcaPmBlE.mjs → dynamic-tool-build-BjFAIG-f.mjs} +208 -218
- package/dist/.setup/{dynamic-tools-CnQFnNKH.mjs → dynamic-tools-XqWsVjcC.mjs} +344 -118
- package/dist/.setup/{effective-mcp-catalog-B5HKFZNK.mjs → effective-mcp-catalog-C3ta5hHc.mjs} +11 -9
- package/dist/.setup/{ephemeral-turn-De3qb8EQ.mjs → ephemeral-turn-1ZF17fUR.mjs} +5 -4
- package/dist/.setup/{event-projector-assistant-message-CLMKN4x-.mjs → event-projector-assistant-message-ChOAY7rW.mjs} +16 -11
- package/dist/.setup/{event-projector-usage-BpKfdoTm.mjs → event-projector-usage-CBY0Hkga.mjs} +2 -2
- package/dist/.setup/{event-projector-values-CLvG1Hil.mjs → event-projector-values-yf4us9Pf.mjs} +1 -1
- package/dist/.setup/experimental-features-uGnVDtp-.mjs +19 -0
- package/dist/.setup/inference-context-mv_dBpAL.mjs +209 -0
- package/dist/.setup/{inference-dispatch-CO6tTs4q.mjs → inference-dispatch-C2zVSnrr.mjs} +2 -2
- package/dist/.setup/{inference-metadata-DCvcG_N_.mjs → inference-metadata-CYFWLHVk.mjs} +3 -1
- package/dist/.setup/{inference-proxy-BDWV0djM.mjs → inference-proxy-yd3hr2dr.mjs} +8 -8
- package/dist/.setup/installed-probe-lVC1X5ve.mjs +185 -0
- package/dist/.setup/{isolated-completion-BPJdvk5F.mjs → isolated-completion-P-r8NRE4.mjs} +7 -7
- package/dist/.setup/managed-binary-DbKvGXKl.mjs +395 -0
- package/dist/.setup/{mcp-app-session-preparation-Dz2GOwyE.mjs → mcp-app-session-preparation-fnsnCovu.mjs} +18 -14
- package/dist/.setup/{model-catalog-ZNwltCKl.mjs → model-catalog-Y_esgRPY.mjs} +28 -17
- package/dist/.setup/{models-BHpbAuz8.mjs → models-BWLEUo2E.mjs} +3 -3
- package/dist/.setup/{native-auth-esN5MdIv.mjs → native-auth-DpZIaY8N.mjs} +7 -4
- package/dist/.setup/native-execution-policy-D09tLP-u.mjs +152 -0
- package/dist/.setup/{native-hook-relay-wq7jrNLk.mjs → native-hook-relay-C7aaLJaP.mjs} +45 -10
- package/dist/.setup/{native-mcp-app-DX3nyTtc.mjs → native-mcp-app-CsWj-v_x.mjs} +5 -5
- package/dist/.setup/{native-skill-isolation-DSBeF-Yy.mjs → native-skill-isolation-CMimsKYy.mjs} +7 -7
- package/dist/.setup/{native-subagent-monitor-DOLEIf9r.mjs → native-subagent-monitor-CFE7b4oC.mjs} +485 -239
- package/dist/.setup/{native-subagent-pending-assignments-DmVhedNs.mjs → native-subagent-pending-assignments-CTinVtjo.mjs} +1 -1
- package/dist/.setup/{native-task-assignments-DimsQ9Qa.mjs → native-task-assignments-YJopbaVO.mjs} +9 -5
- package/dist/.setup/{node-cli-sessions-CzKg2nGq.mjs → node-cli-sessions-BuJnBnEq.mjs} +7 -4
- package/dist/.setup/{node-exec-server.runtime-BWkULhBM.mjs → node-exec-server.runtime-CP7RC1Nd.mjs} +3 -3
- package/dist/.setup/{plan-41-YOBMq.mjs → plan-B4cHgqNv.mjs} +7 -20
- package/dist/.setup/{plugin-activation-D7WkJMvU.mjs → plugin-activation-CXPWe-hl.mjs} +4 -4
- package/dist/.setup/{plugin-app-cache-key-Bg9DbDI6.mjs → plugin-app-cache-key-DRb-niJc.mjs} +17 -55
- package/dist/.setup/{plugin-approval-roundtrip-CD88q3yx.mjs → plugin-approval-roundtrip-DIZHLbAM.mjs} +1 -1
- package/dist/.setup/{plugin-inventory-CYgdo14P.mjs → plugin-inventory-DE9wcaeH.mjs} +2 -2
- package/dist/.setup/{plugin-metadata-cache-Bi8TAPwX.mjs → plugin-metadata-cache-BqC-a6Fb.mjs} +2 -15
- package/dist/.setup/{project-doc-thread-config-BVcvnps8.mjs → project-doc-thread-config-B0UI3f1D.mjs} +6 -6
- package/dist/.setup/protocol-CaPAVwe9.mjs +12 -0
- package/dist/.setup/{provider-capabilities-Dn2WwH4P.mjs → provider-capabilities-DjcKunHS.mjs} +1 -1
- package/dist/.setup/{provider-LWKll6dV.mjs → provider-wj_LFJH3.mjs} +4 -4
- package/dist/.setup/{rate-limits-CI8pTPqL.mjs → rate-limits-BpfURnuy.mjs} +1 -1
- package/dist/.setup/{request-Bo0kKABI.mjs → request-ePeNJrOd.mjs} +132 -136
- package/dist/.setup/{responses-oauth-twnuTaAa.mjs → responses-oauth-CCV7aVYF.mjs} +6 -6
- package/dist/.setup/{rpc-error-C98SHchT.mjs → rpc-error-DemqqaxE.mjs} +7 -3
- package/dist/.setup/{run-attempt-ClU8MxhZ.mjs → run-attempt-BcWArowv.mjs} +595 -426
- package/dist/.setup/{run-attempt-lifecycle-KN4oh-7O.mjs → run-attempt-lifecycle-DN-ATDp9.mjs} +1 -1
- package/dist/.setup/{runtime-artifact-C13pR7tD.mjs → runtime-artifact-CmLWeyJB.mjs} +3 -3
- package/dist/.setup/{runtime-artifact-connection-jS5DeCok.mjs → runtime-artifact-connection-DpWlZ02e.mjs} +3 -3
- package/dist/.setup/{sandbox-guard-DIImwCy1.mjs → sandbox-guard-DneAfNye.mjs} +70 -30
- package/dist/.setup/{session-binding-JEHNMPsr.mjs → session-binding-BgsWcbdY.mjs} +25 -23
- package/dist/.setup/{session-binding-record-DU_0biMD.mjs → session-binding-record-C_THntMe.mjs} +27 -12
- package/dist/.setup/{session-binding-record-codec-BpH8u_G9.mjs → session-binding-record-codec-DvmOI7g_.mjs} +1 -0
- package/dist/.setup/{session-binding-sidecars-DD-enC8w.mjs → session-binding-sidecars-BNSS6WL4.mjs} +55 -63
- package/dist/.setup/session-cancellation-DLBSJO5n.mjs +43 -0
- package/dist/.setup/{session-catalog-adoption-Ca3OYGYM.mjs → session-catalog-adoption-ppsLlVLB.mjs} +24 -38
- package/dist/.setup/{session-catalog-archive-Bv6gV7x9.mjs → session-catalog-archive-CqLRHJ6z.mjs} +11 -13
- package/dist/.setup/{session-catalog-events-kR2Ot6nX.mjs → session-catalog-events-DK0opVp3.mjs} +5 -5
- package/dist/.setup/{session-catalog-index-CrnfVEnT.mjs → session-catalog-index-BfzfdtH7.mjs} +96 -271
- package/dist/.setup/{session-catalog-index-order-CTfoefow.mjs → session-catalog-index-order-0Zqng2u8.mjs} +1 -1
- package/dist/.setup/{session-catalog-limits-BynIoOYm.mjs → session-catalog-limits-Dc6E0BZz.mjs} +1 -1
- package/dist/.setup/{session-catalog-list-request-D4MYNgDB.mjs → session-catalog-list-request-CAjoWjaH.mjs} +3 -4
- package/dist/.setup/{session-catalog-native-projection-CWqCU1I_.mjs → session-catalog-native-projection-G3lSDYYG.mjs} +5 -5
- package/dist/.setup/{session-catalog-node-adoption-BdP9Zjqo.mjs → session-catalog-node-adoption-e9v8mGgx.mjs} +5 -5
- package/dist/.setup/{session-catalog-node-continue-CNJibO4_.mjs → session-catalog-node-continue-H7nrzcUD.mjs} +5 -5
- package/dist/.setup/{session-catalog-node-lookup-BH_DBGa9.mjs → session-catalog-node-lookup-BrZfDkA8.mjs} +2 -2
- package/dist/.setup/{session-catalog-parsing-DkeoVn60.mjs → session-catalog-parsing-V6jyFg9g.mjs} +2 -2
- package/dist/.setup/{session-catalog-projection-BzHiV818.mjs → session-catalog-projection-BjWE414G.mjs} +8 -7
- package/dist/.setup/{session-catalog-provenance-CmsOE5mh.mjs → session-catalog-provenance-Dg9s12z-.mjs} +50 -30
- package/dist/.setup/{session-catalog-source-DGuRdGvM.mjs → session-catalog-source-DqyuNxCe.mjs} +2 -6
- package/dist/.setup/{session-cli-GwU0izn-.mjs → session-cli-CBGKiqdv.mjs} +1 -1
- package/dist/.setup/{session-history-BO6i_pfk.mjs → session-history-7W0cgTXF.mjs} +11 -9
- package/dist/.setup/{session-history-import-CaO8s6ta.mjs → session-history-import-BwPKwcNi.mjs} +4 -4
- package/dist/.setup/{session-initialization-Bi_2DKhc.mjs → session-initialization-Dn3vveGv.mjs} +2 -2
- package/dist/.setup/{session-retirement-B3U5hpGJ.mjs → session-retirement-Ci_JvOfH.mjs} +8 -8
- package/dist/.setup/{session-history.worker-DJQfek5p.mjs → settled-turn-evidence--tRW6fSm.mjs} +2 -18
- package/dist/.setup/{settled-turn-finalizer-CYCVpTv2.mjs → settled-turn-finalizer-D3-KXsbP.mjs} +8 -8
- package/dist/.setup/{shared-client-BCx1wbyA.mjs → shared-client-CE_uY0A1.mjs} +380 -557
- package/dist/.setup/side-question-OM18H9WJ.mjs +998 -0
- package/dist/.setup/{source-DipMO9hL.mjs → source-uGKgKWm8.mjs} +5 -5
- package/dist/.setup/{thread-archive-guard-LKdwQKyr.mjs → thread-archive-guard-BWjSsA92.mjs} +1 -1
- package/dist/.setup/{thread-lifecycle-run-C_aYiYqk.mjs → thread-lifecycle-run-mLueY6pH.mjs} +172 -75
- package/dist/.setup/{thread-model-selection-DcVebr8N.mjs → thread-model-selection-DxposL4X.mjs} +9 -9
- package/dist/.setup/{thread-ownership-BoUd0i6L.mjs → thread-ownership-t6Y9fLQS.mjs} +7 -7
- package/dist/.setup/{thread-policy-B3wBRNph.mjs → thread-policy-Cy301Or8.mjs} +6 -6
- package/dist/.setup/{thread-requests-BgzJwJtS.mjs → thread-requests-BjawdIVV.mjs} +14 -14
- package/dist/.setup/{thread-resume-D-3bsr1j.mjs → thread-resume-BUbsUfgF.mjs} +6 -6
- package/dist/.setup/{transcript-history-projection-DfKcoZCB.mjs → transcript-history-projection-i-FVpyha.mjs} +1 -1
- package/dist/.setup/{transcript-mirror-Bee2o6jj.mjs → transcript-mirror-CEQJZlF3.mjs} +6 -9
- package/dist/.setup/{transport-stdio-CRWTkKOn.mjs → transport-stdio-Bq160Dhv.mjs} +63 -64
- package/dist/.setup/{transport-websocket-DIyPfkHo.mjs → transport-websocket-0YqiI_MH.mjs} +1 -1
- package/dist/.setup/{turn-router-DBVMToGo.mjs → turn-router-Dbw17k3K.mjs} +2 -2
- package/dist/.setup/{upstream-session-fork-p5fwKi7w.mjs → upstream-session-fork-_LYkh0nZ.mjs} +46 -219
- package/dist/.setup/{usage-limit-error-BQX8RHAd.mjs → usage-limit-error-DcOSH3J4.mjs} +4 -4
- package/dist/.setup/{usage-C2Kq7oej.mjs → usage-w_93wnnR.mjs} +4 -4
- package/dist/.setup/{web-search-item-CvokaZOo.mjs → web-search-item-DHVuNSqk.mjs} +1 -1
- package/dist/.setup/{web-search-provider.runtime-D89djc7e.mjs → web-search-provider.runtime-DMHxve5v.mjs} +3 -3
- package/dist/.setup/{workspace-write-sandbox-probe-BDWO2Qkh.mjs → workspace-write-sandbox-probe-DJxOXcF3.mjs} +2 -2
- package/dist/api.js +7 -28
- package/dist/catalog-page.worker.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/client-version-api.js +25 -0
- package/dist/doctor-contract-api.js +5 -5
- package/dist/harness.js +59 -36
- package/dist/index.js +259 -295
- package/dist/media-understanding-provider.js +2 -2
- package/dist/migration-provider-api.js +1 -2
- package/dist/native-session-binding-api.js +1 -2
- package/dist/provider-discovery.js +1 -1
- package/dist/session-history-worker-entrypoint.js +12 -0
- package/dist/session-history-worker-runtime.js +7 -18
- package/dist/session-history.worker.js +18 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -6
- package/dist/.setup/attempt-terminal-jO5IMj9K.mjs +0 -2
- package/dist/.setup/command-rpc-HIvsy3wS.mjs +0 -247
- package/dist/.setup/compact-ClZ7Ar7L.mjs +0 -808
- package/dist/.setup/inference-context-DNlGwzwy.mjs +0 -91
- package/dist/.setup/managed-binary-BtIjV7yN.mjs +0 -175
- package/dist/.setup/native-execution-policy-MXEe7PB3.mjs +0 -75
- package/dist/.setup/protocol-CANUwXJ3.mjs +0 -17
- package/dist/.setup/side-question-Bz2UQW0l.mjs +0 -826
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./session-binding-sidecars-
|
|
1
|
+
import { t as __exportAll } from "./session-binding-sidecars-BNSS6WL4.mjs";
|
|
2
2
|
import { asOptionalRecord, normalizeOptionalString, readNonBlankString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import process from "node:process";
|
|
@@ -81,12 +81,14 @@ function readConversationSource(value) {
|
|
|
81
81
|
const sessionId = normalizeOptionalString(value?.sessionId);
|
|
82
82
|
const threadId = normalizeOptionalString(value?.threadId);
|
|
83
83
|
const sessionKey = normalizeOptionalString(value?.sessionKey);
|
|
84
|
+
const storePath = normalizeOptionalString(value?.storePath);
|
|
84
85
|
if (!agentId || !sessionId || !threadId) return;
|
|
85
86
|
return {
|
|
86
87
|
agentId,
|
|
87
88
|
sessionId,
|
|
88
89
|
threadId,
|
|
89
|
-
...sessionKey ? { sessionKey } : {}
|
|
90
|
+
...sessionKey ? { sessionKey } : {},
|
|
91
|
+
...storePath ? { storePath } : {}
|
|
90
92
|
};
|
|
91
93
|
}
|
|
92
94
|
/** Doctor/runtime v1 decoder key for shipped conversation bindings that stored a file locator. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as bindingStoreKey } from "./session-binding-record-
|
|
1
|
+
import { r as bindingStoreKey } from "./session-binding-record-C_THntMe.mjs";
|
|
2
2
|
import { r as isCodexFastServiceTier } from "./config-utils-DN_YT7dE.mjs";
|
|
3
|
-
import { o as formatCodexDisplayText } from "./command-formatters-
|
|
4
|
-
import "./config-
|
|
5
|
-
import { n as normalizeCodexAppServerBindingModelProvider, t as isCodexAppServerNativeAuthProfile } from "./auth-profile-
|
|
6
|
-
import "./session-binding-
|
|
7
|
-
import { a as resolveCodexBindingModelProviderFallback, r as resolveCodexAppServerRequestModelSelection } from "./thread-model-selection-
|
|
3
|
+
import { o as formatCodexDisplayText } from "./command-formatters-B_7-QZ1c.mjs";
|
|
4
|
+
import "./config-BfrAlTMT.mjs";
|
|
5
|
+
import { n as normalizeCodexAppServerBindingModelProvider, t as isCodexAppServerNativeAuthProfile } from "./auth-profile-auwzSwwy.mjs";
|
|
6
|
+
import "./session-binding-BgsWcbdY.mjs";
|
|
7
|
+
import { a as resolveCodexBindingModelProviderFallback, r as resolveCodexAppServerRequestModelSelection } from "./thread-model-selection-DxposL4X.mjs";
|
|
8
8
|
import { resolveAgentDir } from "openclaw/plugin-sdk/agent-runtime";
|
|
9
|
-
import {
|
|
10
|
-
import { ModelSelectionLockedError, applyModelOverrideWithAuthProfileCompatibility } from "openclaw/plugin-sdk/model-session-runtime";
|
|
9
|
+
import { getSessionEntryAsync, prepareSessionEntryPatch, resolveStorePath } from "openclaw/plugin-sdk/session-store-runtime";
|
|
10
|
+
import { ModelSelectionLockedError, applyModelOverrideWithAuthProfileCompatibility, prepareAuthProfileProvider } from "openclaw/plugin-sdk/model-session-runtime";
|
|
11
11
|
//#region extensions/codex/src/conversation-control.ts
|
|
12
12
|
const CODEX_CONVERSATION_CONTROL_STATE = Symbol.for("openclaw.codex.conversationControl");
|
|
13
13
|
function getActiveTurns() {
|
|
@@ -41,7 +41,12 @@ async function stopCodexConversationTurn(params) {
|
|
|
41
41
|
turnId: active.turnId
|
|
42
42
|
}, {
|
|
43
43
|
timeoutMs: active.requestTimeoutMs,
|
|
44
|
-
assertCurrent: params.assertCurrent
|
|
44
|
+
assertCurrent: params.assertCurrent,
|
|
45
|
+
withCurrent: async (write) => {
|
|
46
|
+
await params.assertCurrentAsync?.();
|
|
47
|
+
params.assertCurrent();
|
|
48
|
+
write();
|
|
49
|
+
}
|
|
45
50
|
});
|
|
46
51
|
return {
|
|
47
52
|
stopped: true,
|
|
@@ -73,7 +78,12 @@ async function steerCodexConversationTurn(params) {
|
|
|
73
78
|
}]
|
|
74
79
|
}, {
|
|
75
80
|
timeoutMs: active.requestTimeoutMs,
|
|
76
|
-
assertCurrent: params.assertCurrent
|
|
81
|
+
assertCurrent: params.assertCurrent,
|
|
82
|
+
withCurrent: async (write) => {
|
|
83
|
+
await params.assertCurrentAsync?.();
|
|
84
|
+
params.assertCurrent();
|
|
85
|
+
write();
|
|
86
|
+
}
|
|
77
87
|
});
|
|
78
88
|
return {
|
|
79
89
|
steered: true,
|
|
@@ -82,6 +92,7 @@ async function steerCodexConversationTurn(params) {
|
|
|
82
92
|
}
|
|
83
93
|
async function setCodexConversationModel(input) {
|
|
84
94
|
const params = { ...input };
|
|
95
|
+
await params.assertCurrentAsync?.();
|
|
85
96
|
const model = params.model.trim();
|
|
86
97
|
if (!model) return "Usage: /codex model <model>";
|
|
87
98
|
const lookup = buildCodexConversationAgentLookup(params);
|
|
@@ -89,7 +100,7 @@ async function setCodexConversationModel(input) {
|
|
|
89
100
|
const assertCommitAllowed = params.assertCommitAllowed ?? params.assertCurrent;
|
|
90
101
|
const binding = requirePreparedThreadBinding(params.binding);
|
|
91
102
|
if (binding.connectionScope === "supervision") throw new ModelSelectionLockedError();
|
|
92
|
-
const modelProvider = resolveThreadRequestModelProvider({
|
|
103
|
+
const modelProvider = await resolveThreadRequestModelProvider({
|
|
93
104
|
authProfileId: binding.authProfileId,
|
|
94
105
|
modelProvider: resolveCodexBindingModelProviderFallback({
|
|
95
106
|
bindingModel: binding.model,
|
|
@@ -98,13 +109,13 @@ async function setCodexConversationModel(input) {
|
|
|
98
109
|
}),
|
|
99
110
|
...lookup
|
|
100
111
|
});
|
|
101
|
-
const modelSelection = resolveCodexAppServerRequestModelSelection({
|
|
112
|
+
const modelSelection = await resolveCodexAppServerRequestModelSelection({
|
|
102
113
|
model,
|
|
103
114
|
modelProvider,
|
|
104
115
|
authProfileId: binding.authProfileId,
|
|
105
116
|
...lookup
|
|
106
117
|
});
|
|
107
|
-
const nextModelProvider = normalizeCodexAppServerBindingModelProvider({
|
|
118
|
+
const nextModelProvider = await normalizeCodexAppServerBindingModelProvider({
|
|
108
119
|
authProfileId: binding.authProfileId,
|
|
109
120
|
modelProvider: modelSelection.modelProvider,
|
|
110
121
|
...lookup
|
|
@@ -117,19 +128,32 @@ async function setCodexConversationModel(input) {
|
|
|
117
128
|
} } : {};
|
|
118
129
|
const identity = params.identity;
|
|
119
130
|
if (identity.kind === "session" && identity.sessionKey) {
|
|
120
|
-
if (!await
|
|
131
|
+
if (!await prepareSessionEntryPatch({
|
|
121
132
|
agentId: identity.agentId,
|
|
122
133
|
storePath: params.storePath ?? resolveStorePath(params.config?.session?.store, { agentId: identity.agentId }),
|
|
123
134
|
sessionKey: identity.sessionKey,
|
|
124
135
|
requireWriteSuccess: true,
|
|
125
136
|
replaceEntry: true,
|
|
126
|
-
assertCommitAllowed
|
|
127
|
-
|
|
137
|
+
authority: params.assertCommitAllowed ? {
|
|
138
|
+
kind: "source",
|
|
139
|
+
source: params.assertCommitAllowed
|
|
140
|
+
} : {
|
|
141
|
+
kind: "host",
|
|
142
|
+
assertCurrent: params.assertCurrent
|
|
143
|
+
},
|
|
144
|
+
prepare: async (entry) => {
|
|
128
145
|
if (entry.sessionId !== identity.sessionId) throw new Error("Codex session changed while applying the model selection.");
|
|
146
|
+
const agentDir = params.agentDir ?? resolveAgentDir(params.config ?? {}, identity.agentId);
|
|
147
|
+
const profileId = entry.authProfileOverride?.trim();
|
|
148
|
+
const recordedProvider = profileId ? await prepareAuthProfileProvider({
|
|
149
|
+
agentDir,
|
|
150
|
+
profileId
|
|
151
|
+
}) : void 0;
|
|
129
152
|
applyModelOverrideWithAuthProfileCompatibility({
|
|
130
153
|
cfg: params.config ?? {},
|
|
131
|
-
agentDir
|
|
154
|
+
agentDir,
|
|
132
155
|
entry,
|
|
156
|
+
recordedProvider,
|
|
133
157
|
currentProvider: binding.modelProvider ?? "openai",
|
|
134
158
|
selection: {
|
|
135
159
|
provider: nextModelProvider ?? "openai",
|
|
@@ -160,7 +184,7 @@ async function setCodexConversationPermissions(params) {
|
|
|
160
184
|
params.assertCurrent();
|
|
161
185
|
const storePath = params.storePath ?? resolveStorePath(params.config?.session?.store, { agentId: params.session.agentId });
|
|
162
186
|
if (!params.mode) {
|
|
163
|
-
const entry =
|
|
187
|
+
const entry = await getSessionEntryAsync({
|
|
164
188
|
agentId: params.session.agentId,
|
|
165
189
|
hydrateSkillPromptRefs: false,
|
|
166
190
|
readConsistency: "latest",
|
|
@@ -171,14 +195,20 @@ async function setCodexConversationPermissions(params) {
|
|
|
171
195
|
if (entry?.sessionId !== params.session.sessionId) throw new Error("Codex session changed while reading the permission mode.");
|
|
172
196
|
return `Codex permissions: ${formatPermissionsMode(entry.permissionMode)}.`;
|
|
173
197
|
}
|
|
174
|
-
if (!await
|
|
198
|
+
if (!await prepareSessionEntryPatch({
|
|
175
199
|
agentId: params.session.agentId,
|
|
176
200
|
storePath,
|
|
177
201
|
sessionKey: params.session.sessionKey,
|
|
178
202
|
requireWriteSuccess: true,
|
|
179
203
|
replaceEntry: true,
|
|
180
|
-
|
|
181
|
-
|
|
204
|
+
authority: params.sourceAuthority ? {
|
|
205
|
+
kind: "source",
|
|
206
|
+
source: params.sourceAuthority
|
|
207
|
+
} : {
|
|
208
|
+
kind: "host",
|
|
209
|
+
assertCurrent: params.assertCurrent
|
|
210
|
+
},
|
|
211
|
+
prepare: (entry) => {
|
|
182
212
|
if (entry.sessionId !== params.session.sessionId) throw new Error("Codex session changed while applying the permission mode.");
|
|
183
213
|
entry.permissionMode = params.mode === "yolo" ? "full" : "guarded";
|
|
184
214
|
return entry;
|
|
@@ -222,10 +252,10 @@ function buildCodexConversationAgentLookup(params) {
|
|
|
222
252
|
...params.config ? { config: params.config } : {}
|
|
223
253
|
};
|
|
224
254
|
}
|
|
225
|
-
function resolveThreadRequestModelProvider(params) {
|
|
255
|
+
async function resolveThreadRequestModelProvider(params) {
|
|
226
256
|
const modelProvider = params.modelProvider?.trim();
|
|
227
257
|
if (!modelProvider || modelProvider.toLowerCase() === "codex") return;
|
|
228
|
-
if (
|
|
258
|
+
if (modelProvider.toLowerCase() === "openai" && await isCodexAppServerNativeAuthProfile(params)) return;
|
|
229
259
|
return modelProvider.toLowerCase() === "openai" ? "openai" : modelProvider;
|
|
230
260
|
}
|
|
231
261
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as readCodexPluginConfig } from "./config-parsing-DsWSCPHO.mjs";
|
|
2
|
-
import { t as attemptTerminal } from "./attempt-terminal-
|
|
2
|
+
import { t as attemptTerminal } from "./attempt-terminal-sZutF0WY.mjs";
|
|
3
3
|
//#region extensions/codex/src/app-server/cyber-failover.ts
|
|
4
4
|
/**
|
|
5
5
|
* Automatic Daybreak escalation for OpenAI cyber-policy refusals.
|
package/dist/.setup/{cyber-failover-notice-ljgGGL0s.mjs → cyber-failover-notice-poL3Advd.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as emitCodexAppServerEvent } from "./run-attempt-lifecycle-
|
|
1
|
+
import { t as emitCodexAppServerEvent } from "./run-attempt-lifecycle-DN-ATDp9.mjs";
|
|
2
2
|
//#region extensions/codex/src/app-server/cyber-failover-notice.ts
|
|
3
3
|
async function emitCodexCyberNotice(params, notice) {
|
|
4
4
|
await emitCodexAppServerEvent(params, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as readCodexPluginConfig } from "./config-parsing-DsWSCPHO.mjs";
|
|
2
|
-
import { a as resolveCodexAppServerStartOptionsForAgent } from "./config-options-
|
|
3
|
-
import {
|
|
4
|
-
import "./config-
|
|
5
|
-
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-
|
|
2
|
+
import { a as resolveCodexAppServerStartOptionsForAgent } from "./config-options-DMFZkd3X.mjs";
|
|
3
|
+
import { a as isManagedCodexDesktopCommand, u as resolveManagedCodexAppServerStartOptions } from "./managed-binary-DbKvGXKl.mjs";
|
|
4
|
+
import "./config-BfrAlTMT.mjs";
|
|
5
|
+
import { n as resolveCodexAppServerRuntimeOptions } from "./config-runtime-BZRizyuG.mjs";
|
|
6
6
|
import { listAgentIds, resolveAgentDir } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
7
7
|
import { resolveDefaultModelForAgent } from "openclaw/plugin-sdk/agent-runtime";
|
|
8
8
|
import { resolveEffectiveAgentRuntime } from "openclaw/plugin-sdk/command-auth-native";
|
|
@@ -48,7 +48,10 @@ async function resolveCodexDoctorStartOptions(params) {
|
|
|
48
48
|
managedCommandOrder: "package-only"
|
|
49
49
|
});
|
|
50
50
|
for (const candidate of candidates) {
|
|
51
|
-
const resolved = await resolveStartOptions(candidate, {
|
|
51
|
+
const resolved = await resolveStartOptions(candidate, {
|
|
52
|
+
pluginRoot: params.pluginRoot,
|
|
53
|
+
preferInstalled: false
|
|
54
|
+
});
|
|
52
55
|
if (!isDesktopCommand(resolved.command)) return {
|
|
53
56
|
status: "selected",
|
|
54
57
|
start: resolved
|