( flowId: string, rootDir: string = getProjectRoot(), )
| 1009 | } |
| 1010 | |
| 1011 | export async function getAutonomyFlowById( |
| 1012 | flowId: string, |
| 1013 | rootDir: string = getProjectRoot(), |
| 1014 | ): Promise<AutonomyFlowRecord | null> { |
| 1015 | const flows = await listAutonomyFlows(rootDir) |
| 1016 | return flows.find(flow => flow.flowId === flowId) ?? null |
| 1017 | } |
| 1018 | |
| 1019 | export function formatAutonomyFlowsStatus(flows: AutonomyFlowRecord[]): string { |
| 1020 | const counts = { |
no test coverage detected