Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

552 B
Raw Blame
import { OkResultWithContext, Pipeline, PipelineResultWithContext } from './pipeline.interface'
import { StepPipeline } from './step-pipeline'
import { ProcessingStep } from './steps'

export class StartPipeline<T, C> implements Pipeline<T, T, C> {
    async process(input: OkResultWithContext<T, C>): Promise<PipelineResultWithContext<T, C>> {
        return Promise.resolve(input)
    }

    pipe<U, R2 extends string = never>(step: ProcessingStep<T, U, R2>): StepPipeline<T, T, U, C, never, R2> {
        return new StepPipeline(step, this)
    }
}