@builder.io/ai-utils 0.6.0 → 0.6.1

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.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -151,6 +151,14 @@ export interface WebFetchToolInput {
151
151
  url: string;
152
152
  prompt: string;
153
153
  }
154
+ export interface SetImportantFilesToolInput {
155
+ important_files: {
156
+ file_path: string;
157
+ relevance: "high" | "medium" | "low";
158
+ offset?: number;
159
+ limit?: number;
160
+ }[];
161
+ }
154
162
  export interface CodeGenToolMap {
155
163
  view_path: ViewPathToolInput;
156
164
  glob_search: GlobSearchToolInput;
@@ -187,6 +195,7 @@ export interface CodeGenToolMap {
187
195
  BuilderEdit: BuilderEditToolInput;
188
196
  LS: ListDirToolInput;
189
197
  WebFetch: WebFetchToolInput;
198
+ SetImportantFiles: SetImportantFilesToolInput;
190
199
  }
191
200
  export type CodeGenTools = keyof CodeGenToolMap;
192
201
  export type AllCodeGenTools = CodeGenTools | "web_search";
package/src/projects.d.ts CHANGED
@@ -209,4 +209,32 @@ export interface CodegenRuntimeStatus {
209
209
  lastServerState?: LaunchServerState;
210
210
  lastServerVersion?: string;
211
211
  }
212
+ export interface BackupGitRepoResultValid {
213
+ success: true;
214
+ partial: boolean;
215
+ repoUrl: string;
216
+ empty: boolean;
217
+ lastCommitHash: string;
218
+ backupRef: string | undefined;
219
+ }
220
+ export interface BackupGitRepoResultInvalid {
221
+ success: false;
222
+ reason: "project_removed";
223
+ }
224
+ export type BackupGitRepoResult = BackupGitRepoResultValid | BackupGitRepoResultInvalid;
225
+ export type ShutdownResponse = {
226
+ success: true;
227
+ message: string;
228
+ skipped: boolean;
229
+ reason: string;
230
+ } | {
231
+ success: false;
232
+ message?: string;
233
+ skipped?: boolean;
234
+ reason?: string;
235
+ error?: Error;
236
+ } | BackupGitRepoResult;
237
+ export type ShutdownResponseSerialized = Omit<ShutdownResponse, "error"> & {
238
+ error?: string;
239
+ };
212
240
  export {};