@builder.io/dev-tools 1.12.0-dev.202510070718.fea52c293 → 1.12.0-dev.202510070740.fea52c293
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 +21 -5
- package/cli/index.cjs.map +2 -2
- 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 +2 -2
- package/server/index.mjs +2 -2
- package/types/cli/codegen.d.ts +4 -17
- package/types/cli/launch/dev-server-orchestrator.d.ts +1 -5
- package/types/tsconfig.tsbuildinfo +1 -1
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 type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CustomInstruction, FusionConfig, GenerateCompletionState, GenerateCompletionStep, GenerateCompletionStepGit, GenerateUserMessage, UserContext, WorkspaceConfiguration, WorkspaceFolder, LoadWholeSessionOptions, LoadWholeSessionResult, LoadHistoryResult, CodeGenMode, ApplyActionsResult, PrivacyMode, CodeGenPosition, BackupGitRepoResult, PushChangesArgs, CodegenApiResult, CodegenApiTerminal } from "$/ai-utils";
|
|
3
|
+
import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CustomInstruction, FusionConfig, GenerateCompletionState, GenerateCompletionStep, GenerateCompletionStepGit, GenerateUserMessage, UserContext, WorkspaceConfiguration, WorkspaceFolder, LoadWholeSessionOptions, LoadWholeSessionResult, LoadHistoryResult, CodeGenMode, ApplyActionsResult, PrivacyMode, CodeGenPosition, BackupGitRepoResult, PushChangesArgs, CodegenApiResult, CodegenApiTerminal, ConfigureDevOrchestratorOpts, ConfigureDevOrchestratorUpdates } from "$/ai-utils";
|
|
4
4
|
import prettier from "prettier";
|
|
5
5
|
import { type FusionContext, type ToolResolution } from "./code-tools";
|
|
6
6
|
import EventEmitter from "node:events";
|
|
@@ -91,6 +91,7 @@ export declare class CodeGenSession {
|
|
|
91
91
|
git(args: string[], opts?: string | RunCommandOptions): Promise<string>;
|
|
92
92
|
setDebug(debug: boolean): void;
|
|
93
93
|
createTerminal(options?: {
|
|
94
|
+
terminalId?: string;
|
|
94
95
|
title?: string;
|
|
95
96
|
cwd?: string;
|
|
96
97
|
env?: Record<string, string | undefined>;
|
|
@@ -187,7 +188,7 @@ export declare class CodeGenSession {
|
|
|
187
188
|
sendMessage(message: GenerateUserMessage, immediate?: boolean): Promise<void>;
|
|
188
189
|
getTurns(): CodegenTurn[];
|
|
189
190
|
getSessionContext(): SessionContext;
|
|
190
|
-
runSetupCommand(): Promise<import("
|
|
191
|
+
runSetupCommand(): Promise<import("$/ai-utils").SetupCommandResult | undefined>;
|
|
191
192
|
abortSetupCommand(): void;
|
|
192
193
|
toolsRunning(): boolean;
|
|
193
194
|
abortAllTools(): void;
|
|
@@ -203,21 +204,7 @@ export declare class CodeGenSession {
|
|
|
203
204
|
abort(cleanCurrentMessage?: boolean): Promise<boolean>;
|
|
204
205
|
stopEventLoop(): Promise<void>;
|
|
205
206
|
requestRefresh(): void;
|
|
206
|
-
configureDevOrchestrator(opts:
|
|
207
|
-
devCommand?: string;
|
|
208
|
-
setupCommand?: string;
|
|
209
|
-
proxyPort?: number;
|
|
210
|
-
proxyServer?: string;
|
|
211
|
-
env?: Record<string, string | null>;
|
|
212
|
-
replaceEnvs?: boolean;
|
|
213
|
-
forceSetupCommand?: boolean;
|
|
214
|
-
forceDevCommand?: boolean;
|
|
215
|
-
}): Promise<{
|
|
216
|
-
devCommand: boolean;
|
|
217
|
-
setupCommand: boolean;
|
|
218
|
-
proxyServer: boolean;
|
|
219
|
-
env: boolean;
|
|
220
|
-
}>;
|
|
207
|
+
configureDevOrchestrator(opts: ConfigureDevOrchestratorOpts): Promise<ConfigureDevOrchestratorUpdates>;
|
|
221
208
|
close(uploadGitBackup?: boolean): Promise<void>;
|
|
222
209
|
emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
|
|
223
210
|
manualCommit(options: {
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
2
|
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
|
-
import type { DevCommandState, EnvironmentVariable, HttpServerState } from "$/ai-utils";
|
|
3
|
+
import type { DevCommandState, EnvironmentVariable, HttpServerState, SetupCommandResult } from "$/ai-utils";
|
|
4
4
|
import EventEmitter from "events";
|
|
5
5
|
import { ChildProcess } from "node:child_process";
|
|
6
6
|
import type { FusionConfig, SetupCommandState } from "$/ai-utils";
|
|
7
7
|
export type DevServerState = Exclude<SetupCommandState | DevCommandState, "installed" | "starting">;
|
|
8
|
-
export interface SetupCommandResult {
|
|
9
|
-
code: number | null;
|
|
10
|
-
output: string;
|
|
11
|
-
}
|
|
12
8
|
export interface DevCommandProcess {
|
|
13
9
|
type: "devCommandProcess";
|
|
14
10
|
getPid: () => number | undefined;
|