(
tool: { name: string; aliases?: string[] },
name: string,
)
| 347 | * Checks if a tool matches the given name (primary name or alias). |
| 348 | */ |
| 349 | export function toolMatchesName( |
| 350 | tool: { name: string; aliases?: string[] }, |
| 351 | name: string, |
| 352 | ): boolean { |
| 353 | return tool.name === name || (tool.aliases?.includes(name) ?? false) |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Finds a tool by name or alias from a list of tools. |
no outgoing calls
no test coverage detected