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

Function formatTimeTrackingResult

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

Source from the content-addressed store, hash-verified

56}
57
58export function formatTimeTrackingResult(task: TaskInfo): Record<string, unknown> {
59 const activeEntry = pluginGetActiveSession(task);
60
61 return {
62 title: task.title,
63 path: task.path,
64 status: task.status,
65 priority: task.priority,
66 activeTimeEntry: activeEntry
67 ? {
68 startTime: activeEntry.startTime,
69 description: activeEntry.description,
70 }
71 : null,
72 totalTimeEntries: task.timeEntries?.length ?? 0,
73 };
74}

Callers 2

handlerFunction · 0.90
handlerFunction · 0.90

Calls 1

pluginGetActiveSessionFunction · 0.85

Tested by

no test coverage detected