builder.io 1.17.30 → 1.17.31
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 +576 -561
- 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 +89 -89
- package/server/index.mjs +88 -88
- package/types/cli/codegen.d.ts +0 -3
- package/types/cli/launch/dev-server-orchestrator.d.ts +3 -1
- package/types/cli/mcp-local.d.ts +4 -8
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -53,9 +53,6 @@ export interface SpawnAgentResult {
|
|
|
53
53
|
importantFiles: SetImportantFilesToolInput;
|
|
54
54
|
lastTurn?: CodegenTurn;
|
|
55
55
|
}
|
|
56
|
-
export { type SubAgent } from "./utils/agent-discovery";
|
|
57
|
-
export { resolveModelShortcut } from "./utils/agent-parser";
|
|
58
|
-
export { getCustomAgents } from "./utils/agent-discovery";
|
|
59
56
|
export type CodeGenEventEmitter = EventEmitter<{
|
|
60
57
|
step: [GenerateCompletionStep];
|
|
61
58
|
idle: [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
2
|
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
|
-
import type { DevCommandResult, DevCommandState, EnvironmentVariable, HttpServerState, SetupCommandResult, SetupDependency } from "$/ai-utils";
|
|
3
|
+
import type { DevCommandResult, DevCommandState, EnvironmentVariable, HttpServerState, SetupCommandResult, SetupDependency, ValidateCommandResult } from "$/ai-utils";
|
|
4
4
|
import EventEmitter from "events";
|
|
5
5
|
import type { FusionConfig, SetupCommandState } from "$/ai-utils";
|
|
6
6
|
export type DevServerState = Exclude<SetupCommandState | DevCommandState, "installed" | "starting">;
|
|
@@ -65,6 +65,8 @@ export interface DevServerOrchestrator {
|
|
|
65
65
|
updatedProxyServer: boolean;
|
|
66
66
|
updatedHosts: boolean;
|
|
67
67
|
}>;
|
|
68
|
+
hasValidateCommand: boolean;
|
|
69
|
+
runValidateCommand: (command?: string | null, signal?: AbortSignal) => Promise<ValidateCommandResult>;
|
|
68
70
|
setPort: (newPort: number) => Promise<boolean>;
|
|
69
71
|
setAutoDetectSettings: (enabled: boolean, patterns?: string[]) => Promise<boolean>;
|
|
70
72
|
addCheckpoint: () => void;
|
package/types/cli/mcp-local.d.ts
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* - Tools are prefixed with server name: `mcp__servername__toolname`
|
|
9
9
|
* - This prevents conflicts with built-in tools and other MCP tools
|
|
10
10
|
*/
|
|
11
|
-
import type { MCPClientStatus, MCPServerConfig } from "$/ai-utils";
|
|
11
|
+
import type { ContentMessageItemImage, ContentMessageItemText, MCPClientStatus, MCPServerConfig } from "$/ai-utils";
|
|
12
12
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
13
|
+
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
13
14
|
import type { DevToolsSys } from "../core";
|
|
14
|
-
import { type ChildProcess } from "child_process";
|
|
15
15
|
export interface MCPServerStdioDefinition {
|
|
16
16
|
name: string;
|
|
17
17
|
command: string;
|
|
@@ -24,7 +24,7 @@ export interface MCPConfig {
|
|
|
24
24
|
}
|
|
25
25
|
export interface LocalMCPClient {
|
|
26
26
|
client: Client | undefined;
|
|
27
|
-
|
|
27
|
+
transport: StdioClientTransport | undefined;
|
|
28
28
|
status: MCPClientStatus;
|
|
29
29
|
serverName: string;
|
|
30
30
|
command: string;
|
|
@@ -44,11 +44,7 @@ export interface LocalMCPClientManager {
|
|
|
44
44
|
serverName: string;
|
|
45
45
|
}[];
|
|
46
46
|
callTool: (name: string, args?: any, signal?: AbortSignal) => Promise<{
|
|
47
|
-
content:
|
|
48
|
-
type: string;
|
|
49
|
-
text?: string;
|
|
50
|
-
data?: any;
|
|
51
|
-
}>;
|
|
47
|
+
content: (ContentMessageItemText | ContentMessageItemImage)[];
|
|
52
48
|
isError?: boolean;
|
|
53
49
|
}>;
|
|
54
50
|
getResources: (serverName?: string) => Array<{
|