@builder.io/ai-utils 0.12.19 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +35 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.12.19",
3
+ "version": "0.12.20",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -1379,6 +1379,41 @@ export interface SearchFilesResult {
1379
1379
  /** Whether results were truncated */
1380
1380
  truncated: boolean;
1381
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
+ }
1382
1417
  export interface SetupCommandResult {
1383
1418
  code: number | null;
1384
1419
  output: string;