@builder.io/ai-utils 0.3.15 → 0.3.17
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.ts +15 -0
package/package.json
CHANGED
package/src/codegen.ts
CHANGED
|
@@ -463,6 +463,20 @@ export interface GenerateCompletionStepState {
|
|
|
463
463
|
newState: GenerateCompletionState;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
+
export interface GenerateCompletionStepGit {
|
|
467
|
+
type: "git";
|
|
468
|
+
isSessionDirty: boolean;
|
|
469
|
+
remoteBranchExists: boolean;
|
|
470
|
+
canPush: boolean;
|
|
471
|
+
canPull: boolean;
|
|
472
|
+
canSync: boolean;
|
|
473
|
+
ahead: number;
|
|
474
|
+
behind: number;
|
|
475
|
+
currentCommit: string;
|
|
476
|
+
currentBranch: string;
|
|
477
|
+
remoteBranch: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
466
480
|
export interface GenerateCompletionStepClose {
|
|
467
481
|
type: "close";
|
|
468
482
|
}
|
|
@@ -512,6 +526,7 @@ export type GenerateCompletionStep = { timestamp?: number } & (
|
|
|
512
526
|
| GenerateCompletionStepStdio
|
|
513
527
|
| GenerateCompletionStepSession
|
|
514
528
|
| GenerateCompletionStepServerToolResult
|
|
529
|
+
| GenerateCompletionStepGit
|
|
515
530
|
| GenerateCompletionStepToolResult
|
|
516
531
|
);
|
|
517
532
|
|