MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / loadIndex

Function loadIndex

src/context/retrieval.ts:184–186  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

182}
183
184export async function loadIndex(p: string): Promise<Index | null> {
185 try { return JSON.parse(await fs.readFile(p, 'utf-8')); } catch { return null; }
186}
187
188export async function saveIndex(p: string, idx: Index): Promise<void> {
189 await fs.mkdir(path.dirname(p), { recursive: true });

Callers 2

executeMethod · 0.85
retrieveRelevantFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected