MCPcopy Create free account
hub / github.com/SethGammon/Citadel / readState

Function readState

scripts/test-telemetry-otlp.js:78–82  ·  view source on GitHub ↗
(tmpRoot)

Source from the content-addressed store, hash-verified

76}
77
78function readState(tmpRoot) {
79 const stateFile = path.join(tmpRoot, '.planning', 'telemetry', 'otlp-export-state.json');
80 if (!fs.existsSync(stateFile)) return null;
81 return fs.readFileSync(stateFile, 'utf8');
82}
83
84async function main() {
85 const tmpRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-otlp-test-'));

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected