()
| 98 | } |
| 99 | |
| 100 | function autoDecidedEvents(): Array<Record<string, unknown>> { |
| 101 | const f = path.join(stateRoot, 'projects', cwdSlug, 'question-log.jsonl'); |
| 102 | if (!fs.existsSync(f)) return []; |
| 103 | return fs |
| 104 | .readFileSync(f, 'utf-8') |
| 105 | .trim() |
| 106 | .split('\n') |
| 107 | .filter(Boolean) |
| 108 | .map((l) => JSON.parse(l)) |
| 109 | .filter((e) => e.source === 'auto-decided'); |
| 110 | } |
| 111 | |
| 112 | // ---------------------------------------------------------------------- |
| 113 | // Defer paths |
no outgoing calls
no test coverage detected