(root: string)
| 153 | } |
| 154 | |
| 155 | function readDaemonLog(root: string): string { |
| 156 | try { return fs.readFileSync(path.join(root, '.codegraph', 'daemon.log'), 'utf8'); } |
| 157 | catch { return ''; } |
| 158 | } |
| 159 | |
| 160 | function countListeningLines(root: string): number { |
| 161 | return readDaemonLog(root).split('\n').filter((l) => l.includes('[CodeGraph daemon] Listening on')).length; |
no test coverage detected