import { cn } from "@/lib/utils"; const TONES = ["bg-sky-500/20 text-sky-300", "bg-emerald-500/20 text-emerald-300", "bg-amber-500/20 text-amber-300", "bg-fuchsia-500/20 text-fuchsia-300", "bg-rose-500/20 text-rose-300", "bg-violet-500/20 text-violet-300", "bg-teal-500/20 text-teal-300", "bg-orange-500/20 text-orange-300"]; /** PEP-75: an agent persona — a round initial in its own colour and the name. */ export function AgentBadge({ name, className, large = false }: { name: string; className?: string; large?: boolean }) { const tone = TONES[[...name].reduce((a, c) => a + c.codePointAt(0)!, 0) % TONES.length]; return ( {[...name][0]} {name} ); }