MCPcopy Index your code
hub / github.com/codeaashu/claude-code / userFacingNameBackgroundColor

Function userFacingNameBackgroundColor

src/tools/AgentTool/UI.tsx:776–787  ·  view source on GitHub ↗
(input: Partial<{
  description: string;
  prompt: string;
  subagent_type: string;
}> | undefined)

Source from the content-addressed store, hash-verified

774 return 'Agent';
775}
776export function userFacingNameBackgroundColor(input: Partial<{
777 description: string;
778 prompt: string;
779 subagent_type: string;
780}> | undefined): keyof Theme | undefined {
781 if (!input?.subagent_type) {
782 return undefined;
783 }
784
785 // Get the color for this agent
786 return getAgentColor(input.subagent_type) as keyof Theme | undefined;
787}
788export function extractLastToolInfo(progressMessages: ProgressMessage<Progress>[], tools: Tools): string | null {
789 // Build tool_use lookup from all progress messages (needed for reverse iteration)
790 const toolUseByID = new Map<string, ToolUseBlockParam>();

Callers 1

Calls 1

getAgentColorFunction · 0.85

Tested by

no test coverage detected