(stats: MaintainStats, allScopes: readonly string[])
| 53 | |
| 54 | /** Suggest scopes that haven't run yet (so the dashboard can nudge what to schedule next). PURE. */ |
| 55 | export function suggestNextScopes(stats: MaintainStats, allScopes: readonly string[]): string[] { |
| 56 | const seen = new Set(stats.byScope.map(s => s.scope)); |
| 57 | return allScopes.filter(s => !seen.has(s)); |
| 58 | } |
| 59 | |
| 60 | /** Auto-recommend the next scope to run, with a reason. Prefers a never-run scope; else the scope |
| 61 | * blocking most often (a backlog it can't currently clear); else the least-used. PURE. */ |
no test coverage detected