@builder.io/ai-utils 0.36.0 → 0.37.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 +10 -0
- package/src/projects.d.ts +2 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -576,6 +576,12 @@ export interface ReadBranchToolInput {
|
|
|
576
576
|
projectId: string;
|
|
577
577
|
branchName: string;
|
|
578
578
|
}
|
|
579
|
+
export interface ArchiveBranchToolInput {
|
|
580
|
+
projectId: string;
|
|
581
|
+
branchName: string;
|
|
582
|
+
builderUserId: string;
|
|
583
|
+
reason?: string;
|
|
584
|
+
}
|
|
579
585
|
/** Comment for PR review - used by both SubmitPRReview and SubmitRecording */
|
|
580
586
|
export interface PRReviewComment {
|
|
581
587
|
file_path: string;
|
|
@@ -684,6 +690,7 @@ export interface CodeGenToolMap {
|
|
|
684
690
|
SendMessage: SendMessageToolInput;
|
|
685
691
|
SpawnBranch: SpawnBranchToolInput;
|
|
686
692
|
ReadBranch: ReadBranchToolInput;
|
|
693
|
+
ArchiveBranch: ArchiveBranchToolInput;
|
|
687
694
|
RunningAgents: RunningAgentsToolInput;
|
|
688
695
|
}
|
|
689
696
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
@@ -1352,6 +1359,7 @@ export interface GetSessionTurnsResult {
|
|
|
1352
1359
|
updatedUnixTime: number | undefined;
|
|
1353
1360
|
canLoadMore: boolean;
|
|
1354
1361
|
sessionMode?: SessionMode;
|
|
1362
|
+
hasPlanToApply?: boolean;
|
|
1355
1363
|
metadata?: Record<string, any>;
|
|
1356
1364
|
}
|
|
1357
1365
|
export interface CodegenFeedback {
|
|
@@ -1378,11 +1386,13 @@ export interface CodegenFinalize {
|
|
|
1378
1386
|
lastCommit?: GitSnapshot;
|
|
1379
1387
|
commitFailed?: boolean;
|
|
1380
1388
|
metadata?: Record<string, any>;
|
|
1389
|
+
hasPlanToApply?: boolean;
|
|
1381
1390
|
}
|
|
1382
1391
|
export interface CodegenSetLastCompletion {
|
|
1383
1392
|
sessionId: string;
|
|
1384
1393
|
lastCompletionId: string | undefined;
|
|
1385
1394
|
metadata?: Record<string, any>;
|
|
1395
|
+
hasPlanToApply?: boolean;
|
|
1386
1396
|
}
|
|
1387
1397
|
export interface GenerateCodeEventDone {
|
|
1388
1398
|
type: "done";
|
package/src/projects.d.ts
CHANGED
|
@@ -466,6 +466,8 @@ export interface BranchSharedData {
|
|
|
466
466
|
metadata?: BranchMetadata;
|
|
467
467
|
memoriesExtracted?: boolean;
|
|
468
468
|
needsCleanup?: boolean;
|
|
469
|
+
/** Reason provided when archiving the branch (optional, max 500 chars) */
|
|
470
|
+
archiveReason?: string;
|
|
469
471
|
/** @deprecated Use `state` field instead. Kept for backwards compatibility. */
|
|
470
472
|
deleted?: boolean;
|
|
471
473
|
/** MIGRATION: accepts both string and number during migration period */
|