MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / shouldWrite

Function shouldWrite

packages/codex-native-api/src/sequenced_stderr.ts:7–9  ·  view source on GitHub ↗
(envVar: string | null | undefined)

Source from the content-addressed store, hash-verified

5};
6
7function shouldWrite(envVar: string | null | undefined): boolean {
8 return !envVar || process.env[envVar] === '1';
9}
10
11function nextSequence(): number {
12 globalLogSequence += 1;

Callers 2

writeSequencedStderrLineFunction · 0.70
writeSequencedDebugLogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected