builder.io 1.11.1 → 1.11.2

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.
@@ -16,6 +16,7 @@ interface BackupGitRepoOptions {
16
16
  */
17
17
  isConnectedToProvider: boolean;
18
18
  debug: boolean;
19
+ forcedFullBackup: boolean;
19
20
  }
20
21
  /**
21
22
  * Creates a backup of git repository changes made by the AI system.
@@ -29,12 +30,12 @@ interface BackupGitRepoOptions {
29
30
  * The aiBranch is where the AI creates commits as work progresses, while featureBranch
30
31
  * is the base branch where work started (usually "main").
31
32
  */
32
- export declare function backupGitRepo({ sys, credentials, projectId, branchName, repoPath, aiBranch, featureBranch, workspace, isConnectedToProvider, debug, }: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
33
- interface InitialCommitHashResult {
33
+ export declare function backupGitRepo({ sys, credentials, projectId, branchName, repoPath, aiBranch, featureBranch, workspace, isConnectedToProvider, debug, forcedFullBackup, }: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
34
+ type InitialCommitHashResult = {
34
35
  initialBranch: string;
35
36
  initialCommitHash: string;
36
37
  partial: boolean;
37
- }
38
+ };
38
39
  /**
39
40
  * Determines the initial commit hash and whether to create a partial or full backup.
40
41
  *
@@ -45,13 +46,14 @@ interface InitialCommitHashResult {
45
46
  * For partial backups, we fetch the latest state of the chosen upstream branch from origin
46
47
  * to ensure the backup has the correct commit range reference.
47
48
  */
48
- export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, }: {
49
+ export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, }: {
49
50
  sys: DevToolsSys;
50
51
  repoPath: string;
51
52
  featureBranch: string;
52
53
  debug: boolean;
53
54
  workspace: WorkspaceConfiguration | undefined;
54
55
  isConnectedToProvider: boolean;
56
+ forcedFullBackup?: boolean;
55
57
  }): Promise<InitialCommitHashResult>;
56
58
  /**
57
59
  * Requests a signed upload URL for git backup
@@ -111,7 +111,7 @@ export declare class CodeGenSession {
111
111
  /**
112
112
  * Get the current commit hash
113
113
  */
114
- getCurrentCommitHash(branchName?: string): Promise<string | undefined>;
114
+ getCurrentCommitHash(): Promise<string | undefined>;
115
115
  getCurrentBranch(): Promise<string>;
116
116
  /**
117
117
  * Get the feature branch name
@@ -24,7 +24,18 @@ export declare class InitStateMachine {
24
24
  checkout(branchName: string, ref: string, repoPath: string): Promise<boolean>;
25
25
  execAsync(exec: string, args: string[], cwd?: string): Promise<string>;
26
26
  git(args: string[], cwd?: string): Promise<string>;
27
- performOfflineBackup(sys: DevToolsSys, credentials: Credentials, fusionConfig: FusionConfig, volumePath: string, repositories: Required<WorkspaceFolder>[]): Promise<void>;
27
+ performBackup({ sys, credentials, fusionConfig, volumePath, repositories, isConnectedToProvider, forcedFullBackup, }: {
28
+ sys: DevToolsSys;
29
+ credentials: Credentials;
30
+ fusionConfig: FusionConfig;
31
+ volumePath: string;
32
+ repositories: Required<WorkspaceFolder>[];
33
+ isConnectedToProvider: boolean;
34
+ forcedFullBackup: boolean;
35
+ }): Promise<void>;
36
+ performRegularBackup(args: Omit<Parameters<typeof this.performBackup>[0], "isConnectedToProvider" | "forcedFullBackup">): Promise<void>;
37
+ performOfflineBackup(args: Omit<Parameters<typeof this.performBackup>[0], "isConnectedToProvider" | "forcedFullBackup">): Promise<void>;
38
+ performForcedFullBackup(args: Omit<Parameters<typeof this.performBackup>[0], "isConnectedToProvider" | "forcedFullBackup">): Promise<void>;
28
39
  init(): Promise<boolean>;
29
40
  addInitLog(type: "status" | "log" | "error" | "complete", message: string, options?: {
30
41
  step?: InitStateStep;
@@ -4,9 +4,10 @@ export declare const getCommandWithShellArgs: (command: string, shell: string) =
4
4
  export declare const isInRemoteContainer: () => boolean;
5
5
  export declare const getVolumePath: (fusionConfig: FusionConfig) => string;
6
6
  export declare function computeAIBranchName(featureBranch: string, sessionId: string): string;
7
- export declare const getAndParseGitRepoInfo: ({ sys, gitWorkingDirectory, }: {
7
+ export declare const getAndParseGitRepoInfo: ({ sys, gitWorkingDirectory, strict, }: {
8
8
  sys: DevToolsSys;
9
9
  gitWorkingDirectory: string;
10
+ strict: boolean;
10
11
  }) => Promise<{
11
12
  currentBranch: string;
12
13
  featureBranch: string;