Skip to content

Commit 417660b

Browse files
committed
docs(plugins): explain catalog install trust
1 parent daefb5e commit 417660b

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/cli/plugins-cli.install.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,8 @@ describe("plugins cli install", () => {
10091009

10101010
await runPluginsCommand(["plugins", "install", "@wecom/wecom-openclaw-plugin@latest"]);
10111011

1012+
// Alternate selectors stay trusted by catalog package name, but must not
1013+
// inherit catalog integrity unless the install spec matches exactly.
10121014
expect(installPluginFromNpmSpec).toHaveBeenCalledWith(
10131015
expect.objectContaining({
10141016
spec: "@wecom/wecom-openclaw-plugin@latest",

src/cli/plugins-install-command.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ function findTrustedCatalogPackageInstall(packageName: string):
7171
expectedIntegrity?: string;
7272
}
7373
| undefined {
74+
// The catalog is the trust list. Raw npm selectors such as
75+
// @scope/pkg@latest inherit install-scan trust when their package name is
76+
// cataloged; integrity remains tied to exact catalog specs in the planner.
7477
const entry = getOfficialExternalPluginCatalogEntryForPackage(packageName);
7578
if (!entry) {
7679
return undefined;

0 commit comments

Comments
 (0)