@vibeframe/cli 0.115.4 → 0.115.6
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/CONTEXT.md +1 -1
- package/dist/commands/_shared/init-templates.d.ts +1 -1
- package/dist/commands/_shared/status-jobs.d.ts +5 -0
- package/dist/commands/_shared/video-jobs.d.ts +34 -0
- package/dist/commands/ai-video.d.ts +37 -11
- package/dist/commands/ai-video.network.test.d.ts +1 -0
- package/dist/commands/generate/video-cancel.d.ts +2 -3
- package/dist/commands/generate/video-extend.d.ts +3 -3
- package/dist/commands/generate/video.d.ts +13 -3
- package/dist/commands/generate.d.ts +1 -1
- package/dist/commands/output.d.ts +16 -1
- package/dist/index.js +9997 -10415
- package/dist/testing/fake-provider-network.d.ts +7 -38
- package/dist/tools/manifest/edit.d.ts +4 -4
- package/dist/tools/manifest/generate.d.ts +28 -25
- package/dist/tools/manifest/index.js +25676 -26111
- package/dist/tools/manifest/inspect.d.ts +4 -4
- package/dist/tools/manifest/storyboard.d.ts +2 -2
- package/dist/utils/model-lifecycle.d.ts +25 -0
- package/dist/utils/model-lifecycle.test.d.ts +1 -0
- package/dist/utils/upload-host.d.ts +11 -0
- package/package.json +3 -3
- package/dist/commands/_shared/video-providers.d.ts +0 -44
- package/dist/commands/_shared/video-utils.d.ts +0 -73
|
@@ -1,45 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* that actually breaks when providers change: request shapes, response
|
|
6
|
-
* parsing, polling, downloads, and the file writes after them. This harness
|
|
7
|
-
* replaces only `fetch`, so real provider classes, executors, and the build
|
|
8
|
-
* pipeline run end to end against scripted provider responses.
|
|
9
|
-
*
|
|
10
|
-
* Every request is recorded. A request no route matches throws, so a test
|
|
11
|
-
* can never reach a real provider by accident.
|
|
2
|
+
* The CLI's fake provider network: the shared harness from
|
|
3
|
+
* `@vibeframe/ai-providers/testing` plus default happy-path routes for the
|
|
4
|
+
* providers a project build uses.
|
|
12
5
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
url: string;
|
|
16
|
-
host: string;
|
|
17
|
-
path: string;
|
|
18
|
-
headers: Record<string, string>;
|
|
19
|
-
/** Parsed JSON body, raw string body, or undefined. */
|
|
20
|
-
body: unknown;
|
|
21
|
-
}
|
|
22
|
-
export type FakeResponder = (req: RecordedRequest) => Response | Promise<Response>;
|
|
23
|
-
/** 1x1 transparent PNG. */
|
|
24
|
-
export declare const FAKE_PNG: Buffer<ArrayBuffer>;
|
|
25
|
-
/** Bytes that stand in for MP3 / MP4 payloads; nothing in the asset stage decodes them. */
|
|
26
|
-
export declare const FAKE_MP3: Buffer<ArrayBuffer>;
|
|
27
|
-
export declare const FAKE_MP4: Buffer<ArrayBuffer>;
|
|
28
|
-
export declare function jsonResponse(body: unknown, status?: number, headers?: Record<string, string>): Response;
|
|
29
|
-
export declare function bytesResponse(bytes: Buffer, contentType: string): Response;
|
|
30
|
-
export declare class FakeProviderNetwork {
|
|
31
|
-
readonly requests: RecordedRequest[];
|
|
32
|
-
private routes;
|
|
33
|
-
/** Register a route; later registrations win, so tests can override defaults. */
|
|
34
|
-
on(method: string, host: string, path: RegExp, respond: FakeResponder): this;
|
|
35
|
-
/** Requests sent to one host, in order. */
|
|
36
|
-
to(host: string): RecordedRequest[];
|
|
37
|
-
install(): void;
|
|
38
|
-
uninstall(): void;
|
|
39
|
-
}
|
|
6
|
+
import { FakeProviderNetwork } from "@vibeframe/ai-providers/testing";
|
|
7
|
+
export * from "@vibeframe/ai-providers/testing";
|
|
40
8
|
/**
|
|
41
9
|
* Default happy-path routes for the providers a project build uses:
|
|
42
10
|
* ElevenLabs (narration, music), OpenAI images, ImgBB uploads, fal
|
|
43
|
-
* (Seedance queue protocol
|
|
11
|
+
* (Seedance queue protocol and storage uploads), Runway (submit and
|
|
12
|
+
* polling), and a CDN for media downloads.
|
|
44
13
|
*/
|
|
45
14
|
export declare function createFakeProviderNetwork(): FakeProviderNetwork;
|
|
@@ -359,14 +359,14 @@ export declare const editImageTool: import("../define-tool.js").ToolDefinition<z
|
|
|
359
359
|
prompt: string;
|
|
360
360
|
imagePaths: string[];
|
|
361
361
|
output?: string | undefined;
|
|
362
|
-
model?: "
|
|
362
|
+
model?: "3.1-flash" | "latest" | "flash" | "pro" | "lite" | undefined;
|
|
363
363
|
ratio?: string | undefined;
|
|
364
364
|
resolution?: string | undefined;
|
|
365
365
|
}, {
|
|
366
366
|
prompt: string;
|
|
367
367
|
imagePaths: string[];
|
|
368
368
|
output?: string | undefined;
|
|
369
|
-
model?: "
|
|
369
|
+
model?: "3.1-flash" | "latest" | "flash" | "pro" | "lite" | undefined;
|
|
370
370
|
ratio?: string | undefined;
|
|
371
371
|
resolution?: string | undefined;
|
|
372
372
|
}>>;
|
|
@@ -385,7 +385,7 @@ export declare const editFillGapsTool: import("../define-tool.js").ToolDefinitio
|
|
|
385
385
|
dir?: string | undefined;
|
|
386
386
|
prompt?: string | undefined;
|
|
387
387
|
ratio?: "16:9" | "9:16" | "1:1" | undefined;
|
|
388
|
-
mode?: "
|
|
388
|
+
mode?: "pro" | "std" | undefined;
|
|
389
389
|
}, {
|
|
390
390
|
projectPath: string;
|
|
391
391
|
dryRun?: boolean | undefined;
|
|
@@ -393,6 +393,6 @@ export declare const editFillGapsTool: import("../define-tool.js").ToolDefinitio
|
|
|
393
393
|
dir?: string | undefined;
|
|
394
394
|
prompt?: string | undefined;
|
|
395
395
|
ratio?: "16:9" | "9:16" | "1:1" | undefined;
|
|
396
|
-
mode?: "
|
|
396
|
+
mode?: "pro" | "std" | undefined;
|
|
397
397
|
}>>;
|
|
398
398
|
export declare const editTools: readonly AnyTool[];
|
|
@@ -90,15 +90,15 @@ export declare const generateMusicTool: import("../define-tool.js").ToolDefiniti
|
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
91
|
prompt: string;
|
|
92
92
|
duration?: number | undefined;
|
|
93
|
-
output?: string | undefined;
|
|
94
93
|
provider?: "elevenlabs" | "replicate" | undefined;
|
|
94
|
+
output?: string | undefined;
|
|
95
95
|
wait?: boolean | undefined;
|
|
96
96
|
instrumental?: boolean | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
prompt: string;
|
|
99
99
|
duration?: number | undefined;
|
|
100
|
-
output?: string | undefined;
|
|
101
100
|
provider?: "elevenlabs" | "replicate" | undefined;
|
|
101
|
+
output?: string | undefined;
|
|
102
102
|
wait?: boolean | undefined;
|
|
103
103
|
instrumental?: boolean | undefined;
|
|
104
104
|
}>>;
|
|
@@ -113,8 +113,8 @@ export declare const generateImageTool: import("../define-tool.js").ToolDefiniti
|
|
|
113
113
|
model: z.ZodOptional<z.ZodString>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
prompt: string;
|
|
116
|
-
output?: string | undefined;
|
|
117
116
|
provider?: "openai" | "gemini" | "grok" | undefined;
|
|
117
|
+
output?: string | undefined;
|
|
118
118
|
count?: number | undefined;
|
|
119
119
|
quality?: string | undefined;
|
|
120
120
|
model?: string | undefined;
|
|
@@ -122,8 +122,8 @@ export declare const generateImageTool: import("../define-tool.js").ToolDefiniti
|
|
|
122
122
|
size?: string | undefined;
|
|
123
123
|
}, {
|
|
124
124
|
prompt: string;
|
|
125
|
-
output?: string | undefined;
|
|
126
125
|
provider?: "openai" | "gemini" | "grok" | undefined;
|
|
126
|
+
output?: string | undefined;
|
|
127
127
|
count?: number | undefined;
|
|
128
128
|
quality?: string | undefined;
|
|
129
129
|
model?: string | undefined;
|
|
@@ -171,8 +171,14 @@ export declare const generateVideoTool: import("../define-tool.js").ToolDefiniti
|
|
|
171
171
|
prompt: string;
|
|
172
172
|
image?: string | undefined;
|
|
173
173
|
duration?: number | undefined;
|
|
174
|
-
output?: string | undefined;
|
|
175
174
|
provider?: "grok" | "seedance" | "kling" | "runway" | "omni" | "veo" | undefined;
|
|
175
|
+
output?: string | undefined;
|
|
176
|
+
seedanceModel?: string | undefined;
|
|
177
|
+
grokModel?: string | undefined;
|
|
178
|
+
klingModel?: string | undefined;
|
|
179
|
+
veoModel?: string | undefined;
|
|
180
|
+
runwayModel?: string | undefined;
|
|
181
|
+
endImage?: string | undefined;
|
|
176
182
|
refImages?: string[] | undefined;
|
|
177
183
|
refVideos?: string[] | undefined;
|
|
178
184
|
refAudio?: string[] | undefined;
|
|
@@ -180,20 +186,20 @@ export declare const generateVideoTool: import("../define-tool.js").ToolDefiniti
|
|
|
180
186
|
mode?: string | undefined;
|
|
181
187
|
negative?: string | undefined;
|
|
182
188
|
resolution?: string | undefined;
|
|
183
|
-
veoModel?: string | undefined;
|
|
184
|
-
runwayModel?: string | undefined;
|
|
185
|
-
seedanceModel?: string | undefined;
|
|
186
|
-
grokModel?: string | undefined;
|
|
187
|
-
klingModel?: string | undefined;
|
|
188
|
-
generateAudio?: boolean | undefined;
|
|
189
189
|
wait?: boolean | undefined;
|
|
190
|
-
|
|
190
|
+
generateAudio?: boolean | undefined;
|
|
191
191
|
}, {
|
|
192
192
|
prompt: string;
|
|
193
193
|
image?: string | undefined;
|
|
194
194
|
duration?: number | undefined;
|
|
195
|
-
output?: string | undefined;
|
|
196
195
|
provider?: "grok" | "seedance" | "kling" | "runway" | "omni" | "veo" | undefined;
|
|
196
|
+
output?: string | undefined;
|
|
197
|
+
seedanceModel?: string | undefined;
|
|
198
|
+
grokModel?: string | undefined;
|
|
199
|
+
klingModel?: string | undefined;
|
|
200
|
+
veoModel?: string | undefined;
|
|
201
|
+
runwayModel?: string | undefined;
|
|
202
|
+
endImage?: string | undefined;
|
|
197
203
|
refImages?: string[] | undefined;
|
|
198
204
|
refVideos?: string[] | undefined;
|
|
199
205
|
refAudio?: string[] | undefined;
|
|
@@ -201,25 +207,22 @@ export declare const generateVideoTool: import("../define-tool.js").ToolDefiniti
|
|
|
201
207
|
mode?: string | undefined;
|
|
202
208
|
negative?: string | undefined;
|
|
203
209
|
resolution?: string | undefined;
|
|
204
|
-
veoModel?: string | undefined;
|
|
205
|
-
runwayModel?: string | undefined;
|
|
206
|
-
seedanceModel?: string | undefined;
|
|
207
|
-
grokModel?: string | undefined;
|
|
208
|
-
klingModel?: string | undefined;
|
|
209
|
-
generateAudio?: boolean | undefined;
|
|
210
210
|
wait?: boolean | undefined;
|
|
211
|
-
|
|
211
|
+
generateAudio?: boolean | undefined;
|
|
212
212
|
}>>;
|
|
213
213
|
export declare const generateVideoCancelTool: import("../define-tool.js").ToolDefinition<z.ZodObject<{
|
|
214
214
|
taskId: z.ZodString;
|
|
215
|
+
provider: z.ZodOptional<z.ZodEnum<["runway", "seedance", "omni"]>>;
|
|
215
216
|
}, "strip", z.ZodTypeAny, {
|
|
216
217
|
taskId: string;
|
|
218
|
+
provider?: "seedance" | "runway" | "omni" | undefined;
|
|
217
219
|
}, {
|
|
218
220
|
taskId: string;
|
|
221
|
+
provider?: "seedance" | "runway" | "omni" | undefined;
|
|
219
222
|
}>>;
|
|
220
223
|
export declare const generateVideoExtendTool: import("../define-tool.js").ToolDefinition<z.ZodObject<{
|
|
221
224
|
videoId: z.ZodString;
|
|
222
|
-
provider: z.ZodOptional<z.ZodEnum<["kling", "veo"]>>;
|
|
225
|
+
provider: z.ZodOptional<z.ZodEnum<["kling", "grok", "omni", "veo"]>>;
|
|
223
226
|
prompt: z.ZodOptional<z.ZodString>;
|
|
224
227
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
225
228
|
negative: z.ZodOptional<z.ZodString>;
|
|
@@ -229,20 +232,20 @@ export declare const generateVideoExtendTool: import("../define-tool.js").ToolDe
|
|
|
229
232
|
}, "strip", z.ZodTypeAny, {
|
|
230
233
|
videoId: string;
|
|
231
234
|
duration?: number | undefined;
|
|
235
|
+
provider?: "grok" | "kling" | "omni" | "veo" | undefined;
|
|
232
236
|
output?: string | undefined;
|
|
233
|
-
|
|
237
|
+
veoModel?: string | undefined;
|
|
234
238
|
prompt?: string | undefined;
|
|
235
239
|
negative?: string | undefined;
|
|
236
|
-
veoModel?: string | undefined;
|
|
237
240
|
wait?: boolean | undefined;
|
|
238
241
|
}, {
|
|
239
242
|
videoId: string;
|
|
240
243
|
duration?: number | undefined;
|
|
244
|
+
provider?: "grok" | "kling" | "omni" | "veo" | undefined;
|
|
241
245
|
output?: string | undefined;
|
|
242
|
-
|
|
246
|
+
veoModel?: string | undefined;
|
|
243
247
|
prompt?: string | undefined;
|
|
244
248
|
negative?: string | undefined;
|
|
245
|
-
veoModel?: string | undefined;
|
|
246
249
|
wait?: boolean | undefined;
|
|
247
250
|
}>>;
|
|
248
251
|
export declare const generateTools: readonly AnyTool[];
|