@builder.io/ai-utils 0.12.18 → 0.12.20
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/package.json +1 -1
- package/src/codegen.d.ts +41 -1
- package/src/messages.d.ts +1 -1
- package/src/projects.d.ts +6 -4
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -178,6 +178,7 @@ export interface WebFetchToolInput {
|
|
|
178
178
|
}
|
|
179
179
|
export interface ExplorationMetadataToolInput {
|
|
180
180
|
category?: "reusable_knowledge" | "one_off" | "bad_quality";
|
|
181
|
+
gif_id?: string;
|
|
181
182
|
important_files: {
|
|
182
183
|
file_path: string;
|
|
183
184
|
relevance?: "high" | "medium" | "low";
|
|
@@ -624,6 +625,10 @@ export interface GenerateCompletionStepSession {
|
|
|
624
625
|
sessionMode: SessionMode;
|
|
625
626
|
fusionConfig: FusionConfig | undefined;
|
|
626
627
|
}
|
|
628
|
+
export interface GenerateCompletionStepMetadata {
|
|
629
|
+
type: "metadata";
|
|
630
|
+
[key: string]: unknown;
|
|
631
|
+
}
|
|
627
632
|
export interface GenerateCompletionStepServerToolResult {
|
|
628
633
|
type: "server_tool_result";
|
|
629
634
|
content: any;
|
|
@@ -648,7 +653,7 @@ export interface GenerateCompletionStepTerminals {
|
|
|
648
653
|
}
|
|
649
654
|
export type GenerateCompletionStep = {
|
|
650
655
|
timestamp?: number;
|
|
651
|
-
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCompletionStepToolCallRequest | GenerateCodeEventMCPStatus | GenerateCodeEventMCPAuthRequired | GenerateCompletionStepDevServerState | GenerateCompletionStepAgent | GenerateCompletionStepBatch | GenerateCompletionStepTerminals);
|
|
656
|
+
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCompletionStepToolCallRequest | GenerateCodeEventMCPStatus | GenerateCodeEventMCPAuthRequired | GenerateCompletionStepDevServerState | GenerateCompletionStepAgent | GenerateCompletionStepBatch | GenerateCompletionStepTerminals | GenerateCompletionStepMetadata);
|
|
652
657
|
export interface ApplyActionsResult {
|
|
653
658
|
filePath: string;
|
|
654
659
|
addedLines: number;
|
|
@@ -1374,6 +1379,41 @@ export interface SearchFilesResult {
|
|
|
1374
1379
|
/** Whether results were truncated */
|
|
1375
1380
|
truncated: boolean;
|
|
1376
1381
|
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Options for searching file tree (quick open functionality).
|
|
1384
|
+
*/
|
|
1385
|
+
export interface SearchFileTreeOptions {
|
|
1386
|
+
/** Fuzzy search query to match against file paths */
|
|
1387
|
+
query: string;
|
|
1388
|
+
/** Exclude glob pattern */
|
|
1389
|
+
excludeGlob?: string;
|
|
1390
|
+
/** Maximum number of results to return (default: 100) */
|
|
1391
|
+
maxResults?: number;
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* A single match in the file tree search results.
|
|
1395
|
+
*/
|
|
1396
|
+
export interface SearchFileTreeMatch {
|
|
1397
|
+
/** Relative file path */
|
|
1398
|
+
filePath: string;
|
|
1399
|
+
/** File name (basename) */
|
|
1400
|
+
fileName: string;
|
|
1401
|
+
/** Parent directory path */
|
|
1402
|
+
parentPath: string;
|
|
1403
|
+
/** Indices of matched characters in the file path (for highlighting) */
|
|
1404
|
+
matchIndices: number[];
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Result of searching the file tree.
|
|
1408
|
+
*/
|
|
1409
|
+
export interface SearchFileTreeResult {
|
|
1410
|
+
/** Array of file matches */
|
|
1411
|
+
matches: SearchFileTreeMatch[];
|
|
1412
|
+
/** Total number of matches found */
|
|
1413
|
+
totalMatches: number;
|
|
1414
|
+
/** Whether results were truncated */
|
|
1415
|
+
truncated: boolean;
|
|
1416
|
+
}
|
|
1377
1417
|
export interface SetupCommandResult {
|
|
1378
1418
|
code: number | null;
|
|
1379
1419
|
output: string;
|
package/src/messages.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export type ServerToolUseContentUnion = ServerToolUseContent[] | ServerToolUseCo
|
|
|
141
141
|
export interface ContentMessageItemServerToolUse {
|
|
142
142
|
type: "server_tool_use";
|
|
143
143
|
id: string;
|
|
144
|
-
name: "web_search" | "code_execution" | "web_fetch" | "bash_code_execution" | "text_editor_code_execution";
|
|
144
|
+
name: "web_search" | "code_execution" | "web_fetch" | "bash_code_execution" | "text_editor_code_execution" | "tool_search_tool_regex" | "tool_search_tool_bm25";
|
|
145
145
|
input: unknown;
|
|
146
146
|
completion?: string;
|
|
147
147
|
content?: any;
|
package/src/projects.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileOverride, EnvironmentVariable, LaunchServerState, LaunchServerStatus, BranchBackup } from "./codegen";
|
|
1
|
+
import type { FileOverride, EnvironmentVariable, LaunchServerState, LaunchServerStatus, BranchBackup, CommitMode } from "./codegen";
|
|
2
2
|
export interface ConfigStatus {
|
|
3
3
|
isReady: boolean;
|
|
4
4
|
lastUpdated: string;
|
|
@@ -268,7 +268,7 @@ export interface PartialBranchData {
|
|
|
268
268
|
gitAiBranch?: string | null;
|
|
269
269
|
lastCommitHash?: string | null;
|
|
270
270
|
lastCommitDate?: number | null;
|
|
271
|
-
commitMode?:
|
|
271
|
+
commitMode?: CommitMode;
|
|
272
272
|
useHomeDir?: boolean;
|
|
273
273
|
checkoutBranch?: string | null;
|
|
274
274
|
cloneFrom?: {
|
|
@@ -318,7 +318,7 @@ export interface Branch {
|
|
|
318
318
|
needsCleanup?: boolean;
|
|
319
319
|
deleted?: boolean;
|
|
320
320
|
updatedAt?: string;
|
|
321
|
-
commitMode?:
|
|
321
|
+
commitMode?: CommitMode;
|
|
322
322
|
kubePodName?: string | null;
|
|
323
323
|
kubeNamespace?: string | null;
|
|
324
324
|
kubePvcName?: string | null;
|
|
@@ -392,7 +392,7 @@ export interface Project {
|
|
|
392
392
|
includePatterns?: string[];
|
|
393
393
|
environmentVariables?: EnvironmentVariable[];
|
|
394
394
|
fileOverrides?: FileOverride[];
|
|
395
|
-
commitMode?:
|
|
395
|
+
commitMode?: CommitMode;
|
|
396
396
|
dockerImagePath?: string;
|
|
397
397
|
nodeVersion?: string;
|
|
398
398
|
designSystems?: string[];
|
|
@@ -416,6 +416,8 @@ export interface Project {
|
|
|
416
416
|
backgroundAgents?: boolean;
|
|
417
417
|
builderApp?: boolean;
|
|
418
418
|
instructions?: string;
|
|
419
|
+
authUser?: string;
|
|
420
|
+
authPassword?: string;
|
|
419
421
|
};
|
|
420
422
|
httpsServerKeyPath?: string;
|
|
421
423
|
httpsServerCertPath?: string;
|