(repoPath: string, files: Record<string, string>, name: string)
| 45 | } |
| 46 | |
| 47 | function getTool(repoPath: string, files: Record<string, string>, name: string) { |
| 48 | const tools = buildSshToolSpecs(createSession(files), repoPath) |
| 49 | const tool = tools.find((t) => t.name === name) |
| 50 | if (!tool) throw new Error(`tool not found: ${name}`) |
| 51 | return tool |
| 52 | } |
| 53 | |
| 54 | describe('buildSshToolSpecs', () => { |
| 55 | beforeEach(() => { |
no test coverage detected