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

Function readerFocusFrame

graph-ui/src/galaxy/reader-graph-focus.ts:17–26  ·  view source on GitHub ↗
(ids: Set<number>, edges: readonly GraphEdge[])

Source from the content-addressed store, hash-verified

15
16/** Frame incident relationships without selecting their unrelated second-hop edges. */
17export function readerFocusFrame(ids: Set<number>, edges: readonly GraphEdge[]): Set<number> {
18 const frame = new Set(ids);
19 for (const edge of edges) {
20 if (ids.has(edge.source) || ids.has(edge.target)) {
21 frame.add(edge.source);
22 frame.add(edge.target);
23 }
24 }
25 return frame;
26}
27
28export function symbolMatchesReader(symbol: SymbolRef | undefined, filePath: string, range?: SourceFocusRange): boolean {
29 if (!symbol || !filePath || normalizedPath(symbol.uri) !== normalizedPath(filePath)) return false;

Callers 2

GalaxyPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected