@openclaw/acpx 2026.5.28-beta.4 → 2026.5.30-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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createAcpxRuntimeService } from "./register.runtime-pBU18bwu.js";
1
+ import { t as createAcpxRuntimeService } from "./register.runtime-L0KL5zS4.js";
2
2
  import { tryDispatchAcpReplyHook } from "openclaw/plugin-sdk/acp-runtime-backend";
3
3
  //#region extensions/acpx/index.ts
4
4
  const plugin = {
@@ -191,7 +191,7 @@ function createLazyAcpRuntimeProxy(resolveRuntime) {
191
191
  const ACPX_BACKEND_ID = "acpx";
192
192
  let serviceModulePromise = null;
193
193
  function loadServiceModule() {
194
- serviceModulePromise ??= import("./service-Dqn4OqIc.js");
194
+ serviceModulePromise ??= import("./service-CLaP4k7z.js");
195
195
  return serviceModulePromise;
196
196
  }
197
197
  async function startRealService(state) {
@@ -1,2 +1,2 @@
1
- import { t as createAcpxRuntimeService } from "./register.runtime-pBU18bwu.js";
1
+ import { t as createAcpxRuntimeService } from "./register.runtime-L0KL5zS4.js";
2
2
  export { createAcpxRuntimeService };
@@ -143,7 +143,7 @@ function createResetAwareSessionStore(baseStore, params) {
143
143
  const OPENCLAW_BRIDGE_EXECUTABLE = "openclaw";
144
144
  const OPENCLAW_BRIDGE_SUBCOMMAND = "acp";
145
145
  const CODEX_ACP_AGENT_ID = "codex";
146
- const CODEX_ACP_OPENCLAW_PREFIX = "openai-codex/";
146
+ const CODEX_ACP_OPENCLAW_PREFIX = "openai/";
147
147
  const CODEX_ACP_REASONING_EFFORTS = new Set([
148
148
  "low",
149
149
  "medium",
@@ -241,7 +241,7 @@ function isClaudeAcpCommand(command) {
241
241
  });
242
242
  }
243
243
  function failUnsupportedCodexAcpModel(rawModel, detail) {
244
- throw new AcpRuntimeError("ACP_INVALID_RUNTIME_OPTION", detail ?? `Codex ACP model "${rawModel}" is not supported. Use openai-codex/<model> or <model>/<reasoning-effort>.`);
244
+ throw new AcpRuntimeError("ACP_INVALID_RUNTIME_OPTION", detail ?? `Codex ACP model "${rawModel}" is not supported. Use openai/<model> or <model>/<reasoning-effort>.`);
245
245
  }
246
246
  const SUPPORTED_RUNTIME_SESSION_MODES = new Set(["persistent", "oneshot"]);
247
247
  const WIRE_TIMEOUT_CONFIG_KEYS = new Set(["timeout", "timeout_seconds"]);
@@ -264,12 +264,12 @@ function normalizeCodexAcpModelOverride(rawModel, rawThinking) {
264
264
  const thinkingReasoningEffort = normalizeCodexAcpReasoningEffort(rawThinking);
265
265
  if (!raw) return thinkingReasoningEffort ? { reasoningEffort: thinkingReasoningEffort } : void 0;
266
266
  let value = raw;
267
- if (value.toLowerCase().startsWith(CODEX_ACP_OPENCLAW_PREFIX)) value = value.slice(13);
267
+ if (value.toLowerCase().startsWith(CODEX_ACP_OPENCLAW_PREFIX)) value = value.slice(7);
268
268
  const parts = value.split("/");
269
- if (parts.length > 2) failUnsupportedCodexAcpModel(raw, `Codex ACP model "${raw}" is not supported. Use openai-codex/<model> or <model>/<reasoning-effort>.`);
269
+ if (parts.length > 2) failUnsupportedCodexAcpModel(raw, `Codex ACP model "${raw}" is not supported. Use openai/<model> or <model>/<reasoning-effort>.`);
270
270
  const model = (parts[0] ?? "").trim();
271
271
  const modelReasoningEffort = normalizeCodexAcpReasoningEffort(parts[1]);
272
- if (!model) failUnsupportedCodexAcpModel(raw, `Codex ACP model "${raw}" is not supported. Use openai-codex/<model> or <model>/<reasoning-effort>.`);
272
+ if (!model) failUnsupportedCodexAcpModel(raw, `Codex ACP model "${raw}" is not supported. Use openai/<model> or <model>/<reasoning-effort>.`);
273
273
  const reasoningEffort = thinkingReasoningEffort ?? modelReasoningEffort;
274
274
  if (reasoningEffort && !CODEX_ACP_REASONING_EFFORTS.has(reasoningEffort)) failUnsupportedCodexAcpThinking(reasoningEffort);
275
275
  return {
@@ -1,9 +1,10 @@
1
- import { n as createLazyAcpRuntimeProxy } from "./register.runtime-pBU18bwu.js";
1
+ import { n as createLazyAcpRuntimeProxy } from "./register.runtime-L0KL5zS4.js";
2
2
  import { registerAcpRuntimeBackend, unregisterAcpRuntimeBackend } from "./runtime-api.js";
3
3
  import { a as resolveAcpxPluginRoot, c as OPENCLAW_ACPX_LEASE_ID_ENV, d as createAcpxProcessLeaseStore, h as splitCommandParts, i as resolveAcpxPluginConfig, l as OPENCLAW_GATEWAY_INSTANCE_ID_ARG, m as quoteCommandPart, o as toAcpMcpServers, r as reapStaleOpenClawOwnedAcpxOrphans, s as OPENCLAW_ACPX_LEASE_ID_ARG, t as cleanupOpenClawOwnedAcpxProcessTree } from "./process-reaper-CAUlLOkM.js";
4
4
  import { createRequire } from "node:module";
5
5
  import fs from "node:fs/promises";
6
6
  import path from "node:path";
7
+ import { finiteSecondsToTimerSafeMilliseconds } from "openclaw/plugin-sdk/number-runtime";
7
8
  import { randomUUID } from "node:crypto";
8
9
  import { readJsonFileWithFallback } from "openclaw/plugin-sdk/json-store";
9
10
  import { inspect } from "node:util";
@@ -801,9 +802,13 @@ const SKIP_RUNTIME_PROBE_ENV = "OPENCLAW_SKIP_ACPX_RUNTIME_PROBE";
801
802
  const ACPX_BACKEND_ID = "acpx";
802
803
  let runtimeModulePromise = null;
803
804
  function loadRuntimeModule() {
804
- runtimeModulePromise ??= import("./runtime-BaP1xg1D.js");
805
+ runtimeModulePromise ??= import("./runtime-CWN42s53.js");
805
806
  return runtimeModulePromise;
806
807
  }
808
+ function resolveAcpxTimerTimeoutMs(timeoutSeconds) {
809
+ if (timeoutSeconds === void 0) return;
810
+ return finiteSecondsToTimerSafeMilliseconds(timeoutSeconds) ?? 1;
811
+ }
807
812
  function createLazyDefaultRuntime(params) {
808
813
  let runtime = null;
809
814
  let runtimePromise = null;
@@ -821,7 +826,7 @@ function createLazyDefaultRuntime(params) {
821
826
  mcpServers: toAcpMcpServers(params.pluginConfig.mcpServers),
822
827
  permissionMode: params.pluginConfig.permissionMode,
823
828
  nonInteractivePermissions: params.pluginConfig.nonInteractivePermissions,
824
- timeoutMs: params.pluginConfig.timeoutSeconds != null ? params.pluginConfig.timeoutSeconds * 1e3 : void 0
829
+ timeoutMs: resolveAcpxTimerTimeoutMs(params.pluginConfig.timeoutSeconds)
825
830
  });
826
831
  return runtime;
827
832
  });
@@ -893,7 +898,7 @@ function shouldProbeRuntimeAtStartup(env = process.env) {
893
898
  }
894
899
  async function withStartupProbeTimeout(params) {
895
900
  let timeout;
896
- const timeoutMs = Math.max(1, params.timeoutSeconds * 1e3);
901
+ const timeoutMs = resolveAcpxTimerTimeoutMs(params.timeoutSeconds) ?? 1;
897
902
  try {
898
903
  return await Promise.race([params.promise, new Promise((_, reject) => {
899
904
  timeout = setTimeout(() => {
@@ -1052,4 +1057,4 @@ function createAcpxRuntimeService(params = {}) {
1052
1057
  };
1053
1058
  }
1054
1059
  //#endregion
1055
- export { createAcpxRuntimeService };
1060
+ export { createAcpxRuntimeService, resolveAcpxTimerTimeoutMs };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/acpx",
3
- "version": "2026.5.28-beta.4",
3
+ "version": "2026.5.30-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/acpx",
9
- "version": "2026.5.28-beta.4",
9
+ "version": "2026.5.30-beta.1",
10
10
  "dependencies": {
11
11
  "@agentclientprotocol/claude-agent-acp": "0.37.0",
12
12
  "@zed-industries/codex-acp": "0.15.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/acpx",
3
- "version": "2026.5.28-beta.4",
3
+ "version": "2026.5.30-beta.1",
4
4
  "description": "OpenClaw ACP runtime backend with plugin-owned session and transport management.",
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.28-beta.4"
29
+ "pluginApi": ">=2026.5.30-beta.1"
30
30
  },
31
31
  "build": {
32
- "openclawVersion": "2026.5.28-beta.4",
32
+ "openclawVersion": "2026.5.30-beta.1",
33
33
  "staticAssets": [
34
34
  {
35
35
  "source": "./src/runtime-internals/mcp-proxy.mjs",
@@ -58,7 +58,7 @@
58
58
  "skills/**"
59
59
  ],
60
60
  "peerDependencies": {
61
- "openclaw": ">=2026.5.28-beta.4"
61
+ "openclaw": ">=2026.5.30-beta.1"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "openclaw": {