(
sectionId: AutonomyDeepStatusSectionId,
options?: { rootDir?: string },
)
| 56 | } |
| 57 | |
| 58 | export async function getAutonomyDeepSectionText( |
| 59 | sectionId: AutonomyDeepStatusSectionId, |
| 60 | options?: { rootDir?: string }, |
| 61 | ): Promise<string> { |
| 62 | const [runs, flows] = await Promise.all([ |
| 63 | listAutonomyRuns(options?.rootDir), |
| 64 | listAutonomyFlows(options?.rootDir), |
| 65 | ]) |
| 66 | const sections = await formatAutonomyDeepStatusSections({ runs, flows }) |
| 67 | const section = sections.find(item => item.id === sectionId) |
| 68 | if (!section) { |
| 69 | return `Autonomy deep status section not found: ${sectionId}` |
| 70 | } |
| 71 | return [`# ${section.title}`, section.content].join('\n') |
| 72 | } |
| 73 | |
| 74 | export async function autonomyStatusHandler(options?: { |
| 75 | deep?: boolean |
no test coverage detected