@builder.io/ai-utils 0.4.36 → 0.4.37

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.4.36",
3
+ "version": "0.4.37",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -8,6 +8,7 @@ export interface ESMImport {
8
8
  importPath: string;
9
9
  importType: ImportType;
10
10
  }
11
+ export type ImportMetadata = ESMImport | string;
11
12
  export interface ProjectFile {
12
13
  filePath: string;
13
14
  content?: string;
@@ -273,10 +274,6 @@ export interface GenerateCompletionStepUserInput {
273
274
  prompt: string;
274
275
  files: FileInfo[];
275
276
  }
276
- export interface GenerateCompletionStepToolResult {
277
- type: "agent-input";
278
- toolResults: ContentMessageItemToolResult[];
279
- }
280
277
  export interface GenerateCompletionStepPlanning {
281
278
  type: "planning";
282
279
  content: string;
@@ -310,6 +307,10 @@ export interface GenerateCompletionStepTool {
310
307
  id: string;
311
308
  content: string;
312
309
  }
310
+ export interface GenerateCompletionStepToolResult {
311
+ type: "tool_result";
312
+ result: ContentMessageItemToolResult;
313
+ }
313
314
  export interface GenerateCompletionStepText {
314
315
  type: "text";
315
316
  content: string;
package/src/mapping.d.ts CHANGED
@@ -46,6 +46,7 @@ export interface FigmaBuilderLink {
46
46
  source: string;
47
47
  loc?: string;
48
48
  imports?: ESMImport[];
49
+ importStrings?: string[];
49
50
  }
50
51
  export interface FigmaMapperFile {
51
52
  filePath: string;