MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isAutoManagedMemoryPattern

Function isAutoManagedMemoryPattern

src/utils/memoryFileDetection.ts:277–289  ·  view source on GitHub ↗
(pattern: string)

Source from the content-addressed store, hash-verified

275// Used for collapse badge logic where user-managed files should not be
276// counted as "memory" operations.
277export function isAutoManagedMemoryPattern(pattern: string): boolean {
278 if (detectSessionPatternType(pattern) !== null) {
279 return true
280 }
281 if (
282 isAutoMemoryEnabled() &&
283 (pattern.replace(/\\/g, '/').includes('agent-memory/') ||
284 pattern.replace(/\\/g, '/').includes('agent-memory-local/'))
285 ) {
286 return true
287 }
288 return false
289}
290

Callers 1

isMemorySearchFunction · 0.85

Calls 2

detectSessionPatternTypeFunction · 0.85
isAutoMemoryEnabledFunction · 0.85

Tested by

no test coverage detected