vidpipe 1.3.11 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -4
- package/dist/cli.js +5430 -290
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +66 -6
- package/dist/index.js +5383 -308
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -330,8 +330,7 @@ declare enum PipelineStage {
|
|
|
330
330
|
ShortPosts = "short-posts",
|
|
331
331
|
MediumClipPosts = "medium-clip-posts",
|
|
332
332
|
Blog = "blog",
|
|
333
|
-
QueueBuild = "queue-build"
|
|
334
|
-
GitPush = "git-push"
|
|
333
|
+
QueueBuild = "queue-build"
|
|
335
334
|
}
|
|
336
335
|
/**
|
|
337
336
|
* Per-stage outcome record for pipeline observability.
|
|
@@ -371,6 +370,64 @@ interface PipelineResult {
|
|
|
371
370
|
stageResults: StageResult[];
|
|
372
371
|
totalDuration: number;
|
|
373
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* Structured progress events emitted during pipeline execution.
|
|
375
|
+
*
|
|
376
|
+
* Discriminated union on the `event` field. Consumers parse JSONL from stderr
|
|
377
|
+
* when `--progress` is passed to `vidpipe process`.
|
|
378
|
+
*/
|
|
379
|
+
type ProgressEvent = PipelineStartEvent | StageStartEvent | StageCompleteEvent | StageErrorEvent | StageSkipEvent | PipelineCompleteEvent;
|
|
380
|
+
interface PipelineStartEvent {
|
|
381
|
+
event: 'pipeline:start';
|
|
382
|
+
videoPath: string;
|
|
383
|
+
totalStages: number;
|
|
384
|
+
timestamp: string;
|
|
385
|
+
}
|
|
386
|
+
interface StageStartEvent {
|
|
387
|
+
event: 'stage:start';
|
|
388
|
+
stage: PipelineStage;
|
|
389
|
+
stageNumber: number;
|
|
390
|
+
totalStages: number;
|
|
391
|
+
name: string;
|
|
392
|
+
timestamp: string;
|
|
393
|
+
}
|
|
394
|
+
interface StageCompleteEvent {
|
|
395
|
+
event: 'stage:complete';
|
|
396
|
+
stage: PipelineStage;
|
|
397
|
+
stageNumber: number;
|
|
398
|
+
totalStages: number;
|
|
399
|
+
name: string;
|
|
400
|
+
duration: number;
|
|
401
|
+
success: true;
|
|
402
|
+
timestamp: string;
|
|
403
|
+
}
|
|
404
|
+
interface StageErrorEvent {
|
|
405
|
+
event: 'stage:error';
|
|
406
|
+
stage: PipelineStage;
|
|
407
|
+
stageNumber: number;
|
|
408
|
+
totalStages: number;
|
|
409
|
+
name: string;
|
|
410
|
+
duration: number;
|
|
411
|
+
error: string;
|
|
412
|
+
timestamp: string;
|
|
413
|
+
}
|
|
414
|
+
interface StageSkipEvent {
|
|
415
|
+
event: 'stage:skip';
|
|
416
|
+
stage: PipelineStage;
|
|
417
|
+
stageNumber: number;
|
|
418
|
+
totalStages: number;
|
|
419
|
+
name: string;
|
|
420
|
+
reason: string;
|
|
421
|
+
timestamp: string;
|
|
422
|
+
}
|
|
423
|
+
interface PipelineCompleteEvent {
|
|
424
|
+
event: 'pipeline:complete';
|
|
425
|
+
totalDuration: number;
|
|
426
|
+
stagesCompleted: number;
|
|
427
|
+
stagesFailed: number;
|
|
428
|
+
stagesSkipped: number;
|
|
429
|
+
timestamp: string;
|
|
430
|
+
}
|
|
374
431
|
/**
|
|
375
432
|
* Result of the silence removal stage.
|
|
376
433
|
*
|
|
@@ -576,7 +633,6 @@ interface AppEnvironment {
|
|
|
576
633
|
OUTPUT_DIR: string;
|
|
577
634
|
BRAND_PATH: string;
|
|
578
635
|
VERBOSE: boolean;
|
|
579
|
-
SKIP_GIT: boolean;
|
|
580
636
|
SKIP_SILENCE_REMOVAL: boolean;
|
|
581
637
|
SKIP_SHORTS: boolean;
|
|
582
638
|
SKIP_MEDIUM_CLIPS: boolean;
|
|
@@ -592,6 +648,8 @@ interface AppEnvironment {
|
|
|
592
648
|
IDEAS_REPO: string;
|
|
593
649
|
/** GitHub Personal Access Token with repo + project scopes */
|
|
594
650
|
GITHUB_TOKEN: string;
|
|
651
|
+
/** Per-agent model overrides from MODEL_* env vars (e.g. MODEL_SHORTS_AGENT=gpt-4o) */
|
|
652
|
+
MODEL_OVERRIDES: Readonly<Record<string, string>>;
|
|
595
653
|
}
|
|
596
654
|
|
|
597
655
|
interface GlobalCredentials {
|
|
@@ -680,8 +738,6 @@ interface VidPipeConfig {
|
|
|
680
738
|
interface ProcessOptions {
|
|
681
739
|
/** Comma-separated idea issue numbers to link to this video */
|
|
682
740
|
ideas?: number[];
|
|
683
|
-
/** Skip specific pipeline stages */
|
|
684
|
-
skipGit?: boolean;
|
|
685
741
|
/** Skip the silence removal stage */
|
|
686
742
|
skipSilenceRemoval?: boolean;
|
|
687
743
|
/** Skip short clip generation */
|
|
@@ -696,6 +752,8 @@ interface ProcessOptions {
|
|
|
696
752
|
skipVisualEnhancement?: boolean;
|
|
697
753
|
/** Skip publishing generated social content */
|
|
698
754
|
skipSocialPublish?: boolean;
|
|
755
|
+
/** Callback for real-time pipeline progress events (stage starts, completions, errors) */
|
|
756
|
+
onProgress?: (event: ProgressEvent) => void;
|
|
699
757
|
}
|
|
700
758
|
/**
|
|
701
759
|
* Options for AI-assisted idea generation.
|
|
@@ -813,4 +871,6 @@ interface VidPipeSDK {
|
|
|
813
871
|
|
|
814
872
|
declare function createVidPipe(sdkConfig?: VidPipeConfig): VidPipeSDK;
|
|
815
873
|
|
|
816
|
-
|
|
874
|
+
type ProgressListener = (event: ProgressEvent) => void;
|
|
875
|
+
|
|
876
|
+
export { type AgentResult, type AspectRatio, type CaptionStyle, type Chapter, type CreateIdeaInput, type DiagnosticCheck, type DiagnosticResult, type EmotionalTrigger, type EnhancementOpportunity, type GeneratedClip, type GeneratedOverlay, type HookType, type Idea, type IdeaCommentData, type IdeaFilters, type IdeaPublishRecord, type IdeaStatus, type IdeateOptions, type MediumClip, type MediumClipType, type MediumNarrativeStructure, type MediumSegment, type OverlayPlacement, type OverlayRegion, PLATFORM_CHAR_LIMITS, type PipelineCompleteEvent, type PipelineResult, PipelineStage, type PipelineStartEvent, Platform, type ProcessOptions, type ProgressEvent, type ProgressListener, type RealignOptions, SUPPORTED_VIDEO_EXTENSIONS, type ScheduleSlot, type ScreenRegion, type Segment, type ShortClip, type ShortClipVariant, type ShortNarrativeStructure, type ShortSegment, type SilenceRemovalResult, type SlotOptions, type SocialPost, type StageCompleteEvent, type StageErrorEvent, type StageResult, type StageSkipEvent, type StageStartEvent, type Transcript, type VidPipeConfig, type VidPipeSDK, type VideoFile, type VideoLayout, type VideoPlatform, type VideoSnapshot, type VideoSummary, type VisualEnhancementResult, type WebcamRegion, type Word, createVidPipe, fromLatePlatform, normalizePlatformString, toLatePlatform };
|