@builder.io/dev-tools 1.27.3-dev.202602172029.9f86b554c → 1.27.3-dev.202602181402.4fc9b52f1

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.
Files changed (33) hide show
  1. package/cli/index.cjs +1963 -1146
  2. package/cli/index.cjs.map +4 -4
  3. package/core/index.cjs +1 -1
  4. package/core/index.mjs +1 -1
  5. package/node/index.cjs +1 -1
  6. package/node/index.mjs +1 -1
  7. package/package.json +1 -1
  8. package/server/index.cjs +2 -2
  9. package/server/index.mjs +2 -2
  10. package/types/cli/code-tools.d.ts +2 -0
  11. package/types/cli/codegen.d.ts +6 -2
  12. package/types/cli/launch/dev-server-orchestrator.d.ts +7 -2
  13. package/types/cli/launch/machine-health.d.ts +5 -2
  14. package/types/cli/utils/agents/browser-testing-agent.d.ts +2 -0
  15. package/types/cli/utils/agents/project-configuration-agent.d.ts +2 -0
  16. package/types/cli/utils/agents/project-setup-agent.d.ts +2 -0
  17. package/types/cli/utils/agents/setup-project-agent.d.ts +2 -0
  18. package/types/tsconfig.tsbuildinfo +1 -1
  19. package/types/cli/code-tools.test.d.ts +0 -1
  20. package/types/cli/github-cli.test.d.ts +0 -1
  21. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/COPYING +0 -3
  22. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/LICENSE-MIT +0 -21
  23. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/README.md +0 -516
  24. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/UNLICENSE +0 -24
  25. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/_rg +0 -665
  26. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/_rg.ps1 +0 -213
  27. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/rg.bash +0 -783
  28. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/rg.fish +0 -175
  29. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/CHANGELOG.md +0 -1689
  30. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/FAQ.md +0 -1046
  31. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/GUIDE.md +0 -1022
  32. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/rg.1 +0 -2178
  33. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/rg.exe +0 -0
@@ -5,6 +5,7 @@ import type { CodeGenEventEmitter } from "./codegen";
5
5
  import { CodeGenSession } from "./codegen";
6
6
  import type { Credentials } from "./credentials";
7
7
  import type { LocalMCPClientManager } from "./mcp-local";
8
+ import type { createFusionStatusMonitor } from "./launch/machine-health";
8
9
  export interface LLMToolCalls {
9
10
  name: CodeGenTools;
10
11
  input: Record<string, any>;
@@ -34,6 +35,7 @@ export interface ToolContext {
34
35
  session: CodeGenSession;
35
36
  sessionMode: SessionMode;
36
37
  devServerOrchestrator?: DevServerOrchestrator;
38
+ fusionStatusMonitor?: ReturnType<typeof createFusionStatusMonitor>;
37
39
  switchSessionMode: (mode: SessionMode) => void;
38
40
  getAllFiles: (options: {
39
41
  getDotFiles?: boolean;
@@ -1,11 +1,12 @@
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, SessionMode, UserContext, UserSource, WorkspaceFolder, LoadWholeSessionOptions, LoadWholeSessionResult, LoadHistoryResult, CodeGenMode, ApplyActionsResult, PrivacyMode, CodeGenPosition, BackupGitRepoResult, SuggestedActionBuildError, PushChangesArgs, CodegenApiResult, CodegenApiTerminal, ConfigureDevOrchestratorOpts, ConfigureDevOrchestratorUpdates, RepoMetrics, FolderWatchEvent, MCPServerConfig, CodegenApiCreateTerminal, SyncChangesFromRemote, SearchFilesOptions, SearchFilesResult, SearchFileTreeOptions, SearchFileTreeResult, ExplorationMetadataToolInput, CodegenAbortOptions, MessageUpdateOptions, GitRepoContext, SystemReminderObj, GitSnapshot } from "$/ai-utils";
3
+ import type { CodegenFeedback, CodeGenToolMap, CodegenTurn, CustomInstruction, FusionConfig, GenerateCompletionState, GenerateCompletionStep, GenerateCompletionStepGit, GenerateUserMessage, SessionMode, UserContext, UserSource, WorkspaceFolder, LoadWholeSessionOptions, LoadWholeSessionResult, LoadHistoryResult, CodeGenMode, ApplyActionsResult, PrivacyMode, CodeGenPosition, BackupGitRepoResult, SuggestedActionBuildError, PushChangesArgs, CodegenApiResult, CodegenApiTerminal, ConfigureDevOrchestratorOpts, ConfigureDevOrchestratorUpdates, RepoMetrics, FolderWatchEvent, MCPServerConfig, CodegenApiCreateTerminal, SyncChangesFromRemote, SearchFilesOptions, SearchFilesResult, SearchFileTreeOptions, SearchFileTreeResult, HttpServerState, ExplorationMetadataToolInput, CodegenAbortOptions, MessageUpdateOptions, GitRepoContext, SystemReminderObj, GitSnapshot } from "$/ai-utils";
4
4
  import { type ToolResolution } from "./code-tools";
5
5
  import { type SubAgent } from "./utils/agent-discovery";
6
6
  import EventEmitter from "node:events";
7
7
  import { type RunCommandOptions } from "./utils/git";
8
8
  import { type DevServerOrchestrator } from "./launch/dev-server-orchestrator";
9
+ import type { FusionStatusMonitor } from "./launch/machine-health";
9
10
  export interface SyncChangesFromBranches {
10
11
  canPush: boolean;
11
12
  branches: string[];
@@ -58,6 +59,7 @@ export interface CodeGenSessionOptionsBase {
58
59
  skipFileDiff?: boolean;
59
60
  agentType?: string;
60
61
  includeMemories?: boolean;
62
+ fusionStatusMonitor?: FusionStatusMonitor;
61
63
  }
62
64
  export interface CodeGenSessionOptionsSession extends CodeGenSessionOptionsBase {
63
65
  sessionOrCompletionId?: string;
@@ -191,6 +193,8 @@ export declare class CodeGenSession {
191
193
  folderName?: string;
192
194
  }): Promise<RepoMetrics>;
193
195
  getSessionId(): string;
196
+ updateMetadata(metadata: Record<string, any>): void;
197
+ getMetadata(): Record<string, any>;
194
198
  getSpaceId(): string | undefined;
195
199
  revertToCommitSnapshot(commitSnapshot: GitSnapshot): Promise<void>;
196
200
  revertToCommitHash(commitHash: string): Promise<void>;
@@ -261,7 +265,7 @@ export declare class CodeGenSession {
261
265
  state: "installed" | "not-installed" | "install-failed" | "install-aborted";
262
266
  shouldProceed: boolean;
263
267
  }>;
264
- waitForDevServer(signal?: AbortSignal): Promise<{
268
+ waitForDevServer(signal?: AbortSignal, timeoutMs?: number, expectedStates?: HttpServerState[]): Promise<{
265
269
  shouldProceed: boolean;
266
270
  message: string;
267
271
  serverUrl?: string;
@@ -31,6 +31,7 @@ export interface DevCommandProcessOptions {
31
31
  export interface DevServerOrchestrator {
32
32
  devCommand: string;
33
33
  setupCommand: string | undefined;
34
+ setupDependencies: SetupDependency[] | undefined;
34
35
  setupState: SetupCommandState;
35
36
  lastServerBody: string | undefined;
36
37
  lastServerStatus: number | undefined;
@@ -52,7 +53,11 @@ export interface DevServerOrchestrator {
52
53
  abortSetupCommand: () => Promise<SetupCommandResult | undefined>;
53
54
  abortValidateCommand: () => Promise<ValidateCommandResult | undefined>;
54
55
  clearEnvVariables: () => void;
55
- setEnvVariable: (key: string, value: string | undefined) => boolean;
56
+ setEnvVariable: (key: string, value: string | undefined, options?: {
57
+ secret?: boolean;
58
+ placeholder?: boolean;
59
+ explanation?: string;
60
+ }) => boolean;
56
61
  ensureDevCommand: (abortSignal?: AbortSignal) => Promise<boolean>;
57
62
  ensureSetupCommand: (abortSignal?: AbortSignal) => Promise<boolean>;
58
63
  setupCommandPromise: Promise<SetupCommandResult> | undefined;
@@ -85,7 +90,7 @@ export interface DevServerOrchestrator {
85
90
  getValidateOutput: () => string;
86
91
  getMiseActivationCommand: (shell: string) => Promise<string | null>;
87
92
  waitUntilIdle: (initialWaitMs?: number, idleTimeMs?: number) => Promise<void>;
88
- waitUntilServer: (signal?: AbortSignal) => Promise<{
93
+ waitUntilServer: (signal?: AbortSignal, timeoutMs?: number, expectedStates?: HttpServerState[]) => Promise<{
89
94
  ok: boolean;
90
95
  message: string;
91
96
  }>;
@@ -1,9 +1,12 @@
1
1
  import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
2
  import type { Credentials } from "../credentials";
3
3
  import type { FusionConfig, LaunchServerStatus } from "$/ai-utils";
4
- interface FusionStatusMonitor {
4
+ export interface FusionStatusMonitor {
5
5
  start: () => void;
6
6
  stop: () => void;
7
+ getPeakUsage: () => {
8
+ peakDiskUsage: number | undefined;
9
+ peakMemoryUsage: number | undefined;
10
+ };
7
11
  }
8
12
  export declare function createFusionStatusMonitor(sys: DevToolsSys, credentials: Credentials, fusionConfig: FusionConfig, sharedState: LaunchServerStatus): FusionStatusMonitor | null;
9
- export {};
@@ -0,0 +1,2 @@
1
+ import type { CustomAgentDefinition } from "$/ai-utils";
2
+ export declare const BROWSER_TESTING_AGENT: CustomAgentDefinition;
@@ -0,0 +1,2 @@
1
+ import type { CustomAgentDefinition } from "$/ai-utils";
2
+ export declare const PROJECT_CONFIGURATION_AGENT: CustomAgentDefinition;
@@ -0,0 +1,2 @@
1
+ import type { CustomAgentDefinition } from "$/ai-utils";
2
+ export declare const PROJECT_SETUP_AGENT: CustomAgentDefinition;
@@ -0,0 +1,2 @@
1
+ import type { CustomAgentDefinition } from "$/ai-utils";
2
+ export declare const SETUP_PROJECT_AGENT: CustomAgentDefinition;