@openclaw/acpx 2026.5.28-beta.1 → 2026.5.28-beta.2

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-CIbEVqqU.js";
1
+ import { t as createAcpxRuntimeService } from "./register.runtime-pBU18bwu.js";
2
2
  import { tryDispatchAcpReplyHook } from "openclaw/plugin-sdk/acp-runtime-backend";
3
3
  //#region extensions/acpx/index.ts
4
4
  const plugin = {
@@ -145,36 +145,8 @@ function lazyStartRuntimeTurn(resolveRuntime, input) {
145
145
  };
146
146
  }
147
147
  //#endregion
148
- //#region extensions/acpx/register.runtime.ts
149
- const ACPX_BACKEND_ID = "acpx";
150
- let serviceModulePromise = null;
151
- function loadServiceModule() {
152
- serviceModulePromise ??= import("./service-Dj4-xaW3.js");
153
- return serviceModulePromise;
154
- }
155
- async function startRealService(state) {
156
- if (state.realRuntime) return state.realRuntime;
157
- if (!state.ctx) throw new Error("ACPX runtime service is not started");
158
- state.startPromise ??= (async () => {
159
- const { createAcpxRuntimeService } = await loadServiceModule();
160
- const service = createAcpxRuntimeService(state.params);
161
- state.realService = service;
162
- await service.start(state.ctx);
163
- const backend = getAcpRuntimeBackend(ACPX_BACKEND_ID);
164
- if (!backend?.runtime) throw new Error("ACPX runtime service did not register an ACP backend");
165
- state.realRuntime = backend.runtime;
166
- return state.realRuntime;
167
- })();
168
- try {
169
- return await state.startPromise;
170
- } catch (error) {
171
- state.startPromise = null;
172
- state.realService = null;
173
- throw error;
174
- }
175
- }
176
- function createDeferredRuntime(state) {
177
- const resolveRuntime = () => startRealService(state);
148
+ //#region extensions/acpx/src/runtime-proxy.ts
149
+ function createLazyAcpRuntimeProxy(resolveRuntime) {
178
150
  return {
179
151
  async ensureSession(input) {
180
152
  return await (await resolveRuntime()).ensureSession(input);
@@ -214,6 +186,39 @@ function createDeferredRuntime(state) {
214
186
  }
215
187
  };
216
188
  }
189
+ //#endregion
190
+ //#region extensions/acpx/register.runtime.ts
191
+ const ACPX_BACKEND_ID = "acpx";
192
+ let serviceModulePromise = null;
193
+ function loadServiceModule() {
194
+ serviceModulePromise ??= import("./service-Dqn4OqIc.js");
195
+ return serviceModulePromise;
196
+ }
197
+ async function startRealService(state) {
198
+ if (state.realRuntime) return state.realRuntime;
199
+ if (!state.ctx) throw new Error("ACPX runtime service is not started");
200
+ state.startPromise ??= (async () => {
201
+ const { createAcpxRuntimeService } = await loadServiceModule();
202
+ const service = createAcpxRuntimeService(state.params);
203
+ state.realService = service;
204
+ await service.start(state.ctx);
205
+ const backend = getAcpRuntimeBackend(ACPX_BACKEND_ID);
206
+ if (!backend?.runtime) throw new Error("ACPX runtime service did not register an ACP backend");
207
+ state.realRuntime = backend.runtime;
208
+ return state.realRuntime;
209
+ })();
210
+ try {
211
+ return await state.startPromise;
212
+ } catch (error) {
213
+ state.startPromise = null;
214
+ state.realService = null;
215
+ throw error;
216
+ }
217
+ }
218
+ function createDeferredRuntime(state) {
219
+ const resolveRuntime = () => startRealService(state);
220
+ return createLazyAcpRuntimeProxy(resolveRuntime);
221
+ }
217
222
  function createAcpxRuntimeService(params = {}) {
218
223
  const state = {
219
224
  ctx: null,
@@ -247,4 +252,4 @@ function createAcpxRuntimeService(params = {}) {
247
252
  };
248
253
  }
249
254
  //#endregion
250
- export { lazyStartRuntimeTurn as n, createAcpxRuntimeService as t };
255
+ export { createLazyAcpRuntimeProxy as n, createAcpxRuntimeService as t };
@@ -1,2 +1,2 @@
1
- import { t as createAcpxRuntimeService } from "./register.runtime-CIbEVqqU.js";
1
+ import { t as createAcpxRuntimeService } from "./register.runtime-pBU18bwu.js";
2
2
  export { createAcpxRuntimeService };
@@ -1,4 +1,4 @@
1
- import { n as lazyStartRuntimeTurn } from "./register.runtime-CIbEVqqU.js";
1
+ import { n as createLazyAcpRuntimeProxy } from "./register.runtime-pBU18bwu.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";
@@ -828,42 +828,7 @@ function createLazyDefaultRuntime(params) {
828
828
  return await runtimePromise;
829
829
  }
830
830
  return {
831
- async ensureSession(input) {
832
- return await (await resolveRuntime()).ensureSession(input);
833
- },
834
- startTurn(input) {
835
- return lazyStartRuntimeTurn(resolveRuntime, input);
836
- },
837
- async *runTurn(input) {
838
- yield* (await resolveRuntime()).runTurn(input);
839
- },
840
- async getCapabilities(input) {
841
- return await (await resolveRuntime()).getCapabilities?.(input) ?? { controls: [] };
842
- },
843
- async getStatus(input) {
844
- return await (await resolveRuntime()).getStatus?.(input) ?? {};
845
- },
846
- async setMode(input) {
847
- await (await resolveRuntime()).setMode?.(input);
848
- },
849
- async setConfigOption(input) {
850
- await (await resolveRuntime()).setConfigOption?.(input);
851
- },
852
- async doctor() {
853
- return await (await resolveRuntime()).doctor?.() ?? {
854
- ok: true,
855
- message: "ok"
856
- };
857
- },
858
- async prepareFreshSession(input) {
859
- await (await resolveRuntime()).prepareFreshSession?.(input);
860
- },
861
- async cancel(input) {
862
- await (await resolveRuntime()).cancel(input);
863
- },
864
- async close(input) {
865
- await (await resolveRuntime()).close(input);
866
- },
831
+ ...createLazyAcpRuntimeProxy(resolveRuntime),
867
832
  async probeAvailability() {
868
833
  await (await resolveRuntime()).probeAvailability();
869
834
  },
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/acpx",
3
- "version": "2026.5.28-beta.1",
3
+ "version": "2026.5.28-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/acpx",
9
- "version": "2026.5.28-beta.1",
9
+ "version": "2026.5.28-beta.2",
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.1",
3
+ "version": "2026.5.28-beta.2",
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.1"
29
+ "pluginApi": ">=2026.5.28-beta.2"
30
30
  },
31
31
  "build": {
32
- "openclawVersion": "2026.5.28-beta.1",
32
+ "openclawVersion": "2026.5.28-beta.2",
33
33
  "staticAssets": [
34
34
  {
35
35
  "source": "./src/runtime-internals/mcp-proxy.mjs",
@@ -57,7 +57,7 @@
57
57
  "skills/**"
58
58
  ],
59
59
  "peerDependencies": {
60
- "openclaw": ">=2026.5.28-beta.1"
60
+ "openclaw": ">=2026.5.28-beta.2"
61
61
  },
62
62
  "peerDependenciesMeta": {
63
63
  "openclaw": {