@builder.io/ai-utils 0.12.11 → 0.12.13
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 +57 -3
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -172,10 +172,11 @@ export interface WebFetchToolInput {
|
|
|
172
172
|
prompt?: string;
|
|
173
173
|
include_styles?: boolean;
|
|
174
174
|
}
|
|
175
|
-
export interface
|
|
175
|
+
export interface ExplorationMetadataToolInput {
|
|
176
|
+
category?: "reusable_knowledge" | "one_off" | "bad_quality";
|
|
176
177
|
important_files: {
|
|
177
178
|
file_path: string;
|
|
178
|
-
relevance
|
|
179
|
+
relevance?: "high" | "medium" | "low";
|
|
179
180
|
offset?: number;
|
|
180
181
|
limit?: number;
|
|
181
182
|
}[];
|
|
@@ -221,7 +222,7 @@ export interface CodeGenToolMap {
|
|
|
221
222
|
BuilderEdit: BuilderEditToolInput;
|
|
222
223
|
LS: ListDirToolInput;
|
|
223
224
|
WebFetch: WebFetchToolInput;
|
|
224
|
-
|
|
225
|
+
ExplorationMetadata: ExplorationMetadataToolInput;
|
|
225
226
|
ExitPlanMode: ExitPlanModeToolInput;
|
|
226
227
|
}
|
|
227
228
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
@@ -262,6 +263,7 @@ export interface CodeGenInputOptions {
|
|
|
262
263
|
attachments?: Attachment[];
|
|
263
264
|
beforeCommit?: string;
|
|
264
265
|
workingDirectory?: string;
|
|
266
|
+
includeRelevantMemories?: boolean;
|
|
265
267
|
encryptKey?: string;
|
|
266
268
|
modelOverride?: string;
|
|
267
269
|
redactUserMessages?: boolean;
|
|
@@ -708,6 +710,7 @@ export interface GenerateUserMessage {
|
|
|
708
710
|
modelOverride?: string;
|
|
709
711
|
maxCompletions?: number;
|
|
710
712
|
isManualContinue?: boolean;
|
|
713
|
+
includeRelevantMemories?: boolean;
|
|
711
714
|
category?: CodeGenCategory;
|
|
712
715
|
metadata?: Record<string, any>;
|
|
713
716
|
autoPush?: "force-push" | "merge-push" | "ff-push" | "none";
|
|
@@ -1310,6 +1313,57 @@ export interface CodegenApiTerminal {
|
|
|
1310
1313
|
exitCode: number | undefined;
|
|
1311
1314
|
initialCommand?: string;
|
|
1312
1315
|
}
|
|
1316
|
+
export interface FolderWatchEvent {
|
|
1317
|
+
type: "folder-watch";
|
|
1318
|
+
watchId: string;
|
|
1319
|
+
event: "add" | "change" | "unlink" | "addDir" | "unlinkDir";
|
|
1320
|
+
/** Relative path from workspace root */
|
|
1321
|
+
path: string;
|
|
1322
|
+
/** Timestamp of the event */
|
|
1323
|
+
timestamp: number;
|
|
1324
|
+
}
|
|
1325
|
+
export interface SearchFilesOptions {
|
|
1326
|
+
/** Search query/pattern */
|
|
1327
|
+
query: string;
|
|
1328
|
+
/** Case insensitive search */
|
|
1329
|
+
caseInsensitive?: boolean;
|
|
1330
|
+
/** Include glob pattern (e.g., "*.ts", "src/**") */
|
|
1331
|
+
includeGlob?: string;
|
|
1332
|
+
/** Exclude glob pattern */
|
|
1333
|
+
excludeGlob?: string;
|
|
1334
|
+
/** Maximum number of results to return */
|
|
1335
|
+
maxResults?: number;
|
|
1336
|
+
/** Include context lines before each match */
|
|
1337
|
+
contextBefore?: number;
|
|
1338
|
+
/** Include context lines after each match */
|
|
1339
|
+
contextAfter?: number;
|
|
1340
|
+
}
|
|
1341
|
+
export interface SearchFileMatch {
|
|
1342
|
+
/** Relative file path */
|
|
1343
|
+
filePath: string;
|
|
1344
|
+
/** Line number (1-indexed) */
|
|
1345
|
+
lineNumber: number;
|
|
1346
|
+
/** Line content */
|
|
1347
|
+
lineContent: string;
|
|
1348
|
+
/** Column number where match starts (0-indexed) */
|
|
1349
|
+
columnStart?: number;
|
|
1350
|
+
/** Column number where match ends (0-indexed) */
|
|
1351
|
+
columnEnd?: number;
|
|
1352
|
+
/** Context lines before the match */
|
|
1353
|
+
contextBefore?: string[];
|
|
1354
|
+
/** Context lines after the match */
|
|
1355
|
+
contextAfter?: string[];
|
|
1356
|
+
}
|
|
1357
|
+
export interface SearchFilesResult {
|
|
1358
|
+
/** Array of search matches */
|
|
1359
|
+
matches: SearchFileMatch[];
|
|
1360
|
+
/** Total number of matches found */
|
|
1361
|
+
totalMatches: number;
|
|
1362
|
+
/** Number of files with matches */
|
|
1363
|
+
filesWithMatches: number;
|
|
1364
|
+
/** Whether results were truncated */
|
|
1365
|
+
truncated: boolean;
|
|
1366
|
+
}
|
|
1313
1367
|
export interface SetupCommandResult {
|
|
1314
1368
|
code: number | null;
|
|
1315
1369
|
output: string;
|