MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / runSequentialSteps

Function runSequentialSteps

common/src/util/__tests__/error-abort.test.ts:628–644  ·  view source on GitHub ↗
(signal: AbortSignal)

Source from the content-addressed store, hash-verified

626 }
627
628 async function runSequentialSteps(signal: AbortSignal): Promise<PromptResult<string[]>> {
629 const results: string[] = []
630
631 const r1 = await step1(signal)
632 if (r1.aborted) return r1
633 results.push(r1.value)
634
635 const r2 = await step2(signal)
636 if (r2.aborted) return r2
637 results.push(r2.value)
638
639 const r3 = await step3(signal)
640 if (r3.aborted) return r3
641 results.push(r3.value)
642
643 return promptSuccess(results)
644 }
645
646 it('completes all steps when not aborted', async () => {
647 callLog.length = 0

Callers 1

Calls 4

promptSuccessFunction · 0.90
step1Function · 0.85
step2Function · 0.85
step3Function · 0.85

Tested by

no test coverage detected