@builder.io/ai-utils 0.5.9 → 0.5.11
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 +1 -1
- package/src/codegen.d.ts +52 -2
package/package.json
CHANGED
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,8 @@ export interface FusionConfig {
|
|
|
750
773
|
isLocal?: boolean;
|
|
751
774
|
envVariables?: Record<string, string>;
|
|
752
775
|
accessControl?: AclPolicy;
|
|
776
|
+
machine?: RemoteMachineConfig;
|
|
777
|
+
_attemptDryRunBackupGit?: boolean;
|
|
753
778
|
/** @deprecated use devCommand */
|
|
754
779
|
command?: string;
|
|
755
780
|
}
|
|
@@ -779,7 +804,7 @@ export interface LoadHistoryResult {
|
|
|
779
804
|
updatedUnixTime: number;
|
|
780
805
|
turns: CodegenTurn[];
|
|
781
806
|
}
|
|
782
|
-
export type InitStateStep = "initial" | "init" | "validation" | "check-directories" | "create-directories" | "configure-git-repos" | "check-existing-git" | "update-remote-url" | "clone-repo" | "configure-git-user" | "stash-changes" | "init-success" | "init-failed";
|
|
807
|
+
export type InitStateStep = "initial" | "init" | "validation" | "check-directories" | "create-directories" | "configure-git-repos" | "check-existing-git" | "update-remote-url" | "clone-repo" | "configure-git-user" | "stash-changes" | "collect-repo-info" | "init-success" | "init-failed";
|
|
783
808
|
export interface InitStatusLog {
|
|
784
809
|
id: number;
|
|
785
810
|
timestamp: string;
|
|
@@ -795,6 +820,11 @@ export interface InitState {
|
|
|
795
820
|
success: boolean;
|
|
796
821
|
currentStep: InitStateStep;
|
|
797
822
|
error: string | undefined;
|
|
823
|
+
repos: {
|
|
824
|
+
repoName: string;
|
|
825
|
+
enabledGit: boolean;
|
|
826
|
+
lastCommitHash: string;
|
|
827
|
+
}[];
|
|
798
828
|
}
|
|
799
829
|
export type LaunchServerState = "initial" | "init-running" | "init-complete" | "ready" | "active-session" | "error";
|
|
800
830
|
export interface LaunchServerStatus {
|
|
@@ -809,6 +839,26 @@ export interface LaunchServerStatus {
|
|
|
809
839
|
initStatusLogs?: InitStatusLog[];
|
|
810
840
|
errorMessage?: string;
|
|
811
841
|
devToolsVersion: string;
|
|
842
|
+
backupDryRun?: string;
|
|
812
843
|
lastRequestTime: number;
|
|
813
844
|
startTime: number;
|
|
845
|
+
machine?: MachineConfig;
|
|
846
|
+
projectId?: string;
|
|
847
|
+
}
|
|
848
|
+
export interface FusionStatus {
|
|
849
|
+
status: "ok";
|
|
850
|
+
state: LaunchServerState;
|
|
851
|
+
setupState?: SetupCommandState;
|
|
852
|
+
devState?: DevCommandState;
|
|
853
|
+
editorReady: boolean;
|
|
854
|
+
httpServerState?: HttpServerState;
|
|
855
|
+
initState?: InitState;
|
|
856
|
+
errorMessage?: string;
|
|
857
|
+
devToolsVersion: string;
|
|
858
|
+
idleTime: number;
|
|
859
|
+
upTime: number;
|
|
860
|
+
machine?: MachineConfig;
|
|
861
|
+
projectId?: string;
|
|
862
|
+
secondsActive?: number;
|
|
863
|
+
backupDryRun?: string;
|
|
814
864
|
}
|