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

Function saveIndex

src/context/retrieval.ts:188–191  ·  view source on GitHub ↗
(p: string, idx: Index)

Source from the content-addressed store, hash-verified

186}
187
188export async function saveIndex(p: string, idx: Index): Promise<void> {
189 await fs.mkdir(path.dirname(p), { recursive: true });
190 await fs.writeFile(p, JSON.stringify(idx));
191}
192
193/**
194 * Persist an index in BOTH formats: the SQLite quantized store (preferred for

Callers 1

persistIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected