@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 +1 -1
- package/src/codegen.d.ts +18 -14
- package/src/organization.d.ts +4 -1
package/package.json
CHANGED
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
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
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
|
-
|
|
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
|
*
|
package/src/organization.d.ts
CHANGED
|
@@ -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;
|