@builder.io/dev-tools 1.18.14-dev.202511251344.f32d31c6c → 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.
- package/cli/index.cjs +415 -4
- package/cli/index.cjs.map +3 -3
- 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 +5 -3
- package/server/index.mjs +4 -2
- package/types/cli/auto-update.d.ts +22 -0
- package/types/cli/auto-update.test.d.ts +1 -0
- package/types/cli/code-tools.d.ts +1 -0
- package/types/cli/codegen.d.ts +27 -1
- package/types/cli/indexing.d.ts +5 -0
- package/types/cli/launch/github.d.ts +3 -0
- package/types/cli/repo-indexing-utils.d.ts +2 -0
- package/types/cli/repo-indexing.d.ts +17 -0
- package/types/cli/repo-indexing.mock.d.ts +5 -0
- package/types/cli/sync-utils.d.ts +5 -0
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +1 -0
- package/types/scripts/analyze-projects.d.ts +18 -0
- package/types/scripts/call-ensure-container.d.ts +5 -0
- package/types/scripts/cli.d.ts +1 -0
- package/types/scripts/db.d.ts +3 -0
- package/types/scripts/download-projects.d.ts +12 -0
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if the CLI is running from a globally installed binary (builderio command)
|
|
3
|
+
* vs running through npx
|
|
4
|
+
*/
|
|
5
|
+
export declare function isRunningFromGlobalInstall(): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Compare two semver versions
|
|
8
|
+
* Returns -1 if current < latest, 0 if equal, 1 if current > latest
|
|
9
|
+
*/
|
|
10
|
+
export declare function compareVersions(current: string, latest: string): number;
|
|
11
|
+
/**
|
|
12
|
+
* Check for updates and notify user if a newer version is available
|
|
13
|
+
*/
|
|
14
|
+
export declare function checkForUpdates(): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Prompt user for update on quit and perform installation if confirmed
|
|
17
|
+
*/
|
|
18
|
+
export declare function promptAndInstallUpdate(): Promise<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Get whether an update is available (for use by exit handlers)
|
|
21
|
+
*/
|
|
22
|
+
export declare function hasUpdateAvailable(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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, 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>;
|
|
@@ -261,6 +262,31 @@ export declare class CodeGenSession {
|
|
|
261
262
|
stopEventLoop(): Promise<void>;
|
|
262
263
|
requestRefresh(): void;
|
|
263
264
|
configureDevOrchestrator(opts: ConfigureDevOrchestratorOpts): Promise<ConfigureDevOrchestratorUpdates>;
|
|
265
|
+
/**
|
|
266
|
+
* Start watching specified folders for file changes.
|
|
267
|
+
* Returns a watchId (computed hash of sorted folders) that can be used to stop watching later.
|
|
268
|
+
* Calling with the same folders is idempotent - it will return the existing watchId.
|
|
269
|
+
*/
|
|
270
|
+
watchFolders(options: FolderWatchOptions): Promise<FolderWatchResult>;
|
|
271
|
+
/**
|
|
272
|
+
* Stop watching folders. Can pass either watchId or folders array.
|
|
273
|
+
*/
|
|
274
|
+
unwatchFolders(options: {
|
|
275
|
+
watchId?: string;
|
|
276
|
+
folders?: string[];
|
|
277
|
+
}): Promise<FolderWatchResult>;
|
|
278
|
+
/**
|
|
279
|
+
* Subscribe to folder watch events for a specific watchId.
|
|
280
|
+
* Returns true if subscription was successful.
|
|
281
|
+
*/
|
|
282
|
+
subscribeFolderWatch(options: {
|
|
283
|
+
watchId: string;
|
|
284
|
+
onEvent: (event: FolderWatchEvent) => void;
|
|
285
|
+
}): boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Get all active folder watch IDs.
|
|
288
|
+
*/
|
|
289
|
+
getActiveFolderWatches(): string[];
|
|
264
290
|
close(uploadGitBackup?: boolean): Promise<void>;
|
|
265
291
|
emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
|
|
266
292
|
manualCommit(options: {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
import { type Credentials } from "./credentials";
|
|
4
|
+
export declare const runCodeIndexing: (_sys: DevToolsSys, _args: CLIArgs) => Promise<void>;
|
|
5
|
+
export declare const codeIndexing: (sys: DevToolsSys, credentials: Credentials) => Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
export interface RepoIndexingDoc {
|
|
4
|
+
name: string;
|
|
5
|
+
content: string | {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
components: string[];
|
|
9
|
+
relevantFiles: string[];
|
|
10
|
+
}[];
|
|
11
|
+
createdDate: string;
|
|
12
|
+
description: string;
|
|
13
|
+
id: string;
|
|
14
|
+
ownerId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const runRepoIndexing: (sys: DevToolsSys, args: CLIArgs) => Promise<void>;
|
|
@@ -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 @@
|
|
|
1
|
+
export declare const REPO_INDEXING_GROUP_PROMPT: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function analyzeProjects(inputPath?: string): Promise<{
|
|
2
|
+
success: boolean;
|
|
3
|
+
error: string;
|
|
4
|
+
projectsCount?: undefined;
|
|
5
|
+
branchesCount?: undefined;
|
|
6
|
+
csvRowsCount?: undefined;
|
|
7
|
+
outputPath?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
success: boolean;
|
|
10
|
+
projectsCount: number;
|
|
11
|
+
branchesCount: number;
|
|
12
|
+
csvRowsCount: number;
|
|
13
|
+
outputPath: string;
|
|
14
|
+
error?: undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function handleAnalyzeProjects(args: {
|
|
17
|
+
inputPath?: string;
|
|
18
|
+
}): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function downloadProjects(): Promise<{
|
|
2
|
+
success: boolean;
|
|
3
|
+
count: number;
|
|
4
|
+
outputPath: string;
|
|
5
|
+
error?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
success: boolean;
|
|
8
|
+
error: string;
|
|
9
|
+
count?: undefined;
|
|
10
|
+
outputPath?: undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function handleDownloadProjects(): Promise<void>;
|