(event: Y.Map<unknown>, stepId: string)
| 281 | } |
| 282 | |
| 283 | function 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 | |
| 295 | function updateTaskPreview( |
| 296 | repoMap: Y.Map<unknown>, |
no test coverage detected