builder.io 1.6.102 → 1.6.103
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.
- package/cli/index.cjs +519 -573
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +144 -145
- package/server/index.mjs +143 -144
- package/types/cli/codegen.d.ts +0 -1
- package/types/cli/launch/InitStateMachine.d.ts +1 -4
- package/types/cli/launch/config.d.ts +1 -2
- package/types/cli/launch/helpers.d.ts +0 -63
- package/types/cli/launch.d.ts +2 -0
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/cli/launch/install-jsx-plugin.d.ts +0 -7
- package/types/cli/launch/logger.d.ts +0 -38
- package/types/cli/launch-init-v2.d.ts +0 -13
- package/types/cli/launch-init.d.ts +0 -19
package/types/cli/codegen.d.ts
CHANGED
|
@@ -258,7 +258,6 @@ export declare class CodeGenSession {
|
|
|
258
258
|
deleteFile(filePath: string): Promise<boolean>;
|
|
259
259
|
getNetLinesChanged(): number;
|
|
260
260
|
}
|
|
261
|
-
export declare function transformStream(body: ReadableStream<Uint8Array> | null): AsyncGenerator<string, void, unknown>;
|
|
262
261
|
export declare function getUserContext(sys: DevToolsSys, gitWorkingDirectory?: string): Promise<UserContext>;
|
|
263
262
|
export declare function makeAsyncIterator<T>(): readonly [AsyncGenerator<T, void, void>, (event: T) => void, () => void];
|
|
264
263
|
/**
|
|
@@ -4,7 +4,6 @@ export interface InitConfig {
|
|
|
4
4
|
fusionConfig: FusionConfig;
|
|
5
5
|
sys: DevToolsSys;
|
|
6
6
|
debug?: boolean;
|
|
7
|
-
runSetupCommand: boolean;
|
|
8
7
|
}
|
|
9
8
|
export interface InitStatus {
|
|
10
9
|
message: string;
|
|
@@ -20,7 +19,6 @@ declare enum InitStateStep {
|
|
|
20
19
|
UpdateRemoteUrl = "update-remote-url",
|
|
21
20
|
CloneRepo = "clone-repo",
|
|
22
21
|
ConfigureGitUser = "configure-git-user",
|
|
23
|
-
InstallDependencies = "install-dependencies",
|
|
24
22
|
StashChanges = "stash-changes",
|
|
25
23
|
InitSuccess = "init-success",
|
|
26
24
|
InitFailed = "init-failed"
|
|
@@ -54,8 +52,7 @@ export declare class InitStateMachine {
|
|
|
54
52
|
step1CheckDirectories(config: InitConfig, repositories: Required<WorkspaceFolder>[], signal?: AbortSignal): Promise<void>;
|
|
55
53
|
step2ConfigureGitRepositories(config: InitConfig, repositories: Required<WorkspaceFolder>[], signal?: AbortSignal): Promise<void>;
|
|
56
54
|
step3ConfigureGitUser(config: InitConfig, repositories: Required<WorkspaceFolder>[], signal?: AbortSignal): Promise<void>;
|
|
57
|
-
|
|
58
|
-
step5StashChanges(config: InitConfig, repositories: Required<WorkspaceFolder>[], signal?: AbortSignal): Promise<void>;
|
|
55
|
+
step4StashChanges(config: InitConfig, repositories: Required<WorkspaceFolder>[], signal?: AbortSignal): Promise<void>;
|
|
59
56
|
private isGitConfigured;
|
|
60
57
|
private getGitRemoteUrl;
|
|
61
58
|
private sanitizeGitRemoteUrl;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FusionConfig } from "$/ai-utils";
|
|
2
2
|
import type { LaunchArgs } from "../launch";
|
|
3
|
-
import type { InitArgs } from "../launch-init";
|
|
4
3
|
import type { DevToolsSys } from "types";
|
|
5
|
-
export declare function getFusionConfig(sys: DevToolsSys, args: LaunchArgs
|
|
4
|
+
export declare function getFusionConfig(sys: DevToolsSys, args: LaunchArgs): Promise<FusionConfig>;
|
|
@@ -1,66 +1,3 @@
|
|
|
1
|
-
import type { EnsureConfigResult } from "types";
|
|
2
|
-
export declare const GIT_APP_FOLDER = "code";
|
|
3
|
-
export declare const LOGS_FILE_PATH: string;
|
|
4
|
-
export declare const STATUS_FILE_PATH: string;
|
|
5
|
-
export declare const transformVolumePath: (volumePath?: string) => string;
|
|
6
|
-
export declare const navigateToVolumePath: (volumePath: string) => void;
|
|
7
|
-
export declare const navigateToGitAppFolder: () => void;
|
|
8
|
-
export type InstallOutcome = EnsureConfigResult["outcome"] | "install-failed";
|
|
9
|
-
export type InstallStatus = {
|
|
10
|
-
timestamp: string;
|
|
11
|
-
outcome: InstallOutcome;
|
|
12
|
-
packageManager: string;
|
|
13
|
-
buildTool: string;
|
|
14
|
-
rootDir: string;
|
|
15
|
-
error: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
export type LaunchStatus = {
|
|
18
|
-
jsxPlugin?: Partial<InstallStatus>;
|
|
19
|
-
devTools?: {
|
|
20
|
-
version?: string;
|
|
21
|
-
};
|
|
22
|
-
stash?: {
|
|
23
|
-
completed?: boolean;
|
|
24
|
-
};
|
|
25
|
-
dependencies?: {
|
|
26
|
-
installed?: boolean;
|
|
27
|
-
error?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
gitRepo?: {
|
|
30
|
-
exists?: boolean;
|
|
31
|
-
configured?: boolean;
|
|
32
|
-
repo?: string;
|
|
33
|
-
branch?: string;
|
|
34
|
-
error?: string | undefined;
|
|
35
|
-
current?: string | undefined;
|
|
36
|
-
expected?: string | undefined;
|
|
37
|
-
elapsedTime?: number;
|
|
38
|
-
};
|
|
39
|
-
gitUser?: {
|
|
40
|
-
configured?: boolean;
|
|
41
|
-
};
|
|
42
|
-
gitDirectory?: {
|
|
43
|
-
exists?: boolean;
|
|
44
|
-
creating?: boolean;
|
|
45
|
-
};
|
|
46
|
-
volumeDirectory?: {
|
|
47
|
-
exists?: boolean;
|
|
48
|
-
};
|
|
49
|
-
args?: {
|
|
50
|
-
repoFullName?: string;
|
|
51
|
-
branchName?: string;
|
|
52
|
-
volumePath?: string;
|
|
53
|
-
};
|
|
54
|
-
initialization?: {
|
|
55
|
-
started?: boolean;
|
|
56
|
-
timestamp?: string;
|
|
57
|
-
completed?: boolean;
|
|
58
|
-
success?: boolean;
|
|
59
|
-
error?: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export declare const updateStatus: <T extends keyof LaunchStatus>(key: T, value: Partial<LaunchStatus[T]>) => void;
|
|
63
|
-
export declare const getConfigStatus: () => LaunchStatus;
|
|
64
1
|
/**
|
|
65
2
|
* Get the GitHub remote URL for a given repository
|
|
66
3
|
* @param repoFullName - The full name of the repository (e.g. "BuilderIO/fusion-starter")
|
package/types/cli/launch.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface LaunchArgs extends CLIArgs {
|
|
|
15
15
|
p?: number;
|
|
16
16
|
/** Dev server command to execute */
|
|
17
17
|
command?: string;
|
|
18
|
+
/** Install command to execute */
|
|
19
|
+
installCommand?: string;
|
|
18
20
|
/** Dev server command to execute (shorthand) */
|
|
19
21
|
c?: string;
|
|
20
22
|
/** Dev server URL to proxy to (alternative to command + port) */
|