(root: string, rel: string, body: string)
| 21 | const MAX_OUTPUT_LENGTH = 15000; |
| 22 | |
| 23 | function write(root: string, rel: string, body: string): void { |
| 24 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 25 | fs.writeFileSync(path.join(root, rel), body); |
| 26 | } |
| 27 | |
| 28 | async function indexed(root: string): Promise<{ cg: CodeGraph; handler: ToolHandler }> { |
| 29 | const cg = CodeGraph.initSync(root); |
no test coverage detected