@builder.io/ai-utils 0.41.1 → 0.42.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.41.1",
3
+ "version": "0.42.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/codegen.d.ts CHANGED
@@ -264,6 +264,25 @@ export interface ReportTestOutcomeToolInput {
264
264
  outcome: TestOutcome;
265
265
  summary: string;
266
266
  details?: string;
267
+ test_case_id?: string;
268
+ evidence_frame_count?: number;
269
+ failure_category?: TestCaseFailureCategory;
270
+ failure_detail?: string;
271
+ console_errors?: string;
272
+ network_failures?: string;
273
+ steps_attempted?: string;
274
+ urls_tested?: string[];
275
+ }
276
+ export type TestCaseFailureCategory = "env_issue" | "creds_missing" | "needs_user_input" | "server_not_ready" | "feature_not_reachable" | "timeout" | "assertion_failed" | "unexpected_error" | "not_applicable";
277
+ export interface RegisterTestPlanToolInput {
278
+ mode: "quick" | "thorough";
279
+ test_cases: Array<{
280
+ id: string;
281
+ description: string;
282
+ expected_outcome: string;
283
+ priority: "critical" | "high" | "medium" | "low";
284
+ source?: string;
285
+ }>;
267
286
  }
268
287
  export type TimelineEventCategory = "navigation" | "interaction" | "assertion" | "error" | "milestone" | "code-change" | "observation";
269
288
  export interface TimelineEvent {
@@ -710,6 +729,7 @@ export interface CodeGenToolMap {
710
729
  ReportUIIssue: ReportUIIssueToolInput;
711
730
  ReportIssue: ReportIssueToolInput;
712
731
  ReportTestOutcome: ReportTestOutcomeToolInput;
732
+ RegisterTestPlan: RegisterTestPlanToolInput;
713
733
  VerifySetupCommand: VerifySetupCommandToolInput;
714
734
  VerifyDevCommand: VerifyDevCommandToolInput;
715
735
  VerifyDevServer: VerifyDevServerToolInput;
@@ -2340,6 +2360,7 @@ export interface LaunchInitializeSessionOptions {
2340
2360
  sessionId?: string;
2341
2361
  customInstructions?: CustomInstruction[];
2342
2362
  privacyMode?: PrivacyMode;
2363
+ forceSessionReload?: boolean;
2343
2364
  }
2344
2365
  /**
2345
2366
  * Request for generating a commit message via LLM
package/src/events.d.ts CHANGED
@@ -717,7 +717,8 @@ export type FusionBranchCreatedV1 = FusionEventVariant<"fusion.branch.created",
717
717
  projectId: string;
718
718
  branchName: string;
719
719
  branchFriendlyName?: string;
720
- actor: string;
720
+ createdBy: string;
721
+ actor?: string;
721
722
  }, {
722
723
  projectId: string;
723
724
  branchName: string;
@@ -726,7 +727,7 @@ export declare const FusionBranchCreatedV1: {
726
727
  eventName: "fusion.branch.created";
727
728
  version: "1";
728
729
  };
729
- export type FusionBranchContainerStartedV1 = FusionEventVariant<"fusion.branch.container-started", {
730
+ export type FusionContainerStartedV1 = FusionEventVariant<"fusion.container.started", {
730
731
  projectId: string;
731
732
  branchName: string;
732
733
  url: string;
@@ -734,26 +735,26 @@ export type FusionBranchContainerStartedV1 = FusionEventVariant<"fusion.branch.c
734
735
  projectId: string;
735
736
  branchName: string;
736
737
  }, 1>;
737
- export declare const FusionBranchContainerStartedV1: {
738
- eventName: "fusion.branch.container-started";
738
+ export declare const FusionContainerStartedV1: {
739
+ eventName: "fusion.container.started";
739
740
  version: "1";
740
741
  };
741
- export type FusionBranchMessageSentV1 = FusionEventVariant<"fusion.branch.message-sent", {
742
+ export type FusionContainerFailedV1 = FusionEventVariant<"fusion.container.failed", {
742
743
  projectId: string;
743
744
  branchName: string;
745
+ error: string;
744
746
  }, {
745
747
  projectId: string;
746
748
  branchName: string;
747
749
  }, 1>;
748
- export declare const FusionBranchMessageSentV1: {
749
- eventName: "fusion.branch.message-sent";
750
+ export declare const FusionContainerFailedV1: {
751
+ eventName: "fusion.container.failed";
750
752
  version: "1";
751
753
  };
752
754
  export type FusionBranchFailedV1 = FusionEventVariant<"fusion.branch.failed", {
753
755
  projectId: string;
754
756
  branchName?: string;
755
757
  error: string;
756
- phase: string;
757
758
  }, {
758
759
  projectId: string;
759
760
  branchName?: string;
@@ -795,7 +796,7 @@ export interface SendMessageToOrgAgentInput {
795
796
  */
796
797
  autoCreateProject?: boolean;
797
798
  }
798
- export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | FusionBranchCreatedV1 | FusionBranchContainerStartedV1 | FusionBranchMessageSentV1 | FusionBranchFailedV1 | BotMentionExternalPrV1 | ReviewSubmittedV1;
799
+ export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | FusionBranchCreatedV1 | FusionContainerStartedV1 | FusionContainerFailedV1 | FusionBranchFailedV1 | BotMentionExternalPrV1 | ReviewSubmittedV1;
799
800
  export interface ModelPermissionRequiredEvent {
800
801
  type: "assistant.model.permission.required";
801
802
  data: {
package/src/events.js CHANGED
@@ -70,12 +70,12 @@ export const FusionBranchCreatedV1 = {
70
70
  eventName: "fusion.branch.created",
71
71
  version: "1",
72
72
  };
73
- export const FusionBranchContainerStartedV1 = {
74
- eventName: "fusion.branch.container-started",
73
+ export const FusionContainerStartedV1 = {
74
+ eventName: "fusion.container.started",
75
75
  version: "1",
76
76
  };
77
- export const FusionBranchMessageSentV1 = {
78
- eventName: "fusion.branch.message-sent",
77
+ export const FusionContainerFailedV1 = {
78
+ eventName: "fusion.container.failed",
79
79
  version: "1",
80
80
  };
81
81
  export const FusionBranchFailedV1 = {