MCPcopy Create free account
hub / github.com/cortexkit/magic-context / cacheRoots

Function cacheRoots

packages/cli/src/commands/doctor-pi.ts:342–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340}
341
342function cacheRoots(): string[] {
343 const home = homedir();
344 const cacheHome = process.env.XDG_CACHE_HOME || join(home, ".cache");
345 return [
346 join(home, ".pi", "cache", "extensions"),
347 join(home, ".pi", "cache", "packages"),
348 join(cacheHome, "pi", "extensions"),
349 join(cacheHome, "pi", "packages"),
350 join(getPiAgentConfigDir(), "cache", "extensions"),
351 ];
352}
353
354function findPiMagicContextCacheDirs(
355 self: string,

Callers 1

Calls 1

getPiAgentConfigDirFunction · 0.90

Tested by

no test coverage detected