()
| 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 }> { |
no test coverage detected