MCPcopy
hub / github.com/callumalpass/tasknotes / uniqueTasks

Function uniqueTasks

src/api/TaskNotesAPI.ts:3347–3356  ·  view source on GitHub ↗
(tasks: TaskInfo[])

Source from the content-addressed store, hash-verified

3345}
3346
3347function uniqueTasks(tasks: TaskInfo[]): TaskInfo[] {
3348 const seen = new Set<string>();
3349 const unique: TaskInfo[] = [];
3350 for (const task of tasks) {
3351 if (seen.has(task.path)) continue;
3352 seen.add(task.path);
3353 unique.push(task);
3354 }
3355 return unique;
3356}
3357
3358function copyTaskDependency(dependency: TaskDependency): TaskDependency {
3359 return { ...dependency };

Callers 3

getParentTasksMethod · 0.85
getSubtasksMethod · 0.85
getBlockingTasksMethod · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected