(filePath: string)
| 131 | * Use this for collapse/badge logic where user-managed files should show full diffs. |
| 132 | */ |
| 133 | export function isAutoManagedMemoryFile(filePath: string): boolean { |
| 134 | if (isAutoMemFile(filePath)) { |
| 135 | return true |
| 136 | } |
| 137 | if (feature('TEAMMEM') && teamMemPaths!.isTeamMemFile(filePath)) { |
| 138 | return true |
| 139 | } |
| 140 | if (detectSessionFileType(filePath) !== null) { |
| 141 | return true |
| 142 | } |
| 143 | if (isAgentMemFile(filePath)) { |
| 144 | return true |
| 145 | } |
| 146 | return false |
| 147 | } |
| 148 | |
| 149 | // Check if a directory path is a memory-related directory. |
| 150 | // Used by Grep/Glob which take a directory `path` rather than a specific file. |
no test coverage detected