@builder.io/ai-utils 0.5.9 → 0.5.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +43 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -560,12 +560,19 @@ export interface UserSourceAzure {
560
560
  role: "user" | "agent";
561
561
  principals?: string[];
562
562
  }
563
+ export interface UserSourceBitbucket {
564
+ source: "bitbucket";
565
+ userName: string;
566
+ link?: string;
567
+ role: "user" | "agent";
568
+ principals?: string[];
569
+ }
563
570
  export interface UserSourceAgent {
564
571
  source: "agent";
565
572
  role: "agent";
566
573
  principals?: string[];
567
574
  }
568
- export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceAgent;
575
+ export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceBitbucket | UserSourceAgent;
569
576
  export interface GenerateUserMessage {
570
577
  user?: UserSource;
571
578
  userPrompt: string;
@@ -731,6 +738,22 @@ export interface AccessResult {
731
738
  allowed: boolean;
732
739
  message: string;
733
740
  }
741
+ export type RemoteMachineConfig = {
742
+ cpus: number;
743
+ memory: number;
744
+ region: string;
745
+ cpuKind: "performance" | "shared";
746
+ volumeSize: number;
747
+ };
748
+ export type MachineConfig = (RemoteMachineConfig & {
749
+ environment: "remote";
750
+ }) | {
751
+ cpus: number;
752
+ memory: number;
753
+ platform: string;
754
+ arch: string;
755
+ environment: "local";
756
+ };
734
757
  export interface FusionConfig {
735
758
  devCommand?: string;
736
759
  checkCommand?: string;
@@ -750,6 +773,7 @@ export interface FusionConfig {
750
773
  isLocal?: boolean;
751
774
  envVariables?: Record<string, string>;
752
775
  accessControl?: AclPolicy;
776
+ machine?: RemoteMachineConfig;
753
777
  /** @deprecated use devCommand */
754
778
  command?: string;
755
779
  }
@@ -811,4 +835,22 @@ export interface LaunchServerStatus {
811
835
  devToolsVersion: string;
812
836
  lastRequestTime: number;
813
837
  startTime: number;
838
+ machine?: MachineConfig;
839
+ projectId?: string;
840
+ }
841
+ export interface FusionStatus {
842
+ status: "ok";
843
+ state: LaunchServerState;
844
+ setupState?: SetupCommandState;
845
+ devState?: DevCommandState;
846
+ editorReady: boolean;
847
+ httpServerState?: HttpServerState;
848
+ initState?: InitState;
849
+ errorMessage?: string;
850
+ devToolsVersion: string;
851
+ idleTime: number;
852
+ upTime: number;
853
+ machine?: MachineConfig;
854
+ projectId?: string;
855
+ secondsActive?: number;
814
856
  }