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

Function createContext

tests/unit/modals/taskModalProjects.test.ts:19–28  ·  view source on GitHub ↗
(
	files: TFile[] = [],
	resolved: Record<string, TFile | undefined> = {}
)

Source from the content-addressed store, hash-verified

17}
18
19function createContext(
20 files: TFile[] = [],
21 resolved: Record<string, TFile | undefined> = {}
22): TaskModalProjectStringContext {
23 return {
24 sourcePath: "Tasks/current.md",
25 getMarkdownFiles: () => files,
26 resolveLink: (linkPath) => resolved[linkPath],
27 };
28}
29
30function createApp(files: Record<string, TFile> = {}): any {
31 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected