@builder.io/dev-tools 1.23.1-dev.202602041136.20ed347c4 → 1.23.2-dev.202602050723.fe3b61289
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 +18879 -18771
- 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 +628 -639
- package/server/index.mjs +628 -639
- package/types/cli/code-tools.d.ts +0 -9
- package/types/cli/codegen.d.ts +6 -0
- package/types/cli/indexing.d.ts +5 -0
- package/types/cli/launch/dev-server-orchestrator.d.ts +4 -1
- package/types/cli/launch/github.d.ts +3 -0
- package/types/cli/repo-indexing.d.ts +17 -0
- package/types/cli/repo-indexing.mock.d.ts +5 -0
- package/types/cli/sync-utils.d.ts +2 -1
- package/types/cli/utils/dev-server-url-parser.d.ts +12 -0
- package/types/cli/utils/dev-server-url-parser.test.d.ts +1 -0
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +1 -0
- package/types/tsconfig.tsbuildinfo +1 -1
- package/cli/pkg-entry.cjs +0 -149
- package/types/cli/utils/browser-qa-agent.d.ts +0 -2
- /package/types/{cli/__tests__/globSearch.spec.d.ts → _tests_/codegen-git-path-handling.test.d.ts} +0 -0
|
@@ -28,8 +28,6 @@ export interface ToolContext {
|
|
|
28
28
|
canCollapseWorkspace: boolean;
|
|
29
29
|
signal: AbortSignal;
|
|
30
30
|
workingDirectory: string;
|
|
31
|
-
proxyDst: string | undefined;
|
|
32
|
-
proxyOrigin: string | undefined;
|
|
33
31
|
allowedCommands: RegExp[];
|
|
34
32
|
enabledTools: (keyof CodeGenToolMap)[];
|
|
35
33
|
localMCPManager: LocalMCPClientManager | undefined;
|
|
@@ -85,7 +83,6 @@ export interface ToolContext {
|
|
|
85
83
|
} | null>;
|
|
86
84
|
}
|
|
87
85
|
export declare function resolveToolCalls(toolContext: ToolContext, toolCalls: LLMToolCalls[], existingToolResults: ContentMessageItemToolResult[] | undefined, onStep: (step: GenerateCompletionStep) => void): Promise<ContentMessageItemToolResult[]>;
|
|
88
|
-
export declare function globSearch(toolContext: ToolContext, { pattern }: CodeGenToolMap["Glob"]): Promise<ToolResolution>;
|
|
89
86
|
interface RipgrepMatch {
|
|
90
87
|
path: string;
|
|
91
88
|
lineNumber: number;
|
|
@@ -96,12 +93,6 @@ interface RipgrepResult {
|
|
|
96
93
|
}
|
|
97
94
|
export declare function runRipgrep(sys: DevToolsSys, bashWorkingDirectory: string, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
|
|
98
95
|
export declare function getRipgrepExecutable(sys: DevToolsSys): Promise<string>;
|
|
99
|
-
/**
|
|
100
|
-
* Normalizes a glob pattern for use with ripgrep --files --glob.
|
|
101
|
-
* Adds recursive prefix when needed for better matching.
|
|
102
|
-
* @param pattern - The glob pattern to normalize
|
|
103
|
-
*/
|
|
104
|
-
export declare function normalizeGlobPattern(pattern: string): string;
|
|
105
96
|
/**
|
|
106
97
|
* Returns true if query is likely a string literal rather than a regex.
|
|
107
98
|
* Returns false otherwise.
|
package/types/cli/codegen.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export declare class CodeGenSession {
|
|
|
245
245
|
lastTurnHasChanges(): Promise<boolean>;
|
|
246
246
|
waitUntilState(state: GenerateCompletionState, timeout?: number): Promise<void>;
|
|
247
247
|
getProxyOrigin(): string | undefined;
|
|
248
|
+
getProxyDestination(): string | undefined;
|
|
248
249
|
clearSession(): Promise<void>;
|
|
249
250
|
clearMessageQueue(emitUserMessages?: boolean): Promise<void>;
|
|
250
251
|
updateMessage(opts: MessageUpdateOptions): void;
|
|
@@ -261,6 +262,11 @@ export declare class CodeGenSession {
|
|
|
261
262
|
state: "installed" | "not-installed" | "install-failed" | "install-aborted";
|
|
262
263
|
shouldProceed: boolean;
|
|
263
264
|
}>;
|
|
265
|
+
waitForDevServer(signal?: AbortSignal): Promise<{
|
|
266
|
+
shouldProceed: boolean;
|
|
267
|
+
message: string;
|
|
268
|
+
serverUrl?: string;
|
|
269
|
+
}>;
|
|
264
270
|
getNamedAgentConfig(agentName: string | undefined, sessionId: string, signal?: AbortSignal): Promise<{
|
|
265
271
|
success: true;
|
|
266
272
|
options: CodeGenSessionOptions;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
import { type Credentials } from "./credentials";
|
|
4
|
+
export declare const runCodeIndexing: (_sys: DevToolsSys, _args: CLIArgs) => Promise<void>;
|
|
5
|
+
export declare const codeIndexing: (sys: DevToolsSys, credentials: Credentials) => Promise<void>;
|
|
@@ -85,7 +85,10 @@ export interface DevServerOrchestrator {
|
|
|
85
85
|
getValidateOutput: () => string;
|
|
86
86
|
getMiseActivationCommand: (shell: string) => Promise<string | null>;
|
|
87
87
|
waitUntilIdle: (initialWaitMs?: number, idleTimeMs?: number) => Promise<void>;
|
|
88
|
-
waitUntilServer: (signal?: AbortSignal) => Promise<
|
|
88
|
+
waitUntilServer: (signal?: AbortSignal) => Promise<{
|
|
89
|
+
ok: boolean;
|
|
90
|
+
message: string;
|
|
91
|
+
}>;
|
|
89
92
|
onClose: (callback: (code: number | null) => void) => void;
|
|
90
93
|
restart: (abortSignal?: AbortSignal) => Promise<DevCommandResult>;
|
|
91
94
|
emitter: EventEmitter<{
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
export interface RepoIndexingDoc {
|
|
4
|
+
name: string;
|
|
5
|
+
content: string | {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
components: string[];
|
|
9
|
+
relevantFiles: string[];
|
|
10
|
+
}[];
|
|
11
|
+
createdDate: string;
|
|
12
|
+
description: string;
|
|
13
|
+
id: string;
|
|
14
|
+
ownerId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const runRepoIndexing: (sys: DevToolsSys, args: CLIArgs) => Promise<void>;
|
|
@@ -13,8 +13,9 @@ export interface GetAllProjectFilesOptions {
|
|
|
13
13
|
deep?: number;
|
|
14
14
|
gitignore?: boolean;
|
|
15
15
|
onlyFiles?: boolean;
|
|
16
|
+
maxFiles?: number;
|
|
16
17
|
}
|
|
17
|
-
export declare function getAllProjectFiles(
|
|
18
|
+
export declare function getAllProjectFiles(options: GetAllProjectFilesOptions): Promise<string[]>;
|
|
18
19
|
export declare function findBuilderFiles(basePath: string, targetContentId: string, targetSessionKey: string): Promise<FileNode[]>;
|
|
19
20
|
export declare function filterNonImportantFiles(files: string[]): string[];
|
|
20
21
|
export declare function getIgnorePatterns(basePath: string): (path: string) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DevServerUrlInfo {
|
|
2
|
+
url: string;
|
|
3
|
+
port: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Parse dev server output to extract URL and port information
|
|
7
|
+
*
|
|
8
|
+
* @param output - The command output string to parse
|
|
9
|
+
* @param customPatterns - Optional array of custom regex patterns to try first
|
|
10
|
+
* @returns Object with url and port, or null if no valid URL found
|
|
11
|
+
*/
|
|
12
|
+
export declare function parseDevServerOutput(output: string, customPatterns?: string[]): DevServerUrlInfo | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const REPO_INDEXING_GROUP_PROMPT: string;
|