vidpipe 1.3.8 → 1.3.10

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 CHANGED
@@ -96,6 +96,9 @@ vidpipe --watch-dir ~/Videos/Recordings
96
96
  # Generate a saved idea bank for future recordings
97
97
  vidpipe ideate --topics "GitHub Copilot, Azure, TypeScript" --count 4
98
98
 
99
+ # Add a single idea with AI enrichment
100
+ vidpipe ideate --add --topic "Building CI/CD with GitHub Actions"
101
+
99
102
  # Full example with options
100
103
  vidpipe \
101
104
  --watch-dir ~/Videos/Recordings \
@@ -162,6 +165,17 @@ vidpipe doctor # Check all prerequisites
162
165
  | `--format <format>` | Output format: `table` (default) or `json` |
163
166
  | `--output <dir>` | Ideas directory (default: `./ideas`) |
164
167
  | `--brand <path>` | Brand config path (default: `./brand.json`) |
168
+ | `--add` | Create a single idea (AI-enriched by default) |
169
+ | `--topic <topic>` | Topic for the idea (required with `--add`) |
170
+ | `--hook <hook>` | Opening hook (AI-generated if omitted) |
171
+ | `--audience <audience>` | Target audience (default: `"developers"`) |
172
+ | `--platforms <list>` | Comma-separated platforms: `youtube,tiktok,instagram,linkedin,x` |
173
+ | `--key-takeaway <msg>` | Core message (AI-generated if omitted) |
174
+ | `--talking-points <list>` | Comma-separated talking points |
175
+ | `--tags <list>` | Comma-separated categorization tags |
176
+ | `--publish-by <date>` | Publish-by date (default: 14 days from now) |
177
+ | `--trend-context <text>` | Trend research context |
178
+ | `--no-ai` | Skip AI research agent, use CLI values + defaults |
165
179
 
166
180
  ---
167
181
 
@@ -233,6 +247,21 @@ vidpipe ideate --list --format json
233
247
  vidpipe process video.mp4 --ideas 12,15
234
248
  ```
235
249
 
250
+ ### Manual Idea Creation
251
+
252
+ Add a single idea with AI enrichment or direct CLI values:
253
+
254
+ ```bash
255
+ # AI-researched — full IdeationAgent with MCP research tools
256
+ vidpipe ideate --add --topic "Building CI/CD with GitHub Actions"
257
+
258
+ # Direct — skip AI, use CLI flags + defaults
259
+ vidpipe ideate --add --topic "Quick Demo" --no-ai --hook "Ship it live" --audience "developers"
260
+
261
+ # JSON output for programmatic consumers (e.g., VidRecord Electron app)
262
+ vidpipe ideate --add --topic "My Topic" --format json
263
+ ```
264
+
236
265
  ### How It Works
237
266
 
238
267
  The **IdeationAgent** uses MCP tools (Exa web search, YouTube, Perplexity) to research trending topics in your niche before generating ideas. Each idea includes:
@@ -483,3 +512,36 @@ Run `vidpipe doctor` to verify your setup.
483
512
 
484
513
  ISC © [htekdev](https://github.com/htekdev)
485
514
 
515
+ ---
516
+
517
+ ## 🧩 SDK Usage
518
+
519
+ VidPipe also ships as a Node.js ESM SDK for programmatic use:
520
+
521
+ ```ts
522
+ import { createVidPipe } from 'vidpipe'
523
+
524
+ const vidpipe = createVidPipe({
525
+ openaiApiKey: process.env.OPENAI_API_KEY,
526
+ outputDir: './recordings',
527
+ })
528
+
529
+ const result = await vidpipe.processVideo('./videos/demo.mp4', {
530
+ skipGit: true,
531
+ })
532
+
533
+ console.log(result.video.videoDir)
534
+ console.log(result.shorts.length)
535
+ ```
536
+
537
+ SDK features include:
538
+
539
+ - `processVideo()` for the full pipeline
540
+ - `ideate()` plus `ideas.*` CRUD helpers
541
+ - `schedule.*` helpers for slots, calendar, and realignment
542
+ - `video.*` helpers for clips, captions, silence detection, variants, and frames
543
+ - `social.generatePosts()` for quick platform-specific drafts
544
+ - `doctor()` and `config.*` for diagnostics and configuration access
545
+
546
+ See [docs/sdk.md](./docs/sdk.md) for the full SDK guide.
547
+