@builder.io/ai-utils 0.61.0 → 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 +1 -1
- package/src/codegen.d.ts +1 -1
- package/src/events.d.ts +50 -1
- package/src/events.js +16 -0
- package/src/projects.d.ts +1 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -3843,7 +3843,7 @@ export interface PrivacyMode {
|
|
|
3843
3843
|
*/
|
|
3844
3844
|
mcpServers?: boolean;
|
|
3845
3845
|
}
|
|
3846
|
-
export type Mode = "init-and-launch" | "backup" | "backup-force-full";
|
|
3846
|
+
export type Mode = "init-and-launch" | "backup" | "backup-force-full" | "snapshot-creation";
|
|
3847
3847
|
export interface FileOverride {
|
|
3848
3848
|
/**
|
|
3849
3849
|
* Path where the file should be written.
|
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 {
|