@builder.io/ai-utils 0.11.33 → 0.11.35

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.33",
3
+ "version": "0.11.35",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -110,18 +110,17 @@ export interface MemoryToolInput {
110
110
  memory_id?: string | null;
111
111
  when?: string;
112
112
  }
113
- export type FormFieldType = "text" | "color" | "select" | "number" | "url";
114
- export interface FormField {
115
- type: FormFieldType;
116
- label: string;
117
- default?: string;
118
- options?: string[];
119
- placeholder?: string;
120
- min?: number;
121
- max?: number;
122
- }
123
- export interface AskUserToolInput {
124
- form: FormField[];
113
+ export interface AskUserQuestionToolInput {
114
+ questions: {
115
+ question: string;
116
+ header: string;
117
+ options: {
118
+ label: string;
119
+ description: string;
120
+ }[];
121
+ multiSelect?: boolean;
122
+ }[];
123
+ answers?: Record<string, string>;
125
124
  }
126
125
  export interface AgentToolInput {
127
126
  description: string;
@@ -196,7 +195,7 @@ export interface CodeGenToolMap {
196
195
  Bash: BashToolInput;
197
196
  PowerShell: PowerShellToolInput;
198
197
  WebSearch: WebSearchToolInput;
199
- AskUser: AskUserToolInput;
198
+ AskUserQuestion: AskUserQuestionToolInput;
200
199
  Agent: AgentToolInput;
201
200
  Grep: GrepSearchToolInput;
202
201
  Glob: GlobSearchToolInput;
@@ -298,7 +297,7 @@ export interface CodeGenInputOptions {
298
297
  /** @deprecated */
299
298
  repair?: boolean;
300
299
  }
301
- export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "abrupt-end" | "unknown" | "failed-recover-state" | "ask-to-continue" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit" | "unknown-design-system";
300
+ export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "abrupt-end" | "unknown" | "failed-recover-state" | "ask-to-continue" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "privacy-mode-key-required" | "privacy-mode-key-invalid" | "assertion" | "rate-limit" | "unknown-design-system";
302
301
  export interface CodegenUsage {
303
302
  total: number;
304
303
  fast: number;
@@ -950,6 +949,11 @@ export type MachineConfig = (RemoteMachineConfig & {
950
949
  export interface PrivacyMode {
951
950
  encrypt: boolean;
952
951
  encryptKey?: string;
952
+ /**
953
+ * Path to a file containing the encryption key for privacy mode.
954
+ * If provided, the key will be loaded from this file and set in encryptKey.
955
+ */
956
+ encryptionKeyPath?: string;
953
957
  /**
954
958
  * If true, the user messages will be redacted from the history.
955
959
  *
@@ -1,4 +1,4 @@
1
- import type { EnvironmentVariable } from "./codegen";
1
+ import type { EnvironmentVariable, PrivacyMode } from "./codegen";
2
2
  export interface GithubEnterpriseSetupValue {
3
3
  host: string;
4
4
  clientId: string;
@@ -32,6 +32,9 @@ interface OrganizationSettings {
32
32
  autoDetectDevServerPatterns?: string[];
33
33
  environmentVariables?: EnvironmentVariable[];
34
34
  runInPty?: boolean;
35
+ privacyMode?: Pick<PrivacyMode, "mcpServers" | "redactUserMessages" | "redactLLMMessages"> & {
36
+ enabled?: boolean;
37
+ };
35
38
  }
36
39
  interface RoleOptions {
37
40
  read?: boolean;