@builder.io/ai-utils 0.12.14 → 0.12.17

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.12.14",
3
+ "version": "0.12.17",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -4,6 +4,7 @@ import type { Options as PrettierOptions } from "prettier";
4
4
  import type { UserContext } from "./mapping";
5
5
  import type { ForcedBackup, SetupDependency } from "./projects";
6
6
  import type { Feature } from "./features";
7
+ import type { CpuKind } from "./projects";
7
8
  export type ImportType = "named" | "default";
8
9
  export interface ESMImport {
9
10
  importName: string;
@@ -38,6 +39,8 @@ export interface CustomAgentDefinition {
38
39
  systemPrompt?: string;
39
40
  tools?: string[];
40
41
  model?: string;
42
+ needDevServer?: boolean;
43
+ includeMemories?: boolean;
41
44
  }
42
45
  export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
43
46
  export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
@@ -501,6 +504,7 @@ export interface CodeGenHealthStatus {
501
504
  devCommand: string | undefined;
502
505
  setupCommand: string | undefined;
503
506
  hasMergeConflict: boolean;
507
+ hasConfigurationIssue: boolean;
504
508
  logs: string | undefined;
505
509
  prompt: string;
506
510
  message: string;
@@ -974,11 +978,11 @@ export type RemoteMachineConfig = {
974
978
  cpus: number;
975
979
  memory: number;
976
980
  region: string;
977
- cpuKind: "performance" | "shared";
981
+ cpuKind?: CpuKind;
978
982
  volumeSize: number;
979
983
  };
980
984
  export type MachineConfig = (RemoteMachineConfig & {
981
- environment: "remote" | "remote-v2";
985
+ environment: "cloud" | "cloud-v2" | "unknown";
982
986
  }) | {
983
987
  cpus: number;
984
988
  memory: number;
@@ -1222,6 +1226,7 @@ export interface LaunchServerStatus {
1222
1226
  _attemptDryRunBackupOutcome?: string;
1223
1227
  workingDirectory?: string;
1224
1228
  fusionConfig?: FusionConfig;
1229
+ fusionEnvironment: "cloud" | "cloud-v2" | "unknown";
1225
1230
  }
1226
1231
  export interface FusionStatus {
1227
1232
  status: "ok";
@@ -1240,6 +1245,7 @@ export interface FusionStatus {
1240
1245
  detectedServerUrl: string | undefined;
1241
1246
  _attemptDryRunBackupOutcome: string | undefined;
1242
1247
  workingDirectory: string | undefined;
1248
+ fusionEnvironment: "cloud" | "cloud-v2" | "unknown";
1243
1249
  }
1244
1250
  export interface FusionMetrics {
1245
1251
  counters: {
@@ -36,6 +36,7 @@ interface OrganizationSettings {
36
36
  privacyMode?: Pick<PrivacyMode, "mcpServers" | "redactUserMessages" | "redactLLMMessages"> & {
37
37
  enabled?: boolean;
38
38
  };
39
+ blockFigmaImageUpload?: boolean;
39
40
  }
40
41
  interface RoleOptions {
41
42
  read?: boolean;
package/src/projects.d.ts CHANGED
@@ -325,7 +325,7 @@ export interface Branch {
325
325
  kubeHostname?: string | null;
326
326
  checkoutBranch?: string | null;
327
327
  }
328
- export type CpuKind = "performance" | "shared";
328
+ export type CpuKind = "performance" | "standard" | "shared";
329
329
  export type MachineAutoStop = "stop" | "off" | "suspend";
330
330
  export interface ProjectRolePermissions {
331
331
  view?: boolean;
@@ -378,8 +378,11 @@ export interface Project {
378
378
  setupDependencies?: SetupDependency[];
379
379
  gitBranchNamingCustom?: string;
380
380
  devServerCommand?: string;
381
- memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384;
382
381
  cpuKind?: CpuKind;
382
+ cpus?: 1 | 2 | 4;
383
+ memory?: 2048 | 4096 | 8192 | 16384;
384
+ /** @deprecated */
385
+ memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384;
383
386
  autoStop?: MachineAutoStop;
384
387
  mainBranchName?: string;
385
388
  minMachinesRunning?: number;
@@ -1,4 +1,10 @@
1
1
  export type StoreComponentDocsInput = StoreComponentDocsInputV1 | StoreComponentDocsInputV2 | IndexDocumentV1;
2
+ export interface ManualDocumentV1 {
3
+ document: IndexDocumentV1;
4
+ filePath: string;
5
+ frontmatter: Record<string, any>;
6
+ body: string;
7
+ }
2
8
  export type IndexDocumentV1 = ComponentDocument | TokenDocument | IconDocument | AgentDocument | InstallationDocument;
3
9
  export interface ComponentDocument extends DocumentBase {
4
10
  type: "component";
@@ -99,6 +105,7 @@ export interface UpdateDesignSystemInput {
99
105
  designSystemPackage?: string;
100
106
  designSystemVersion?: string;
101
107
  status?: "in-progress" | "completed" | "failed";
108
+ source?: "auto" | "custom";
102
109
  }
103
110
  export interface DesignSystem {
104
111
  id: string;
@@ -117,6 +124,7 @@ export interface DesignSystem {
117
124
  gitOriginUrl: string | undefined;
118
125
  gitRelativePath: string | undefined;
119
126
  cliArgs: string[];
127
+ source: "custom" | "auto";
120
128
  }
121
129
  export interface DisplayDesignSystem extends DesignSystem {
122
130
  docCount: number;