@openclaw/acpx 2026.5.12 → 2026.5.14-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.
@@ -5,7 +5,7 @@ const ENABLE_STARTUP_PROBE_ENV = "OPENCLAW_ACPX_RUNTIME_STARTUP_PROBE";
5
5
  const SKIP_RUNTIME_PROBE_ENV = "OPENCLAW_SKIP_ACPX_RUNTIME_PROBE";
6
6
  let serviceModulePromise = null;
7
7
  function loadServiceModule() {
8
- serviceModulePromise ??= import("./service-DQ72Urx_.js");
8
+ serviceModulePromise ??= import("./service-DzWriMSw.js");
9
9
  return serviceModulePromise;
10
10
  }
11
11
  function shouldRunStartupProbe(env = process.env) {
@@ -200,6 +200,28 @@ function unwrapEnvCommand(parts) {
200
200
  while (index < parts.length && isEnvAssignment(parts[index])) index += 1;
201
201
  return parts.slice(index);
202
202
  }
203
+ function matchesExecutableName(value, executableName) {
204
+ const normalized = basename(value).toLowerCase();
205
+ return normalized === executableName || normalized === `${executableName}.exe`;
206
+ }
207
+ function matchesPackageSpec(value, packageName) {
208
+ const normalized = value.trim().toLowerCase();
209
+ return normalized === packageName || normalized.startsWith(`${packageName}@`);
210
+ }
211
+ function stripModuleExtension(value) {
212
+ return value.replace(/\.[cm]?js$/i, "").toLowerCase();
213
+ }
214
+ function isAcpCommand(command, params) {
215
+ if (!command) return false;
216
+ const parts = unwrapEnvCommand(splitCommandParts(command.trim()));
217
+ if (!parts.length) return false;
218
+ if (parts.some((part) => matchesPackageSpec(part, params.packageName))) return true;
219
+ const commandName = basename(parts[0] ?? "");
220
+ if (matchesExecutableName(commandName, params.executableName)) return true;
221
+ if (!matchesExecutableName(commandName, "node")) return false;
222
+ const scriptName = stripModuleExtension(basename(parts[1] ?? ""));
223
+ return scriptName === params.executableName || scriptName === `${params.executableName}-wrapper`;
224
+ }
203
225
  function isOpenClawBridgeCommand(command) {
204
226
  if (!command) return false;
205
227
  const parts = unwrapEnvCommand(splitCommandParts(command.trim()));
@@ -208,24 +230,23 @@ function isOpenClawBridgeCommand(command) {
208
230
  const scriptName = basename(parts[1] ?? "");
209
231
  return /^openclaw(?:\.[cm]?js)?$/i.test(scriptName) && parts[2] === OPENCLAW_BRIDGE_SUBCOMMAND;
210
232
  }
211
- function isCodexAcpPackageSpec(value) {
212
- return /^@zed-industries\/codex-acp(?:@.+)?$/i.test(value.trim());
213
- }
214
233
  function isCodexAcpCommand(command) {
215
- if (!command) return false;
216
- const parts = unwrapEnvCommand(splitCommandParts(command.trim()));
217
- if (!parts.length) return false;
218
- if (parts.some(isCodexAcpPackageSpec)) return true;
219
- const commandName = basename(parts[0] ?? "");
220
- if (/^codex-acp(?:\.exe)?$/i.test(commandName)) return true;
221
- if (commandName !== "node") return false;
222
- const scriptName = basename(parts[1] ?? "");
223
- return /^codex-acp(?:-wrapper)?(?:\.[cm]?js)?$/i.test(scriptName);
234
+ return isAcpCommand(command, {
235
+ packageName: "@zed-industries/codex-acp",
236
+ executableName: "codex-acp"
237
+ });
238
+ }
239
+ function isClaudeAcpCommand(command) {
240
+ return isAcpCommand(command, {
241
+ packageName: "@agentclientprotocol/claude-agent-acp",
242
+ executableName: "claude-agent-acp"
243
+ });
224
244
  }
225
245
  function failUnsupportedCodexAcpModel(rawModel, detail) {
226
246
  throw new AcpRuntimeError("ACP_INVALID_RUNTIME_OPTION", detail ?? `Codex ACP model "${rawModel}" is not supported. Use openai-codex/<model> or <model>/<reasoning-effort>.`);
227
247
  }
228
248
  const SUPPORTED_RUNTIME_SESSION_MODES = new Set(["persistent", "oneshot"]);
249
+ const WIRE_TIMEOUT_CONFIG_KEYS = new Set(["timeout", "timeout_seconds"]);
229
250
  function assertSupportedRuntimeSessionMode(mode) {
230
251
  if (typeof mode === "string" && SUPPORTED_RUNTIME_SESSION_MODES.has(mode)) return;
231
252
  const supported = Array.from(SUPPORTED_RUNTIME_SESSION_MODES).join(", ");
@@ -504,8 +525,9 @@ var AcpxRuntime = class {
504
525
  const delegate = await this.resolveDelegateForHandle(input.handle);
505
526
  const command = await this.resolveCommandForHandle(input.handle);
506
527
  const key = input.key.trim().toLowerCase();
507
- if (isCodexAcpCommand(command)) {
508
- if (key === "timeout" || key === "timeout_seconds") return;
528
+ const isCodexAcp = isCodexAcpCommand(command);
529
+ if (WIRE_TIMEOUT_CONFIG_KEYS.has(key) && (isCodexAcp || isClaudeAcpCommand(command))) return;
530
+ if (isCodexAcp) {
509
531
  if (key === "model" || key === "thinking" || key === "thought_level" || key === "reasoning_effort") {
510
532
  const override = key === "model" ? normalizeCodexAcpModelOverride(input.value) : normalizeCodexAcpModelOverride(void 0, input.value);
511
533
  if (!override && key !== "model") return;
@@ -553,6 +575,7 @@ const __testing = {
553
575
  appendCodexAcpConfigOverrides,
554
576
  assertSupportedRuntimeSessionMode,
555
577
  codexAcpSessionModelId,
578
+ isClaudeAcpCommand,
556
579
  isCodexAcpCommand,
557
580
  normalizeCodexAcpModelOverride
558
581
  };
@@ -724,7 +724,7 @@ const SKIP_RUNTIME_PROBE_ENV = "OPENCLAW_SKIP_ACPX_RUNTIME_PROBE";
724
724
  const ACPX_BACKEND_ID = "acpx";
725
725
  let runtimeModulePromise = null;
726
726
  function loadRuntimeModule() {
727
- runtimeModulePromise ??= import("./runtime-QqpvXys6.js");
727
+ runtimeModulePromise ??= import("./runtime-DeOzZoZw.js");
728
728
  return runtimeModulePromise;
729
729
  }
730
730
  function createLazyDefaultRuntime(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/acpx",
3
- "version": "2026.5.12",
3
+ "version": "2026.5.14-beta.1",
4
4
  "description": "OpenClaw ACP runtime backend",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "minHostVersion": ">=2026.4.25"
27
27
  },
28
28
  "compat": {
29
- "pluginApi": ">=2026.5.12"
29
+ "pluginApi": ">=2026.5.14-beta.1"
30
30
  },
31
31
  "build": {
32
- "openclawVersion": "2026.5.12",
32
+ "openclawVersion": "2026.5.14-beta.1",
33
33
  "staticAssets": [
34
34
  {
35
35
  "source": "./src/runtime-internals/mcp-proxy.mjs",
@@ -59,7 +59,7 @@
59
59
  "skills/**"
60
60
  ],
61
61
  "peerDependencies": {
62
- "openclaw": ">=2026.5.12"
62
+ "openclaw": ">=2026.5.14-beta.1"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "openclaw": {