builder.io 1.9.15 → 1.9.16
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 +39 -37
- 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 +19 -19
- package/server/index.mjs +24 -24
- package/types/cli/codegen.d.ts +3 -2
- package/types/cli/launch/dev-server-orchestrator.d.ts +2 -3
- package/types/cli/utils/git.d.ts +2 -2
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CommitMode, CustomIn
|
|
|
4
4
|
import prettier from "prettier";
|
|
5
5
|
import { type FusionContext } from "./code-tools";
|
|
6
6
|
import EventEmitter from "node:events";
|
|
7
|
+
import { type RunGitOptions } from "./utils/git";
|
|
7
8
|
export interface SessionContext {
|
|
8
9
|
sessionId: string;
|
|
9
10
|
turns: CodegenTurn[];
|
|
@@ -73,7 +74,7 @@ export declare class CodeGenSession {
|
|
|
73
74
|
details: string;
|
|
74
75
|
}>;
|
|
75
76
|
archiveProject(): Promise<string>;
|
|
76
|
-
isIdle():
|
|
77
|
+
isIdle(): boolean;
|
|
77
78
|
needsBackup(): Promise<boolean>;
|
|
78
79
|
uploadBackup(): Promise<import("./backup").BackupGitRepoResultValid | import("./backup").BackupGitRepoResultInvalid | {
|
|
79
80
|
success: boolean;
|
|
@@ -112,7 +113,7 @@ export declare class CodeGenSession {
|
|
|
112
113
|
* Get the AI branch name
|
|
113
114
|
*/
|
|
114
115
|
getAiBranch(): string | undefined;
|
|
115
|
-
git(args: string[],
|
|
116
|
+
git(args: string[], opts?: string | RunGitOptions): Promise<string>;
|
|
116
117
|
/**
|
|
117
118
|
* Helper to run git commands
|
|
118
119
|
*/
|
|
@@ -2,8 +2,7 @@ import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
|
2
2
|
import { type RequestHandler as ProxyRequestHandler } from "http-proxy-middleware";
|
|
3
3
|
import type { DevCommandState, HttpServerState } from "$/ai-utils";
|
|
4
4
|
import EventEmitter from "events";
|
|
5
|
-
import {
|
|
6
|
-
import type { Readable } from "node:stream";
|
|
5
|
+
import { ChildProcess } from "node:child_process";
|
|
7
6
|
import type { FusionConfig, SetupCommandState } from "$/ai-utils";
|
|
8
7
|
export type DevServerState = Exclude<SetupCommandState | DevCommandState, "installed" | "starting">;
|
|
9
8
|
export interface SetupCommandResult {
|
|
@@ -58,4 +57,4 @@ export interface DevServerOrchestrator {
|
|
|
58
57
|
}
|
|
59
58
|
export declare function devServerOrchestrator(sys: DevToolsSys, fusionConfig: FusionConfig, initialSetupState: "installed" | "not-installed" | "install-failed"): Promise<DevServerOrchestrator>;
|
|
60
59
|
export declare const checkPortsListenedByPid: (pid: number) => number[];
|
|
61
|
-
export declare function killProcess(sys: DevToolsSys, proc:
|
|
60
|
+
export declare function killProcess(sys: DevToolsSys, proc: ChildProcess | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<boolean>;
|
package/types/cli/utils/git.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DevToolsSys } from "types";
|
|
2
|
-
interface RunGitOptions {
|
|
2
|
+
export interface RunGitOptions {
|
|
3
3
|
exec?: string;
|
|
4
4
|
cwd?: string;
|
|
5
5
|
debug?: boolean;
|
|
6
6
|
sys: DevToolsSys;
|
|
7
7
|
timeout?: number;
|
|
8
|
+
stdin?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare function runGit(args: string[], opts: RunGitOptions): Promise<string>;
|
|
10
11
|
export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;
|
|
11
|
-
export {};
|