@builder.io/ai-utils 0.13.0 → 0.13.1

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.13.0",
3
+ "version": "0.13.1",
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,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 ViewPathToolInput {
50
+ export interface ReadToolInput {
50
51
  file_path: string;
51
52
  view_range?: [number, number];
52
53
  offset?: number | null;
@@ -194,7 +195,7 @@ export interface ReadMcpResourceToolInput {
194
195
  serverName?: string;
195
196
  }
196
197
  export interface CodeGenToolMap {
197
- view_path: ViewPathToolInput;
198
+ view_path: ReadToolInput;
198
199
  glob_search: GlobSearchToolInput;
199
200
  grep_search: GrepSearchToolInput;
200
201
  get_rule: GetRuleToolInput;
@@ -207,7 +208,7 @@ export interface CodeGenToolMap {
207
208
  write_file: WriteFileInput;
208
209
  search_replace_file: SearchReplaceInput;
209
210
  find_media: FindMediaToolInput;
210
- Read: ViewPathToolInput;
211
+ Read: ReadToolInput;
211
212
  Write: WriteFileInput;
212
213
  Edit: SearchReplaceInput;
213
214
  ReadRule: GetRuleToolInput;
@@ -264,6 +265,7 @@ export interface CodeGenInputOptions {
264
265
  customAgents?: CustomAgentInfo[];
265
266
  systemPromptOverride?: string;
266
267
  userPrompt?: string;
268
+ systemRemainderPrompt?: string;
267
269
  ephemeralUserPrompt?: string;
268
270
  uiContextPrompt?: string;
269
271
  displayUserPrompt?: string;
@@ -749,6 +751,7 @@ export interface GenerateUserMessage {
749
751
  export interface UserInput {
750
752
  userMessage: GenerateUserMessage | undefined;
751
753
  userPrompt: string;
754
+ systemRemainderPrompt: string | undefined;
752
755
  attachments: Attachment[];
753
756
  files: ProjectFile[];
754
757
  searchResponse: CodebaseSearchResponse | null;
@@ -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" | "ask-user";
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;