(rel: string, content: string)
| 75 | async function indexShapes(implementations: string[], testDoubles: string[] = []): Promise<ToolHandler> { |
| 76 | dir = fs.mkdtempSync(path.join(os.tmpdir(), 'explore-synth-links-')); |
| 77 | const write = (rel: string, content: string) => { |
| 78 | fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true }); |
| 79 | fs.writeFileSync(path.join(dir, rel), content); |
| 80 | }; |
| 81 | write('shape.ts', 'export interface Shape {\n area(): number;\n}\n'); |
| 82 | write('scale.ts', 'export function scale(n: number): number {\n return n * 2;\n}\n'); |
| 83 | write( |
no test coverage detected