@builder.io/ai-utils 0.11.8 → 0.11.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.11.8",
3
+ "version": "0.11.10",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { Attachment, ContentMessageItemToolResult } from "./messages";
2
2
  import type { BuilderContent } from "./completion";
3
3
  import type { Options as PrettierOptions } from "prettier";
4
4
  import type { UserContext } from "./mapping";
5
- import type { ForcedBackup } from "./projects";
5
+ import type { ForcedBackup, SetupDependency } from "./projects";
6
6
  import type { Feature } from "./features";
7
7
  export type ImportType = "named" | "default";
8
8
  export interface ESMImport {
@@ -676,6 +676,7 @@ export interface GenerateUserMessage {
676
676
  autoPush?: "force-push" | "merge-push" | "ff-push" | "none";
677
677
  enabledMCPs?: string[];
678
678
  sessionMode?: SessionMode;
679
+ queue?: boolean;
679
680
  /** @deprecated */
680
681
  repair?: boolean;
681
682
  }
@@ -954,11 +955,13 @@ export interface FusionConfig {
954
955
  devCommand?: string;
955
956
  checkCommand?: string;
956
957
  setupCommand?: string;
958
+ setupDependencies?: SetupDependency[];
957
959
  projectId?: string;
958
960
  branchName?: string;
959
961
  sessionId?: string;
960
962
  featureBranch?: string;
961
963
  aiBranch?: string;
964
+ refreshPreview?: boolean;
962
965
  workingDirectory?: string;
963
966
  bashWorkingDirectory?: string;
964
967
  workspace?: WorkspaceConfiguration;
@@ -978,6 +981,7 @@ export interface FusionConfig {
978
981
  repoIndexingConfig?: RepoIndexingConfig;
979
982
  machine?: RemoteMachineConfig;
980
983
  _attemptDryRunBackupGit?: boolean;
984
+ _useNI?: boolean;
981
985
  mode?: Mode;
982
986
  autoDetectDevServer?: boolean;
983
987
  autoDetectDevServerPatterns?: string[];
@@ -1140,16 +1144,27 @@ export interface SetupCommandResult {
1140
1144
  code: number | null;
1141
1145
  output: string;
1142
1146
  }
1147
+ export type DevCommandResult = DevCommandResultSuccess | DevCommandResultFailure;
1148
+ export interface DevCommandResultSuccess {
1149
+ status: "success";
1150
+ }
1151
+ export interface DevCommandResultFailure {
1152
+ status: "failure";
1153
+ code: number | null;
1154
+ output: string;
1155
+ }
1143
1156
  export interface ConfigureDevOrchestratorUpdates {
1144
1157
  devCommand: boolean;
1145
1158
  setupCommand: boolean;
1146
1159
  proxyServer: boolean;
1147
1160
  env: boolean;
1148
1161
  setupResult: SetupCommandResult | undefined;
1162
+ devResult: DevCommandResult | undefined;
1149
1163
  }
1150
1164
  export interface ConfigureDevOrchestratorOpts {
1151
1165
  devCommand?: string | null;
1152
1166
  setupCommand?: string | null;
1167
+ setupDependencies?: SetupDependency[];
1153
1168
  proxyPort?: number;
1154
1169
  proxyServer?: string;
1155
1170
  env?: Record<string, string | null>;
package/src/projects.d.ts CHANGED
@@ -241,4 +241,17 @@ export type ShutdownResponse = {
241
241
  export type ShutdownResponseSerialized = Omit<ShutdownResponse, "error"> & {
242
242
  error?: string;
243
243
  };
244
+ export type SetupDependency = SetupMiseDependency | SetupScriptDependency;
245
+ export interface SetupMiseDependency {
246
+ key: string;
247
+ type: "mise";
248
+ tool: string;
249
+ version?: string;
250
+ }
251
+ export interface SetupScriptDependency {
252
+ key: string;
253
+ type: "script";
254
+ name: string;
255
+ script: string;
256
+ }
244
257
  export {};