@builder.io/dev-tools 1.27.2-dev.202602171819.aa5f5d977 → 1.27.3-dev.202602172029.9f86b554c
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 +1302 -1935
- 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 +93 -65
- package/server/index.mjs +94 -66
- package/types/_tests_/codegen-listdir-security.test.d.ts +1 -0
- package/types/cli/code-tools.d.ts +0 -2
- package/types/cli/code-tools.test.d.ts +1 -0
- package/types/cli/codegen.d.ts +2 -4
- package/types/cli/github-cli.test.d.ts +1 -0
- package/types/cli/launch/dev-server-orchestrator.d.ts +1 -2
- package/types/cli/launch/machine-health.d.ts +0 -4
- package/types/cli/utils/workspace-path-resolver.d.ts +14 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/COPYING +3 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/LICENSE-MIT +21 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/README.md +516 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/UNLICENSE +24 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/_rg +665 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/_rg.ps1 +213 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/rg.bash +783 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/rg.fish +175 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/CHANGELOG.md +1689 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/FAQ.md +1046 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/GUIDE.md +1022 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/rg.1 +2178 -0
- package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/rg.exe +0 -0
- package/types/cli/utils/agents/browser-testing-agent.d.ts +0 -2
- package/types/cli/utils/agents/project-configuration-agent.d.ts +0 -2
- package/types/cli/utils/agents/project-setup-agent.d.ts +0 -2
- package/types/cli/utils/agents/setup-project-agent.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,6 @@ 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";
|
|
9
8
|
export interface LLMToolCalls {
|
|
10
9
|
name: CodeGenTools;
|
|
11
10
|
input: Record<string, any>;
|
|
@@ -35,7 +34,6 @@ export interface ToolContext {
|
|
|
35
34
|
session: CodeGenSession;
|
|
36
35
|
sessionMode: SessionMode;
|
|
37
36
|
devServerOrchestrator?: DevServerOrchestrator;
|
|
38
|
-
fusionStatusMonitor?: ReturnType<typeof createFusionStatusMonitor>;
|
|
39
37
|
switchSessionMode: (mode: SessionMode) => void;
|
|
40
38
|
getAllFiles: (options: {
|
|
41
39
|
getDotFiles?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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, 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,
|
|
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";
|
|
4
4
|
import { type ToolResolution } from "./code-tools";
|
|
5
5
|
import { type SubAgent } from "./utils/agent-discovery";
|
|
6
6
|
import EventEmitter from "node:events";
|
|
@@ -191,8 +191,6 @@ export declare class CodeGenSession {
|
|
|
191
191
|
folderName?: string;
|
|
192
192
|
}): Promise<RepoMetrics>;
|
|
193
193
|
getSessionId(): string;
|
|
194
|
-
updateMetadata(metadata: Record<string, any>): void;
|
|
195
|
-
getMetadata(): Record<string, any>;
|
|
196
194
|
getSpaceId(): string | undefined;
|
|
197
195
|
revertToCommitSnapshot(commitSnapshot: GitSnapshot): Promise<void>;
|
|
198
196
|
revertToCommitHash(commitHash: string): Promise<void>;
|
|
@@ -263,7 +261,7 @@ export declare class CodeGenSession {
|
|
|
263
261
|
state: "installed" | "not-installed" | "install-failed" | "install-aborted";
|
|
264
262
|
shouldProceed: boolean;
|
|
265
263
|
}>;
|
|
266
|
-
waitForDevServer(signal?: AbortSignal
|
|
264
|
+
waitForDevServer(signal?: AbortSignal): Promise<{
|
|
267
265
|
shouldProceed: boolean;
|
|
268
266
|
message: string;
|
|
269
267
|
serverUrl?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,7 +31,6 @@ export interface DevCommandProcessOptions {
|
|
|
31
31
|
export interface DevServerOrchestrator {
|
|
32
32
|
devCommand: string;
|
|
33
33
|
setupCommand: string | undefined;
|
|
34
|
-
setupDependencies: SetupDependency[] | undefined;
|
|
35
34
|
setupState: SetupCommandState;
|
|
36
35
|
lastServerBody: string | undefined;
|
|
37
36
|
lastServerStatus: number | undefined;
|
|
@@ -86,7 +85,7 @@ export interface DevServerOrchestrator {
|
|
|
86
85
|
getValidateOutput: () => string;
|
|
87
86
|
getMiseActivationCommand: (shell: string) => Promise<string | null>;
|
|
88
87
|
waitUntilIdle: (initialWaitMs?: number, idleTimeMs?: number) => Promise<void>;
|
|
89
|
-
waitUntilServer: (signal?: AbortSignal
|
|
88
|
+
waitUntilServer: (signal?: AbortSignal) => Promise<{
|
|
90
89
|
ok: boolean;
|
|
91
90
|
message: string;
|
|
92
91
|
}>;
|
|
@@ -4,10 +4,6 @@ import type { FusionConfig, LaunchServerStatus } from "$/ai-utils";
|
|
|
4
4
|
interface FusionStatusMonitor {
|
|
5
5
|
start: () => void;
|
|
6
6
|
stop: () => void;
|
|
7
|
-
getPeakUsage: () => {
|
|
8
|
-
peakDiskUsage: number | undefined;
|
|
9
|
-
peakMemoryUsage: number | undefined;
|
|
10
|
-
};
|
|
11
7
|
}
|
|
12
8
|
export declare function createFusionStatusMonitor(sys: DevToolsSys, credentials: Credentials, fusionConfig: FusionConfig, sharedState: LaunchServerStatus): FusionStatusMonitor | null;
|
|
13
9
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceFolder, WorkspaceConfiguration } from "@builder.io/ai-utils";
|
|
2
|
-
import type { DevToolsSys } from "../../types";
|
|
2
|
+
import type { DevToolsPath, DevToolsSys } from "../../types";
|
|
3
3
|
export interface ResolveWorkspacePathOptions {
|
|
4
4
|
filePath: string;
|
|
5
5
|
forceWorkspace?: boolean;
|
|
@@ -90,3 +90,16 @@ export interface AbsolutePathToWorkspaceUrlOptions {
|
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
92
|
export declare function absolutePathToWorkspaceUrl(options: AbsolutePathToWorkspaceUrlOptions): string | undefined;
|
|
93
|
+
export interface IsPathInsideWorkspaceOptions {
|
|
94
|
+
resolvedPath: string;
|
|
95
|
+
workingDirectory: string;
|
|
96
|
+
workspace?: WorkspaceConfiguration;
|
|
97
|
+
sys: DevToolsPath;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Checks whether `resolvedPath` is inside the working directory or any
|
|
101
|
+
* configured workspace folder. Uses `startsWith(base + sep)` (plus an
|
|
102
|
+
* exact-match check) to avoid prefix false-positives like `/work` matching
|
|
103
|
+
* `/workspace`.
|
|
104
|
+
*/
|
|
105
|
+
export declare function isPathInsideWorkspace(options: IsPathInsideWorkspaceOptions): boolean;
|