(tools: ToolDefinition[])
| 30 | } |
| 31 | |
| 32 | function createCatalog(tools: ToolDefinition[]): ToolCatalog { |
| 33 | return { |
| 34 | tools, |
| 35 | getByCliName: (name) => tools.find((tool) => tool.cliName === name) ?? null, |
| 36 | getByMcpName: (name) => tools.find((tool) => tool.mcpName === name) ?? null, |
| 37 | getByToolId: (toolId) => tools.find((tool) => tool.id === toolId) ?? null, |
| 38 | resolve: (input) => { |
| 39 | const tool = tools.find((candidate) => candidate.cliName === input); |
| 40 | return tool ? { tool } : { notFound: true }; |
| 41 | }, |
| 42 | }; |
| 43 | } |
| 44 | |
| 45 | const baseRuntimeConfig: ResolvedRuntimeConfig = { |
| 46 | enabledWorkflows: [], |
no outgoing calls
no test coverage detected