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

Function topCall

common/src/util/__tests__/error-abort.test.ts:381–387  ·  view source on GitHub ↗
(signal: { aborted: boolean })

Source from the content-addressed store, hash-verified

379 }
380
381 async function topCall(signal: { aborted: boolean }): Promise<PromptResult<string[]>> {
382 const result = await middleCall(signal)
383 if (result.aborted) {
384 return result // Propagate abort
385 }
386 return promptSuccess([result.value, 'additional'])
387 }
388
389 it('propagates success through all levels', async () => {
390 const signal = { aborted: false }

Callers 1

Calls 2

promptSuccessFunction · 0.90
middleCallFunction · 0.85

Tested by

no test coverage detected