@builder.io/ai-utils 0.12.13 → 0.12.16

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.13",
3
+ "version": "0.12.16",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -38,6 +38,8 @@ export interface CustomAgentDefinition {
38
38
  systemPrompt?: string;
39
39
  tools?: string[];
40
40
  model?: string;
41
+ needDevServer?: boolean;
42
+ includeMemories?: boolean;
41
43
  }
42
44
  export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
43
45
  export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
@@ -978,7 +980,7 @@ export type RemoteMachineConfig = {
978
980
  volumeSize: number;
979
981
  };
980
982
  export type MachineConfig = (RemoteMachineConfig & {
981
- environment: "remote";
983
+ environment: "cloud" | "cloud-v2" | "unknown";
982
984
  }) | {
983
985
  cpus: number;
984
986
  memory: number;
@@ -1222,6 +1224,7 @@ export interface LaunchServerStatus {
1222
1224
  _attemptDryRunBackupOutcome?: string;
1223
1225
  workingDirectory?: string;
1224
1226
  fusionConfig?: FusionConfig;
1227
+ fusionEnvironment: "cloud" | "cloud-v2" | "unknown";
1225
1228
  }
1226
1229
  export interface FusionStatus {
1227
1230
  status: "ok";
@@ -1240,6 +1243,7 @@ export interface FusionStatus {
1240
1243
  detectedServerUrl: string | undefined;
1241
1244
  _attemptDryRunBackupOutcome: string | undefined;
1242
1245
  workingDirectory: string | undefined;
1246
+ fusionEnvironment: "cloud" | "cloud-v2" | "unknown";
1243
1247
  }
1244
1248
  export interface FusionMetrics {
1245
1249
  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;
@@ -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;