@builder.io/ai-utils 0.37.1 → 0.38.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.37.1",
3
+ "version": "0.38.1",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -35,6 +35,8 @@ export interface CustomInstruction {
35
35
  disableModelInvocation?: boolean;
36
36
  userInvocable?: boolean;
37
37
  }
38
+ /** Reasoning effort level for LLM completions. */
39
+ export type ReasoningEffort = "low" | "medium" | "high" | "minimal";
38
40
  export interface CustomAgentInfo {
39
41
  name: string;
40
42
  description?: string;
@@ -56,6 +58,8 @@ export interface CustomAgentDefinition {
56
58
  asyncSubAgents?: boolean;
57
59
  queueMode?: QueueMode;
58
60
  filePath?: string;
61
+ /** Default reasoning effort level for this agent type. Overrides the session default. */
62
+ reasoning?: ReasoningEffort;
59
63
  }
60
64
  export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
61
65
  export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
@@ -551,35 +555,34 @@ export interface SetEnvVariableToolInput {
551
555
  explanation?: string;
552
556
  }
553
557
  export interface SendMessageToolInput {
554
- channelId: string;
558
+ channel_id: string;
555
559
  markdown: string;
556
560
  status: "starting" | "question" | "will-follow-up" | "done:success" | "done:error";
557
- loadingMessage?: string;
561
+ loading_message?: string;
558
562
  /**
559
563
  * When true, send the response as a voice message using text-to-speech.
560
564
  * Only supported for Telegram channels.
561
565
  */
562
- voiceResponse?: boolean;
566
+ voice_response?: boolean;
563
567
  }
564
568
  export interface SpawnBranchToolInput {
565
- projectId: string;
569
+ project_id: string;
566
570
  message: string;
567
- builderUserId?: string;
571
+ builder_user_id?: string;
568
572
  hidden?: boolean;
569
- sourceChannelId?: string;
570
- sourceDmId?: string;
571
- sessionMode?: "normal" | "planning" | "deep-research";
573
+ origin_channel_id?: string;
574
+ session_mode?: "normal" | "planning" | "deep-research";
572
575
  model?: "auto" | "opus" | "sonnet" | "haiku";
573
- attachmentUrls?: string[];
576
+ attachment_urls?: string[];
574
577
  }
575
578
  export interface ReadBranchToolInput {
576
- projectId: string;
577
- branchName: string;
579
+ project_id: string;
580
+ branch_name: string;
578
581
  }
579
582
  export interface ArchiveBranchToolInput {
580
- projectId: string;
581
- branchName: string;
582
- builderUserId: string;
583
+ project_id: string;
584
+ branch_name: string;
585
+ builder_user_id: string;
583
586
  reason?: string;
584
587
  }
585
588
  /** Comment for PR review - used by both SubmitPRReview and SubmitRecording */
@@ -737,8 +740,9 @@ export interface CodeGenInputOptions {
737
740
  encryptKey?: string;
738
741
  modelOverride?: string;
739
742
  errorIfHadCompaction?: boolean;
743
+ softContextWindow?: number;
740
744
  promptVersion?: "v1" | "v2" | "v3";
741
- reasoning?: "low" | "medium" | "high" | "minimal";
745
+ reasoning?: ReasoningEffort;
742
746
  redactUserMessages?: boolean;
743
747
  redactLLMMessages?: boolean;
744
748
  environmentVariables?: EnvironmentVariable[];
@@ -1294,6 +1298,7 @@ export interface GenerateUserMessage {
1294
1298
  dropAbortedPrompt?: boolean;
1295
1299
  runValidateCommand?: boolean;
1296
1300
  modelOverride?: string;
1301
+ softContextWindow?: number;
1297
1302
  maxCompletions?: number;
1298
1303
  isManualContinue?: boolean;
1299
1304
  includeRelevantMemories?: boolean;
package/src/projects.d.ts CHANGED
@@ -990,6 +990,8 @@ export interface CronJobConfig {
990
990
  description: string;
991
991
  prompt: string;
992
992
  enabled: boolean;
993
+ /** Users who created or last updated this job (e.g. Slack user IDs, emails, display names) */
994
+ maintainers?: string[];
993
995
  }
994
996
  export interface OrgCronConfigOptions {
995
997
  jobs: CronJobConfig[];