@builder.io/dev-tools 1.18.14-dev.202511251124.4f45e4b71 → 1.18.14-dev.202511251344.f32d31c6c

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.
@@ -1,6 +1,6 @@
1
1
  import type { DevToolsSys } from "../types";
2
2
  import { type Credentials } from "./credentials";
3
- import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CustomInstruction, FusionConfig, GenerateCompletionState, GenerateCompletionStep, GenerateCompletionStepGit, GenerateUserMessage, SessionMode, UserContext, UserSource, WorkspaceFolder, LoadWholeSessionOptions, LoadWholeSessionResult, LoadHistoryResult, CodeGenMode, ApplyActionsResult, PrivacyMode, CodeGenPosition, BackupGitRepoResult, SuggestedActionBuildError, PushChangesArgs, CodegenApiResult, CodegenApiTerminal, ConfigureDevOrchestratorOpts, ConfigureDevOrchestratorUpdates, RepoMetrics, FolderWatchOptions, FolderWatchEvent, FolderWatchResult, SetImportantFilesToolInput, MCPServerConfig, CodegenApiCreateTerminal, SyncChangesFromRemote } from "$/ai-utils";
3
+ import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CustomInstruction, FusionConfig, GenerateCompletionState, GenerateCompletionStep, GenerateCompletionStepGit, GenerateUserMessage, SessionMode, UserContext, UserSource, WorkspaceFolder, LoadWholeSessionOptions, LoadWholeSessionResult, LoadHistoryResult, CodeGenMode, ApplyActionsResult, PrivacyMode, CodeGenPosition, BackupGitRepoResult, SuggestedActionBuildError, PushChangesArgs, CodegenApiResult, CodegenApiTerminal, ConfigureDevOrchestratorOpts, ConfigureDevOrchestratorUpdates, RepoMetrics, SetImportantFilesToolInput, MCPServerConfig, CodegenApiCreateTerminal, SyncChangesFromRemote } from "$/ai-utils";
4
4
  import prettier from "prettier";
5
5
  import { type FusionContext, type ToolResolution } from "./code-tools";
6
6
  import { type SubAgent } from "./utils/agent-discovery";
@@ -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>;
@@ -260,31 +261,6 @@ export declare class CodeGenSession {
260
261
  stopEventLoop(): Promise<void>;
261
262
  requestRefresh(): void;
262
263
  configureDevOrchestrator(opts: ConfigureDevOrchestratorOpts): Promise<ConfigureDevOrchestratorUpdates>;
263
- /**
264
- * Start watching specified folders for file changes.
265
- * Returns a watchId (computed hash of sorted folders) that can be used to stop watching later.
266
- * Calling with the same folders is idempotent - it will return the existing watchId.
267
- */
268
- watchFolders(options: FolderWatchOptions): Promise<FolderWatchResult>;
269
- /**
270
- * Stop watching folders. Can pass either watchId or folders array.
271
- */
272
- unwatchFolders(options: {
273
- watchId?: string;
274
- folders?: string[];
275
- }): Promise<FolderWatchResult>;
276
- /**
277
- * Subscribe to folder watch events for a specific watchId.
278
- * Returns true if subscription was successful.
279
- */
280
- subscribeFolderWatch(options: {
281
- watchId: string;
282
- onEvent: (event: FolderWatchEvent) => void;
283
- }): boolean;
284
- /**
285
- * Get all active folder watch IDs.
286
- */
287
- getActiveFolderWatches(): string[];
288
264
  close(uploadGitBackup?: boolean): Promise<void>;
289
265
  emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
290
266
  manualCommit(options: {
@@ -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>;