()
| 340 | } |
| 341 | |
| 342 | function 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 | |
| 354 | function findPiMagicContextCacheDirs( |
| 355 | self: string, |
no test coverage detected