@openclaw/acpx 2026.7.2-beta.3 → 2026.7.2-beta.5

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.
@@ -22,11 +22,7 @@ function normalizeAcpxGatewayInstanceRecord(value) {
22
22
  * Persistent lease store for ACPX wrapper processes. Leases let OpenClaw attach
23
23
  * gateway/session identity to spawned ACP processes and clean them up later.
24
24
  */
25
- /** Environment variable carrying the ACPX process lease id. */
26
- const OPENCLAW_ACPX_LEASE_ID_ENV = "OPENCLAW_ACPX_LEASE_ID";
27
- /** Environment variable carrying the owning gateway instance id. */
28
- const OPENCLAW_GATEWAY_INSTANCE_ID_ENV = "OPENCLAW_GATEWAY_INSTANCE_ID";
29
- /** CLI argument carrying the ACPX process lease id for platforms without env wrapping. */
25
+ /** CLI argument carrying the ACPX process lease id. */
30
26
  const OPENCLAW_ACPX_LEASE_ID_ARG = "--openclaw-acpx-lease-id";
31
27
  /** CLI argument carrying the owning gateway instance id. */
32
28
  const OPENCLAW_GATEWAY_INSTANCE_ID_ARG = "--openclaw-gateway-instance-id";
@@ -127,15 +123,9 @@ function appendAcpxLeaseArgs(params) {
127
123
  quoteEnvValue(params.gatewayInstanceId)
128
124
  ].join(" ");
129
125
  }
130
- /** Add ACPX lease identity to a command through env vars and portable args. */
126
+ /** Add ACPX lease identity to a command through portable wrapper arguments. */
131
127
  function withAcpxLeaseEnvironment(params) {
132
- if ((params.platform ?? process.platform) === "win32") return appendAcpxLeaseArgs(params);
133
- return [
134
- "env",
135
- `${OPENCLAW_ACPX_LEASE_ID_ENV}=${quoteEnvValue(params.leaseId)}`,
136
- `${OPENCLAW_GATEWAY_INSTANCE_ID_ENV}=${quoteEnvValue(params.gatewayInstanceId)}`,
137
- appendAcpxLeaseArgs(params)
138
- ].join(" ");
128
+ return appendAcpxLeaseArgs(params);
139
129
  }
140
130
  //#endregion
141
- export { createAcpxProcessLeaseStore as a, normalizeAcpxProcessLeaseFile as c, ACPX_GATEWAY_INSTANCE_KEY as d, ACPX_GATEWAY_INSTANCE_NAMESPACE as f, normalizeAcpxGatewayInstanceRecord as h, createAcpxProcessLeaseId as i, openAcpxProcessLeaseStateStore as l, ACPX_LEGACY_PROCESS_LEASE_FILE as m, OPENCLAW_ACPX_LEASE_ID_ENV as n, hashAcpxProcessCommand as o, ACPX_LEGACY_GATEWAY_INSTANCE_FILE as p, OPENCLAW_GATEWAY_INSTANCE_ID_ARG as r, normalizeAcpxProcessLease as s, OPENCLAW_ACPX_LEASE_ID_ARG as t, withAcpxLeaseEnvironment as u };
131
+ export { hashAcpxProcessCommand as a, openAcpxProcessLeaseStateStore as c, ACPX_GATEWAY_INSTANCE_NAMESPACE as d, ACPX_LEGACY_GATEWAY_INSTANCE_FILE as f, createAcpxProcessLeaseStore as i, withAcpxLeaseEnvironment as l, normalizeAcpxGatewayInstanceRecord as m, OPENCLAW_GATEWAY_INSTANCE_ID_ARG as n, normalizeAcpxProcessLease as o, ACPX_LEGACY_PROCESS_LEASE_FILE as p, createAcpxProcessLeaseId as r, normalizeAcpxProcessLeaseFile as s, OPENCLAW_ACPX_LEASE_ID_ARG as t, ACPX_GATEWAY_INSTANCE_KEY as u };
@@ -1,5 +1,5 @@
1
1
  import { t as AcpxPluginConfigSchema } from "./config-schema-lrk5nlcV.js";
2
- import "./process-lease-DiKkFj6F.js";
2
+ import "./process-lease-CU1cFI4I.js";
3
3
  import { createRequire } from "node:module";
4
4
  import { formatPluginConfigIssue } from "openclaw/plugin-sdk/extension-shared";
5
5
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -200,7 +200,7 @@ function createLazyAcpRuntimeProxy(resolveRuntime) {
200
200
  * immediately, then imports the heavier service only when a session needs it.
201
201
  */
202
202
  const ACPX_BACKEND_ID = "acpx";
203
- const loadServiceModule = createLazyRuntimeModule(() => import("./service-D6LQXIcJ.js"));
203
+ const loadServiceModule = createLazyRuntimeModule(() => import("./service-DOsKw_R1.js"));
204
204
  async function startRealService(state) {
205
205
  if (state.realRuntime) return state.realRuntime;
206
206
  if (!state.ctx) throw new Error("ACPX runtime service is not started");
@@ -1,2 +1,2 @@
1
- import { t as createAcpxRuntimeService } from "./register.runtime-BrVpU-xc.js";
1
+ import { t as createAcpxRuntimeService } from "./register.runtime-Dajn8myc.js";
2
2
  export { createAcpxRuntimeService };
@@ -1,6 +1,6 @@
1
- import { i as createAcpxProcessLeaseId, o as hashAcpxProcessCommand, u as withAcpxLeaseEnvironment } from "./process-lease-DiKkFj6F.js";
1
+ import { a as hashAcpxProcessCommand, l as withAcpxLeaseEnvironment, r as createAcpxProcessLeaseId } from "./process-lease-CU1cFI4I.js";
2
2
  import { AcpRuntimeError } from "./runtime-api.js";
3
- import { c as splitCommandParts, f as OPENCLAW_CODEX_CONFIG_ARG, n as isOpenClawLeaseAwareAcpxProcessCommand, t as cleanupOpenClawOwnedAcpxProcessTree, u as CODEX_ACP_PACKAGE } from "./process-reaper-CoGRyMJ_.js";
3
+ import { c as splitCommandParts, f as OPENCLAW_CODEX_CONFIG_ARG, n as isOpenClawLeaseAwareAcpxProcessCommand, t as cleanupOpenClawOwnedAcpxProcessTree, u as CODEX_ACP_PACKAGE } from "./process-reaper-BIOtp_Ek.js";
4
4
  import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
5
5
  import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { sliceUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -1,8 +1,8 @@
1
- import { n as createLazyAcpRuntimeProxy } from "./register.runtime-BrVpU-xc.js";
1
+ import { n as createLazyAcpRuntimeProxy } from "./register.runtime-Dajn8myc.js";
2
2
  import "./config-schema-lrk5nlcV.js";
3
- import { a as createAcpxProcessLeaseStore, d as ACPX_GATEWAY_INSTANCE_KEY, f as ACPX_GATEWAY_INSTANCE_NAMESPACE, h as normalizeAcpxGatewayInstanceRecord, l as openAcpxProcessLeaseStateStore, n as OPENCLAW_ACPX_LEASE_ID_ENV, r as OPENCLAW_GATEWAY_INSTANCE_ID_ARG, t as OPENCLAW_ACPX_LEASE_ID_ARG } from "./process-lease-DiKkFj6F.js";
3
+ import { c as openAcpxProcessLeaseStateStore, d as ACPX_GATEWAY_INSTANCE_NAMESPACE, i as createAcpxProcessLeaseStore, m as normalizeAcpxGatewayInstanceRecord, n as OPENCLAW_GATEWAY_INSTANCE_ID_ARG, t as OPENCLAW_ACPX_LEASE_ID_ARG, u as ACPX_GATEWAY_INSTANCE_KEY } from "./process-lease-CU1cFI4I.js";
4
4
  import { registerAcpRuntimeBackend, unregisterAcpRuntimeBackend } from "./runtime-api.js";
5
- import { a as resolveAcpxPluginRoot, c as splitCommandParts, d as LEGACY_CODEX_ACP_PACKAGE, f as OPENCLAW_CODEX_CONFIG_ARG, i as resolveAcpxPluginConfig, l as CODEX_ACP_BIN, o as toAcpMcpServers, r as reapStaleOpenClawOwnedAcpxOrphans, s as quoteCommandPart, t as cleanupOpenClawOwnedAcpxProcessTree, u as CODEX_ACP_PACKAGE } from "./process-reaper-CoGRyMJ_.js";
5
+ import { a as resolveAcpxPluginRoot, c as splitCommandParts, d as LEGACY_CODEX_ACP_PACKAGE, f as OPENCLAW_CODEX_CONFIG_ARG, i as resolveAcpxPluginConfig, l as CODEX_ACP_BIN, o as toAcpMcpServers, r as reapStaleOpenClawOwnedAcpxOrphans, s as quoteCommandPart, t as cleanupOpenClawOwnedAcpxProcessTree, u as CODEX_ACP_PACKAGE } from "./process-reaper-BIOtp_Ek.js";
6
6
  import { createRequire } from "node:module";
7
7
  import { finiteSecondsToTimerSafeMilliseconds } from "openclaw/plugin-sdk/number-runtime";
8
8
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
@@ -431,7 +431,6 @@ function resolveStderrLogPath(args) {
431
431
  return undefined;
432
432
  }
433
433
  const leaseId =
434
- process.env[${JSON.stringify(OPENCLAW_ACPX_LEASE_ID_ENV)}] ||
435
434
  readOpenClawWrapperArg(args, ${quoteCommandPart(OPENCLAW_ACPX_LEASE_ID_ARG)}) ||
436
435
  "pid-" + process.pid;
437
436
  const fileName = stderrLogFileNamePrefix + "." + safeDiagnosticFilePart(leaseId) + ".log";
@@ -1027,7 +1026,7 @@ async function prepareAcpxCodexAuthConfig(params) {
1027
1026
  const ENABLE_STARTUP_PROBE_ENV = "OPENCLAW_ACPX_RUNTIME_STARTUP_PROBE";
1028
1027
  const SKIP_RUNTIME_PROBE_ENV = "OPENCLAW_SKIP_ACPX_RUNTIME_PROBE";
1029
1028
  const ACPX_BACKEND_ID = "acpx";
1030
- const loadRuntimeModule = createLazyRuntimeModule(() => import("./runtime-CMARmJuS.js"));
1029
+ const loadRuntimeModule = createLazyRuntimeModule(() => import("./runtime-CN4JQkdV.js"));
1031
1030
  /** Convert ACPX timeout seconds into timer-safe milliseconds. */
1032
1031
  function resolveAcpxTimerTimeoutMs(timeoutSeconds) {
1033
1032
  if (timeoutSeconds === void 0) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/acpx",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.5",
4
4
  "description": "OpenClaw ACP runtime backend with plugin-owned session and transport management.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@agentclientprotocol/claude-agent-acp": "0.55.0",
12
- "@agentclientprotocol/codex-acp": "1.1.2",
13
- "acpx": "0.11.2",
11
+ "@agentclientprotocol/claude-agent-acp": "0.59.0",
12
+ "@agentclientprotocol/codex-acp": "1.1.7",
13
+ "acpx": "0.12.0",
14
14
  "smol-toml": "1.7.0",
15
15
  "zod": "4.4.3"
16
16
  },
@@ -24,13 +24,29 @@
24
24
  "install": {
25
25
  "npmSpec": "@openclaw/acpx",
26
26
  "defaultChoice": "npm",
27
- "minHostVersion": ">=2026.4.25"
27
+ "minHostVersion": ">=2026.4.25",
28
+ "requiredPlatformPackages": [
29
+ "@anthropic-ai/claude-agent-sdk-linux-x64",
30
+ "@anthropic-ai/claude-agent-sdk-linux-arm64",
31
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl",
32
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl",
33
+ "@anthropic-ai/claude-agent-sdk-darwin-x64",
34
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64",
35
+ "@anthropic-ai/claude-agent-sdk-win32-x64",
36
+ "@anthropic-ai/claude-agent-sdk-win32-arm64",
37
+ "@openai/codex-linux-x64",
38
+ "@openai/codex-linux-arm64",
39
+ "@openai/codex-darwin-x64",
40
+ "@openai/codex-darwin-arm64",
41
+ "@openai/codex-win32-x64",
42
+ "@openai/codex-win32-arm64"
43
+ ]
28
44
  },
29
45
  "compat": {
30
- "pluginApi": ">=2026.7.2-beta.3"
46
+ "pluginApi": ">=2026.7.2-beta.5"
31
47
  },
32
48
  "build": {
33
- "openclawVersion": "2026.7.2-beta.3",
49
+ "openclawVersion": "2026.7.2-beta.5",
34
50
  "staticAssets": [
35
51
  {
36
52
  "source": "./src/runtime-internals/mcp-proxy.mjs",
@@ -54,12 +70,11 @@
54
70
  "files": [
55
71
  "dist/**",
56
72
  "openclaw.plugin.json",
57
- "npm-shrinkwrap.json",
58
73
  "README.md",
59
74
  "skills/**"
60
75
  ],
61
76
  "peerDependencies": {
62
- "openclaw": ">=2026.7.2-beta.3"
77
+ "openclaw": ">=2026.7.2-beta.5"
63
78
  },
64
79
  "peerDependenciesMeta": {
65
80
  "openclaw": {