@builder.io/ai-utils 0.13.0 → 0.13.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 +15 -3
- package/src/organization.d.ts +7 -0
- package/src/projects.d.ts +2 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface CustomInstruction {
|
|
|
28
28
|
filePath?: string;
|
|
29
29
|
glob?: string;
|
|
30
30
|
description?: string;
|
|
31
|
+
allowedTools?: string[];
|
|
31
32
|
}
|
|
32
33
|
export interface CustomAgentInfo {
|
|
33
34
|
name: string;
|
|
@@ -46,7 +47,7 @@ export interface CustomAgentDefinition {
|
|
|
46
47
|
export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
|
|
47
48
|
export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
|
|
48
49
|
export type CompletionStopReason = "max_tokens" | "stop_sequence" | "tool_use" | "end_turn" | "content_filter" | "error" | "aborted" | "pause_turn" | "refusal" | "model_context_window_exceeded" | null;
|
|
49
|
-
export interface
|
|
50
|
+
export interface ReadToolInput {
|
|
50
51
|
file_path: string;
|
|
51
52
|
view_range?: [number, number];
|
|
52
53
|
offset?: number | null;
|
|
@@ -122,6 +123,14 @@ export interface FindMediaToolInput {
|
|
|
122
123
|
orientation?: "landscape" | "portrait" | "square" | null;
|
|
123
124
|
hex_color?: string | null;
|
|
124
125
|
}
|
|
126
|
+
export interface MediaToolInput {
|
|
127
|
+
query: string;
|
|
128
|
+
type: "image" | "video" | "gen-image";
|
|
129
|
+
orientation?: "landscape" | "portrait" | "square" | null;
|
|
130
|
+
hex_color?: string | null;
|
|
131
|
+
/** Reference image URLs for AI image generation (only used with type: "gen-image") */
|
|
132
|
+
input_image_urls?: string[] | null;
|
|
133
|
+
}
|
|
125
134
|
export interface MemoryToolInput {
|
|
126
135
|
memory: string;
|
|
127
136
|
memory_id?: string | null;
|
|
@@ -194,7 +203,7 @@ export interface ReadMcpResourceToolInput {
|
|
|
194
203
|
serverName?: string;
|
|
195
204
|
}
|
|
196
205
|
export interface CodeGenToolMap {
|
|
197
|
-
view_path:
|
|
206
|
+
view_path: ReadToolInput;
|
|
198
207
|
glob_search: GlobSearchToolInput;
|
|
199
208
|
grep_search: GrepSearchToolInput;
|
|
200
209
|
get_rule: GetRuleToolInput;
|
|
@@ -207,7 +216,7 @@ export interface CodeGenToolMap {
|
|
|
207
216
|
write_file: WriteFileInput;
|
|
208
217
|
search_replace_file: SearchReplaceInput;
|
|
209
218
|
find_media: FindMediaToolInput;
|
|
210
|
-
Read:
|
|
219
|
+
Read: ReadToolInput;
|
|
211
220
|
Write: WriteFileInput;
|
|
212
221
|
Edit: SearchReplaceInput;
|
|
213
222
|
ReadRule: GetRuleToolInput;
|
|
@@ -215,6 +224,7 @@ export interface CodeGenToolMap {
|
|
|
215
224
|
GetScreenshot: GetScreenshotToolInput;
|
|
216
225
|
MultiEdit: MultiSearchReplaceInput;
|
|
217
226
|
FindMedia: FindMediaToolInput;
|
|
227
|
+
Media: MediaToolInput;
|
|
218
228
|
Memory: MemoryToolInput;
|
|
219
229
|
Bash: BashToolInput;
|
|
220
230
|
PowerShell: PowerShellToolInput;
|
|
@@ -264,6 +274,7 @@ export interface CodeGenInputOptions {
|
|
|
264
274
|
customAgents?: CustomAgentInfo[];
|
|
265
275
|
systemPromptOverride?: string;
|
|
266
276
|
userPrompt?: string;
|
|
277
|
+
systemRemainderPrompt?: string;
|
|
267
278
|
ephemeralUserPrompt?: string;
|
|
268
279
|
uiContextPrompt?: string;
|
|
269
280
|
displayUserPrompt?: string;
|
|
@@ -749,6 +760,7 @@ export interface GenerateUserMessage {
|
|
|
749
760
|
export interface UserInput {
|
|
750
761
|
userMessage: GenerateUserMessage | undefined;
|
|
751
762
|
userPrompt: string;
|
|
763
|
+
systemRemainderPrompt: string | undefined;
|
|
752
764
|
attachments: Attachment[];
|
|
753
765
|
files: ProjectFile[];
|
|
754
766
|
searchResponse: CodebaseSearchResponse | null;
|
package/src/organization.d.ts
CHANGED
|
@@ -13,6 +13,12 @@ export interface BitbucketEnterprisePAT {
|
|
|
13
13
|
host: string;
|
|
14
14
|
botUsername: string;
|
|
15
15
|
}
|
|
16
|
+
export interface GitlabEnterprisePATValue {
|
|
17
|
+
token: string;
|
|
18
|
+
host: string;
|
|
19
|
+
botUsername: string;
|
|
20
|
+
secondaryHost?: string;
|
|
21
|
+
}
|
|
16
22
|
interface OrganizationSettings {
|
|
17
23
|
attribution?: string[];
|
|
18
24
|
visualEditorAiStyleInspirationURL?: string;
|
|
@@ -26,6 +32,7 @@ interface OrganizationSettings {
|
|
|
26
32
|
isUserPluginIntegrationRequestGranted?: boolean;
|
|
27
33
|
shopify?: boolean;
|
|
28
34
|
githubEnterpriseSetupValue?: GithubEnterpriseSetupValue;
|
|
35
|
+
gitlabEnterprisePAT?: GitlabEnterprisePATValue;
|
|
29
36
|
bitbucketEnterprisePAT?: BitbucketEnterprisePAT;
|
|
30
37
|
useProxy?: boolean;
|
|
31
38
|
fusionShareableUrlSuffix?: string;
|
package/src/projects.d.ts
CHANGED
|
@@ -409,9 +409,10 @@ export interface Project {
|
|
|
409
409
|
validateCommand?: string;
|
|
410
410
|
proxyOrigin?: string;
|
|
411
411
|
proxyDefaultOrigin?: string;
|
|
412
|
-
gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom"
|
|
412
|
+
gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom";
|
|
413
413
|
setupDependencies?: SetupDependency[];
|
|
414
414
|
gitBranchNamingCustom?: string;
|
|
415
|
+
askUserForBranchName?: boolean;
|
|
415
416
|
devServerCommand?: string;
|
|
416
417
|
cpuKind?: CpuKind;
|
|
417
418
|
cpus?: 1 | 2 | 4;
|