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

Function readDaemonLog

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

Source from the content-addressed store, hash-verified

154}
155
156function readDaemonLog(root: string): string {
157 try { return fs.readFileSync(path.join(root, '.codegraph', 'daemon.log'), 'utf8'); }
158 catch { return ''; }
159}
160
161function countListeningLines(root: string): number {
162 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