@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.
Files changed (27) hide show
  1. package/dist/{client-Ab4Fw77C.js → client-D3SUwPFl.js} +14 -8
  2. package/dist/{client-factory-BbesECdh.js → client-factory-DdrIY1lw.js} +1 -1
  3. package/dist/{command-handlers-Gceg_rBZ.js → command-handlers-DsB0GYd2.js} +64 -7
  4. package/dist/{compact-BaSDurdH.js → compact-BwQn7jKq.js} +186 -40
  5. package/dist/{computer-use-B4iTog6z.js → computer-use-BMMwWwno.js} +2 -2
  6. package/dist/{config-DqIp6oTk.js → config-DDMrwfJl.js} +21 -2
  7. package/dist/dynamic-tools-DA42no4X.js +497 -0
  8. package/dist/harness.js +15 -5
  9. package/dist/index.js +10 -9
  10. package/dist/media-understanding-provider.js +6 -3
  11. package/dist/{models-C8MdOXGD.js → models-B_uo1pf5.js} +1 -1
  12. package/dist/{node-cli-sessions-T1olB1SH.js → node-cli-sessions-yVCifOyG.js} +23 -9
  13. package/dist/{command-formatters-BVBnEgyA.js → notification-correlation-qKY_sgga.js} +66 -15
  14. package/dist/provider.js +3 -3
  15. package/dist/{request-BePR77QD.js → request-NklFaHM4.js} +12 -3
  16. package/dist/{run-attempt-CRHVB240.js → run-attempt-DzlLXP5Y.js} +3750 -1409
  17. package/dist/sandbox-guard-CTnEWuor.js +233 -0
  18. package/dist/{session-binding-DEiYHgJ_.js → session-binding-Bw_mfIW2.js} +4 -2
  19. package/dist/{shared-client-DCxJx5QU.js → shared-client-C_RbGxW8.js} +2 -2
  20. package/dist/{side-question-DlJAUYst.js → side-question-DzP1wClA.js} +20 -15
  21. package/dist/test-api.js +3 -2
  22. package/dist/{thread-lifecycle-Cgi62SSl.js → thread-lifecycle-4Ul7RoW4.js} +606 -589
  23. package/dist/{vision-tools-B2wt6ecs.js → vision-tools-DOnxzH2y.js} +7 -3
  24. package/npm-shrinkwrap.json +1934 -0
  25. package/openclaw.plugin.json +29 -0
  26. package/package.json +8 -6
  27. package/dist/plugin-activation-BkQkPLOY.js +0 -452
@@ -1,5 +1,5 @@
1
1
  import { t as isJsonObject } from "./protocol-oeJQu4rs.js";
2
- import { r as formatCodexDisplayText } from "./command-formatters-BVBnEgyA.js";
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" || !isJsonObject(requestParams?.requestedSchema)) return;
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;