@builder.io/ai-utils 0.18.2 → 0.18.4

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.18.2",
3
+ "version": "0.18.4",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -214,15 +214,21 @@ export interface RecordFrameToolInput {
214
214
  export interface AddQAReviewComment {
215
215
  file_path: string;
216
216
  line: number;
217
+ start_line?: number;
217
218
  title: string;
218
219
  body: string;
219
- severity: "critical" | "warning" | "info";
220
+ severity: "high" | "medium" | "low";
220
221
  debugInfo?: string;
222
+ gif_id?: string;
221
223
  }
222
224
  export interface AddQAReviewToolInput {
223
225
  summary: string;
224
226
  comments?: AddQAReviewComment[];
225
227
  gif_id: string;
228
+ recording_caption?: string;
229
+ }
230
+ export interface ResolveQACommentsToolInput {
231
+ thread_node_ids: string[];
226
232
  }
227
233
  export interface ReportUIIssueToolInput {
228
234
  title: string;
@@ -273,6 +279,7 @@ export interface CodeGenToolMap {
273
279
  ReadMcpResource: ReadMcpResourceToolInput;
274
280
  RecordFrame: RecordFrameToolInput;
275
281
  AddQAReview: AddQAReviewToolInput;
282
+ ResolveQAComments: ResolveQACommentsToolInput;
276
283
  ReportUIIssue: ReportUIIssueToolInput;
277
284
  }
278
285
  export type CodeGenTools = keyof CodeGenToolMap;
@@ -1437,6 +1444,8 @@ export interface FusionStatus {
1437
1444
  httpClients: number;
1438
1445
  /** VS Code Tunnel status for remote editor connections */
1439
1446
  tunnel?: TunnelStatusInfo;
1447
+ /** Event loop delays collected every 5 seconds (in milliseconds) for percentile calculation */
1448
+ eventLoopDelays?: number[];
1440
1449
  }
1441
1450
  export interface FusionMetrics {
1442
1451
  counters: {
@@ -1612,11 +1621,15 @@ export interface DevCommandResultFailure {
1612
1621
  code: number | null;
1613
1622
  output: string;
1614
1623
  }
1615
- export type ValidateCommandResult = ValidateCommandResultSuccess | ValidateCommandResultFailure;
1624
+ export type ValidateCommandResult = ValidateCommandResultSuccess | ValidateCommandResultAborted | ValidateCommandResultFailure;
1616
1625
  export interface ValidateCommandResultSuccess {
1617
1626
  status: "success";
1618
1627
  command: string | undefined;
1619
1628
  }
1629
+ export interface ValidateCommandResultAborted {
1630
+ status: "aborted";
1631
+ command: string | undefined;
1632
+ }
1620
1633
  export interface ValidateCommandResultFailure {
1621
1634
  status: "failure";
1622
1635
  command: string;
@@ -83,6 +83,10 @@ interface OrganizationSettings {
83
83
  enabled?: boolean;
84
84
  };
85
85
  disableFigmaImageUpload?: boolean;
86
+ enableTicketAssessment?: boolean;
87
+ ticketAssessmentPrompt?: string;
88
+ ticketAssessmentModel?: string;
89
+ ticketAssessmentDailyLimit?: number;
86
90
  }
87
91
  interface RoleOptions {
88
92
  read?: boolean;
@@ -181,6 +185,15 @@ export interface AiCreditsOverage {
181
185
  maxAllowedAiCredits: number;
182
186
  annualPrice: number;
183
187
  }
188
+ /**
189
+ * Information about AI credits that have been rolled over from previous billing periods
190
+ */
191
+ export interface AiCreditsRolloverInfo {
192
+ /** Number of AI credits rolled over from the previous billing period */
193
+ aiCreditsRolledOver?: number;
194
+ /** Timestamp when the credits were rolled over in milliseconds */
195
+ rolloverTimestamp?: number;
196
+ }
184
197
  export type PaymentError = "failed" | "unpaid" | "incomplete" | "incomplete_expired";
185
198
  export interface CustomPlan extends SubscriptionInfo {
186
199
  organizationId: string;
@@ -271,6 +284,13 @@ export interface FeatureMap {
271
284
  performanceInfrastructure?: boolean;
272
285
  previewPasswordProtection?: boolean;
273
286
  publicPreviews?: boolean;
287
+ privacyMode?: boolean;
288
+ usageInsights?: boolean;
289
+ designSystemIntelligence?: boolean;
290
+ gitProviderConnections?: boolean;
291
+ enterpriseGitProviders?: boolean;
292
+ agentCreditsRollover?: boolean;
293
+ selfHostedGitProviders?: boolean;
274
294
  }
275
295
  export interface SubscriptionInfo {
276
296
  price?: number;
@@ -281,7 +301,7 @@ export interface SubscriptionInfo {
281
301
  annualPrice?: number;
282
302
  annualDiscount?: number;
283
303
  isAnnual?: boolean;
284
- name: "free" | "development" | "basic" | "growth" | "enterprise" | "internal" | "partner" | "poc" | "legacy" | "pro";
304
+ name: "free" | "development" | "basic" | "growth" | "enterprise" | "internal" | "partner" | "poc" | "legacy" | "pro" | "team";
285
305
  limits: Limits;
286
306
  features: FeatureMap;
287
307
  trialDays?: number;
@@ -302,13 +322,17 @@ export interface SubscriptionInfo {
302
322
  useLegacyCreditsPlan?: boolean;
303
323
  currentBillingPeriodStart?: number;
304
324
  currentBillingPeriodEnd?: number;
325
+ downgradedAt?: number;
326
+ aiCreditsRolloverInfo?: AiCreditsRolloverInfo;
305
327
  upcomingLimits?: {
306
- effectiveDate: number;
328
+ effectiveDate?: number;
307
329
  users?: number;
308
330
  bandwidth?: number;
309
331
  pageviews?: number;
310
332
  aiCredits?: number;
333
+ upcomingSubscription?: string;
311
334
  };
335
+ subscriptionStatus?: string;
312
336
  }
313
337
  export type Subscription = keyof SubscriptionInfoMap;
314
338
  export interface SubscriptionInfoMap {
@@ -361,6 +385,9 @@ export interface SubscriptionInfoMap {
361
385
  "vcp:v1:enterprise": SubscriptionInfo;
362
386
  "vcp:v2:level1": SubscriptionInfo;
363
387
  "vcp:v2:level2": SubscriptionInfo;
388
+ "vcp:v3:level1": SubscriptionInfo;
389
+ "vcp:v3:level2": SubscriptionInfo;
390
+ "vcp:v3:level3": SubscriptionInfo;
364
391
  "shopify:v1:level1": SubscriptionInfo;
365
392
  "shopify:v1:level2": SubscriptionInfo;
366
393
  "shopify:v2:level1": SubscriptionInfo;