builder.io 1.7.32 → 1.7.34
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 +304 -304
- 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 +42 -42
- package/server/index.mjs +41 -41
- package/types/cli/backup.d.ts +44 -1
- package/types/cli/codegen.d.ts +5 -27
- package/types/cli/launch/InitStateMachine.d.ts +7 -6
- package/types/cli/launch/helpers.d.ts +0 -1
- package/types/cli/repo-indexing/types.d.ts +1 -0
- package/types/cli/utils/git.d.ts +11 -0
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/backup.d.ts
CHANGED
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
2
|
import type { Credentials } from "./credentials";
|
|
3
|
-
import type
|
|
3
|
+
import { type GitBackupUploadUrlResult, type GitBackupUploadUrlOptions, type GitBackupRecordOptions, type GitBackupRecordResult, type BackupMetadata, type WorkspaceConfiguration } from "$/ai-utils";
|
|
4
|
+
interface BackupGitRepoOptions {
|
|
5
|
+
sys: DevToolsSys;
|
|
6
|
+
credentials: Credentials;
|
|
7
|
+
projectId: string;
|
|
8
|
+
branchName: string;
|
|
9
|
+
repoPath: string;
|
|
10
|
+
aiBranch: string;
|
|
11
|
+
featureBranch: string;
|
|
12
|
+
workspace: WorkspaceConfiguration | undefined;
|
|
13
|
+
debug: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function backupGitRepo({ sys, credentials, projectId, branchName, repoPath, aiBranch, featureBranch, workspace, debug, }: BackupGitRepoOptions): Promise<{
|
|
16
|
+
success: boolean;
|
|
17
|
+
empty: boolean;
|
|
18
|
+
lastCommitHash: string;
|
|
19
|
+
skipped?: undefined;
|
|
20
|
+
reason?: undefined;
|
|
21
|
+
filePath?: undefined;
|
|
22
|
+
expiresAt?: undefined;
|
|
23
|
+
bundleSize?: undefined;
|
|
24
|
+
contentMd5?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
success: boolean;
|
|
27
|
+
skipped: boolean;
|
|
28
|
+
reason: string;
|
|
29
|
+
empty?: undefined;
|
|
30
|
+
lastCommitHash?: undefined;
|
|
31
|
+
filePath?: undefined;
|
|
32
|
+
expiresAt?: undefined;
|
|
33
|
+
bundleSize?: undefined;
|
|
34
|
+
contentMd5?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
success: boolean;
|
|
37
|
+
filePath: string;
|
|
38
|
+
expiresAt: string;
|
|
39
|
+
bundleSize: number;
|
|
40
|
+
contentMd5: string;
|
|
41
|
+
lastCommitHash: string;
|
|
42
|
+
empty?: undefined;
|
|
43
|
+
skipped?: undefined;
|
|
44
|
+
reason?: undefined;
|
|
45
|
+
}>;
|
|
4
46
|
/**
|
|
5
47
|
* Requests a signed upload URL for git backup
|
|
6
48
|
*/
|
|
@@ -34,3 +76,4 @@ export declare function computeMD5Hash(bundlePath: string): Promise<{
|
|
|
34
76
|
contentMd5: string;
|
|
35
77
|
size: number;
|
|
36
78
|
}>;
|
|
79
|
+
export {};
|
package/types/cli/codegen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
2
|
import { type Credentials } from "./credentials";
|
|
3
|
-
import {
|
|
3
|
+
import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CommitMode, CustomInstruction, FusionConfig, GenerateCompletionState, GenerateCompletionStep, GenerateCompletionStepGit, GenerateUserMessage, UserContext, WorkspaceConfiguration, WorkspaceFolder, LoadWholeSessionOptions, LoadWholeSessionResult, LoadHistoryResult, CodeGenMode } from "$/ai-utils";
|
|
4
4
|
import prettier from "prettier";
|
|
5
5
|
import { type FusionContext } from "./code-tools";
|
|
6
6
|
import EventEmitter from "node:events";
|
|
@@ -80,60 +80,38 @@ export declare class CodeGenSession {
|
|
|
80
80
|
isIdle(): Promise<boolean>;
|
|
81
81
|
needsBackup(): Promise<boolean>;
|
|
82
82
|
uploadBackup(): Promise<{
|
|
83
|
-
success: boolean;
|
|
84
|
-
skipped: boolean;
|
|
85
|
-
reason: string;
|
|
86
|
-
lastCommitHash: string;
|
|
87
|
-
empty?: undefined;
|
|
88
|
-
filePath?: undefined;
|
|
89
|
-
expiresAt?: undefined;
|
|
90
|
-
bundleSize?: undefined;
|
|
91
|
-
contentMd5?: undefined;
|
|
92
|
-
error?: undefined;
|
|
93
|
-
} | {
|
|
94
83
|
success: boolean;
|
|
95
84
|
empty: boolean;
|
|
85
|
+
lastCommitHash: string;
|
|
96
86
|
skipped?: undefined;
|
|
97
87
|
reason?: undefined;
|
|
98
|
-
lastCommitHash?: undefined;
|
|
99
88
|
filePath?: undefined;
|
|
100
89
|
expiresAt?: undefined;
|
|
101
90
|
bundleSize?: undefined;
|
|
102
91
|
contentMd5?: undefined;
|
|
103
|
-
error?: undefined;
|
|
104
92
|
} | {
|
|
105
93
|
success: boolean;
|
|
106
94
|
skipped: boolean;
|
|
107
95
|
reason: string;
|
|
108
|
-
lastCommitHash?: undefined;
|
|
109
96
|
empty?: undefined;
|
|
97
|
+
lastCommitHash?: undefined;
|
|
110
98
|
filePath?: undefined;
|
|
111
99
|
expiresAt?: undefined;
|
|
112
100
|
bundleSize?: undefined;
|
|
113
101
|
contentMd5?: undefined;
|
|
114
|
-
error?: undefined;
|
|
115
102
|
} | {
|
|
116
103
|
success: boolean;
|
|
117
104
|
filePath: string;
|
|
118
105
|
expiresAt: string;
|
|
119
106
|
bundleSize: number;
|
|
120
107
|
contentMd5: string;
|
|
108
|
+
lastCommitHash: string;
|
|
109
|
+
empty?: undefined;
|
|
121
110
|
skipped?: undefined;
|
|
122
111
|
reason?: undefined;
|
|
123
|
-
lastCommitHash?: undefined;
|
|
124
|
-
empty?: undefined;
|
|
125
|
-
error?: undefined;
|
|
126
112
|
} | {
|
|
127
113
|
success: boolean;
|
|
128
114
|
error: Error;
|
|
129
|
-
skipped?: undefined;
|
|
130
|
-
reason?: undefined;
|
|
131
|
-
lastCommitHash?: undefined;
|
|
132
|
-
empty?: undefined;
|
|
133
|
-
filePath?: undefined;
|
|
134
|
-
expiresAt?: undefined;
|
|
135
|
-
bundleSize?: undefined;
|
|
136
|
-
contentMd5?: undefined;
|
|
137
115
|
}>;
|
|
138
116
|
createPR(...args: [
|
|
139
117
|
{
|
|
@@ -16,13 +16,14 @@ export interface InitStatus {
|
|
|
16
16
|
export declare class InitStateMachine {
|
|
17
17
|
logIdCounter: number;
|
|
18
18
|
initStatusLogs: InitStatusLog[];
|
|
19
|
-
|
|
19
|
+
sys: DevToolsSys;
|
|
20
|
+
config: InitConfig;
|
|
20
21
|
debug: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
init(
|
|
22
|
+
initState: InitState;
|
|
23
|
+
constructor(config: InitConfig);
|
|
24
|
+
execAsync(exec: string, args: string[], cwd?: string): Promise<string>;
|
|
25
|
+
git(args: string[], cwd?: string): Promise<string>;
|
|
26
|
+
init(): Promise<boolean>;
|
|
26
27
|
addInitLog(type: "status" | "log" | "error" | "complete", message: string, options?: {
|
|
27
28
|
step?: InitStateStep;
|
|
28
29
|
error?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DevToolsSys } from "types";
|
|
2
|
+
interface RunGitOptions {
|
|
3
|
+
exec?: string;
|
|
4
|
+
cwd?: string;
|
|
5
|
+
debug?: boolean;
|
|
6
|
+
sys: DevToolsSys;
|
|
7
|
+
timeout?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function runGit(args: string[], opts: RunGitOptions): Promise<string>;
|
|
10
|
+
export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;
|
|
11
|
+
export {};
|