ACP: revert acpx-plugin package naming (#52456)

* ACP: revert acpx-plugin package naming

* Test: format acp install hints expectations
This commit is contained in:
Onur Solmaz
2026-03-22 20:55:48 +01:00
committed by GitHub
parent ff941b0193
commit b369397b43
6 changed files with 9 additions and 13 deletions

View File

@@ -21,11 +21,9 @@ afterEach(() => {
describe("ACP install hints", () => {
it("prefers explicit runtime install command", () => {
const cfg = withAcpConfig({
runtime: { installCommand: "pnpm openclaw plugins install @openclaw/acpx-plugin" },
runtime: { installCommand: "pnpm openclaw plugins install acpx" },
});
expect(resolveAcpInstallCommandHint(cfg)).toBe(
"pnpm openclaw plugins install @openclaw/acpx-plugin",
);
expect(resolveAcpInstallCommandHint(cfg)).toBe("pnpm openclaw plugins install acpx");
});
it("uses local acpx extension path when present", () => {
@@ -46,9 +44,7 @@ describe("ACP install hints", () => {
vi.spyOn(process, "cwd").mockReturnValue(tempRoot);
const cfg = withAcpConfig({ backend: "acpx" });
expect(resolveAcpInstallCommandHint(cfg)).toBe(
"openclaw plugins install @openclaw/acpx-plugin",
);
expect(resolveAcpInstallCommandHint(cfg)).toBe("openclaw plugins install acpx");
});
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 @openclaw/acpx-plugin";
return "openclaw plugins install acpx";
}
return `Install and enable the plugin that provides ACP backend "${backendId}".`;
}

View File

@@ -51,7 +51,7 @@ describe("copyBundledPluginMetadata", () => {
skills: ["./skills"],
});
writeJson(path.join(pluginDir, "package.json"), {
name: "@openclaw/acpx-plugin",
name: "@openclaw/acpx",
openclaw: { extensions: ["./index.ts"] },
});