fix(plugins): clean up plugins search output formatting (#76000)

This commit is contained in:
Dallin Romney
2026-05-03 17:30:03 +08:00
committed by GitHub
parent e02377f522
commit de88b379c9

View File

@@ -41,10 +41,10 @@ function formatPackageSearchLine(entry: ClawHubPackageSearchResult): string {
const flags = [
pkg.family,
pkg.channel,
pkg.isOfficial ? "official" : undefined,
pkg.isOfficial && pkg.channel !== "official" ? "official" : undefined,
pkg.latestVersion ? `v${pkg.latestVersion}` : undefined,
].filter(Boolean);
const summary = pkg.summary ? ` ${theme.muted(pkg.summary)}` : "";
const summary = pkg.summary ? theme.muted(`${pkg.summary}`) : "";
return `${pkg.name} ${theme.muted(flags.join(" | "))}${summary}\n ${theme.muted(`Install: openclaw plugins install clawhub:${pkg.name}`)}`;
}