MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / isAutoManagedMemoryFile

Function isAutoManagedMemoryFile

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

Source from the content-addressed store, hash-verified

131 * Use this for collapse/badge logic where user-managed files should show full diffs.
132 */
133export 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.

Callers 5

hasMemoryFileReadFunction · 0.85
isMemorySearchFunction · 0.85
isMemoryWriteOrEditFunction · 0.85
collapseReadSearchGroupsFunction · 0.85

Calls 3

isAutoMemFileFunction · 0.85
isAgentMemFileFunction · 0.85
detectSessionFileTypeFunction · 0.70

Tested by

no test coverage detected