@builder.io/ai-utils 0.38.1 → 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.1",
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;
@@ -575,6 +576,15 @@ export interface SpawnBranchToolInput {
575
576
  model?: "auto" | "opus" | "sonnet" | "haiku";
576
577
  attachment_urls?: string[];
577
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 {
587
+ }
578
588
  export interface ReadBranchToolInput {
579
589
  project_id: string;
580
590
  branch_name: string;
@@ -687,11 +697,12 @@ export interface CodeGenToolMap {
687
697
  VerifyDevCommand: VerifyDevCommandToolInput;
688
698
  VerifyDevServer: VerifyDevServerToolInput;
689
699
  VerifyValidateCommand: VerifyValidateCommandToolInput;
690
- VerifyRuntimeDependency: VerifyRuntimeDependencyToolInput;
691
700
  ProposeEnvVariable: ProposeEnvVariableToolInput;
692
701
  SetEnvVariable: SetEnvVariableToolInput;
693
702
  SendMessage: SendMessageToolInput;
694
703
  SpawnBranch: SpawnBranchToolInput;
704
+ CreateProject: CreateProjectToolInput;
705
+ GetAvailableRepos: GetAvailableReposToolInput;
695
706
  ReadBranch: ReadBranchToolInput;
696
707
  ArchiveBranch: ArchiveBranchToolInput;
697
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 {