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

Function tone

packages/session-ui/src/components/message-part.tsx:388–392  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

386]
387
388function tone(name: string) {
389 let hash = 0
390 for (const char of name) hash = (hash * 31 + char.charCodeAt(0)) >>> 0
391 return agentPalette[hash % agentPalette.length]
392}
393
394function taskAgent(
395 raw: unknown,

Callers 2

taskAgentFunction · 0.70
triggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected