@builder.io/ai-utils 0.12.3 → 0.12.5
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 -1
- package/src/projects.d.ts +1 -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;
|
|
@@ -611,6 +614,7 @@ export interface GenerateCompletionStepAgent {
|
|
|
611
614
|
type: "agent";
|
|
612
615
|
id: string;
|
|
613
616
|
step: GenerateCompletionStep;
|
|
617
|
+
subagent_type: string;
|
|
614
618
|
}
|
|
615
619
|
export interface GenerateCompletionStepToolCallRequest {
|
|
616
620
|
type: "tool-call-request";
|
|
@@ -639,6 +643,13 @@ export interface UserSourceBase {
|
|
|
639
643
|
principals?: string[];
|
|
640
644
|
permissions?: UserSourcePermission[];
|
|
641
645
|
}
|
|
646
|
+
export interface UserSourceOther extends UserSourceBase {
|
|
647
|
+
source: "slack" | "teams" | "jira" | "linear";
|
|
648
|
+
userId?: string;
|
|
649
|
+
userName?: string;
|
|
650
|
+
userEmail?: string;
|
|
651
|
+
photoURL?: string;
|
|
652
|
+
}
|
|
642
653
|
export interface UserSourceBuilder extends UserSourceBase {
|
|
643
654
|
source: "builder.io";
|
|
644
655
|
userId?: string;
|
|
@@ -670,7 +681,7 @@ export interface UserSourceBitbucket extends UserSourceBase {
|
|
|
670
681
|
export interface UserSourceAgent extends UserSourceBase {
|
|
671
682
|
source: "agent";
|
|
672
683
|
}
|
|
673
|
-
export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceBitbucket | UserSourceAgent;
|
|
684
|
+
export type UserSource = UserSourceOther | UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceBitbucket | UserSourceAgent;
|
|
674
685
|
export interface GenerateUserMessage {
|
|
675
686
|
user?: UserSource;
|
|
676
687
|
userPrompt: string;
|
|
@@ -683,6 +694,7 @@ export interface GenerateUserMessage {
|
|
|
683
694
|
attachments?: Attachment[];
|
|
684
695
|
logsCheckpoint?: boolean;
|
|
685
696
|
dropAbortedPrompt?: boolean;
|
|
697
|
+
runValidateCommand?: boolean;
|
|
686
698
|
modelOverride?: string;
|
|
687
699
|
maxCompletions?: number;
|
|
688
700
|
isManualContinue?: boolean;
|
|
@@ -1016,6 +1028,7 @@ export interface FusionConfig {
|
|
|
1016
1028
|
devCommand?: string;
|
|
1017
1029
|
checkCommand?: string;
|
|
1018
1030
|
setupCommand?: string;
|
|
1031
|
+
validateCommand?: string;
|
|
1019
1032
|
fusionServerPort?: number;
|
|
1020
1033
|
lockFile?: {
|
|
1021
1034
|
filePath: string;
|
|
@@ -1278,19 +1291,33 @@ export interface DevCommandResultFailure {
|
|
|
1278
1291
|
code: number | null;
|
|
1279
1292
|
output: string;
|
|
1280
1293
|
}
|
|
1294
|
+
export type ValidateCommandResult = ValidateCommandResultSuccess | ValidateCommandResultFailure;
|
|
1295
|
+
export interface ValidateCommandResultSuccess {
|
|
1296
|
+
status: "success";
|
|
1297
|
+
command: string | undefined;
|
|
1298
|
+
}
|
|
1299
|
+
export interface ValidateCommandResultFailure {
|
|
1300
|
+
status: "failure";
|
|
1301
|
+
command: string;
|
|
1302
|
+
code: number | null;
|
|
1303
|
+
output: string;
|
|
1304
|
+
}
|
|
1281
1305
|
export interface ConfigureDevOrchestratorUpdates {
|
|
1282
1306
|
devCommand: boolean;
|
|
1283
1307
|
setupCommand: boolean;
|
|
1284
1308
|
proxyServer: boolean;
|
|
1309
|
+
validateCommand: boolean;
|
|
1285
1310
|
hosts: boolean;
|
|
1286
1311
|
env: boolean;
|
|
1287
1312
|
setupResult: SetupCommandResult | undefined;
|
|
1288
1313
|
devResult: DevCommandResult | undefined;
|
|
1314
|
+
validateResult: ValidateCommandResult | undefined;
|
|
1289
1315
|
}
|
|
1290
1316
|
export interface ConfigureDevOrchestratorOpts {
|
|
1291
1317
|
devCommand?: string | null;
|
|
1292
1318
|
setupCommand?: string | null;
|
|
1293
1319
|
setupDependencies?: SetupDependency[];
|
|
1320
|
+
validateCommand?: string | null;
|
|
1294
1321
|
proxyPort?: number;
|
|
1295
1322
|
proxyServer?: string;
|
|
1296
1323
|
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;
|