@builder.io/ai-utils 0.25.2 → 0.25.3

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.25.2",
3
+ "version": "0.25.3",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -554,7 +554,7 @@ export interface CodeGenToolMap {
554
554
  }
555
555
  export type CodeGenTools = keyof CodeGenToolMap;
556
556
  export type AllCodeGenTools = CodeGenTools | "web_search";
557
- export type SessionMode = "planning" | "normal" | "auto-planning";
557
+ export type SessionMode = "planning" | "normal" | "auto-planning" | "deep-research";
558
558
  export type CodeGenMode = "quality" | "quality-v3" | "quality-v4" | "quality-v4-agent";
559
559
  export type BaseCodeGenPosition = "fusion" | "editor-ai" | "repo-indexing" | "cli" | "create-app-firebase" | "create-app-lovable" | "builder-code-panel" | "dsi-mcp";
560
560
  export type CodeGenPosition = BaseCodeGenPosition | `${BaseCodeGenPosition}-agent`;
package/src/events.d.ts CHANGED
@@ -420,6 +420,10 @@ export interface AssistantFusionSuggestionEvent {
420
420
  message: string;
421
421
  };
422
422
  }
423
+ interface Superuser {
424
+ isSuperUser: boolean;
425
+ permissions: string[];
426
+ }
423
427
  export interface BaseFusionEvent<ExtraData extends Record<string, unknown> = {}, ExtraAttrs extends Record<string, string> = {}, V extends number = number> {
424
428
  data: {
425
429
  eventId: string;
@@ -427,6 +431,7 @@ export interface BaseFusionEvent<ExtraData extends Record<string, unknown> = {},
427
431
  timestamp: number;
428
432
  correlationId?: string;
429
433
  userId?: string;
434
+ superuser?: Superuser;
430
435
  source?: string;
431
436
  tags?: string[];
432
437
  audience?: string;
@@ -482,5 +487,21 @@ export declare const ClientDevtoolsSessionStartedEvent: {
482
487
  eventName: "client.devtools.session.started";
483
488
  version: "1";
484
489
  };
485
- export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | GitPrCreatedEvent | ClientDevtoolsSessionStartedEvent;
490
+ export type FusionProjectCreatedV1 = FusionEventVariant<"fusion.project.created", {
491
+ projectId?: string;
492
+ branchId?: string;
493
+ }, {}, 1>;
494
+ export declare const FusionProjectCreatedV1: {
495
+ eventName: "fusion.project.created";
496
+ version: "1";
497
+ };
498
+ export type SetupAgentCompletedV1 = FusionEventVariant<"fusion.setup.completed", {
499
+ projectId?: string;
500
+ branchId?: string;
501
+ }, {}, 1>;
502
+ export declare const SetupAgentCompletedV1: {
503
+ eventName: "fusion.setup.completed";
504
+ version: "1";
505
+ };
506
+ export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | GitPrCreatedEvent | ClientDevtoolsSessionStartedEvent | FusionProjectCreatedV1 | SetupAgentCompletedV1;
486
507
  export {};
package/src/events.js CHANGED
@@ -14,3 +14,11 @@ export const ClientDevtoolsSessionStartedEvent = {
14
14
  eventName: "client.devtools.session.started",
15
15
  version: "1",
16
16
  };
17
+ export const FusionProjectCreatedV1 = {
18
+ eventName: "fusion.project.created",
19
+ version: "1",
20
+ };
21
+ export const SetupAgentCompletedV1 = {
22
+ eventName: "fusion.setup.completed",
23
+ version: "1",
24
+ };