builder.io 1.18.17 → 1.18.19
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 +432 -431
- 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 +75 -75
- package/server/index.mjs +76 -76
- package/types/cli/code-tools.d.ts +1 -0
- package/types/cli/codegen.d.ts +25 -1
- package/types/cli/launch/dev-server-orchestrator.d.ts +3 -2
- package/types/cli/utils/port-detection.d.ts +1 -0
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -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.
|
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, 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, FolderWatchEvent, 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>;
|
|
@@ -261,6 +262,12 @@ export declare class CodeGenSession {
|
|
|
261
262
|
stopEventLoop(): Promise<void>;
|
|
262
263
|
requestRefresh(): void;
|
|
263
264
|
configureDevOrchestrator(opts: ConfigureDevOrchestratorOpts): Promise<ConfigureDevOrchestratorUpdates>;
|
|
265
|
+
/**
|
|
266
|
+
* Subscribe to file change events for the entire working directory.
|
|
267
|
+
* Returns a dispose function to unsubscribe.
|
|
268
|
+
* The watcher is lazily initialized on first subscription and cleaned up on last unsubscribe.
|
|
269
|
+
*/
|
|
270
|
+
subscribeToFileChanges(onEvent: (event: FolderWatchEvent) => void): () => Promise<void>;
|
|
264
271
|
close(uploadGitBackup?: boolean): Promise<void>;
|
|
265
272
|
emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
|
|
266
273
|
manualCommit(options: {
|
|
@@ -314,6 +321,23 @@ export declare class CodeGenSession {
|
|
|
314
321
|
* @returns The file content or null if the file doesn't exist
|
|
315
322
|
*/
|
|
316
323
|
readFile(filePath: string, skipAclCheck?: boolean): Promise<string | null>;
|
|
324
|
+
/**
|
|
325
|
+
* Gets file content at a specific git reference (e.g., origin/main, HEAD~1, commit hash)
|
|
326
|
+
* @param filePath - The file path relative to the workspace
|
|
327
|
+
* @param gitRef - The git reference (branch, commit, tag) - defaults to parent branch
|
|
328
|
+
* @returns The file content at that reference, or null if not found
|
|
329
|
+
*/
|
|
330
|
+
getFileAtRef(filePath: string, gitRef?: string): Promise<string | null>;
|
|
331
|
+
/**
|
|
332
|
+
* Gets the diff information for a single file including full content
|
|
333
|
+
* @param filePath - The file path to get diff for
|
|
334
|
+
* @returns Object with oldContent (from parent branch) and newContent (current)
|
|
335
|
+
*/
|
|
336
|
+
getSingleFileDiff(filePath: string): Promise<{
|
|
337
|
+
oldContent: string | null;
|
|
338
|
+
newContent: string | null;
|
|
339
|
+
action: "create" | "update" | "delete";
|
|
340
|
+
}>;
|
|
317
341
|
/**
|
|
318
342
|
* Checks if a file exists in the workspace
|
|
319
343
|
* @param filePath A file path that may include a workspace prefix
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
2
|
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
|
-
import type { DevCommandResult, DevCommandState, EnvironmentVariable, HttpServerData, ProxyServerSelection, SetupCommandResult, SetupDependency, ValidateCommandResult } from "$/ai-utils";
|
|
3
|
+
import type { DevCommandResult, DevCommandState, EnvironmentVariable, HttpServerData, HttpServerState, ProxyServerSelection, SetupCommandResult, SetupDependency, ValidateCommandResult } from "$/ai-utils";
|
|
4
4
|
import EventEmitter from "events";
|
|
5
5
|
import type { FusionConfig, SetupCommandState } from "$/ai-utils";
|
|
6
6
|
export type DevServerState = Exclude<SetupCommandState | DevCommandState, "installed" | "starting">;
|
|
@@ -92,7 +92,8 @@ export interface DevServerOrchestrator {
|
|
|
92
92
|
installStderr: [string];
|
|
93
93
|
setupState: [SetupCommandState];
|
|
94
94
|
devState: [DevCommandState];
|
|
95
|
-
|
|
95
|
+
httpServerData: [HttpServerData];
|
|
96
|
+
httpServerState: [HttpServerState];
|
|
96
97
|
urlDetected: [string];
|
|
97
98
|
}>;
|
|
98
99
|
close: () => Promise<void>;
|