builder.io 1.10.7 → 1.10.9
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 +301 -297
- 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 +48 -48
- package/server/index.mjs +43 -43
- package/types/cli/codegen.d.ts +5 -3
- package/types/cli/utils/git.d.ts +2 -3
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CustomInstruction, F
|
|
|
4
4
|
import prettier from "prettier";
|
|
5
5
|
import { type FusionContext, type ToolResolution } from "./code-tools";
|
|
6
6
|
import EventEmitter from "node:events";
|
|
7
|
-
import { type
|
|
7
|
+
import { type RunCommandOptions } from "./utils/git";
|
|
8
8
|
export interface SessionContext {
|
|
9
9
|
sessionId: string;
|
|
10
10
|
turns: CodegenTurn[];
|
|
@@ -75,6 +75,7 @@ export declare class CodeGenSession {
|
|
|
75
75
|
error: string;
|
|
76
76
|
details: string;
|
|
77
77
|
}>;
|
|
78
|
+
zipFolder(folderName: string): Promise<string>;
|
|
78
79
|
archiveProject(): Promise<string>;
|
|
79
80
|
isIdle(): boolean;
|
|
80
81
|
needsBackup(): Promise<boolean>;
|
|
@@ -117,7 +118,7 @@ export declare class CodeGenSession {
|
|
|
117
118
|
* Get the AI branch name
|
|
118
119
|
*/
|
|
119
120
|
getAiBranch(): string;
|
|
120
|
-
git(args: string[], opts?: string |
|
|
121
|
+
git(args: string[], opts?: string | RunCommandOptions): Promise<string>;
|
|
121
122
|
/**
|
|
122
123
|
* Helper to run git commands
|
|
123
124
|
*/
|
|
@@ -128,7 +129,8 @@ export declare class CodeGenSession {
|
|
|
128
129
|
setDebug(debug: boolean): void;
|
|
129
130
|
getAllFiles(options?: {
|
|
130
131
|
getDotFiles?: boolean;
|
|
131
|
-
|
|
132
|
+
globbyPattern?: string;
|
|
133
|
+
includePattern?: string;
|
|
132
134
|
}): Promise<string[]>;
|
|
133
135
|
getSessionId(): string;
|
|
134
136
|
getSpaceId(): string | undefined;
|
package/types/cli/utils/git.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { DevToolsSys } from "types";
|
|
2
|
-
export interface
|
|
3
|
-
exec?: string;
|
|
2
|
+
export interface RunCommandOptions {
|
|
4
3
|
cwd?: string;
|
|
5
4
|
debug?: boolean;
|
|
6
5
|
sys: DevToolsSys;
|
|
7
6
|
timeout?: number;
|
|
8
7
|
stdin?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare function
|
|
9
|
+
export declare function runCommand(cmd: string, args: string[], opts: RunCommandOptions): Promise<string>;
|
|
11
10
|
export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;
|