@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.
- package/cli/index.cjs +533 -414
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +11 -4
- package/server/index.mjs +10 -3
- package/types/cli/codegen.d.ts +2 -26
- package/types/cli/utils/gif-generator.d.ts +54 -0
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/cli/auto-update.d.ts +0 -22
- package/types/cli/auto-update.test.d.ts +0 -1
- package/types/cli/indexing.d.ts +0 -5
- package/types/cli/launch/github.d.ts +0 -3
- package/types/cli/repo-indexing-utils.d.ts +0 -2
- package/types/cli/repo-indexing.d.ts +0 -17
- package/types/cli/repo-indexing.mock.d.ts +0 -5
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +0 -1
- package/types/scripts/analyze-projects.d.ts +0 -18
- package/types/scripts/call-ensure-container.d.ts +0 -5
- package/types/scripts/cli.d.ts +0 -1
- package/types/scripts/db.d.ts +0 -3
- package/types/scripts/download-projects.d.ts +0 -12
package/types/cli/codegen.d.ts
CHANGED
|
@@ -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,
|
|
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>;
|