builder.io 1.6.111 → 1.6.115

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.
@@ -14,14 +14,11 @@ export interface ToolResolution {
14
14
  }
15
15
  export interface FusionContext {
16
16
  devServerOrchestrator?: DevServerOrchestrator;
17
- checkCommand?: string;
18
- allowedCommands: RegExp[];
19
17
  commitMode: CommitMode;
20
18
  git: boolean;
21
19
  gitRemote?: string;
22
20
  gitAutoInit?: boolean;
23
21
  gitFeatureBranch?: string;
24
- projectId?: string;
25
22
  }
26
23
  export interface ToolContext extends Partial<FusionContext> {
27
24
  sys: DevToolsSys;
@@ -29,6 +26,7 @@ export interface ToolContext extends Partial<FusionContext> {
29
26
  emitter: CodeGenEventEmitter;
30
27
  signal: AbortSignal | undefined;
31
28
  workingDirectory: string;
29
+ allowedCommands: RegExp[];
32
30
  bashWorkingDirectory: string;
33
31
  resolveWorkspacePath: (path: string, forceWorkspace: boolean) => {
34
32
  resolvedPath: string;
@@ -73,6 +73,12 @@ export declare class CodeGenSession {
73
73
  details: string;
74
74
  }>;
75
75
  archiveProject(): Promise<string>;
76
+ uploadBackup(): Promise<{
77
+ success: boolean;
78
+ filePath: string;
79
+ expiresAt: string;
80
+ bundleSize: number;
81
+ }>;
76
82
  createPR(...args: [
77
83
  {
78
84
  repoFullName: string;
@@ -151,11 +157,12 @@ export declare class CodeGenSession {
151
157
  * @param dryRun If true, only simulate the restoration without making changes
152
158
  * @returns Array of file paths that were changed
153
159
  */
154
- restore({ location, predicate, dryRun, forceReplay, }: {
160
+ restore({ location, predicate, dryRun, forceReplay, debug, }: {
155
161
  location: "before" | "after";
156
162
  predicate: (turn: CodegenTurn | null, index: number) => boolean;
157
163
  dryRun?: boolean;
158
164
  forceReplay?: boolean;
165
+ debug?: string;
159
166
  }): Promise<string[] | null>;
160
167
  restoreHEAD(): Promise<string[] | null>;
161
168
  restoreAll(): Promise<string[] | null>;
@@ -189,7 +196,7 @@ export declare class CodeGenSession {
189
196
  abort(cleanCurrentMessage?: boolean): Promise<boolean>;
190
197
  stopEventLoop(): Promise<void>;
191
198
  requestRefresh(): void;
192
- close(): Promise<void>;
199
+ close(uploadGitBackup?: boolean): Promise<void>;
193
200
  emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
194
201
  manualCommit(options: {
195
202
  add: string;
@@ -1,5 +1,5 @@
1
1
  import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
- import type { FusionConfig, WorkspaceFolder } from "$/ai-utils";
2
+ import { type FusionConfig, type WorkspaceFolder } from "$/ai-utils";
3
3
  export interface InitConfig {
4
4
  fusionConfig: FusionConfig;
5
5
  sys: DevToolsSys;
@@ -7,6 +7,8 @@ export declare const PROXY_PORT = 48752;
7
7
  export interface LaunchArgs extends CLIArgs {
8
8
  /** Project ID for the dev server. Only needed when running in a remote container. */
9
9
  projectId?: string;
10
+ /** Branch name for the dev server. Only needed when running in a remote container. */
11
+ branchName?: string;
10
12
  /** Silent mode for launch command */
11
13
  silent?: boolean;
12
14
  /** Port number for the dev server */
@@ -0,0 +1,2 @@
1
+ export declare function registerSigTerm(): void;
2
+ export declare function unregisterSigTerm(): void;