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

Function edgeKey

graph-ui/src/traces/bug-paths.ts:203–205  ·  view source on GitHub ↗
(from: { name: string; filePath?: string }, to: { name: string; filePath?: string })

Source from the content-addressed store, hash-verified

201
202/** How one call is identified. Ordered, always, because a call has a direction. */
203export function edgeKey(from: { name: string; filePath?: string }, to: { name: string; filePath?: string }): string {
204 return `${nodeKey(from)}->${nodeKey(to)}`;
205}
206
207/** Ordinal comparison, never `localeCompare`: two machines must agree. */
208function compareText(a: string, b: string): number {

Callers 4

bug-paths.test.tsFile · 0.90
chainEdgesFunction · 0.70
rememberFunction · 0.70
byPairFunction · 0.70

Calls 1

nodeKeyFunction · 0.85

Tested by

no test coverage detected