ACP: fully rename acpx plugin (#52404)

* ACP: rename acpx plugin package

* ACP: fully rename acpx plugin

* ACP: remove old acpx paths

* Docs: add bundled plugin naming guardrails

* Docs: keep plugin naming guardrails internal

* ACP: keep acpx plugin id stable

* ACP: drop old acpx-plugin tree
This commit is contained in:
Onur Solmaz
2026-03-22 19:33:31 +01:00
committed by GitHub
parent 59b5583e0a
commit b79560c7f0
8 changed files with 158 additions and 10 deletions

View File

@@ -22,9 +22,11 @@ afterEach(() => {
describe("ACP install hints", () => {
it("prefers explicit runtime install command", () => {
const cfg = withAcpConfig({
runtime: { installCommand: "pnpm openclaw plugins install acpx" },
runtime: { installCommand: "pnpm openclaw plugins install @openclaw/acpx-plugin" },
});
expect(resolveAcpInstallCommandHint(cfg)).toBe("pnpm openclaw plugins install acpx");
expect(resolveAcpInstallCommandHint(cfg)).toBe(
"pnpm openclaw plugins install @openclaw/acpx-plugin",
);
});
it("uses local acpx extension path when present", () => {
@@ -39,13 +41,15 @@ describe("ACP install hints", () => {
expect(hint).toContain(path.join("extensions", "acpx"));
});
it("falls back to npm install hint for acpx when local extension is absent", () => {
it("falls back to scoped install hint for acpx when local extension is absent", () => {
const tempRoot = fs.mkdtempSync(path.join(os.tmpdir(), "acp-install-hint-"));
tempDirs.push(tempRoot);
process.chdir(tempRoot);
const cfg = withAcpConfig({ backend: "acpx" });
expect(resolveAcpInstallCommandHint(cfg)).toBe("openclaw plugins install acpx");
expect(resolveAcpInstallCommandHint(cfg)).toBe(
"openclaw plugins install @openclaw/acpx-plugin",
);
});
it("returns generic plugin hint for non-acpx backend", () => {

View File

@@ -17,7 +17,7 @@ export function resolveAcpInstallCommandHint(cfg: OpenClawConfig): string {
if (existsSync(localPath)) {
return `openclaw plugins install ${localPath}`;
}
return "openclaw plugins install acpx";
return "openclaw plugins install @openclaw/acpx-plugin";
}
return `Install and enable the plugin that provides ACP backend "${backendId}".`;
}