@builder.io/ai-utils 0.5.12 → 0.5.13
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 +36 -1
- package/src/projects.d.ts +3 -7
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -710,6 +710,40 @@ export interface GenerateCodeEventEditorAILoadingState {
|
|
|
710
710
|
filePath?: string;
|
|
711
711
|
}
|
|
712
712
|
export type CommitMode = "commits" | "draft-prs" | "prs";
|
|
713
|
+
export interface GitBackupDownloadUrlResult {
|
|
714
|
+
signedUrl: string;
|
|
715
|
+
filePath: string;
|
|
716
|
+
expiresAt: string;
|
|
717
|
+
exists: boolean;
|
|
718
|
+
partial: boolean;
|
|
719
|
+
}
|
|
720
|
+
export interface BranchBackup {
|
|
721
|
+
at: number;
|
|
722
|
+
size: number;
|
|
723
|
+
gitBranchName: string;
|
|
724
|
+
initialCommitHash: string;
|
|
725
|
+
lastCommitHash: string;
|
|
726
|
+
partial: boolean;
|
|
727
|
+
status: "initiated" | "completed";
|
|
728
|
+
contentMd5: string;
|
|
729
|
+
}
|
|
730
|
+
export interface CheckBackupDataResultValid {
|
|
731
|
+
hasValidBackup: true;
|
|
732
|
+
outcome: "valid";
|
|
733
|
+
message: string;
|
|
734
|
+
backup: BranchBackup;
|
|
735
|
+
}
|
|
736
|
+
export interface CheckBackupDataResultInvalid {
|
|
737
|
+
hasValidBackup: false;
|
|
738
|
+
outcome: "valid" | "no-backup" | "hash-mismatch" | "error" | "not-completed" | "no-session-id" | "no-last-commit-hash" | "no-backup-file" | "no-vcpCodeGenEvent" | "no-after-commit" | "no-signed-url" | "no-git-branch-name";
|
|
739
|
+
message: string;
|
|
740
|
+
backup: BranchBackup | undefined;
|
|
741
|
+
}
|
|
742
|
+
export type CheckBackupDataResult = CheckBackupDataResultValid | CheckBackupDataResultInvalid;
|
|
743
|
+
export interface BackupMetadata {
|
|
744
|
+
check: CheckBackupDataResultValid;
|
|
745
|
+
downloadUrl: GitBackupDownloadUrlResult;
|
|
746
|
+
}
|
|
713
747
|
export interface WorkspaceFolder {
|
|
714
748
|
enableGit?: boolean;
|
|
715
749
|
path: string;
|
|
@@ -717,6 +751,7 @@ export interface WorkspaceFolder {
|
|
|
717
751
|
repoUrl?: string;
|
|
718
752
|
repoName?: string;
|
|
719
753
|
branchName?: string;
|
|
754
|
+
backupMetadata?: BackupMetadata;
|
|
720
755
|
}
|
|
721
756
|
export interface WorkspaceConfiguration {
|
|
722
757
|
agentsMD?: string;
|
|
@@ -804,7 +839,7 @@ export interface LoadHistoryResult {
|
|
|
804
839
|
updatedUnixTime: number;
|
|
805
840
|
turns: CodegenTurn[];
|
|
806
841
|
}
|
|
807
|
-
export type InitStateStep = "initial" | "init" | "validation" | "check-directories" | "create-directories" | "configure-git-repos" | "check-existing-git" | "update-remote-url" | "clone-repo" | "configure-git-user" | "stash-changes" | "collect-repo-info" | "init-success" | "init-failed";
|
|
842
|
+
export type InitStateStep = "initial" | "init" | "validation" | "check-directories" | "create-directories" | "configure-git-repos" | "check-existing-git" | "update-remote-url" | "clone-repo" | "apply-partial-backup" | "configure-git-user" | "stash-changes" | "collect-repo-info" | "init-success" | "init-failed";
|
|
808
843
|
export interface InitStatusLog {
|
|
809
844
|
id: number;
|
|
810
845
|
timestamp: string;
|
package/src/projects.d.ts
CHANGED
|
@@ -170,15 +170,10 @@ export interface GitBackupUploadUrlOptions {
|
|
|
170
170
|
initialCommitHash: string;
|
|
171
171
|
lastCommitHash: string;
|
|
172
172
|
partial: boolean;
|
|
173
|
-
|
|
174
|
-
export interface GitBackupDownloadUrlResult {
|
|
175
|
-
signedUrl: string;
|
|
176
|
-
filePath: string;
|
|
177
|
-
expiresAt: string;
|
|
178
|
-
exists: boolean;
|
|
179
|
-
partial: boolean;
|
|
173
|
+
contentMd5: string;
|
|
180
174
|
}
|
|
181
175
|
export interface GitBackupDownloadUrlOptions {
|
|
176
|
+
spaceId: string;
|
|
182
177
|
projectId: string;
|
|
183
178
|
branchName: string;
|
|
184
179
|
}
|
|
@@ -191,6 +186,7 @@ export interface GitBackupRecordOptions {
|
|
|
191
186
|
lastCommitHash: string;
|
|
192
187
|
partial: boolean;
|
|
193
188
|
status: "initiated" | "completed";
|
|
189
|
+
contentMd5: string;
|
|
194
190
|
}
|
|
195
191
|
export interface GitBackupRecordResult {
|
|
196
192
|
success: boolean;
|