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

Function buildManagedState

src/utils/autonomyFlows.ts:324–337  ·  view source on GitHub ↗
(
  steps: ManagedAutonomyFlowStepDefinition[],
)

Source from the content-addressed store, hash-verified

322}
323
324function buildManagedState(
325 steps: ManagedAutonomyFlowStepDefinition[],
326): ManagedAutonomyFlowState {
327 return {
328 currentStepIndex: 0,
329 steps: steps.map(step => ({
330 stepId: randomUUID(),
331 name: step.name,
332 prompt: step.prompt,
333 status: 'pending',
334 ...(step.waitFor ? { waitFor: step.waitFor } : {}),
335 })),
336 }
337}
338
339function getManagedStep(
340 flow: AutonomyFlowRecord,

Callers 1

startManagedAutonomyFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected