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

Function daemonLog

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

Source from the content-addressed store, hash-verified

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 ''; }
497 };
498
499 /** A session of `install` attached to a daemon of its own, which owns the project. */
500 async function sessionWithDaemon(install: string, version: string, env: NodeJS.ProcessEnv = {}): Promise<{ session: Session; pid: number }> {

Callers 2

statusFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected