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

Function flow

__tests__/ui-flow-model.test.ts:88–100  ·  view source on GitHub ↗
(
  id: string,
  names: string[],
  extra: { boundary?: WireFlowBoundary | null; partial?: boolean } = {}
)

Source from the content-addressed store, hash-verified

86}
87
88function flow(
89 id: string,
90 names: string[],
91 extra: { boundary?: WireFlowBoundary | null; partial?: boolean } = {}
92): WireFlow {
93 return {
94 id,
95 label: `${names[0]} → ${names[names.length - 1]}`,
96 hops: names.map((name, i) => hop(name, { edge: i === 0 ? null : edge() })),
97 boundary: extra.boundary ?? null,
98 partial: extra.partial === true,
99 };
100}
101
102function ref(name: string): WireNodeRef {
103 return {

Callers 1

Calls 3

mapMethod · 0.80
hopFunction · 0.70
edgeFunction · 0.70

Tested by

no test coverage detected