( steps: ManagedAutonomyFlowStepDefinition[], )
| 322 | } |
| 323 | |
| 324 | function buildManagedState( |
| 325 | steps: ManagedAutonomyFlowStepDefinition[], |
| 326 | ): ManagedAutonomyFlowState { |
| 327 | return { |
| 328 | currentStepIndex: 0, |
| 329 | steps: steps.map(step => ({ |
| 330 | stepId: randomUUID(), |
| 331 | name: step.name, |
| 332 | prompt: step.prompt, |
| 333 | status: 'pending', |
| 334 | ...(step.waitFor ? { waitFor: step.waitFor } : {}), |
| 335 | })), |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | function getManagedStep( |
| 340 | flow: AutonomyFlowRecord, |
no outgoing calls
no test coverage detected