@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
32 lines (31 loc) • 1.54 kB
TypeScript
/**
* Director Mode Pipeline Orchestrator
*
* Orchestrates multi-segment video generation: parallel clip generation,
* parallel frame extraction + transition generation, and sequential merge.
*
* Error severity semantics:
* - HIGH: Fatal — clip generation / merge failures that abort the pipeline
* - MEDIUM: Non-fatal — transition / frame-extraction failures that degrade
* to a hard cut but do not abort the pipeline
*
* @module adapters/video/directorPipeline
*/
import type { DirectorModeOptions, DirectorSegment, VideoGenerationResult, VideoOutputOptions } from "../../types/index.js";
/** Default timeout for entire Director Mode pipeline (10 minutes) */
export declare const DIRECTOR_PIPELINE_TIMEOUT_MS = 600000;
/**
* Execute the full Director Mode pipeline.
*
* Pipeline stages:
* 1. Parallel clip generation (concurrency = 2, circuit breaker after 2 failures)
* 2. Parallel frame extraction + transition generation
* 3. Sequential merge into single MP4
*
* @param segments - Array of DirectorSegment objects (2-10)
* @param videoOptions - Video output options (resolution, length, aspectRatio, audio)
* @param directorOptions - Director Mode options (transition prompts/durations)
* @param region - Vertex AI region override
* @returns VideoGenerationResult with merged video and Director metadata
*/
export declare function executeDirectorPipeline(segments: DirectorSegment[], videoOptions?: VideoOutputOptions, directorOptions?: DirectorModeOptions, region?: string): Promise<VideoGenerationResult>;