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

Function outsideArea

graph-ui/src/architecture/semantic-graph.ts:531–536  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

529 // An outside area is named where its trail leaves the opened one: a sibling, not a repository root area.
530 const reference = scope ? areaLevels(scope) : trailOf(options.filePath!);
531 const outsideArea = (path: string) => {
532 const trail = trailOf(path);
533 let shared = 0;
534 while (shared < trail.length && trail[shared] === reference[shared]) shared++;
535 return trail[Math.min(shared, trail.length - 1)];
536 };
537 scopedEvidence = evidence.filter(edge => inScope(edge.source) || inScope(edge.target));
538 for (const edge of scopedEvidence) {
539 if (inScope(edge.source) === inScope(edge.target)) continue;

Callers 1

buildSemanticGraphFunction · 0.85

Calls 1

trailOfFunction · 0.70

Tested by

no test coverage detected