@builder.io/ai-utils 0.23.0 → 0.23.2

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.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -333,6 +333,14 @@ export interface ReportUIIssueToolInput {
333
333
  description: string;
334
334
  debugInfo?: string;
335
335
  }
336
+ export interface ReportIssueToolInput {
337
+ file_path: string;
338
+ line: number;
339
+ start_line?: number;
340
+ title: string;
341
+ severity: "high" | "medium";
342
+ body: string;
343
+ }
336
344
  export interface CodeGenToolMap {
337
345
  view_path: ReadToolInput;
338
346
  glob_search: GlobSearchToolInput;
@@ -384,6 +392,7 @@ export interface CodeGenToolMap {
384
392
  UpdateSetupValue: UpdateSetupValueToolInput;
385
393
  ResolveQAComments: ResolveQACommentsToolInput;
386
394
  ReportUIIssue: ReportUIIssueToolInput;
395
+ ReportIssue: ReportIssueToolInput;
387
396
  VerifyInstallCommand: VerifyInstallCommandToolInput;
388
397
  VerifyDevServer: VerifyDevServerToolInput;
389
398
  VerifyValidationScript: VerifyValidationScriptToolInput;
@@ -1347,6 +1356,8 @@ export interface FusionConfig {
1347
1356
  branchName?: string;
1348
1357
  sessionId?: string;
1349
1358
  browserAutomationInstructions?: string;
1359
+ /** Whether this branch is for a code review - affects enabled agents and tools */
1360
+ branchType?: "code-review";
1350
1361
  featureBranch?: string;
1351
1362
  aiBranch?: string;
1352
1363
  /** Whether this is a fork PR - affects git operations (read-only, can't push) */
@@ -1452,6 +1463,8 @@ export interface FusionConfig {
1452
1463
  * Errors matching these patterns will not show the error popup.
1453
1464
  */
1454
1465
  errorIgnorePatterns?: string[];
1466
+ /** When true, sync the git working tree to the latest remote state during init */
1467
+ syncBranch?: boolean;
1455
1468
  /**
1456
1469
  * Maximum number of agent completions before pausing to ask the user to continue.
1457
1470
  * Read from project settings, with fallback to organization/space settings.
@@ -1486,7 +1499,7 @@ export interface LoadHistoryResult {
1486
1499
  updatedUnixTime: number;
1487
1500
  turns: CodegenTurn[];
1488
1501
  }
1489
- export type InitStateStep = "initial" | "init" | "validation" | "check-directories" | "create-directories" | "configure-git-repos" | "check-existing-git" | "update-remote-url" | "clone-repo" | "apply-partial-backup" | "configure-git-user" | "stash-changes" | "collect-repo-info" | "init-success" | "init-command" | "init-failed";
1502
+ export type InitStateStep = "initial" | "init" | "validation" | "check-directories" | "create-directories" | "configure-git-repos" | "check-existing-git" | "update-remote-url" | "clone-repo" | "apply-partial-backup" | "configure-git-user" | "stash-changes" | "collect-repo-info" | "init-success" | "init-command" | "init-failed" | "snapshot-git-sync";
1490
1503
  export interface InitStatusLog {
1491
1504
  id: number;
1492
1505
  timestamp: string;
@@ -197,7 +197,7 @@ export interface AiCreditsRolloverInfo {
197
197
  }
198
198
  export type PaymentError = "failed" | "unpaid" | "incomplete" | "incomplete_expired";
199
199
  export interface CustomPlan extends SubscriptionInfo {
200
- organizationId: string;
200
+ ownerId: string;
201
201
  plan: keyof SubscriptionInfoMap;
202
202
  id: string;
203
203
  }
package/src/projects.d.ts CHANGED
@@ -236,7 +236,7 @@ export interface GitBackupUploadUrlOptions {
236
236
  contentMd5: string;
237
237
  }
238
238
  export interface GitBackupDownloadUrlOptions {
239
- spaceId: string;
239
+ ownerId: string;
240
240
  projectId: string;
241
241
  branchName: string;
242
242
  partial: boolean;
@@ -343,6 +343,8 @@ export interface PartialBranchData {
343
343
  checkoutBranch?: string | null;
344
344
  /** Whether this branch is for a fork PR - affects git operations (read-only, can't push) */
345
345
  isFork?: boolean | null;
346
+ /** Whether this branch is for a code review - affects enabled agents and tools*/
347
+ type?: "code-review" | null;
346
348
  cloneFrom?: {
347
349
  projectId: string;
348
350
  branchName: string;
@@ -452,6 +454,8 @@ interface BranchSharedData {
452
454
  screenshot?: string | null;
453
455
  /** Screenshots indexed by normalized href (without query params, fragments, protocol) */
454
456
  screenshots?: Record<string, string>;
457
+ /** Whether this branch is for a code review - affects enabled agents and tools */
458
+ type?: "code-review" | null;
455
459
  }
456
460
  /**
457
461
  * fields that are required in the new branch format, but optional in the legacy branch format.
@@ -600,6 +604,7 @@ export interface Project {
600
604
  enabled: boolean;
601
605
  instructions?: string;
602
606
  };
607
+ createSnapshot?: boolean;
603
608
  postMergeMemories?: boolean;
604
609
  commitInstructions?: string;
605
610
  maxAgentCompletions?: number;
@@ -691,4 +696,16 @@ export interface CreateProjectOptions {
691
696
  isExample?: boolean;
692
697
  templateId?: string;
693
698
  }
699
+ export interface BuilderMyContext {
700
+ success: boolean;
701
+ projectId: string;
702
+ branchName: string;
703
+ branchId: string | null;
704
+ organizationId: string | null;
705
+ isEnterprise: boolean;
706
+ passwordProtection: {
707
+ enabled: boolean;
708
+ };
709
+ error?: string;
710
+ }
694
711
  export {};