(cwd: string, rel: string)
| 313 | } |
| 314 | |
| 315 | async function isNewFile(cwd: string, rel: string): Promise<boolean> { |
| 316 | try { await fs.stat(path.join(cwd, rel)); return false; } catch { return true; } |
| 317 | } |
| 318 | |
| 319 | /** Walk project source files (bounded), skipping heavy/ignored dirs. */ |
| 320 | async function walkProjectSource(root: string, cap: number): Promise<Array<{ rel: string; content: string }>> { |