@vibeframe/cli 0.115.9 → 0.115.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Without these, real runs reported `costUsd: 0`, which reads as "free" to
|
|
5
5
|
* agents that gate spend on the JSON envelope. Values are upper bounds from
|
|
6
|
-
* provider list prices (checked 2026-10-
|
|
6
|
+
* provider list prices (checked 2026-10-17, see
|
|
7
7
|
* `.agents/references/providers/`), not metered billing:
|
|
8
8
|
* - OpenAI: high quality at 1024x1024 (we default to medium).
|
|
9
|
-
* - Gemini: 1K
|
|
9
|
+
* - Gemini: the requested size's price (1K when none is asked for).
|
|
10
10
|
* - Grok: grok-imagine-image-2.0 at its 2K medium price.
|
|
11
11
|
*/
|
|
12
|
-
export declare function estimateImageCostUsd(provider: string, model: string | undefined, count: number): {
|
|
12
|
+
export declare function estimateImageCostUsd(provider: string, model: string | undefined, count: number, resolution?: string): {
|
|
13
13
|
costUsd: number;
|
|
14
14
|
warnings: string[];
|
|
15
15
|
};
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module _shared/storyboard-draft
|
|
3
|
+
*
|
|
4
|
+
* The offline storyboard skeleton `vibe init --from "<brief>"` writes.
|
|
5
|
+
*
|
|
6
|
+
* Without a model this cannot know what the video says, so it does not
|
|
7
|
+
* pretend to: beats come from the brief's own outline when it has one
|
|
8
|
+
* ("hook, buoyancy, folding tip"), each beat gets a backdrop prompt from
|
|
9
|
+
* its topic and the brief, and narration is left for the composer
|
|
10
|
+
* (`storyboard revise`), the host agent, or the user to write. A skeleton
|
|
11
|
+
* that renders silently is better than one that narrates someone else's
|
|
12
|
+
* script. When a composer key is set, `init` hands this skeleton to the
|
|
13
|
+
* composer, which writes the real draft.
|
|
14
|
+
*/
|
|
1
15
|
import type { VisualStyle } from "./visual-styles.js";
|
|
2
16
|
export interface StoryboardDraft {
|
|
3
17
|
storyboardMd: string;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TextGenerator } from "@vibeframe/ai-providers";
|
|
2
2
|
import { type ComposerProvider } from "./composer-resolve.js";
|
|
3
3
|
import { type StoryboardValidationResult } from "./storyboard-edit.js";
|
|
4
|
-
export type StoryboardRevisionChat = (messages: AgentMessage[]) => Promise<string>;
|
|
5
4
|
export interface StoryboardRevisionOptions {
|
|
6
5
|
projectDir: string;
|
|
7
6
|
request: string;
|
|
8
7
|
durationSec?: number;
|
|
9
8
|
composer?: ComposerProvider;
|
|
10
9
|
dryRun?: boolean;
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* "draft" writes a storyboard for `request` (a brief) on top of the
|
|
12
|
+
* skeleton `vibe init --from` scaffolds, instead of editing an authored one.
|
|
13
|
+
*/
|
|
14
|
+
mode?: "revise" | "draft";
|
|
15
|
+
/** Overrides the composer's text generator (tests). */
|
|
16
|
+
generator?: TextGenerator;
|
|
12
17
|
}
|
|
13
18
|
export interface StoryboardRevisionResult {
|
|
14
19
|
schemaVersion: "1";
|