@openclaw/acpx 2026.8.2 → 2026.9.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/doctor-contract-api.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{register.runtime-BHFSFWWK.js → register.runtime-Ba7FPMGu.js} +1 -1
- package/dist/register.runtime.js +1 -1
- package/dist/rolldown-runtime-8H4AJuhK.js +14 -0
- package/dist/{runtime-D47jdCKR.js → runtime-memQfUBo.js} +2 -2
- package/dist/{service-DLjjP2kv.js → service-COMUTA5A.js} +3 -14
- package/dist/{session-owner-migration-Dt5yf0xJ.js → session-owner-migration-CistlQKM.js} +2 -1
- package/dist/{session-resource-CRWvFl2-.js → session-resource-UWe7qD3m.js} +3 -1
- package/openclaw.plugin.json +12 -0
- package/package.json +4 -4
|
@@ -137,10 +137,10 @@ const stateMigrations = [{
|
|
|
137
137
|
doctorOnly: true,
|
|
138
138
|
phase: "after-session-repair",
|
|
139
139
|
async detectLegacyState(input) {
|
|
140
|
-
return (await import("./session-owner-migration-
|
|
140
|
+
return (await import("./session-owner-migration-CistlQKM.js")).acpxSessionOwnerMigration.detectLegacyState(input);
|
|
141
141
|
},
|
|
142
142
|
async migrateLegacyState(input) {
|
|
143
|
-
return (await import("./session-owner-migration-
|
|
143
|
+
return (await import("./session-owner-migration-CistlQKM.js")).acpxSessionOwnerMigration.migrateLegacyState(input);
|
|
144
144
|
}
|
|
145
145
|
}];
|
|
146
146
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createAcpxRuntimeService } from "./register.runtime-
|
|
1
|
+
import { t as createAcpxRuntimeService } from "./register.runtime-Ba7FPMGu.js";
|
|
2
2
|
import "./config-schema-DN_uAi4R.js";
|
|
3
3
|
import { a as PI_SESSIONS_CAPABILITY, c as PI_SESSION_READ_COMMAND, l as PI_TERMINAL_RESUME_COMMAND, o as PI_SESSIONS_LIST_COMMAND, r as piSessionStoreAvailable, s as PI_SESSION_ID_PATTERN } from "./pi-session-paths-EMbd4Hkz.js";
|
|
4
4
|
import { tryDispatchAcpReplyHook } from "openclaw/plugin-sdk/acp-runtime-backend";
|
|
@@ -67,7 +67,7 @@ function createLazyAcpRuntimeProxy(resolveRuntime) {
|
|
|
67
67
|
* immediately, then imports the heavier service only when a session needs it.
|
|
68
68
|
*/
|
|
69
69
|
const ACPX_BACKEND_ID = "acpx";
|
|
70
|
-
const loadServiceModule = createLazyRuntimeModule(() => import("./service-
|
|
70
|
+
const loadServiceModule = createLazyRuntimeModule(() => import("./service-COMUTA5A.js").then((n) => n.t));
|
|
71
71
|
function unregisterOwnedRuntime(runtime) {
|
|
72
72
|
if (runtime && getAcpRuntimeBackend(ACPX_BACKEND_ID)?.runtime === runtime) unregisterAcpRuntimeBackend(ACPX_BACKEND_ID);
|
|
73
73
|
}
|
package/dist/register.runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createAcpxRuntimeService } from "./register.runtime-
|
|
1
|
+
import { t as createAcpxRuntimeService } from "./register.runtime-Ba7FPMGu.js";
|
|
2
2
|
export { createAcpxRuntimeService };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { __exportAll as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as withAcpxLeaseEnvironment, i as createAcpxProcessLeaseId, o as hashAcpxProcessCommand, t as ACPX_PROBE_LEASE_SESSION_KEY, u as readAcpxProcessLeaseIdentity, v as splitCommandParts } from "./process-lease-Cwvj7WGe.js";
|
|
2
2
|
import { AcpRuntimeError } from "./runtime-api.js";
|
|
3
|
-
import { t as resolveAcpxSessionResource } from "./session-resource-
|
|
4
|
-
import { a as CODEX_ACP_PACKAGE, i as isOpenClawLeaseAwareAcpxProcessCommand, n as cleanupOpenClawOwnedAcpxPendingLease, o as OPENCLAW_CODEX_CONFIG_ARG, r as cleanupOpenClawOwnedAcpxProcessTree } from "./service-
|
|
3
|
+
import { t as resolveAcpxSessionResource } from "./session-resource-UWe7qD3m.js";
|
|
4
|
+
import { a as CODEX_ACP_PACKAGE, i as isOpenClawLeaseAwareAcpxProcessCommand, n as cleanupOpenClawOwnedAcpxPendingLease, o as OPENCLAW_CODEX_CONFIG_ARG, r as cleanupOpenClawOwnedAcpxProcessTree } from "./service-COMUTA5A.js";
|
|
5
5
|
import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
6
6
|
import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import path, { resolve } from "node:path";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
+
import { n as createLazyAcpRuntimeProxy } from "./register.runtime-Ba7FPMGu.js";
|
|
2
3
|
import "./config-schema-DN_uAi4R.js";
|
|
3
4
|
import { _ as quoteCommandPart, a as createAcpxProcessLeaseStore, f as ACPX_GATEWAY_INSTANCE_KEY, g as normalizeAcpxGatewayInstanceRecord, l as openAcpxProcessLeaseStateStore, n as OPENCLAW_ACPX_LEASE_ID_ARG, p as ACPX_GATEWAY_INSTANCE_NAMESPACE, r as OPENCLAW_GATEWAY_INSTANCE_ID_ARG, u as readAcpxProcessLeaseIdentity, v as splitCommandParts } from "./process-lease-Cwvj7WGe.js";
|
|
4
5
|
import { n as resolveAcpxPluginRoot, r as toAcpMcpServers, t as resolveAcpxPluginConfig } from "./config-v8M2tNu6.js";
|
|
@@ -16,18 +17,6 @@ import { inspect } from "node:util";
|
|
|
16
17
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
17
18
|
import { readJsonFileWithFallback } from "openclaw/plugin-sdk/json-store";
|
|
18
19
|
import { parse, stringify } from "smol-toml";
|
|
19
|
-
//#region \0rolldown/runtime.js
|
|
20
|
-
var __defProp = Object.defineProperty;
|
|
21
|
-
var __exportAll = (all, no_symbols) => {
|
|
22
|
-
let target = {};
|
|
23
|
-
for (var name in all) __defProp(target, name, {
|
|
24
|
-
get: all[name],
|
|
25
|
-
enumerable: true
|
|
26
|
-
});
|
|
27
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
28
|
-
return target;
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
20
|
//#region extensions/acpx/src/codex-adapter.ts
|
|
32
21
|
const CODEX_ACP_PACKAGE = "@agentclientprotocol/codex-acp";
|
|
33
22
|
const CODEX_ACP_BIN = "codex-acp";
|
|
@@ -1362,7 +1351,7 @@ var service_exports = /* @__PURE__ */ __exportAll({
|
|
|
1362
1351
|
});
|
|
1363
1352
|
const ENABLE_STARTUP_PROBE_ENV = "OPENCLAW_ACPX_RUNTIME_STARTUP_PROBE";
|
|
1364
1353
|
const SKIP_RUNTIME_PROBE_ENV = "OPENCLAW_SKIP_ACPX_RUNTIME_PROBE";
|
|
1365
|
-
const loadRuntimeModule = createLazyRuntimeModule(() => import("./runtime-
|
|
1354
|
+
const loadRuntimeModule = createLazyRuntimeModule(() => import("./runtime-memQfUBo.js"));
|
|
1366
1355
|
/** Convert ACPX timeout seconds into timer-safe milliseconds. */
|
|
1367
1356
|
function resolveAcpxTimerTimeoutMs(timeoutSeconds) {
|
|
1368
1357
|
if (timeoutSeconds === void 0) return;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { l as openAcpxProcessLeaseStateStore, o as hashAcpxProcessCommand, s as normalizeAcpxProcessLease, u as readAcpxProcessLeaseIdentity } from "./process-lease-Cwvj7WGe.js";
|
|
2
2
|
import { t as resolveAcpxPluginConfig } from "./config-v8M2tNu6.js";
|
|
3
|
-
import { t as resolveAcpxSessionResource } from "./session-resource-CRWvFl2-.js";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import fs from "node:fs/promises";
|
|
6
5
|
import { archiveLegacyStateSource, asObjectRecord } from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
@@ -24,6 +23,7 @@ async function legacyRecords(input) {
|
|
|
24
23
|
directory,
|
|
25
24
|
ids
|
|
26
25
|
};
|
|
26
|
+
const { resolveAcpxSessionResource } = await import("./session-resource-UWe7qD3m.js").then((n) => n.n);
|
|
27
27
|
const evidence = await input.context.inspectAcpSessionClaims?.();
|
|
28
28
|
const { decodeAcpxRuntimeHandleState } = await import("acpx/runtime");
|
|
29
29
|
return {
|
|
@@ -66,6 +66,7 @@ async function migrateRecord(input, directory, oldId, claims, changes, warnings)
|
|
|
66
66
|
const raw = asObjectRecord(JSON.parse(sourceBytes));
|
|
67
67
|
if (!raw || raw.acpx_record_id !== oldId || typeof raw.name !== "string" || !raw.name.trim() || raw.name !== oldId && !oldId.startsWith(`${raw.name}:oneshot:`)) throw new Error("record ID/name is not a recognized ACPX locator");
|
|
68
68
|
requireStoppedPid(raw.pid);
|
|
69
|
+
const { resolveAcpxSessionResource } = await import("./session-resource-UWe7qD3m.js").then((n) => n.n);
|
|
69
70
|
const { createFileSessionStore, decodeAcpxRuntimeHandleState, encodeAcpxRuntimeHandleState } = await import("acpx/runtime");
|
|
70
71
|
const candidates = claims.filter((claim) => matchesClaimRecord(claim, raw, oldId, resolveAcpxSessionResource(claim), decodeAcpxRuntimeHandleState));
|
|
71
72
|
if (candidates.length !== 1) throw new Error("exactly one current canonical owner claim is required");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
1
2
|
import { AcpRuntimeError } from "./runtime-api.js";
|
|
2
3
|
import { createHash } from "node:crypto";
|
|
3
4
|
import { normalizeAgentId, parseAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
|
4
5
|
//#region extensions/acpx/src/session-resource.ts
|
|
6
|
+
var session_resource_exports = /* @__PURE__ */ __exportAll({ resolveAcpxSessionResource: () => resolveAcpxSessionResource });
|
|
5
7
|
/** Logical OpenClaw keys stay intact; only bare backend resource names need a namespace. */
|
|
6
8
|
function resolveAcpxSessionResource(target) {
|
|
7
9
|
const sessionKey = target.sessionKey.trim().toLowerCase();
|
|
@@ -12,4 +14,4 @@ function resolveAcpxSessionResource(target) {
|
|
|
12
14
|
return `openclaw-owner-v1-${createHash("sha256").update(JSON.stringify([agentId, sessionKey])).digest("hex")}`;
|
|
13
15
|
}
|
|
14
16
|
//#endregion
|
|
15
|
-
export { resolveAcpxSessionResource as t };
|
|
17
|
+
export { session_resource_exports as n, resolveAcpxSessionResource as t };
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "acpx",
|
|
3
|
+
"backupResources": [
|
|
4
|
+
{
|
|
5
|
+
"disposition": "regenerable",
|
|
6
|
+
"scope": "state",
|
|
7
|
+
"relativePath": "acpx/codex-home/tmp/arg0"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"disposition": "regenerable",
|
|
11
|
+
"scope": "state",
|
|
12
|
+
"relativePath": "acpx/codex-home/.tmp/plugins"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
3
15
|
"doctorContract": {
|
|
4
16
|
"configRepair": true,
|
|
5
17
|
"stateMigrations": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/acpx",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.9.1",
|
|
4
4
|
"description": "OpenClaw ACP runtime backend with plugin-owned session and transport management.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
"compat": {
|
|
46
|
-
"pluginApi": ">=2026.
|
|
46
|
+
"pluginApi": ">=2026.9.1"
|
|
47
47
|
},
|
|
48
48
|
"build": {
|
|
49
|
-
"openclawVersion": "2026.
|
|
49
|
+
"openclawVersion": "2026.9.1",
|
|
50
50
|
"staticAssets": [
|
|
51
51
|
{
|
|
52
52
|
"source": "./src/runtime-internals/mcp-proxy.mjs",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"skills/**"
|
|
75
75
|
],
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"openclaw": ">=2026.
|
|
77
|
+
"openclaw": ">=2026.9.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"openclaw": {
|