MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / readDaemonLog

Function readDaemonLog

__tests__/mcp-daemon.test.ts:155–158  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

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

Callers 2

countListeningLinesFunction · 0.85
mcp-daemon.test.tsFile · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected