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

Method getTimeSummary

src/api/TaskNotesAPI.ts:1694–1708  ·  view source on GitHub ↗
(
		options: TaskNotesRuntimeTimeSummaryOptions = {}
	)

Source from the content-addressed store, hash-verified

1692 }
1693
1694 private async getTimeSummary(
1695 options: TaskNotesRuntimeTimeSummaryOptions = {}
1696 ): Promise<TaskNotesRuntimeTimeSummary> {
1697 const allTasks = await this.plugin.cacheManager.getAllTasks();
1698 return computeTimeSummary(
1699 allTasks,
1700 {
1701 period: options.period ?? "today",
1702 fromDate: coerceDateOption(options.from),
1703 toDate: coerceDateOption(options.to),
1704 includeTags: options.includeTags ?? true,
1705 },
1706 (status) => this.plugin.statusManager.isCompletedStatus(status)
1707 );
1708 }
1709
1710 private async getTaskTimeData(path: string): Promise<TaskNotesRuntimeTaskTimeData> {
1711 const task = await this.requireTask(path);

Callers 1

TaskNotesAPIClass · 0.95

Calls 4

computeTimeSummaryFunction · 0.90
coerceDateOptionFunction · 0.85
isCompletedStatusMethod · 0.65
getAllTasksMethod · 0.45

Tested by

no test coverage detected