@builder.io/dev-tools 1.21.3-dev.202601190959.d755e6c7a → 1.21.3-dev.202601191309.b0ff5757f
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 +152 -84
- package/cli/index.cjs.map +3 -3
- 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 +1 -1
- package/types/cli/figma-utils.d.ts +2 -2
- package/types/cli/server-ws.d.ts +10 -10
- package/types/cli/utils/codegen-utils.d.ts +6 -1
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -290,7 +290,7 @@ export declare class CodeGenSession {
|
|
|
290
290
|
* Queues a semantic git status reminder for the LLM.
|
|
291
291
|
* Call this after significant git operations to keep the LLM informed.
|
|
292
292
|
*/
|
|
293
|
-
queueGitStatusReminder(
|
|
293
|
+
queueGitStatusReminder(context: {
|
|
294
294
|
trigger: "session-start" | "sync-success" | "push-success" | "pull-success";
|
|
295
295
|
syncedBranches?: string[];
|
|
296
296
|
pushedToRemote?: boolean;
|
|
@@ -2,13 +2,13 @@ import { type Credentials, type FigmaAuth } from "./credentials";
|
|
|
2
2
|
import type { DevToolsSys } from "../types";
|
|
3
3
|
import type { CLIArgs } from "./index";
|
|
4
4
|
import type { FigmaBuilderLink, FigmaComponentInfo } from "$/ai-utils";
|
|
5
|
-
|
|
5
|
+
interface FigmaAPIOpts {
|
|
6
6
|
auth: {
|
|
7
7
|
access_token: string;
|
|
8
8
|
oauth: boolean;
|
|
9
9
|
};
|
|
10
10
|
params?: Record<string, any>;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
export declare const parseFigmaURL: (str: string) => {
|
|
13
13
|
fileID: string;
|
|
14
14
|
nodeId: string;
|
package/types/cli/server-ws.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import type { Duplex } from "node:stream";
|
|
|
2
2
|
import type { IncomingMessage } from "node:http";
|
|
3
3
|
import type { ServerOptions } from "ws";
|
|
4
4
|
import type { WebSocket } from "ws";
|
|
5
|
-
export
|
|
5
|
+
export interface SocketRequest {
|
|
6
6
|
id: number;
|
|
7
7
|
jsonrpc: string;
|
|
8
8
|
method: string;
|
|
9
9
|
params: any;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
10
|
+
}
|
|
11
|
+
export interface SocketResponse<T = any> {
|
|
12
12
|
id?: number | null;
|
|
13
13
|
jsonrpc: string;
|
|
14
14
|
result?: T;
|
|
@@ -19,24 +19,24 @@ export type SocketResponse<T = any> = {
|
|
|
19
19
|
message: string;
|
|
20
20
|
data?: any;
|
|
21
21
|
};
|
|
22
|
-
}
|
|
23
|
-
export
|
|
22
|
+
}
|
|
23
|
+
export interface SocketSendOptions {
|
|
24
24
|
timeout?: number;
|
|
25
|
-
}
|
|
26
|
-
export
|
|
25
|
+
}
|
|
26
|
+
export interface SocketQueue {
|
|
27
27
|
type: "request" | "notification";
|
|
28
28
|
result?: SocketResponse["result"];
|
|
29
29
|
error?: SocketResponse["error"];
|
|
30
|
-
}
|
|
30
|
+
}
|
|
31
31
|
type RegisterFn<T = any> = (params: T, socketId: string) => Promise<any> | any;
|
|
32
|
-
|
|
32
|
+
interface SocketEvents {
|
|
33
33
|
listening: () => Promise<void> | void;
|
|
34
34
|
connection: (socket: WebSocket, socketId: string) => Promise<void> | void;
|
|
35
35
|
disconnection: (socketId: string) => Promise<void> | void;
|
|
36
36
|
error: (error: Error) => Promise<void> | void;
|
|
37
37
|
"socket-error": (socketId: string, error: Error) => Promise<void> | void;
|
|
38
38
|
close: () => Promise<void> | void;
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
40
|
export declare function RPCWebSocketServer(opts: ServerOptions): {
|
|
41
41
|
on: <EventKey extends keyof SocketEvents>(event: EventKey, cb: SocketEvents[EventKey]) => void;
|
|
42
42
|
event: (e: string) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../core";
|
|
2
2
|
import { type Credentials } from "../credentials";
|
|
3
3
|
export { getCustomInstructions } from "./rules-discovery";
|
|
4
|
-
import type { CodeGenInputOptions, CodegenSetLastCompletion, CodegenTurn, GenerateCodeEvent, GenerateUserMessage, GetSessionTurnsResult, UserContext, WorkspaceConfiguration, EnvironmentVariable, PushChangesArgs, GenerateCompletionStepDevServerState, FusionConfig } from "$/ai-utils";
|
|
4
|
+
import type { CodeGenInputOptions, CodegenSetLastCompletion, CodegenTurn, GenerateCodeEvent, GenerateUserMessage, GetSessionTurnsResult, UserContext, WorkspaceConfiguration, EnvironmentVariable, PushChangesArgs, GenerateCompletionStepDevServerState, FusionConfig, GenerateCompletionStepGit, WorkspaceFolder } from "$/ai-utils";
|
|
5
5
|
import type { SessionContext } from "../codegen";
|
|
6
6
|
import type { DevServerOrchestrator } from "../launch/dev-server-orchestrator";
|
|
7
7
|
export declare const DEFAULT_MAX_COMPLETIONS = 30;
|
|
@@ -80,3 +80,8 @@ export declare function moveArrayElement<T>(arr: T[], old_index: number, new_ind
|
|
|
80
80
|
export declare function canCollapseWorkspace(workspace: WorkspaceConfiguration | undefined): boolean;
|
|
81
81
|
export declare function computeRecommendedRootDir(workspace: WorkspaceConfiguration | undefined): string;
|
|
82
82
|
export declare const getEnvironmentVariablesPrompt: (envs: EnvironmentVariable[]) => string;
|
|
83
|
+
export declare function generateGitStatusReminder(gitStatus: GenerateCompletionStepGit, gitEnabledFolder: WorkspaceFolder | undefined, context: {
|
|
84
|
+
trigger: "session-start" | "sync-success" | "push-success" | "pull-success";
|
|
85
|
+
syncedBranches?: string[];
|
|
86
|
+
pushedToRemote?: boolean;
|
|
87
|
+
}): string;
|