@builder.io/ai-utils 0.47.1 → 0.48.0

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 +23 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.47.1",
3
+ "version": "0.48.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/codegen.d.ts CHANGED
@@ -276,17 +276,7 @@ export interface ReportTestOutcomeToolInput {
276
276
  steps_attempted?: string;
277
277
  urls_tested?: string[];
278
278
  }
279
- export type TestCaseFailureCategory = "env_issue" | "creds_missing" | "needs_user_input" | "server_not_ready" | "feature_not_reachable" | "timeout" | "assertion_failed" | "unexpected_error" | "not_applicable";
280
- export interface RegisterTestPlanToolInput {
281
- mode: "quick" | "thorough";
282
- test_cases: Array<{
283
- id: string;
284
- description: string;
285
- expected_outcome: string;
286
- priority: "critical" | "high" | "medium" | "low";
287
- source?: string;
288
- }>;
289
- }
279
+ export type TestCaseFailureCategory = "env_issue" | "creds_missing" | "needs_user_input" | "server_not_ready" | "feature_not_reachable" | "timeout" | "assertion_failed" | "unexpected_error" | "not_applicable" | "escalated";
290
280
  export type TimelineEventCategory = "navigation" | "interaction" | "assertion" | "error" | "milestone" | "code-change" | "observation";
291
281
  export interface TimelineEvent {
292
282
  id: number;
@@ -336,12 +326,13 @@ export interface TimelineRecording {
336
326
  description: string;
337
327
  debugInfo?: string;
338
328
  }>;
339
- }
340
- export interface CompileRecordingToolInput {
341
- caption: string;
342
- recording_caption: string;
343
- summary?: string;
344
- comments?: PRReviewComment[];
329
+ phases?: Array<{
330
+ label: string;
331
+ sessionId: string;
332
+ startEventId: number;
333
+ endEventId: number;
334
+ testCaseIds?: string[];
335
+ }>;
345
336
  }
346
337
  export interface TimelineSubmissionMetadata {
347
338
  prNumber?: number;
@@ -643,7 +634,7 @@ export interface ArchiveBranchToolInput {
643
634
  builder_user_id: string;
644
635
  reason?: string;
645
636
  }
646
- /** Comment for PR review - used by SubmitPRReview and CompileRecording */
637
+ /** Comment for PR review - used by SubmitPRReview */
647
638
  export interface PRReviewComment {
648
639
  file_path: string;
649
640
  line: number;
@@ -723,16 +714,15 @@ export interface CodeGenToolMap {
723
714
  ExitPlanMode: ExitPlanModeToolInput;
724
715
  ReadMcpResource: ReadMcpResourceToolInput;
725
716
  RecordFrame: RecordFrameToolInput;
726
- CompileRecording: CompileRecordingToolInput;
727
717
  SubmitPRReview: SubmitPRReviewToolInput;
728
718
  ProposeConfig: ProposeConfigToolInput;
729
719
  UpdateSetupValue: UpdateSetupValueToolInput;
730
720
  Exit: ExitToolInput;
731
721
  ResolveQAComments: ResolveQACommentsToolInput;
722
+ GetLastBrowserTest: GetLastBrowserTestToolInput;
732
723
  ReportUIIssue: ReportUIIssueToolInput;
733
724
  ReportIssue: ReportIssueToolInput;
734
725
  ReportTestOutcome: ReportTestOutcomeToolInput;
735
- RegisterTestPlan: RegisterTestPlanToolInput;
736
726
  VerifySetupCommand: VerifySetupCommandToolInput;
737
727
  VerifyDevCommand: VerifyDevCommandToolInput;
738
728
  VerifyDevServer: VerifyDevServerToolInput;
@@ -747,8 +737,21 @@ export interface CodeGenToolMap {
747
737
  ArchiveBranch: ArchiveBranchToolInput;
748
738
  RunningAgents: RunningAgentsToolInput;
749
739
  IDEDiagnostics: IDEDiagnosticsToolInput;
740
+ EscalateToPlanner: EscalateToPlanner;
750
741
  PullPrototype: PullPrototypeToolInput;
751
742
  }
743
+ export interface EscalateToPlanner {
744
+ /** What's blocking execution */
745
+ issue: string;
746
+ /** What was tried before escalating */
747
+ steps_attempted: string;
748
+ /** Current browser URL */
749
+ current_url: string;
750
+ /** Which test case is blocked */
751
+ test_case_id: string;
752
+ }
753
+ export interface GetLastBrowserTestToolInput {
754
+ }
752
755
  export type CodeGenTools = keyof CodeGenToolMap;
753
756
  export type AllCodeGenTools = CodeGenTools | "web_search";
754
757
  export type SessionMode = "planning" | "normal" | "auto-planning" | "deep-research";