@builder.io/ai-utils 0.17.3 → 0.18.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 +23 -0
- package/src/organization.d.ts +32 -0
- package/src/projects.d.ts +2 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -211,6 +211,24 @@ export interface RecordFrameToolInput {
|
|
|
211
211
|
title: string;
|
|
212
212
|
frame: "last-image";
|
|
213
213
|
}
|
|
214
|
+
export interface AddQAReviewComment {
|
|
215
|
+
file_path: string;
|
|
216
|
+
line: number;
|
|
217
|
+
title: string;
|
|
218
|
+
body: string;
|
|
219
|
+
severity: "critical" | "warning" | "info";
|
|
220
|
+
debugInfo?: string;
|
|
221
|
+
}
|
|
222
|
+
export interface AddQAReviewToolInput {
|
|
223
|
+
summary: string;
|
|
224
|
+
comments?: AddQAReviewComment[];
|
|
225
|
+
gif_id: string;
|
|
226
|
+
}
|
|
227
|
+
export interface ReportUIIssueToolInput {
|
|
228
|
+
title: string;
|
|
229
|
+
description: string;
|
|
230
|
+
debugInfo?: string;
|
|
231
|
+
}
|
|
214
232
|
export interface CodeGenToolMap {
|
|
215
233
|
view_path: ReadToolInput;
|
|
216
234
|
glob_search: GlobSearchToolInput;
|
|
@@ -254,6 +272,8 @@ export interface CodeGenToolMap {
|
|
|
254
272
|
ExitPlanMode: ExitPlanModeToolInput;
|
|
255
273
|
ReadMcpResource: ReadMcpResourceToolInput;
|
|
256
274
|
RecordFrame: RecordFrameToolInput;
|
|
275
|
+
AddQAReview: AddQAReviewToolInput;
|
|
276
|
+
ReportUIIssue: ReportUIIssueToolInput;
|
|
257
277
|
}
|
|
258
278
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
259
279
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
@@ -751,6 +771,7 @@ export type UserSourcePermission = "editCode" | "modifyMcpServers" | "modifyProj
|
|
|
751
771
|
export interface UserSourceBase {
|
|
752
772
|
role: "user" | "agent";
|
|
753
773
|
principals?: string[];
|
|
774
|
+
jobs?: string[];
|
|
754
775
|
permissions?: UserSourcePermission[];
|
|
755
776
|
}
|
|
756
777
|
export interface UserSourceOther extends UserSourceBase {
|
|
@@ -817,6 +838,8 @@ export interface GenerateUserMessage {
|
|
|
817
838
|
enabledMCPs?: string[];
|
|
818
839
|
sessionMode?: SessionMode;
|
|
819
840
|
queue?: boolean;
|
|
841
|
+
/** Enable AddQAReview tool for QA PR review branches */
|
|
842
|
+
enableQAReviewTool?: boolean;
|
|
820
843
|
/** @deprecated */
|
|
821
844
|
repair?: boolean;
|
|
822
845
|
}
|
package/src/organization.d.ts
CHANGED
|
@@ -24,6 +24,36 @@ export interface GitlabCloudFallbackToken {
|
|
|
24
24
|
createdBy: string;
|
|
25
25
|
createdAt: number;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Public metadata for Azure fallback token (stored in organizations collection).
|
|
29
|
+
*/
|
|
30
|
+
export interface AzureCloudFallbackToken {
|
|
31
|
+
configured: boolean;
|
|
32
|
+
organization: string;
|
|
33
|
+
createdBy: string;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Public metadata for Bitbucket fallback token (stored in organizations collection).
|
|
38
|
+
*/
|
|
39
|
+
export interface BitbucketCloudFallbackToken {
|
|
40
|
+
configured: boolean;
|
|
41
|
+
username: string;
|
|
42
|
+
email: string;
|
|
43
|
+
createdBy: string;
|
|
44
|
+
createdAt: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Private fallback tokens stored in organizations_private collection.
|
|
48
|
+
*/
|
|
49
|
+
export interface FallbackTokensPrivate {
|
|
50
|
+
azure?: {
|
|
51
|
+
token: string;
|
|
52
|
+
};
|
|
53
|
+
bitbucket?: {
|
|
54
|
+
token: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
27
57
|
interface OrganizationSettings {
|
|
28
58
|
attribution?: string[];
|
|
29
59
|
visualEditorAiStyleInspirationURL?: string;
|
|
@@ -39,6 +69,8 @@ interface OrganizationSettings {
|
|
|
39
69
|
githubEnterpriseSetupValue?: GithubEnterpriseSetupValue;
|
|
40
70
|
gitlabEnterprisePAT?: GitlabEnterprisePATValue;
|
|
41
71
|
gitlabCloudFallbackToken?: GitlabCloudFallbackToken;
|
|
72
|
+
azureCloudFallbackToken?: AzureCloudFallbackToken;
|
|
73
|
+
bitbucketCloudFallbackToken?: BitbucketCloudFallbackToken;
|
|
42
74
|
bitbucketEnterprisePAT?: BitbucketEnterprisePAT;
|
|
43
75
|
useProxy?: boolean;
|
|
44
76
|
fusionShareableUrlSuffix?: string;
|
package/src/projects.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FileOverride, EnvironmentVariable, LaunchServerState, LaunchServerStatus, BranchBackup, CommitMode, CustomInstruction, CustomAgentDefinition } from "./codegen";
|
|
2
|
+
import type { FallbackTokensPrivate } from "./organization";
|
|
2
3
|
/**
|
|
3
4
|
* Temporary type for date fields during migration.
|
|
4
5
|
* Handles both old (string) and new (number) formats.
|
|
@@ -583,6 +584,7 @@ export interface OrganizationPrivate {
|
|
|
583
584
|
}[];
|
|
584
585
|
createdAt: number;
|
|
585
586
|
updatedAt: number;
|
|
587
|
+
fallbackTokens?: FallbackTokensPrivate;
|
|
586
588
|
}
|
|
587
589
|
export interface CreateProjectOptions {
|
|
588
590
|
name?: string;
|