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

Function readWriterInfo

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

Source from the content-addressed store, hash-verified

1124});
1125
1126function readWriterInfo(root: string): { pid: number; mode: string } | null {
1127 try {
1128 const info = JSON.parse(fs.readFileSync(path.join(root, '.codegraph', 'writer.pid'), 'utf8'));
1129 return typeof info.pid === 'number' && typeof info.mode === 'string' ? info : null;
1130 } catch { return null; }
1131}

Callers 1

mcp-daemon.test.tsFile · 0.85

Calls 2

parseMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected