videoclaw 3.0.0-alpha.1
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/AGENTS.md +165 -0
- package/CLAUDE.md +232 -0
- package/LICENSE +36 -0
- package/README.md +737 -0
- package/dist/cli/args.d.ts +59 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +279 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/handlers/analysis.d.ts +3 -0
- package/dist/cli/handlers/analysis.d.ts.map +1 -0
- package/dist/cli/handlers/analysis.js +111 -0
- package/dist/cli/handlers/analysis.js.map +1 -0
- package/dist/cli/handlers/audio.d.ts +25 -0
- package/dist/cli/handlers/audio.d.ts.map +1 -0
- package/dist/cli/handlers/audio.js +321 -0
- package/dist/cli/handlers/audio.js.map +1 -0
- package/dist/cli/handlers/batch.d.ts +4 -0
- package/dist/cli/handlers/batch.d.ts.map +1 -0
- package/dist/cli/handlers/batch.js +424 -0
- package/dist/cli/handlers/batch.js.map +1 -0
- package/dist/cli/handlers/candidates.d.ts +10 -0
- package/dist/cli/handlers/candidates.d.ts.map +1 -0
- package/dist/cli/handlers/candidates.js +389 -0
- package/dist/cli/handlers/candidates.js.map +1 -0
- package/dist/cli/handlers/character.d.ts +8 -0
- package/dist/cli/handlers/character.d.ts.map +1 -0
- package/dist/cli/handlers/character.js +202 -0
- package/dist/cli/handlers/character.js.map +1 -0
- package/dist/cli/handlers/clone.d.ts +5 -0
- package/dist/cli/handlers/clone.d.ts.map +1 -0
- package/dist/cli/handlers/clone.js +303 -0
- package/dist/cli/handlers/clone.js.map +1 -0
- package/dist/cli/handlers/create.d.ts +5 -0
- package/dist/cli/handlers/create.d.ts.map +1 -0
- package/dist/cli/handlers/create.js +635 -0
- package/dist/cli/handlers/create.js.map +1 -0
- package/dist/cli/handlers/execution.d.ts +5 -0
- package/dist/cli/handlers/execution.d.ts.map +1 -0
- package/dist/cli/handlers/execution.js +132 -0
- package/dist/cli/handlers/execution.js.map +1 -0
- package/dist/cli/handlers/library.d.ts +8 -0
- package/dist/cli/handlers/library.d.ts.map +1 -0
- package/dist/cli/handlers/library.js +77 -0
- package/dist/cli/handlers/library.js.map +1 -0
- package/dist/cli/handlers/media-ops.d.ts +7 -0
- package/dist/cli/handlers/media-ops.d.ts.map +1 -0
- package/dist/cli/handlers/media-ops.js +120 -0
- package/dist/cli/handlers/media-ops.js.map +1 -0
- package/dist/cli/handlers/media-production.d.ts +56 -0
- package/dist/cli/handlers/media-production.d.ts.map +1 -0
- package/dist/cli/handlers/media-production.js +673 -0
- package/dist/cli/handlers/media-production.js.map +1 -0
- package/dist/cli/handlers/motion-overlay.d.ts +10 -0
- package/dist/cli/handlers/motion-overlay.d.ts.map +1 -0
- package/dist/cli/handlers/motion-overlay.js +651 -0
- package/dist/cli/handlers/motion-overlay.js.map +1 -0
- package/dist/cli/handlers/multi-shot.d.ts +2 -0
- package/dist/cli/handlers/multi-shot.d.ts.map +1 -0
- package/dist/cli/handlers/multi-shot.js +424 -0
- package/dist/cli/handlers/multi-shot.js.map +1 -0
- package/dist/cli/handlers/project-ops.d.ts +14 -0
- package/dist/cli/handlers/project-ops.d.ts.map +1 -0
- package/dist/cli/handlers/project-ops.js +241 -0
- package/dist/cli/handlers/project-ops.js.map +1 -0
- package/dist/cli/handlers/prompt-craft.d.ts +8 -0
- package/dist/cli/handlers/prompt-craft.d.ts.map +1 -0
- package/dist/cli/handlers/prompt-craft.js +397 -0
- package/dist/cli/handlers/prompt-craft.js.map +1 -0
- package/dist/cli/handlers/provider-registration.d.ts +29 -0
- package/dist/cli/handlers/provider-registration.d.ts.map +1 -0
- package/dist/cli/handlers/provider-registration.js +225 -0
- package/dist/cli/handlers/provider-registration.js.map +1 -0
- package/dist/cli/handlers/reference-sheets.d.ts +6 -0
- package/dist/cli/handlers/reference-sheets.d.ts.map +1 -0
- package/dist/cli/handlers/reference-sheets.js +181 -0
- package/dist/cli/handlers/reference-sheets.js.map +1 -0
- package/dist/cli/handlers/reporting.d.ts +18 -0
- package/dist/cli/handlers/reporting.d.ts.map +1 -0
- package/dist/cli/handlers/reporting.js +155 -0
- package/dist/cli/handlers/reporting.js.map +1 -0
- package/dist/cli/handlers/review-portal.d.ts +8 -0
- package/dist/cli/handlers/review-portal.d.ts.map +1 -0
- package/dist/cli/handlers/review-portal.js +276 -0
- package/dist/cli/handlers/review-portal.js.map +1 -0
- package/dist/cli/handlers/show.d.ts +11 -0
- package/dist/cli/handlers/show.d.ts.map +1 -0
- package/dist/cli/handlers/show.js +136 -0
- package/dist/cli/handlers/show.js.map +1 -0
- package/dist/cli/handlers/stages.d.ts +6 -0
- package/dist/cli/handlers/stages.d.ts.map +1 -0
- package/dist/cli/handlers/stages.js +333 -0
- package/dist/cli/handlers/stages.js.map +1 -0
- package/dist/cli/handlers/studio.d.ts +2 -0
- package/dist/cli/handlers/studio.d.ts.map +1 -0
- package/dist/cli/handlers/studio.js +159 -0
- package/dist/cli/handlers/studio.js.map +1 -0
- package/dist/cli/handlers/templates.d.ts +7 -0
- package/dist/cli/handlers/templates.d.ts.map +1 -0
- package/dist/cli/handlers/templates.js +61 -0
- package/dist/cli/handlers/templates.js.map +1 -0
- package/dist/cli/provider-adapter.d.ts +3 -0
- package/dist/cli/provider-adapter.d.ts.map +1 -0
- package/dist/cli/provider-adapter.js +96 -0
- package/dist/cli/provider-adapter.js.map +1 -0
- package/dist/cli/vclaw.d.ts +15 -0
- package/dist/cli/vclaw.d.ts.map +1 -0
- package/dist/cli/vclaw.js +318 -0
- package/dist/cli/vclaw.js.map +1 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +3 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/server.d.ts +27 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +168 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tools.d.ts +55 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +80 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/video/analyze-output.d.ts +5 -0
- package/dist/video/analyze-output.d.ts.map +1 -0
- package/dist/video/analyze-output.js +7 -0
- package/dist/video/analyze-output.js.map +1 -0
- package/dist/video/archive-project.d.ts +14 -0
- package/dist/video/archive-project.d.ts.map +1 -0
- package/dist/video/archive-project.js +41 -0
- package/dist/video/archive-project.js.map +1 -0
- package/dist/video/artifact-history.d.ts +8 -0
- package/dist/video/artifact-history.d.ts.map +1 -0
- package/dist/video/artifact-history.js +12 -0
- package/dist/video/artifact-history.js.map +1 -0
- package/dist/video/artifact-store.d.ts +8 -0
- package/dist/video/artifact-store.d.ts.map +1 -0
- package/dist/video/artifact-store.js +37 -0
- package/dist/video/artifact-store.js.map +1 -0
- package/dist/video/artifact-validation.d.ts +15 -0
- package/dist/video/artifact-validation.d.ts.map +1 -0
- package/dist/video/artifact-validation.js +287 -0
- package/dist/video/artifact-validation.js.map +1 -0
- package/dist/video/artifacts.d.ts +112 -0
- package/dist/video/artifacts.d.ts.map +1 -0
- package/dist/video/artifacts.js +31 -0
- package/dist/video/artifacts.js.map +1 -0
- package/dist/video/assemble/animate-slides.d.ts +108 -0
- package/dist/video/assemble/animate-slides.d.ts.map +1 -0
- package/dist/video/assemble/animate-slides.js +152 -0
- package/dist/video/assemble/animate-slides.js.map +1 -0
- package/dist/video/assemble/animation-styles.d.ts +21 -0
- package/dist/video/assemble/animation-styles.d.ts.map +1 -0
- package/dist/video/assemble/animation-styles.js +32 -0
- package/dist/video/assemble/animation-styles.js.map +1 -0
- package/dist/video/assemble/animation-styles.json +97 -0
- package/dist/video/assemble/assemble.d.ts +24 -0
- package/dist/video/assemble/assemble.d.ts.map +1 -0
- package/dist/video/assemble/assemble.js +457 -0
- package/dist/video/assemble/assemble.js.map +1 -0
- package/dist/video/assemble/audio-concat.d.ts +61 -0
- package/dist/video/assemble/audio-concat.d.ts.map +1 -0
- package/dist/video/assemble/audio-concat.js +108 -0
- package/dist/video/assemble/audio-concat.js.map +1 -0
- package/dist/video/assemble/audio-mix-plan.d.ts +84 -0
- package/dist/video/assemble/audio-mix-plan.d.ts.map +1 -0
- package/dist/video/assemble/audio-mix-plan.js +74 -0
- package/dist/video/assemble/audio-mix-plan.js.map +1 -0
- package/dist/video/assemble/audio-utils.d.ts +32 -0
- package/dist/video/assemble/audio-utils.d.ts.map +1 -0
- package/dist/video/assemble/audio-utils.js +91 -0
- package/dist/video/assemble/audio-utils.js.map +1 -0
- package/dist/video/assemble/cut-segment.d.ts +40 -0
- package/dist/video/assemble/cut-segment.d.ts.map +1 -0
- package/dist/video/assemble/cut-segment.js +77 -0
- package/dist/video/assemble/cut-segment.js.map +1 -0
- package/dist/video/assemble/ffmpeg.d.ts +91 -0
- package/dist/video/assemble/ffmpeg.d.ts.map +1 -0
- package/dist/video/assemble/ffmpeg.js +251 -0
- package/dist/video/assemble/ffmpeg.js.map +1 -0
- package/dist/video/assemble/gemini-vision-classify.d.ts +37 -0
- package/dist/video/assemble/gemini-vision-classify.d.ts.map +1 -0
- package/dist/video/assemble/gemini-vision-classify.js +123 -0
- package/dist/video/assemble/gemini-vision-classify.js.map +1 -0
- package/dist/video/assemble/index.d.ts +47 -0
- package/dist/video/assemble/index.d.ts.map +1 -0
- package/dist/video/assemble/index.js +40 -0
- package/dist/video/assemble/index.js.map +1 -0
- package/dist/video/assemble/media-qc.d.ts +44 -0
- package/dist/video/assemble/media-qc.d.ts.map +1 -0
- package/dist/video/assemble/media-qc.js +181 -0
- package/dist/video/assemble/media-qc.js.map +1 -0
- package/dist/video/assemble/music.d.ts +51 -0
- package/dist/video/assemble/music.d.ts.map +1 -0
- package/dist/video/assemble/music.js +171 -0
- package/dist/video/assemble/music.js.map +1 -0
- package/dist/video/assemble/narration-fit.d.ts +32 -0
- package/dist/video/assemble/narration-fit.d.ts.map +1 -0
- package/dist/video/assemble/narration-fit.js +59 -0
- package/dist/video/assemble/narration-fit.js.map +1 -0
- package/dist/video/assemble/overlay.d.ts +81 -0
- package/dist/video/assemble/overlay.d.ts.map +1 -0
- package/dist/video/assemble/overlay.js +141 -0
- package/dist/video/assemble/overlay.js.map +1 -0
- package/dist/video/assemble/pdf.d.ts +46 -0
- package/dist/video/assemble/pdf.d.ts.map +1 -0
- package/dist/video/assemble/pdf.js +111 -0
- package/dist/video/assemble/pdf.js.map +1 -0
- package/dist/video/assemble/qa-dialogue-lint.d.ts +56 -0
- package/dist/video/assemble/qa-dialogue-lint.d.ts.map +1 -0
- package/dist/video/assemble/qa-dialogue-lint.js +85 -0
- package/dist/video/assemble/qa-dialogue-lint.js.map +1 -0
- package/dist/video/assemble/qa-image-filter.d.ts +52 -0
- package/dist/video/assemble/qa-image-filter.d.ts.map +1 -0
- package/dist/video/assemble/qa-image-filter.js +102 -0
- package/dist/video/assemble/qa-image-filter.js.map +1 -0
- package/dist/video/assemble/qa-image-vision.d.ts +57 -0
- package/dist/video/assemble/qa-image-vision.d.ts.map +1 -0
- package/dist/video/assemble/qa-image-vision.js +96 -0
- package/dist/video/assemble/qa-image-vision.js.map +1 -0
- package/dist/video/assemble/qa-narration-vision.d.ts +53 -0
- package/dist/video/assemble/qa-narration-vision.d.ts.map +1 -0
- package/dist/video/assemble/qa-narration-vision.js +87 -0
- package/dist/video/assemble/qa-narration-vision.js.map +1 -0
- package/dist/video/assemble/qa-narration.d.ts +53 -0
- package/dist/video/assemble/qa-narration.d.ts.map +1 -0
- package/dist/video/assemble/qa-narration.js +85 -0
- package/dist/video/assemble/qa-narration.js.map +1 -0
- package/dist/video/assemble/stitch-ad.d.ts +88 -0
- package/dist/video/assemble/stitch-ad.d.ts.map +1 -0
- package/dist/video/assemble/stitch-ad.js +161 -0
- package/dist/video/assemble/stitch-ad.js.map +1 -0
- package/dist/video/assemble/stitch.d.ts +341 -0
- package/dist/video/assemble/stitch.d.ts.map +1 -0
- package/dist/video/assemble/stitch.js +607 -0
- package/dist/video/assemble/stitch.js.map +1 -0
- package/dist/video/assemble/text-card.d.ts +78 -0
- package/dist/video/assemble/text-card.d.ts.map +1 -0
- package/dist/video/assemble/text-card.js +210 -0
- package/dist/video/assemble/text-card.js.map +1 -0
- package/dist/video/assemble/title-card.d.ts +39 -0
- package/dist/video/assemble/title-card.d.ts.map +1 -0
- package/dist/video/assemble/title-card.js +127 -0
- package/dist/video/assemble/title-card.js.map +1 -0
- package/dist/video/assemble/transcript.d.ts +66 -0
- package/dist/video/assemble/transcript.d.ts.map +1 -0
- package/dist/video/assemble/transcript.js +200 -0
- package/dist/video/assemble/transcript.js.map +1 -0
- package/dist/video/assemble/tts-elevenlabs.d.ts +52 -0
- package/dist/video/assemble/tts-elevenlabs.d.ts.map +1 -0
- package/dist/video/assemble/tts-elevenlabs.js +118 -0
- package/dist/video/assemble/tts-elevenlabs.js.map +1 -0
- package/dist/video/assemble/tts.d.ts +79 -0
- package/dist/video/assemble/tts.d.ts.map +1 -0
- package/dist/video/assemble/tts.js +131 -0
- package/dist/video/assemble/tts.js.map +1 -0
- package/dist/video/assemble/types.d.ts +43 -0
- package/dist/video/assemble/types.d.ts.map +1 -0
- package/dist/video/assemble/types.js +2 -0
- package/dist/video/assemble/types.js.map +1 -0
- package/dist/video/assemble/upscale.d.ts +43 -0
- package/dist/video/assemble/upscale.d.ts.map +1 -0
- package/dist/video/assemble/upscale.js +52 -0
- package/dist/video/assemble/upscale.js.map +1 -0
- package/dist/video/asset-spec.d.ts +15 -0
- package/dist/video/asset-spec.d.ts.map +1 -0
- package/dist/video/asset-spec.js +43 -0
- package/dist/video/asset-spec.js.map +1 -0
- package/dist/video/asset-tag-lookup.d.ts +31 -0
- package/dist/video/asset-tag-lookup.d.ts.map +1 -0
- package/dist/video/asset-tag-lookup.js +45 -0
- package/dist/video/asset-tag-lookup.js.map +1 -0
- package/dist/video/atomic-write.d.ts +2 -0
- package/dist/video/atomic-write.d.ts.map +1 -0
- package/dist/video/atomic-write.js +7 -0
- package/dist/video/atomic-write.js.map +1 -0
- package/dist/video/audio-platform/native-elevenlabs-sfx.d.ts +29 -0
- package/dist/video/audio-platform/native-elevenlabs-sfx.d.ts.map +1 -0
- package/dist/video/audio-platform/native-elevenlabs-sfx.js +95 -0
- package/dist/video/audio-platform/native-elevenlabs-sfx.js.map +1 -0
- package/dist/video/audio-platform/native-elevenlabs-tts.d.ts +30 -0
- package/dist/video/audio-platform/native-elevenlabs-tts.d.ts.map +1 -0
- package/dist/video/audio-platform/native-elevenlabs-tts.js +95 -0
- package/dist/video/audio-platform/native-elevenlabs-tts.js.map +1 -0
- package/dist/video/audio-platform/native-flowmusic.d.ts +21 -0
- package/dist/video/audio-platform/native-flowmusic.d.ts.map +1 -0
- package/dist/video/audio-platform/native-flowmusic.js +137 -0
- package/dist/video/audio-platform/native-flowmusic.js.map +1 -0
- package/dist/video/audio-platform/native-gemini-tts.d.ts +26 -0
- package/dist/video/audio-platform/native-gemini-tts.d.ts.map +1 -0
- package/dist/video/audio-platform/native-gemini-tts.js +202 -0
- package/dist/video/audio-platform/native-gemini-tts.js.map +1 -0
- package/dist/video/audio-platform/native-lyria.d.ts +35 -0
- package/dist/video/audio-platform/native-lyria.d.ts.map +1 -0
- package/dist/video/audio-platform/native-lyria.js +189 -0
- package/dist/video/audio-platform/native-lyria.js.map +1 -0
- package/dist/video/audio-platform/native-lyria3.d.ts +36 -0
- package/dist/video/audio-platform/native-lyria3.d.ts.map +1 -0
- package/dist/video/audio-platform/native-lyria3.js +210 -0
- package/dist/video/audio-platform/native-lyria3.js.map +1 -0
- package/dist/video/audio-platform/registry.d.ts +82 -0
- package/dist/video/audio-platform/registry.d.ts.map +1 -0
- package/dist/video/audio-platform/registry.js +189 -0
- package/dist/video/audio-platform/registry.js.map +1 -0
- package/dist/video/audio-platform/suno-backend.d.ts +11 -0
- package/dist/video/audio-platform/suno-backend.d.ts.map +1 -0
- package/dist/video/audio-platform/suno-backend.js +33 -0
- package/dist/video/audio-platform/suno-backend.js.map +1 -0
- package/dist/video/audio-platform/types.d.ts +128 -0
- package/dist/video/audio-platform/types.d.ts.map +1 -0
- package/dist/video/audio-platform/types.js +9 -0
- package/dist/video/audio-platform/types.js.map +1 -0
- package/dist/video/batch-queue.d.ts +276 -0
- package/dist/video/batch-queue.d.ts.map +1 -0
- package/dist/video/batch-queue.js +519 -0
- package/dist/video/batch-queue.js.map +1 -0
- package/dist/video/blueprint-prompt.d.ts +37 -0
- package/dist/video/blueprint-prompt.d.ts.map +1 -0
- package/dist/video/blueprint-prompt.js +107 -0
- package/dist/video/blueprint-prompt.js.map +1 -0
- package/dist/video/brand-definition.d.ts +97 -0
- package/dist/video/brand-definition.d.ts.map +1 -0
- package/dist/video/brand-definition.js +206 -0
- package/dist/video/brand-definition.js.map +1 -0
- package/dist/video/brand-dna.d.ts +101 -0
- package/dist/video/brand-dna.d.ts.map +1 -0
- package/dist/video/brand-dna.js +370 -0
- package/dist/video/brand-dna.js.map +1 -0
- package/dist/video/brand-prompt.d.ts +13 -0
- package/dist/video/brand-prompt.d.ts.map +1 -0
- package/dist/video/brand-prompt.js +26 -0
- package/dist/video/brand-prompt.js.map +1 -0
- package/dist/video/candidate-migrate.d.ts +27 -0
- package/dist/video/candidate-migrate.d.ts.map +1 -0
- package/dist/video/candidate-migrate.js +119 -0
- package/dist/video/candidate-migrate.js.map +1 -0
- package/dist/video/category-registry.d.ts +38 -0
- package/dist/video/category-registry.d.ts.map +1 -0
- package/dist/video/category-registry.js +188 -0
- package/dist/video/category-registry.js.map +1 -0
- package/dist/video/chain-fallback.d.ts +39 -0
- package/dist/video/chain-fallback.d.ts.map +1 -0
- package/dist/video/chain-fallback.js +43 -0
- package/dist/video/chain-fallback.js.map +1 -0
- package/dist/video/character-auto-create.d.ts +72 -0
- package/dist/video/character-auto-create.d.ts.map +1 -0
- package/dist/video/character-auto-create.js +392 -0
- package/dist/video/character-auto-create.js.map +1 -0
- package/dist/video/character-consistency.d.ts +3 -0
- package/dist/video/character-consistency.d.ts.map +1 -0
- package/dist/video/character-consistency.js +69 -0
- package/dist/video/character-consistency.js.map +1 -0
- package/dist/video/characters.d.ts +44 -0
- package/dist/video/characters.d.ts.map +1 -0
- package/dist/video/characters.js +96 -0
- package/dist/video/characters.js.map +1 -0
- package/dist/video/checkpoints.d.ts +16 -0
- package/dist/video/checkpoints.d.ts.map +1 -0
- package/dist/video/checkpoints.js +29 -0
- package/dist/video/checkpoints.js.map +1 -0
- package/dist/video/cinema-profile.d.ts +57 -0
- package/dist/video/cinema-profile.d.ts.map +1 -0
- package/dist/video/cinema-profile.js +89 -0
- package/dist/video/cinema-profile.js.map +1 -0
- package/dist/video/cinematography.d.ts +299 -0
- package/dist/video/cinematography.d.ts.map +1 -0
- package/dist/video/cinematography.js +914 -0
- package/dist/video/cinematography.js.map +1 -0
- package/dist/video/cli-output.d.ts +52 -0
- package/dist/video/cli-output.d.ts.map +1 -0
- package/dist/video/cli-output.js +81 -0
- package/dist/video/cli-output.js.map +1 -0
- package/dist/video/cli-schema.d.ts +40 -0
- package/dist/video/cli-schema.d.ts.map +1 -0
- package/dist/video/cli-schema.js +447 -0
- package/dist/video/cli-schema.js.map +1 -0
- package/dist/video/cost-estimate.d.ts +37 -0
- package/dist/video/cost-estimate.d.ts.map +1 -0
- package/dist/video/cost-estimate.js +103 -0
- package/dist/video/cost-estimate.js.map +1 -0
- package/dist/video/csv-export.d.ts +8 -0
- package/dist/video/csv-export.d.ts.map +1 -0
- package/dist/video/csv-export.js +133 -0
- package/dist/video/csv-export.js.map +1 -0
- package/dist/video/dependencies.d.ts +23 -0
- package/dist/video/dependencies.d.ts.map +1 -0
- package/dist/video/dependencies.js +36 -0
- package/dist/video/dependencies.js.map +1 -0
- package/dist/video/dialogue-fit.d.ts +23 -0
- package/dist/video/dialogue-fit.d.ts.map +1 -0
- package/dist/video/dialogue-fit.js +38 -0
- package/dist/video/dialogue-fit.js.map +1 -0
- package/dist/video/dialogue.d.ts +77 -0
- package/dist/video/dialogue.d.ts.map +1 -0
- package/dist/video/dialogue.js +143 -0
- package/dist/video/dialogue.js.map +1 -0
- package/dist/video/director-defaults.d.ts +37 -0
- package/dist/video/director-defaults.d.ts.map +1 -0
- package/dist/video/director-defaults.js +383 -0
- package/dist/video/director-defaults.js.map +1 -0
- package/dist/video/director-preflight.d.ts +53 -0
- package/dist/video/director-preflight.d.ts.map +1 -0
- package/dist/video/director-preflight.js +462 -0
- package/dist/video/director-preflight.js.map +1 -0
- package/dist/video/doctor-portfolio.d.ts +43 -0
- package/dist/video/doctor-portfolio.d.ts.map +1 -0
- package/dist/video/doctor-portfolio.js +137 -0
- package/dist/video/doctor-portfolio.js.map +1 -0
- package/dist/video/doctor.d.ts +13 -0
- package/dist/video/doctor.d.ts.map +1 -0
- package/dist/video/doctor.js +449 -0
- package/dist/video/doctor.js.map +1 -0
- package/dist/video/emotion-cues.d.ts +15 -0
- package/dist/video/emotion-cues.d.ts.map +1 -0
- package/dist/video/emotion-cues.js +37 -0
- package/dist/video/emotion-cues.js.map +1 -0
- package/dist/video/environment-assets.d.ts +28 -0
- package/dist/video/environment-assets.d.ts.map +1 -0
- package/dist/video/environment-assets.js +43 -0
- package/dist/video/environment-assets.js.map +1 -0
- package/dist/video/environment-auto-create.d.ts +20 -0
- package/dist/video/environment-auto-create.d.ts.map +1 -0
- package/dist/video/environment-auto-create.js +88 -0
- package/dist/video/environment-auto-create.js.map +1 -0
- package/dist/video/errors.d.ts +35 -0
- package/dist/video/errors.d.ts.map +1 -0
- package/dist/video/errors.js +117 -0
- package/dist/video/errors.js.map +1 -0
- package/dist/video/events.d.ts +11 -0
- package/dist/video/events.d.ts.map +1 -0
- package/dist/video/events.js +32 -0
- package/dist/video/events.js.map +1 -0
- package/dist/video/execute-autochain.d.ts +65 -0
- package/dist/video/execute-autochain.d.ts.map +1 -0
- package/dist/video/execute-autochain.js +165 -0
- package/dist/video/execute-autochain.js.map +1 -0
- package/dist/video/execute.d.ts +27 -0
- package/dist/video/execute.d.ts.map +1 -0
- package/dist/video/execute.js +477 -0
- package/dist/video/execute.js.map +1 -0
- package/dist/video/execution-cancel.d.ts +11 -0
- package/dist/video/execution-cancel.d.ts.map +1 -0
- package/dist/video/execution-cancel.js +85 -0
- package/dist/video/execution-cancel.js.map +1 -0
- package/dist/video/execution-plan.d.ts +5 -0
- package/dist/video/execution-plan.d.ts.map +1 -0
- package/dist/video/execution-plan.js +145 -0
- package/dist/video/execution-plan.js.map +1 -0
- package/dist/video/execution-profile.d.ts +25 -0
- package/dist/video/execution-profile.d.ts.map +1 -0
- package/dist/video/execution-profile.js +124 -0
- package/dist/video/execution-profile.js.map +1 -0
- package/dist/video/execution-runtime.d.ts +104 -0
- package/dist/video/execution-runtime.d.ts.map +1 -0
- package/dist/video/execution-runtime.js +750 -0
- package/dist/video/execution-runtime.js.map +1 -0
- package/dist/video/execution-seed.d.ts +14 -0
- package/dist/video/execution-seed.d.ts.map +1 -0
- package/dist/video/execution-seed.js +29 -0
- package/dist/video/execution-seed.js.map +1 -0
- package/dist/video/execution-status.d.ts +12 -0
- package/dist/video/execution-status.d.ts.map +1 -0
- package/dist/video/execution-status.js +666 -0
- package/dist/video/execution-status.js.map +1 -0
- package/dist/video/filmmaking-prompts.d.ts +356 -0
- package/dist/video/filmmaking-prompts.d.ts.map +1 -0
- package/dist/video/filmmaking-prompts.js +1212 -0
- package/dist/video/filmmaking-prompts.js.map +1 -0
- package/dist/video/final-media.d.ts +17 -0
- package/dist/video/final-media.d.ts.map +1 -0
- package/dist/video/final-media.js +78 -0
- package/dist/video/final-media.js.map +1 -0
- package/dist/video/finish.d.ts +99 -0
- package/dist/video/finish.d.ts.map +1 -0
- package/dist/video/finish.js +159 -0
- package/dist/video/finish.js.map +1 -0
- package/dist/video/flow-character-library.d.ts +143 -0
- package/dist/video/flow-character-library.d.ts.map +1 -0
- package/dist/video/flow-character-library.js +211 -0
- package/dist/video/flow-character-library.js.map +1 -0
- package/dist/video/flow-markers.d.ts +107 -0
- package/dist/video/flow-markers.d.ts.map +1 -0
- package/dist/video/flow-markers.js +278 -0
- package/dist/video/flow-markers.js.map +1 -0
- package/dist/video/gemini-analyze.d.ts +44 -0
- package/dist/video/gemini-analyze.d.ts.map +1 -0
- package/dist/video/gemini-analyze.js +323 -0
- package/dist/video/gemini-analyze.js.map +1 -0
- package/dist/video/gemini-continuity.d.ts +40 -0
- package/dist/video/gemini-continuity.d.ts.map +1 -0
- package/dist/video/gemini-continuity.js +145 -0
- package/dist/video/gemini-continuity.js.map +1 -0
- package/dist/video/gemini-judge.d.ts +33 -0
- package/dist/video/gemini-judge.d.ts.map +1 -0
- package/dist/video/gemini-judge.js +218 -0
- package/dist/video/gemini-judge.js.map +1 -0
- package/dist/video/gemini-key-pool.d.ts +23 -0
- package/dist/video/gemini-key-pool.d.ts.map +1 -0
- package/dist/video/gemini-key-pool.js +107 -0
- package/dist/video/gemini-key-pool.js.map +1 -0
- package/dist/video/gen-image-flow.d.ts +187 -0
- package/dist/video/gen-image-flow.d.ts.map +1 -0
- package/dist/video/gen-image-flow.js +331 -0
- package/dist/video/gen-image-flow.js.map +1 -0
- package/dist/video/gen-image.d.ts +153 -0
- package/dist/video/gen-image.d.ts.map +1 -0
- package/dist/video/gen-image.js +263 -0
- package/dist/video/gen-image.js.map +1 -0
- package/dist/video/generation-telemetry.d.ts +60 -0
- package/dist/video/generation-telemetry.d.ts.map +1 -0
- package/dist/video/generation-telemetry.js +214 -0
- package/dist/video/generation-telemetry.js.map +1 -0
- package/dist/video/http-error-safety.d.ts +9 -0
- package/dist/video/http-error-safety.d.ts.map +1 -0
- package/dist/video/http-error-safety.js +14 -0
- package/dist/video/http-error-safety.js.map +1 -0
- package/dist/video/image-dimensions.d.ts +7 -0
- package/dist/video/image-dimensions.d.ts.map +1 -0
- package/dist/video/image-dimensions.js +54 -0
- package/dist/video/image-dimensions.js.map +1 -0
- package/dist/video/legacy-import.d.ts +11 -0
- package/dist/video/legacy-import.d.ts.map +1 -0
- package/dist/video/legacy-import.js +181 -0
- package/dist/video/legacy-import.js.map +1 -0
- package/dist/video/library-clean.d.ts +34 -0
- package/dist/video/library-clean.d.ts.map +1 -0
- package/dist/video/library-clean.js +340 -0
- package/dist/video/library-clean.js.map +1 -0
- package/dist/video/lipsync.d.ts +72 -0
- package/dist/video/lipsync.d.ts.map +1 -0
- package/dist/video/lipsync.js +136 -0
- package/dist/video/lipsync.js.map +1 -0
- package/dist/video/media-host.d.ts +41 -0
- package/dist/video/media-host.d.ts.map +1 -0
- package/dist/video/media-host.js +106 -0
- package/dist/video/media-host.js.map +1 -0
- package/dist/video/metrics.d.ts +30 -0
- package/dist/video/metrics.d.ts.map +1 -0
- package/dist/video/metrics.js +81 -0
- package/dist/video/metrics.js.map +1 -0
- package/dist/video/motion-overlay/analyze-reel.d.ts +38 -0
- package/dist/video/motion-overlay/analyze-reel.d.ts.map +1 -0
- package/dist/video/motion-overlay/analyze-reel.js +185 -0
- package/dist/video/motion-overlay/analyze-reel.js.map +1 -0
- package/dist/video/motion-overlay/animate-render.d.ts +63 -0
- package/dist/video/motion-overlay/animate-render.d.ts.map +1 -0
- package/dist/video/motion-overlay/animate-render.js +128 -0
- package/dist/video/motion-overlay/animate-render.js.map +1 -0
- package/dist/video/motion-overlay/animate.d.ts +37 -0
- package/dist/video/motion-overlay/animate.d.ts.map +1 -0
- package/dist/video/motion-overlay/animate.js +97 -0
- package/dist/video/motion-overlay/animate.js.map +1 -0
- package/dist/video/motion-overlay/avatar-host-transport.d.ts +161 -0
- package/dist/video/motion-overlay/avatar-host-transport.d.ts.map +1 -0
- package/dist/video/motion-overlay/avatar-host-transport.js +325 -0
- package/dist/video/motion-overlay/avatar-host-transport.js.map +1 -0
- package/dist/video/motion-overlay/avatar-host.d.ts +131 -0
- package/dist/video/motion-overlay/avatar-host.d.ts.map +1 -0
- package/dist/video/motion-overlay/avatar-host.js +131 -0
- package/dist/video/motion-overlay/avatar-host.js.map +1 -0
- package/dist/video/motion-overlay/compose-prompt.d.ts +48 -0
- package/dist/video/motion-overlay/compose-prompt.d.ts.map +1 -0
- package/dist/video/motion-overlay/compose-prompt.js +217 -0
- package/dist/video/motion-overlay/compose-prompt.js.map +1 -0
- package/dist/video/motion-overlay/execute.d.ts +190 -0
- package/dist/video/motion-overlay/execute.d.ts.map +1 -0
- package/dist/video/motion-overlay/execute.js +205 -0
- package/dist/video/motion-overlay/execute.js.map +1 -0
- package/dist/video/motion-overlay/flow-pack.d.ts +65 -0
- package/dist/video/motion-overlay/flow-pack.d.ts.map +1 -0
- package/dist/video/motion-overlay/flow-pack.js +178 -0
- package/dist/video/motion-overlay/flow-pack.js.map +1 -0
- package/dist/video/motion-overlay/ingest.d.ts +74 -0
- package/dist/video/motion-overlay/ingest.d.ts.map +1 -0
- package/dist/video/motion-overlay/ingest.js +172 -0
- package/dist/video/motion-overlay/ingest.js.map +1 -0
- package/dist/video/motion-overlay/motifs.d.ts +63 -0
- package/dist/video/motion-overlay/motifs.d.ts.map +1 -0
- package/dist/video/motion-overlay/motifs.js +192 -0
- package/dist/video/motion-overlay/motifs.js.map +1 -0
- package/dist/video/motion-overlay/motion-style.d.ts +56 -0
- package/dist/video/motion-overlay/motion-style.d.ts.map +1 -0
- package/dist/video/motion-overlay/motion-style.js +130 -0
- package/dist/video/motion-overlay/motion-style.js.map +1 -0
- package/dist/video/motion-overlay/plan.d.ts +49 -0
- package/dist/video/motion-overlay/plan.d.ts.map +1 -0
- package/dist/video/motion-overlay/plan.js +79 -0
- package/dist/video/motion-overlay/plan.js.map +1 -0
- package/dist/video/motion-overlay/preview.d.ts +36 -0
- package/dist/video/motion-overlay/preview.d.ts.map +1 -0
- package/dist/video/motion-overlay/preview.js +169 -0
- package/dist/video/motion-overlay/preview.js.map +1 -0
- package/dist/video/motion-overlay/render-local.d.ts +118 -0
- package/dist/video/motion-overlay/render-local.d.ts.map +1 -0
- package/dist/video/motion-overlay/render-local.js +298 -0
- package/dist/video/motion-overlay/render-local.js.map +1 -0
- package/dist/video/motion-overlay/run.d.ts +58 -0
- package/dist/video/motion-overlay/run.d.ts.map +1 -0
- package/dist/video/motion-overlay/run.js +147 -0
- package/dist/video/motion-overlay/run.js.map +1 -0
- package/dist/video/motion-overlay/slice.d.ts +29 -0
- package/dist/video/motion-overlay/slice.d.ts.map +1 -0
- package/dist/video/motion-overlay/slice.js +88 -0
- package/dist/video/motion-overlay/slice.js.map +1 -0
- package/dist/video/motion-overlay/transcribe.d.ts +49 -0
- package/dist/video/motion-overlay/transcribe.d.ts.map +1 -0
- package/dist/video/motion-overlay/transcribe.js +180 -0
- package/dist/video/motion-overlay/transcribe.js.map +1 -0
- package/dist/video/motion-overlay/types.d.ts +82 -0
- package/dist/video/motion-overlay/types.d.ts.map +1 -0
- package/dist/video/motion-overlay/types.js +12 -0
- package/dist/video/motion-overlay/types.js.map +1 -0
- package/dist/video/motion-overlay/v2v-transport.d.ts +37 -0
- package/dist/video/motion-overlay/v2v-transport.d.ts.map +1 -0
- package/dist/video/motion-overlay/v2v-transport.js +178 -0
- package/dist/video/motion-overlay/v2v-transport.js.map +1 -0
- package/dist/video/motion-overlay/write.d.ts +40 -0
- package/dist/video/motion-overlay/write.d.ts.map +1 -0
- package/dist/video/motion-overlay/write.js +113 -0
- package/dist/video/motion-overlay/write.js.map +1 -0
- package/dist/video/multi-shot-artifact.d.ts +19 -0
- package/dist/video/multi-shot-artifact.d.ts.map +1 -0
- package/dist/video/multi-shot-artifact.js +44 -0
- package/dist/video/multi-shot-artifact.js.map +1 -0
- package/dist/video/multi-shot-prompt.d.ts +99 -0
- package/dist/video/multi-shot-prompt.d.ts.map +1 -0
- package/dist/video/multi-shot-prompt.js +466 -0
- package/dist/video/multi-shot-prompt.js.map +1 -0
- package/dist/video/music-video.d.ts +110 -0
- package/dist/video/music-video.d.ts.map +1 -0
- package/dist/video/music-video.js +190 -0
- package/dist/video/music-video.js.map +1 -0
- package/dist/video/narrate.d.ts +58 -0
- package/dist/video/narrate.d.ts.map +1 -0
- package/dist/video/narrate.js +145 -0
- package/dist/video/narrate.js.map +1 -0
- package/dist/video/native-dreamina.d.ts +35 -0
- package/dist/video/native-dreamina.d.ts.map +1 -0
- package/dist/video/native-dreamina.js +532 -0
- package/dist/video/native-dreamina.js.map +1 -0
- package/dist/video/native-flow-r2v.d.ts +113 -0
- package/dist/video/native-flow-r2v.d.ts.map +1 -0
- package/dist/video/native-flow-r2v.js +223 -0
- package/dist/video/native-flow-r2v.js.map +1 -0
- package/dist/video/native-runway.d.ts +41 -0
- package/dist/video/native-runway.d.ts.map +1 -0
- package/dist/video/native-runway.js +523 -0
- package/dist/video/native-runway.js.map +1 -0
- package/dist/video/native-seedance.d.ts +74 -0
- package/dist/video/native-seedance.d.ts.map +1 -0
- package/dist/video/native-seedance.js +461 -0
- package/dist/video/native-seedance.js.map +1 -0
- package/dist/video/native-veo.d.ts +20 -0
- package/dist/video/native-veo.d.ts.map +1 -0
- package/dist/video/native-veo.js +390 -0
- package/dist/video/native-veo.js.map +1 -0
- package/dist/video/next-actions.d.ts +27 -0
- package/dist/video/next-actions.d.ts.map +1 -0
- package/dist/video/next-actions.js +201 -0
- package/dist/video/next-actions.js.map +1 -0
- package/dist/video/obsidian-export.d.ts +12 -0
- package/dist/video/obsidian-export.d.ts.map +1 -0
- package/dist/video/obsidian-export.js +285 -0
- package/dist/video/obsidian-export.js.map +1 -0
- package/dist/video/obsidian-sync.d.ts +13 -0
- package/dist/video/obsidian-sync.d.ts.map +1 -0
- package/dist/video/obsidian-sync.js +479 -0
- package/dist/video/obsidian-sync.js.map +1 -0
- package/dist/video/obsidian-vault.d.ts +8 -0
- package/dist/video/obsidian-vault.d.ts.map +1 -0
- package/dist/video/obsidian-vault.js +81 -0
- package/dist/video/obsidian-vault.js.map +1 -0
- package/dist/video/outfit-prompts.d.ts +10 -0
- package/dist/video/outfit-prompts.d.ts.map +1 -0
- package/dist/video/outfit-prompts.js +14 -0
- package/dist/video/outfit-prompts.js.map +1 -0
- package/dist/video/outpaint-keyframe.d.ts +95 -0
- package/dist/video/outpaint-keyframe.d.ts.map +1 -0
- package/dist/video/outpaint-keyframe.js +244 -0
- package/dist/video/outpaint-keyframe.js.map +1 -0
- package/dist/video/pipeline-manifest.d.ts +4 -0
- package/dist/video/pipeline-manifest.d.ts.map +1 -0
- package/dist/video/pipeline-manifest.js +13 -0
- package/dist/video/pipeline-manifest.js.map +1 -0
- package/dist/video/pipeline-manifests/director.json +46 -0
- package/dist/video/pipeline-manifests/storyboard.json +46 -0
- package/dist/video/platform-specs.d.ts +26 -0
- package/dist/video/platform-specs.d.ts.map +1 -0
- package/dist/video/platform-specs.js +34 -0
- package/dist/video/platform-specs.js.map +1 -0
- package/dist/video/playbooks.d.ts +11 -0
- package/dist/video/playbooks.d.ts.map +1 -0
- package/dist/video/playbooks.js +22 -0
- package/dist/video/playbooks.js.map +1 -0
- package/dist/video/post-production.d.ts +57 -0
- package/dist/video/post-production.d.ts.map +1 -0
- package/dist/video/post-production.js +210 -0
- package/dist/video/post-production.js.map +1 -0
- package/dist/video/preview-portal/audit.d.ts +4 -0
- package/dist/video/preview-portal/audit.d.ts.map +1 -0
- package/dist/video/preview-portal/audit.js +16 -0
- package/dist/video/preview-portal/audit.js.map +1 -0
- package/dist/video/preview-portal/discovery.d.ts +23 -0
- package/dist/video/preview-portal/discovery.d.ts.map +1 -0
- package/dist/video/preview-portal/discovery.js +733 -0
- package/dist/video/preview-portal/discovery.js.map +1 -0
- package/dist/video/preview-portal/generate.d.ts +42 -0
- package/dist/video/preview-portal/generate.d.ts.map +1 -0
- package/dist/video/preview-portal/generate.js +101 -0
- package/dist/video/preview-portal/generate.js.map +1 -0
- package/dist/video/preview-portal/index.d.ts +12 -0
- package/dist/video/preview-portal/index.d.ts.map +1 -0
- package/dist/video/preview-portal/index.js +8 -0
- package/dist/video/preview-portal/index.js.map +1 -0
- package/dist/video/preview-portal/publish.d.ts +48 -0
- package/dist/video/preview-portal/publish.d.ts.map +1 -0
- package/dist/video/preview-portal/publish.js +169 -0
- package/dist/video/preview-portal/publish.js.map +1 -0
- package/dist/video/preview-portal/render.d.ts +4 -0
- package/dist/video/preview-portal/render.d.ts.map +1 -0
- package/dist/video/preview-portal/render.js +822 -0
- package/dist/video/preview-portal/render.js.map +1 -0
- package/dist/video/preview-portal/shared-assets.d.ts +6 -0
- package/dist/video/preview-portal/shared-assets.d.ts.map +1 -0
- package/dist/video/preview-portal/shared-assets.js +452 -0
- package/dist/video/preview-portal/shared-assets.js.map +1 -0
- package/dist/video/preview-portal/templates.d.ts +4 -0
- package/dist/video/preview-portal/templates.d.ts.map +1 -0
- package/dist/video/preview-portal/templates.js +109 -0
- package/dist/video/preview-portal/templates.js.map +1 -0
- package/dist/video/preview-portal/types.d.ts +246 -0
- package/dist/video/preview-portal/types.d.ts.map +1 -0
- package/dist/video/preview-portal/types.js +28 -0
- package/dist/video/preview-portal/types.js.map +1 -0
- package/dist/video/product-references.d.ts +21 -0
- package/dist/video/product-references.d.ts.map +1 -0
- package/dist/video/product-references.js +25 -0
- package/dist/video/product-references.js.map +1 -0
- package/dist/video/project-blueprint.d.ts +178 -0
- package/dist/video/project-blueprint.d.ts.map +1 -0
- package/dist/video/project-blueprint.js +286 -0
- package/dist/video/project-blueprint.js.map +1 -0
- package/dist/video/project-index.d.ts +82 -0
- package/dist/video/project-index.d.ts.map +1 -0
- package/dist/video/project-index.js +89 -0
- package/dist/video/project-index.js.map +1 -0
- package/dist/video/projects.d.ts +3 -0
- package/dist/video/projects.d.ts.map +1 -0
- package/dist/video/projects.js +18 -0
- package/dist/video/projects.js.map +1 -0
- package/dist/video/prompt-guidance.d.ts +14 -0
- package/dist/video/prompt-guidance.d.ts.map +1 -0
- package/dist/video/prompt-guidance.js +44 -0
- package/dist/video/prompt-guidance.js.map +1 -0
- package/dist/video/prompt-library.d.ts +11 -0
- package/dist/video/prompt-library.d.ts.map +1 -0
- package/dist/video/prompt-library.js +85 -0
- package/dist/video/prompt-library.js.map +1 -0
- package/dist/video/prompt-lint.d.ts +146 -0
- package/dist/video/prompt-lint.d.ts.map +1 -0
- package/dist/video/prompt-lint.js +433 -0
- package/dist/video/prompt-lint.js.map +1 -0
- package/dist/video/prompt-quality.d.ts +29 -0
- package/dist/video/prompt-quality.d.ts.map +1 -0
- package/dist/video/prompt-quality.js +532 -0
- package/dist/video/prompt-quality.js.map +1 -0
- package/dist/video/prompt-rules.d.ts +94 -0
- package/dist/video/prompt-rules.d.ts.map +1 -0
- package/dist/video/prompt-rules.js +169 -0
- package/dist/video/prompt-rules.js.map +1 -0
- package/dist/video/provider-adapter-runner.d.ts +5 -0
- package/dist/video/provider-adapter-runner.d.ts.map +1 -0
- package/dist/video/provider-adapter-runner.js +92 -0
- package/dist/video/provider-adapter-runner.js.map +1 -0
- package/dist/video/provider-platform/index.d.ts +6 -0
- package/dist/video/provider-platform/index.d.ts.map +1 -0
- package/dist/video/provider-platform/index.js +6 -0
- package/dist/video/provider-platform/index.js.map +1 -0
- package/dist/video/provider-platform/registry.d.ts +5 -0
- package/dist/video/provider-platform/registry.d.ts.map +1 -0
- package/dist/video/provider-platform/registry.js +279 -0
- package/dist/video/provider-platform/registry.js.map +1 -0
- package/dist/video/provider-platform/route-capabilities.d.ts +133 -0
- package/dist/video/provider-platform/route-capabilities.d.ts.map +1 -0
- package/dist/video/provider-platform/route-capabilities.js +192 -0
- package/dist/video/provider-platform/route-capabilities.js.map +1 -0
- package/dist/video/provider-platform/router.d.ts +7 -0
- package/dist/video/provider-platform/router.d.ts.map +1 -0
- package/dist/video/provider-platform/router.js +150 -0
- package/dist/video/provider-platform/router.js.map +1 -0
- package/dist/video/provider-platform/security.d.ts +8 -0
- package/dist/video/provider-platform/security.d.ts.map +1 -0
- package/dist/video/provider-platform/security.js +21 -0
- package/dist/video/provider-platform/security.js.map +1 -0
- package/dist/video/provider-platform/telemetry.d.ts +24 -0
- package/dist/video/provider-platform/telemetry.d.ts.map +1 -0
- package/dist/video/provider-platform/telemetry.js +88 -0
- package/dist/video/provider-platform/telemetry.js.map +1 -0
- package/dist/video/provider-platform/types.d.ts +139 -0
- package/dist/video/provider-platform/types.d.ts.map +1 -0
- package/dist/video/provider-platform/types.js +17 -0
- package/dist/video/provider-platform/types.js.map +1 -0
- package/dist/video/provider-status.d.ts +12 -0
- package/dist/video/provider-status.d.ts.map +1 -0
- package/dist/video/provider-status.js +169 -0
- package/dist/video/provider-status.js.map +1 -0
- package/dist/video/providers/dreamina-useapi.d.ts +170 -0
- package/dist/video/providers/dreamina-useapi.d.ts.map +1 -0
- package/dist/video/providers/dreamina-useapi.js +176 -0
- package/dist/video/providers/dreamina-useapi.js.map +1 -0
- package/dist/video/providers/flowmusic-useapi.d.ts +114 -0
- package/dist/video/providers/flowmusic-useapi.d.ts.map +1 -0
- package/dist/video/providers/flowmusic-useapi.js +159 -0
- package/dist/video/providers/flowmusic-useapi.js.map +1 -0
- package/dist/video/providers/google-flow.d.ts +57 -0
- package/dist/video/providers/google-flow.d.ts.map +1 -0
- package/dist/video/providers/google-flow.js +63 -0
- package/dist/video/providers/google-flow.js.map +1 -0
- package/dist/video/providers/public-host.d.ts +40 -0
- package/dist/video/providers/public-host.d.ts.map +1 -0
- package/dist/video/providers/public-host.js +91 -0
- package/dist/video/providers/public-host.js.map +1 -0
- package/dist/video/providers/runway-useapi.d.ts +159 -0
- package/dist/video/providers/runway-useapi.d.ts.map +1 -0
- package/dist/video/providers/runway-useapi.js +200 -0
- package/dist/video/providers/runway-useapi.js.map +1 -0
- package/dist/video/providers/xskill.d.ts +108 -0
- package/dist/video/providers/xskill.d.ts.map +1 -0
- package/dist/video/providers/xskill.js +233 -0
- package/dist/video/providers/xskill.js.map +1 -0
- package/dist/video/readiness.d.ts +18 -0
- package/dist/video/readiness.d.ts.map +1 -0
- package/dist/video/readiness.js +221 -0
- package/dist/video/readiness.js.map +1 -0
- package/dist/video/reference-sheet-store.d.ts +5 -0
- package/dist/video/reference-sheet-store.d.ts.map +1 -0
- package/dist/video/reference-sheet-store.js +28 -0
- package/dist/video/reference-sheet-store.js.map +1 -0
- package/dist/video/reference-sheets.d.ts +40 -0
- package/dist/video/reference-sheets.d.ts.map +1 -0
- package/dist/video/reference-sheets.js +160 -0
- package/dist/video/reference-sheets.js.map +1 -0
- package/dist/video/remix-narrated.d.ts +12 -0
- package/dist/video/remix-narrated.d.ts.map +1 -0
- package/dist/video/remix-narrated.js +73 -0
- package/dist/video/remix-narrated.js.map +1 -0
- package/dist/video/report-diff.d.ts +89 -0
- package/dist/video/report-diff.d.ts.map +1 -0
- package/dist/video/report-diff.js +176 -0
- package/dist/video/report-diff.js.map +1 -0
- package/dist/video/report-history.d.ts +40 -0
- package/dist/video/report-history.d.ts.map +1 -0
- package/dist/video/report-history.js +74 -0
- package/dist/video/report-history.js.map +1 -0
- package/dist/video/report.d.ts +15 -0
- package/dist/video/report.d.ts.map +1 -0
- package/dist/video/report.js +21 -0
- package/dist/video/report.js.map +1 -0
- package/dist/video/review-ui.d.ts +180 -0
- package/dist/video/review-ui.d.ts.map +1 -0
- package/dist/video/review-ui.js +2008 -0
- package/dist/video/review-ui.js.map +1 -0
- package/dist/video/scene-candidate-store.d.ts +12 -0
- package/dist/video/scene-candidate-store.d.ts.map +1 -0
- package/dist/video/scene-candidate-store.js +134 -0
- package/dist/video/scene-candidate-store.js.map +1 -0
- package/dist/video/scene-candidates.d.ts +57 -0
- package/dist/video/scene-candidates.d.ts.map +1 -0
- package/dist/video/scene-candidates.js +149 -0
- package/dist/video/scene-candidates.js.map +1 -0
- package/dist/video/scene-selection-store.d.ts +5 -0
- package/dist/video/scene-selection-store.d.ts.map +1 -0
- package/dist/video/scene-selection-store.js +22 -0
- package/dist/video/scene-selection-store.js.map +1 -0
- package/dist/video/scene-selection.d.ts +83 -0
- package/dist/video/scene-selection.d.ts.map +1 -0
- package/dist/video/scene-selection.js +225 -0
- package/dist/video/scene-selection.js.map +1 -0
- package/dist/video/scheduling.d.ts +3 -0
- package/dist/video/scheduling.d.ts.map +1 -0
- package/dist/video/scheduling.js +16 -0
- package/dist/video/scheduling.js.map +1 -0
- package/dist/video/scorecard.d.ts +12 -0
- package/dist/video/scorecard.d.ts.map +1 -0
- package/dist/video/scorecard.js +68 -0
- package/dist/video/scorecard.js.map +1 -0
- package/dist/video/seedance-asset-library.d.ts +82 -0
- package/dist/video/seedance-asset-library.d.ts.map +1 -0
- package/dist/video/seedance-asset-library.js +146 -0
- package/dist/video/seedance-asset-library.js.map +1 -0
- package/dist/video/seedance-blocks.d.ts +56 -0
- package/dist/video/seedance-blocks.d.ts.map +1 -0
- package/dist/video/seedance-blocks.js +97 -0
- package/dist/video/seedance-blocks.js.map +1 -0
- package/dist/video/seedance-chain-host.d.ts +42 -0
- package/dist/video/seedance-chain-host.d.ts.map +1 -0
- package/dist/video/seedance-chain-host.js +128 -0
- package/dist/video/seedance-chain-host.js.map +1 -0
- package/dist/video/seedance-content-filter.d.ts +80 -0
- package/dist/video/seedance-content-filter.d.ts.map +1 -0
- package/dist/video/seedance-content-filter.js +293 -0
- package/dist/video/seedance-content-filter.js.map +1 -0
- package/dist/video/seedance-skill-loader.d.ts +40 -0
- package/dist/video/seedance-skill-loader.d.ts.map +1 -0
- package/dist/video/seedance-skill-loader.js +53 -0
- package/dist/video/seedance-skill-loader.js.map +1 -0
- package/dist/video/sfx.d.ts +49 -0
- package/dist/video/sfx.d.ts.map +1 -0
- package/dist/video/sfx.js +104 -0
- package/dist/video/sfx.js.map +1 -0
- package/dist/video/shot-grammar.d.ts +103 -0
- package/dist/video/shot-grammar.d.ts.map +1 -0
- package/dist/video/shot-grammar.js +286 -0
- package/dist/video/shot-grammar.js.map +1 -0
- package/dist/video/show-bible.d.ts +113 -0
- package/dist/video/show-bible.d.ts.map +1 -0
- package/dist/video/show-bible.js +140 -0
- package/dist/video/show-bible.js.map +1 -0
- package/dist/video/soundtrack.d.ts +72 -0
- package/dist/video/soundtrack.d.ts.map +1 -0
- package/dist/video/soundtrack.js +171 -0
- package/dist/video/soundtrack.js.map +1 -0
- package/dist/video/stage-guards.d.ts +4 -0
- package/dist/video/stage-guards.d.ts.map +1 -0
- package/dist/video/stage-guards.js +94 -0
- package/dist/video/stage-guards.js.map +1 -0
- package/dist/video/status.d.ts +69 -0
- package/dist/video/status.d.ts.map +1 -0
- package/dist/video/status.js +245 -0
- package/dist/video/status.js.map +1 -0
- package/dist/video/story-bible.d.ts +70 -0
- package/dist/video/story-bible.d.ts.map +1 -0
- package/dist/video/story-bible.js +181 -0
- package/dist/video/story-bible.js.map +1 -0
- package/dist/video/storyboard-grid.d.ts +28 -0
- package/dist/video/storyboard-grid.d.ts.map +1 -0
- package/dist/video/storyboard-grid.js +231 -0
- package/dist/video/storyboard-grid.js.map +1 -0
- package/dist/video/storyboard-markdown.d.ts +62 -0
- package/dist/video/storyboard-markdown.d.ts.map +1 -0
- package/dist/video/storyboard-markdown.js +332 -0
- package/dist/video/storyboard-markdown.js.map +1 -0
- package/dist/video/storyboard-still-candidates.d.ts +31 -0
- package/dist/video/storyboard-still-candidates.d.ts.map +1 -0
- package/dist/video/storyboard-still-candidates.js +57 -0
- package/dist/video/storyboard-still-candidates.js.map +1 -0
- package/dist/video/storyboard-templates.d.ts +28 -0
- package/dist/video/storyboard-templates.d.ts.map +1 -0
- package/dist/video/storyboard-templates.js +215 -0
- package/dist/video/storyboard-templates.js.map +1 -0
- package/dist/video/studio/execute.d.ts +142 -0
- package/dist/video/studio/execute.d.ts.map +1 -0
- package/dist/video/studio/execute.js +270 -0
- package/dist/video/studio/execute.js.map +1 -0
- package/dist/video/studio/planner.d.ts +3 -0
- package/dist/video/studio/planner.d.ts.map +1 -0
- package/dist/video/studio/planner.js +110 -0
- package/dist/video/studio/planner.js.map +1 -0
- package/dist/video/studio/project-context.d.ts +4 -0
- package/dist/video/studio/project-context.d.ts.map +1 -0
- package/dist/video/studio/project-context.js +20 -0
- package/dist/video/studio/project-context.js.map +1 -0
- package/dist/video/studio/recipes.d.ts +4 -0
- package/dist/video/studio/recipes.d.ts.map +1 -0
- package/dist/video/studio/recipes.js +343 -0
- package/dist/video/studio/recipes.js.map +1 -0
- package/dist/video/studio/session.d.ts +8 -0
- package/dist/video/studio/session.d.ts.map +1 -0
- package/dist/video/studio/session.js +17 -0
- package/dist/video/studio/session.js.map +1 -0
- package/dist/video/studio/types.d.ts +59 -0
- package/dist/video/studio/types.d.ts.map +1 -0
- package/dist/video/studio/types.js +2 -0
- package/dist/video/studio/types.js.map +1 -0
- package/dist/video/template-store.d.ts +65 -0
- package/dist/video/template-store.d.ts.map +1 -0
- package/dist/video/template-store.js +168 -0
- package/dist/video/template-store.js.map +1 -0
- package/dist/video/timeline.d.ts +8 -0
- package/dist/video/timeline.d.ts.map +1 -0
- package/dist/video/timeline.js +21 -0
- package/dist/video/timeline.js.map +1 -0
- package/dist/video/title-overlay.d.ts +85 -0
- package/dist/video/title-overlay.d.ts.map +1 -0
- package/dist/video/title-overlay.js +163 -0
- package/dist/video/title-overlay.js.map +1 -0
- package/dist/video/types.d.ts +403 -0
- package/dist/video/types.d.ts.map +1 -0
- package/dist/video/types.js +2 -0
- package/dist/video/types.js.map +1 -0
- package/dist/video/veo-subprocess.d.ts +27 -0
- package/dist/video/veo-subprocess.d.ts.map +1 -0
- package/dist/video/veo-subprocess.js +52 -0
- package/dist/video/veo-subprocess.js.map +1 -0
- package/dist/video/verify-env.d.ts +43 -0
- package/dist/video/verify-env.d.ts.map +1 -0
- package/dist/video/verify-env.js +156 -0
- package/dist/video/verify-env.js.map +1 -0
- package/dist/video/verify-final.d.ts +20 -0
- package/dist/video/verify-final.d.ts.map +1 -0
- package/dist/video/verify-final.js +39 -0
- package/dist/video/verify-final.js.map +1 -0
- package/dist/video/video-context.d.ts +10 -0
- package/dist/video/video-context.d.ts.map +1 -0
- package/dist/video/video-context.js +74 -0
- package/dist/video/video-context.js.map +1 -0
- package/dist/video/vocal-map.d.ts +55 -0
- package/dist/video/vocal-map.d.ts.map +1 -0
- package/dist/video/vocal-map.js +107 -0
- package/dist/video/vocal-map.js.map +1 -0
- package/dist/video/vocal-sync-plan.d.ts +76 -0
- package/dist/video/vocal-sync-plan.d.ts.map +1 -0
- package/dist/video/vocal-sync-plan.js +166 -0
- package/dist/video/vocal-sync-plan.js.map +1 -0
- package/dist/video/voice-clone.d.ts +152 -0
- package/dist/video/voice-clone.d.ts.map +1 -0
- package/dist/video/voice-clone.js +267 -0
- package/dist/video/voice-clone.js.map +1 -0
- package/dist/video/with-retry.d.ts +67 -0
- package/dist/video/with-retry.d.ts.map +1 -0
- package/dist/video/with-retry.js +105 -0
- package/dist/video/with-retry.js.map +1 -0
- package/dist/video/workload.d.ts +20 -0
- package/dist/video/workload.d.ts.map +1 -0
- package/dist/video/workload.js +55 -0
- package/dist/video/workload.js.map +1 -0
- package/dist/video/workspace.d.ts +109 -0
- package/dist/video/workspace.d.ts.map +1 -0
- package/dist/video/workspace.js +132 -0
- package/dist/video/workspace.js.map +1 -0
- package/docs/AGENT_INTEGRATION_RESEARCH.md +123 -0
- package/docs/AI_FILMMAKING_PROMPTS.md +195 -0
- package/docs/ARCHITECTURE.md +257 -0
- package/docs/ASSEMBLE.md +376 -0
- package/docs/BRAND_AGENCY.md +63 -0
- package/docs/CLAWBOT_COVERAGE_PROMPT.md +78 -0
- package/docs/CLI_REFERENCE.md +2638 -0
- package/docs/CONCIERGE_PROMPT.md +139 -0
- package/docs/Claude Code + Higgsfield MCP = FULL Creative Agency.md +179 -0
- package/docs/DEMO_RECORDING.md +61 -0
- package/docs/DEPRECATION.md +79 -0
- package/docs/DIAGRAMS_SOURCE.md +347 -0
- package/docs/DIRECTOR_BLUEPRINT.md +94 -0
- package/docs/GENERATION_TELEMETRY.md +81 -0
- package/docs/IMPROVE_PROMPT.md +76 -0
- package/docs/INFOGRAPHICS_PROMPT.md +83 -0
- package/docs/MASTER_PLAN_ALIGNMENT.md +563 -0
- package/docs/MIGRATION.md +213 -0
- package/docs/MOTION_OVERLAY.md +355 -0
- package/docs/OBSIDIAN.md +300 -0
- package/docs/OPERATIONS.md +142 -0
- package/docs/OPERATOR_HANDOFF.md +108 -0
- package/docs/PRODUCTION_WORKFLOW.md +148 -0
- package/docs/PROJECT_LAYOUT.md +262 -0
- package/docs/PROMPT_QUALITY.md +214 -0
- package/docs/PROVIDER_PLATFORM.md +195 -0
- package/docs/PUBLISHING.md +175 -0
- package/docs/PYTHON_PIPELINE.md +139 -0
- package/docs/REFERENCE_SHEETS.md +469 -0
- package/docs/REFERENCE_VIDEO_SEEDANCE_MOTION_DESIGN_WORKFLOW.md +465 -0
- package/docs/RELEASE_READINESS.md +573 -0
- package/docs/REVIEW_UI_STORYBOARD_WORKFLOW.md +200 -0
- package/docs/SCENE_CANDIDATES.md +518 -0
- package/docs/SKILLS.md +477 -0
- package/docs/SKILL_COHESION_PROMPT.md +88 -0
- package/docs/STORY_BIBLE.md +288 -0
- package/docs/STUDIO.md +96 -0
- package/docs/TEMPLATES.md +143 -0
- package/docs/UNIFICATION_AUDIT.md +321 -0
- package/docs/UPDATE_DOCS_PROMPT.md +78 -0
- package/docs/assets/demo-quickstart.cast +13 -0
- package/docs/assets/demo-quickstart.gif +0 -0
- package/docs/assets/diagram-architecture.jpg +0 -0
- package/docs/assets/diagram-assemble.jpg +0 -0
- package/docs/assets/diagram-lifecycle.jpg +0 -0
- package/docs/assets/diagram-obsidian-loop.jpg +0 -0
- package/docs/assets/diagram-obsidian-vault.jpg +0 -0
- package/docs/assets/diagram-routing.jpg +0 -0
- package/docs/assets/diagram-skills-ecosystem.jpg +0 -0
- package/docs/assets/diagram-story-bible.jpg +0 -0
- package/docs/assets/diagram-studio-goals.jpg +0 -0
- package/docs/assets/docsite-preview.png +0 -0
- package/docs/assets/logo.jpg +0 -0
- package/docs/assets/logo.png +0 -0
- package/docs/preview-portal-audit.md +151 -0
- package/package.json +119 -0
- package/playbooks/seedance-ugc.json +32 -0
- package/playbooks/veo-generic.json +26 -0
- package/references/video/.fixtures/multi-shot-runway-10s.txt +9 -0
- package/references/video/.fixtures/multi-shot-seedance-10s.txt +9 -0
- package/references/video/.fixtures/multi-shot-valid.txt +13 -0
- package/references/video/.fixtures/multi-shot-veo-8s.txt +9 -0
- package/references/video/ai-director-blueprint.md +614 -0
- package/references/video/camera-bible.md +294 -0
- package/references/video/character-reference-sheet.md +14 -0
- package/references/video/checkpoint-protocol.md +26 -0
- package/references/video/clone-ad-template-workflow.md +14 -0
- package/references/video/dialogue-duration-preflight.md +17 -0
- package/references/video/generation-telemetry.md +18 -0
- package/references/video/multi-shot-framework.md +455 -0
- package/references/video/seedance-skills/01-cinematic.md +1329 -0
- package/references/video/seedance-skills/02-3d-cgi.md +884 -0
- package/references/video/seedance-skills/03-cartoon.md +1668 -0
- package/references/video/seedance-skills/04-comic-to-video.md +1810 -0
- package/references/video/seedance-skills/05-fight-scenes.md +741 -0
- package/references/video/seedance-skills/06-motion-design-ad.md +1145 -0
- package/references/video/seedance-skills/07-ecommerce-ad.md +928 -0
- package/references/video/seedance-skills/08-anime-action.md +1145 -0
- package/references/video/seedance-skills/09-product-360.md +988 -0
- package/references/video/seedance-skills/10-music-video.md +1662 -0
- package/references/video/seedance-skills/11-social-hook.md +1874 -0
- package/references/video/seedance-skills/12-brand-story.md +1151 -0
- package/references/video/seedance-skills/13-fashion-lookbook.md +1236 -0
- package/references/video/seedance-skills/14-food-beverage.md +1110 -0
- package/references/video/seedance-skills/15-real-estate.md +2344 -0
- package/references/video/seedance-transport-payloads.md +144 -0
- package/references/video/seedance-ugc-formulas.md +104 -0
- package/references/video/stage-directors.md +47 -0
- package/references/video/style-template-schema.md +40 -0
- package/references/video/veo-prompting-guide.md +42 -0
- package/schemas/video/artifacts/analyze-output.schema.json +60 -0
- package/schemas/video/artifacts/assemble-report.schema.json +116 -0
- package/schemas/video/artifacts/asset-manifest.schema.json +23 -0
- package/schemas/video/artifacts/batch-queue-manifest.schema.json +59 -0
- package/schemas/video/artifacts/brand-definition.schema.json +93 -0
- package/schemas/video/artifacts/brand-dna.schema.json +55 -0
- package/schemas/video/artifacts/brief.schema.json +13 -0
- package/schemas/video/artifacts/clone-plan.schema.json +44 -0
- package/schemas/video/artifacts/dialogue.schema.json +52 -0
- package/schemas/video/artifacts/environment-assets.schema.json +30 -0
- package/schemas/video/artifacts/execution-plan.schema.json +64 -0
- package/schemas/video/artifacts/execution-report.schema.json +37 -0
- package/schemas/video/artifacts/filmmaking-prompts.schema.json +129 -0
- package/schemas/video/artifacts/flow-characters.schema.json +31 -0
- package/schemas/video/artifacts/flow-voices.schema.json +30 -0
- package/schemas/video/artifacts/motion-overlay-plan.schema.json +50 -0
- package/schemas/video/artifacts/multi-shot-prompt.schema.json +90 -0
- package/schemas/video/artifacts/music-video-config.schema.json +108 -0
- package/schemas/video/artifacts/narration.schema.json +54 -0
- package/schemas/video/artifacts/product-references.schema.json +29 -0
- package/schemas/video/artifacts/project-blueprint.schema.json +236 -0
- package/schemas/video/artifacts/publish-report.schema.json +12 -0
- package/schemas/video/artifacts/reference-sheets.schema.json +85 -0
- package/schemas/video/artifacts/review-report.schema.json +12 -0
- package/schemas/video/artifacts/scene-candidates.schema.json +86 -0
- package/schemas/video/artifacts/scene-selection.schema.json +50 -0
- package/schemas/video/artifacts/seedance-assets.schema.json +31 -0
- package/schemas/video/artifacts/sfx.schema.json +31 -0
- package/schemas/video/artifacts/show-bible.schema.json +66 -0
- package/schemas/video/artifacts/soundtrack.schema.json +39 -0
- package/schemas/video/artifacts/story-bible.schema.json +131 -0
- package/schemas/video/artifacts/storyboard.schema.json +58 -0
- package/schemas/video/artifacts/voice-clones.schema.json +37 -0
- package/schemas/video/brand-profile.schema.json +20 -0
- package/schemas/video/errors.json +48 -0
- package/schemas/video/pipeline-manifest.schema.json +51 -0
- package/skills/README.md +113 -0
- package/skills/ai-director/SKILL.md +140 -0
- package/skills/ai-filmmaking/SKILL.md +239 -0
- package/skills/ai-slop-cleaner/SKILL.md +114 -0
- package/skills/brand-agency/SKILL.md +181 -0
- package/skills/brand-presenter/SKILL.md +114 -0
- package/skills/build-fix/SKILL.md +145 -0
- package/skills/bunty/SKILL.md +41 -0
- package/skills/catalog.json +326 -0
- package/skills/character-ad/SKILL.md +154 -0
- package/skills/character-creator/SKILL.md +303 -0
- package/skills/character-library/README.md +12 -0
- package/skills/character-library/SKILL.md +110 -0
- package/skills/clawbot/SKILL.md +26 -0
- package/skills/concierge/SKILL.md +183 -0
- package/skills/configure-notifications/SKILL.md +286 -0
- package/skills/davendra-presenter/SKILL.md +27 -0
- package/skills/davendra-presenter/assets/davendra_intro_1.jpg +0 -0
- package/skills/davendra-presenter/assets/davendra_intro_2.jpg +0 -0
- package/skills/davendra-presenter/assets/davendra_outro_1.jpg +0 -0
- package/skills/davendra-presenter/assets/davendra_outro_2.jpg +0 -0
- package/skills/deep-interview/SKILL.md +358 -0
- package/skills/deepsearch/SKILL.md +38 -0
- package/skills/doctor/SKILL.md +200 -0
- package/skills/graphify/SKILL.md +616 -0
- package/skills/help/SKILL.md +200 -0
- package/skills/higgsfield-generate/SKILL.md +171 -0
- package/skills/improvement-run/SKILL.md +47 -0
- package/skills/motion-reel/SKILL.md +102 -0
- package/skills/movie-director/SKILL.md +338 -0
- package/skills/multi-shot-prompt/SKILL.md +77 -0
- package/skills/nex-presenter/SKILL.md +25 -0
- package/skills/nex-presenter/assets/logo_manifest.json +26 -0
- package/skills/nex-presenter/assets/logo_source.jpg +0 -0
- package/skills/nex-presenter/assets/nex_brief_intro.mp4 +0 -0
- package/skills/nex-presenter/assets/nex_intro_1.jpg +0 -0
- package/skills/nex-presenter/assets/nex_intro_2.jpg +0 -0
- package/skills/nex-presenter/assets/nex_outro_1.jpg +0 -0
- package/skills/nex-presenter/assets/nex_outro_2.jpg +0 -0
- package/skills/nex-presenter/assets/text_overlay.png +0 -0
- package/skills/note/SKILL.md +62 -0
- package/skills/pipeline/SKILL.md +86 -0
- package/skills/review/SKILL.md +38 -0
- package/skills/runway/SKILL.md +131 -0
- package/skills/seedance-prompts/SKILL.md +194 -0
- package/skills/skill/SKILL.md +835 -0
- package/skills/skills-auditor/SKILL.md +73 -0
- package/skills/studio-mode/SKILL.md +148 -0
- package/skills/ugc/SKILL.md +386 -0
- package/skills/ui-ux-pro-max/SKILL.md +386 -0
- package/skills/video-analyze-template/SKILL.md +77 -0
- package/skills/video-clone-ad/SKILL.md +67 -0
- package/skills/video-framework/SKILL.md +201 -0
- package/skills/video-portfolio-ops/SKILL.md +84 -0
- package/skills/video-post/SKILL.md +97 -0
- package/skills/video-production-handoff/SKILL.md +130 -0
- package/skills/video-release-readiness/SKILL.md +93 -0
- package/skills/video-replicator/SKILL.md +368 -0
- package/skills/video-review-ui-qa/SKILL.md +103 -0
- package/skills/video-storyboard/SKILL.md +71 -0
- package/skills/video-thumbnail-lab/SKILL.md +67 -0
- package/skills/web-clone/SKILL.md +366 -0
- package/skills/worker/SKILL.md +106 -0
- package/skills/youtube-audio/SKILL.md +114 -0
- package/src/video/analyze-output.ts +10 -0
- package/src/video/archive-project.ts +65 -0
- package/src/video/artifact-history.ts +23 -0
- package/src/video/artifact-store.ts +59 -0
- package/src/video/artifact-validation.ts +268 -0
- package/src/video/artifacts.ts +156 -0
- package/src/video/assemble/animate-slides.ts +199 -0
- package/src/video/assemble/animation-styles.json +97 -0
- package/src/video/assemble/animation-styles.ts +54 -0
- package/src/video/assemble/assemble.ts +547 -0
- package/src/video/assemble/audio-concat.ts +165 -0
- package/src/video/assemble/audio-mix-plan.ts +150 -0
- package/src/video/assemble/audio-utils.ts +101 -0
- package/src/video/assemble/cut-segment.ts +121 -0
- package/src/video/assemble/ffmpeg.ts +333 -0
- package/src/video/assemble/gemini-vision-classify.ts +153 -0
- package/src/video/assemble/index.ts +247 -0
- package/src/video/assemble/media-qc.ts +252 -0
- package/src/video/assemble/music.ts +261 -0
- package/src/video/assemble/narration-fit.ts +90 -0
- package/src/video/assemble/overlay.ts +225 -0
- package/src/video/assemble/pdf.ts +169 -0
- package/src/video/assemble/qa-dialogue-lint.ts +129 -0
- package/src/video/assemble/qa-image-filter.ts +147 -0
- package/src/video/assemble/qa-image-vision.ts +154 -0
- package/src/video/assemble/qa-narration-vision.ts +135 -0
- package/src/video/assemble/qa-narration.ts +139 -0
- package/src/video/assemble/stitch-ad.ts +222 -0
- package/src/video/assemble/stitch.ts +918 -0
- package/src/video/assemble/text-card.ts +285 -0
- package/src/video/assemble/title-card.ts +186 -0
- package/src/video/assemble/transcript.ts +240 -0
- package/src/video/assemble/tts-elevenlabs.ts +182 -0
- package/src/video/assemble/tts.ts +227 -0
- package/src/video/assemble/types.ts +45 -0
- package/src/video/assemble/upscale.ts +80 -0
- package/src/video/asset-spec.ts +53 -0
- package/src/video/asset-tag-lookup.ts +51 -0
- package/src/video/atomic-write.ts +7 -0
- package/src/video/audio-platform/native-elevenlabs-sfx.ts +128 -0
- package/src/video/audio-platform/native-elevenlabs-tts.ts +119 -0
- package/src/video/audio-platform/native-flowmusic.ts +167 -0
- package/src/video/audio-platform/native-gemini-tts.ts +226 -0
- package/src/video/audio-platform/native-lyria.ts +231 -0
- package/src/video/audio-platform/native-lyria3.ts +244 -0
- package/src/video/audio-platform/registry.ts +220 -0
- package/src/video/audio-platform/suno-backend.ts +36 -0
- package/src/video/audio-platform/types.ts +138 -0
- package/src/video/batch-queue.ts +685 -0
- package/src/video/blueprint-prompt.ts +118 -0
- package/src/video/brand-definition.ts +287 -0
- package/src/video/brand-dna.ts +478 -0
- package/src/video/brand-prompt.ts +28 -0
- package/src/video/candidate-migrate.ts +171 -0
- package/src/video/category-registry.ts +224 -0
- package/src/video/chain-fallback.ts +53 -0
- package/src/video/character-auto-create.ts +547 -0
- package/src/video/character-consistency.ts +85 -0
- package/src/video/characters.ts +145 -0
- package/src/video/checkpoints.ts +60 -0
- package/src/video/cinema-profile.ts +120 -0
- package/src/video/cinematography.ts +1229 -0
- package/src/video/cli-output.ts +94 -0
- package/src/video/cli-schema.ts +505 -0
- package/src/video/cost-estimate.ts +150 -0
- package/src/video/csv-export.ts +150 -0
- package/src/video/dependencies.ts +64 -0
- package/src/video/dialogue-fit.ts +62 -0
- package/src/video/dialogue.ts +221 -0
- package/src/video/director-defaults.ts +432 -0
- package/src/video/director-preflight.ts +543 -0
- package/src/video/doctor-portfolio.ts +197 -0
- package/src/video/doctor.ts +499 -0
- package/src/video/emotion-cues.ts +36 -0
- package/src/video/environment-assets.ts +69 -0
- package/src/video/environment-auto-create.ts +122 -0
- package/src/video/errors.ts +133 -0
- package/src/video/events.ts +42 -0
- package/src/video/execute-autochain.ts +226 -0
- package/src/video/execute.ts +569 -0
- package/src/video/execution-cancel.ts +103 -0
- package/src/video/execution-plan.ts +178 -0
- package/src/video/execution-profile.ts +162 -0
- package/src/video/execution-runtime.ts +975 -0
- package/src/video/execution-seed.ts +46 -0
- package/src/video/execution-status.ts +736 -0
- package/src/video/filmmaking-prompts.ts +1789 -0
- package/src/video/final-media.ts +118 -0
- package/src/video/finish.ts +255 -0
- package/src/video/flow-character-library.ts +342 -0
- package/src/video/flow-markers.ts +330 -0
- package/src/video/gemini-analyze.ts +387 -0
- package/src/video/gemini-continuity.ts +186 -0
- package/src/video/gemini-judge.ts +300 -0
- package/src/video/gemini-key-pool.ts +153 -0
- package/src/video/gen-image-flow.ts +491 -0
- package/src/video/gen-image.ts +392 -0
- package/src/video/generation-telemetry.ts +282 -0
- package/src/video/http-error-safety.ts +13 -0
- package/src/video/image-dimensions.ts +69 -0
- package/src/video/legacy-import.ts +197 -0
- package/src/video/library-clean.ts +399 -0
- package/src/video/lipsync.ts +200 -0
- package/src/video/media-host.ts +153 -0
- package/src/video/metrics.ts +116 -0
- package/src/video/motion-overlay/analyze-reel.ts +200 -0
- package/src/video/motion-overlay/animate-render.ts +176 -0
- package/src/video/motion-overlay/animate.ts +93 -0
- package/src/video/motion-overlay/avatar-host-transport.ts +458 -0
- package/src/video/motion-overlay/avatar-host.ts +238 -0
- package/src/video/motion-overlay/compose-prompt.ts +247 -0
- package/src/video/motion-overlay/execute.ts +355 -0
- package/src/video/motion-overlay/flow-pack.ts +223 -0
- package/src/video/motion-overlay/ingest.ts +210 -0
- package/src/video/motion-overlay/motifs.ts +223 -0
- package/src/video/motion-overlay/motion-style.ts +162 -0
- package/src/video/motion-overlay/plan.ts +111 -0
- package/src/video/motion-overlay/preview.ts +191 -0
- package/src/video/motion-overlay/render-local.ts +441 -0
- package/src/video/motion-overlay/run.ts +217 -0
- package/src/video/motion-overlay/slice.ts +98 -0
- package/src/video/motion-overlay/transcribe.ts +211 -0
- package/src/video/motion-overlay/types.ts +89 -0
- package/src/video/motion-overlay/v2v-transport.ts +209 -0
- package/src/video/motion-overlay/write.ts +142 -0
- package/src/video/multi-shot-artifact.ts +64 -0
- package/src/video/multi-shot-prompt.ts +608 -0
- package/src/video/music-video.ts +324 -0
- package/src/video/narrate.ts +221 -0
- package/src/video/native-dreamina.ts +638 -0
- package/src/video/native-flow-r2v.ts +279 -0
- package/src/video/native-runway.ts +647 -0
- package/src/video/native-seedance.ts +615 -0
- package/src/video/native-veo.ts +470 -0
- package/src/video/next-actions.ts +247 -0
- package/src/video/obsidian-export.ts +336 -0
- package/src/video/obsidian-sync.ts +649 -0
- package/src/video/obsidian-vault.ts +96 -0
- package/src/video/outfit-prompts.ts +14 -0
- package/src/video/outpaint-keyframe.ts +365 -0
- package/src/video/pipeline-manifest.ts +16 -0
- package/src/video/pipeline-manifests/director.json +46 -0
- package/src/video/pipeline-manifests/storyboard.json +46 -0
- package/src/video/platform-specs.ts +50 -0
- package/src/video/playbooks.ts +34 -0
- package/src/video/post-production.ts +277 -0
- package/src/video/preview-portal/audit.ts +20 -0
- package/src/video/preview-portal/discovery.ts +787 -0
- package/src/video/preview-portal/generate.ts +138 -0
- package/src/video/preview-portal/index.ts +41 -0
- package/src/video/preview-portal/publish.ts +215 -0
- package/src/video/preview-portal/render.ts +865 -0
- package/src/video/preview-portal/shared-assets.ts +455 -0
- package/src/video/preview-portal/templates.ts +112 -0
- package/src/video/preview-portal/types.ts +288 -0
- package/src/video/product-references.ts +43 -0
- package/src/video/project-blueprint.ts +458 -0
- package/src/video/project-index.ts +179 -0
- package/src/video/projects.ts +18 -0
- package/src/video/prompt-guidance.ts +64 -0
- package/src/video/prompt-library.ts +96 -0
- package/src/video/prompt-lint.ts +568 -0
- package/src/video/prompt-quality.ts +635 -0
- package/src/video/prompt-rules.ts +209 -0
- package/src/video/provider-adapter-runner.ts +104 -0
- package/src/video/provider-platform/index.ts +5 -0
- package/src/video/provider-platform/registry.ts +286 -0
- package/src/video/provider-platform/route-capabilities.ts +327 -0
- package/src/video/provider-platform/router.ts +221 -0
- package/src/video/provider-platform/security.ts +29 -0
- package/src/video/provider-platform/telemetry.ts +116 -0
- package/src/video/provider-platform/types.ts +192 -0
- package/src/video/provider-status.ts +199 -0
- package/src/video/providers/dreamina-useapi.ts +345 -0
- package/src/video/providers/flowmusic-useapi.ts +252 -0
- package/src/video/providers/google-flow.ts +110 -0
- package/src/video/providers/public-host.ts +128 -0
- package/src/video/providers/runway-useapi.ts +377 -0
- package/src/video/providers/xskill.ts +304 -0
- package/src/video/readiness.ts +284 -0
- package/src/video/reference-sheet-store.ts +40 -0
- package/src/video/reference-sheets.ts +224 -0
- package/src/video/remix-narrated.ts +92 -0
- package/src/video/report-diff.ts +299 -0
- package/src/video/report-history.ts +122 -0
- package/src/video/report.ts +35 -0
- package/src/video/review-ui.ts +2495 -0
- package/src/video/scene-candidate-store.ts +152 -0
- package/src/video/scene-candidates.ts +195 -0
- package/src/video/scene-selection-store.ts +36 -0
- package/src/video/scene-selection.ts +306 -0
- package/src/video/scheduling.ts +18 -0
- package/src/video/scorecard.ts +90 -0
- package/src/video/seedance-asset-library.ts +259 -0
- package/src/video/seedance-blocks.ts +118 -0
- package/src/video/seedance-chain-host.ts +152 -0
- package/src/video/seedance-content-filter.ts +354 -0
- package/src/video/seedance-skill-loader.ts +83 -0
- package/src/video/sfx.ts +159 -0
- package/src/video/shot-grammar.ts +349 -0
- package/src/video/show-bible.ts +235 -0
- package/src/video/soundtrack.ts +257 -0
- package/src/video/stage-guards.ts +112 -0
- package/src/video/status.ts +342 -0
- package/src/video/story-bible.ts +302 -0
- package/src/video/storyboard-grid.ts +320 -0
- package/src/video/storyboard-markdown.ts +434 -0
- package/src/video/storyboard-still-candidates.ts +82 -0
- package/src/video/storyboard-templates.ts +249 -0
- package/src/video/studio/execute.ts +401 -0
- package/src/video/studio/planner.ts +114 -0
- package/src/video/studio/project-context.ts +25 -0
- package/src/video/studio/recipes.ts +346 -0
- package/src/video/studio/session.ts +24 -0
- package/src/video/studio/types.ts +76 -0
- package/src/video/template-store.ts +241 -0
- package/src/video/timeline.ts +32 -0
- package/src/video/title-overlay.ts +234 -0
- package/src/video/types.ts +465 -0
- package/src/video/veo-subprocess.ts +77 -0
- package/src/video/verify-env.ts +206 -0
- package/src/video/verify-final.ts +65 -0
- package/src/video/video-context.ts +92 -0
- package/src/video/vocal-map.ts +155 -0
- package/src/video/vocal-sync-plan.ts +224 -0
- package/src/video/voice-clone.ts +410 -0
- package/src/video/with-retry.ts +149 -0
- package/src/video/workload.ts +87 -0
- package/src/video/workspace.ts +255 -0
- package/tmp/review-station/index.html +4194 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native local overlay renderer (no provider spend, no moderation).
|
|
3
|
+
*
|
|
4
|
+
* Renders each transcript segment as a broadcast lower-third — an SVG rasterised
|
|
5
|
+
* to PNG via `sharp` (resvg text shaping; NO system freetype / ffmpeg `drawtext`
|
|
6
|
+
* needed) — then composites the cards onto the source clip with a single ffmpeg
|
|
7
|
+
* `overlay` filtergraph (each card fades + slides up on its segment window). The
|
|
8
|
+
* original audio is preserved.
|
|
9
|
+
*
|
|
10
|
+
* This is the reliable production path for motion-graphics overlays: the Google
|
|
11
|
+
* Flow omni-flash V2V "add-overlay" edit is moderation-blocked for most inputs
|
|
12
|
+
* (FINISH_REASON_INPUT_VIDEO_EDIT), whereas this runs fully locally.
|
|
13
|
+
*
|
|
14
|
+
* The pure pieces (SVG builder, filtergraph builder, accent-word splitter) are
|
|
15
|
+
* unit-tested; the sharp rasterise + the ffmpeg run are injectable side effects.
|
|
16
|
+
*/
|
|
17
|
+
import sharp from 'sharp';
|
|
18
|
+
import { mkdir, writeFile } from 'node:fs/promises';
|
|
19
|
+
import { dirname, join } from 'node:path';
|
|
20
|
+
import { iconMotifSvg, statMotifSvg, type MotifMoment } from './motifs.js';
|
|
21
|
+
|
|
22
|
+
/** One caption: the spoken text and its absolute window in the source clip. */
|
|
23
|
+
export interface LocalCaption {
|
|
24
|
+
text: string;
|
|
25
|
+
start: number;
|
|
26
|
+
end: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The three card looks, ported from the source skill's style catalog so
|
|
31
|
+
* `--render local --style X` actually changes the rendered overlay (previously
|
|
32
|
+
* only the V2V *prompt* varied by style; the local card was fixed).
|
|
33
|
+
* - `apple-clean` — rounded dark frosted glass, clean sans-serif sentence case.
|
|
34
|
+
* - `editorial-dark` — squared solid-black poster panel, bold condensed UPPERCASE.
|
|
35
|
+
* - `knowledge-tool` — soft cool-dark card, editorial serif, calm lavender accent.
|
|
36
|
+
*/
|
|
37
|
+
export type CardVariant = 'apple-clean' | 'editorial-dark' | 'knowledge-tool';
|
|
38
|
+
|
|
39
|
+
interface VariantSpec {
|
|
40
|
+
/** Panel geometry: floating inset card · full-bleed bar · left-anchored card. */
|
|
41
|
+
layout: 'inset' | 'fullbleed' | 'left';
|
|
42
|
+
panelFill: string;
|
|
43
|
+
panelRx: number;
|
|
44
|
+
stroke: string;
|
|
45
|
+
fontFamily: string;
|
|
46
|
+
/** Font for the kicker/label row (mono for the knowledge `[[ ]]` look). */
|
|
47
|
+
labelFamily: string;
|
|
48
|
+
fontWeight: number;
|
|
49
|
+
uppercase: boolean;
|
|
50
|
+
letterSpacing: number;
|
|
51
|
+
textFill: string;
|
|
52
|
+
/** Headline (giant anchor word) font family for this variant. */
|
|
53
|
+
headlineFamily: string;
|
|
54
|
+
/** Accent treatment: a vertical bar at the panel's left, or a full-width top rule. */
|
|
55
|
+
accentRule: 'left-bar' | 'top-rule';
|
|
56
|
+
accentRuleSize: number;
|
|
57
|
+
/** Kicker style: accent dot · solid accent tag block · `[[ MONO ]]` brackets. */
|
|
58
|
+
label: 'dot' | 'tag' | 'brackets';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Three structurally distinct looks faithful to the source skill's catalog:
|
|
62
|
+
// - apple-clean — a floating inset rounded frosted card, thin left accent bar,
|
|
63
|
+
// accent dot + uppercase kicker, sans-serif sentence case.
|
|
64
|
+
// - editorial-dark — a FULL-BLEED edge-to-edge near-black poster bar, thick accent
|
|
65
|
+
// TOP rule, a solid accent tag block label, bold condensed CAPS.
|
|
66
|
+
// - knowledge-tool — a LEFT-anchored narrower cool-dark study card, thick lavender
|
|
67
|
+
// left rule, a `[[ MONO ]]` bracket label, editorial serif body.
|
|
68
|
+
const VARIANTS: Record<CardVariant, VariantSpec> = {
|
|
69
|
+
'apple-clean': {
|
|
70
|
+
layout: 'inset',
|
|
71
|
+
panelFill: 'rgba(14,14,18,0.86)',
|
|
72
|
+
panelRx: 22,
|
|
73
|
+
stroke: 'rgba(255,255,255,0.15)',
|
|
74
|
+
fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
|
|
75
|
+
labelFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
|
|
76
|
+
fontWeight: 600,
|
|
77
|
+
uppercase: false,
|
|
78
|
+
letterSpacing: 0,
|
|
79
|
+
textFill: '#ffffff',
|
|
80
|
+
headlineFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
|
|
81
|
+
accentRule: 'left-bar',
|
|
82
|
+
accentRuleSize: 8,
|
|
83
|
+
label: 'dot',
|
|
84
|
+
},
|
|
85
|
+
'editorial-dark': {
|
|
86
|
+
layout: 'fullbleed',
|
|
87
|
+
panelFill: 'rgba(0,0,0,0.94)',
|
|
88
|
+
panelRx: 0,
|
|
89
|
+
stroke: '',
|
|
90
|
+
fontFamily: 'Arial Narrow, Helvetica Neue, Arial, sans-serif',
|
|
91
|
+
labelFamily: 'Arial Narrow, Helvetica, Arial, sans-serif',
|
|
92
|
+
fontWeight: 800,
|
|
93
|
+
uppercase: true,
|
|
94
|
+
letterSpacing: 1,
|
|
95
|
+
textFill: '#ffffff',
|
|
96
|
+
headlineFamily: 'Arial Narrow, Helvetica Neue, Arial, sans-serif',
|
|
97
|
+
accentRule: 'top-rule',
|
|
98
|
+
accentRuleSize: 10,
|
|
99
|
+
label: 'tag',
|
|
100
|
+
},
|
|
101
|
+
'knowledge-tool': {
|
|
102
|
+
layout: 'left',
|
|
103
|
+
panelFill: 'rgba(19,19,24,0.93)',
|
|
104
|
+
panelRx: 12,
|
|
105
|
+
stroke: 'rgba(167,139,250,0.28)',
|
|
106
|
+
fontFamily: 'Georgia, Times New Roman, serif',
|
|
107
|
+
labelFamily: 'Menlo, Consolas, monospace',
|
|
108
|
+
fontWeight: 500,
|
|
109
|
+
uppercase: false,
|
|
110
|
+
letterSpacing: 0,
|
|
111
|
+
textFill: '#e9e6f4',
|
|
112
|
+
headlineFamily: 'Georgia, Times New Roman, serif',
|
|
113
|
+
accentRule: 'left-bar',
|
|
114
|
+
accentRuleSize: 12,
|
|
115
|
+
label: 'brackets',
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** Resolve a variant id (defaults to apple-clean — the original card look). */
|
|
120
|
+
function variantSpec(v: CardVariant | undefined): VariantSpec {
|
|
121
|
+
return VARIANTS[v ?? 'apple-clean'];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** Visual config for the lower-third (accent hex + small kicker label + style). */
|
|
125
|
+
export interface LocalRenderStyle {
|
|
126
|
+
accent: string;
|
|
127
|
+
/** Optional small kicker label above the caption (e.g. a brand). Omitted when blank. */
|
|
128
|
+
kicker?: string;
|
|
129
|
+
/** Lowercased words that get the accent colour (e.g. brand/anchor words). */
|
|
130
|
+
accentWords?: string[];
|
|
131
|
+
/** Which card look to render (default `apple-clean`). */
|
|
132
|
+
variant?: CardVariant;
|
|
133
|
+
/**
|
|
134
|
+
* Word-by-word reveal: only the first N words of the caption are visible; the rest
|
|
135
|
+
* render transparent (so the panel keeps its full size — no per-frame reflow). The
|
|
136
|
+
* animated renderer drives this with `revealWordCount(t)`. Omitted → all words.
|
|
137
|
+
*/
|
|
138
|
+
visibleWords?: number;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** Escape the five XML entities so arbitrary transcript text is SVG-safe. Pure. */
|
|
142
|
+
export function xmlEscape(text: string): string {
|
|
143
|
+
return text
|
|
144
|
+
.replace(/&/g, '&')
|
|
145
|
+
.replace(/</g, '<')
|
|
146
|
+
.replace(/>/g, '>')
|
|
147
|
+
.replace(/"/g, '"')
|
|
148
|
+
.replace(/'/g, ''');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Word-wrap `text` to at most `maxChars` per line (greedy by words). Pure — used
|
|
153
|
+
* to size the panel and lay out tspans.
|
|
154
|
+
*/
|
|
155
|
+
export function wrapWords(text: string, maxChars: number): string[] {
|
|
156
|
+
const words = text.trim().split(/\s+/).filter(Boolean);
|
|
157
|
+
const lines: string[] = [];
|
|
158
|
+
let line = '';
|
|
159
|
+
for (const w of words) {
|
|
160
|
+
if (line && line.length + 1 + w.length > maxChars) {
|
|
161
|
+
lines.push(line);
|
|
162
|
+
line = w;
|
|
163
|
+
} else {
|
|
164
|
+
line = line ? `${line} ${w}` : w;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (line) lines.push(line);
|
|
168
|
+
return lines.length ? lines : [''];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Render a wrapped line as `<tspan>`s. Accent words render in the accent colour AND
|
|
173
|
+
* (per the source skill) get a small accent **asterisk** beat-marker after them.
|
|
174
|
+
* Pure.
|
|
175
|
+
*/
|
|
176
|
+
function lineTspans(
|
|
177
|
+
line: string,
|
|
178
|
+
accent: string,
|
|
179
|
+
baseFill: string,
|
|
180
|
+
accentWords: Set<string>,
|
|
181
|
+
reveal?: { counter: { n: number }; visible: number },
|
|
182
|
+
): string {
|
|
183
|
+
return line
|
|
184
|
+
.split(/(\s+)/)
|
|
185
|
+
.map((tok) => {
|
|
186
|
+
if (/^\s+$/.test(tok)) return xmlEscape(tok);
|
|
187
|
+
// Word-by-word reveal: words past the visible count render transparent (they
|
|
188
|
+
// still occupy space so the panel does not reflow frame to frame).
|
|
189
|
+
let hidden = false;
|
|
190
|
+
if (reveal) {
|
|
191
|
+
reveal.counter.n += 1;
|
|
192
|
+
hidden = reveal.counter.n > reveal.visible;
|
|
193
|
+
}
|
|
194
|
+
// fill-opacity (not opacity) — resvg/sharp reliably honours it on <tspan>.
|
|
195
|
+
const op = hidden ? ' fill-opacity="0"' : '';
|
|
196
|
+
const bare = tok.toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
197
|
+
if (accentWords.has(bare)) {
|
|
198
|
+
return `<tspan fill="${accent}"${op}>${xmlEscape(tok)}</tspan><tspan fill="${accent}" font-size="0.7em"${op}>*</tspan>`;
|
|
199
|
+
}
|
|
200
|
+
return `<tspan fill="${baseFill}"${op}>${xmlEscape(tok)}</tspan>`;
|
|
201
|
+
})
|
|
202
|
+
.join('');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Build the lower-third SVG for one caption. Pure & deterministic. `style.variant`
|
|
207
|
+
* selects a **structurally distinct** card per the source skill's catalog — a
|
|
208
|
+
* floating inset frosted card (apple-clean), a full-bleed near-black poster bar with
|
|
209
|
+
* an accent top rule and a solid accent tag (editorial-dark), or a left-anchored cool
|
|
210
|
+
* study card with a `[[ MONO ]]` bracket label and serif body (knowledge-tool).
|
|
211
|
+
*/
|
|
212
|
+
export function lowerThirdSvg(
|
|
213
|
+
caption: Pick<LocalCaption, 'text'>,
|
|
214
|
+
dims: { width: number; height: number },
|
|
215
|
+
style: LocalRenderStyle,
|
|
216
|
+
): string {
|
|
217
|
+
const { width: W, height: H } = dims;
|
|
218
|
+
const spec = variantSpec(style.variant);
|
|
219
|
+
const accent = style.accent;
|
|
220
|
+
const accentWords = new Set((style.accentWords ?? []).map((w) => w.toLowerCase().replace(/[^a-z0-9]/g, '')));
|
|
221
|
+
|
|
222
|
+
// Layout geometry differs per variant — this is the main structural distinction.
|
|
223
|
+
const px = spec.layout === 'fullbleed' ? 0 : 36;
|
|
224
|
+
const panelW = spec.layout === 'fullbleed' ? W : spec.layout === 'left' ? Math.round(W * 0.62) : W - 72;
|
|
225
|
+
const padX = 44;
|
|
226
|
+
const tx = px + padX;
|
|
227
|
+
const topPad = spec.accentRule === 'top-rule' ? spec.accentRuleSize : 0;
|
|
228
|
+
|
|
229
|
+
// Smaller, less shouty lower-third text (a bit tighter than the original 46px) —
|
|
230
|
+
// the smaller font also fits more characters per line, so captions wrap less.
|
|
231
|
+
const fontSize = 38;
|
|
232
|
+
const maxChars = Math.max(12, Math.floor((panelW - padX - 56) / 20));
|
|
233
|
+
const raw = caption.text.replace(/\s+$/, '');
|
|
234
|
+
const text = spec.uppercase ? raw.toUpperCase() : raw;
|
|
235
|
+
const lines = wrapWords(text, maxChars);
|
|
236
|
+
const lineH = fontSize + 14;
|
|
237
|
+
const labelH = 42;
|
|
238
|
+
const panelH = topPad + 30 + labelH + lines.length * lineH + 22;
|
|
239
|
+
const py = H - panelH - 70;
|
|
240
|
+
const labelBaseline = py + topPad + 40;
|
|
241
|
+
const textTop = labelBaseline + 50;
|
|
242
|
+
const lsAttr = spec.letterSpacing ? ` letter-spacing="${spec.letterSpacing}"` : '';
|
|
243
|
+
// Word-by-word reveal: a shared counter walks every word across all lines.
|
|
244
|
+
const reveal = style.visibleWords !== undefined ? { counter: { n: 0 }, visible: style.visibleWords } : undefined;
|
|
245
|
+
const tspanLines = lines
|
|
246
|
+
.map((l, i) => `<tspan x="${tx}" dy="${i === 0 ? 0 : lineH}">${lineTspans(l, accent, spec.textFill, accentWords, reveal)}</tspan>`)
|
|
247
|
+
.join('');
|
|
248
|
+
|
|
249
|
+
const accentRuleSvg =
|
|
250
|
+
spec.accentRule === 'top-rule'
|
|
251
|
+
? `<rect x="${px}" y="${py}" width="${panelW}" height="${spec.accentRuleSize}" fill="${accent}"/>`
|
|
252
|
+
: `<rect x="${px + 18}" y="${py + 20}" width="${spec.accentRuleSize}" height="${panelH - 40}" rx="${spec.panelRx ? 4 : 0}" fill="${accent}"/>`;
|
|
253
|
+
|
|
254
|
+
const kicker = (style.kicker ?? '').trim().toUpperCase();
|
|
255
|
+
let labelSvg = '';
|
|
256
|
+
if (kicker) {
|
|
257
|
+
if (spec.label === 'tag') {
|
|
258
|
+
const tagW = 24 + kicker.length * 14;
|
|
259
|
+
labelSvg = `<rect x="${tx}" y="${labelBaseline - 26}" width="${tagW}" height="34" fill="${accent}"/>
|
|
260
|
+
<text x="${tx + 12}" y="${labelBaseline - 1}" font-family="${spec.labelFamily}" font-size="22" font-weight="800" fill="#000000" letter-spacing="1.5">${xmlEscape(kicker)}</text>`;
|
|
261
|
+
} else if (spec.label === 'brackets') {
|
|
262
|
+
labelSvg = `<text x="${tx}" y="${labelBaseline}" font-family="${spec.labelFamily}" font-size="21" fill="${accent}" letter-spacing="1">${xmlEscape(`[[ ${kicker} ]]`)}</text>`;
|
|
263
|
+
} else {
|
|
264
|
+
labelSvg = `<circle cx="${tx + 7}" cy="${labelBaseline - 7}" r="7" fill="${accent}"/>
|
|
265
|
+
<text x="${tx + 24}" y="${labelBaseline}" font-family="${spec.labelFamily}" font-size="22" fill="rgba(255,255,255,0.7)" letter-spacing="1.6">${xmlEscape(kicker)}</text>`;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
const strokeSvg = spec.stroke
|
|
270
|
+
? `<rect x="${px}" y="${py}" width="${panelW}" height="${panelH}" rx="${spec.panelRx}" fill="none" stroke="${spec.stroke}" stroke-width="2"/>`
|
|
271
|
+
: '';
|
|
272
|
+
|
|
273
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${W}" height="${H}">
|
|
274
|
+
<rect x="${px}" y="${py}" width="${panelW}" height="${panelH}" rx="${spec.panelRx}" fill="${spec.panelFill}"/>
|
|
275
|
+
${strokeSvg}
|
|
276
|
+
${accentRuleSvg}
|
|
277
|
+
${labelSvg}
|
|
278
|
+
<text y="${textTop}" font-family="${spec.fontFamily}" font-size="${fontSize}" font-weight="${spec.fontWeight}" fill="${spec.textFill}"${lsAttr}>${tspanLines}</text>
|
|
279
|
+
</svg>`;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Build the giant **anchor-headline** SVG — a single dominant keyword centred in
|
|
284
|
+
* the upper-middle of the frame, with the accent asterisk beat-marker after it
|
|
285
|
+
* (the source skill's signature kinetic-typography moment). Pure & deterministic.
|
|
286
|
+
*/
|
|
287
|
+
export function anchorHeadlineSvg(
|
|
288
|
+
word: string,
|
|
289
|
+
dims: { width: number; height: number },
|
|
290
|
+
style: LocalRenderStyle,
|
|
291
|
+
): string {
|
|
292
|
+
const { width: W, height: H } = dims;
|
|
293
|
+
const spec = variantSpec(style.variant);
|
|
294
|
+
const raw = word.trim();
|
|
295
|
+
const text = spec.uppercase || (style.variant ?? 'apple-clean') !== 'knowledge-tool' ? raw.toUpperCase() : raw;
|
|
296
|
+
// Size to fit the frame width (rough advance ~0.6em per glyph), capped.
|
|
297
|
+
const fitted = Math.floor((W * 0.92) / Math.max(1, text.length) / 0.6);
|
|
298
|
+
const fontSize = Math.max(64, Math.min(Math.floor(W * 0.2), fitted));
|
|
299
|
+
const cy = Math.floor(H * 0.42);
|
|
300
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${W}" height="${H}">
|
|
301
|
+
<text x="${W / 2}" y="${cy}" text-anchor="middle" font-family="${spec.headlineFamily}" font-size="${fontSize}" font-weight="${Math.max(spec.fontWeight, 700)}" fill="${spec.textFill}" letter-spacing="${spec.letterSpacing}">${xmlEscape(text)}<tspan fill="${style.accent}" font-size="${Math.floor(fontSize * 0.7)}" dy="${-Math.floor(fontSize * 0.18)}">*</tspan></text>
|
|
302
|
+
</svg>`;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** Rasterise a lower-third SVG to a PNG buffer via sharp. Side effect (sharp). */
|
|
306
|
+
export async function rasteriseCaption(svg: string): Promise<Buffer> {
|
|
307
|
+
return sharp(Buffer.from(svg)).png().toBuffer();
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Build the ffmpeg `-filter_complex` graph compositing N pre-rendered full-frame
|
|
312
|
+
* card PNGs (inputs 1..N; input 0 is the source video) onto the source — each
|
|
313
|
+
* card fades in/out and slides up 36px on entrance over its [start,end] window.
|
|
314
|
+
* Pure (string only).
|
|
315
|
+
*/
|
|
316
|
+
export function buildLocalFiltergraph(cards: Array<{ start: number; end: number }>): string {
|
|
317
|
+
if (cards.length === 0) return '[0:v]null[vout]';
|
|
318
|
+
const parts: string[] = [];
|
|
319
|
+
let last = '[0:v]';
|
|
320
|
+
cards.forEach((c, i) => {
|
|
321
|
+
const start = c.start;
|
|
322
|
+
const end = Math.max(c.end, start + 1.0);
|
|
323
|
+
parts.push(
|
|
324
|
+
`[${i + 1}:v]format=rgba,fade=t=in:st=${start.toFixed(2)}:d=0.30:alpha=1,` +
|
|
325
|
+
`fade=t=out:st=${(end - 0.3).toFixed(2)}:d=0.30:alpha=1[c${i}]`,
|
|
326
|
+
);
|
|
327
|
+
const out = i === cards.length - 1 ? '[vout]' : `[v${i}]`;
|
|
328
|
+
const yExpr = `'if(lt(t,${(start + 0.35).toFixed(2)}), 36*(1-(t-${start.toFixed(2)})/0.35), 0)'`;
|
|
329
|
+
parts.push(`${last}[c${i}]overlay=x=0:y=${yExpr}:enable='between(t,${start.toFixed(2)},${end.toFixed(2)})'${out}`);
|
|
330
|
+
last = `[v${i}]`;
|
|
331
|
+
});
|
|
332
|
+
return parts.join(';');
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Build the ffmpeg argv for the overlay composite. Pure — the source is input 0,
|
|
337
|
+
* each card PNG is a looped image input, the graph maps [vout] + the source audio.
|
|
338
|
+
*/
|
|
339
|
+
export function buildLocalRenderArgs(
|
|
340
|
+
sourceVideo: string,
|
|
341
|
+
cardPngPaths: string[],
|
|
342
|
+
filtergraph: string,
|
|
343
|
+
outputPath: string,
|
|
344
|
+
): string[] {
|
|
345
|
+
const args = ['-y', '-i', sourceVideo];
|
|
346
|
+
for (const p of cardPngPaths) args.push('-loop', '1', '-i', p);
|
|
347
|
+
args.push(
|
|
348
|
+
'-filter_complex',
|
|
349
|
+
filtergraph,
|
|
350
|
+
'-map',
|
|
351
|
+
'[vout]',
|
|
352
|
+
'-map',
|
|
353
|
+
'0:a?',
|
|
354
|
+
'-c:v',
|
|
355
|
+
'libx264',
|
|
356
|
+
'-crf',
|
|
357
|
+
'18',
|
|
358
|
+
'-preset',
|
|
359
|
+
'fast',
|
|
360
|
+
'-pix_fmt',
|
|
361
|
+
'yuv420p',
|
|
362
|
+
'-c:a',
|
|
363
|
+
'aac',
|
|
364
|
+
'-b:a',
|
|
365
|
+
'192k',
|
|
366
|
+
'-movflags',
|
|
367
|
+
'+faststart',
|
|
368
|
+
'-shortest',
|
|
369
|
+
outputPath,
|
|
370
|
+
);
|
|
371
|
+
return args;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/** Runs ffmpeg with the given argv. Injectable so the orchestrator tests offline. */
|
|
375
|
+
export type FfmpegRunner = (args: string[]) => Promise<void>;
|
|
376
|
+
|
|
377
|
+
export interface RenderLocalDeps {
|
|
378
|
+
ffmpeg: FfmpegRunner;
|
|
379
|
+
/** Override the rasteriser (tests). Defaults to the live sharp path. */
|
|
380
|
+
rasterise?: (svg: string) => Promise<Buffer>;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/** A giant anchor-headline moment: the word + the short window it pulses on. */
|
|
384
|
+
export interface HeadlineMoment {
|
|
385
|
+
word: string;
|
|
386
|
+
start: number;
|
|
387
|
+
end: number;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export interface RenderLocalOptions {
|
|
391
|
+
sourceVideo: string;
|
|
392
|
+
captions: LocalCaption[];
|
|
393
|
+
dims: { width: number; height: number };
|
|
394
|
+
style: LocalRenderStyle;
|
|
395
|
+
/** Optional giant anchor-headline overlays, composited above the lower-thirds. */
|
|
396
|
+
headlines?: HeadlineMoment[];
|
|
397
|
+
/** Optional concept icons / stat callouts, composited in the upper third. */
|
|
398
|
+
motifs?: MotifMoment[];
|
|
399
|
+
/** Dir for the intermediate card PNGs. */
|
|
400
|
+
cardDir: string;
|
|
401
|
+
outputPath: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/** Resolve a motif into its full-frame SVG using the active style. Pure. */
|
|
405
|
+
export function motifSvg(m: MotifMoment, dims: { width: number; height: number }, style: LocalRenderStyle): string {
|
|
406
|
+
const spec = variantSpec(style.variant);
|
|
407
|
+
return m.kind === 'stat'
|
|
408
|
+
? statMotifSvg(m, dims, { accent: style.accent, numberFamily: spec.headlineFamily })
|
|
409
|
+
: iconMotifSvg(m, dims, { accent: style.accent, labelFamily: spec.labelFamily });
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Render the local overlay reel: rasterise one lower-third per caption (plus any
|
|
414
|
+
* giant anchor-headline moments), then composite all elements onto the source with
|
|
415
|
+
* the fade/slide filtergraph, sorted by start time. Returns the list of card PNG
|
|
416
|
+
* paths written (for provenance / tests).
|
|
417
|
+
*/
|
|
418
|
+
export async function renderLocalOverlay(opts: RenderLocalOptions, deps: RenderLocalDeps): Promise<string[]> {
|
|
419
|
+
const rasterise = deps.rasterise ?? rasteriseCaption;
|
|
420
|
+
await mkdir(opts.cardDir, { recursive: true });
|
|
421
|
+
await mkdir(dirname(opts.outputPath), { recursive: true });
|
|
422
|
+
|
|
423
|
+
// Build a unified, start-sorted element list: lower-thirds + headline pulses +
|
|
424
|
+
// concept icon / stat motifs (the "visualize what's being said" layer).
|
|
425
|
+
const elements: Array<{ svg: string; start: number; end: number }> = [
|
|
426
|
+
...opts.captions.map((c) => ({ svg: lowerThirdSvg(c, opts.dims, opts.style), start: c.start, end: c.end })),
|
|
427
|
+
...(opts.headlines ?? []).map((h) => ({ svg: anchorHeadlineSvg(h.word, opts.dims, opts.style), start: h.start, end: h.end })),
|
|
428
|
+
...(opts.motifs ?? []).map((m) => ({ svg: motifSvg(m, opts.dims, opts.style), start: m.start, end: m.end })),
|
|
429
|
+
].sort((a, b) => a.start - b.start);
|
|
430
|
+
|
|
431
|
+
const cardPaths: string[] = [];
|
|
432
|
+
for (let i = 0; i < elements.length; i++) {
|
|
433
|
+
const png = await rasterise(elements[i].svg);
|
|
434
|
+
const p = join(opts.cardDir, `card-${String(i).padStart(2, '0')}.png`);
|
|
435
|
+
await writeFile(p, png);
|
|
436
|
+
cardPaths.push(p);
|
|
437
|
+
}
|
|
438
|
+
const filtergraph = buildLocalFiltergraph(elements.map((e) => ({ start: e.start, end: e.end })));
|
|
439
|
+
await deps.ffmpeg(buildLocalRenderArgs(opts.sourceVideo, cardPaths, filtergraph, opts.outputPath));
|
|
440
|
+
return cardPaths;
|
|
441
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Motion-overlay plan orchestrator (Phase 2).
|
|
3
|
+
*
|
|
4
|
+
* `planMotionOverlay` is the dry/plan front door wired into `vclaw video
|
|
5
|
+
* motion-overlay`. It runs the full plan pipeline:
|
|
6
|
+
* ingest.probeVideo → extractAudio → transcribe (or --transcript) → slice →
|
|
7
|
+
* ingest.cutTake per take → extractFrames → readFrameObservations →
|
|
8
|
+
* analyze-reel → compose-prompt per take → plan → write work folder.
|
|
9
|
+
*
|
|
10
|
+
* Every side effect (ffmpeg, ffprobe, Gemini STT) is injected via `deps`, so the
|
|
11
|
+
* whole orchestrator runs offline in tests with fakes. NO provider spend happens
|
|
12
|
+
* here — this is the plan/dry path; execution (V2V) lands in Phase 4.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { join } from 'node:path';
|
|
16
|
+
import { copyFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
|
+
import { analyzeTake } from './analyze-reel.js';
|
|
18
|
+
import { composePrompt } from './compose-prompt.js';
|
|
19
|
+
import {
|
|
20
|
+
cutTake,
|
|
21
|
+
extractAudio,
|
|
22
|
+
extractFrames,
|
|
23
|
+
probeVideo,
|
|
24
|
+
readFrameObservations,
|
|
25
|
+
type IngestDeps,
|
|
26
|
+
} from './ingest.js';
|
|
27
|
+
import { buildMotionOverlayPlan, takeStem } from './plan.js';
|
|
28
|
+
import { resolveStyle } from './motion-style.js';
|
|
29
|
+
import { planSplits } from './slice.js';
|
|
30
|
+
import { loadTranscript, transcribeAudio, type TranscribeDeps } from './transcribe.js';
|
|
31
|
+
import { writeMotionOverlayReview } from './preview.js';
|
|
32
|
+
import { writeWorkFolder } from './write.js';
|
|
33
|
+
import type { MotionLayout, MotionOverlayPlan, MotionStyleId, Transcript } from './types.js';
|
|
34
|
+
|
|
35
|
+
/** Human-readable language label for the on-screen-text GLOBAL RULE. */
|
|
36
|
+
const LANGUAGE_NAMES: Record<string, string> = {
|
|
37
|
+
en: 'English',
|
|
38
|
+
pt: 'Portuguese',
|
|
39
|
+
es: 'Spanish',
|
|
40
|
+
fr: 'French',
|
|
41
|
+
de: 'German',
|
|
42
|
+
it: 'Italian',
|
|
43
|
+
hi: 'Hindi',
|
|
44
|
+
ja: 'Japanese',
|
|
45
|
+
zh: 'Chinese',
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** Map a BCP-47 code (or "auto") to a human language label for the prompt. */
|
|
49
|
+
export function languageLabel(code: string): string {
|
|
50
|
+
const key = code.trim().toLowerCase();
|
|
51
|
+
if (!key || key === 'auto') return 'the spoken language';
|
|
52
|
+
return LANGUAGE_NAMES[key] ?? code.trim();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface PlanMotionOverlayArgs {
|
|
56
|
+
/** Absolute path to the input video. */
|
|
57
|
+
input: string;
|
|
58
|
+
/** Absolute work-folder path to emit into. */
|
|
59
|
+
workdir: string;
|
|
60
|
+
layout: MotionLayout;
|
|
61
|
+
style: MotionStyleId;
|
|
62
|
+
/** Requested STT language ("auto" lets Gemini detect). */
|
|
63
|
+
lang: string;
|
|
64
|
+
/** Omni hard per-clip limit (seconds). */
|
|
65
|
+
maxTakeSeconds: number;
|
|
66
|
+
/** Optional accent override (hex or name). */
|
|
67
|
+
accent?: string;
|
|
68
|
+
/** Optional brand-derived accent (wins over --accent). */
|
|
69
|
+
brandAccent?: string;
|
|
70
|
+
/** Optional bring-your-own transcript path (skips STT). */
|
|
71
|
+
transcriptPath?: string;
|
|
72
|
+
/** Number of reference frames to sample (default 3). */
|
|
73
|
+
frameCount?: number;
|
|
74
|
+
/** Emit the `review/review.html` approval surface alongside the plan. */
|
|
75
|
+
preview?: boolean;
|
|
76
|
+
/** Deterministic timestamp for the manifest (tests). */
|
|
77
|
+
generatedAt?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface PlanMotionOverlayDeps extends IngestDeps, TranscribeDeps {}
|
|
81
|
+
|
|
82
|
+
export interface PlanMotionOverlayResult {
|
|
83
|
+
plan: MotionOverlayPlan;
|
|
84
|
+
manifestPath: string;
|
|
85
|
+
readmePath: string;
|
|
86
|
+
promptPaths: string[];
|
|
87
|
+
/** Path to `review/review.html` when `preview` was requested, else undefined. */
|
|
88
|
+
reviewPath?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Run the full plan pipeline and emit the work folder. Returns the assembled
|
|
93
|
+
* plan + the paths written. Pure orchestration over injected side effects.
|
|
94
|
+
*/
|
|
95
|
+
export async function planMotionOverlay(
|
|
96
|
+
args: PlanMotionOverlayArgs,
|
|
97
|
+
deps: PlanMotionOverlayDeps = {},
|
|
98
|
+
): Promise<PlanMotionOverlayResult> {
|
|
99
|
+
const ingestDeps: IngestDeps = {
|
|
100
|
+
...(deps.runFfmpeg ? { runFfmpeg: deps.runFfmpeg } : {}),
|
|
101
|
+
...(deps.probe ? { probe: deps.probe } : {}),
|
|
102
|
+
};
|
|
103
|
+
const transcribeDeps: TranscribeDeps = {
|
|
104
|
+
...(deps.transcriber ? { transcriber: deps.transcriber } : {}),
|
|
105
|
+
...(deps.fetcher ? { fetcher: deps.fetcher } : {}),
|
|
106
|
+
...(deps.endpoint ? { endpoint: deps.endpoint } : {}),
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// 0. Create the work-folder subdirs up front so ingest can write into them
|
|
110
|
+
// (the README/manifest are emitted by writeWorkFolder at the end).
|
|
111
|
+
await Promise.all([
|
|
112
|
+
mkdir(join(args.workdir, 'source'), { recursive: true }),
|
|
113
|
+
mkdir(join(args.workdir, 'takes'), { recursive: true }),
|
|
114
|
+
mkdir(join(args.workdir, 'frames'), { recursive: true }),
|
|
115
|
+
mkdir(join(args.workdir, 'prompts'), { recursive: true }),
|
|
116
|
+
]);
|
|
117
|
+
|
|
118
|
+
// 1. Probe the input.
|
|
119
|
+
const probe = await probeVideo(args.input, ingestDeps);
|
|
120
|
+
|
|
121
|
+
// 2. Extract audio into the work folder's source/ dir, then transcribe.
|
|
122
|
+
const audioPath = join(args.workdir, 'source', 'audio.aac');
|
|
123
|
+
await extractAudio(args.input, audioPath, ingestDeps);
|
|
124
|
+
|
|
125
|
+
let transcript: Transcript;
|
|
126
|
+
if (args.transcriptPath) {
|
|
127
|
+
transcript = await loadTranscript(args.transcriptPath);
|
|
128
|
+
} else {
|
|
129
|
+
transcript = await transcribeAudio(audioPath, args.lang, transcribeDeps);
|
|
130
|
+
}
|
|
131
|
+
// Persist the transcript alongside source/ for the operator + execute phase.
|
|
132
|
+
const transcriptOut = join(args.workdir, 'source', 'transcript.json');
|
|
133
|
+
await writeFile(transcriptOut, `${JSON.stringify(transcript, null, 2)}\n`, 'utf-8');
|
|
134
|
+
|
|
135
|
+
// 3. Slice into takes at sentence boundaries ≤ max.
|
|
136
|
+
const splits = planSplits(transcript, args.maxTakeSeconds);
|
|
137
|
+
|
|
138
|
+
// 4. Cut each take frame-accurately + sample reference frames.
|
|
139
|
+
for (const split of splits) {
|
|
140
|
+
const clipPath = join(args.workdir, 'takes', `${takeStem(split)}.mp4`);
|
|
141
|
+
await cutTake(args.input, split.start, split.end, clipPath, ingestDeps);
|
|
142
|
+
}
|
|
143
|
+
const frameFiles = await extractFrames(
|
|
144
|
+
args.input,
|
|
145
|
+
join(args.workdir, 'frames'),
|
|
146
|
+
probe.durationSeconds,
|
|
147
|
+
args.frameCount ?? 3,
|
|
148
|
+
ingestDeps,
|
|
149
|
+
);
|
|
150
|
+
const frames = readFrameObservations(probe, frameFiles);
|
|
151
|
+
|
|
152
|
+
// 5. Resolve style + analyze + compose per take.
|
|
153
|
+
const resolvedStyle = resolveStyle(args.style, {
|
|
154
|
+
...(args.accent ? { accent: args.accent } : {}),
|
|
155
|
+
...(args.brandAccent ? { brand: { accent: args.brandAccent } } : {}),
|
|
156
|
+
});
|
|
157
|
+
const onScreenLanguage = languageLabel(transcript.language || args.lang);
|
|
158
|
+
|
|
159
|
+
const analyses = splits.map((split) => analyzeTake(split, transcript.segments, splits.length));
|
|
160
|
+
const prompts = splits.map((split, i) =>
|
|
161
|
+
composePrompt({
|
|
162
|
+
index: split.index,
|
|
163
|
+
split,
|
|
164
|
+
segments: transcript.segments,
|
|
165
|
+
layout: args.layout,
|
|
166
|
+
style: resolvedStyle,
|
|
167
|
+
analysis: analyses[i],
|
|
168
|
+
frames,
|
|
169
|
+
language: onScreenLanguage,
|
|
170
|
+
durationSeconds: split.end - split.start,
|
|
171
|
+
}),
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
// 6. Assemble the manifest.
|
|
175
|
+
const plan = buildMotionOverlayPlan({
|
|
176
|
+
input: {
|
|
177
|
+
path: args.input,
|
|
178
|
+
durationSeconds: probe.durationSeconds,
|
|
179
|
+
width: probe.width,
|
|
180
|
+
height: probe.height,
|
|
181
|
+
aspect: probe.aspect,
|
|
182
|
+
},
|
|
183
|
+
layout: args.layout,
|
|
184
|
+
style: args.style,
|
|
185
|
+
accent: resolvedStyle.accent,
|
|
186
|
+
language: transcript.language || args.lang,
|
|
187
|
+
workdir: args.workdir,
|
|
188
|
+
splits,
|
|
189
|
+
analyses,
|
|
190
|
+
prompts,
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
// 7. Write the work folder (README + manifest + per-take prompts).
|
|
194
|
+
const written = await writeWorkFolder(args.workdir, plan, {
|
|
195
|
+
...(args.generatedAt ? { generatedAt: args.generatedAt } : {}),
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
// Copy the original into source/ for provenance (best-effort; non-fatal).
|
|
199
|
+
await copyFile(args.input, join(args.workdir, 'source', 'original.mp4')).catch(() => {});
|
|
200
|
+
|
|
201
|
+
const stampedPlan: MotionOverlayPlan = { ...plan, generatedAt: args.generatedAt ?? plan.generatedAt };
|
|
202
|
+
|
|
203
|
+
// Optionally emit the review/review.html approval surface (the contract).
|
|
204
|
+
let reviewPath: string | undefined;
|
|
205
|
+
if (args.preview) {
|
|
206
|
+
const review = await writeMotionOverlayReview(args.workdir, stampedPlan);
|
|
207
|
+
reviewPath = review.reviewPath;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return {
|
|
211
|
+
plan: stampedPlan,
|
|
212
|
+
manifestPath: written.manifestPath,
|
|
213
|
+
readmePath: written.readmePath,
|
|
214
|
+
promptPaths: written.promptPaths,
|
|
215
|
+
...(reviewPath ? { reviewPath } : {}),
|
|
216
|
+
};
|
|
217
|
+
}
|