Whether `CODEGRAPH_NO_DAEMON` was set to a truthy value.
()
| 234 | |
| 235 | /** Whether `CODEGRAPH_NO_DAEMON` was set to a truthy value. */ |
| 236 | function daemonOptOutSet(): boolean { |
| 237 | const raw = process.env.CODEGRAPH_NO_DAEMON; |
| 238 | if (!raw) return false; |
| 239 | return raw !== '0' && raw.toLowerCase() !== 'false'; |
| 240 | } |
| 241 | |
| 242 | /** Whether this process was spawned to BE the detached daemon. */ |
| 243 | function daemonInternalSet(): boolean { |