@builder.io/ai-utils 0.12.1 → 0.12.2
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 +1 -1
- package/src/codegen.d.ts +32 -6
package/package.json
CHANGED
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;
|
|
@@ -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?:
|
|
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
|
}
|