@builder.io/dev-tools 1.18.14-dev.202511251124.4f45e4b71 → 1.18.14-dev.202511251716.8d6784f55

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.
@@ -92,6 +92,7 @@ interface RipgrepResult {
92
92
  matches: RipgrepMatch[];
93
93
  }
94
94
  export declare function runRipgrep(sys: DevToolsSys, bashWorkingDirectory: string, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
95
+ export declare function getRipgrepExecutable(sys: DevToolsSys): Promise<string>;
95
96
  /**
96
97
  * Returns true if query is likely a string literal rather than a regex.
97
98
  * Returns false otherwise.
@@ -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, FolderWatchOptions, FolderWatchEvent, FolderWatchResult, SetImportantFilesToolInput, MCPServerConfig, CodegenApiCreateTerminal, SyncChangesFromRemote, SearchFilesOptions, SearchFilesResult } 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";
@@ -166,6 +166,7 @@ export declare class CodeGenSession {
166
166
  deep?: number;
167
167
  truncate?: number;
168
168
  }): Promise<string[]>;
169
+ searchFiles(options: SearchFilesOptions): Promise<SearchFilesResult>;
169
170
  collectRepoMetrics(opts?: {
170
171
  rootPath?: string;
171
172
  }): Promise<RepoMetrics>;
@@ -239,6 +240,7 @@ export declare class CodeGenSession {
239
240
  mode?: CodeGenMode;
240
241
  systemPrompt?: string;
241
242
  }): Promise<SpawnAgentResult>;
243
+ setProxyOrigin(proxySrc: string): void;
242
244
  getTurns(): CodegenTurn[];
243
245
  getSessionContext(): SessionContext;
244
246
  runSetupCommand(): Promise<import("$/ai-utils").SetupCommandResult | undefined>;
@@ -17,6 +17,11 @@ export declare function getAllProjectFiles({ basePath, globPattern, extraIgnoreP
17
17
  export declare function findBuilderFiles(basePath: string, targetContentId: string, targetSessionKey: string): Promise<FileNode[]>;
18
18
  export declare function filterNonImportantFiles(files: string[]): string[];
19
19
  export declare function getIgnorePatterns(basePath: string): (path: string) => boolean;
20
+ /**
21
+ * Get all ignore patterns as an array of strings for tools like ripgrep
22
+ * This includes base patterns and patterns from .gitignore/.builderignore files
23
+ */
24
+ export declare function getIgnorePatternsArray(basePath: string): string[];
20
25
  export declare function watchDirectory(basePath: string, syncInfo: SyncInfo, onChange: (updatedSyncInfo: SyncInfo) => void): () => Promise<void>;
21
26
  export declare function setupSyncServer(sys: DevToolsSys, initialSyncInfo?: SyncInfo): Promise<void>;
22
27
  export declare function syncCommand(opts: AddCliOptions): Promise<SyncInfo | 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>;