mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
19 lines
684 B
TypeScript
19 lines
684 B
TypeScript
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
|
|
|
|
export default definePluginEntry({
|
|
id: "acpx",
|
|
name: "ACPX Setup",
|
|
description: "Lightweight ACPX setup hooks",
|
|
register(api) {
|
|
api.registerAutoEnableProbe(({ config }) => {
|
|
const backendRaw = normalizeLowercaseStringOrEmpty(config.acp?.backend);
|
|
const configured =
|
|
config.acp?.enabled === true ||
|
|
config.acp?.dispatch?.enabled === true ||
|
|
backendRaw === "acpx";
|
|
return configured && (!backendRaw || backendRaw === "acpx") ? "ACP runtime configured" : null;
|
|
});
|
|
},
|
|
});
|