builder.io 1.11.39 → 1.11.41

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
@@ -1,5 +1,6 @@
1
1
  import type { DevToolsSys } from "../types";
2
2
  import type { CLIArgs } from "./index";
3
+ import type { Feature } from "$/ai-utils";
3
4
  export interface CredentialsOptions {
4
5
  forceSpaceId?: string;
5
6
  builderPublicKey?: boolean;
@@ -11,7 +12,6 @@ export interface FigmaAuth {
11
12
  access_token: string;
12
13
  oauth: boolean;
13
14
  }
14
- export type Feature = "component-mapping";
15
15
  export interface BuilderCodegenUsage {
16
16
  total: number | undefined;
17
17
  fast: number | undefined;
@@ -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,5 +1,5 @@
1
1
  import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
- import { type RequestHandler as ProxyRequestHandler } from "http-proxy-middleware";
2
+ import type { ProxyMiddleware } from "../../types/proxy-middleware";
3
3
  import type { DevCommandState, EnvironmentVariable, HttpServerState } from "$/ai-utils";
4
4
  import EventEmitter from "events";
5
5
  import { ChildProcess } from "node:child_process";
@@ -22,7 +22,7 @@ export interface DevServerOrchestrator {
22
22
  proxyPort: number;
23
23
  environmentVariables: EnvironmentVariable[];
24
24
  envVars: Record<string, string>;
25
- proxyMiddleware: ProxyRequestHandler | undefined;
25
+ proxyMiddleware: ProxyMiddleware | undefined;
26
26
  pid: number | undefined;
27
27
  autoDetectedUrl: string | undefined;
28
28
  abortSetupCommand: () => void;
@@ -1,3 +1,3 @@
1
- import { type RequestHandler } from "http-proxy-middleware";
2
1
  import type { DevToolsSys } from "types";
3
- export declare const createProxy: (serverUrl: string, sys: DevToolsSys) => RequestHandler;
2
+ import type { ProxyMiddleware } from "../../types/proxy-middleware";
3
+ export declare const createProxy: (serverUrl: string, sys: DevToolsSys) => ProxyMiddleware;
@@ -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 {};