@builder.io/ai-utils 0.5.4 → 0.5.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -79,6 +79,7 @@ export interface SearchReplaceInput {
79
79
  old_str: string;
80
80
  new_str: string;
81
81
  replace_all?: boolean;
82
+ apply_with_error?: boolean;
82
83
  }
83
84
  export interface MultiSearchReplaceInput {
84
85
  title: string;
@@ -88,6 +89,7 @@ export interface MultiSearchReplaceInput {
88
89
  new_str: string;
89
90
  replace_all?: boolean;
90
91
  }[];
92
+ apply_with_error?: boolean;
91
93
  }
92
94
  export interface FindMediaToolInput {
93
95
  query: string;
@@ -307,6 +309,7 @@ export interface GenerateCompletionStepFile {
307
309
  content: string;
308
310
  title: string;
309
311
  id: string;
312
+ errors?: string[];
310
313
  }
311
314
  export interface GenerateCompletionStepDiff {
312
315
  type: "diff";
@@ -314,6 +317,7 @@ export interface GenerateCompletionStepDiff {
314
317
  content: string;
315
318
  title: string;
316
319
  id: string;
320
+ errors?: string[];
317
321
  }
318
322
  export interface GenerateCompletionStepTool {
319
323
  type: "tool";
package/src/features.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export declare enum Feature {
2
- REPO_INDEXING = "repo-indexing"
2
+ REPO_INDEXING = "repo-indexing",
3
+ COMPONENT_MAPPING = "component-mapping"
3
4
  }
package/src/features.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export var Feature;
2
2
  (function (Feature) {
3
3
  Feature["REPO_INDEXING"] = "repo-indexing";
4
+ Feature["COMPONENT_MAPPING"] = "component-mapping";
4
5
  })(Feature || (Feature = {}));
package/src/projects.d.ts CHANGED
@@ -157,6 +157,7 @@ export type GitConfig = {
157
157
  export type GitConfigs = Record<string, GitConfig>;
158
158
  export declare const EXAMPLE_REPOS: string[];
159
159
  export declare const STARTER_REPO = "BuilderIO/fusion-starter";
160
+ export declare const EXAMPLE_OR_STARTER_REPOS: string[];
160
161
  export interface GitBackupUploadUrlResult {
161
162
  signedUrl: string;
162
163
  filePath: string;
@@ -175,6 +176,7 @@ export interface GitBackupDownloadUrlResult {
175
176
  filePath: string;
176
177
  expiresAt: string;
177
178
  exists: boolean;
179
+ partial: boolean;
178
180
  }
179
181
  export interface GitBackupDownloadUrlOptions {
180
182
  projectId: string;
package/src/projects.js CHANGED
@@ -5,3 +5,4 @@ export const EXAMPLE_REPOS = [
5
5
  "steve8708/cloudscape-demos",
6
6
  ];
7
7
  export const STARTER_REPO = "BuilderIO/fusion-starter";
8
+ export const EXAMPLE_OR_STARTER_REPOS = [...EXAMPLE_REPOS, STARTER_REPO];