@builder.io/ai-utils 0.38.0 → 0.38.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.38.0",
3
+ "version": "0.38.2",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -272,6 +272,12 @@ export interface TimelineEvent {
272
272
  durationMs?: number;
273
273
  thinking?: string;
274
274
  }
275
+ export interface CursorPosition {
276
+ x: number;
277
+ y: number;
278
+ viewportWidth: number;
279
+ viewportHeight: number;
280
+ }
275
281
  export interface TimelineFrameMetadata {
276
282
  index: number;
277
283
  timestamp: number;
@@ -537,11 +543,6 @@ export interface VerifyValidateCommandToolInput {
537
543
  command: string;
538
544
  timeout?: number;
539
545
  }
540
- export interface VerifyRuntimeDependencyToolInput {
541
- tool: string;
542
- version: string;
543
- source?: string;
544
- }
545
546
  export interface ProposeEnvVariableToolInput {
546
547
  key: string;
547
548
  value: string;
@@ -555,35 +556,43 @@ export interface SetEnvVariableToolInput {
555
556
  explanation?: string;
556
557
  }
557
558
  export interface SendMessageToolInput {
558
- channelId: string;
559
+ channel_id: string;
559
560
  markdown: string;
560
561
  status: "starting" | "question" | "will-follow-up" | "done:success" | "done:error";
561
- loadingMessage?: string;
562
+ loading_message?: string;
562
563
  /**
563
564
  * When true, send the response as a voice message using text-to-speech.
564
565
  * Only supported for Telegram channels.
565
566
  */
566
- voiceResponse?: boolean;
567
+ voice_response?: boolean;
567
568
  }
568
569
  export interface SpawnBranchToolInput {
569
- projectId: string;
570
+ project_id: string;
570
571
  message: string;
571
- builderUserId?: string;
572
+ builder_user_id?: string;
572
573
  hidden?: boolean;
573
- sourceChannelId?: string;
574
- sourceDmId?: string;
575
- sessionMode?: "normal" | "planning" | "deep-research";
574
+ origin_channel_id?: string;
575
+ session_mode?: "normal" | "planning" | "deep-research";
576
576
  model?: "auto" | "opus" | "sonnet" | "haiku";
577
- attachmentUrls?: string[];
577
+ attachment_urls?: string[];
578
+ }
579
+ export interface CreateProjectToolInput {
580
+ repo_url: string;
581
+ name?: string;
582
+ builder_user_id?: string;
583
+ origin_channel_id?: string;
584
+ initial_message?: string;
585
+ }
586
+ export interface GetAvailableReposToolInput {
578
587
  }
579
588
  export interface ReadBranchToolInput {
580
- projectId: string;
581
- branchName: string;
589
+ project_id: string;
590
+ branch_name: string;
582
591
  }
583
592
  export interface ArchiveBranchToolInput {
584
- projectId: string;
585
- branchName: string;
586
- builderUserId: string;
593
+ project_id: string;
594
+ branch_name: string;
595
+ builder_user_id: string;
587
596
  reason?: string;
588
597
  }
589
598
  /** Comment for PR review - used by both SubmitPRReview and SubmitRecording */
@@ -688,11 +697,12 @@ export interface CodeGenToolMap {
688
697
  VerifyDevCommand: VerifyDevCommandToolInput;
689
698
  VerifyDevServer: VerifyDevServerToolInput;
690
699
  VerifyValidateCommand: VerifyValidateCommandToolInput;
691
- VerifyRuntimeDependency: VerifyRuntimeDependencyToolInput;
692
700
  ProposeEnvVariable: ProposeEnvVariableToolInput;
693
701
  SetEnvVariable: SetEnvVariableToolInput;
694
702
  SendMessage: SendMessageToolInput;
695
703
  SpawnBranch: SpawnBranchToolInput;
704
+ CreateProject: CreateProjectToolInput;
705
+ GetAvailableRepos: GetAvailableReposToolInput;
696
706
  ReadBranch: ReadBranchToolInput;
697
707
  ArchiveBranch: ArchiveBranchToolInput;
698
708
  RunningAgents: RunningAgentsToolInput;
package/src/projects.d.ts CHANGED
@@ -213,7 +213,7 @@ export interface CleanupCompletedMessage extends BaseMessage {
213
213
  * Messages sent by the container orchestrator.
214
214
  */
215
215
  export type ProjectsChunkMessage = InitializingMessage | FetchingGithubTokenMessage | FetchingFusionKeyMessage | CheckingAppMessage | CleaningUpAppMessage | CreatingAppMessage | CheckingIPMessage | AllocatingIPMessage | CheckingMachineMessage | CheckingVolumeMessage | ForkingVolumeMessage | RetryingWithNewRegionMessage | WaitingBeforePollingMessage | PollingMachineStatusMessage | WarningStateMessage | PingMessage | DebugMessage | ErrorMessage | InfoMessage | WarningMessage | MachineStatusMessage | LogsMessage | ConfigStatusMessage | AppCreatedMessage | MachineCreatedMessage | IpAllocatedMessage | VolumeForkedMessage | ReadyMessage | ErrorStateMessage | CleanupCompletedMessage;
216
- export type GitProvider = "github" | "selfHostedGithub" | "bitbucket" | "gitlab" | "azure";
216
+ export type GitProvider = "github" | "selfHostedGithub" | "bitbucket" | "gitlab" | "azure" | "custom";
217
217
  export interface GitConfig {
218
218
  url: string;
219
219
  provider: GitProvider | "unknown";
@@ -706,6 +706,8 @@ export interface Project {
706
706
  orgAgentConfig?: OrgAgentConfig;
707
707
  /** When true, the project is hidden from normal project listings */
708
708
  hidden?: boolean;
709
+ /** When true, automatically apply verified setup configuration when the setup agent completes */
710
+ autoApplySetup?: boolean;
709
711
  }
710
712
  /**
711
713
  * Get the state of a branch, checking `state` first and falling back to `deleted` for backwards compatibility.
@@ -745,16 +747,19 @@ export interface OrganizationPrivate {
745
747
  export interface CreateProjectOptions {
746
748
  name?: string;
747
749
  repoFullName: string;
748
- repoProvider: string;
750
+ repoProvider: GitProvider;
749
751
  repoProtocol?: string;
750
752
  repoDescription?: string;
751
753
  repoPrivate: boolean;
752
754
  repoUrl: string;
753
755
  needSetup: boolean;
756
+ projectType?: Project["projectType"];
754
757
  domains?: string[];
755
758
  settings?: Partial<Project["settings"]>;
756
759
  isPublic?: boolean;
757
760
  isExample?: boolean;
761
+ isFromUserTemplate?: boolean;
762
+ autoApplySetup?: boolean;
758
763
  templateId?: string;
759
764
  }
760
765
  export interface BuilderMyContext {