( files: MemoryFileInfo[], readFileState: FileStateCache, )
| 1455 | * - readFileState paths matching memory patterns (includes child directories) |
| 1456 | */ |
| 1457 | export function getAllMemoryFilePaths( |
| 1458 | files: MemoryFileInfo[], |
| 1459 | readFileState: FileStateCache, |
| 1460 | ): string[] { |
| 1461 | const paths = new Set<string>() |
| 1462 | for (const file of files) { |
| 1463 | if (file.content.trim().length > 0) { |
| 1464 | paths.add(file.path) |
| 1465 | } |
| 1466 | } |
| 1467 | |
| 1468 | // Add memory files from readFileState (includes child directories) |
| 1469 | for (const filePath of cacheKeys(readFileState)) { |
| 1470 | if (isMemoryFilePath(filePath)) { |
| 1471 | paths.add(filePath) |
| 1472 | } |
| 1473 | } |
| 1474 | |
| 1475 | return Array.from(paths) |
| 1476 | } |
nothing calls this directly
no test coverage detected