()
| 27 | * Per-turn cost: one stat. |
| 28 | */ |
| 29 | export async function readLastConsolidatedAt(): Promise<number> { |
| 30 | try { |
| 31 | const s = await stat(lockPath()) |
| 32 | return s.mtimeMs |
| 33 | } catch { |
| 34 | return 0 |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Acquire: write PID → mtime = now. Returns the pre-acquire mtime |
no test coverage detected