@builder.io/dev-tools 1.12.0-dev.202510070649.fea52c293 → 1.12.0-dev.202510070726.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 +11 -7
- 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 +3 -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";
|
|
@@ -187,7 +187,7 @@ export declare class CodeGenSession {
|
|
|
187
187
|
sendMessage(message: GenerateUserMessage, immediate?: boolean): Promise<void>;
|
|
188
188
|
getTurns(): CodegenTurn[];
|
|
189
189
|
getSessionContext(): SessionContext;
|
|
190
|
-
runSetupCommand(): Promise<import("
|
|
190
|
+
runSetupCommand(): Promise<import("$/ai-utils").SetupCommandResult | undefined>;
|
|
191
191
|
abortSetupCommand(): void;
|
|
192
192
|
toolsRunning(): boolean;
|
|
193
193
|
abortAllTools(): void;
|
|
@@ -203,21 +203,7 @@ export declare class CodeGenSession {
|
|
|
203
203
|
abort(cleanCurrentMessage?: boolean): Promise<boolean>;
|
|
204
204
|
stopEventLoop(): Promise<void>;
|
|
205
205
|
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
|
-
}>;
|
|
206
|
+
configureDevOrchestrator(opts: ConfigureDevOrchestratorOpts): Promise<ConfigureDevOrchestratorUpdates>;
|
|
221
207
|
close(uploadGitBackup?: boolean): Promise<void>;
|
|
222
208
|
emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
|
|
223
209
|
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;
|