@builder.io/ai-utils 0.12.12 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.12.12",
3
+ "version": "0.12.13",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
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 SetImportantFilesToolInput {
175
+ export interface ExplorationMetadataToolInput {
176
+ category?: "reusable_knowledge" | "one_off" | "bad_quality";
176
177
  important_files: {
177
178
  file_path: string;
178
- relevance: "high" | "medium" | "low";
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
- SetImportantFiles: SetImportantFilesToolInput;
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";