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

Function buildQueueInstruction

src/utils/autonomyFlows.ts:346–360  ·  view source on GitHub ↗
(
  flow: AutonomyFlowRecord,
  stepIndex: number,
)

Source from the content-addressed store, hash-verified

344}
345
346function buildQueueInstruction(
347 flow: AutonomyFlowRecord,
348 stepIndex: number,
349): ManagedAutonomyFlowQueueInstruction | undefined {
350 const step = getManagedStep(flow, stepIndex)
351 if (!step) {
352 return undefined
353 }
354 return {
355 flowId: flow.flowId,
356 flowKey: flow.flowKey,
357 stepIndex,
358 step: cloneFlowStep(step),
359 }
360}
361
362function markRemainingStepsCancelled(
363 state: ManagedAutonomyFlowState,

Callers 3

startManagedAutonomyFlowFunction · 0.85

Calls 2

getManagedStepFunction · 0.85
cloneFlowStepFunction · 0.85

Tested by

no test coverage detected