builder.io 1.6.118 → 1.6.120

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.
@@ -187,6 +187,7 @@ export declare class CodeGenSession {
187
187
  };
188
188
  sendFeedback(feedback: Partial<CodegenFeedback>): Promise<void>;
189
189
  lastTurnHasChanges(): Promise<boolean>;
190
+ waitUntilState(state: GenerateCompletionState, timeout?: number): Promise<void>;
190
191
  clearSession(): void;
191
192
  sendMessage(message: GenerateUserMessage, immediate?: boolean): Promise<void>;
192
193
  getTurns(): CodegenTurn[];
@@ -1,5 +1,5 @@
1
1
  import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
- import { type FusionConfig, type WorkspaceFolder } from "$/ai-utils";
2
+ import { type FusionConfig, type WorkspaceFolder, type InitState } from "$/ai-utils";
3
3
  export interface InitConfig {
4
4
  fusionConfig: FusionConfig;
5
5
  sys: DevToolsSys;
@@ -32,13 +32,6 @@ export interface InitStatusLog {
32
32
  error?: string;
33
33
  success?: boolean;
34
34
  }
35
- export interface InitState {
36
- isRunning: boolean;
37
- isComplete: boolean;
38
- success: boolean;
39
- currentStep: string;
40
- error: string | undefined;
41
- }
42
35
  export declare class InitStateMachine {
43
36
  logIdCounter: number;
44
37
  initStatusLogs: InitStatusLog[];
@@ -1,17 +1,7 @@
1
1
  import { type Express } from "express";
2
- import type { InitState } from "./InitStateMachine";
3
- import type { DevCommandState, SetupCommandState, HttpServerState } from "$/ai-utils";
2
+ import type { LaunchServerStatus } from "$/ai-utils";
4
3
  export declare const BUILDER_ENDPOINT_PREFIX = "/_builder.io";
5
4
  export declare const BUILDER_API_ENDPOINT_PREFIX: string;
6
- export interface SharedState {
7
- state: "initial" | "init-running" | "init-complete" | "ready" | "active-session" | "error";
8
- setupState?: SetupCommandState;
9
- devState?: DevCommandState;
10
- httpServerState?: HttpServerState;
11
- editorReady: boolean;
12
- initState?: InitState;
13
- errorMessage?: string;
14
- }
15
5
  /**
16
6
  * Endpoints that are not authenticated because they are used by the fly.io health check.
17
7
  */
@@ -25,5 +15,5 @@ export declare const configureServer: ({ app, validBuilderPrivateKey, authentica
25
15
  validBuilderPrivateKey: string | undefined;
26
16
  authenticateProxy: boolean;
27
17
  isLocal: boolean;
28
- sharedState: SharedState;
18
+ sharedState: LaunchServerStatus;
29
19
  }) => void;