(tmpRoot)
| 76 | } |
| 77 | |
| 78 | function 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 | |
| 84 | async function main() { |
| 85 | const tmpRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-otlp-test-')); |