builder.io 1.11.3 → 1.11.5

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.
@@ -32,9 +32,15 @@ interface BackupGitRepoOptions {
32
32
  */
33
33
  export declare function backupGitRepo({ sys, credentials, projectId, branchName, repoPath, aiBranch, featureBranch, workspace, isConnectedToProvider, debug, forcedFullBackup, }: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
34
34
  type InitialCommitHashResult = {
35
+ initialBranch: string;
36
+ initialCommitHash: undefined;
37
+ partial: false;
38
+ forcedFullBackup: true;
39
+ } | {
35
40
  initialBranch: string;
36
41
  initialCommitHash: string;
37
42
  partial: boolean;
43
+ forcedFullBackup: false;
38
44
  };
39
45
  /**
40
46
  * Determines the initial commit hash and whether to create a partial or full backup.
@@ -53,7 +59,7 @@ export declare function getInitialCommitHash({ sys, repoPath, featureBranch, deb
53
59
  debug: boolean;
54
60
  workspace: WorkspaceConfiguration | undefined;
55
61
  isConnectedToProvider: boolean;
56
- forcedFullBackup?: boolean;
62
+ forcedFullBackup: boolean;
57
63
  }): Promise<InitialCommitHashResult>;
58
64
  /**
59
65
  * Requests a signed upload URL for git backup
@@ -132,7 +132,7 @@ export declare class CodeGenSession {
132
132
  setDebug(debug: boolean): void;
133
133
  getAllFiles(options?: {
134
134
  getDotFiles?: boolean;
135
- globbyPattern?: string;
135
+ globbyPattern?: string | string[];
136
136
  includePattern?: string;
137
137
  }): Promise<string[]>;
138
138
  getSessionId(): string;
@@ -213,6 +213,7 @@ export declare class CodeGenSession {
213
213
  toolFullfilment(id: string, result: ToolResolution | string): boolean;
214
214
  fulfillToolCall(id: string, result: ToolResolution): boolean;
215
215
  abortToolCall(id: string): boolean;
216
+ acceptCode(): Promise<void>;
216
217
  abort(cleanCurrentMessage?: boolean): Promise<boolean>;
217
218
  stopEventLoop(): Promise<void>;
218
219
  requestRefresh(): void;
@@ -90,6 +90,6 @@ export interface CLIArgs {
90
90
  index?: boolean;
91
91
  /** If true list indexed repositories */
92
92
  listIndexedRepos?: boolean;
93
- /** MCP support */
94
- mcpSupport?: boolean;
93
+ /** Disable MCP support */
94
+ disableMcp?: boolean;
95
95
  }
@@ -4,13 +4,3 @@ export declare const spinner: () => {
4
4
  message: (msg?: string) => void;
5
5
  extra: (msg?: string) => void;
6
6
  };
7
- export declare function block({ input, output, overwrite, hideCursor, }?: {
8
- input?: (NodeJS.ReadStream & {
9
- fd: 0;
10
- }) | undefined;
11
- output?: (NodeJS.WriteStream & {
12
- fd: 1;
13
- }) | undefined;
14
- overwrite?: boolean | undefined;
15
- hideCursor?: boolean | undefined;
16
- }): () => void;
@@ -4,7 +4,7 @@ export declare function extractSignatureInfo(content: string): {
4
4
  sessionKey?: string;
5
5
  snippetId?: string;
6
6
  };
7
- export declare function getAllProjectFiles(basePath: string, globPattern?: string, extraIgnorePatterns?: string[], getDotFiles?: boolean): Promise<string[]>;
7
+ export declare function getAllProjectFiles(basePath: string, globPatterns?: string | string[], extraIgnorePatterns?: string[], getDotFiles?: boolean): Promise<string[]>;
8
8
  export declare function findBuilderFiles(basePath: string, targetContentId: string, targetSessionKey: string): Promise<FileNode[]>;
9
9
  export declare function filterNonImportantFiles(files: string[]): string[];
10
10
  export declare function getIgnorePatterns(basePath: string): (path: string) => boolean;