(root: string)
| 162 | } |
| 163 | |
| 164 | function readDaemonLog(root: string): string { |
| 165 | try { return fs.readFileSync(path.join(root, '.codegraph', 'daemon.log'), 'utf8'); } |
| 166 | catch { return ''; } |
| 167 | } |
| 168 | |
| 169 | function countListeningLines(root: string): number { |
| 170 | return readDaemonLog(root).split('\n').filter((l) => l.includes('[CodeGraph daemon] Listening on')).length; |
no test coverage detected