@builder.io/ai-utils 0.12.2 → 0.12.4
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 +28 -2
- package/src/projects.d.ts +1 -0
- package/src/repo-indexing.d.ts +6 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ export interface DevServerControlInput {
|
|
|
72
72
|
set_and_run_setup_command?: string | null;
|
|
73
73
|
set_env_variable?: [string, string] | null;
|
|
74
74
|
}
|
|
75
|
+
export interface ServerLogsInput {
|
|
76
|
+
}
|
|
75
77
|
export interface BashToolInput {
|
|
76
78
|
command?: string | null;
|
|
77
79
|
timeout?: number | null;
|
|
@@ -212,6 +214,7 @@ export interface CodeGenToolMap {
|
|
|
212
214
|
Grep: GrepSearchToolInput;
|
|
213
215
|
Glob: GlobSearchToolInput;
|
|
214
216
|
DevServerControl: DevServerControlInput;
|
|
217
|
+
ServerLogs: ServerLogsInput;
|
|
215
218
|
Revert: RevertToolInput;
|
|
216
219
|
TodoRead: TodoReadToolInput;
|
|
217
220
|
TodoWrite: TodoWriteToolInput;
|
|
@@ -639,6 +642,13 @@ export interface UserSourceBase {
|
|
|
639
642
|
principals?: string[];
|
|
640
643
|
permissions?: UserSourcePermission[];
|
|
641
644
|
}
|
|
645
|
+
export interface UserSourceOther extends UserSourceBase {
|
|
646
|
+
source: "slack" | "teams" | "jira" | "linear";
|
|
647
|
+
userId?: string;
|
|
648
|
+
userName?: string;
|
|
649
|
+
userEmail?: string;
|
|
650
|
+
photoURL?: string;
|
|
651
|
+
}
|
|
642
652
|
export interface UserSourceBuilder extends UserSourceBase {
|
|
643
653
|
source: "builder.io";
|
|
644
654
|
userId?: string;
|
|
@@ -670,7 +680,7 @@ export interface UserSourceBitbucket extends UserSourceBase {
|
|
|
670
680
|
export interface UserSourceAgent extends UserSourceBase {
|
|
671
681
|
source: "agent";
|
|
672
682
|
}
|
|
673
|
-
export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceBitbucket | UserSourceAgent;
|
|
683
|
+
export type UserSource = UserSourceOther | UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceBitbucket | UserSourceAgent;
|
|
674
684
|
export interface GenerateUserMessage {
|
|
675
685
|
user?: UserSource;
|
|
676
686
|
userPrompt: string;
|
|
@@ -683,6 +693,7 @@ export interface GenerateUserMessage {
|
|
|
683
693
|
attachments?: Attachment[];
|
|
684
694
|
logsCheckpoint?: boolean;
|
|
685
695
|
dropAbortedPrompt?: boolean;
|
|
696
|
+
runValidateCommand?: boolean;
|
|
686
697
|
modelOverride?: string;
|
|
687
698
|
maxCompletions?: number;
|
|
688
699
|
isManualContinue?: boolean;
|
|
@@ -961,7 +972,7 @@ export type MachineConfig = (RemoteMachineConfig & {
|
|
|
961
972
|
environment: "local";
|
|
962
973
|
};
|
|
963
974
|
export interface PrivacyMode {
|
|
964
|
-
|
|
975
|
+
enabled: boolean;
|
|
965
976
|
encryptKey?: string;
|
|
966
977
|
/**
|
|
967
978
|
* Path to a file containing the encryption key for privacy mode.
|
|
@@ -1016,6 +1027,7 @@ export interface FusionConfig {
|
|
|
1016
1027
|
devCommand?: string;
|
|
1017
1028
|
checkCommand?: string;
|
|
1018
1029
|
setupCommand?: string;
|
|
1030
|
+
validateCommand?: string;
|
|
1019
1031
|
fusionServerPort?: number;
|
|
1020
1032
|
lockFile?: {
|
|
1021
1033
|
filePath: string;
|
|
@@ -1278,19 +1290,33 @@ export interface DevCommandResultFailure {
|
|
|
1278
1290
|
code: number | null;
|
|
1279
1291
|
output: string;
|
|
1280
1292
|
}
|
|
1293
|
+
export type ValidateCommandResult = ValidateCommandResultSuccess | ValidateCommandResultFailure;
|
|
1294
|
+
export interface ValidateCommandResultSuccess {
|
|
1295
|
+
status: "success";
|
|
1296
|
+
command: string | undefined;
|
|
1297
|
+
}
|
|
1298
|
+
export interface ValidateCommandResultFailure {
|
|
1299
|
+
status: "failure";
|
|
1300
|
+
command: string;
|
|
1301
|
+
code: number | null;
|
|
1302
|
+
output: string;
|
|
1303
|
+
}
|
|
1281
1304
|
export interface ConfigureDevOrchestratorUpdates {
|
|
1282
1305
|
devCommand: boolean;
|
|
1283
1306
|
setupCommand: boolean;
|
|
1284
1307
|
proxyServer: boolean;
|
|
1308
|
+
validateCommand: boolean;
|
|
1285
1309
|
hosts: boolean;
|
|
1286
1310
|
env: boolean;
|
|
1287
1311
|
setupResult: SetupCommandResult | undefined;
|
|
1288
1312
|
devResult: DevCommandResult | undefined;
|
|
1313
|
+
validateResult: ValidateCommandResult | undefined;
|
|
1289
1314
|
}
|
|
1290
1315
|
export interface ConfigureDevOrchestratorOpts {
|
|
1291
1316
|
devCommand?: string | null;
|
|
1292
1317
|
setupCommand?: string | null;
|
|
1293
1318
|
setupDependencies?: SetupDependency[];
|
|
1319
|
+
validateCommand?: string | null;
|
|
1294
1320
|
proxyPort?: number;
|
|
1295
1321
|
proxyServer?: string;
|
|
1296
1322
|
env?: Record<string, string | null>;
|
package/src/projects.d.ts
CHANGED
|
@@ -372,6 +372,7 @@ export interface Project {
|
|
|
372
372
|
devServerUrl?: string;
|
|
373
373
|
refreshPreview?: boolean;
|
|
374
374
|
installCommand?: string;
|
|
375
|
+
validateCommand?: string;
|
|
375
376
|
gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom";
|
|
376
377
|
setupDependencies?: SetupDependency[];
|
|
377
378
|
gitBranchNamingCustom?: string;
|
package/src/repo-indexing.d.ts
CHANGED
|
@@ -88,6 +88,9 @@ export interface AddDesignSystemInput {
|
|
|
88
88
|
spaceId: string;
|
|
89
89
|
rootOrgId: string;
|
|
90
90
|
scope: DesignSystemScope;
|
|
91
|
+
gitOriginUrl: string | undefined;
|
|
92
|
+
gitRelativePath: string | undefined;
|
|
93
|
+
cliArgs: string[];
|
|
91
94
|
}
|
|
92
95
|
export interface UpdateDesignSystemInput {
|
|
93
96
|
id: string;
|
|
@@ -111,6 +114,9 @@ export interface DesignSystem {
|
|
|
111
114
|
status: "in-progress" | "completed" | "failed";
|
|
112
115
|
scope: DesignSystemScope;
|
|
113
116
|
deprecated: boolean;
|
|
117
|
+
gitOriginUrl: string | undefined;
|
|
118
|
+
gitRelativePath: string | undefined;
|
|
119
|
+
cliArgs: string[];
|
|
114
120
|
}
|
|
115
121
|
export interface DisplayDesignSystem extends DesignSystem {
|
|
116
122
|
docCount: number;
|