(
tool: { name: string; aliases?: string[] },
name: string,
)
| 356 | * Checks if a tool matches the given name (primary name or alias). |
| 357 | */ |
| 358 | export function toolMatchesName( |
| 359 | tool: { name: string; aliases?: string[] }, |
| 360 | name: string, |
| 361 | ): boolean { |
| 362 | return tool.name === name || (tool.aliases?.includes(name) ?? false) |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Finds a tool by name or alias from a list of tools. |
no outgoing calls
no test coverage detected