mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 11:30:29 +00:00
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:
@@ -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", () => {
|
||||
|
||||
@@ -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}".`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user