(filePath: string)
| 106 | * hierarchy handles the overlap differently (team writes intentionally fire both). |
| 107 | */ |
| 108 | export 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. |
no test coverage detected