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

Function withConfidence

src/memory/store.ts:211–216  ·  view source on GitHub ↗
(memories: Memory[], now?: Date)

Source from the content-addressed store, hash-verified

209 * Enrich an array of memories with confidence decay metadata.
210 */
211export function withConfidence(memories: Memory[], now?: Date): MemoryWithConfidence[] {
212 return memories.map((m) => ({
213 ...m,
214 ...computeConfidence(m, now)
215 }));
216}
217
218export function formatMemoryScopeText(scope?: MemoryScope): string {
219 if (!scope || scope.kind === 'global') return '';

Callers 4

handleMemoryCliFunction · 0.85
handleFunction · 0.85
handleFunction · 0.85

Calls 1

computeConfidenceFunction · 0.85

Tested by

no test coverage detected