@builder.io/ai-utils 0.4.25 → 0.4.27
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 +14 -2
- package/src/projects.d.ts +4 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -630,18 +630,30 @@ export interface LoadHistoryResult {
|
|
|
630
630
|
updatedUnixTime: number;
|
|
631
631
|
turns: CodegenTurn[];
|
|
632
632
|
}
|
|
633
|
+
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";
|
|
634
|
+
export interface InitStatusLog {
|
|
635
|
+
id: number;
|
|
636
|
+
timestamp: string;
|
|
637
|
+
type: "status" | "log" | "error" | "complete";
|
|
638
|
+
message: string;
|
|
639
|
+
step?: InitStateStep;
|
|
640
|
+
error?: string;
|
|
641
|
+
success?: boolean;
|
|
642
|
+
}
|
|
633
643
|
export interface InitState {
|
|
634
644
|
isRunning: boolean;
|
|
635
645
|
isComplete: boolean;
|
|
636
646
|
success: boolean;
|
|
637
|
-
currentStep:
|
|
647
|
+
currentStep: InitStateStep;
|
|
638
648
|
error: string | undefined;
|
|
639
649
|
}
|
|
650
|
+
export type LaunchServerState = "initial" | "init-running" | "init-complete" | "ready" | "active-session" | "error";
|
|
640
651
|
export interface LaunchServerStatus {
|
|
641
652
|
status: "ok";
|
|
642
|
-
state:
|
|
653
|
+
state: LaunchServerState;
|
|
643
654
|
setupState?: SetupCommandState;
|
|
644
655
|
devState?: DevCommandState;
|
|
656
|
+
isFinalState: boolean;
|
|
645
657
|
httpServerState?: HttpServerState;
|
|
646
658
|
editorReady: boolean;
|
|
647
659
|
initState?: InitState;
|
package/src/projects.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LaunchServerStatus } from "./codegen";
|
|
1
2
|
export interface ConfigStatus {
|
|
2
3
|
isReady: boolean;
|
|
3
4
|
lastUpdated: string;
|
|
@@ -129,11 +130,14 @@ export interface ReadyMessage extends BaseMessage {
|
|
|
129
130
|
state: "ready";
|
|
130
131
|
message: string;
|
|
131
132
|
url: string;
|
|
133
|
+
status?: LaunchServerStatus;
|
|
132
134
|
}
|
|
135
|
+
export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions";
|
|
133
136
|
export interface ErrorStateMessage extends BaseMessage {
|
|
134
137
|
state: "error";
|
|
135
138
|
message: string;
|
|
136
139
|
error: string;
|
|
140
|
+
code: EnsureContainerErrorCode;
|
|
137
141
|
}
|
|
138
142
|
export interface CleanupCompletedMessage extends BaseMessage {
|
|
139
143
|
state: "cleanupCompleted";
|