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

Function parseAutonomyLimit

src/cli/handlers/autonomy.ts:30–36  ·  view source on GitHub ↗
(raw?: string | number)

Source from the content-addressed store, hash-verified

28} from '../../utils/messageQueueManager.js'
29
30export function parseAutonomyLimit(raw?: string | number): number {
31 const parsed = typeof raw === 'number' ? raw : Number.parseInt(raw ?? '', 10)
32 if (!Number.isFinite(parsed) || parsed <= 0) {
33 return 10
34 }
35 return Math.min(parsed, 50)
36}
37
38export async function getAutonomyStatusText(options?: {
39 deep?: boolean

Callers 2

getAutonomyRunsTextFunction · 0.85
getAutonomyFlowsTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected