@openclaw/codex 2026.7.2-beta.7 → 2026.7.34
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 +3 -27
- package/dist/{command-formatters-C336eRVS.js → .setup/app-server-policy-C_qTMEMy.mjs} +51 -9
- package/dist/{attempt-notifications-AP-a-Q5k.js → .setup/attempt-notifications-F8krwWL4.mjs} +6 -3
- package/dist/{command-handlers-DAHUSry9.js → .setup/command-handlers-DSRFfor4.mjs} +1156 -1319
- package/dist/.setup/command-rpc-BvYsfQ7G.mjs +786 -0
- package/dist/{compact-D_uvHurS.js → .setup/compact-BNgh7I4t.mjs} +10 -40
- package/dist/.setup/computer-use-C3QkmSO3.mjs +377 -0
- package/dist/.setup/config-CYEDnLJ2.mjs +1138 -0
- package/dist/{conversation-binding-data-BHRpYbX3.js → .setup/conversation-binding-data-CrRxtDBu.mjs} +1 -1
- package/dist/{bounded-turn-D2ZAgZVz.js → .setup/media-understanding-provider-EbJCyDqe.mjs} +203 -109
- package/dist/{models-BBMKU4jA.js → .setup/models-C_aZk03A.mjs} +11 -6
- package/dist/.setup/notification-correlation-iYs4WieS.mjs +35 -0
- package/dist/.setup/plugin-app-cache-key-DR8jV9oS.mjs +99 -0
- package/dist/.setup/protocol-2POPqAY4.mjs +13 -0
- package/dist/{transcript-mirror-DzsdNCf5.js → .setup/protocol-validators-dZQ-UTOa.mjs} +112 -922
- package/dist/{rate-limits-CU-gVCCS.js → .setup/provider-DGxDs6g8.mjs} +269 -13
- package/dist/{dynamic-tools-D2gYkSBO.js → .setup/provider-capabilities-DS2N_zc1.mjs} +5632 -3953
- package/dist/.setup/request-DFR0JyoV.mjs +36 -0
- package/dist/.setup/run-attempt-C7xEKFVB.mjs +8180 -0
- package/dist/{sandbox-guard-NuhpXmPB.js → .setup/sandbox-guard-DA2TQfZW.mjs} +1 -14
- package/dist/.setup/session-binding-DuihlMJc.mjs +628 -0
- package/dist/.setup/shared-client-B2KmLPRw.mjs +1854 -0
- package/dist/{side-question-_ulBk1AL.js → .setup/side-question-Cv6JXWCS.mjs} +84 -159
- package/dist/.setup/thread-lifecycle-u6CZdOOH.mjs +2593 -0
- package/dist/{web-search-provider.runtime-CCFhg2z5.js → .setup/web-search-provider.runtime-Ce2zOHxW.mjs} +3 -3
- package/dist/doctor-contract-api.js +122 -88
- package/dist/harness.js +20 -89
- package/dist/index.js +436 -1615
- package/dist/media-understanding-provider.js +1 -173
- package/dist/prompt-overlay.js +15 -0
- package/dist/provider-catalog.js +79 -0
- package/dist/provider-discovery.js +34 -0
- package/dist/provider.js +2 -0
- package/dist/web-search-contract-api.js +1 -1
- package/openclaw.plugin.json +178 -221
- package/package.json +8 -9
- package/dist/app-server-policy-BSaO2JIT.js +0 -49
- package/dist/auth-binding-B4FfbcCg.js +0 -62
- package/dist/capabilities-BFDTVYr4.js +0 -36
- package/dist/cli-metadata.js +0 -20
- package/dist/computer-use-CYEc8U3w.js +0 -693
- package/dist/conversation-control-xsIeXbo4.js +0 -287
- package/dist/effective-mcp-catalog-Bbd98Inw.js +0 -114
- package/dist/event-projector-assistant-message-DTgnPPVF.js +0 -101
- package/dist/event-projector-usage-Xp4AlR2k.js +0 -86
- package/dist/incognito-session-ET_ufDH-.js +0 -2
- package/dist/notification-correlation-CU6_AnOb.js +0 -67
- package/dist/plugin-app-cache-key-DztPafOA.js +0 -408
- package/dist/request-qKh331yu.js +0 -157
- package/dist/run-attempt-CY9WlDLc.js +0 -12413
- package/dist/runtime-artifact-CmtG_t1L.js +0 -554
- package/dist/session-binding-BXpo9ymA.js +0 -2214
- package/dist/session-catalog-DyOgR4WH.js +0 -2668
- package/dist/session-cli-2PZaFLRh.js +0 -175
- package/dist/session-upstream-marker-B6U7tLw5.js +0 -82
- package/dist/settled-turn-finalizer-CXY2Z9dT.js +0 -316
- package/dist/shared-client-DTbvH-XV.js +0 -3069
- package/dist/thread-lifecycle-DF53ogiA.js +0 -3987
- package/dist/transport-stdio-DXgGZ7Ib.js +0 -88
- package/dist/upstream-session-fork-Dy4Xvuoj.js +0 -320
- package/dist/usage-CQ6GhD5-.js +0 -25
- /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
- /package/dist/{session-binding-meta-B7aEMU7g.js → .setup/session-binding-meta-B7aEMU7g.mjs} +0 -0
- /package/dist/{web-search-provider.shared-BrZmlqyR.js → .setup/web-search-provider.shared-BrZmlqyR.mjs} +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { C as canUseCodexModelBackedApprovalsReviewerForModel } from "./session-binding-BXpo9ymA.js";
|
|
2
|
-
//#region extensions/codex/src/app-server/app-server-policy.ts
|
|
3
|
-
/**
|
|
4
|
-
* Policy promotion for Codex app-server runs that can safely use OpenClaw tool
|
|
5
|
-
* approvals.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Promotes implicit `never` approval policy to `untrusted` only when runtime
|
|
9
|
-
* requirements allow OpenClaw to handle tool approvals.
|
|
10
|
-
*/
|
|
11
|
-
function resolveCodexAppServerForOpenClawToolPolicy(params) {
|
|
12
|
-
if (!params.shouldPromote || !params.canUseUntrustedApprovalPolicy || params.appServer.approvalPolicy !== "never") return params.appServer;
|
|
13
|
-
const explicitMode = params.execPolicy?.mode === "full" || params.pluginConfig.appServer?.mode !== void 0 || isCodexAppServerPolicyMode(params.env.OPENCLAW_CODEX_APP_SERVER_MODE);
|
|
14
|
-
const explicitApprovalPolicy = params.pluginConfig.appServer?.approvalPolicy !== void 0 || isConfiguredCodexAppServerApprovalPolicy(params.env.OPENCLAW_CODEX_APP_SERVER_APPROVAL_POLICY) || params.appServer.approvalPolicySource === "requirements";
|
|
15
|
-
if (explicitMode || explicitApprovalPolicy) return params.appServer;
|
|
16
|
-
return {
|
|
17
|
-
...params.appServer,
|
|
18
|
-
approvalPolicy: "untrusted"
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function resolveCodexAppServerForModelProvider(params) {
|
|
22
|
-
const explicitProvider = normalizeModelBackedReviewerProvider(params.provider);
|
|
23
|
-
if (!isCodexModelBackedApprovalsReviewer(params.appServer.approvalsReviewer) || canUseCodexModelBackedApprovalsReviewerForModel({
|
|
24
|
-
modelProvider: explicitProvider,
|
|
25
|
-
model: params.model,
|
|
26
|
-
config: params.config,
|
|
27
|
-
env: params.env,
|
|
28
|
-
agentDir: params.agentDir,
|
|
29
|
-
codexConfigToml: params.codexConfigToml
|
|
30
|
-
})) return params.appServer;
|
|
31
|
-
return {
|
|
32
|
-
...params.appServer,
|
|
33
|
-
approvalsReviewer: "user"
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function isCodexAppServerPolicyMode(value) {
|
|
37
|
-
return value === "guardian" || value === "yolo";
|
|
38
|
-
}
|
|
39
|
-
function isConfiguredCodexAppServerApprovalPolicy(value) {
|
|
40
|
-
return value === "never" || value === "on-request" || value === "on-failure" || value === "untrusted";
|
|
41
|
-
}
|
|
42
|
-
function isCodexModelBackedApprovalsReviewer(value) {
|
|
43
|
-
return value === "auto_review" || value === "guardian_subagent";
|
|
44
|
-
}
|
|
45
|
-
function normalizeModelBackedReviewerProvider(provider) {
|
|
46
|
-
return provider?.trim().toLowerCase() || void 0;
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
export { resolveCodexAppServerForOpenClawToolPolicy as n, resolveCodexAppServerForModelProvider as t };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { fingerprintResolvedAuthProfileCredential } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
3
|
-
import { resolveApiKeyForProfile } from "openclaw/plugin-sdk/agent-runtime";
|
|
4
|
-
//#region extensions/codex/src/app-server/auth-binding.ts
|
|
5
|
-
var auth_binding_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
-
fingerprintCodexAppServerAuthBinding: () => fingerprintCodexAppServerAuthBinding,
|
|
7
|
-
prepareCodexAppServerAuthBinding: () => prepareCodexAppServerAuthBinding
|
|
8
|
-
});
|
|
9
|
-
function withMaterializedCredential(params) {
|
|
10
|
-
const store = structuredClone(params.store);
|
|
11
|
-
if (params.credential.type === "api_key") {
|
|
12
|
-
const { keyRef: _keyRef, ...credential } = params.credential;
|
|
13
|
-
store.profiles[params.profileId] = {
|
|
14
|
-
...credential,
|
|
15
|
-
key: params.value
|
|
16
|
-
};
|
|
17
|
-
} else if (params.credential.type === "token") {
|
|
18
|
-
const { tokenRef: _tokenRef, ...credential } = params.credential;
|
|
19
|
-
store.profiles[params.profileId] = {
|
|
20
|
-
...credential,
|
|
21
|
-
token: params.value
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
return store;
|
|
25
|
-
}
|
|
26
|
-
/** Resolves one forwarded profile once so attestation and execution share exact material. */
|
|
27
|
-
async function prepareCodexAppServerAuthBinding(params) {
|
|
28
|
-
const credential = params.authProfileStore.profiles[params.authProfileId];
|
|
29
|
-
if (!credential || credential.type === "oauth") return;
|
|
30
|
-
const resolved = await resolveApiKeyForProfile({
|
|
31
|
-
cfg: params.config,
|
|
32
|
-
store: params.authProfileStore,
|
|
33
|
-
profileId: params.authProfileId,
|
|
34
|
-
agentDir: params.agentDir
|
|
35
|
-
});
|
|
36
|
-
if (!resolved?.apiKey) throw new Error(`Codex could not resolve auth profile "${params.authProfileId}".`);
|
|
37
|
-
const fingerprint = fingerprintResolvedAuthProfileCredential({
|
|
38
|
-
profileId: params.authProfileId,
|
|
39
|
-
credential,
|
|
40
|
-
resolvedAuth: {
|
|
41
|
-
apiKey: resolved.apiKey,
|
|
42
|
-
profileId: params.authProfileId,
|
|
43
|
-
source: `profile:${params.authProfileId}`,
|
|
44
|
-
mode: credential.type === "api_key" ? "api-key" : "token"
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
if (!fingerprint) throw new Error(`Codex could not attest auth profile "${params.authProfileId}".`);
|
|
48
|
-
return {
|
|
49
|
-
fingerprint,
|
|
50
|
-
authProfileStore: withMaterializedCredential({
|
|
51
|
-
store: params.authProfileStore,
|
|
52
|
-
profileId: params.authProfileId,
|
|
53
|
-
credential,
|
|
54
|
-
value: resolved.apiKey
|
|
55
|
-
})
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
async function fingerprintCodexAppServerAuthBinding(params) {
|
|
59
|
-
return (await prepareCodexAppServerAuthBinding(params))?.fingerprint;
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
export { prepareCodexAppServerAuthBinding as n, auth_binding_exports as t };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { v as CodexAppServerRpcError } from "./shared-client-DTbvH-XV.js";
|
|
2
|
-
//#region extensions/codex/src/app-server/capabilities.ts
|
|
3
|
-
/**
|
|
4
|
-
* Capability helpers for optional Codex app-server control-plane methods.
|
|
5
|
-
*/
|
|
6
|
-
/** Known app-server methods used by OpenClaw control surfaces. */
|
|
7
|
-
const CODEX_CONTROL_METHODS = {
|
|
8
|
-
account: "account/read",
|
|
9
|
-
compact: "thread/compact/start",
|
|
10
|
-
feedback: "feedback/upload",
|
|
11
|
-
forkThread: "thread/fork",
|
|
12
|
-
listMcpServers: "mcpServerStatus/list",
|
|
13
|
-
listSkills: "skills/list",
|
|
14
|
-
listThreads: "thread/list",
|
|
15
|
-
listThreadTurns: "thread/turns/list",
|
|
16
|
-
readThread: "thread/read",
|
|
17
|
-
rateLimits: "account/rateLimits/read",
|
|
18
|
-
archiveThread: "thread/archive",
|
|
19
|
-
renameThread: "thread/name/set",
|
|
20
|
-
resumeThread: "thread/resume",
|
|
21
|
-
review: "review/start",
|
|
22
|
-
unarchiveThread: "thread/unarchive",
|
|
23
|
-
getThreadGoal: "thread/goal/get",
|
|
24
|
-
setThreadGoal: "thread/goal/set",
|
|
25
|
-
clearThreadGoal: "thread/goal/clear"
|
|
26
|
-
};
|
|
27
|
-
/** Formats unsupported control calls differently from ordinary RPC failures. */
|
|
28
|
-
function describeControlFailure(error) {
|
|
29
|
-
if (isUnsupportedControlError(error)) return "unsupported by this Codex app-server";
|
|
30
|
-
return error instanceof Error ? error.message : String(error);
|
|
31
|
-
}
|
|
32
|
-
function isUnsupportedControlError(error) {
|
|
33
|
-
return error instanceof CodexAppServerRpcError && error.code === -32601;
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { describeControlFailure as n, CODEX_CONTROL_METHODS as t };
|
package/dist/cli-metadata.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
-
//#region extensions/codex/cli-metadata.ts
|
|
3
|
-
function registerCodexCliMetadata(api) {
|
|
4
|
-
api.registerCli(async ({ program }) => {
|
|
5
|
-
const { registerCodexSessionCli } = await import("./session-cli-2PZaFLRh.js");
|
|
6
|
-
registerCodexSessionCli(program);
|
|
7
|
-
}, { descriptors: [{
|
|
8
|
-
name: "codex",
|
|
9
|
-
description: "Inspect and branch from Codex sessions through the Gateway",
|
|
10
|
-
hasSubcommands: true
|
|
11
|
-
}] });
|
|
12
|
-
}
|
|
13
|
-
var cli_metadata_default = definePluginEntry({
|
|
14
|
-
id: "codex",
|
|
15
|
-
name: "Codex",
|
|
16
|
-
description: "Codex app-server harness and native session supervision.",
|
|
17
|
-
register: registerCodexCliMetadata
|
|
18
|
-
});
|
|
19
|
-
//#endregion
|
|
20
|
-
export { cli_metadata_default as default, registerCodexCliMetadata };
|