mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:00:44 +00:00
fix(plugins): clean up plugins search output formatting (#76000)
This commit is contained in:
@@ -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}`)}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user