Skip to content

The agent that grows with you

fix(plugin-catalog): CLI, dashboard and Desktop tell verified apart

Teknium27141aa0e4b8
diff --git a/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx b/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
index ccee0360b12..2c582e7fee3 100644
--- a/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
+++ b/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
@@ -23,7 +23,7 @@ import type { ProfileScope } from '@/hermes'
import { useI18n } from '@/i18n'
import { DESKTOP_PLUGIN_TOOLSETS } from '@/lib/desktop-toolsets'
import { triggerHaptic } from '@/lib/haptics'
-import { FolderOpen, Loader2, Monitor, Package, RefreshCw, Trash2 } from '@/lib/icons'
+import { CheckCircle2, FolderOpen, Loader2, Monitor, Package, RefreshCw, Trash2 } from '@/lib/icons'
import { CATALOG_ORIGIN, CATALOG_PICKER_URL } from '@/lib/plugin-catalog'
import { queryClient } from '@/lib/query-client'
import { cn } from '@/lib/utils'
@@ -178,6 +178,9 @@ function KindBadge({ kind }: { kind: PackageKind }) {
)
}
+// Official in the accent, verified green with a check, community stays neutral.
+const TIER_TONE: Record<string, 'muted' | 'primary' | 'success'> = { official: 'primary', verified: 'success' }
+
/** Provenance pill: where the package came from. */
function ProvenancePill({ pkg }: { pkg: PluginPackage }) {
const { t } = useI18n()
@@ -188,7 +191,10 @@ function ProvenancePill({ pkg }: { pkg: PluginPackage }) {
return (
<Tip label={p.catalogProvenance(pkg.agent.installed_sha?.slice(0, 8) ?? '')}>
<span>
- <Pill>{tierLabel[pkg.agent.catalog_tier as keyof typeof tierLabel] ?? tierLabel.community}</Pill>
+ <Pill tone={TIER_TONE[pkg.agent.catalog_tier ?? ''] ?? 'muted'}>
+ {pkg.agent.catalog_tier === 'verified' && <CheckCircle2 />}
+ {tierLabel[pkg.agent.catalog_tier as keyof typeof tierLabel] ?? tierLabel.community}
+ </Pill>
</span>
</Tip>
)
diff --git a/hermes_cli/plugins_cmd_catalog.py b/hermes_cli/plugins_cmd_catalog.py
index 2499b82b255..8ef022a0da8 100644
--- a/hermes_cli/plugins_cmd_catalog.py
+++ b/hermes_cli/plugins_cmd_catalog.py
@@ -19,7 +19,7 @@ from pathlib import Path
from typing import Any, Dict, List, NamedTuple, Optional
from hermes_cli.plugin_catalog import (
- PluginCatalogEntry, RemovedEntry, cached_removed_entries, entry_capability_summary, filter_entries,
+ CATALOG_TIERS, PluginCatalogEntry, RemovedEntry, cached_removed_entries, entry_capability_summary, filter_entries,
find_removed, get_live_catalog_entry, load_catalog_live, match_removed, resolved_removed_entries,
_NAME_RE, _normalize_repo,
)
@@ -721,8 +721,10 @@ def _render_entries(entries: list[PluginCatalogEntry], console) -> None:
from hermes_cli.plugins_cmd import _table
table = _table(((("Name", "bold")), ("Category", None), ("Tier", None), ("Description", None),
("Pinned", "dim"), ("Capabilities", "dim")), title="Hermes Plugin Catalog (curated)")
- for e in sorted(entries, key=lambda e: (e.category, e.tier != "official", e.name)):
- tier = "[cyan]official[/cyan]" if e.tier == "official" else "[magenta]community[/magenta]"
+ rank = {name: i for i, name in enumerate(CATALOG_TIERS)}
+ style = {"official": "cyan", "verified": "green", "community": "magenta"}
+ for e in sorted(entries, key=lambda e: (e.category, rank.get(e.tier, len(rank)), e.name)):
+ tier = f"[{style.get(e.tier, 'magenta')}]{e.tier}[/{style.get(e.tier, 'magenta')}]"
desc = e.description if len(e.description) <= 60 else e.description[:57] + "..."
table.add_row(e.name, e.category, tier, desc, pin_label(e), _capability_counts(e))
console.print()
diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts
index bbbe495f827..6aaac41b8e2 100644
--- a/web/src/lib/api.ts
+++ b/web/src/lib/api.ts
@@ -2767,7 +2767,7 @@ export interface CatalogEntry {
repo: string;
sha: string;
sha_short: string;
- tier: "official" | "community";
+ tier: "official" | "verified" | "community";
maintainer: string;
requires_hermes: string;
platforms: string[];