( files: MemoryFileInfo[], readFileState: FileStateCache, )
| 1631 | * - readFileState paths matching memory patterns (includes child directories) |
| 1632 | */ |
| 1633 | export function getAllMemoryFilePaths( |
| 1634 | files: MemoryFileInfo[], |
| 1635 | readFileState: FileStateCache, |
| 1636 | ): string[] { |
| 1637 | const paths = new Set<string>() |
| 1638 | for (const file of files) { |
| 1639 | if (file.content.trim().length > 0) { |
| 1640 | paths.add(file.path) |
| 1641 | } |
| 1642 | } |
| 1643 | |
| 1644 | // Add memory files from readFileState (includes child directories) |
| 1645 | for (const filePath of cacheKeys(readFileState)) { |
| 1646 | if (isMemoryFilePath(filePath)) { |
| 1647 | paths.add(filePath) |
| 1648 | } |
| 1649 | } |
| 1650 | |
| 1651 | return Array.from(paths) |
| 1652 | } |
nothing calls this directly
no test coverage detected