builder.io 1.11.39 → 1.11.40

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.
@@ -53,7 +53,7 @@ type InitialCommitHashResult = {
53
53
  * For partial backups, we fetch the latest state of the chosen upstream branch from origin
54
54
  * to ensure the backup has the correct commit range reference.
55
55
  */
56
- export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, }: {
56
+ export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, credentials, projectId, }: {
57
57
  sys: DevToolsSys;
58
58
  repoPath: string;
59
59
  featureBranch: string;
@@ -61,6 +61,8 @@ export declare function getInitialCommitHash({ sys, repoPath, featureBranch, deb
61
61
  workspace: WorkspaceConfiguration | undefined;
62
62
  isConnectedToProvider: boolean;
63
63
  forcedFullBackup: boolean;
64
+ credentials: Credentials;
65
+ projectId: string;
64
66
  }): Promise<InitialCommitHashResult>;
65
67
  /**
66
68
  * Requests a signed upload URL for git backup
@@ -60,6 +60,7 @@ export declare class InitStateMachine {
60
60
  */
61
61
  private restoreFromPartialBackup;
62
62
  private initializeGitRepo;
63
+ private refreshRepoConfig;
63
64
  cloneRepository({ repo, repoPath, backupResult, }: {
64
65
  repo: Required<WorkspaceFolder>;
65
66
  repoPath: string;
@@ -1,4 +1,6 @@
1
1
  import type { DevToolsSys } from "types";
2
+ import type { Credentials } from "../credentials";
3
+ import type { GitConfigs } from "$/ai-utils";
2
4
  export interface RunCommandOptions {
3
5
  cwd?: string;
4
6
  debug?: boolean;
@@ -7,5 +9,14 @@ export interface RunCommandOptions {
7
9
  stdin?: string;
8
10
  retry?: number;
9
11
  }
12
+ type FetchGitConfigsResult = {
13
+ success: true;
14
+ gitConfigs: GitConfigs;
15
+ } | {
16
+ success: false;
17
+ error: Error;
18
+ };
10
19
  export declare function runCommand(cmd: string, args: string[], opts: RunCommandOptions): Promise<string>;
11
20
  export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;
21
+ export declare function fetchGitConfigs(credentials: Credentials, projectId: string): Promise<FetchGitConfigsResult>;
22
+ export {};