MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / fileFreshness

Function fileFreshness

src/context/episodic-memory.ts:89–92  ·  view source on GitHub ↗
(files: string[], exists: (f: string) => boolean)

Source from the content-addressed store, hash-verified

87
88/** Fraction of an episode's touched files that still exist (1 when none recorded — nothing to judge). */
89export function fileFreshness(files: string[], exists: (f: string) => boolean): number {
90 if (files.length === 0) return 1;
91 return files.filter(exists).length / files.length;
92}
93
94/**
95 * Rank episodes against a query by lexical similarity (prompt + summary), then select a

Callers 2

rankEpisodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected