({
skill
}: Partial<Input>, {
commands
}: {
commands?: Command[];
})
| 45 | </MessageResponse>; |
| 46 | } |
| 47 | export function renderToolUseMessage({ |
| 48 | skill |
| 49 | }: Partial<Input>, { |
| 50 | commands |
| 51 | }: { |
| 52 | commands?: Command[]; |
| 53 | }): React.ReactNode { |
| 54 | if (!skill) { |
| 55 | return null; |
| 56 | } |
| 57 | // Look up the command to check if it came from the legacy /commands folder |
| 58 | const command = commands?.find(c => c.name === skill); |
| 59 | const displayName = command?.loadedFrom === 'commands_DEPRECATED' ? `/${skill}` : skill; |
| 60 | return displayName; |
| 61 | } |
| 62 | export function renderToolUseProgressMessage(progressMessages: ProgressMessage<Progress>[], { |
| 63 | tools, |
| 64 | verbose |
nothing calls this directly
no outgoing calls
no test coverage detected