MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / getMemoryTextMatchCount

Function getMemoryTextMatchCount

src/tools/search-codebase.ts:357–361  ·  view source on GitHub ↗
(memory: MemoryWithConfidence)

Source from the content-addressed store, hash-verified

355 }
356
357 function getMemoryTextMatchCount(memory: MemoryWithConfidence): number {
358 const haystack =
359 `${memory.memory} ${memory.reason} ${formatMemoryScopeText(memory.scope)}`.toLowerCase();
360 return queryTerms.filter((term) => haystack.includes(term)).length;
361 }
362
363 function formatMemoryForOutput(memory: MemoryWithConfidence): string {
364 const scopeText =

Callers 1

handleFunction · 0.85

Calls 1

formatMemoryScopeTextFunction · 0.85

Tested by

no test coverage detected