MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / normalizeTaskPath

Method normalizeTaskPath

src/api/TaskNotesAPI.ts:2678–2687  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

2676 }
2677
2678 private normalizeTaskPath(path: string): string {
2679 if (typeof path !== "string" || path.trim().length === 0) {
2680 throw new TaskNotesApiError(
2681 "invalid_task_path",
2682 "TaskNotes API expects a non-empty task path",
2683 { status: 400 }
2684 );
2685 }
2686 return normalizePath(path);
2687 }
2688
2689 private async withMutationContext<T>(
2690 paths: string[],

Callers 2

getTaskMethod · 0.95
requireTaskMethod · 0.95

Calls 1

normalizePathFunction · 0.90

Tested by

no test coverage detected