(toolName: string)
| 62 | * @returns The actual tool ID in the registry, or the original name if not found |
| 63 | */ |
| 64 | export function resolveToolId(toolName: string): string { |
| 65 | if (tools[toolName]) { |
| 66 | return toolName |
| 67 | } |
| 68 | |
| 69 | const latestTools = getLatestVersionTools(tools) |
| 70 | for (const toolId of Object.keys(latestTools)) { |
| 71 | if (stripVersionSuffix(toolId) === toolName) { |
| 72 | return toolId |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | return toolName |
| 77 | } |
| 78 | |
| 79 | export interface RequestParams { |
| 80 | url: string |
no test coverage detected