MCPcopy Create free account
hub / github.com/SethGammon/Citadel / dependencyStatus

Function dependencyStatus

core/fleet/session.js:155–170  ·  view source on GitHub ↗
(task, taskMap)

Source from the content-addressed store, hash-verified

153 return map;
154}
155
156function dependencyStatus(task, taskMap) {
157 const blockers = [];
158 for (const dep of task.deps || []) {
159 const target = taskMap.get(String(dep));
160 if (!target) {
161 blockers.push({ dep: String(dep), status: 'missing', reason: 'dependency is not in the work queue' });
162 continue;
163 }
164
165 const status = normalizeStatus(target.status);
166 if (!SUCCESS_STATUSES.has(status)) {
167 blockers.push({ dep: String(dep), status, reason: 'dependency is not complete' });
168 }
169 }
170 return blockers;
171}
172
173function isRunnable(task, taskMap = null) {

Callers 2

isRunnableFunction · 0.85
getBlockedTasksFunction · 0.85

Calls 1

normalizeStatusFunction · 0.70

Tested by

no test coverage detected