@vibeframe/cli 0.105.1 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/adapters/claude.d.ts +14 -0
- package/dist/agent/adapters/gemini.d.ts +14 -0
- package/dist/agent/adapters/index.d.ts +27 -0
- package/dist/agent/adapters/ollama.d.ts +19 -0
- package/dist/agent/adapters/openai.d.ts +14 -0
- package/dist/agent/adapters/openrouter.d.ts +15 -0
- package/dist/agent/adapters/openrouter.test.d.ts +4 -0
- package/dist/agent/adapters/xai.d.ts +14 -0
- package/dist/agent/index.d.ts +109 -0
- package/dist/agent/memory/index.d.ts +69 -0
- package/dist/agent/prompts/system.d.ts +5 -0
- package/dist/agent/tools/e2e.test.d.ts +25 -0
- package/dist/agent/tools/index.d.ts +59 -0
- package/dist/agent/tools/integration.test.d.ts +10 -0
- package/dist/agent/tools/scene.test.d.ts +1 -0
- package/dist/agent/types.d.ts +72 -0
- package/dist/commands/_shared/build-asset-metadata.d.ts +43 -0
- package/dist/commands/_shared/build-asset-reference.d.ts +18 -0
- package/dist/commands/_shared/build-backdrop-prompt.d.ts +8 -0
- package/dist/commands/_shared/build-backdrop-prompt.test.d.ts +1 -0
- package/dist/commands/_shared/build-cache.d.ts +37 -0
- package/dist/commands/_shared/build-plan.d.ts +107 -0
- package/dist/commands/_shared/build-plan.test.d.ts +1 -0
- package/dist/commands/_shared/compose-prompts.d.ts +97 -0
- package/dist/commands/_shared/compose-prompts.test.d.ts +1 -0
- package/dist/commands/_shared/compose-scenes-skills.d.ts +282 -0
- package/dist/commands/_shared/compose-scenes-skills.test.d.ts +1 -0
- package/dist/commands/_shared/composer-resolve.d.ts +47 -0
- package/dist/commands/_shared/composer-resolve.test.d.ts +1 -0
- package/dist/commands/_shared/cost-tier.d.ts +58 -0
- package/dist/commands/_shared/edit/_helpers.d.ts +12 -0
- package/dist/commands/_shared/edit/caption.d.ts +47 -0
- package/dist/commands/_shared/edit/fade.d.ts +38 -0
- package/dist/commands/_shared/edit/jump-cut.d.ts +80 -0
- package/dist/commands/_shared/edit/noise-reduce.d.ts +33 -0
- package/dist/commands/_shared/edit/silence-cut.d.ts +63 -0
- package/dist/commands/_shared/edit/text-overlay.d.ts +50 -0
- package/dist/commands/_shared/edit/translate-srt.d.ts +40 -0
- package/dist/commands/_shared/edit/video-review.d.ts +62 -0
- package/dist/commands/_shared/execute-fill-gaps.d.ts +97 -0
- package/dist/commands/_shared/hf-skill-bundle/bundle-content.d.ts +16 -0
- package/dist/commands/_shared/hf-skill-bundle/bundle.d.ts +57 -0
- package/dist/commands/_shared/hf-skill-bundle/bundle.test.d.ts +1 -0
- package/dist/commands/_shared/init-templates.d.ts +58 -0
- package/dist/commands/_shared/init-templates.test.d.ts +1 -0
- package/dist/commands/_shared/install-skill.d.ts +76 -0
- package/dist/commands/_shared/install-skill.test.d.ts +1 -0
- package/dist/commands/_shared/openai-image.d.ts +49 -0
- package/dist/commands/_shared/openai-image.test.d.ts +1 -0
- package/dist/commands/_shared/product-surface.d.ts +11 -0
- package/dist/commands/_shared/product-surface.test.d.ts +1 -0
- package/dist/commands/_shared/project-config.d.ts +60 -0
- package/dist/commands/_shared/render-inspect.d.ts +104 -0
- package/dist/commands/_shared/render-inspect.test.d.ts +1 -0
- package/dist/commands/_shared/review-report.d.ts +65 -0
- package/dist/commands/_shared/root-sync.d.ts +39 -0
- package/dist/commands/_shared/scene-audio-mux.d.ts +74 -0
- package/dist/commands/_shared/scene-audio-mux.test.d.ts +6 -0
- package/dist/commands/_shared/scene-audio-scan.d.ts +93 -0
- package/dist/commands/_shared/scene-audio-scan.test.d.ts +5 -0
- package/dist/commands/_shared/scene-build-mode.d.ts +4 -0
- package/dist/commands/_shared/scene-build-mode.test.d.ts +1 -0
- package/dist/commands/_shared/scene-build.d.ts +452 -0
- package/dist/commands/_shared/scene-build.test.d.ts +1 -0
- package/dist/commands/_shared/scene-html-emit.d.ts +163 -0
- package/dist/commands/_shared/scene-html-emit.test.d.ts +1 -0
- package/dist/commands/_shared/scene-inspect.d.ts +56 -0
- package/dist/commands/_shared/scene-inspect.test.d.ts +1 -0
- package/dist/commands/_shared/scene-lint.d.ts +109 -0
- package/dist/commands/_shared/scene-lint.test.d.ts +1 -0
- package/dist/commands/_shared/scene-project.d.ts +147 -0
- package/dist/commands/_shared/scene-project.test.d.ts +1 -0
- package/dist/commands/_shared/scene-render.d.ts +109 -0
- package/dist/commands/_shared/scene-render.test.d.ts +1 -0
- package/dist/commands/_shared/scene-repair.d.ts +22 -0
- package/dist/commands/_shared/scene-repair.test.d.ts +1 -0
- package/dist/commands/_shared/status-jobs.d.ts +197 -0
- package/dist/commands/_shared/status-jobs.test.d.ts +1 -0
- package/dist/commands/_shared/storyboard-draft.d.ts +13 -0
- package/dist/commands/_shared/storyboard-draft.test.d.ts +1 -0
- package/dist/commands/_shared/storyboard-edit.d.ts +26 -0
- package/dist/commands/_shared/storyboard-edit.test.d.ts +1 -0
- package/dist/commands/_shared/storyboard-parse.d.ts +159 -0
- package/dist/commands/_shared/storyboard-parse.test.d.ts +1 -0
- package/dist/commands/_shared/storyboard-revise.d.ts +32 -0
- package/dist/commands/_shared/storyboard-revise.test.d.ts +1 -0
- package/dist/commands/_shared/timeline-project.d.ts +32 -0
- package/dist/commands/_shared/tts-resolve.d.ts +75 -0
- package/dist/commands/_shared/tts-resolve.test.d.ts +5 -0
- package/dist/commands/_shared/video-providers.d.ts +44 -0
- package/dist/commands/_shared/video-utils.d.ts +71 -0
- package/dist/commands/_shared/visual-styles.d.ts +55 -0
- package/dist/commands/_shared/visual-styles.test.d.ts +1 -0
- package/dist/commands/_shared/walkthroughs/walkthroughs.d.ts +47 -0
- package/dist/commands/_shared/walkthroughs/walkthroughs.test.d.ts +1 -0
- package/dist/commands/agent.d.ts +24 -0
- package/dist/commands/ai-analyze.d.ts +105 -0
- package/dist/commands/ai-animated-caption.d.ts +63 -0
- package/dist/commands/ai-audio.d.ts +92 -0
- package/dist/commands/ai-edit-cli.d.ts +13 -0
- package/dist/commands/ai-edit.d.ts +29 -0
- package/dist/commands/ai-fill-gaps.d.ts +15 -0
- package/dist/commands/ai-helpers.d.ts +26 -0
- package/dist/commands/ai-highlights.d.ts +126 -0
- package/dist/commands/ai-image.d.ts +71 -0
- package/dist/commands/ai-motion.d.ts +53 -0
- package/dist/commands/ai-review.d.ts +58 -0
- package/dist/commands/ai-script-pipeline-cli.d.ts +10 -0
- package/dist/commands/ai-script-pipeline.d.ts +74 -0
- package/dist/commands/ai-suggest-edit.d.ts +32 -0
- package/dist/commands/ai-video.d.ts +95 -0
- package/dist/commands/ai.test.d.ts +1 -0
- package/dist/commands/audio.d.ts +17 -0
- package/dist/commands/batch.d.ts +2 -0
- package/dist/commands/batch.test.d.ts +1 -0
- package/dist/commands/build.d.ts +2 -0
- package/dist/commands/completion.d.ts +20 -0
- package/dist/commands/completion.test.d.ts +1 -0
- package/dist/commands/context.d.ts +7 -0
- package/dist/commands/context.test.d.ts +1 -0
- package/dist/commands/demo.d.ts +6 -0
- package/dist/commands/detect.d.ts +55 -0
- package/dist/commands/doctor.d.ts +5 -0
- package/dist/commands/doctor.test.d.ts +1 -0
- package/dist/commands/edit/motion-overlay.d.ts +30 -0
- package/dist/commands/edit-cmd.d.ts +112 -0
- package/dist/commands/envelope-snapshots.test.d.ts +32 -0
- package/dist/commands/export.d.ts +60 -0
- package/dist/commands/export.test.d.ts +1 -0
- package/dist/commands/generate/background.d.ts +22 -0
- package/dist/commands/generate/image.d.ts +8 -0
- package/dist/commands/generate/music-status.d.ts +20 -0
- package/dist/commands/generate/music.d.ts +27 -0
- package/dist/commands/generate/sound-effect.d.ts +19 -0
- package/dist/commands/generate/speech.d.ts +21 -0
- package/dist/commands/generate/storyboard.d.ts +27 -0
- package/dist/commands/generate/thumbnail.d.ts +8 -0
- package/dist/commands/generate/video-cancel.d.ts +8 -0
- package/dist/commands/generate/video-extend.d.ts +8 -0
- package/dist/commands/generate/video-status.d.ts +8 -0
- package/dist/commands/generate/video.d.ts +8 -0
- package/dist/commands/generate.d.ts +36 -0
- package/dist/commands/init.d.ts +24 -0
- package/dist/commands/init.test.d.ts +1 -0
- package/dist/commands/inspect.d.ts +20 -0
- package/dist/commands/media.d.ts +2 -0
- package/dist/commands/output.d.ts +80 -0
- package/dist/commands/output.test.d.ts +1 -0
- package/dist/commands/plan.d.ts +2 -0
- package/dist/commands/project.d.ts +2 -0
- package/dist/commands/project.test.d.ts +1 -0
- package/dist/commands/provider-config-cli.test.d.ts +1 -0
- package/dist/commands/q-flag-collision.test.d.ts +1 -0
- package/dist/commands/remix.d.ts +20 -0
- package/dist/commands/render.d.ts +2 -0
- package/dist/commands/run.d.ts +14 -0
- package/dist/commands/sanitize.d.ts +20 -0
- package/dist/commands/scene.d.ts +95 -0
- package/dist/commands/scene.test.d.ts +1 -0
- package/dist/commands/schema.d.ts +12 -0
- package/dist/commands/setup.d.ts +5 -0
- package/dist/commands/setup.test.d.ts +1 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/storyboard.d.ts +2 -0
- package/dist/commands/timeline.d.ts +2 -0
- package/dist/commands/timeline.test.d.ts +1 -0
- package/dist/commands/validate.d.ts +33 -0
- package/dist/commands/walkthrough.d.ts +21 -0
- package/dist/config/config.test.d.ts +1 -0
- package/dist/config/index.d.ts +110 -0
- package/dist/config/schema.d.ts +64 -0
- package/dist/config/scope.test.d.ts +1 -0
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/index.js +345 -0
- package/dist/engine/project.d.ts +93 -0
- package/dist/engine/project.test.d.ts +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +500 -330
- package/dist/pipeline/executor.d.ts +27 -0
- package/dist/pipeline/generate-actions.test.d.ts +1 -0
- package/dist/pipeline/index.d.ts +3 -0
- package/dist/pipeline/renderers/__tests__/html-template.test.d.ts +1 -0
- package/dist/pipeline/renderers/__tests__/integration.test.d.ts +1 -0
- package/dist/pipeline/renderers/chrome.d.ts +25 -0
- package/dist/pipeline/renderers/html-clips.d.ts +19 -0
- package/dist/pipeline/renderers/html-runtime.d.ts +6 -0
- package/dist/pipeline/renderers/html-template.d.ts +2 -0
- package/dist/pipeline/renderers/hyperframes.d.ts +7 -0
- package/dist/pipeline/renderers/project-builder.d.ts +7 -0
- package/dist/pipeline/renderers/types.d.ts +39 -0
- package/dist/pipeline/resolver.d.ts +19 -0
- package/dist/pipeline/scene-actions.test.d.ts +1 -0
- package/dist/pipeline/types.d.ts +81 -0
- package/dist/tools/adapters/agent.d.ts +9 -0
- package/dist/tools/adapters/agent.js +188 -0
- package/dist/tools/adapters/mcp.d.ts +34 -0
- package/dist/tools/adapters/mcp.js +173 -0
- package/dist/tools/define-tool.d.ts +82 -0
- package/dist/tools/define-tool.js +214 -0
- package/dist/tools/manifest/_project-io.d.ts +13 -0
- package/dist/tools/manifest/agent-only.d.ts +236 -0
- package/dist/tools/manifest/audio.d.ts +93 -0
- package/dist/tools/manifest/detect.d.ts +47 -0
- package/dist/tools/manifest/edit.d.ts +398 -0
- package/dist/tools/manifest/export.d.ts +27 -0
- package/dist/tools/manifest/generate.d.ts +310 -0
- package/dist/tools/manifest/index.d.ts +22 -0
- package/dist/tools/manifest/index.js +60812 -0
- package/dist/tools/manifest/inspect.d.ts +139 -0
- package/dist/tools/manifest/project.d.ts +33 -0
- package/dist/tools/manifest/remix.d.ts +154 -0
- package/dist/tools/manifest/scene.d.ts +221 -0
- package/dist/tools/manifest/status.d.ts +36 -0
- package/dist/tools/manifest/storyboard.d.ts +136 -0
- package/dist/tools/manifest/timeline.d.ts +173 -0
- package/dist/tools/manifest/walkthrough.d.ts +22 -0
- package/dist/tools/manifest.test.d.ts +13 -0
- package/dist/tools/zod-to-json-schema.d.ts +47 -0
- package/dist/utils/agent-host-detect.d.ts +61 -0
- package/dist/utils/agent-host-detect.test.d.ts +1 -0
- package/dist/utils/api-key.d.ts +58 -0
- package/dist/utils/api-key.test.d.ts +1 -0
- package/dist/utils/audio.d.ts +22 -0
- package/dist/utils/clipboard.d.ts +27 -0
- package/dist/utils/clipboard.test.d.ts +1 -0
- package/dist/utils/exec-safe.d.ts +21 -0
- package/dist/utils/first-run.d.ts +16 -0
- package/dist/utils/input-validation.d.ts +26 -0
- package/dist/utils/key-format.d.ts +15 -0
- package/dist/utils/key-live-test.d.ts +29 -0
- package/dist/utils/key-live-test.test.d.ts +1 -0
- package/dist/utils/open-url.d.ts +26 -0
- package/dist/utils/open-url.test.d.ts +1 -0
- package/dist/utils/project-resolver.d.ts +30 -0
- package/dist/utils/project-resolver.test.d.ts +8 -0
- package/dist/utils/provider-resolver.d.ts +32 -0
- package/dist/utils/provider-resolver.test.d.ts +13 -0
- package/dist/utils/remotion.d.ts +201 -0
- package/dist/utils/subtitle.d.ts +64 -0
- package/dist/utils/subtitle.test.d.ts +1 -0
- package/dist/utils/tty.d.ts +86 -0
- package/dist/utils/tty.test.d.ts +1 -0
- package/dist/utils/upload-host.d.ts +15 -0
- package/dist/utils/upload-host.test.d.ts +1 -0
- package/package.json +15 -115
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* Get the duration of a media file using ffprobe
|
|
4
|
+
* For images, returns a default duration since they have no inherent time
|
|
5
|
+
*/
|
|
6
|
+
export declare function getMediaDuration(filePath: string, mediaType: "video" | "audio" | "image", defaultImageDuration?: number): Promise<number>;
|
|
7
|
+
/**
|
|
8
|
+
* Check if a media file has an audio stream
|
|
9
|
+
*/
|
|
10
|
+
export declare function checkHasAudio(filePath: string): Promise<boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* Export result for programmatic usage
|
|
13
|
+
*/
|
|
14
|
+
export interface ExportResult {
|
|
15
|
+
success: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
outputPath?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Gap filling strategy for timeline gaps
|
|
21
|
+
* - "black": Fill gaps with black frames (fallback)
|
|
22
|
+
* - "extend": Extend adjacent clips using source media if available
|
|
23
|
+
*/
|
|
24
|
+
export type GapFillStrategy = "black" | "extend";
|
|
25
|
+
/**
|
|
26
|
+
* Export options
|
|
27
|
+
*/
|
|
28
|
+
export interface ExportOptions {
|
|
29
|
+
preset?: "draft" | "standard" | "high" | "ultra";
|
|
30
|
+
format?: "mp4" | "webm" | "mov" | "gif";
|
|
31
|
+
overwrite?: boolean;
|
|
32
|
+
gapFill?: GapFillStrategy;
|
|
33
|
+
bitrate?: string;
|
|
34
|
+
fps?: number;
|
|
35
|
+
resolution?: string;
|
|
36
|
+
codec?: "h264" | "h265" | "vp9";
|
|
37
|
+
}
|
|
38
|
+
export type VideoCodec = "h264" | "h265" | "vp9";
|
|
39
|
+
export declare const BITRATE_PATTERN: RegExp;
|
|
40
|
+
export declare const RESOLUTION_PATTERN: RegExp;
|
|
41
|
+
export declare const VALID_CODECS: VideoCodec[];
|
|
42
|
+
export interface CustomOverrides {
|
|
43
|
+
bitrate?: string;
|
|
44
|
+
fps?: number;
|
|
45
|
+
resolution?: string;
|
|
46
|
+
codec?: VideoCodec;
|
|
47
|
+
}
|
|
48
|
+
export declare function validateOverrides(overrides: CustomOverrides): string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Reusable export function for programmatic usage
|
|
51
|
+
*/
|
|
52
|
+
export declare function runExport(projectPath: string, outputPath: string, options?: ExportOptions): Promise<ExportResult>;
|
|
53
|
+
export declare const exportCommand: Command;
|
|
54
|
+
export interface PresetSettings {
|
|
55
|
+
resolution: string;
|
|
56
|
+
videoBitrate: string;
|
|
57
|
+
audioBitrate: string;
|
|
58
|
+
ffmpegArgs: string[];
|
|
59
|
+
}
|
|
60
|
+
export declare function applyCustomOverrides(settings: PresetSettings, overrides: CustomOverrides): PresetSettings;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/background
|
|
3
|
+
* @description `vibe generate background` — OpenAI gpt-image-2 backdrop
|
|
4
|
+
* generation. Split out of `generate.ts` in v0.69 (Plan G Phase 2).
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from "commander";
|
|
7
|
+
export interface ExecuteBackgroundOptions {
|
|
8
|
+
description: string;
|
|
9
|
+
aspect?: "16:9" | "9:16" | "1:1" | string;
|
|
10
|
+
output?: string;
|
|
11
|
+
apiKey?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ExecuteBackgroundResult {
|
|
14
|
+
success: boolean;
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
outputPath?: string;
|
|
17
|
+
base64?: string;
|
|
18
|
+
revisedPrompt?: string;
|
|
19
|
+
error?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function executeBackground(options: ExecuteBackgroundOptions): Promise<ExecuteBackgroundResult>;
|
|
22
|
+
export declare function registerBackgroundCommand(parent: Command): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/image
|
|
3
|
+
* @description `vibe generate image` (alias `img`) — multi-provider image
|
|
4
|
+
* generation. OpenAI gpt-image-2, Gemini Nano Banana, Grok, Runway. Split
|
|
5
|
+
* out of `generate.ts` in v0.69 (Plan G Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export declare function registerImageCommand(parent: Command): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/music-status
|
|
3
|
+
* @description `vibe generate music-status` (hidden) — Replicate music
|
|
4
|
+
* generation status check. Split out of `generate.ts` in v0.69 (Plan G
|
|
5
|
+
* Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export interface ExecuteMusicStatusOptions {
|
|
9
|
+
taskId: string;
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ExecuteMusicStatusResult {
|
|
13
|
+
success: boolean;
|
|
14
|
+
taskId?: string;
|
|
15
|
+
status?: "completed" | "failed" | "processing";
|
|
16
|
+
audioUrl?: string;
|
|
17
|
+
error?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function executeMusicStatus(options: ExecuteMusicStatusOptions): Promise<ExecuteMusicStatusResult>;
|
|
20
|
+
export declare function registerMusicStatusCommand(parent: Command): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/music
|
|
3
|
+
* @description `vibe generate music` — ElevenLabs Music API (default, sync,
|
|
4
|
+
* up to 10 min) or Replicate MusicGen (async, max 30 s, optional melody
|
|
5
|
+
* conditioning). Split out of `generate.ts` in v0.69 (Plan G Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export interface ExecuteMusicOptions {
|
|
9
|
+
prompt: string;
|
|
10
|
+
output?: string;
|
|
11
|
+
duration?: number;
|
|
12
|
+
provider?: "elevenlabs" | "replicate";
|
|
13
|
+
instrumental?: boolean;
|
|
14
|
+
wait?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ExecuteMusicResult {
|
|
17
|
+
success: boolean;
|
|
18
|
+
outputPath?: string;
|
|
19
|
+
provider?: string;
|
|
20
|
+
duration?: number;
|
|
21
|
+
taskId?: string;
|
|
22
|
+
status?: string;
|
|
23
|
+
audioUrl?: string;
|
|
24
|
+
error?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function executeMusic(options: ExecuteMusicOptions): Promise<ExecuteMusicResult>;
|
|
27
|
+
export declare function registerMusicCommand(parent: Command): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/sound-effect
|
|
3
|
+
* @description `vibe generate sound-effect` — ElevenLabs SFX generation.
|
|
4
|
+
* Split out of `generate.ts` in v0.69 (Plan G Phase 2).
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from "commander";
|
|
7
|
+
export interface ExecuteSoundEffectOptions {
|
|
8
|
+
prompt: string;
|
|
9
|
+
output?: string;
|
|
10
|
+
duration?: number;
|
|
11
|
+
promptInfluence?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ExecuteSoundEffectResult {
|
|
14
|
+
success: boolean;
|
|
15
|
+
outputPath?: string;
|
|
16
|
+
error?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function executeSoundEffect(options: ExecuteSoundEffectOptions): Promise<ExecuteSoundEffectResult>;
|
|
19
|
+
export declare function registerSoundEffectCommand(parent: Command): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/speech
|
|
3
|
+
* @description `vibe generate speech` (alias `tts`) — ElevenLabs text-to-
|
|
4
|
+
* speech with optional duration-fit post-processing. Split out of
|
|
5
|
+
* `generate.ts` in v0.69 (Plan G Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export interface ExecuteSpeechOptions {
|
|
9
|
+
text: string;
|
|
10
|
+
output?: string;
|
|
11
|
+
voice?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ExecuteSpeechResult {
|
|
14
|
+
success: boolean;
|
|
15
|
+
outputPath?: string;
|
|
16
|
+
characterCount?: number;
|
|
17
|
+
error?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function executeSpeech(options: ExecuteSpeechOptions): Promise<ExecuteSpeechResult>;
|
|
20
|
+
export declare function registerSpeechCommand(parent: Command): void;
|
|
21
|
+
export declare function registerNarrationCommand(parent: Command): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/storyboard
|
|
3
|
+
* @description `vibe generate storyboard` — Claude-powered script-to-
|
|
4
|
+
* storyboard analysis. Split out of `generate.ts` in v0.69 (Plan G Phase 2).
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from "commander";
|
|
7
|
+
export interface ExecuteStoryboardOptions {
|
|
8
|
+
content: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
creativity?: "low" | "high";
|
|
11
|
+
output?: string;
|
|
12
|
+
apiKey?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ExecuteStoryboardResult {
|
|
15
|
+
success: boolean;
|
|
16
|
+
segments?: Array<{
|
|
17
|
+
description: string;
|
|
18
|
+
visuals?: string;
|
|
19
|
+
duration?: number;
|
|
20
|
+
narration?: string;
|
|
21
|
+
}>;
|
|
22
|
+
segmentCount?: number;
|
|
23
|
+
outputPath?: string;
|
|
24
|
+
error?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function executeStoryboard(options: ExecuteStoryboardOptions): Promise<ExecuteStoryboardResult>;
|
|
27
|
+
export declare function registerStoryboardCommand(parent: Command): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/thumbnail
|
|
3
|
+
* @description `vibe generate thumbnail` — DALL-E generation OR
|
|
4
|
+
* best-frame extraction from video via Gemini analysis. Split out of
|
|
5
|
+
* `generate.ts` in v0.69 (Plan G Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export declare function registerThumbnailCommand(parent: Command): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/video-cancel
|
|
3
|
+
* @description `vibe generate video-cancel` (hidden) — cancel in-flight Grok
|
|
4
|
+
* or Runway video generation. Split out of `generate.ts` in v0.69 (Plan G
|
|
5
|
+
* Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export declare function registerVideoCancelCommand(parent: Command): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/video-extend
|
|
3
|
+
* @description `vibe generate video-extend` (hidden) — extend video duration
|
|
4
|
+
* via Kling or Veo (Gemini). Split out of `generate.ts` in v0.69 (Plan G
|
|
5
|
+
* Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export declare function registerVideoExtendCommand(parent: Command): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/video-status
|
|
3
|
+
* @description `vibe generate video-status` (hidden) — check Grok/Runway/
|
|
4
|
+
* Kling video generation status, optionally wait + download. Split out of
|
|
5
|
+
* `generate.ts` in v0.69 (Plan G Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export declare function registerVideoStatusCommand(parent: Command): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate/video
|
|
3
|
+
* @description `vibe generate video` (alias `vid`) — multi-provider video
|
|
4
|
+
* generation. fal.ai (Seedance 2.0), Grok, Veo (Gemini), Kling, Runway.
|
|
5
|
+
* Split out of `generate.ts` in v0.69 (Plan G Phase 2).
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export declare function registerVideoCommand(parent: Command): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module generate
|
|
3
|
+
*
|
|
4
|
+
* Top-level `vibe generate` command group for AI asset generation.
|
|
5
|
+
*
|
|
6
|
+
* Commands:
|
|
7
|
+
* generate image - Generate image (Gemini, OpenAI, Grok, Runway)
|
|
8
|
+
* generate video - Generate video (Seedance, Grok, Kling, Runway, Veo)
|
|
9
|
+
* generate speech - Text-to-speech (ElevenLabs)
|
|
10
|
+
* generate sound-effect - Sound effects (ElevenLabs)
|
|
11
|
+
* generate music - Music generation (ElevenLabs default, Replicate MusicGen)
|
|
12
|
+
* generate music-status - Check music generation status
|
|
13
|
+
* generate storyboard - Script-to-storyboard (Claude)
|
|
14
|
+
* generate motion - Standalone motion assets (Claude/Gemini + Remotion)
|
|
15
|
+
* generate thumbnail - Thumbnail generation/extraction
|
|
16
|
+
* generate background - AI background generation (OpenAI)
|
|
17
|
+
* generate video-status - Check video generation status (Grok/Runway/Kling)
|
|
18
|
+
* generate video-cancel - Cancel video generation (Grok/Runway)
|
|
19
|
+
* generate video-extend - Extend video (Kling/Veo)
|
|
20
|
+
*
|
|
21
|
+
* @dependencies OpenAI, Gemini, Runway, Kling, ElevenLabs, Replicate, Claude, FFmpeg
|
|
22
|
+
*/
|
|
23
|
+
import { Command } from "commander";
|
|
24
|
+
export { executeSoundEffect } from "./generate/sound-effect.js";
|
|
25
|
+
export type { ExecuteSoundEffectOptions, ExecuteSoundEffectResult, } from "./generate/sound-effect.js";
|
|
26
|
+
export { executeMusicStatus } from "./generate/music-status.js";
|
|
27
|
+
export type { ExecuteMusicStatusOptions, ExecuteMusicStatusResult, } from "./generate/music-status.js";
|
|
28
|
+
export { executeBackground } from "./generate/background.js";
|
|
29
|
+
export type { ExecuteBackgroundOptions, ExecuteBackgroundResult } from "./generate/background.js";
|
|
30
|
+
export { executeStoryboard } from "./generate/storyboard.js";
|
|
31
|
+
export type { ExecuteStoryboardOptions, ExecuteStoryboardResult } from "./generate/storyboard.js";
|
|
32
|
+
export { executeSpeech } from "./generate/speech.js";
|
|
33
|
+
export type { ExecuteSpeechOptions, ExecuteSpeechResult } from "./generate/speech.js";
|
|
34
|
+
export { executeMusic } from "./generate/music.js";
|
|
35
|
+
export type { ExecuteMusicOptions, ExecuteMusicResult } from "./generate/music.js";
|
|
36
|
+
export declare const generateCommand: Command;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module commands/init
|
|
3
|
+
*
|
|
4
|
+
* `vibe init [project-dir]` — v0.61 C2 project-scope scaffolder.
|
|
5
|
+
*
|
|
6
|
+
* Pairs with v0.61 C1 `vibe setup` (user scope). Where setup writes
|
|
7
|
+
* machine-wide config (`~/.vibeframe/config.yaml`), init writes
|
|
8
|
+
* project-local files: `AGENTS.md` (cross-tool), `CLAUDE.md` (Claude
|
|
9
|
+
* Code, imports `@AGENTS.md`), `.env.example`, `.gitignore` additions,
|
|
10
|
+
* and an optional `vibe.project.yaml`.
|
|
11
|
+
*
|
|
12
|
+
* Scaffolding decision tree:
|
|
13
|
+
* - Always: `.gitignore` additions, `.env.example`
|
|
14
|
+
* - If Claude Code detected (or `--agent claude|all`): `CLAUDE.md`
|
|
15
|
+
* - If any non-Claude host detected (or `--agent codex|cursor|all`): `AGENTS.md`
|
|
16
|
+
* - If neither detected: write `AGENTS.md` anyway (safe default; works
|
|
17
|
+
* for future-installed agents)
|
|
18
|
+
*
|
|
19
|
+
* **Idempotent by default**: existing files are skipped (the user's
|
|
20
|
+
* customisations are sacred). `--force` overwrites them. `--dry-run`
|
|
21
|
+
* prints the file list without writing.
|
|
22
|
+
*/
|
|
23
|
+
import { Command } from "commander";
|
|
24
|
+
export declare const initCommand: Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module inspect
|
|
3
|
+
*
|
|
4
|
+
* Top-level `vibe inspect` command group for media analysis. (Renamed
|
|
5
|
+
* from `analyze` in v0.74; `analyze` and `az` aliases were removed in
|
|
6
|
+
* v0.75. The rename clarifies the read-only intent — `analyze` doubled
|
|
7
|
+
* as both group and verb in the old design.)
|
|
8
|
+
*
|
|
9
|
+
* Commands:
|
|
10
|
+
* inspect project - Local project completeness and composition checks
|
|
11
|
+
* inspect render - Local rendered video checks plus optional Gemini review
|
|
12
|
+
* inspect media - Unified analysis for images, videos, and YouTube URLs (Gemini)
|
|
13
|
+
* inspect video - Analyze video files or YouTube URLs with Gemini
|
|
14
|
+
* inspect review - AI video quality review and auto-fix (Gemini)
|
|
15
|
+
* inspect suggest - Get AI edit suggestions using Gemini
|
|
16
|
+
*
|
|
17
|
+
* @dependencies Gemini (Google), FFmpeg (auto-fix filters)
|
|
18
|
+
*/
|
|
19
|
+
import { Command } from "commander";
|
|
20
|
+
export declare const inspectCommand: Command;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module output
|
|
3
|
+
* @description Shared output helper for --json structured output support.
|
|
4
|
+
*/
|
|
5
|
+
import ora from "ora";
|
|
6
|
+
export declare enum ExitCode {
|
|
7
|
+
SUCCESS = 0,
|
|
8
|
+
GENERAL = 1,
|
|
9
|
+
USAGE = 2,
|
|
10
|
+
NOT_FOUND = 3,
|
|
11
|
+
AUTH = 4,
|
|
12
|
+
API_ERROR = 5,
|
|
13
|
+
NETWORK = 6
|
|
14
|
+
}
|
|
15
|
+
export interface StructuredError {
|
|
16
|
+
success: false;
|
|
17
|
+
error: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
code: string;
|
|
20
|
+
exitCode: ExitCode;
|
|
21
|
+
suggestion?: string;
|
|
22
|
+
retryWith?: string[];
|
|
23
|
+
recoverable?: boolean;
|
|
24
|
+
retryable: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function usageError(msg: string, suggestion?: string): StructuredError;
|
|
27
|
+
export declare function authError(envVar: string, provider: string): StructuredError;
|
|
28
|
+
export declare function apiError(msg: string, retryable?: boolean): StructuredError;
|
|
29
|
+
export declare function notFoundError(path: string): StructuredError;
|
|
30
|
+
export declare function networkError(msg: string): StructuredError;
|
|
31
|
+
export declare function generalError(msg: string, suggestion?: string): StructuredError;
|
|
32
|
+
/** Output structured error then exit */
|
|
33
|
+
export declare function exitWithError(err: StructuredError): never;
|
|
34
|
+
/** Check if --json flag is active */
|
|
35
|
+
export declare function isJsonMode(): boolean;
|
|
36
|
+
/** Check if --quiet flag is active */
|
|
37
|
+
export declare function isQuietMode(): boolean;
|
|
38
|
+
/** Estimated cost ranges by command */
|
|
39
|
+
export declare const COST_ESTIMATES: Record<string, {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
unit: string;
|
|
43
|
+
}>;
|
|
44
|
+
export interface SuccessEnvelopeOptions {
|
|
45
|
+
/** Canonical command name, e.g. "generate image". Matches `vibe schema --list`. */
|
|
46
|
+
command: string;
|
|
47
|
+
/** Domain payload — provider-specific success keys (`provider`, `images`, `outputPath`, etc.). */
|
|
48
|
+
data: Record<string, unknown>;
|
|
49
|
+
/** Wallclock start. Use `Date.now()` at the top of the action handler. */
|
|
50
|
+
startedAt: number;
|
|
51
|
+
/** Actual cost. Omit for free ops (defaults to 0). For dry-run, defaults to COST_ESTIMATES upper bound. */
|
|
52
|
+
costUsd?: number;
|
|
53
|
+
/** Non-fatal signals (provider fallback, deprecated flag, partial cache miss). */
|
|
54
|
+
warnings?: string[];
|
|
55
|
+
/** Pass-through of `--dry-run` flag — surfaces as a top-level `dryRun: true` in the envelope. */
|
|
56
|
+
dryRun?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Emit a canonical success envelope (#33 — 2c). JSON mode prints the
|
|
60
|
+
* envelope; quiet mode prints a single primary value extracted from
|
|
61
|
+
* `data.outputPath ?? data.output ?? data.path ?? data.url ?? data.id`;
|
|
62
|
+
* human mode prints nothing — the caller renders human output itself.
|
|
63
|
+
*
|
|
64
|
+
* Canary scope: `generate image` only in 2c-canary. 2c-sweep migrates
|
|
65
|
+
* the rest. Old `outputResult()` remains for the sweep transition.
|
|
66
|
+
*/
|
|
67
|
+
export declare function outputSuccess(opts: SuccessEnvelopeOptions): void;
|
|
68
|
+
/** Output result - JSON mode outputs JSON, quiet mode outputs primary value only */
|
|
69
|
+
export declare function outputResult(result: Record<string, unknown>): void;
|
|
70
|
+
/** Wrap console output - suppressed in JSON/quiet mode */
|
|
71
|
+
export declare function log(...args: unknown[]): void;
|
|
72
|
+
/** Create a spinner that is silent in JSON/quiet mode */
|
|
73
|
+
export declare function spinner(text: string): ReturnType<typeof ora>;
|
|
74
|
+
/** Suggest next steps - only in human interactive mode */
|
|
75
|
+
export declare function suggestNext(tip: string): void;
|
|
76
|
+
export declare function emitDeprecationWarning(oldName: string, newName: string, removeIn: string): void;
|
|
77
|
+
/** Test-only: reset deduplication memory between cases. */
|
|
78
|
+
export declare function _resetDeprecationMemoryForTesting(): void;
|
|
79
|
+
/** Output an error - always outputs (JSON mode writes to stdout as JSON) */
|
|
80
|
+
export declare function outputError(error: string, details?: Record<string, unknown>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module remix
|
|
3
|
+
*
|
|
4
|
+
* Top-level `vibe remix` command group for AI media transformations
|
|
5
|
+
* on existing video / audio files. (Renamed from `pipeline` in v0.74;
|
|
6
|
+
* the `pipeline` and `pipe` aliases were removed in v0.75.)
|
|
7
|
+
*
|
|
8
|
+
* For BUILDING new video from text intent (storyboard -> MP4), see
|
|
9
|
+
* `vibe build` (v0.60+) - that's the skills-driven path. Remix here
|
|
10
|
+
* processes media you already have.
|
|
11
|
+
*
|
|
12
|
+
* Commands:
|
|
13
|
+
* remix highlights - Extract highlights from long-form content
|
|
14
|
+
* remix auto-shorts - Generate short-form clips from long-form video
|
|
15
|
+
* remix animated-caption - Add word-by-word animated captions
|
|
16
|
+
*
|
|
17
|
+
* @dependencies Whisper, Claude, Gemini, ElevenLabs, Kling, Runway, FFmpeg
|
|
18
|
+
*/
|
|
19
|
+
import { Command } from "commander";
|
|
20
|
+
export declare const remixCommand: Command;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vibe run` command — Execute declarative YAML video pipelines.
|
|
3
|
+
*
|
|
4
|
+
* Video as Code: define reproducible, shareable video workflows in YAML.
|
|
5
|
+
* Each step maps to an existing CLI command's execute function.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* vibe run pipeline.yaml
|
|
9
|
+
* vibe run pipeline.yaml --dry-run
|
|
10
|
+
* vibe run pipeline.yaml --resume
|
|
11
|
+
* vibe run pipeline.yaml -o ./output/
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from "commander";
|
|
14
|
+
export declare const runCommand: Command;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module sanitize
|
|
3
|
+
* @description Sanitize AI/LLM responses to prevent prompt injection and terminal exploits.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Strip suspicious prompt injection patterns from LLM text output.
|
|
7
|
+
* Catches common injection attempts like "Ignore previous instructions",
|
|
8
|
+
* fake system prompts, and markdown-disguised commands.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sanitizeLLMResponse(text: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Sanitize a file path returned by an AI model.
|
|
13
|
+
* Prevents path traversal and null byte injection.
|
|
14
|
+
*/
|
|
15
|
+
export declare function sanitizeFilePath(path: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Sanitize structured data from AI responses (e.g., JSON parsed results).
|
|
18
|
+
* Recursively sanitizes all string values.
|
|
19
|
+
*/
|
|
20
|
+
export declare function sanitizeAIResult<T>(data: T): T;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module scene
|
|
3
|
+
*
|
|
4
|
+
* `vibe scene <sub>` — lower-level namespace for scene authoring,
|
|
5
|
+
* linting, and visual-style browsing. Users and AI agents can
|
|
6
|
+
* hand-author rich per-scene HTML instead of relying on flat YAML steps
|
|
7
|
+
* or opaque MP4s.
|
|
8
|
+
*
|
|
9
|
+
* For the project flow (init / build / render), see the canonical
|
|
10
|
+
* top-level commands (`packages/cli/src/commands/{init,build,render}.ts`).
|
|
11
|
+
* This file owns the lower-level subcommands only:
|
|
12
|
+
* - add — author one scene (template + assets)
|
|
13
|
+
* - lint — in-process Hyperframes lint + --fix
|
|
14
|
+
* - repair — deterministic mechanical repairs
|
|
15
|
+
* - list-styles — browse vendored visual identities
|
|
16
|
+
* - install-skill — retroactive composition-rules install
|
|
17
|
+
* - compose-prompts — emit per-beat plan for a host agent (no LLM call)
|
|
18
|
+
*/
|
|
19
|
+
import { Command } from "commander";
|
|
20
|
+
import { type TtsProviderName } from "./_shared/tts-resolve.js";
|
|
21
|
+
import { type ScenePreset, type LottieOverlayInput } from "./_shared/scene-html-emit.js";
|
|
22
|
+
export declare const sceneCommand: Command;
|
|
23
|
+
export interface SceneAddOptions {
|
|
24
|
+
name: string;
|
|
25
|
+
preset: ScenePreset;
|
|
26
|
+
/** Narration text. If the value is an existing file path, its content is used. */
|
|
27
|
+
narration?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Path to an existing narration audio file (.wav/.mp3). When provided,
|
|
30
|
+
* skips TTS entirely and copies the file into the project's `assets/`.
|
|
31
|
+
* Compatible with `npx hyperframes tts`, `say`, or any other external
|
|
32
|
+
* synthesis tool. The transcript is still generated unless
|
|
33
|
+
* `skipTranscribe` is set.
|
|
34
|
+
*/
|
|
35
|
+
narrationFile?: string;
|
|
36
|
+
/** Explicit duration in seconds. Overrides narration-derived duration. */
|
|
37
|
+
duration?: number;
|
|
38
|
+
/** Image generation prompt. */
|
|
39
|
+
visuals?: string;
|
|
40
|
+
headline?: string;
|
|
41
|
+
kicker?: string;
|
|
42
|
+
/** Project directory. Defaults to cwd. */
|
|
43
|
+
projectDir?: string;
|
|
44
|
+
/** Filename of the root composition (relative to projectDir). */
|
|
45
|
+
insertInto?: string;
|
|
46
|
+
/** "gemini" | "openai". */
|
|
47
|
+
imageProvider?: string;
|
|
48
|
+
/** TTS provider preference. Defaults to `"auto"` (ElevenLabs if key set, else Kokoro). */
|
|
49
|
+
tts?: TtsProviderName;
|
|
50
|
+
/** Voice id (ElevenLabs name/id, or Kokoro id like `af_heart`). */
|
|
51
|
+
voice?: string;
|
|
52
|
+
/** When true, skip TTS even if narration is provided. */
|
|
53
|
+
skipAudio?: boolean;
|
|
54
|
+
/** When true, skip image generation even if visuals is provided. */
|
|
55
|
+
skipImage?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* When true, skip the Whisper word-level transcribe step that would
|
|
58
|
+
* otherwise emit `assets/transcript-<id>.json`.
|
|
59
|
+
*/
|
|
60
|
+
skipTranscribe?: boolean;
|
|
61
|
+
/** BCP-47 language hint forwarded to Whisper (e.g. `"en"`, `"ko"`). */
|
|
62
|
+
transcribeLanguage?: string;
|
|
63
|
+
/** Overwrite existing compositions/scene-<id>.html. */
|
|
64
|
+
force?: boolean;
|
|
65
|
+
/** Lottie animation overlay options. */
|
|
66
|
+
lottie?: LottieOverlayInput;
|
|
67
|
+
/** Progress sink (CLI spinner / agent stream). */
|
|
68
|
+
onProgress?: (msg: string) => void;
|
|
69
|
+
}
|
|
70
|
+
export interface SceneAddResult {
|
|
71
|
+
success: boolean;
|
|
72
|
+
id: string;
|
|
73
|
+
preset: ScenePreset;
|
|
74
|
+
start: number;
|
|
75
|
+
duration: number;
|
|
76
|
+
scenePath: string;
|
|
77
|
+
rootPath: string;
|
|
78
|
+
audioPath?: string;
|
|
79
|
+
imagePath?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Project-relative path to `assets/transcript-<id>.json` when Whisper
|
|
82
|
+
* word-level transcribe ran. `undefined` when skipped or when the audio
|
|
83
|
+
* source produced no narration text to transcribe.
|
|
84
|
+
*/
|
|
85
|
+
transcriptPath?: string;
|
|
86
|
+
/** Number of word entries emitted into the transcript JSON. */
|
|
87
|
+
transcriptWordCount?: number;
|
|
88
|
+
lottiePath?: string;
|
|
89
|
+
error?: string;
|
|
90
|
+
}
|
|
91
|
+
export declare function executeSceneAdd(opts: SceneAddOptions): Promise<SceneAddResult>;
|
|
92
|
+
export declare function resolveSceneRepairTarget(rootArg?: string, projectArg?: string): Promise<{
|
|
93
|
+
projectDir: string;
|
|
94
|
+
rootRel: string;
|
|
95
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module schema
|
|
3
|
+
* @description Schema introspection command. Outputs JSON Schema for any CLI command,
|
|
4
|
+
* enabling agent introspection without static docs.
|
|
5
|
+
*
|
|
6
|
+
* Usage: vibe schema generate.image
|
|
7
|
+
* vibe schema edit.silence-cut
|
|
8
|
+
* vibe schema --list
|
|
9
|
+
*/
|
|
10
|
+
import { Command } from "commander";
|
|
11
|
+
export declare const schemaCommand: Command;
|
|
12
|
+
export declare function buildSchema(cmd: Command, toolName: string, commandPath?: string): Record<string, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|