@builder.io/ai-utils 0.11.25 → 0.11.26

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.11.25",
3
+ "version": "0.11.26",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -849,6 +849,9 @@ export interface GitBackupDownloadUrlResult {
849
849
  partial: boolean;
850
850
  }
851
851
  export interface BranchBackup {
852
+ projectId: string;
853
+ ownerId: string;
854
+ branchName: string;
852
855
  at: number;
853
856
  size: number;
854
857
  gitBranchName: string;
@@ -1052,6 +1055,10 @@ export interface FusionConfig {
1052
1055
  env?: Record<string, string>;
1053
1056
  envFile?: string;
1054
1057
  }>;
1058
+ /**
1059
+ * List of built-in tools to disable.
1060
+ */
1061
+ disabledTools?: string[];
1055
1062
  /** @deprecated use devCommand */
1056
1063
  command?: string;
1057
1064
  }
@@ -1192,6 +1199,7 @@ export interface CodegenApiTerminal {
1192
1199
  export interface SetupCommandResult {
1193
1200
  code: number | null;
1194
1201
  output: string;
1202
+ capturedEnv?: Record<string, string>;
1195
1203
  }
1196
1204
  export type DevCommandResult = DevCommandResultSuccess | DevCommandResultFailure;
1197
1205
  export interface DevCommandResultSuccess {
package/src/projects.d.ts CHANGED
@@ -85,6 +85,7 @@ export interface ErrorMessage extends BaseMessage {
85
85
  error: string;
86
86
  details?: any;
87
87
  message?: string;
88
+ code?: string;
88
89
  }
89
90
  export interface InfoMessage extends BaseMessage {
90
91
  type: "info";
@@ -134,7 +135,7 @@ export interface ReadyMessage extends BaseMessage {
134
135
  }
135
136
  export type MachineState = "unknown" | "created" | "starting" | "started" | "stopping" | "stopped" | "suspending" | "suspended" | "replacing" | "destroying" | "destroyed" | "not-found" | "running" | "failed";
136
137
  export type FlyVolumeState = "unknown" | "creating" | "created" | "extending" | "restoring" | "enabling_remote_export" | "hydrating" | "recovering" | "scheduling_destroy" | "pending_destroy" | "failed";
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 GitAuthErrorCode = "git-auth-failed" | "git-auth-failed-root-repo" | "git-auth-failed-folder-added-by" | "git-auth-failed-folder-created-by" | "git-auth-failed-repo-not-found" | "git-auth-failed-folder-server-token" | "git-auth-failed-root-repo-server-token";
138
139
  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
140
  export interface ErrorStateMessage extends BaseMessage {
140
141
  state: "error";