MCPcopy Index your code
hub / github.com/simstudioai/sim / findParentLoop

Function findParentLoop

apps/sim/executor/utils/run-from-block.ts:241–248  ·  view source on GitHub ↗
(blockId: string, dag: DAG)

Source from the content-addressed store, hash-verified

239}
240
241function findParentLoop(blockId: string, dag: DAG): string | undefined {
242 for (const [loopId, config] of dag.loopConfigs) {
243 if (loopId !== blockId && config.nodes?.includes(blockId)) {
244 return loopId
245 }
246 }
247 return undefined
248}
249
250function findParentParallel(blockId: string, dag: DAG): string | undefined {
251 for (const [parallelId, config] of dag.parallelConfigs) {

Callers 1

validateRunFromBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected