()
| 775 | /** Consume the post-compaction flag. Returns true once after compaction, |
| 776 | * then returns false until the next compaction. */ |
| 777 | export function consumePostCompaction(): boolean { |
| 778 | const was = STATE.pendingPostCompaction |
| 779 | STATE.pendingPostCompaction = false |
| 780 | return was |
| 781 | } |
| 782 | |
| 783 | export function getLastInteractionTime(): number { |
| 784 | return STATE.lastInteractionTime |