()
| 77 | } |
| 78 | |
| 79 | function readImportedEvents(): Array<Record<string, unknown>> { |
| 80 | const f = path.join(stateRoot, 'projects', cwdSlug, 'question-log.jsonl'); |
| 81 | if (!fs.existsSync(f)) return []; |
| 82 | return fs |
| 83 | .readFileSync(f, 'utf-8') |
| 84 | .trim() |
| 85 | .split('\n') |
| 86 | .filter(Boolean) |
| 87 | .map((l) => JSON.parse(l)); |
| 88 | } |
| 89 | |
| 90 | // ---------------------------------------------------------------------- |
| 91 | // Marker-first path |
no outgoing calls
no test coverage detected