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

Function readWriterInfo

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

Source from the content-addressed store, hash-verified

1063});
1064
1065function readWriterInfo(root: string): { pid: number; mode: string } | null {
1066 try {
1067 const info = JSON.parse(fs.readFileSync(path.join(root, '.codegraph', 'writer.pid'), 'utf8'));
1068 return typeof info.pid === 'number' && typeof info.mode === 'string' ? info : null;
1069 } catch { return null; }
1070}

Callers 1

mcp-daemon.test.tsFile · 0.85

Calls 2

parseMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected