@builder.io/ai-utils 0.32.0 → 0.32.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +58 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -224,6 +224,8 @@ export interface WebFetchToolInput {
224
224
  export interface ExplorationMetadataToolInput {
225
225
  category?: "reusable_knowledge" | "one_off" | "bad_quality";
226
226
  gif_id?: string;
227
+ timeline_id?: string;
228
+ recording_id?: string;
227
229
  important_files: {
228
230
  file_path: string;
229
231
  relevance?: "high" | "medium" | "low";
@@ -244,6 +246,58 @@ export interface ReadMcpResourceToolInput {
244
246
  export interface RecordFrameToolInput {
245
247
  title: string;
246
248
  frame: "last-image";
249
+ category?: TimelineEventCategory;
250
+ description?: string;
251
+ }
252
+ export type TestOutcome = "succeeded" | "couldnt_verify" | "failed" | "other";
253
+ export interface ReportTestOutcomeToolInput {
254
+ outcome: TestOutcome;
255
+ summary: string;
256
+ details?: string;
257
+ }
258
+ export type TimelineEventCategory = "navigation" | "interaction" | "assertion" | "error" | "milestone" | "code-change" | "observation";
259
+ export interface TimelineEvent {
260
+ id: number;
261
+ timestamp: number;
262
+ label: string;
263
+ category: TimelineEventCategory;
264
+ description?: string;
265
+ toolName?: string;
266
+ frameIndex?: number;
267
+ durationMs?: number;
268
+ thinking?: string;
269
+ }
270
+ export interface TimelineFrameMetadata {
271
+ index: number;
272
+ timestamp: number;
273
+ title: string;
274
+ category: TimelineEventCategory;
275
+ eventId: number;
276
+ explicit: boolean;
277
+ displayDurationMs: number;
278
+ fileName?: string;
279
+ image_url?: string;
280
+ cursorX?: number | null;
281
+ cursorY?: number | null;
282
+ viewportWidth?: number;
283
+ viewportHeight?: number;
284
+ }
285
+ export interface TimelineRecording {
286
+ version: 1;
287
+ sessionId: string;
288
+ startTime: number;
289
+ endTime: number;
290
+ totalFrames: number;
291
+ events: TimelineEvent[];
292
+ frames: TimelineFrameMetadata[];
293
+ testOutcome?: TestOutcome;
294
+ testSummary?: string;
295
+ testDetails?: string;
296
+ uiIssues?: Array<{
297
+ title: string;
298
+ description: string;
299
+ debugInfo?: string;
300
+ }>;
247
301
  }
248
302
  /**
249
303
  * Configuration values proposed by the setup analyzer agent
@@ -536,6 +590,7 @@ export interface SubmitPRReviewToolInput {
536
590
  /** SubmitRecording - Visual verification with recording (posted as separate review) */
537
591
  export interface SubmitRecordingToolInput {
538
592
  gif_id: string;
593
+ timeline_id?: string;
539
594
  recording_caption: string;
540
595
  summary?: string;
541
596
  comments?: PRReviewComment[];
@@ -612,6 +667,7 @@ export interface CodeGenToolMap {
612
667
  ResolveQAComments: ResolveQACommentsToolInput;
613
668
  ReportUIIssue: ReportUIIssueToolInput;
614
669
  ReportIssue: ReportIssueToolInput;
670
+ ReportTestOutcome: ReportTestOutcomeToolInput;
615
671
  VerifySetupCommand: VerifySetupCommandToolInput;
616
672
  VerifyDevCommand: VerifyDevCommandToolInput;
617
673
  VerifyDevServer: VerifyDevServerToolInput;
@@ -1130,6 +1186,8 @@ export interface GenerateCompletionStepProposeConfig {
1130
1186
  type: "propose_config";
1131
1187
  config: SetupAnalysisValues;
1132
1188
  message?: string;
1189
+ /** When true, the project requires no dependency installation. The UI should not show an Apply dialog for dependencies. */
1190
+ noDependencies?: boolean;
1133
1191
  }
1134
1192
  export interface GenerateCompletionStepUpdateSetupValue {
1135
1193
  type: "update_setup_value";