(args: any)
| 113 | // =================== TOOL IMPLEMENTATIONS =================== |
| 114 | |
| 115 | async function toolScan(args: any): Promise<string> { |
| 116 | const result = await getScanResult(args.directory); |
| 117 | const outputContent = await writeOutput(result, resolve(cachedRoot!, ".codesight")); |
| 118 | return outputContent.replace(/Saves ~\d[\d,]* tokens/, `Saves ~${result.tokenStats.saved.toLocaleString()} tokens`); |
| 119 | } |
| 120 | |
| 121 | async function toolGetRoutes(args: any): Promise<string> { |
| 122 | const result = await getScanResult(args.directory); |
nothing calls this directly
no test coverage detected