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

Function cloneManagedState

src/utils/autonomyFlows.ts:137–147  ·  view source on GitHub ↗
(
  state: ManagedAutonomyFlowState | undefined,
)

Source from the content-addressed store, hash-verified

135}
136
137function cloneManagedState(
138 state: ManagedAutonomyFlowState | undefined,
139): ManagedAutonomyFlowState | undefined {
140 if (!state) {
141 return undefined
142 }
143 return {
144 currentStepIndex: state.currentStepIndex,
145 steps: state.steps.map(cloneFlowStep),
146 }
147}
148
149function cloneWaitState(
150 wait: AutonomyFlowWaitState | undefined,

Calls

no outgoing calls

Tested by

no test coverage detected