@builder.io/ai-utils 0.44.4 → 0.44.5

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.44.4",
3
+ "version": "0.44.5",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/codegen.d.ts CHANGED
@@ -41,6 +41,9 @@ export interface CustomAgentInfo {
41
41
  name: string;
42
42
  description?: string;
43
43
  }
44
+ /** Per-agent model overrides. String = fixed model, string[] = round-robin. */
45
+ export type AgentModelOverrides = Record<string, string | string[]>;
46
+ export type ReviewEffort = "medium" | "high";
44
47
  export interface CustomAgentDefinition {
45
48
  name: string;
46
49
  description?: string;
@@ -61,13 +64,6 @@ export interface CustomAgentDefinition {
61
64
  filePath?: string;
62
65
  /** Default reasoning effort level for this agent type. Overrides the session default. */
63
66
  reasoning?: ReasoningEffort;
64
- /**
65
- * When true and the parent session has an explicit model override (e.g. set
66
- * via org/project PR-reviewer settings), that model is used for this agent
67
- * instead of the agent's own `model` / `roundRobinModels` defaults.
68
- * Has no effect when no session-level model override is present.
69
- */
70
- inheritSessionModel?: boolean;
71
67
  }
72
68
  export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
73
69
  export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
@@ -1383,6 +1379,7 @@ export interface GenerateUserMessage {
1383
1379
  dropAbortedPrompt?: boolean;
1384
1380
  runValidateCommand?: boolean;
1385
1381
  modelOverride?: string;
1382
+ agentModelOverrides?: AgentModelOverrides;
1386
1383
  softContextWindow?: number;
1387
1384
  maxCompletions?: number;
1388
1385
  isManualContinue?: boolean;
@@ -1414,6 +1411,7 @@ export interface UserInput {
1414
1411
  user: UserSource;
1415
1412
  patchFusionConfig?: Partial<FusionConfig> | undefined;
1416
1413
  modelOverride?: string;
1414
+ agentModelOverrides?: AgentModelOverrides;
1417
1415
  category?: CodeGenCategory;
1418
1416
  enabledMCPs?: string[];
1419
1417
  /** @deprecated */
@@ -1,4 +1,4 @@
1
- import type { EnvironmentVariable, PrivacyMode } from "./codegen";
1
+ import type { EnvironmentVariable, PrivacyMode, ReviewEffort } from "./codegen";
2
2
  export interface GithubEnterpriseSetupValue {
3
3
  host: string;
4
4
  clientId: string;
@@ -94,7 +94,7 @@ interface OrganizationSettings {
94
94
  disableFigmaImageUpload?: boolean;
95
95
  prReviewer?: {
96
96
  instructions?: string;
97
- model?: string;
97
+ reviewEffort?: ReviewEffort;
98
98
  };
99
99
  enableTicketAssessment?: boolean;
100
100
  ticketAssessmentPrompt?: string;
package/src/projects.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ConnectivityErrorCode, CheckType, LikelyCause } from "./connectivity/types.js";
2
- import type { FileOverride, EnvironmentVariable, LaunchServerState, LaunchServerStatus, BranchBackup, CommitMode, CustomInstruction, CustomAgentDefinition, GitSnapshot, AutoPushMode, GenerateUserMessage, CodeGenToolMap, GenerateCompletionStep } from "./codegen";
2
+ import type { FileOverride, EnvironmentVariable, LaunchServerState, LaunchServerStatus, BranchBackup, CommitMode, CustomInstruction, CustomAgentDefinition, GitSnapshot, AutoPushMode, GenerateUserMessage, CodeGenToolMap, GenerateCompletionStep, ReviewEffort } from "./codegen";
3
3
  import type { FallbackTokensPrivate } from "./organization";
4
4
  /**
5
5
  * Temporary type for date fields during migration.
@@ -656,7 +656,7 @@ export interface Project {
656
656
  prReviewer?: {
657
657
  enabled: boolean;
658
658
  instructions?: string;
659
- model?: string;
659
+ reviewEffort?: ReviewEffort;
660
660
  };
661
661
  enableSnapshots?: boolean;
662
662
  postMergeMemories?: boolean;