(overrides: Partial<ToolDefinition> = {})
| 9 | import * as simulatorResolver from '../../utils/simulator-resolver.ts'; |
| 10 | |
| 11 | function createTool(overrides: Partial<ToolDefinition> = {}): ToolDefinition { |
| 12 | return { |
| 13 | cliName: 'run-tool', |
| 14 | mcpName: 'run_tool', |
| 15 | workflow: 'simulator', |
| 16 | description: 'Run test tool', |
| 17 | annotations: { readOnlyHint: true }, |
| 18 | cliSchema: { |
| 19 | workspacePath: z.string().describe('Workspace path'), |
| 20 | scheme: z.string().optional(), |
| 21 | }, |
| 22 | mcpSchema: { |
| 23 | workspacePath: z.string().describe('Workspace path'), |
| 24 | scheme: z.string().optional(), |
| 25 | }, |
| 26 | stateful: false, |
| 27 | handler: vi.fn(async () => {}) as ToolDefinition['handler'], |
| 28 | ...overrides, |
| 29 | }; |
| 30 | } |
| 31 | |
| 32 | function createCatalog(tools: ToolDefinition[]): ToolCatalog { |
| 33 | return { |
no outgoing calls
no test coverage detected