@builder.io/ai-utils 0.11.22 → 0.11.24
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 +20 -3
- package/src/messages.d.ts +2 -0
- package/src/projects.d.ts +1 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -611,7 +611,7 @@ export interface GenerateCompletionStepTerminals {
|
|
|
611
611
|
}
|
|
612
612
|
export type GenerateCompletionStep = {
|
|
613
613
|
timestamp?: number;
|
|
614
|
-
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCompletionStepToolCallRequest | GenerateCodeEventMCPStatus | GenerateCompletionStepDevServerState | GenerateCompletionStepAgent | GenerateCompletionStepBatch | GenerateCompletionStepTerminals);
|
|
614
|
+
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCompletionStepToolCallRequest | GenerateCodeEventMCPStatus | GenerateCodeEventMCPAuthRequired | GenerateCompletionStepDevServerState | GenerateCompletionStepAgent | GenerateCompletionStepBatch | GenerateCompletionStepTerminals);
|
|
615
615
|
export interface ApplyActionsResult {
|
|
616
616
|
filePath: string;
|
|
617
617
|
addedLines: number;
|
|
@@ -814,17 +814,33 @@ export interface GenerateCodeEventUser {
|
|
|
814
814
|
compacting: boolean;
|
|
815
815
|
}
|
|
816
816
|
export interface MCPClientStatus {
|
|
817
|
-
status: "ok" | "error" | "disabled";
|
|
817
|
+
status: "ok" | "error" | "disabled" | "auth_required" | "auth_error";
|
|
818
818
|
message?: string;
|
|
819
819
|
protocol?: "streamable-http" | "sse" | "stdio";
|
|
820
820
|
connectionDurationMs: number;
|
|
821
821
|
resolutionDurationMs: number;
|
|
822
|
+
authorizationUrl?: string;
|
|
823
|
+
scopes?: string[];
|
|
824
|
+
isReauth?: boolean;
|
|
822
825
|
}
|
|
823
826
|
export interface GenerateCodeEventMCPStatus {
|
|
824
827
|
type: "mcp-status";
|
|
825
828
|
status: Record<string, MCPClientStatus>;
|
|
826
829
|
}
|
|
827
|
-
export
|
|
830
|
+
export interface MCPAuthRequiredServer {
|
|
831
|
+
serverId: string;
|
|
832
|
+
name: string;
|
|
833
|
+
url: string;
|
|
834
|
+
authorizationUrl: string;
|
|
835
|
+
scopes: string[];
|
|
836
|
+
isReauth: boolean;
|
|
837
|
+
}
|
|
838
|
+
export interface GenerateCodeEventMCPAuthRequired {
|
|
839
|
+
type: "mcp-auth-required";
|
|
840
|
+
servers: Array<MCPAuthRequiredServer>;
|
|
841
|
+
message: string;
|
|
842
|
+
}
|
|
843
|
+
export type GenerateCodeEvent = ActionItem | GenerateCodeEventDone | GenerateCodeEventContinue | GenerateCodeEventPagination | GenerateCodeEventDelta | GenerateCodeEventError | GenerateCodeEventPing | GenerateCodeEventMCPStatus | GenerateCodeEventMCPAuthRequired | GenerateCodeEventUser;
|
|
828
844
|
export type CommitMode = "commits" | "draft-prs" | "prs";
|
|
829
845
|
export interface GitBackupDownloadUrlResult {
|
|
830
846
|
signedUrl: string;
|
|
@@ -1013,6 +1029,7 @@ export interface FusionConfig {
|
|
|
1013
1029
|
honorCipherOrder?: boolean;
|
|
1014
1030
|
requestCert?: boolean;
|
|
1015
1031
|
rejectUnauthorized?: boolean;
|
|
1032
|
+
port?: number;
|
|
1016
1033
|
};
|
|
1017
1034
|
localHttpsDomain?: string;
|
|
1018
1035
|
https?: boolean;
|
package/src/messages.d.ts
CHANGED
|
@@ -155,6 +155,8 @@ export interface MCPServerURLDefinition {
|
|
|
155
155
|
tool_configuration?: MCPServerToolConfiguration | null;
|
|
156
156
|
token_expires_at?: number | null;
|
|
157
157
|
create_date?: number | null;
|
|
158
|
+
serverId: string;
|
|
159
|
+
disabled: boolean;
|
|
158
160
|
}
|
|
159
161
|
export interface MCPServerToolConfiguration {
|
|
160
162
|
allowed_tools?: Array<string> | null;
|
package/src/projects.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export interface ReadyMessage extends BaseMessage {
|
|
|
135
135
|
export type MachineState = "unknown" | "created" | "starting" | "started" | "stopping" | "stopped" | "suspending" | "suspended" | "replacing" | "destroying" | "destroyed" | "not-found" | "running" | "failed";
|
|
136
136
|
export type FlyVolumeState = "unknown" | "creating" | "created" | "extending" | "restoring" | "enabling_remote_export" | "hydrating" | "recovering" | "scheduling_destroy" | "pending_destroy" | "failed";
|
|
137
137
|
export type GitAuthErrorCode = "git-auth-failed" | "git-auth-failed-root-repo" | "git-auth-failed-folder-added-by" | "git-auth-failed-folder-created-by" | "git-auth-failed-folder-server-token" | "git-auth-failed-root-repo-server-token";
|
|
138
|
-
export type EnsureContainerErrorCode = "FAILED_TO_START_MACHINE_ERROR" | "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_PERMISSIONS_TOKEN_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" | "FLY_DEPRECATED_REGION_ERROR" | "FLY_VOLUME_NOT_FOUND" | "FLY_MACHINE_LIMIT_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | GitAuthErrorCode | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-branch-no-session-id" | "project-repo-full-name-not-found" | "project-org-not-found" | "invalid-project-repo-url-already-in-use" | "no-available-regions" | "invalid-backup-without-volume-id" | "missing-app-with-machine-or-volume" | "update-branch-info-in-firebase" | "update-branch-app-name-in-firebase" | `machine-status-polling-${MachineState}` | `machine-image-exited-immediately` | `volume-not-found-${FlyVolumeState}` | "trying-to-remove-used-volume" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
138
|
+
export type EnsureContainerErrorCode = "FAILED_TO_START_MACHINE_ERROR" | "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_PERMISSIONS_TOKEN_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" | "FLY_DEPRECATED_REGION_ERROR" | "FLY_VOLUME_NOT_FOUND" | "FLY_MACHINE_LIMIT_ERROR" | "KUBE_CAPACITY_ERROR" | "KUBE_PERMISSIONS_ERROR" | "KUBE_POD_LIMIT_ERROR" | "KUBE_RESOURCE_QUOTA_ERROR" | "KUBE_NAMESPACE_CHECK_ERROR" | "KUBE_PVC_CREATE_ERROR" | "KUBE_PVC_CHECK_ERROR" | "KUBE_POD_CREATE_ERROR" | "KUBE_SERVICE_CREATE_ERROR" | "KUBE_INGRESS_CREATE_ERROR" | "KUBE_POD_FAILED_TO_START_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | GitAuthErrorCode | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-branch-no-session-id" | "project-repo-full-name-not-found" | "project-org-not-found" | "invalid-project-repo-url-already-in-use" | "no-available-regions" | "invalid-backup-without-volume-id" | "missing-app-with-machine-or-volume" | "update-branch-info-in-firebase" | "update-branch-app-name-in-firebase" | `machine-status-polling-${MachineState}` | `machine-image-exited-immediately` | `volume-not-found-${FlyVolumeState}` | "trying-to-remove-used-volume" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
|
|
139
139
|
export interface ErrorStateMessage extends BaseMessage {
|
|
140
140
|
state: "error";
|
|
141
141
|
message: string;
|