@builder.io/ai-utils 0.26.3 → 0.27.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.26.3",
3
+ "version": "0.27.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -1805,11 +1805,16 @@ export interface FusionStatus {
1805
1805
  memoryUsage?: number;
1806
1806
  }
1807
1807
  export interface FusionMetrics {
1808
- counters: {
1808
+ counters?: {
1809
1809
  key: string;
1810
1810
  value: number;
1811
1811
  attributes: Record<string, string>;
1812
1812
  }[];
1813
+ durations?: {
1814
+ key: string;
1815
+ ms: number;
1816
+ attributes: Record<string, string>;
1817
+ }[];
1813
1818
  }
1814
1819
  export interface AnalyzeChatSentimentResults {
1815
1820
  sentiment: "positive" | "neutral" | "negative";
package/src/events.d.ts CHANGED
@@ -512,7 +512,14 @@ export declare const SetupAgentCompletedV1: {
512
512
  eventName: "fusion.setup.completed";
513
513
  version: "1";
514
514
  };
515
- export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | GitPrCreatedEvent | ClientDevtoolsSessionStartedEvent | FusionProjectCreatedV1 | SetupAgentCompletedV1;
515
+ export type ForceSetupAgentV1 = FusionEventVariant<"fusion.setup.force", {
516
+ projectId: string;
517
+ }, {}, 1>;
518
+ export declare const ForceSetupAgentV1: {
519
+ eventName: "fusion.setup.force";
520
+ version: "1";
521
+ };
522
+ export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | GitPrCreatedEvent | ClientDevtoolsSessionStartedEvent | FusionProjectCreatedV1 | SetupAgentCompletedV1 | ForceSetupAgentV1;
516
523
  export interface ModelPermissionRequiredEvent {
517
524
  type: "assistant.model.permission.required";
518
525
  data: {
package/src/events.js CHANGED
@@ -22,3 +22,7 @@ export const SetupAgentCompletedV1 = {
22
22
  eventName: "fusion.setup.completed",
23
23
  version: "1",
24
24
  };
25
+ export const ForceSetupAgentV1 = {
26
+ eventName: "fusion.setup.force",
27
+ version: "1",
28
+ };