@builder.io/ai-utils 0.31.1 → 0.32.0

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.31.1",
3
+ "version": "0.32.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -92,6 +92,8 @@ export interface DevServerControlInput {
92
92
  }
93
93
  export interface DevServerLogsInput {
94
94
  }
95
+ export interface DevServerRestartInput {
96
+ }
95
97
  export interface BashToolInput {
96
98
  command?: string | null;
97
99
  timeout?: number | null;
@@ -452,8 +454,8 @@ export interface ProposeConfigParams {
452
454
  isMicrofrontend?: boolean;
453
455
  setupNeedsCredentials?: boolean;
454
456
  devServerNeedsCredentials?: boolean;
455
- projectDescription?: string;
456
457
  needsVPN?: boolean;
458
+ projectDescription?: string;
457
459
  }
458
460
  export interface VerifySetupCommandToolInput {
459
461
  command: string;
@@ -481,6 +483,11 @@ export interface VerifyRuntimeDependencyToolInput {
481
483
  version: string;
482
484
  source?: string;
483
485
  }
486
+ export interface ProposeEnvVariableToolInput {
487
+ key: string;
488
+ value: string;
489
+ secret?: boolean;
490
+ }
484
491
  export interface SetEnvVariableToolInput {
485
492
  key: string;
486
493
  value: string;
@@ -585,6 +592,7 @@ export interface CodeGenToolMap {
585
592
  Glob: GlobSearchToolInput;
586
593
  DevServerControl: DevServerControlInput;
587
594
  DevServerLogs: DevServerLogsInput;
595
+ DevServerRestart: DevServerRestartInput;
588
596
  Revert: RevertToolInput;
589
597
  TodoRead: TodoReadToolInput;
590
598
  TodoWrite: TodoWriteToolInput;
@@ -609,6 +617,7 @@ export interface CodeGenToolMap {
609
617
  VerifyDevServer: VerifyDevServerToolInput;
610
618
  VerifyValidateCommand: VerifyValidateCommandToolInput;
611
619
  VerifyRuntimeDependency: VerifyRuntimeDependencyToolInput;
620
+ ProposeEnvVariable: ProposeEnvVariableToolInput;
612
621
  SetEnvVariable: SetEnvVariableToolInput;
613
622
  SendMessage: SendMessageToolInput;
614
623
  SpawnBranch: SpawnBranchToolInput;
package/src/events.d.ts CHANGED
@@ -493,6 +493,14 @@ export declare const ClientDevtoolsSessionStartedEvent: {
493
493
  eventName: "client.devtools.session.started";
494
494
  version: "1";
495
495
  };
496
+ export type ClientDevtoolsSessionIdleEventV1 = FusionEventVariant<"client.devtools.session.idle", {
497
+ sessionId?: string;
498
+ lastMessage?: string;
499
+ }, {}, 1>;
500
+ export declare const ClientDevtoolsSessionIdleEventV1: {
501
+ eventName: "client.devtools.session.idle";
502
+ version: "1";
503
+ };
496
504
  export type FusionProjectCreatedV1 = FusionEventVariant<"fusion.project.created", {
497
505
  projectId: string;
498
506
  branchName?: string;
@@ -546,7 +554,7 @@ export interface SendMessageToOrgAgentInput {
546
554
  senderDisplayName?: string;
547
555
  messageContext?: string;
548
556
  }
549
- export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | GitPrCreatedEvent | ClientDevtoolsSessionStartedEvent | FusionProjectCreatedV1 | SetupAgentCompletedV1 | ForceSetupAgentV1 | ClawMessageSentV1;
557
+ export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | GitPrCreatedEvent | ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | ForceSetupAgentV1 | ClawMessageSentV1;
550
558
  export interface ModelPermissionRequiredEvent {
551
559
  type: "assistant.model.permission.required";
552
560
  data: {
package/src/events.js CHANGED
@@ -14,6 +14,10 @@ export const ClientDevtoolsSessionStartedEvent = {
14
14
  eventName: "client.devtools.session.started",
15
15
  version: "1",
16
16
  };
17
+ export const ClientDevtoolsSessionIdleEventV1 = {
18
+ eventName: "client.devtools.session.idle",
19
+ version: "1",
20
+ };
17
21
  export const FusionProjectCreatedV1 = {
18
22
  eventName: "fusion.project.created",
19
23
  version: "1",