MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / toFlowEdge

Function toFlowEdge

src/ui-server/api/flow.ts:329–339  ·  view source on GitHub ↗
(edge: Edge, upward: boolean)

Source from the content-addressed store, hash-verified

327}
328
329function toFlowEdge(edge: Edge, upward: boolean): WireFlowEdge {
330 const meta = (edge.metadata ?? {}) as Record<string, unknown>;
331 const confidence = typeof meta.confidence === 'number' ? meta.confidence : null;
332 return {
333 ...toWireEdge(edge),
334 label: flowEdgeLabel(edge, upward),
335 upward,
336 uncertain: confidence !== null && confidence < UNCERTAIN_BELOW,
337 synthesized: edge.provenance === 'heuristic',
338 };
339}
340
341// =============================================================================
342// Source windows

Callers 1

toWireFlowFunction · 0.85

Calls 2

toWireEdgeFunction · 0.90
flowEdgeLabelFunction · 0.85

Tested by

no test coverage detected