(name: string, custom?: string)
| 27 | } |
| 28 | |
| 29 | export function agentColor(name: string, custom?: string) { |
| 30 | if (custom) return custom |
| 31 | return defaults[name] ?? defaults[name.toLowerCase()] ?? tone(name.toLowerCase()) |
| 32 | } |
| 33 | |
| 34 | export function messageAgentColor( |
| 35 | list: readonly { role: string; agent?: string }[] | undefined, |
no test coverage detected