()
| 50 | // ── State management ───────────────────────────────────────────────────────── |
| 51 | |
| 52 | function readState() { |
| 53 | try { |
| 54 | if (!fs.existsSync(STATE_FILE)) return null; |
| 55 | return JSON.parse(fs.readFileSync(STATE_FILE, 'utf8')); |
| 56 | } catch { return null; } |
| 57 | } |
| 58 | |
| 59 | function writeState(state) { |
| 60 | try { |
no outgoing calls
no test coverage detected