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

Function layoutNodeForSelection

graph-ui/src/galaxy/selected-node.ts:7–11  ·  view source on GitHub ↗
(layout: GraphData | undefined, selected: GraphNode)

Source from the content-addressed store, hash-verified

5
6/** Hierarchy render IDs are local to a projection; symbol names carry identity. */
7export function layoutNodeForSelection(layout: GraphData | undefined, selected: GraphNode): GraphNode | undefined {
8 return selected.qualified_name
9 ? layout?.nodes.find(node => node.qualified_name === selected.qualified_name)
10 : layout?.nodes.find(node => node === selected);
11}
12
13/** Keep selected hierarchy evidence usable when its symbol is outside the loaded layout. */
14export function selectedGraphContext(layout: GraphData | undefined, selected: GraphNode, project: string, snapshotId: string): BrowserChatContext {

Callers 3

GalaxyPanelFunction · 0.90
selectedGraphContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected