MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / loadManifest

Function loadManifest

src/git/shadow.ts:33–40  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

31}
32
33async function loadManifest(rootDir: string): Promise<RestorePoint[]> {
34 const manifestPath = join(rootDir, DATA_DIR, "restore-points.json");
35 try {
36 return JSON.parse(await readFile(manifestPath, "utf-8"));
37 } catch {
38 return [];
39 }
40}
41
42async function saveManifest(rootDir: string, points: RestorePoint[]): Promise<void> {
43 const dataPath = await ensureDataDir(rootDir);

Callers 3

createRestorePointFunction · 0.85
restorePointFunction · 0.85
listRestorePointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected