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

Function getActiveSession

tests/unit/utils/timeTrackingUtils.test.ts:118–126  ·  view source on GitHub ↗
(task: TaskInfo)

Source from the content-addressed store, hash-verified

116 ];
117
118 const getActiveSession = (task: TaskInfo): TimeEntry | null => {
119 if (task.path === '/tasks/1.md') {
120 return { startTime: tenMinutesAgo };
121 }
122 if (task.path === '/tasks/2.md') {
123 return { startTime: twentyMinutesAgo };
124 }
125 return null;
126 };
127
128 const result = computeActiveTimeSessions(tasks, getActiveSession);
129

Callers 2

computeTaskTimeDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected