MCPcopy
hub / github.com/claude-code-best/claude-code / memoryScopeForPath

Function memoryScopeForPath

src/utils/memoryFileDetection.ts:106–114  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

104 * hierarchy handles the overlap differently (team writes intentionally fire both).
105 */
106export function memoryScopeForPath(filePath: string): MemoryScope | null {
107 if (feature('TEAMMEM') && teamMemPaths!.isTeamMemFile(filePath)) {
108 return 'team'
109 }
110 if (isAutoMemFile(filePath)) {
111 return 'personal'
112 }
113 return null
114}
115
116/**
117 * 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