builder.io 1.18.14 → 1.18.15

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.
@@ -239,6 +239,7 @@ export declare class CodeGenSession {
239
239
  mode?: CodeGenMode;
240
240
  systemPrompt?: string;
241
241
  }): Promise<SpawnAgentResult>;
242
+ setProxyOrigin(proxySrc: string): void;
242
243
  getTurns(): CodegenTurn[];
243
244
  getSessionContext(): SessionContext;
244
245
  runSetupCommand(): Promise<import("$/ai-utils").SetupCommandResult | undefined>;
@@ -0,0 +1,54 @@
1
+ import type { ContentMessageItemImage } from "$/ai-utils";
2
+ import type { DevToolsSys } from "../../types";
3
+ export interface GifGeneratorOptions {
4
+ framerate?: number;
5
+ outputPath?: string;
6
+ cleanup?: boolean;
7
+ sys?: DevToolsSys;
8
+ }
9
+ export declare class GifGenerator {
10
+ #private;
11
+ private frames;
12
+ private tmpDir;
13
+ private static ffmpegAvailable;
14
+ /**
15
+ * Check if ffmpeg is available on the system
16
+ */
17
+ static checkFfmpegAvailable(): Promise<boolean>;
18
+ /**
19
+ * Add an image frame to the GIF
20
+ * @param image ContentMessageItemImage with base64 source
21
+ */
22
+ addImage(image: ContentMessageItemImage): void;
23
+ /**
24
+ * Add multiple image frames to the GIF
25
+ * @param images Array of ContentMessageItemImage with base64 sources
26
+ */
27
+ addImages(images: ContentMessageItemImage[]): void;
28
+ /**
29
+ * Get the number of frames added
30
+ */
31
+ getFrameCount(): number;
32
+ /**
33
+ * Clear all frames
34
+ */
35
+ clearFrames(): void;
36
+ /**
37
+ * Generate the GIF from the added frames
38
+ * @param options Generation options
39
+ * @returns Path to the generated GIF file
40
+ */
41
+ generateGif(options?: GifGeneratorOptions): Promise<string>;
42
+ /**
43
+ * Manually cleanup if needed (useful for non-cleanup mode)
44
+ */
45
+ cleanup(): Promise<void>;
46
+ }
47
+ /**
48
+ * Helper function to quickly generate a GIF from images
49
+ * This function is completely safe and will never throw exceptions
50
+ * @param images Array of ContentMessageItemImage with base64 sources
51
+ * @param options Generation options
52
+ * @returns Path to the generated GIF file, or null if generation failed
53
+ */
54
+ export declare function generateGifFromImages(images: ContentMessageItemImage[], options?: GifGeneratorOptions): Promise<string | null>;