mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 15:11:42 +00:00
ACP: revert acpx-plugin package naming (#52456)
* ACP: revert acpx-plugin package naming * Test: format acp install hints expectations
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
@@ -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}".`;
|
||||
}
|
||||
|
||||
@@ -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"] },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user