vidpipe 1.3.23 → 1.3.25
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/dist/cli.js +2216 -902
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +51 -2
- package/dist/index.js +1421 -488
- package/dist/index.js.map +1 -1
- package/dist/public/index.html +30 -14
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -142,13 +142,15 @@ type VideoPlatform = 'tiktok' | 'youtube-shorts' | 'instagram-reels' | 'instagra
|
|
|
142
142
|
* - `'portrait'` — Opus Clips style for 9:16 vertical video (green highlight,
|
|
143
143
|
* scale-pop animation, larger fonts for small-screen viewing)
|
|
144
144
|
*/
|
|
145
|
-
type CaptionStyle = 'shorts' | 'medium' | 'portrait';
|
|
145
|
+
type CaptionStyle = 'shorts' | 'medium' | 'portrait' | 'portrait-lower';
|
|
146
146
|
interface ShortClipVariant {
|
|
147
147
|
path: string;
|
|
148
148
|
aspectRatio: AspectRatio;
|
|
149
149
|
platform: VideoPlatform;
|
|
150
150
|
width: number;
|
|
151
151
|
height: number;
|
|
152
|
+
/** Whether a split-screen layout (screen + webcam panels) was used. */
|
|
153
|
+
isSplitScreen?: boolean;
|
|
152
154
|
}
|
|
153
155
|
/**
|
|
154
156
|
* A single time range within a short clip.
|
|
@@ -342,7 +344,8 @@ declare enum PipelineStage {
|
|
|
342
344
|
ShortPosts = "short-posts",
|
|
343
345
|
MediumClipPosts = "medium-clip-posts",
|
|
344
346
|
Blog = "blog",
|
|
345
|
-
QueueBuild = "queue-build"
|
|
347
|
+
QueueBuild = "queue-build",
|
|
348
|
+
CloudUpload = "cloud-upload"
|
|
346
349
|
}
|
|
347
350
|
/**
|
|
348
351
|
* Per-stage outcome record for pipeline observability.
|
|
@@ -818,6 +821,12 @@ interface AppEnvironment {
|
|
|
818
821
|
GITHUB_TOKEN: string;
|
|
819
822
|
/** Per-agent model overrides from MODEL_* env vars (e.g. MODEL_SHORTS_AGENT=gpt-4o) */
|
|
820
823
|
MODEL_OVERRIDES: Readonly<Record<string, string>>;
|
|
824
|
+
/** Azure Storage account name for cloud persistence */
|
|
825
|
+
AZURE_STORAGE_ACCOUNT_NAME: string;
|
|
826
|
+
/** Azure Storage account key for authentication */
|
|
827
|
+
AZURE_STORAGE_ACCOUNT_KEY: string;
|
|
828
|
+
/** Azure Blob container name (default: vidpipe) */
|
|
829
|
+
AZURE_CONTAINER_NAME: string;
|
|
821
830
|
}
|
|
822
831
|
|
|
823
832
|
interface GlobalCredentials {
|
|
@@ -829,6 +838,8 @@ interface GlobalCredentials {
|
|
|
829
838
|
lateApiKey?: string;
|
|
830
839
|
githubToken?: string;
|
|
831
840
|
geminiApiKey?: string;
|
|
841
|
+
azureStorageAccountName?: string;
|
|
842
|
+
azureStorageAccountKey?: string;
|
|
832
843
|
}
|
|
833
844
|
interface GlobalDefaults {
|
|
834
845
|
llmProvider?: string;
|
|
@@ -1067,6 +1078,44 @@ interface VidPipeSDK {
|
|
|
1067
1078
|
save(): Promise<void>;
|
|
1068
1079
|
path(): string;
|
|
1069
1080
|
};
|
|
1081
|
+
/** Cloud storage operations (Azure) */
|
|
1082
|
+
cloud: {
|
|
1083
|
+
/** Upload a video to Azure Storage and trigger GitHub Actions pipeline */
|
|
1084
|
+
process(videoPath: string, options?: {
|
|
1085
|
+
spec?: string;
|
|
1086
|
+
ideas?: string;
|
|
1087
|
+
publishBy?: string;
|
|
1088
|
+
repo?: string;
|
|
1089
|
+
}): Promise<{
|
|
1090
|
+
runId: string;
|
|
1091
|
+
blobPath: string;
|
|
1092
|
+
workflowTriggered: boolean;
|
|
1093
|
+
}>;
|
|
1094
|
+
/** Upload config files (schedule.json, brand.json, assets/) to Azure */
|
|
1095
|
+
pushConfig(): Promise<{
|
|
1096
|
+
uploaded: number;
|
|
1097
|
+
}>;
|
|
1098
|
+
/** Download config files from Azure to local vidpipe directory */
|
|
1099
|
+
pullConfig(): Promise<{
|
|
1100
|
+
downloaded: number;
|
|
1101
|
+
}>;
|
|
1102
|
+
/** Upload existing local publish-queue/ and published/ to Azure */
|
|
1103
|
+
migrate(): Promise<{
|
|
1104
|
+
uploaded: number;
|
|
1105
|
+
errors: string[];
|
|
1106
|
+
}>;
|
|
1107
|
+
/** Download a video from Azure blob (blob://) or HTTP URL */
|
|
1108
|
+
download(videoUrl: string, outputPath: string): Promise<void>;
|
|
1109
|
+
/** Check Azure connection status and stored content */
|
|
1110
|
+
status(): Promise<{
|
|
1111
|
+
configured: boolean;
|
|
1112
|
+
configFiles: number;
|
|
1113
|
+
contentItems: number;
|
|
1114
|
+
videos: number;
|
|
1115
|
+
}>;
|
|
1116
|
+
/** Check if Azure Storage credentials are configured */
|
|
1117
|
+
isConfigured(): boolean;
|
|
1118
|
+
};
|
|
1070
1119
|
}
|
|
1071
1120
|
|
|
1072
1121
|
declare function createVidPipe(sdkConfig?: VidPipeConfig): VidPipeSDK;
|