@builder.io/ai-utils 0.5.32 → 0.5.34

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.5.32",
3
+ "version": "0.5.34",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -207,6 +207,7 @@ export interface CodeGenInputOptions {
207
207
  attachments?: Attachment[];
208
208
  beforeCommit?: string;
209
209
  workingDirectory?: string;
210
+ encryptKey?: string;
210
211
  modelOverride?: string;
211
212
  builderContent?: BuilderContent;
212
213
  framework?: CodeGenFramework;
@@ -236,7 +237,7 @@ export interface CodeGenInputOptions {
236
237
  /** @deprecated */
237
238
  vcpId?: string;
238
239
  }
239
- export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "unknown" | "failed-recover-state" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit";
240
+ export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "unknown" | "failed-recover-state" | "ask-to-continue" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit";
240
241
  export type Feature = "component-mapping";
241
242
  export interface CodegenUsage {
242
243
  total: number;
@@ -603,6 +604,7 @@ export interface GenerateUserMessage {
603
604
  logsCheckpoint?: boolean;
604
605
  dropAbortedPrompt?: boolean;
605
606
  modelOverride?: string;
607
+ maxCompletions?: number;
606
608
  }
607
609
  export interface UserInput {
608
610
  userMessage: GenerateUserMessage | undefined;
@@ -827,6 +829,16 @@ export interface FusionConfig {
827
829
  isLocal?: boolean;
828
830
  envVariables?: Record<string, string>;
829
831
  accessControl?: AclPolicy;
832
+ privacyMode?: {
833
+ encrypt: boolean;
834
+ encryptKey?: string;
835
+ /**
836
+ * If true, the CLI will enable MCP servers during privacy mode.
837
+ *
838
+ * @default false
839
+ */
840
+ mcpServers?: boolean;
841
+ };
830
842
  repoIndexingConfig?: RepoIndexingConfig;
831
843
  machine?: RemoteMachineConfig;
832
844
  _attemptDryRunBackupGit?: boolean;
@@ -36,6 +36,7 @@ interface StoreComponentDocsInputV2 {
36
36
  hash?: string;
37
37
  designSystemId?: string;
38
38
  }
39
+ export type DesignSystemScope = "space" | "organization" | "global";
39
40
  export interface AddDesignSystemInput {
40
41
  designSystemName: string;
41
42
  designSystemPackage?: string;
@@ -43,6 +44,7 @@ export interface AddDesignSystemInput {
43
44
  status: string;
44
45
  spaceId: string;
45
46
  rootOrgId: string;
47
+ scope: DesignSystemScope;
46
48
  }
47
49
  export interface UpdateDesignSystemInput {
48
50
  id: string;
@@ -63,5 +65,6 @@ export interface DesignSystem {
63
65
  designSystemVersion?: string;
64
66
  designSystemPackage?: string;
65
67
  status: "in-progress" | "completed" | "failed";
68
+ scope: DesignSystemScope;
66
69
  }
67
70
  export {};