MCPcopy
hub / github.com/opentrace/opentrace / corePipeline

Function corePipeline

ui/src/components/pipeline/pipeline.ts:33–53  ·  view source on GitHub ↗
(
  input: LoadingInput,
  ctx: PipelineContext,
)

Source from the content-addressed store, hash-verified

31export { initParsers } from './stages/parsing';
32
33function* corePipeline(
34 input: LoadingInput,
35 ctx: PipelineContext,
36): Generator<PipelineEvent> {
37 const scanResult = yield* scanning(input, ctx);
38
39 if (ctx.cancelled) return;
40
41 const processingOutput = yield* processing(scanResult, ctx);
42
43 if (ctx.cancelled) return;
44
45 const finalResult = yield* resolving(processingOutput);
46
47 yield {
48 kind: 'done',
49 phase: 'resolving',
50 message: 'Pipeline complete',
51 result: finalResult,
52 };
53}
54
55export function* runPipeline(
56 input: LoadingInput,

Callers 1

runPipelineFunction · 0.85

Calls 3

scanningFunction · 0.85
processingFunction · 0.85
resolvingFunction · 0.85

Tested by

no test coverage detected