MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / getBlockingTaskPaths

Method getBlockingTaskPaths

src/utils/DependencyCache.ts:604–619  ·  view source on GitHub ↗

* Get blocking task paths (tasks this task depends on)

(taskPath: string)

Source from the content-addressed store, hash-verified

602 * Get blocking task paths (tasks this task depends on)
603 */
604 getBlockingTaskPaths(taskPath: string): string[] {
605 if (!this.indexesBuilt) {
606 tasknotesLogger.warn(
607 "DependencyCache: getBlockingTaskPaths called before indexes built, building now...",
608 {
609 category: "stale-data",
610 operation:
611 "dependencycache-getblockingtaskpaths-called-indexes-built-building-now",
612 }
613 );
614 // Build synchronously by reading current state
615 this.buildIndexesSync();
616 }
617 const blocking = this.dependencySources.get(taskPath);
618 return blocking ? Array.from(blocking) : [];
619 }
620
621 /**
622 * Get blocked task paths (tasks that depend on this task)

Callers

nothing calls this directly

Calls 3

buildIndexesSyncMethod · 0.95
warnMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected