(memory: MemoryWithConfidence)
| 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 = |
no test coverage detected