()
| 98 | |
| 99 | /** Whether `CODEGRAPH_NO_DAEMON` was set to a truthy value. */ |
| 100 | export function daemonOptOutSet(): boolean { |
| 101 | const raw = process.env.CODEGRAPH_NO_DAEMON; |
| 102 | if (!raw) return false; |
| 103 | return raw !== '0' && raw.toLowerCase() !== 'false'; |
| 104 | } |
| 105 | |
| 106 | /** Absolute path to the daemon pid lockfile for `projectRoot`. */ |
| 107 | export function getDaemonPidPath(projectRoot: string): string { |
no outgoing calls
no test coverage detected