(score: number | undefined)
| 50 | * Uses MCP reputation thresholds: >=7 High, >=4 Medium, <4 Low. |
| 51 | */ |
| 52 | export function formatTrust(score: number | undefined): string { |
| 53 | if (score === undefined || score < 0) return pc.dim("-"); |
| 54 | if (score >= 7) return pc.green("High"); |
| 55 | if (score >= 4) return pc.yellow("Medium"); |
| 56 | return pc.red("Low"); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Returns the raw trust label string (uncolored) for width calculations. |
no outgoing calls
no test coverage detected