MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / memoryScopeForPath

Function memoryScopeForPath

source code/utils/memoryFileDetection.ts:108–116  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

106 * hierarchy handles the overlap differently (team writes intentionally fire both).
107 */
108export function memoryScopeForPath(filePath: string): MemoryScope | null {
109 if (feature('TEAMMEM') && teamMemPaths!.isTeamMemFile(filePath)) {
110 return 'team'
111 }
112 if (isAutoMemFile(filePath)) {
113 return 'personal'
114 }
115 return null
116}
117
118/**
119 * Check if a file path is within an agent memory directory.

Callers 1

handleSessionFileAccessFunction · 0.85

Calls 1

isAutoMemFileFunction · 0.85

Tested by

no test coverage detected