(input: Partial<{
description: string;
prompt: string;
subagent_type: string;
}> | undefined)
| 774 | return 'Agent'; |
| 775 | } |
| 776 | export 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 | } |
| 788 | export 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>(); |
no test coverage detected