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

Function daemonLock

__tests__/daemon-older-version.test.ts:493–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

491 const attachedLine = (session: Session): string | undefined =>
492 session.stderr.find((l) => l.includes('Attached to shared daemon'));
493 const daemonLock = (): any => readJson(path.join(realRoot, '.codegraph', 'daemon.pid'));
494 const writerLock = (): any => readJson(path.join(realRoot, '.codegraph', 'writer.pid'));
495 const daemonLog = (): string => {
496 try { return fs.readFileSync(path.join(realRoot, '.codegraph', 'daemon.log'), 'utf8'); } catch { return ''; }

Callers 2

sessionWithDaemonFunction · 0.85

Calls 2

readJsonFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected