@builder.io/ai-utils 0.13.1 → 0.13.3

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 +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -123,6 +123,14 @@ export interface FindMediaToolInput {
123
123
  orientation?: "landscape" | "portrait" | "square" | null;
124
124
  hex_color?: string | null;
125
125
  }
126
+ export interface MediaToolInput {
127
+ query: string;
128
+ type: "image" | "video" | "gen-image";
129
+ orientation?: "landscape" | "portrait" | "square" | null;
130
+ hex_color?: string | null;
131
+ /** Reference image URLs for AI image generation (only used with type: "gen-image") */
132
+ input_image_urls?: string[] | null;
133
+ }
126
134
  export interface MemoryToolInput {
127
135
  memory: string;
128
136
  memory_id?: string | null;
@@ -194,6 +202,10 @@ export interface ReadMcpResourceToolInput {
194
202
  uri: string;
195
203
  serverName?: string;
196
204
  }
205
+ export interface RecordFrameToolInput {
206
+ title: string;
207
+ frame: "last-image";
208
+ }
197
209
  export interface CodeGenToolMap {
198
210
  view_path: ReadToolInput;
199
211
  glob_search: GlobSearchToolInput;
@@ -216,6 +228,7 @@ export interface CodeGenToolMap {
216
228
  GetScreenshot: GetScreenshotToolInput;
217
229
  MultiEdit: MultiSearchReplaceInput;
218
230
  FindMedia: FindMediaToolInput;
231
+ Media: MediaToolInput;
219
232
  Memory: MemoryToolInput;
220
233
  Bash: BashToolInput;
221
234
  PowerShell: PowerShellToolInput;
@@ -235,6 +248,7 @@ export interface CodeGenToolMap {
235
248
  ExplorationMetadata: ExplorationMetadataToolInput;
236
249
  ExitPlanMode: ExitPlanModeToolInput;
237
250
  ReadMcpResource: ReadMcpResourceToolInput;
251
+ RecordFrame: RecordFrameToolInput;
238
252
  }
239
253
  export type CodeGenTools = keyof CodeGenToolMap;
240
254
  export type AllCodeGenTools = CodeGenTools | "web_search";
@@ -1251,6 +1265,7 @@ export interface LaunchServerStatus {
1251
1265
  machine?: MachineConfig;
1252
1266
  projectId?: string;
1253
1267
  detectedServerUrl?: string;
1268
+ httpClients: number;
1254
1269
  _attemptDryRunBackupOutcome?: string;
1255
1270
  workingDirectory?: string;
1256
1271
  fusionConfig?: FusionConfig;
@@ -1274,6 +1289,8 @@ export interface FusionStatus {
1274
1289
  _attemptDryRunBackupOutcome: string | undefined;
1275
1290
  workingDirectory: string | undefined;
1276
1291
  fusionEnvironment: "cloud" | "cloud-v2" | "unknown";
1292
+ wsClients: number;
1293
+ httpClients: number;
1277
1294
  }
1278
1295
  export interface FusionMetrics {
1279
1296
  counters: {