mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-23 07:51:33 +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:
@@ -510,7 +510,7 @@ See [Configuration Reference](/gateway/configuration-reference).
|
||||
Install and enable plugin:
|
||||
|
||||
```bash
|
||||
openclaw plugins install @openclaw/acpx-plugin
|
||||
openclaw plugins install acpx
|
||||
openclaw config set plugins.entries.acpx.enabled true
|
||||
```
|
||||
|
||||
@@ -528,7 +528,7 @@ Then verify backend health:
|
||||
|
||||
### acpx command and version configuration
|
||||
|
||||
By default, the acpx backend plugin package (`@openclaw/acpx-plugin`) uses the plugin-local pinned binary:
|
||||
By default, the bundled acpx backend plugin (`acpx`) uses the plugin-local pinned binary:
|
||||
|
||||
1. Command defaults to `extensions/acpx/node_modules/.bin/acpx`.
|
||||
2. Expected version defaults to the extension pin.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@openclaw/acpx-plugin",
|
||||
"name": "@openclaw/acpx",
|
||||
"version": "2026.3.22",
|
||||
"description": "OpenClaw ACP runtime backend via acpx",
|
||||
"type": "module",
|
||||
|
||||
@@ -109,7 +109,7 @@ Do not default to subagent runtime for these requests.
|
||||
|
||||
## ACPX install and version policy (direct acpx path)
|
||||
|
||||
For this repo, direct `acpx` calls must follow the same pinned policy as the `@openclaw/acpx-plugin` extension package.
|
||||
For this repo, direct `acpx` calls must follow the same pinned policy as the `@openclaw/acpx` extension package.
|
||||
|
||||
1. Prefer plugin-local binary, not global PATH:
|
||||
- `./extensions/acpx/node_modules/.bin/acpx`
|
||||
|
||||
@@ -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