()
| 791 | /** Consume the post-compaction flag. Returns true once after compaction, |
| 792 | * then returns false until the next compaction. */ |
| 793 | export function consumePostCompaction(): boolean { |
| 794 | const was = STATE.pendingPostCompaction |
| 795 | STATE.pendingPostCompaction = false |
| 796 | return was |
| 797 | } |
| 798 | |
| 799 | export function getLastInteractionTime(): number { |
| 800 | return STATE.lastInteractionTime |