// Visual identity for each internal agent role, styled as department tags on // a production call sheet. Research and QA share a color because they map to // the same real-world role on the backend (both log as "data_analyst"). export interface AgentMeta { label: string; // human-readable role name monogram: string; // 2-3 letter tag color: string; // tailwind classes for badge bg/text/border } const AGENT_META: Record = { brief_intake: { label: "Brief", monogram: "IN", color: "bg-chalk-dim/10 text-chalk-dim border-chalk-dim/40", }, creative_research: { label: "Research", monogram: "EV", color: "bg-viewfinder/10 text-viewfinder border-viewfinder/40", }, // Live web research, as opposed to creative_research's first-party evidence. // Both log as "data_analyst"; the internal name is what distinguishes them. trend_research: { label: "Trend research", monogram: "TR", color: "bg-gaffer/10 text-gaffer border-gaffer/40", }, creative_strategist: { label: "Strategy", monogram: "ST", color: "bg-gaffer/10 text-gaffer border-gaffer/40", }, script_generator: { label: "Copywriting", monogram: "SC", color: "bg-clay/10 text-clay border-clay/40", }, visual_director: { label: "Visual direction", monogram: "VD", color: "bg-print/10 text-print border-print/40", }, creative_qa: { label: "Quality review", monogram: "QA", color: "bg-viewfinder/10 text-viewfinder border-viewfinder/40", }, // Not an agent: a person editing the candidate by hand. Version rows for a // manual edit or a re-score are logged under this name. human_editor: { label: "Manual edit", monogram: "YOU", color: "bg-clay/10 text-clay border-clay/40", }, // The on-demand QA repair, as distinct from the pipeline's own revision loop. targeted_reviser: { label: "QA fix", monogram: "FIX", color: "bg-gaffer/10 text-gaffer border-gaffer/40", }, workflow_orchestrator: { label: "Orchestrator", monogram: "OR", color: "bg-chalk/10 text-chalk border-chalk/40", }, }; const DEFAULT_META: AgentMeta = { label: "Agent", monogram: "?", color: "bg-chalk-dim/10 text-chalk-dim border-chalk-dim/40", }; export function getAgentMeta(internalAgent: string | undefined): AgentMeta { if (!internalAgent) return DEFAULT_META; return AGENT_META[internalAgent] ?? DEFAULT_META; }