@builder.io/ai-utils 0.11.1 → 0.11.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +14 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -249,6 +249,16 @@ export interface CodeGenInputOptions {
249
249
  repoIndexingConfig?: RepoIndexingConfig;
250
250
  enabledTools?: CodeGenTools[];
251
251
  enabledMCPs?: string[];
252
+ /**
253
+ * Local MCP tool definitions from stdio servers (CLI-side only)
254
+ * These tools will be executed on the client side and passed through from the server
255
+ */
256
+ localMCPTools?: Array<{
257
+ name: string;
258
+ description?: string;
259
+ inputSchema?: any;
260
+ serverName: string;
261
+ }>;
252
262
  maxAgentLoops?: number;
253
263
  maxAgentTiming?: number;
254
264
  /**
@@ -448,7 +458,7 @@ export interface GenerateCompletionStepContinue {
448
458
  autoContinue: boolean;
449
459
  }
450
460
  export type DevCommandState = "running" | "stopped" | "starting" | "failed" | "unset";
451
- export type SetupCommandState = "not-installed" | "installing" | "installed" | "install-failed" | "install-aborted" | "unset";
461
+ export type SetupCommandState = "not-installed" | "installing" | "installed" | "install-failed" | "install-aborted";
452
462
  export type HttpServerState = "ok-2xx" | "error-4xx" | "error-5xx" | "error-fetch" | "stopped" | "connecting";
453
463
  export interface CodeGenHealthStatus {
454
464
  devServerState: DevCommandState;
@@ -796,7 +806,7 @@ export interface GenerateCodeEventUser {
796
806
  export interface MCPClientStatus {
797
807
  status: "ok" | "error" | "disabled";
798
808
  message?: string;
799
- protocol?: "streamable-http" | "sse";
809
+ protocol?: "streamable-http" | "sse" | "stdio";
800
810
  connectionDurationMs: number;
801
811
  resolutionDurationMs: number;
802
812
  }
@@ -1120,6 +1130,8 @@ export interface ConfigureDevOrchestratorOpts {
1120
1130
  replaceEnvs?: boolean;
1121
1131
  forceSetupCommand?: boolean;
1122
1132
  forceDevCommand?: boolean;
1133
+ autoDetectDevServer?: boolean;
1134
+ autoDetectDevServerPatterns?: string[];
1123
1135
  }
1124
1136
  export interface LanguageInfo {
1125
1137
  color: string;