MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / suggestNextScopes

Function suggestNextScopes

src/cli/maintain-stats.ts:55–58  ·  view source on GitHub ↗
(stats: MaintainStats, allScopes: readonly string[])

Source from the content-addressed store, hash-verified

53
54/** Suggest scopes that haven't run yet (so the dashboard can nudge what to schedule next). PURE. */
55export 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. */

Callers 2

recommendNextScopeFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected