MCPcopy Create free account
hub / github.com/Noumena-Network/code / isAutoManagedMemoryPattern

Function isAutoManagedMemoryPattern

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

Source from the content-addressed store, hash-verified

283// Used for collapse badge logic where user-managed files should not be
284// counted as "memory" operations.
285export function isAutoManagedMemoryPattern(pattern: string): boolean {
286 if (detectSessionPatternType(pattern) !== null) {
287 return true
288 }
289 if (
290 isAutoMemoryEnabled() &&
291 (pattern.replace(/\\/g, '/').includes('agent-memory/') ||
292 pattern.replace(/\\/g, '/').includes('agent-memory-local/'))
293 ) {
294 return true
295 }
296 return false
297}

Callers 1

isMemorySearchFunction · 0.85

Calls 2

detectSessionPatternTypeFunction · 0.85
isAutoMemoryEnabledFunction · 0.85

Tested by

no test coverage detected