@builder.io/ai-utils 0.12.3 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
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;
@@ -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;