vidpipe 1.3.9 → 1.3.11
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 +56 -0
- package/dist/cli.js +755 -37
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +816 -0
- package/dist/index.js +12208 -0
- package/dist/index.js.map +1 -0
- package/package.json +13 -3
package/README.md
CHANGED
|
@@ -152,6 +152,7 @@ vidpipe doctor # Check all prerequisites
|
|
|
152
152
|
| `--no-git` | Skip git commit/push |
|
|
153
153
|
| `--late-api-key <key>` | Override Late API key |
|
|
154
154
|
| `-v, --verbose` | Debug-level logging |
|
|
155
|
+
| `--progress` | Emit structured JSON progress events to stderr |
|
|
155
156
|
| `--doctor` | Check that all prerequisites are installed |
|
|
156
157
|
|
|
157
158
|
### Ideate Options
|
|
@@ -357,6 +358,28 @@ graph LR
|
|
|
357
358
|
|
|
358
359
|
Each stage can be independently skipped with `--no-*` flags. A stage failure does not abort the pipeline — subsequent stages proceed with whatever data is available.
|
|
359
360
|
|
|
361
|
+
### Progress Events
|
|
362
|
+
|
|
363
|
+
Pass `--progress` to emit structured JSONL progress events to stderr while normal logs continue on stdout:
|
|
364
|
+
|
|
365
|
+
```bash
|
|
366
|
+
vidpipe process video.mp4 --progress 2>progress.jsonl
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
Each line is a self-contained JSON object:
|
|
370
|
+
|
|
371
|
+
```jsonl
|
|
372
|
+
{"event":"pipeline:start","videoPath":"video.mp4","totalStages":16,"timestamp":"..."}
|
|
373
|
+
{"event":"stage:start","stage":"ingestion","stageNumber":1,"totalStages":16,"name":"Ingestion","timestamp":"..."}
|
|
374
|
+
{"event":"stage:complete","stage":"ingestion","stageNumber":1,"totalStages":16,"name":"Ingestion","duration":423,"success":true,"timestamp":"..."}
|
|
375
|
+
{"event":"stage:skip","stage":"shorts","stageNumber":7,"totalStages":16,"name":"Shorts","reason":"SKIP_SHORTS","timestamp":"..."}
|
|
376
|
+
{"event":"pipeline:complete","totalDuration":45000,"stagesCompleted":14,"stagesFailed":0,"stagesSkipped":2,"timestamp":"..."}
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
Event types: `pipeline:start`, `stage:start`, `stage:complete`, `stage:error`, `stage:skip`, `pipeline:complete`.
|
|
380
|
+
|
|
381
|
+
Integrating tools can read stderr line-by-line to display a live progress UI (e.g., "Stage 3/16: Silence Removal").
|
|
382
|
+
|
|
360
383
|
---
|
|
361
384
|
|
|
362
385
|
## 🤖 LLM Providers
|
|
@@ -512,3 +535,36 @@ Run `vidpipe doctor` to verify your setup.
|
|
|
512
535
|
|
|
513
536
|
ISC © [htekdev](https://github.com/htekdev)
|
|
514
537
|
|
|
538
|
+
---
|
|
539
|
+
|
|
540
|
+
## 🧩 SDK Usage
|
|
541
|
+
|
|
542
|
+
VidPipe also ships as a Node.js ESM SDK for programmatic use:
|
|
543
|
+
|
|
544
|
+
```ts
|
|
545
|
+
import { createVidPipe } from 'vidpipe'
|
|
546
|
+
|
|
547
|
+
const vidpipe = createVidPipe({
|
|
548
|
+
openaiApiKey: process.env.OPENAI_API_KEY,
|
|
549
|
+
outputDir: './recordings',
|
|
550
|
+
})
|
|
551
|
+
|
|
552
|
+
const result = await vidpipe.processVideo('./videos/demo.mp4', {
|
|
553
|
+
skipGit: true,
|
|
554
|
+
})
|
|
555
|
+
|
|
556
|
+
console.log(result.video.videoDir)
|
|
557
|
+
console.log(result.shorts.length)
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
SDK features include:
|
|
561
|
+
|
|
562
|
+
- `processVideo()` for the full pipeline
|
|
563
|
+
- `ideate()` plus `ideas.*` CRUD helpers
|
|
564
|
+
- `schedule.*` helpers for slots, calendar, and realignment
|
|
565
|
+
- `video.*` helpers for clips, captions, silence detection, variants, and frames
|
|
566
|
+
- `social.generatePosts()` for quick platform-specific drafts
|
|
567
|
+
- `doctor()` and `config.*` for diagnostics and configuration access
|
|
568
|
+
|
|
569
|
+
See [docs/sdk.md](./docs/sdk.md) for the full SDK guide.
|
|
570
|
+
|