@openclaw/codex 2026.5.20 → 2026.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-Ab4Fw77C.js → client-D3SUwPFl.js} +14 -8
- package/dist/{client-factory-BbesECdh.js → client-factory-DdrIY1lw.js} +1 -1
- package/dist/{command-handlers-Gceg_rBZ.js → command-handlers-DsB0GYd2.js} +64 -7
- package/dist/{compact-BaSDurdH.js → compact-BwQn7jKq.js} +186 -40
- package/dist/{computer-use-B4iTog6z.js → computer-use-BMMwWwno.js} +2 -2
- package/dist/{config-DqIp6oTk.js → config-DDMrwfJl.js} +21 -2
- package/dist/dynamic-tools-DA42no4X.js +497 -0
- package/dist/harness.js +15 -5
- package/dist/index.js +10 -9
- package/dist/media-understanding-provider.js +6 -3
- package/dist/{models-C8MdOXGD.js → models-B_uo1pf5.js} +1 -1
- package/dist/{node-cli-sessions-T1olB1SH.js → node-cli-sessions-yVCifOyG.js} +23 -9
- package/dist/{command-formatters-BVBnEgyA.js → notification-correlation-qKY_sgga.js} +66 -15
- package/dist/provider.js +3 -3
- package/dist/{request-BePR77QD.js → request-NklFaHM4.js} +12 -3
- package/dist/{run-attempt-CRHVB240.js → run-attempt-DzlLXP5Y.js} +3750 -1409
- package/dist/sandbox-guard-CTnEWuor.js +233 -0
- package/dist/{session-binding-DEiYHgJ_.js → session-binding-Bw_mfIW2.js} +4 -2
- package/dist/{shared-client-DCxJx5QU.js → shared-client-C_RbGxW8.js} +2 -2
- package/dist/{side-question-DlJAUYst.js → side-question-DzP1wClA.js} +20 -15
- package/dist/test-api.js +3 -2
- package/dist/{thread-lifecycle-Cgi62SSl.js → thread-lifecycle-4Ul7RoW4.js} +606 -589
- package/dist/{vision-tools-B2wt6ecs.js → vision-tools-DOnxzH2y.js} +7 -3
- package/npm-shrinkwrap.json +1934 -0
- package/openclaw.plugin.json +29 -0
- package/package.json +8 -6
- package/dist/plugin-activation-BkQkPLOY.js +0 -452
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isJsonObject } from "./protocol-oeJQu4rs.js";
|
|
2
|
-
import {
|
|
2
|
+
import { s as formatCodexDisplayText } from "./notification-correlation-qKY_sgga.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { buildAgentHookContextChannelFields, callGatewayTool, embeddedAgentLog, formatApprovalDisplayPath, hasNativeHookRelayInvocation, invokeNativeHookRelay, runBeforeToolCallHook } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
5
5
|
import { emitTrustedDiagnosticEvent } from "openclaw/plugin-sdk/diagnostic-runtime";
|
|
@@ -808,6 +808,10 @@ const MCP_TOOL_APPROVAL_SOURCE_KEY = "source";
|
|
|
808
808
|
const MCP_TOOL_APPROVAL_CONNECTOR_SOURCE = "connector";
|
|
809
809
|
const CODEX_APPS_SERVER_NAME = "codex_apps";
|
|
810
810
|
const COMPUTER_USE_APPROVAL_TITLE = "Computer Use approval";
|
|
811
|
+
const EMPTY_OBJECT_SCHEMA = {
|
|
812
|
+
type: "object",
|
|
813
|
+
properties: {}
|
|
814
|
+
};
|
|
811
815
|
const PLUGIN_APP_ID_META_KEYS = [
|
|
812
816
|
"app_id",
|
|
813
817
|
"appId",
|
|
@@ -1017,8 +1021,8 @@ function readBridgeableApprovalElicitation(requestParams) {
|
|
|
1017
1021
|
}
|
|
1018
1022
|
function readComputerUseApprovalElicitation(requestParams, expectedServerName) {
|
|
1019
1023
|
const serverName = readString(requestParams, "serverName");
|
|
1020
|
-
if (!serverName || !expectedServerName || serverName !== expectedServerName || readString(requestParams, "mode") !== "form"
|
|
1021
|
-
const requestedSchema = requestParams.requestedSchema;
|
|
1024
|
+
if (!serverName || !expectedServerName || serverName !== expectedServerName || readString(requestParams, "mode") !== "form") return;
|
|
1025
|
+
const requestedSchema = isJsonObject(requestParams?.requestedSchema) ? requestParams.requestedSchema : EMPTY_OBJECT_SCHEMA;
|
|
1022
1026
|
if (readString(requestedSchema, "type") !== "object" || !isJsonObject(requestedSchema.properties)) return;
|
|
1023
1027
|
const meta = isJsonObject(requestParams?.["_meta"]) ? requestParams["_meta"] : {};
|
|
1024
1028
|
const title = sanitizeDisplayText(readString(requestParams, "message") ?? "") || COMPUTER_USE_APPROVAL_TITLE;
|