@builder.io/ai-utils 0.19.0 → 0.20.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 +1 -1
- package/src/codegen.d.ts +43 -7
- package/src/projects.d.ts +10 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -301,21 +301,28 @@ export interface VerifyRuntimeDependencyToolInput {
|
|
|
301
301
|
version: string;
|
|
302
302
|
source?: string;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
/** Comment for PR review - used by both SubmitPRReview and SubmitRecording */
|
|
305
|
+
export interface PRReviewComment {
|
|
305
306
|
file_path: string;
|
|
306
307
|
line: number;
|
|
307
308
|
start_line?: number;
|
|
308
309
|
title: string;
|
|
309
310
|
body: string;
|
|
310
|
-
severity: "high" | "medium"
|
|
311
|
+
severity: "high" | "medium";
|
|
311
312
|
debugInfo?: string;
|
|
312
313
|
gif_id?: string;
|
|
313
314
|
}
|
|
314
|
-
|
|
315
|
+
/** SubmitPRReview - Fast code review without recording */
|
|
316
|
+
export interface SubmitPRReviewToolInput {
|
|
315
317
|
summary: string;
|
|
316
|
-
comments?:
|
|
318
|
+
comments?: PRReviewComment[];
|
|
319
|
+
}
|
|
320
|
+
/** SubmitRecording - Visual verification with recording (posted as separate review) */
|
|
321
|
+
export interface SubmitRecordingToolInput {
|
|
317
322
|
gif_id: string;
|
|
318
|
-
recording_caption
|
|
323
|
+
recording_caption: string;
|
|
324
|
+
summary?: string;
|
|
325
|
+
comments?: PRReviewComment[];
|
|
319
326
|
}
|
|
320
327
|
export interface ResolveQACommentsToolInput {
|
|
321
328
|
thread_node_ids: string[];
|
|
@@ -370,9 +377,10 @@ export interface CodeGenToolMap {
|
|
|
370
377
|
ExitPlanMode: ExitPlanModeToolInput;
|
|
371
378
|
ReadMcpResource: ReadMcpResourceToolInput;
|
|
372
379
|
RecordFrame: RecordFrameToolInput;
|
|
380
|
+
SubmitPRReview: SubmitPRReviewToolInput;
|
|
381
|
+
SubmitRecording: SubmitRecordingToolInput;
|
|
373
382
|
ProposeConfig: ProposeConfigToolInput;
|
|
374
383
|
UpdateSetupValue: UpdateSetupValueToolInput;
|
|
375
|
-
AddQAReview: AddQAReviewToolInput;
|
|
376
384
|
ResolveQAComments: ResolveQACommentsToolInput;
|
|
377
385
|
ReportUIIssue: ReportUIIssueToolInput;
|
|
378
386
|
VerifyInstallCommand: VerifyInstallCommandToolInput;
|
|
@@ -957,7 +965,7 @@ export interface GenerateUserMessage {
|
|
|
957
965
|
includeRelevantMemories?: boolean;
|
|
958
966
|
category?: CodeGenCategory;
|
|
959
967
|
metadata?: Record<string, any>;
|
|
960
|
-
autoPush?: "force-push" | "merge-push" | "ff-push" | "none";
|
|
968
|
+
autoPush?: "force-push" | "merge-push" | "ff-push" | "safe-push" | "none";
|
|
961
969
|
syncChanges?: SyncChangesFromRemote;
|
|
962
970
|
enabledMCPs?: string[];
|
|
963
971
|
sessionMode?: SessionMode;
|
|
@@ -1593,6 +1601,10 @@ export interface PushChangesOptions {
|
|
|
1593
1601
|
};
|
|
1594
1602
|
/** If specified, only push changes for this folder (multi-repo support) */
|
|
1595
1603
|
folderName?: string;
|
|
1604
|
+
/** If true, abort and clean up if merge conflict is detected during pull */
|
|
1605
|
+
abortOnMergeConflict?: boolean;
|
|
1606
|
+
/** If true, verify fast-forward is possible before pushing, fail if not */
|
|
1607
|
+
requireFastForward?: boolean;
|
|
1596
1608
|
}
|
|
1597
1609
|
export interface SyncChangesFromRemote {
|
|
1598
1610
|
remoteBranches?: "both" | "main" | "ai";
|
|
@@ -1846,3 +1858,27 @@ export interface LaunchInitializeSessionOptions {
|
|
|
1846
1858
|
customInstructions?: CustomInstruction[];
|
|
1847
1859
|
privacyMode?: PrivacyMode;
|
|
1848
1860
|
}
|
|
1861
|
+
/**
|
|
1862
|
+
* Request for generating a commit message via LLM
|
|
1863
|
+
*/
|
|
1864
|
+
export interface CommitMessageRequest {
|
|
1865
|
+
/** Git diff from previous commit */
|
|
1866
|
+
diff: string;
|
|
1867
|
+
/** User messages sent during AI work */
|
|
1868
|
+
userMessages: string[];
|
|
1869
|
+
/** Last 10 commits from main branch for style reference */
|
|
1870
|
+
recentCommits: string[];
|
|
1871
|
+
/** Whether to generate a long commit message */
|
|
1872
|
+
longCommit?: boolean;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Response from commit message generation
|
|
1876
|
+
*/
|
|
1877
|
+
export interface CommitMessageResponse {
|
|
1878
|
+
/** Full commit message */
|
|
1879
|
+
message: string;
|
|
1880
|
+
/** First line (50-72 chars) - the commit title */
|
|
1881
|
+
title: string;
|
|
1882
|
+
/** Optional extended description */
|
|
1883
|
+
body?: string;
|
|
1884
|
+
}
|
package/src/projects.d.ts
CHANGED
|
@@ -272,7 +272,7 @@ export type FusionExecutionEnvironment = "containerized" | "container-less" | "c
|
|
|
272
272
|
export interface PartialBranchData {
|
|
273
273
|
name?: string;
|
|
274
274
|
createdBy: string;
|
|
275
|
-
friendlyName
|
|
275
|
+
friendlyName?: string;
|
|
276
276
|
isDefault: boolean;
|
|
277
277
|
isPublic: boolean;
|
|
278
278
|
lockedFusionEnvironment?: FusionExecutionEnvironment;
|
|
@@ -323,6 +323,13 @@ export interface BranchMetadata {
|
|
|
323
323
|
[key: string]: unknown;
|
|
324
324
|
}
|
|
325
325
|
export type PRStatus = "open" | "closed" | "merged" | "draft" | "approved";
|
|
326
|
+
export interface BranchReview {
|
|
327
|
+
userId: string;
|
|
328
|
+
status: "approved" | "changes_requested" | "commented" | "pending";
|
|
329
|
+
comment?: string | null;
|
|
330
|
+
createdAt: number;
|
|
331
|
+
updatedAt: number;
|
|
332
|
+
}
|
|
326
333
|
interface BranchSharedData {
|
|
327
334
|
appName?: string | null;
|
|
328
335
|
prNumber?: number | null;
|
|
@@ -348,6 +355,8 @@ interface BranchSharedData {
|
|
|
348
355
|
friendlyName?: string;
|
|
349
356
|
useHomeDir?: boolean;
|
|
350
357
|
useCloudHomeDir?: boolean;
|
|
358
|
+
reviewers?: string[] | null;
|
|
359
|
+
reviews?: BranchReview[] | null;
|
|
351
360
|
ipv4?: {
|
|
352
361
|
address: string | null;
|
|
353
362
|
allocated: boolean | null;
|