mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-26 02:49:33 +00:00
Move ACPX gateway identity and live process leases into SQLite-backed plugin state. Add doctor migration for legacy runtime state and preserve process cleanup identity checks across the storage move.
25 lines
829 B
TypeScript
25 lines
829 B
TypeScript
/**
|
|
* ACPX runtime plugin entry. It registers the embedded ACP backend service and
|
|
* wires reply-dispatch hooks into the plugin SDK runtime.
|
|
*/
|
|
import { tryDispatchAcpReplyHook } from "openclaw/plugin-sdk/acp-runtime-backend";
|
|
import { createAcpxRuntimeService } from "./register.runtime.js";
|
|
import type { OpenClawPluginApi } from "./runtime-api.js";
|
|
|
|
const plugin = {
|
|
id: "acpx",
|
|
name: "ACPX Runtime",
|
|
description: "Embedded ACP runtime backend with plugin-owned session and transport management.",
|
|
register(api: OpenClawPluginApi) {
|
|
api.registerService(
|
|
createAcpxRuntimeService({
|
|
pluginConfig: api.pluginConfig,
|
|
openKeyedStore: (options) => api.runtime.state.openKeyedStore(options),
|
|
}),
|
|
);
|
|
api.on("reply_dispatch", tryDispatchAcpReplyHook);
|
|
},
|
|
};
|
|
|
|
export default plugin;
|