builder.io 1.6.24 → 1.6.25
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 +234 -233
- 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 +34 -34
- package/server/index.mjs +37 -37
- package/types/cli/code-tools.d.ts +10 -0
- package/types/cli/codegen.d.ts +5 -10
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -14,3 +14,13 @@ export declare function resolveToolCalls(sys: DevToolsSys, toolCalls: LLMToolCal
|
|
|
14
14
|
toolResults: ContentMessageItemToolResult[];
|
|
15
15
|
projectFiles: ProjectFile[];
|
|
16
16
|
}>;
|
|
17
|
+
interface RipgrepMatch {
|
|
18
|
+
path: string;
|
|
19
|
+
lineNumber: number;
|
|
20
|
+
lineContent: string;
|
|
21
|
+
}
|
|
22
|
+
interface RipgrepResult {
|
|
23
|
+
matches: RipgrepMatch[];
|
|
24
|
+
}
|
|
25
|
+
export declare function runRipgrep(sys: DevToolsSys, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
|
|
26
|
+
export {};
|
package/types/cli/codegen.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { DevToolsSys } from "../types";
|
|
|
2
2
|
import type { CLIArgs } from "./index";
|
|
3
3
|
import { type Credentials } from "./credentials";
|
|
4
4
|
import { type Checkpoint } from "./incremental-tsc";
|
|
5
|
-
import type { ApplyActionsResult, CodebaseSearchResponse, ContentMessageItemToolResult, CustomInstruction, GenerateCompletionStep, ProjectFile, UserContext } from "$/ai-utils";
|
|
5
|
+
import type { ApplyActionsResult, CodebaseSearchResponse, ContentMessageItemToolResult, CustomInstruction, GenerateCompletionStep, GenerateUserMessage, ProjectFile, UserContext } from "$/ai-utils";
|
|
6
6
|
import prettier from "prettier";
|
|
7
7
|
interface UndoState {
|
|
8
8
|
files: {
|
|
@@ -35,11 +35,6 @@ export interface UserInput {
|
|
|
35
35
|
mostRelevantFile: string | null;
|
|
36
36
|
role: "user" | "agent";
|
|
37
37
|
}
|
|
38
|
-
interface UserMessage {
|
|
39
|
-
userPrompt: string;
|
|
40
|
-
files?: string[];
|
|
41
|
-
includeBaseFiles?: boolean;
|
|
42
|
-
}
|
|
43
38
|
export declare class CodeGenSession {
|
|
44
39
|
#private;
|
|
45
40
|
constructor(sys: DevToolsSys, credentials: Credentials, args: CLIArgs, position: string, initialUrl?: string, mode?: "quality" | "quality-v3" | "fast");
|
|
@@ -49,18 +44,18 @@ export declare class CodeGenSession {
|
|
|
49
44
|
getSessionId(): Promise<string>;
|
|
50
45
|
getSpaceId(): string | undefined;
|
|
51
46
|
undoLastUserMessage(dryRun?: boolean): Promise<string[]>;
|
|
52
|
-
getNextMessage(): Promise<
|
|
47
|
+
getNextMessage(): Promise<GenerateUserMessage>;
|
|
53
48
|
sendFeedback(sentiment: "positive" | "negative" | "undo", message?: string, lastCompletionId?: string | undefined): Promise<void>;
|
|
54
49
|
hasUndoChanges(): Promise<boolean>;
|
|
55
50
|
isBusy(): boolean;
|
|
56
|
-
sendMessage(message:
|
|
51
|
+
sendMessage(message: GenerateUserMessage): void;
|
|
57
52
|
isEventLoopRunning(): boolean;
|
|
58
53
|
getSessionContext(): Promise<SessionContext>;
|
|
59
54
|
abort(): void;
|
|
60
55
|
stopEventLoop(): void;
|
|
61
56
|
startEventLoop(onStep: (step: GenerateCompletionStep) => void): Promise<void>;
|
|
62
|
-
agentCompletion(userMessage:
|
|
63
|
-
getUserInput(userMessage:
|
|
57
|
+
agentCompletion(userMessage: GenerateUserMessage, baselineCheckpoint: Checkpoint, signal: AbortSignal | undefined, onStep: (step: GenerateCompletionStep) => Promise<void> | void): Promise<Checkpoint>;
|
|
58
|
+
getUserInput(userMessage: GenerateUserMessage, signal: AbortSignal | undefined): Promise<UserInput>;
|
|
64
59
|
}
|
|
65
60
|
export declare const createSessionContext: (sys: DevToolsSys) => Promise<SessionContext>;
|
|
66
61
|
export declare function transformStream(body: ReadableStream<Uint8Array> | null): AsyncGenerator<string, void, unknown>;
|