MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / normalizeFact

Function normalizeFact

graph-ui/src/ir/semantic-ir-builder.ts:252–258  ·  view source on GitHub ↗

Normalise one fact's file references, leaving state and evidence semantics alone.

(root: string, fact: Fact<T[]>)

Source from the content-addressed store, hash-verified

250
251/** Normalise one fact's file references, leaving state and evidence semantics alone. */
252function normalizeFact<T extends { file?: string }>(root: string, fact: Fact<T[]>): Fact<T[]> {
253 return {
254 ...fact,
255 value: withUris(root, fact.value),
256 evidence: evidenceWithUris(root, fact.evidence)
257 };
258}
259
260function normalizeCalls(root: string, fact: Fact<CallSite[]>): Fact<CallSite[]> {
261 return {

Callers 1

buildIrFunction · 0.85

Calls 2

withUrisFunction · 0.85
evidenceWithUrisFunction · 0.85

Tested by

no test coverage detected