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

Function pluginGetActiveSession

src/cli/helpers/timeTracking.ts:8–10  ·  view source on GitHub ↗
(task: TaskInfo)

Source from the content-addressed store, hash-verified

6}
7
8function pluginGetActiveSession(task: TaskInfo) {
9 return task.timeEntries?.find((entry) => !entry.endTime) ?? null;
10}
11
12export async function startTimeTrackingForTask(
13 plugin: TaskNotesPlugin,

Callers 2

getLatestActiveEntryFunction · 0.85
formatTimeTrackingResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected