builder.io 1.6.119 → 1.6.121

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.
@@ -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, type InitStateStep, type InitStatusLog } from "$/ai-utils";
3
3
  export interface InitConfig {
4
4
  fusionConfig: FusionConfig;
5
5
  sys: DevToolsSys;
@@ -9,36 +9,6 @@ export interface InitStatus {
9
9
  message: string;
10
10
  error?: string;
11
11
  }
12
- declare enum InitStateStep {
13
- Init = "init",
14
- Validation = "validation",
15
- CheckDirectories = "check-directories",
16
- CreateDirectories = "create-directories",
17
- ConfigureGitRepos = "configure-git-repos",
18
- CheckExistingGit = "check-existing-git",
19
- UpdateRemoteUrl = "update-remote-url",
20
- CloneRepo = "clone-repo",
21
- ConfigureGitUser = "configure-git-user",
22
- StashChanges = "stash-changes",
23
- InitSuccess = "init-success",
24
- InitFailed = "init-failed"
25
- }
26
- export interface InitStatusLog {
27
- id: number;
28
- timestamp: string;
29
- type: "status" | "log" | "error" | "complete";
30
- message: string;
31
- step?: InitStateStep;
32
- error?: string;
33
- success?: boolean;
34
- }
35
- export interface InitState {
36
- isRunning: boolean;
37
- isComplete: boolean;
38
- success: boolean;
39
- currentStep: string;
40
- error: string | undefined;
41
- }
42
12
  export declare class InitStateMachine {
43
13
  logIdCounter: number;
44
14
  initStatusLogs: InitStatusLog[];
@@ -60,4 +30,3 @@ export declare class InitStateMachine {
60
30
  private sanitizeGitRemoteUrl;
61
31
  cloneRepository(repo: Required<WorkspaceFolder>, repoPath: string, signal?: AbortSignal): Promise<boolean>;
62
32
  }
63
- export {};
@@ -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;