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

Function flowObservations

graph-ui/src/traces/bug-paths.ts:375–389  ·  view source on GitHub ↗
(flow: FlowDetail)

Source from the content-addressed store, hash-verified

373
374/** Every observed call one flow answer reports, as ordered pairs. */
375export function flowObservations(flow: FlowDetail): { from: BugPathNode; to: BugPathNode; observed: ObservedRecord }[] {
376 const out: { from: BugPathNode; to: BugPathNode; observed: ObservedRecord }[] = [];
377 flow.steps.forEach((step) => {
378 if (step.observed === undefined || step.parent < 0 || step.parent >= flow.steps.length) {
379 return;
380 }
381 const parent = flow.steps[step.parent];
382 out.push({
383 from: { name: parent.name, filePath: parent.filePath },
384 to: { name: step.name, filePath: step.filePath },
385 observed: step.observed,
386 });
387 });
388 return out;
389}
390
391/** True when a flow's steps hold the symbol the wizard is about. */
392export function flowTouches(flow: FlowDetail, target: BugPathNode): boolean {

Callers 2

bug-paths.test.tsFile · 0.90
bugPathsFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected