@vibeframe/cli 0.27.0
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-lint.log +21 -0
- package/.turbo/turbo-test.log +689 -0
- package/dist/agent/adapters/claude.d.ts +15 -0
- package/dist/agent/adapters/claude.d.ts.map +1 -0
- package/dist/agent/adapters/claude.js +119 -0
- package/dist/agent/adapters/claude.js.map +1 -0
- package/dist/agent/adapters/gemini.d.ts +15 -0
- package/dist/agent/adapters/gemini.d.ts.map +1 -0
- package/dist/agent/adapters/gemini.js +132 -0
- package/dist/agent/adapters/gemini.js.map +1 -0
- package/dist/agent/adapters/index.d.ts +27 -0
- package/dist/agent/adapters/index.d.ts.map +1 -0
- package/dist/agent/adapters/index.js +38 -0
- package/dist/agent/adapters/index.js.map +1 -0
- package/dist/agent/adapters/ollama.d.ts +20 -0
- package/dist/agent/adapters/ollama.d.ts.map +1 -0
- package/dist/agent/adapters/ollama.js +186 -0
- package/dist/agent/adapters/ollama.js.map +1 -0
- package/dist/agent/adapters/openai.d.ts +15 -0
- package/dist/agent/adapters/openai.d.ts.map +1 -0
- package/dist/agent/adapters/openai.js +92 -0
- package/dist/agent/adapters/openai.js.map +1 -0
- package/dist/agent/adapters/xai.d.ts +15 -0
- package/dist/agent/adapters/xai.d.ts.map +1 -0
- package/dist/agent/adapters/xai.js +95 -0
- package/dist/agent/adapters/xai.js.map +1 -0
- package/dist/agent/index.d.ts +69 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +180 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/memory/index.d.ts +70 -0
- package/dist/agent/memory/index.d.ts.map +1 -0
- package/dist/agent/memory/index.js +132 -0
- package/dist/agent/memory/index.js.map +1 -0
- package/dist/agent/prompts/system.d.ts +6 -0
- package/dist/agent/prompts/system.d.ts.map +1 -0
- package/dist/agent/prompts/system.js +103 -0
- package/dist/agent/prompts/system.js.map +1 -0
- package/dist/agent/tools/ai-editing.d.ts +15 -0
- package/dist/agent/tools/ai-editing.d.ts.map +1 -0
- package/dist/agent/tools/ai-editing.js +763 -0
- package/dist/agent/tools/ai-editing.js.map +1 -0
- package/dist/agent/tools/ai-generation.d.ts +13 -0
- package/dist/agent/tools/ai-generation.d.ts.map +1 -0
- package/dist/agent/tools/ai-generation.js +973 -0
- package/dist/agent/tools/ai-generation.js.map +1 -0
- package/dist/agent/tools/ai-pipeline.d.ts +14 -0
- package/dist/agent/tools/ai-pipeline.d.ts.map +1 -0
- package/dist/agent/tools/ai-pipeline.js +961 -0
- package/dist/agent/tools/ai-pipeline.js.map +1 -0
- package/dist/agent/tools/ai.d.ts +13 -0
- package/dist/agent/tools/ai.d.ts.map +1 -0
- package/dist/agent/tools/ai.js +19 -0
- package/dist/agent/tools/ai.js.map +1 -0
- package/dist/agent/tools/batch.d.ts +6 -0
- package/dist/agent/tools/batch.d.ts.map +1 -0
- package/dist/agent/tools/batch.js +383 -0
- package/dist/agent/tools/batch.js.map +1 -0
- package/dist/agent/tools/e2e.test.d.ts +26 -0
- package/dist/agent/tools/e2e.test.d.ts.map +1 -0
- package/dist/agent/tools/e2e.test.js +397 -0
- package/dist/agent/tools/e2e.test.js.map +1 -0
- package/dist/agent/tools/export.d.ts +6 -0
- package/dist/agent/tools/export.d.ts.map +1 -0
- package/dist/agent/tools/export.js +171 -0
- package/dist/agent/tools/export.js.map +1 -0
- package/dist/agent/tools/filesystem.d.ts +6 -0
- package/dist/agent/tools/filesystem.d.ts.map +1 -0
- package/dist/agent/tools/filesystem.js +212 -0
- package/dist/agent/tools/filesystem.js.map +1 -0
- package/dist/agent/tools/index.d.ts +65 -0
- package/dist/agent/tools/index.d.ts.map +1 -0
- package/dist/agent/tools/index.js +120 -0
- package/dist/agent/tools/index.js.map +1 -0
- package/dist/agent/tools/integration.test.d.ts +11 -0
- package/dist/agent/tools/integration.test.d.ts.map +1 -0
- package/dist/agent/tools/integration.test.js +659 -0
- package/dist/agent/tools/integration.test.js.map +1 -0
- package/dist/agent/tools/media.d.ts +6 -0
- package/dist/agent/tools/media.d.ts.map +1 -0
- package/dist/agent/tools/media.js +616 -0
- package/dist/agent/tools/media.js.map +1 -0
- package/dist/agent/tools/project.d.ts +6 -0
- package/dist/agent/tools/project.d.ts.map +1 -0
- package/dist/agent/tools/project.js +284 -0
- package/dist/agent/tools/project.js.map +1 -0
- package/dist/agent/tools/timeline.d.ts +6 -0
- package/dist/agent/tools/timeline.d.ts.map +1 -0
- package/dist/agent/tools/timeline.js +873 -0
- package/dist/agent/tools/timeline.js.map +1 -0
- package/dist/agent/types.d.ts +59 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +5 -0
- package/dist/agent/types.js.map +1 -0
- package/dist/commands/agent.d.ts +21 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/agent.js +290 -0
- package/dist/commands/agent.js.map +1 -0
- package/dist/commands/ai-analyze.d.ts +106 -0
- package/dist/commands/ai-analyze.d.ts.map +1 -0
- package/dist/commands/ai-analyze.js +327 -0
- package/dist/commands/ai-analyze.js.map +1 -0
- package/dist/commands/ai-animated-caption.d.ts +64 -0
- package/dist/commands/ai-animated-caption.d.ts.map +1 -0
- package/dist/commands/ai-animated-caption.js +272 -0
- package/dist/commands/ai-animated-caption.js.map +1 -0
- package/dist/commands/ai-audio.d.ts +20 -0
- package/dist/commands/ai-audio.d.ts.map +1 -0
- package/dist/commands/ai-audio.js +808 -0
- package/dist/commands/ai-audio.js.map +1 -0
- package/dist/commands/ai-broll.d.ts +15 -0
- package/dist/commands/ai-broll.d.ts.map +1 -0
- package/dist/commands/ai-broll.js +406 -0
- package/dist/commands/ai-broll.js.map +1 -0
- package/dist/commands/ai-edit-cli.d.ts +14 -0
- package/dist/commands/ai-edit-cli.d.ts.map +1 -0
- package/dist/commands/ai-edit-cli.js +579 -0
- package/dist/commands/ai-edit-cli.js.map +1 -0
- package/dist/commands/ai-edit.d.ts +398 -0
- package/dist/commands/ai-edit.d.ts.map +1 -0
- package/dist/commands/ai-edit.js +1019 -0
- package/dist/commands/ai-edit.js.map +1 -0
- package/dist/commands/ai-fill-gaps.d.ts +14 -0
- package/dist/commands/ai-fill-gaps.d.ts.map +1 -0
- package/dist/commands/ai-fill-gaps.js +451 -0
- package/dist/commands/ai-fill-gaps.js.map +1 -0
- package/dist/commands/ai-helpers.d.ts +20 -0
- package/dist/commands/ai-helpers.d.ts.map +1 -0
- package/dist/commands/ai-helpers.js +59 -0
- package/dist/commands/ai-helpers.js.map +1 -0
- package/dist/commands/ai-highlights.d.ts +127 -0
- package/dist/commands/ai-highlights.d.ts.map +1 -0
- package/dist/commands/ai-highlights.js +1026 -0
- package/dist/commands/ai-highlights.js.map +1 -0
- package/dist/commands/ai-image.d.ts +34 -0
- package/dist/commands/ai-image.d.ts.map +1 -0
- package/dist/commands/ai-image.js +653 -0
- package/dist/commands/ai-image.js.map +1 -0
- package/dist/commands/ai-motion.d.ts +50 -0
- package/dist/commands/ai-motion.d.ts.map +1 -0
- package/dist/commands/ai-motion.js +271 -0
- package/dist/commands/ai-motion.js.map +1 -0
- package/dist/commands/ai-narrate.d.ts +66 -0
- package/dist/commands/ai-narrate.d.ts.map +1 -0
- package/dist/commands/ai-narrate.js +329 -0
- package/dist/commands/ai-narrate.js.map +1 -0
- package/dist/commands/ai-review.d.ts +57 -0
- package/dist/commands/ai-review.d.ts.map +1 -0
- package/dist/commands/ai-review.js +251 -0
- package/dist/commands/ai-review.js.map +1 -0
- package/dist/commands/ai-script-pipeline-cli.d.ts +9 -0
- package/dist/commands/ai-script-pipeline-cli.d.ts.map +1 -0
- package/dist/commands/ai-script-pipeline-cli.js +1494 -0
- package/dist/commands/ai-script-pipeline-cli.js.map +1 -0
- package/dist/commands/ai-script-pipeline.d.ts +259 -0
- package/dist/commands/ai-script-pipeline.d.ts.map +1 -0
- package/dist/commands/ai-script-pipeline.js +1027 -0
- package/dist/commands/ai-script-pipeline.js.map +1 -0
- package/dist/commands/ai-suggest-edit.d.ts +14 -0
- package/dist/commands/ai-suggest-edit.d.ts.map +1 -0
- package/dist/commands/ai-suggest-edit.js +220 -0
- package/dist/commands/ai-suggest-edit.js.map +1 -0
- package/dist/commands/ai-video-fx.d.ts +14 -0
- package/dist/commands/ai-video-fx.d.ts.map +1 -0
- package/dist/commands/ai-video-fx.js +395 -0
- package/dist/commands/ai-video-fx.js.map +1 -0
- package/dist/commands/ai-video.d.ts +15 -0
- package/dist/commands/ai-video.d.ts.map +1 -0
- package/dist/commands/ai-video.js +785 -0
- package/dist/commands/ai-video.js.map +1 -0
- package/dist/commands/ai-viral.d.ts +15 -0
- package/dist/commands/ai-viral.d.ts.map +1 -0
- package/dist/commands/ai-viral.js +519 -0
- package/dist/commands/ai-viral.js.map +1 -0
- package/dist/commands/ai-visual-fx.d.ts +14 -0
- package/dist/commands/ai-visual-fx.d.ts.map +1 -0
- package/dist/commands/ai-visual-fx.js +505 -0
- package/dist/commands/ai-visual-fx.js.map +1 -0
- package/dist/commands/ai.d.ts +38 -0
- package/dist/commands/ai.d.ts.map +1 -0
- package/dist/commands/ai.js +225 -0
- package/dist/commands/ai.js.map +1 -0
- package/dist/commands/ai.test.d.ts +2 -0
- package/dist/commands/ai.test.d.ts.map +1 -0
- package/dist/commands/ai.test.js +554 -0
- package/dist/commands/ai.test.js.map +1 -0
- package/dist/commands/analyze.d.ts +16 -0
- package/dist/commands/analyze.d.ts.map +1 -0
- package/dist/commands/analyze.js +247 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/audio.d.ts +18 -0
- package/dist/commands/audio.d.ts.map +1 -0
- package/dist/commands/audio.js +539 -0
- package/dist/commands/audio.js.map +1 -0
- package/dist/commands/batch.d.ts +3 -0
- package/dist/commands/batch.d.ts.map +1 -0
- package/dist/commands/batch.js +366 -0
- package/dist/commands/batch.js.map +1 -0
- package/dist/commands/batch.test.d.ts +2 -0
- package/dist/commands/batch.test.d.ts.map +1 -0
- package/dist/commands/batch.test.js +203 -0
- package/dist/commands/batch.test.js.map +1 -0
- package/dist/commands/detect.d.ts +3 -0
- package/dist/commands/detect.d.ts.map +1 -0
- package/dist/commands/detect.js +273 -0
- package/dist/commands/detect.js.map +1 -0
- package/dist/commands/doctor.d.ts +6 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +191 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/edit-cmd.d.ts +26 -0
- package/dist/commands/edit-cmd.d.ts.map +1 -0
- package/dist/commands/edit-cmd.js +870 -0
- package/dist/commands/edit-cmd.js.map +1 -0
- package/dist/commands/export.d.ts +39 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +730 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/generate.d.ts +25 -0
- package/dist/commands/generate.d.ts.map +1 -0
- package/dist/commands/generate.js +1885 -0
- package/dist/commands/generate.js.map +1 -0
- package/dist/commands/media.d.ts +3 -0
- package/dist/commands/media.d.ts.map +1 -0
- package/dist/commands/media.js +165 -0
- package/dist/commands/media.js.map +1 -0
- package/dist/commands/output.d.ts +45 -0
- package/dist/commands/output.d.ts.map +1 -0
- package/dist/commands/output.js +122 -0
- package/dist/commands/output.js.map +1 -0
- package/dist/commands/pipeline.d.ts +19 -0
- package/dist/commands/pipeline.d.ts.map +1 -0
- package/dist/commands/pipeline.js +345 -0
- package/dist/commands/pipeline.js.map +1 -0
- package/dist/commands/project.d.ts +3 -0
- package/dist/commands/project.d.ts.map +1 -0
- package/dist/commands/project.js +139 -0
- package/dist/commands/project.js.map +1 -0
- package/dist/commands/project.test.d.ts +2 -0
- package/dist/commands/project.test.d.ts.map +1 -0
- package/dist/commands/project.test.js +105 -0
- package/dist/commands/project.test.js.map +1 -0
- package/dist/commands/sanitize.d.ts +21 -0
- package/dist/commands/sanitize.d.ts.map +1 -0
- package/dist/commands/sanitize.js +56 -0
- package/dist/commands/sanitize.js.map +1 -0
- package/dist/commands/schema.d.ts +11 -0
- package/dist/commands/schema.d.ts.map +1 -0
- package/dist/commands/schema.js +101 -0
- package/dist/commands/schema.js.map +1 -0
- package/dist/commands/setup.d.ts +6 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +440 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/timeline.d.ts +3 -0
- package/dist/commands/timeline.d.ts.map +1 -0
- package/dist/commands/timeline.js +469 -0
- package/dist/commands/timeline.js.map +1 -0
- package/dist/commands/timeline.test.d.ts +2 -0
- package/dist/commands/timeline.test.d.ts.map +1 -0
- package/dist/commands/timeline.test.js +320 -0
- package/dist/commands/timeline.test.js.map +1 -0
- package/dist/commands/validate.d.ts +32 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +63 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/config/config.test.d.ts +2 -0
- package/dist/config/config.test.d.ts.map +1 -0
- package/dist/config/config.test.js +164 -0
- package/dist/config/config.test.js.map +1 -0
- package/dist/config/index.d.ts +35 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +101 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/schema.d.ts +43 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +42 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/engine/index.d.ts +3 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +2 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/project.d.ts +84 -0
- package/dist/engine/project.d.ts.map +1 -0
- package/dist/engine/project.js +355 -0
- package/dist/engine/project.js.map +1 -0
- package/dist/engine/project.test.d.ts +2 -0
- package/dist/engine/project.test.d.ts.map +1 -0
- package/dist/engine/project.test.js +599 -0
- package/dist/engine/project.test.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +131 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/api-key.d.ts +36 -0
- package/dist/utils/api-key.d.ts.map +1 -0
- package/dist/utils/api-key.js +211 -0
- package/dist/utils/api-key.js.map +1 -0
- package/dist/utils/api-key.test.d.ts +2 -0
- package/dist/utils/api-key.test.d.ts.map +1 -0
- package/dist/utils/api-key.test.js +35 -0
- package/dist/utils/api-key.test.js.map +1 -0
- package/dist/utils/audio.d.ts +23 -0
- package/dist/utils/audio.d.ts.map +1 -0
- package/dist/utils/audio.js +79 -0
- package/dist/utils/audio.js.map +1 -0
- package/dist/utils/exec-safe.d.ts +22 -0
- package/dist/utils/exec-safe.d.ts.map +1 -0
- package/dist/utils/exec-safe.js +62 -0
- package/dist/utils/exec-safe.js.map +1 -0
- package/dist/utils/first-run.d.ts +13 -0
- package/dist/utils/first-run.d.ts.map +1 -0
- package/dist/utils/first-run.js +48 -0
- package/dist/utils/first-run.js.map +1 -0
- package/dist/utils/provider-resolver.d.ts +15 -0
- package/dist/utils/provider-resolver.d.ts.map +1 -0
- package/dist/utils/provider-resolver.js +42 -0
- package/dist/utils/provider-resolver.js.map +1 -0
- package/dist/utils/remotion.d.ts +210 -0
- package/dist/utils/remotion.d.ts.map +1 -0
- package/dist/utils/remotion.js +731 -0
- package/dist/utils/remotion.js.map +1 -0
- package/dist/utils/subtitle.d.ts +65 -0
- package/dist/utils/subtitle.d.ts.map +1 -0
- package/dist/utils/subtitle.js +135 -0
- package/dist/utils/subtitle.js.map +1 -0
- package/dist/utils/subtitle.test.d.ts +2 -0
- package/dist/utils/subtitle.test.d.ts.map +1 -0
- package/dist/utils/subtitle.test.js +175 -0
- package/dist/utils/subtitle.test.js.map +1 -0
- package/dist/utils/tty.d.ts +45 -0
- package/dist/utils/tty.d.ts.map +1 -0
- package/dist/utils/tty.js +172 -0
- package/dist/utils/tty.js.map +1 -0
- package/package.json +102 -0
- package/src/agent/adapters/claude.ts +143 -0
- package/src/agent/adapters/gemini.ts +159 -0
- package/src/agent/adapters/index.ts +61 -0
- package/src/agent/adapters/ollama.ts +231 -0
- package/src/agent/adapters/openai.ts +116 -0
- package/src/agent/adapters/xai.ts +119 -0
- package/src/agent/index.ts +251 -0
- package/src/agent/memory/index.ts +151 -0
- package/src/agent/prompts/system.ts +106 -0
- package/src/agent/tools/ai-editing.ts +845 -0
- package/src/agent/tools/ai-generation.ts +1073 -0
- package/src/agent/tools/ai-pipeline.ts +1055 -0
- package/src/agent/tools/ai.ts +21 -0
- package/src/agent/tools/batch.ts +429 -0
- package/src/agent/tools/e2e.test.ts +545 -0
- package/src/agent/tools/export.ts +184 -0
- package/src/agent/tools/filesystem.ts +237 -0
- package/src/agent/tools/index.ts +150 -0
- package/src/agent/tools/integration.test.ts +775 -0
- package/src/agent/tools/media.ts +697 -0
- package/src/agent/tools/project.ts +313 -0
- package/src/agent/tools/timeline.ts +951 -0
- package/src/agent/types.ts +68 -0
- package/src/commands/agent.ts +340 -0
- package/src/commands/ai-analyze.ts +429 -0
- package/src/commands/ai-animated-caption.ts +390 -0
- package/src/commands/ai-audio.ts +941 -0
- package/src/commands/ai-broll.ts +490 -0
- package/src/commands/ai-edit-cli.ts +658 -0
- package/src/commands/ai-edit.ts +1542 -0
- package/src/commands/ai-fill-gaps.ts +566 -0
- package/src/commands/ai-helpers.ts +65 -0
- package/src/commands/ai-highlights.ts +1303 -0
- package/src/commands/ai-image.ts +761 -0
- package/src/commands/ai-motion.ts +347 -0
- package/src/commands/ai-narrate.ts +451 -0
- package/src/commands/ai-review.ts +309 -0
- package/src/commands/ai-script-pipeline-cli.ts +1710 -0
- package/src/commands/ai-script-pipeline.ts +1365 -0
- package/src/commands/ai-suggest-edit.ts +264 -0
- package/src/commands/ai-video-fx.ts +445 -0
- package/src/commands/ai-video.ts +915 -0
- package/src/commands/ai-viral.ts +595 -0
- package/src/commands/ai-visual-fx.ts +601 -0
- package/src/commands/ai.test.ts +627 -0
- package/src/commands/ai.ts +307 -0
- package/src/commands/analyze.ts +282 -0
- package/src/commands/audio.ts +644 -0
- package/src/commands/batch.test.ts +279 -0
- package/src/commands/batch.ts +440 -0
- package/src/commands/detect.ts +329 -0
- package/src/commands/doctor.ts +237 -0
- package/src/commands/edit-cmd.ts +1014 -0
- package/src/commands/export.ts +918 -0
- package/src/commands/generate.ts +2146 -0
- package/src/commands/media.ts +177 -0
- package/src/commands/output.ts +142 -0
- package/src/commands/pipeline.ts +398 -0
- package/src/commands/project.test.ts +127 -0
- package/src/commands/project.ts +149 -0
- package/src/commands/sanitize.ts +60 -0
- package/src/commands/schema.ts +130 -0
- package/src/commands/setup.ts +509 -0
- package/src/commands/timeline.test.ts +499 -0
- package/src/commands/timeline.ts +529 -0
- package/src/commands/validate.ts +77 -0
- package/src/config/config.test.ts +197 -0
- package/src/config/index.ts +125 -0
- package/src/config/schema.ts +82 -0
- package/src/engine/index.ts +2 -0
- package/src/engine/project.test.ts +702 -0
- package/src/engine/project.ts +439 -0
- package/src/index.ts +146 -0
- package/src/utils/api-key.test.ts +41 -0
- package/src/utils/api-key.ts +247 -0
- package/src/utils/audio.ts +83 -0
- package/src/utils/exec-safe.ts +75 -0
- package/src/utils/first-run.ts +52 -0
- package/src/utils/provider-resolver.ts +56 -0
- package/src/utils/remotion.ts +951 -0
- package/src/utils/subtitle.test.ts +227 -0
- package/src/utils/subtitle.ts +169 -0
- package/src/utils/tty.ts +196 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { execSync } from "child_process";
|
|
3
|
+
import { resolve } from "path";
|
|
4
|
+
import { detectFillerRanges, DEFAULT_FILLER_WORDS } from "./ai-edit.js";
|
|
5
|
+
const CLI = `npx tsx ${resolve(__dirname, "../index.ts")}`;
|
|
6
|
+
describe("CLI command groups", () => {
|
|
7
|
+
describe("audio transcribe", () => {
|
|
8
|
+
it("fails without API key", () => {
|
|
9
|
+
expect(() => {
|
|
10
|
+
execSync(`${CLI} audio transcribe /tmp/nonexistent.mp3`, {
|
|
11
|
+
cwd: process.cwd(),
|
|
12
|
+
encoding: "utf-8",
|
|
13
|
+
env: { ...process.env, OPENAI_API_KEY: undefined },
|
|
14
|
+
});
|
|
15
|
+
}).toThrow();
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
describe("analyze suggest", () => {
|
|
19
|
+
it("fails without API key", () => {
|
|
20
|
+
expect(() => {
|
|
21
|
+
execSync(`${CLI} analyze suggest /tmp/nonexistent.json "trim clip"`, {
|
|
22
|
+
cwd: process.cwd(),
|
|
23
|
+
encoding: "utf-8",
|
|
24
|
+
env: { ...process.env, GOOGLE_API_KEY: undefined },
|
|
25
|
+
});
|
|
26
|
+
}).toThrow();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
describe("pipeline highlights", () => {
|
|
30
|
+
it("shows help", () => {
|
|
31
|
+
const output = execSync(`${CLI} pipeline highlights --help`, {
|
|
32
|
+
cwd: process.cwd(),
|
|
33
|
+
encoding: "utf-8",
|
|
34
|
+
});
|
|
35
|
+
expect(output).toContain("Extract highlights");
|
|
36
|
+
expect(output).toContain("--threshold");
|
|
37
|
+
expect(output).toContain("--criteria");
|
|
38
|
+
expect(output).toContain("--duration");
|
|
39
|
+
expect(output).toContain("--count");
|
|
40
|
+
expect(output).toContain("--output");
|
|
41
|
+
expect(output).toContain("--project");
|
|
42
|
+
});
|
|
43
|
+
it("fails without API keys", () => {
|
|
44
|
+
expect(() => {
|
|
45
|
+
execSync(`${CLI} pipeline highlights /tmp/nonexistent.mp4`, {
|
|
46
|
+
cwd: process.cwd(),
|
|
47
|
+
encoding: "utf-8",
|
|
48
|
+
env: { ...process.env, OPENAI_API_KEY: undefined, ANTHROPIC_API_KEY: undefined },
|
|
49
|
+
});
|
|
50
|
+
}).toThrow();
|
|
51
|
+
});
|
|
52
|
+
it("fails with nonexistent file", () => {
|
|
53
|
+
expect(() => {
|
|
54
|
+
execSync(`${CLI} pipeline highlights /tmp/nonexistent_video_12345.mp4`, {
|
|
55
|
+
cwd: process.cwd(),
|
|
56
|
+
encoding: "utf-8",
|
|
57
|
+
env: { ...process.env, OPENAI_API_KEY: "test", ANTHROPIC_API_KEY: "test" },
|
|
58
|
+
});
|
|
59
|
+
}).toThrow();
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
describe("pipeline b-roll", () => {
|
|
63
|
+
it("shows help", () => {
|
|
64
|
+
const output = execSync(`${CLI} pipeline b-roll --help`, {
|
|
65
|
+
cwd: process.cwd(),
|
|
66
|
+
encoding: "utf-8",
|
|
67
|
+
});
|
|
68
|
+
expect(output).toContain("Match B-roll footage");
|
|
69
|
+
expect(output).toContain("--threshold");
|
|
70
|
+
expect(output).toContain("--broll");
|
|
71
|
+
expect(output).toContain("--broll-dir");
|
|
72
|
+
expect(output).toContain("--output");
|
|
73
|
+
expect(output).toContain("--analyze-only");
|
|
74
|
+
expect(output).toContain("--language");
|
|
75
|
+
});
|
|
76
|
+
it("fails without B-roll files", () => {
|
|
77
|
+
expect(() => {
|
|
78
|
+
execSync(`${CLI} pipeline b-roll "test narration"`, {
|
|
79
|
+
cwd: process.cwd(),
|
|
80
|
+
encoding: "utf-8",
|
|
81
|
+
env: { ...process.env, OPENAI_API_KEY: "test", ANTHROPIC_API_KEY: "test" },
|
|
82
|
+
});
|
|
83
|
+
}).toThrow();
|
|
84
|
+
});
|
|
85
|
+
it("fails without API keys", () => {
|
|
86
|
+
expect(() => {
|
|
87
|
+
execSync(`${CLI} pipeline b-roll test.mp3 -b clip.mp4`, {
|
|
88
|
+
cwd: process.cwd(),
|
|
89
|
+
encoding: "utf-8",
|
|
90
|
+
env: { ...process.env, OPENAI_API_KEY: undefined, ANTHROPIC_API_KEY: undefined },
|
|
91
|
+
});
|
|
92
|
+
}).toThrow();
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
describe("pipeline viral", () => {
|
|
96
|
+
it("shows help", () => {
|
|
97
|
+
const output = execSync(`${CLI} pipeline viral --help`, {
|
|
98
|
+
cwd: process.cwd(),
|
|
99
|
+
encoding: "utf-8",
|
|
100
|
+
});
|
|
101
|
+
expect(output).toContain("Optimize video for viral potential");
|
|
102
|
+
expect(output).toContain("--platforms");
|
|
103
|
+
expect(output).toContain("--output-dir");
|
|
104
|
+
expect(output).toContain("--analyze-only");
|
|
105
|
+
expect(output).toContain("--skip-captions");
|
|
106
|
+
expect(output).toContain("--caption-style");
|
|
107
|
+
expect(output).toContain("--hook-duration");
|
|
108
|
+
});
|
|
109
|
+
it("validates platform names", () => {
|
|
110
|
+
expect(() => {
|
|
111
|
+
execSync(`${CLI} pipeline viral /tmp/test.vibe.json --platforms invalid-platform`, {
|
|
112
|
+
cwd: process.cwd(),
|
|
113
|
+
encoding: "utf-8",
|
|
114
|
+
env: { ...process.env, OPENAI_API_KEY: "test", ANTHROPIC_API_KEY: "test" },
|
|
115
|
+
});
|
|
116
|
+
}).toThrow();
|
|
117
|
+
});
|
|
118
|
+
it("fails without API keys", () => {
|
|
119
|
+
expect(() => {
|
|
120
|
+
execSync(`${CLI} pipeline viral /tmp/test.vibe.json`, {
|
|
121
|
+
cwd: process.cwd(),
|
|
122
|
+
encoding: "utf-8",
|
|
123
|
+
env: { ...process.env, OPENAI_API_KEY: undefined, ANTHROPIC_API_KEY: undefined },
|
|
124
|
+
});
|
|
125
|
+
}).toThrow();
|
|
126
|
+
});
|
|
127
|
+
it("fails with nonexistent project", () => {
|
|
128
|
+
expect(() => {
|
|
129
|
+
execSync(`${CLI} pipeline viral /tmp/nonexistent_project_12345.vibe.json`, {
|
|
130
|
+
cwd: process.cwd(),
|
|
131
|
+
encoding: "utf-8",
|
|
132
|
+
env: { ...process.env, OPENAI_API_KEY: "test", ANTHROPIC_API_KEY: "test" },
|
|
133
|
+
});
|
|
134
|
+
}).toThrow();
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
describe("generate video-extend", () => {
|
|
138
|
+
it("shows help", () => {
|
|
139
|
+
const output = execSync(`${CLI} generate video-extend --help`, {
|
|
140
|
+
cwd: process.cwd(),
|
|
141
|
+
encoding: "utf-8",
|
|
142
|
+
});
|
|
143
|
+
expect(output).toContain("Extend video duration");
|
|
144
|
+
expect(output).toContain("--output");
|
|
145
|
+
expect(output).toContain("--prompt");
|
|
146
|
+
expect(output).toContain("--duration");
|
|
147
|
+
expect(output).toContain("--negative");
|
|
148
|
+
});
|
|
149
|
+
it("fails without API key", () => {
|
|
150
|
+
expect(() => {
|
|
151
|
+
execSync(`${CLI} generate video-extend /tmp/video.mp4`, {
|
|
152
|
+
cwd: process.cwd(),
|
|
153
|
+
encoding: "utf-8",
|
|
154
|
+
env: { ...process.env, KLING_API_KEY: undefined },
|
|
155
|
+
});
|
|
156
|
+
}).toThrow();
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
describe("edit upscale-video", () => {
|
|
160
|
+
it("shows help", () => {
|
|
161
|
+
const output = execSync(`${CLI} edit upscale-video --help`, {
|
|
162
|
+
cwd: process.cwd(),
|
|
163
|
+
encoding: "utf-8",
|
|
164
|
+
});
|
|
165
|
+
expect(output).toContain("Upscale video resolution");
|
|
166
|
+
expect(output).toContain("--output");
|
|
167
|
+
expect(output).toContain("--scale");
|
|
168
|
+
expect(output).toContain("--model");
|
|
169
|
+
expect(output).toContain("--ffmpeg");
|
|
170
|
+
});
|
|
171
|
+
it("validates scale option", () => {
|
|
172
|
+
expect(() => {
|
|
173
|
+
execSync(`${CLI} edit upscale-video /tmp/video.mp4 --scale 3 --ffmpeg`, {
|
|
174
|
+
cwd: process.cwd(),
|
|
175
|
+
encoding: "utf-8",
|
|
176
|
+
});
|
|
177
|
+
}).toThrow();
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
describe("edit interpolate", () => {
|
|
181
|
+
it("shows help", () => {
|
|
182
|
+
const output = execSync(`${CLI} edit interpolate --help`, {
|
|
183
|
+
cwd: process.cwd(),
|
|
184
|
+
encoding: "utf-8",
|
|
185
|
+
});
|
|
186
|
+
expect(output).toContain("slow motion");
|
|
187
|
+
expect(output).toContain("--output");
|
|
188
|
+
expect(output).toContain("--factor");
|
|
189
|
+
expect(output).toContain("--fps");
|
|
190
|
+
expect(output).toContain("--quality");
|
|
191
|
+
});
|
|
192
|
+
it("validates factor option", () => {
|
|
193
|
+
expect(() => {
|
|
194
|
+
execSync(`${CLI} edit interpolate /tmp/video.mp4 --factor 3`, {
|
|
195
|
+
cwd: process.cwd(),
|
|
196
|
+
encoding: "utf-8",
|
|
197
|
+
});
|
|
198
|
+
}).toThrow();
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
// Voice & Audio Features
|
|
202
|
+
describe("audio voice-clone", () => {
|
|
203
|
+
it("shows help", () => {
|
|
204
|
+
const output = execSync(`${CLI} audio voice-clone --help`, {
|
|
205
|
+
cwd: process.cwd(),
|
|
206
|
+
encoding: "utf-8",
|
|
207
|
+
});
|
|
208
|
+
expect(output).toContain("Clone a voice");
|
|
209
|
+
expect(output).toContain("--name");
|
|
210
|
+
expect(output).toContain("--description");
|
|
211
|
+
expect(output).toContain("--labels");
|
|
212
|
+
expect(output).toContain("--remove-noise");
|
|
213
|
+
expect(output).toContain("--list");
|
|
214
|
+
});
|
|
215
|
+
it("requires name option when cloning", () => {
|
|
216
|
+
expect(() => {
|
|
217
|
+
execSync(`${CLI} audio voice-clone sample.mp3`, {
|
|
218
|
+
cwd: process.cwd(),
|
|
219
|
+
encoding: "utf-8",
|
|
220
|
+
env: { ...process.env, ELEVENLABS_API_KEY: "test" },
|
|
221
|
+
});
|
|
222
|
+
}).toThrow();
|
|
223
|
+
});
|
|
224
|
+
it("fails without API key", () => {
|
|
225
|
+
expect(() => {
|
|
226
|
+
execSync(`${CLI} audio voice-clone sample.mp3 --name "TestVoice"`, {
|
|
227
|
+
cwd: process.cwd(),
|
|
228
|
+
encoding: "utf-8",
|
|
229
|
+
env: { ...process.env, ELEVENLABS_API_KEY: undefined },
|
|
230
|
+
});
|
|
231
|
+
}).toThrow();
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
describe("generate music", () => {
|
|
235
|
+
it("shows help", () => {
|
|
236
|
+
const output = execSync(`${CLI} generate music --help`, {
|
|
237
|
+
cwd: process.cwd(),
|
|
238
|
+
encoding: "utf-8",
|
|
239
|
+
});
|
|
240
|
+
expect(output).toContain("Generate background music");
|
|
241
|
+
expect(output).toContain("--duration");
|
|
242
|
+
expect(output).toContain("--melody");
|
|
243
|
+
expect(output).toContain("--model");
|
|
244
|
+
expect(output).toContain("--output");
|
|
245
|
+
expect(output).toContain("--no-wait");
|
|
246
|
+
});
|
|
247
|
+
it("requires API key or shows error", () => {
|
|
248
|
+
try {
|
|
249
|
+
const output = execSync(`${CLI} generate music "upbeat electronic" --no-wait`, {
|
|
250
|
+
cwd: process.cwd(),
|
|
251
|
+
encoding: "utf-8",
|
|
252
|
+
env: { ...process.env, REPLICATE_API_TOKEN: undefined },
|
|
253
|
+
timeout: 10000,
|
|
254
|
+
});
|
|
255
|
+
expect(output).toBeTruthy();
|
|
256
|
+
}
|
|
257
|
+
catch (error) {
|
|
258
|
+
const execError = error;
|
|
259
|
+
const errorOutput = execError.stderr || execError.stdout || "";
|
|
260
|
+
expect(errorOutput.toLowerCase()).toMatch(/api|key|token|replicate/i);
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
describe("generate music-status", () => {
|
|
265
|
+
it("shows help", () => {
|
|
266
|
+
const output = execSync(`${CLI} generate music-status --help`, {
|
|
267
|
+
cwd: process.cwd(),
|
|
268
|
+
encoding: "utf-8",
|
|
269
|
+
});
|
|
270
|
+
expect(output).toContain("Check music generation status");
|
|
271
|
+
expect(output).toContain("task-id");
|
|
272
|
+
});
|
|
273
|
+
it("requires API key or shows error", () => {
|
|
274
|
+
try {
|
|
275
|
+
const output = execSync(`${CLI} generate music-status test-task-id`, {
|
|
276
|
+
cwd: process.cwd(),
|
|
277
|
+
encoding: "utf-8",
|
|
278
|
+
env: { ...process.env, REPLICATE_API_TOKEN: undefined },
|
|
279
|
+
timeout: 10000,
|
|
280
|
+
});
|
|
281
|
+
expect(output).toBeTruthy();
|
|
282
|
+
}
|
|
283
|
+
catch (error) {
|
|
284
|
+
const execError = error;
|
|
285
|
+
const errorOutput = execError.stderr || execError.stdout || "";
|
|
286
|
+
expect(errorOutput.toLowerCase()).toMatch(/api|key|token|replicate|task|invalid/i);
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
describe("audio dub", () => {
|
|
291
|
+
it("shows help", () => {
|
|
292
|
+
const output = execSync(`${CLI} audio dub --help`, {
|
|
293
|
+
cwd: process.cwd(),
|
|
294
|
+
encoding: "utf-8",
|
|
295
|
+
});
|
|
296
|
+
expect(output).toContain("Dub audio/video");
|
|
297
|
+
expect(output).toContain("--language");
|
|
298
|
+
expect(output).toContain("--source");
|
|
299
|
+
expect(output).toContain("--voice");
|
|
300
|
+
expect(output).toContain("--analyze-only");
|
|
301
|
+
expect(output).toContain("--output");
|
|
302
|
+
});
|
|
303
|
+
it("requires language option", () => {
|
|
304
|
+
expect(() => {
|
|
305
|
+
execSync(`${CLI} audio dub /tmp/video.mp4`, {
|
|
306
|
+
cwd: process.cwd(),
|
|
307
|
+
encoding: "utf-8",
|
|
308
|
+
env: { ...process.env, OPENAI_API_KEY: "test", ANTHROPIC_API_KEY: "test" },
|
|
309
|
+
});
|
|
310
|
+
}).toThrow();
|
|
311
|
+
});
|
|
312
|
+
it("fails without API keys", () => {
|
|
313
|
+
expect(() => {
|
|
314
|
+
execSync(`${CLI} audio dub /tmp/video.mp4 -l es`, {
|
|
315
|
+
cwd: process.cwd(),
|
|
316
|
+
encoding: "utf-8",
|
|
317
|
+
env: { ...process.env, OPENAI_API_KEY: undefined, ANTHROPIC_API_KEY: undefined },
|
|
318
|
+
});
|
|
319
|
+
}).toThrow();
|
|
320
|
+
});
|
|
321
|
+
it("fails with nonexistent file", () => {
|
|
322
|
+
expect(() => {
|
|
323
|
+
execSync(`${CLI} audio dub /tmp/nonexistent_video_12345.mp4 -l es`, {
|
|
324
|
+
cwd: process.cwd(),
|
|
325
|
+
encoding: "utf-8",
|
|
326
|
+
env: { ...process.env, OPENAI_API_KEY: "test", ANTHROPIC_API_KEY: "test", ELEVENLABS_API_KEY: "test" },
|
|
327
|
+
});
|
|
328
|
+
}).toThrow();
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
describe("edit jump-cut", () => {
|
|
332
|
+
it("shows help", () => {
|
|
333
|
+
const output = execSync(`${CLI} edit jump-cut --help`, {
|
|
334
|
+
cwd: process.cwd(),
|
|
335
|
+
encoding: "utf-8",
|
|
336
|
+
});
|
|
337
|
+
expect(output).toContain("Remove filler words");
|
|
338
|
+
expect(output).toContain("--fillers");
|
|
339
|
+
expect(output).toContain("--padding");
|
|
340
|
+
expect(output).toContain("--analyze-only");
|
|
341
|
+
expect(output).toContain("--language");
|
|
342
|
+
expect(output).toContain("--api-key");
|
|
343
|
+
expect(output).toContain("--output");
|
|
344
|
+
});
|
|
345
|
+
it("fails with nonexistent file", () => {
|
|
346
|
+
expect(() => {
|
|
347
|
+
execSync(`${CLI} edit jump-cut /tmp/nonexistent_video_12345.mp4`, {
|
|
348
|
+
cwd: process.cwd(),
|
|
349
|
+
encoding: "utf-8",
|
|
350
|
+
env: { ...process.env, OPENAI_API_KEY: "test" },
|
|
351
|
+
});
|
|
352
|
+
}).toThrow();
|
|
353
|
+
});
|
|
354
|
+
it("fails without API key", () => {
|
|
355
|
+
expect(() => {
|
|
356
|
+
execSync(`${CLI} edit jump-cut /tmp/nonexistent.mp4`, {
|
|
357
|
+
cwd: process.cwd(),
|
|
358
|
+
encoding: "utf-8",
|
|
359
|
+
env: { ...process.env, OPENAI_API_KEY: undefined },
|
|
360
|
+
});
|
|
361
|
+
}).toThrow();
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
describe("detectFillerRanges", () => {
|
|
365
|
+
const words = [
|
|
366
|
+
{ word: "Hello", start: 0.0, end: 0.5 },
|
|
367
|
+
{ word: "um", start: 0.6, end: 0.9 },
|
|
368
|
+
{ word: "I", start: 1.0, end: 1.1 },
|
|
369
|
+
{ word: "think", start: 1.2, end: 1.5 },
|
|
370
|
+
{ word: "like", start: 1.6, end: 1.9 },
|
|
371
|
+
{ word: "this", start: 2.0, end: 2.3 },
|
|
372
|
+
{ word: "is", start: 2.4, end: 2.6 },
|
|
373
|
+
{ word: "basically", start: 2.7, end: 3.2 },
|
|
374
|
+
{ word: "great", start: 3.3, end: 3.6 },
|
|
375
|
+
];
|
|
376
|
+
it("detects filler words with default list", () => {
|
|
377
|
+
const result = detectFillerRanges(words, DEFAULT_FILLER_WORDS, 0.05);
|
|
378
|
+
expect(result.length).toBe(3);
|
|
379
|
+
expect(result[0].word).toBe("um");
|
|
380
|
+
expect(result[1].word).toBe("like");
|
|
381
|
+
expect(result[2].word).toBe("basically");
|
|
382
|
+
});
|
|
383
|
+
it("detects fillers case-insensitively", () => {
|
|
384
|
+
const mixedCase = [
|
|
385
|
+
{ word: "UM", start: 0.0, end: 0.3 },
|
|
386
|
+
{ word: "Like", start: 1.0, end: 1.3 },
|
|
387
|
+
];
|
|
388
|
+
const result = detectFillerRanges(mixedCase, DEFAULT_FILLER_WORDS, 0.05);
|
|
389
|
+
expect(result.length).toBe(2);
|
|
390
|
+
});
|
|
391
|
+
it("strips punctuation before matching", () => {
|
|
392
|
+
const punctuated = [
|
|
393
|
+
{ word: "um,", start: 0.0, end: 0.3 },
|
|
394
|
+
{ word: "like.", start: 1.0, end: 1.3 },
|
|
395
|
+
{ word: "right?", start: 2.0, end: 2.3 },
|
|
396
|
+
];
|
|
397
|
+
const result = detectFillerRanges(punctuated, DEFAULT_FILLER_WORDS, 0.05);
|
|
398
|
+
expect(result.length).toBe(3);
|
|
399
|
+
});
|
|
400
|
+
it("merges adjacent filler ranges within padding distance", () => {
|
|
401
|
+
const adjacent = [
|
|
402
|
+
{ word: "um", start: 1.0, end: 1.3 },
|
|
403
|
+
{ word: "uh", start: 1.35, end: 1.6 },
|
|
404
|
+
];
|
|
405
|
+
const result = detectFillerRanges(adjacent, DEFAULT_FILLER_WORDS, 0.05);
|
|
406
|
+
expect(result.length).toBe(1);
|
|
407
|
+
expect(result[0].start).toBe(1.0);
|
|
408
|
+
expect(result[0].end).toBe(1.6);
|
|
409
|
+
expect(result[0].word).toContain("um");
|
|
410
|
+
expect(result[0].word).toContain("uh");
|
|
411
|
+
});
|
|
412
|
+
it("does not merge distant filler ranges", () => {
|
|
413
|
+
const distant = [
|
|
414
|
+
{ word: "um", start: 1.0, end: 1.3 },
|
|
415
|
+
{ word: "uh", start: 5.0, end: 5.3 },
|
|
416
|
+
];
|
|
417
|
+
const result = detectFillerRanges(distant, DEFAULT_FILLER_WORDS, 0.05);
|
|
418
|
+
expect(result.length).toBe(2);
|
|
419
|
+
});
|
|
420
|
+
it("returns empty array when no fillers found", () => {
|
|
421
|
+
const clean = [
|
|
422
|
+
{ word: "This", start: 0.0, end: 0.3 },
|
|
423
|
+
{ word: "is", start: 0.4, end: 0.5 },
|
|
424
|
+
{ word: "great", start: 0.6, end: 0.9 },
|
|
425
|
+
];
|
|
426
|
+
const result = detectFillerRanges(clean, DEFAULT_FILLER_WORDS, 0.05);
|
|
427
|
+
expect(result.length).toBe(0);
|
|
428
|
+
});
|
|
429
|
+
it("respects custom filler list", () => {
|
|
430
|
+
const customFillers = ["hello", "great"];
|
|
431
|
+
const result = detectFillerRanges(words, customFillers, 0.05);
|
|
432
|
+
expect(result.length).toBe(2);
|
|
433
|
+
expect(result[0].word).toBe("Hello");
|
|
434
|
+
expect(result[1].word).toBe("great");
|
|
435
|
+
});
|
|
436
|
+
it("handles empty word array", () => {
|
|
437
|
+
const result = detectFillerRanges([], DEFAULT_FILLER_WORDS, 0.05);
|
|
438
|
+
expect(result.length).toBe(0);
|
|
439
|
+
});
|
|
440
|
+
});
|
|
441
|
+
describe("DEFAULT_FILLER_WORDS", () => {
|
|
442
|
+
it("contains expected common fillers", () => {
|
|
443
|
+
expect(DEFAULT_FILLER_WORDS).toContain("um");
|
|
444
|
+
expect(DEFAULT_FILLER_WORDS).toContain("uh");
|
|
445
|
+
expect(DEFAULT_FILLER_WORDS).toContain("like");
|
|
446
|
+
expect(DEFAULT_FILLER_WORDS).toContain("you know");
|
|
447
|
+
expect(DEFAULT_FILLER_WORDS).toContain("basically");
|
|
448
|
+
expect(DEFAULT_FILLER_WORDS).toContain("literally");
|
|
449
|
+
expect(DEFAULT_FILLER_WORDS).toContain("i mean");
|
|
450
|
+
expect(DEFAULT_FILLER_WORDS).toContain("actually");
|
|
451
|
+
});
|
|
452
|
+
it("has all words in lowercase", () => {
|
|
453
|
+
for (const word of DEFAULT_FILLER_WORDS) {
|
|
454
|
+
expect(word).toBe(word.toLowerCase());
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
});
|
|
458
|
+
describe("edit noise-reduce", () => {
|
|
459
|
+
it("shows help", () => {
|
|
460
|
+
const output = execSync(`${CLI} edit noise-reduce --help`, {
|
|
461
|
+
cwd: process.cwd(),
|
|
462
|
+
encoding: "utf-8",
|
|
463
|
+
});
|
|
464
|
+
expect(output).toContain("Remove background noise");
|
|
465
|
+
expect(output).toContain("--strength");
|
|
466
|
+
expect(output).toContain("--noise-floor");
|
|
467
|
+
expect(output).toContain("--output");
|
|
468
|
+
});
|
|
469
|
+
it("fails with nonexistent file", () => {
|
|
470
|
+
expect(() => {
|
|
471
|
+
execSync(`${CLI} edit noise-reduce /tmp/nonexistent_audio_12345.mp4`, {
|
|
472
|
+
cwd: process.cwd(),
|
|
473
|
+
encoding: "utf-8",
|
|
474
|
+
});
|
|
475
|
+
}).toThrow();
|
|
476
|
+
});
|
|
477
|
+
});
|
|
478
|
+
describe("edit fade", () => {
|
|
479
|
+
it("shows help", () => {
|
|
480
|
+
const output = execSync(`${CLI} edit fade --help`, {
|
|
481
|
+
cwd: process.cwd(),
|
|
482
|
+
encoding: "utf-8",
|
|
483
|
+
});
|
|
484
|
+
expect(output).toContain("Apply fade in/out");
|
|
485
|
+
expect(output).toContain("--fade-in");
|
|
486
|
+
expect(output).toContain("--fade-out");
|
|
487
|
+
expect(output).toContain("--audio-only");
|
|
488
|
+
expect(output).toContain("--video-only");
|
|
489
|
+
expect(output).toContain("--output");
|
|
490
|
+
});
|
|
491
|
+
it("fails with nonexistent file", () => {
|
|
492
|
+
expect(() => {
|
|
493
|
+
execSync(`${CLI} edit fade /tmp/nonexistent_video_12345.mp4`, {
|
|
494
|
+
cwd: process.cwd(),
|
|
495
|
+
encoding: "utf-8",
|
|
496
|
+
});
|
|
497
|
+
}).toThrow();
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
describe("generate thumbnail --best-frame", () => {
|
|
501
|
+
it("shows help with best-frame option", () => {
|
|
502
|
+
const output = execSync(`${CLI} generate thumbnail --help`, {
|
|
503
|
+
cwd: process.cwd(),
|
|
504
|
+
encoding: "utf-8",
|
|
505
|
+
});
|
|
506
|
+
expect(output).toContain("--best-frame");
|
|
507
|
+
expect(output).toContain("--prompt");
|
|
508
|
+
expect(output).toContain("--model");
|
|
509
|
+
expect(output).toContain("--output");
|
|
510
|
+
});
|
|
511
|
+
it("fails with nonexistent video for best-frame", () => {
|
|
512
|
+
expect(() => {
|
|
513
|
+
execSync(`${CLI} generate thumbnail --best-frame /tmp/nonexistent_video_12345.mp4`, {
|
|
514
|
+
cwd: process.cwd(),
|
|
515
|
+
encoding: "utf-8",
|
|
516
|
+
env: { ...process.env, GOOGLE_API_KEY: "test" },
|
|
517
|
+
});
|
|
518
|
+
}).toThrow();
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
describe("edit translate-srt", () => {
|
|
522
|
+
it("shows help", () => {
|
|
523
|
+
const output = execSync(`${CLI} edit translate-srt --help`, {
|
|
524
|
+
cwd: process.cwd(),
|
|
525
|
+
encoding: "utf-8",
|
|
526
|
+
});
|
|
527
|
+
expect(output).toContain("Translate SRT");
|
|
528
|
+
expect(output).toContain("--target");
|
|
529
|
+
expect(output).toContain("--provider");
|
|
530
|
+
expect(output).toContain("--source");
|
|
531
|
+
expect(output).toContain("--output");
|
|
532
|
+
expect(output).toContain("--api-key");
|
|
533
|
+
});
|
|
534
|
+
it("fails without target language", () => {
|
|
535
|
+
expect(() => {
|
|
536
|
+
execSync(`${CLI} edit translate-srt /tmp/test.srt`, {
|
|
537
|
+
cwd: process.cwd(),
|
|
538
|
+
encoding: "utf-8",
|
|
539
|
+
env: { ...process.env, ANTHROPIC_API_KEY: "test" },
|
|
540
|
+
});
|
|
541
|
+
}).toThrow();
|
|
542
|
+
});
|
|
543
|
+
it("fails with nonexistent file", () => {
|
|
544
|
+
expect(() => {
|
|
545
|
+
execSync(`${CLI} edit translate-srt /tmp/nonexistent_12345.srt -t ko`, {
|
|
546
|
+
cwd: process.cwd(),
|
|
547
|
+
encoding: "utf-8",
|
|
548
|
+
env: { ...process.env, ANTHROPIC_API_KEY: "test" },
|
|
549
|
+
});
|
|
550
|
+
}).toThrow();
|
|
551
|
+
});
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
//# sourceMappingURL=ai.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.test.js","sourceRoot":"","sources":["../../src/commands/ai.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,GAAG,GAAG,WAAW,OAAO,CAAC,SAAS,EAAE,aAAa,CAAC,EAAE,CAAC;AAE3D,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;YAC/B,MAAM,CAAC,GAAG,EAAE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AAM,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;YACvC,MAAM,CAAC,GAAG,EAAE;gBACV,QAAQ,CAAC,GAAG,GAAG,mCAAmC,EAAE;oBAClD,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;oBAClB,QAAQ,EAAE,OAAO;oBACjB,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,iBAAiB,EAAE,MAAM,EAAE;iBACnD,CAAC,CAAC;YACL,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;YACrC,MAAM,CAAC,GAAG,EAAE;gBACV,QAAQ,CAAC,GAAG,GAAG,sDAAsD,EAAE;oBACrE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;oBAClB,QAAQ,EAAE,OAAO;oBACjB,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,iBAAiB,EAAE,MAAM,EAAE;iBACnD,CAAC,CAAC;YACL,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module analyze
|
|
3
|
+
*
|
|
4
|
+
* Top-level `vibe analyze` command group for media analysis.
|
|
5
|
+
*
|
|
6
|
+
* Commands:
|
|
7
|
+
* analyze media - Unified analysis for images, videos, and YouTube URLs (Gemini)
|
|
8
|
+
* analyze video - Analyze video files or YouTube URLs with Gemini
|
|
9
|
+
* analyze review - AI video quality review and auto-fix (Gemini)
|
|
10
|
+
* analyze suggest - Get AI edit suggestions using Gemini
|
|
11
|
+
*
|
|
12
|
+
* @dependencies Gemini (Google), FFmpeg (auto-fix filters)
|
|
13
|
+
*/
|
|
14
|
+
import { Command } from "commander";
|
|
15
|
+
export declare const analyzeCommand: Command;
|
|
16
|
+
//# sourceMappingURL=analyze.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/commands/analyze.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAepC,eAAO,MAAM,cAAc,SAoBxB,CAAC"}
|