@builder.io/ai-utils 0.12.1 → 0.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -28,6 +28,17 @@ export interface CustomInstruction {
28
28
  glob?: string;
29
29
  description?: string;
30
30
  }
31
+ export interface CustomAgentInfo {
32
+ name: string;
33
+ description?: string;
34
+ }
35
+ export interface CustomAgentDefinition {
36
+ name: string;
37
+ description?: string;
38
+ systemPrompt?: string;
39
+ tools?: string[];
40
+ model?: string;
41
+ }
31
42
  export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
32
43
  export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
33
44
  export type CompletionStopReason = "max_tokens" | "stop_sequence" | "tool_use" | "end_turn" | "content_filter" | "error" | "aborted" | "pause_turn" | "refusal" | "model_context_window_exceeded" | null;
@@ -125,6 +136,7 @@ export interface AskUserQuestionToolInput {
125
136
  export interface AgentToolInput {
126
137
  description: string;
127
138
  prompt: string;
139
+ subagent_type?: string;
128
140
  }
129
141
  export interface ListDirToolInput {
130
142
  path: string;
@@ -235,6 +247,8 @@ export interface CodeGenInputOptions {
235
247
  diffActions?: boolean;
236
248
  planningPrompt?: boolean;
237
249
  customInstructions?: CustomInstruction[];
250
+ customAgents?: CustomAgentInfo[];
251
+ systemPromptOverride?: string;
238
252
  userPrompt?: string;
239
253
  ephemeralUserPrompt?: string;
240
254
  uiContextPrompt?: string;
@@ -947,7 +961,7 @@ export type MachineConfig = (RemoteMachineConfig & {
947
961
  environment: "local";
948
962
  };
949
963
  export interface PrivacyMode {
950
- encrypt: boolean;
964
+ enabled: boolean;
951
965
  encryptKey?: string;
952
966
  /**
953
967
  * Path to a file containing the encryption key for privacy mode.
@@ -991,6 +1005,13 @@ export interface FileOverride {
991
1005
  */
992
1006
  content: string;
993
1007
  }
1008
+ export interface MCPServerDefinition {
1009
+ command: string;
1010
+ args?: string[];
1011
+ env?: Record<string, string>;
1012
+ envFile?: string;
1013
+ }
1014
+ export type MCPServerConfig = Record<string, MCPServerDefinition>;
994
1015
  export interface FusionConfig {
995
1016
  devCommand?: string;
996
1017
  checkCommand?: string;
@@ -1072,16 +1093,21 @@ export interface FusionConfig {
1072
1093
  * Servers defined here will be merged with servers from mcp.json.
1073
1094
  * Supports environment variable substitution using ${VAR_NAME} syntax.
1074
1095
  */
1075
- mcpServers?: Record<string, {
1076
- command: string;
1077
- args?: string[];
1078
- env?: Record<string, string>;
1079
- envFile?: string;
1080
- }>;
1096
+ mcpServers?: MCPServerConfig;
1081
1097
  /**
1082
1098
  * List of built-in tools to disable.
1083
1099
  */
1084
1100
  disabledTools?: string[];
1101
+ /**
1102
+ * Custom instructions/rules to inject into the code generation session.
1103
+ * These are merged with filesystem-discovered custom instructions.
1104
+ */
1105
+ customInstructions?: CustomInstruction[];
1106
+ /**
1107
+ * Custom agents to inject into the code generation session.
1108
+ * These are merged with filesystem-discovered agents.
1109
+ */
1110
+ customAgents?: CustomAgentDefinition[];
1085
1111
  /** @deprecated use devCommand */
1086
1112
  command?: string;
1087
1113
  }
@@ -88,6 +88,9 @@ export interface AddDesignSystemInput {
88
88
  spaceId: string;
89
89
  rootOrgId: string;
90
90
  scope: DesignSystemScope;
91
+ gitOriginUrl: string | undefined;
92
+ gitRelativePath: string | undefined;
93
+ cliArgs: string[];
91
94
  }
92
95
  export interface UpdateDesignSystemInput {
93
96
  id: string;
@@ -111,6 +114,9 @@ export interface DesignSystem {
111
114
  status: "in-progress" | "completed" | "failed";
112
115
  scope: DesignSystemScope;
113
116
  deprecated: boolean;
117
+ gitOriginUrl: string | undefined;
118
+ gitRelativePath: string | undefined;
119
+ cliArgs: string[];
114
120
  }
115
121
  export interface DisplayDesignSystem extends DesignSystem {
116
122
  docCount: number;