@builder.io/ai-utils 0.26.2 → 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.2",
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
@@ -395,6 +395,8 @@ export interface ProposedConfig {
395
395
  isMicrofrontend?: boolean;
396
396
  setupNeedsCredentials?: boolean;
397
397
  devServerNeedsCredentials?: boolean;
398
+ cost?: number;
399
+ durationMs?: number;
398
400
  }
399
401
  /**
400
402
  * Parameters for proposing a configuration to the backend
@@ -1803,11 +1805,16 @@ export interface FusionStatus {
1803
1805
  memoryUsage?: number;
1804
1806
  }
1805
1807
  export interface FusionMetrics {
1806
- counters: {
1808
+ counters?: {
1807
1809
  key: string;
1808
1810
  value: number;
1809
1811
  attributes: Record<string, string>;
1810
1812
  }[];
1813
+ durations?: {
1814
+ key: string;
1815
+ ms: number;
1816
+ attributes: Record<string, string>;
1817
+ }[];
1811
1818
  }
1812
1819
  export interface AnalyzeChatSentimentResults {
1813
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
+ };