(options?: {
deep?: boolean
rootDir?: string
})
| 36 | } |
| 37 | |
| 38 | export async function getAutonomyStatusText(options?: { |
| 39 | deep?: boolean |
| 40 | rootDir?: string |
| 41 | }): Promise<string> { |
| 42 | const rootDir = options?.rootDir |
| 43 | const [runs, flows] = await Promise.all([ |
| 44 | listAutonomyRuns(rootDir), |
| 45 | listAutonomyFlows(rootDir), |
| 46 | ]) |
| 47 | |
| 48 | if (options?.deep) { |
| 49 | return formatAutonomyDeepStatus({ runs, flows }) |
| 50 | } |
| 51 | |
| 52 | return [ |
| 53 | formatAutonomyRunsStatus(runs), |
| 54 | formatAutonomyFlowsStatus(flows), |
| 55 | ].join('\n') |
| 56 | } |
| 57 | |
| 58 | export async function getAutonomyDeepSectionText( |
| 59 | sectionId: AutonomyDeepStatusSectionId, |
no test coverage detected