(toolId: string, handler: ToolHandler)
| 18 | const handlerRegistry = new Map<string, ToolHandler>() |
| 19 | |
| 20 | export function registerHandler(toolId: string, handler: ToolHandler): void { |
| 21 | handlerRegistry.set(toolId, handler) |
| 22 | } |
| 23 | |
| 24 | export function registerHandlers(entries: Record<string, ToolHandler>): void { |
| 25 | for (const [toolId, handler] of Object.entries(entries)) { |