MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getAutonomyDeepSectionText

Function getAutonomyDeepSectionText

src/cli/handlers/autonomy.ts:58–72  ·  view source on GitHub ↗
(
  sectionId: AutonomyDeepStatusSectionId,
  options?: { rootDir?: string },
)

Source from the content-addressed store, hash-verified

56}
57
58export 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
74export async function autonomyStatusHandler(options?: {
75 deep?: boolean

Callers 2

autonomy.test.tsFile · 0.90
AutonomyPanelFunction · 0.85

Calls 3

listAutonomyRunsFunction · 0.85
listAutonomyFlowsFunction · 0.85

Tested by

no test coverage detected