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