MCPcopy Create free account
hub / github.com/anomalyco/opencode / agentColor

Function agentColor

packages/app/src/utils/agent.ts:29–32  ·  view source on GitHub ↗
(name: string, custom?: string)

Source from the content-addressed store, hash-verified

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

Callers 1

messageAgentColorFunction · 0.85

Calls 1

toneFunction · 0.70

Tested by

no test coverage detected