builder.io 1.10.7 → 1.10.9

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.
@@ -4,7 +4,7 @@ import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CustomInstruction, F
4
4
  import prettier from "prettier";
5
5
  import { type FusionContext, type ToolResolution } from "./code-tools";
6
6
  import EventEmitter from "node:events";
7
- import { type RunGitOptions } from "./utils/git";
7
+ import { type RunCommandOptions } from "./utils/git";
8
8
  export interface SessionContext {
9
9
  sessionId: string;
10
10
  turns: CodegenTurn[];
@@ -75,6 +75,7 @@ export declare class CodeGenSession {
75
75
  error: string;
76
76
  details: string;
77
77
  }>;
78
+ zipFolder(folderName: string): Promise<string>;
78
79
  archiveProject(): Promise<string>;
79
80
  isIdle(): boolean;
80
81
  needsBackup(): Promise<boolean>;
@@ -117,7 +118,7 @@ export declare class CodeGenSession {
117
118
  * Get the AI branch name
118
119
  */
119
120
  getAiBranch(): string;
120
- git(args: string[], opts?: string | RunGitOptions): Promise<string>;
121
+ git(args: string[], opts?: string | RunCommandOptions): Promise<string>;
121
122
  /**
122
123
  * Helper to run git commands
123
124
  */
@@ -128,7 +129,8 @@ export declare class CodeGenSession {
128
129
  setDebug(debug: boolean): void;
129
130
  getAllFiles(options?: {
130
131
  getDotFiles?: boolean;
131
- pattern?: string;
132
+ globbyPattern?: string;
133
+ includePattern?: string;
132
134
  }): Promise<string[]>;
133
135
  getSessionId(): string;
134
136
  getSpaceId(): string | undefined;
@@ -1,11 +1,10 @@
1
1
  import type { DevToolsSys } from "types";
2
- export interface RunGitOptions {
3
- exec?: string;
2
+ export interface RunCommandOptions {
4
3
  cwd?: string;
5
4
  debug?: boolean;
6
5
  sys: DevToolsSys;
7
6
  timeout?: number;
8
7
  stdin?: string;
9
8
  }
10
- export declare function runGit(args: string[], opts: RunGitOptions): Promise<string>;
9
+ export declare function runCommand(cmd: string, args: string[], opts: RunCommandOptions): Promise<string>;
11
10
  export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;