MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / getHyperPlanSubExecutionMap

Function getHyperPlanSubExecutionMap

projects/openade-module/src/yjsMutation.ts:283–293  ·  view source on GitHub ↗
(event: Y.Map<unknown>, stepId: string)

Source from the content-addressed store, hash-verified

281}
282
283function getHyperPlanSubExecutionMap(event: Y.Map<unknown>, stepId: string): Y.Map<unknown> | null {
284 const subExecutions = event.get("hyperplanSubExecutions")
285 if (!(subExecutions instanceof Y.Array)) return null
286
287 for (const item of subExecutions.toArray()) {
288 if (!(item instanceof Y.Map)) continue
289 if (item.get("stepId") === stepId) return item
290 }
291
292 return null
293}
294
295function updateTaskPreview(
296 repoMap: Y.Map<unknown>,

Calls 1

getMethod · 0.65

Tested by

no test coverage detected