diff --git a/src/cli/plugins-cli.install.test.ts b/src/cli/plugins-cli.install.test.ts index d6188fd3cd9..142d3014ce1 100644 --- a/src/cli/plugins-cli.install.test.ts +++ b/src/cli/plugins-cli.install.test.ts @@ -7,6 +7,7 @@ import type { OpenClawConfig } from "../config/config.js"; import { applyExclusiveSlotSelection, buildPluginDiagnosticsReport, + buildPluginSnapshotReport, clearPluginManifestRegistryCache, enablePluginInConfig, installHooksFromNpmSpec, @@ -363,7 +364,7 @@ describe("plugins cli install", () => { marketplacePlugin: "alpha", }); enablePluginInConfig.mockReturnValue({ config: enabledCfg }); - buildPluginDiagnosticsReport.mockReturnValue({ + buildPluginSnapshotReport.mockReturnValue({ plugins: [{ id: "alpha", kind: "provider" }], diagnostics: [], }); diff --git a/src/cli/plugins-command-helpers.ts b/src/cli/plugins-command-helpers.ts index 8bc2a39b0da..ba2da008b87 100644 --- a/src/cli/plugins-command-helpers.ts +++ b/src/cli/plugins-command-helpers.ts @@ -2,7 +2,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js"; import { parseRegistryNpmSpec } from "../infra/npm-registry-spec.js"; import { CLAWHUB_INSTALL_ERROR_CODE } from "../plugins/clawhub.js"; import { applyExclusiveSlotSelection } from "../plugins/slots.js"; -import { buildPluginDiagnosticsReport } from "../plugins/status.js"; +import { buildPluginSnapshotReport } from "../plugins/status.js"; import { defaultRuntime } from "../runtime.js"; import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js"; import { theme } from "../terminal/theme.js"; @@ -39,7 +39,7 @@ export function applySlotSelectionForPlugin( config: OpenClawConfig, pluginId: string, ): { config: OpenClawConfig; warnings: string[] } { - const report = buildPluginDiagnosticsReport({ config }); + const report = buildPluginSnapshotReport({ config }); const plugin = report.plugins.find((entry) => entry.id === pluginId); if (!plugin) { return { config, warnings: [] };