(paths: DecisionPaths)
| 242 | |
| 243 | /** Recompute active from the event log and refresh the snapshot. Returns active. */ |
| 244 | export function rebuildSnapshot(paths: DecisionPaths): ActiveDecision[] { |
| 245 | const active = computeActive(readEvents(paths)); |
| 246 | writeSnapshot(paths, active); |
| 247 | return active; |
| 248 | } |
| 249 | |
| 250 | export interface CompactResult { |
| 251 | activeCount: number; |
no test coverage detected