MCPcopy Create free account
hub / github.com/cursor/plugins / canMakeProgress

Function canMakeProgress

orchestrate/skills/orchestrate/scripts/core/loop.ts:157–163  ·  view source on GitHub ↗

* Progress is possible iff some task is running OR at least one pending task * could still have its deps satisfied (deps are all non-terminal or * already handed-off).

(mgr: AgentManager)

Source from the content-addressed store, hash-verified

155 * already handed-off).
156 */
157function canMakeProgress(mgr: AgentManager): boolean {
158 return mgr.tasks.some(
159 s =>
160 s.status === "running" ||
161 (s.status === "pending" && pendingCouldStillSpawn(mgr, s))
162 );
163}
164
165function pendingCouldStillSpawn(mgr: AgentManager, task: TaskState): boolean {
166 // Ad-hoc tasks (not in plan.tasks) are never spawned by the reconcile

Callers 1

runOrchestrateLoopFunction · 0.85

Calls 1

pendingCouldStillSpawnFunction · 0.85

Tested by

no test coverage detected