import { walkSubflowSpec } from 'footprintjs/trace';
onSubflowMounted(event) {
if (!event.subflowSpec) return; // lazy mount — no spec yet
for (const item of walkSubflowSpec(event.subflowSpec, event.subflowPath)) {
switch (item.kind) {
case 'subflow-start': break; // entry boundary
case 'stage': break; // inner stage
case 'edge': break; // inner edge
case 'loop': break; // inner loop back-edge
case 'subflow': break; // nested mount marker
}
}
}
Walk a subflow spec, yielding its structure as flat ordered items.