MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAllMemoryFilePaths

Function getAllMemoryFilePaths

src/utils/claudemd.ts:1633–1652  ·  view source on GitHub ↗
(
  files: MemoryFileInfo[],
  readFileState: FileStateCache,
)

Source from the content-addressed store, hash-verified

1631 * - readFileState paths matching memory patterns (includes child directories)
1632 */
1633export 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}

Callers

nothing calls this directly

Calls 3

cacheKeysFunction · 0.85
isMemoryFilePathFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected