@builder.io/ai-utils 0.60.1 → 0.62.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.60.1",
3
+ "version": "0.62.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/codegen.d.ts CHANGED
@@ -842,6 +842,18 @@ export declare const ProposedConfigSchema: z.ZodObject<{
842
842
  started: "started";
843
843
  failed: "failed";
844
844
  }>;
845
+ running: z.ZodDefault<z.ZodBoolean>;
846
+ previousStates: z.ZodOptional<z.ZodArray<z.ZodEnum<{
847
+ verified: "verified";
848
+ "no-frontend": "no-frontend";
849
+ "empty-project": "empty-project";
850
+ "mobile-project": "mobile-project";
851
+ "user-question": "user-question";
852
+ "code-change-required": "code-change-required";
853
+ other: "other";
854
+ started: "started";
855
+ failed: "failed";
856
+ }>>>;
845
857
  summary: z.ZodString;
846
858
  questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
847
859
  question: z.ZodString;
@@ -3831,7 +3843,7 @@ export interface PrivacyMode {
3831
3843
  */
3832
3844
  mcpServers?: boolean;
3833
3845
  }
3834
- export type Mode = "init-and-launch" | "backup" | "backup-force-full";
3846
+ export type Mode = "init-and-launch" | "backup" | "backup-force-full" | "snapshot-creation";
3835
3847
  export interface FileOverride {
3836
3848
  /**
3837
3849
  * Path where the file should be written.
package/src/codegen.js CHANGED
@@ -1016,6 +1016,8 @@ export const ProposedConfigSchema = z
1016
1016
  state: ExitStateSchema.meta({
1017
1017
  description: "Configuration state from Exit tool",
1018
1018
  }),
1019
+ running: z.boolean().default(false),
1020
+ previousStates: z.array(ExitStateSchema).optional(),
1019
1021
  summary: z.string().meta({ description: "Summary from Exit tool" }),
1020
1022
  questions: z.array(ProposedQuestionSchema).optional(),
1021
1023
  configuration: ProposedConfigurationSchema,
package/src/events.d.ts CHANGED
@@ -755,6 +755,55 @@ export declare const FusionBranchFailedV1: {
755
755
  eventName: "fusion.branch.failed";
756
756
  version: "1";
757
757
  };
758
+ export type ProjectSnapshotRefreshV1 = FusionEventVariant<"project.snapshot.refresh", {
759
+ projectId: string;
760
+ requestedBy: string;
761
+ reason: string;
762
+ }, {
763
+ projectId: string;
764
+ }, 1>;
765
+ export declare const ProjectSnapshotRefreshV1: {
766
+ eventName: "project.snapshot.refresh";
767
+ version: "1";
768
+ };
769
+ export type ProjectSnapshotCapturedV1 = FusionEventVariant<"project.snapshot.captured", {
770
+ projectId: string;
771
+ snapshotName: string;
772
+ triggerEventId: string;
773
+ gitSha: string;
774
+ startedAtMs: number;
775
+ }, {
776
+ projectId: string;
777
+ }, 1>;
778
+ export declare const ProjectSnapshotCapturedV1: {
779
+ eventName: "project.snapshot.captured";
780
+ version: "1";
781
+ };
782
+ export type ProjectSnapshotCreatedV1 = FusionEventVariant<"project.snapshot.created", {
783
+ projectId: string;
784
+ snapshotName: string;
785
+ gitSha: string;
786
+ triggerEventId: string;
787
+ durationMs: number;
788
+ }, {
789
+ projectId: string;
790
+ }, 1>;
791
+ export declare const ProjectSnapshotCreatedV1: {
792
+ eventName: "project.snapshot.created";
793
+ version: "1";
794
+ };
795
+ export type ProjectSnapshotFailedV1 = FusionEventVariant<"project.snapshot.failed", {
796
+ projectId: string;
797
+ triggerEventId: string;
798
+ reason: string;
799
+ phase?: "init" | "build" | "dev-server" | "callback";
800
+ }, {
801
+ projectId: string;
802
+ }, 1>;
803
+ export declare const ProjectSnapshotFailedV1: {
804
+ eventName: "project.snapshot.failed";
805
+ version: "1";
806
+ };
758
807
  export type VideoRecordingCompletedV1 = FusionEventVariant<"video.recording.completed", {
759
808
  recordingId: string;
760
809
  videoUrl: string;
@@ -872,7 +921,7 @@ export declare const ClientDevtoolsToolResultV1: {
872
921
  eventName: "client.devtools.tool.result";
873
922
  version: "1";
874
923
  };
875
- export type FusionEvent = ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | ClientDevtoolsToolCallRequestV1 | ClientDevtoolsToolCallV1 | ClientDevtoolsToolResultV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | TimelineRecordingReadyV1 | FusionBranchCreatedV1 | FusionContainerStartedV1 | FusionContainerFailedV1 | FusionBranchFailedV1 | BotMentionExternalPrV1 | ReviewSubmittedV1 | PrReviewRequestedV1;
924
+ export type FusionEvent = ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | ClientDevtoolsToolCallRequestV1 | ClientDevtoolsToolCallV1 | ClientDevtoolsToolResultV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | TimelineRecordingReadyV1 | FusionBranchCreatedV1 | FusionContainerStartedV1 | FusionContainerFailedV1 | FusionBranchFailedV1 | BotMentionExternalPrV1 | ReviewSubmittedV1 | PrReviewRequestedV1 | ProjectSnapshotRefreshV1 | ProjectSnapshotCapturedV1 | ProjectSnapshotCreatedV1 | ProjectSnapshotFailedV1;
876
925
  export interface ModelPermissionRequiredEvent {
877
926
  type: "assistant.model.permission.required";
878
927
  data: {
package/src/events.js CHANGED
@@ -74,6 +74,22 @@ export const FusionBranchFailedV1 = {
74
74
  eventName: "fusion.branch.failed",
75
75
  version: "1",
76
76
  };
77
+ export const ProjectSnapshotRefreshV1 = {
78
+ eventName: "project.snapshot.refresh",
79
+ version: "1",
80
+ };
81
+ export const ProjectSnapshotCapturedV1 = {
82
+ eventName: "project.snapshot.captured",
83
+ version: "1",
84
+ };
85
+ export const ProjectSnapshotCreatedV1 = {
86
+ eventName: "project.snapshot.created",
87
+ version: "1",
88
+ };
89
+ export const ProjectSnapshotFailedV1 = {
90
+ eventName: "project.snapshot.failed",
91
+ version: "1",
92
+ };
77
93
  export const VideoRecordingCompletedV1 = {
78
94
  eventName: "video.recording.completed",
79
95
  version: "1",
package/src/projects.d.ts CHANGED
@@ -460,7 +460,7 @@ export interface OrgAgentConfig {
460
460
  enabledTools: string[];
461
461
  longLived: boolean;
462
462
  }
463
- export type BranchType = "code-review" | "setup-project" | "org-agent" | "design-system-indexing" | "default";
463
+ export type BranchType = "code-review" | "setup-project" | "org-agent" | "snapshot-build" | "design-system-indexing" | "default";
464
464
  /** Category of work a branch represents, auto-assigned during prompt analysis. */
465
465
  export type BranchCategory = "feature" | "fix" | "research" | "other";
466
466
  export interface BranchSharedData {