@builder.io/ai-utils 0.23.0 → 0.23.1
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 +1 -1
- package/src/codegen.d.ts +10 -0
- package/src/organization.d.ts +1 -1
- package/src/projects.d.ts +17 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -333,6 +333,13 @@ 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
|
+
title: string;
|
|
340
|
+
severity: "high" | "medium";
|
|
341
|
+
body: string;
|
|
342
|
+
}
|
|
336
343
|
export interface CodeGenToolMap {
|
|
337
344
|
view_path: ReadToolInput;
|
|
338
345
|
glob_search: GlobSearchToolInput;
|
|
@@ -384,6 +391,7 @@ export interface CodeGenToolMap {
|
|
|
384
391
|
UpdateSetupValue: UpdateSetupValueToolInput;
|
|
385
392
|
ResolveQAComments: ResolveQACommentsToolInput;
|
|
386
393
|
ReportUIIssue: ReportUIIssueToolInput;
|
|
394
|
+
ReportIssue: ReportIssueToolInput;
|
|
387
395
|
VerifyInstallCommand: VerifyInstallCommandToolInput;
|
|
388
396
|
VerifyDevServer: VerifyDevServerToolInput;
|
|
389
397
|
VerifyValidationScript: VerifyValidationScriptToolInput;
|
|
@@ -1347,6 +1355,8 @@ export interface FusionConfig {
|
|
|
1347
1355
|
branchName?: string;
|
|
1348
1356
|
sessionId?: string;
|
|
1349
1357
|
browserAutomationInstructions?: string;
|
|
1358
|
+
/** Whether this branch is for a code review - affects enabled agents and tools */
|
|
1359
|
+
branchType?: "code-review";
|
|
1350
1360
|
featureBranch?: string;
|
|
1351
1361
|
aiBranch?: string;
|
|
1352
1362
|
/** Whether this is a fork PR - affects git operations (read-only, can't push) */
|
package/src/organization.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
@@ -691,4 +695,16 @@ export interface CreateProjectOptions {
|
|
|
691
695
|
isExample?: boolean;
|
|
692
696
|
templateId?: string;
|
|
693
697
|
}
|
|
698
|
+
export interface BuilderMyContext {
|
|
699
|
+
success: boolean;
|
|
700
|
+
projectId: string;
|
|
701
|
+
branchName: string;
|
|
702
|
+
branchId: string | null;
|
|
703
|
+
organizationId: string | null;
|
|
704
|
+
isEnterprise: boolean;
|
|
705
|
+
passwordProtection: {
|
|
706
|
+
enabled: boolean;
|
|
707
|
+
};
|
|
708
|
+
error?: string;
|
|
709
|
+
}
|
|
694
710
|
export {};
|