@builder.io/ai-utils 0.100.1 → 0.100.2
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/events.d.ts +31 -1
- package/src/events.js +8 -0
- package/src/projects.d.ts +4 -0
- package/src/projects.js +7 -0
package/package.json
CHANGED
package/src/events.d.ts
CHANGED
|
@@ -965,6 +965,7 @@ export type ProjectSnapshotRefreshV1 = FusionEventVariant<"project.snapshot.refr
|
|
|
965
965
|
* producer.
|
|
966
966
|
*/
|
|
967
967
|
goldenTemplateId?: string;
|
|
968
|
+
gitSha?: string;
|
|
968
969
|
}, {
|
|
969
970
|
projectId: string;
|
|
970
971
|
}, 1>;
|
|
@@ -972,6 +973,32 @@ export declare const ProjectSnapshotRefreshV1: {
|
|
|
972
973
|
eventName: "project.snapshot.refresh";
|
|
973
974
|
version: "1";
|
|
974
975
|
};
|
|
976
|
+
export type ProjectSnapshotGoldenWatchdogV1 = FusionEventVariant<"project.snapshot.golden.watchdog", {
|
|
977
|
+
projectId: string;
|
|
978
|
+
triggerEventId: string;
|
|
979
|
+
goldenTemplateId: "agent-native-starter";
|
|
980
|
+
deadlineAtMs: number;
|
|
981
|
+
}, {
|
|
982
|
+
projectId: string;
|
|
983
|
+
}, 1>;
|
|
984
|
+
export declare const ProjectSnapshotGoldenWatchdogV1: {
|
|
985
|
+
eventName: "project.snapshot.golden.watchdog";
|
|
986
|
+
version: "1";
|
|
987
|
+
};
|
|
988
|
+
export type ProjectSnapshotGoldenRetryV1 = FusionEventVariant<"project.snapshot.golden.retry", {
|
|
989
|
+
projectId: string;
|
|
990
|
+
triggerEventId: string;
|
|
991
|
+
source: "project.snapshot.refresh";
|
|
992
|
+
gitSha?: string;
|
|
993
|
+
goldenTemplateId: "agent-native-starter";
|
|
994
|
+
retryAttempt: number;
|
|
995
|
+
}, {
|
|
996
|
+
projectId: string;
|
|
997
|
+
}, 1>;
|
|
998
|
+
export declare const ProjectSnapshotGoldenRetryV1: {
|
|
999
|
+
eventName: "project.snapshot.golden.retry";
|
|
1000
|
+
version: "1";
|
|
1001
|
+
};
|
|
975
1002
|
export type ProjectSnapshotCapturedV1 = FusionEventVariant<"project.snapshot.captured", {
|
|
976
1003
|
projectId: string;
|
|
977
1004
|
snapshotName: string;
|
|
@@ -991,6 +1018,7 @@ export type ProjectSnapshotCreatedV1 = FusionEventVariant<"project.snapshot.crea
|
|
|
991
1018
|
gitSha: string;
|
|
992
1019
|
triggerEventId: string;
|
|
993
1020
|
durationMs: number;
|
|
1021
|
+
goldenTemplateId?: string;
|
|
994
1022
|
}, {
|
|
995
1023
|
projectId: string;
|
|
996
1024
|
}, 1>;
|
|
@@ -1003,6 +1031,7 @@ export type ProjectSnapshotFailedV1 = FusionEventVariant<"project.snapshot.faile
|
|
|
1003
1031
|
triggerEventId: string;
|
|
1004
1032
|
reason: string;
|
|
1005
1033
|
phase?: "init" | "build" | "dev-server" | "callback";
|
|
1034
|
+
goldenTemplateId?: string;
|
|
1006
1035
|
}, {
|
|
1007
1036
|
projectId: string;
|
|
1008
1037
|
}, 1>;
|
|
@@ -1027,6 +1056,7 @@ export type ProjectSnapshotReadyCheckV1 = FusionEventVariant<"project.snapshot.r
|
|
|
1027
1056
|
/** When the VolumeSnapshot was created — used to compute the readiness timeout. */
|
|
1028
1057
|
capturedAtMs: number;
|
|
1029
1058
|
timeoutMs: number;
|
|
1059
|
+
goldenTemplateId?: string;
|
|
1030
1060
|
}, {
|
|
1031
1061
|
projectId: string;
|
|
1032
1062
|
}, 1>;
|
|
@@ -1429,7 +1459,7 @@ export declare const HostingCustomDomainDelegationCheckV1: {
|
|
|
1429
1459
|
eventName: "hosting.custom-domain.delegation-check";
|
|
1430
1460
|
version: "1";
|
|
1431
1461
|
};
|
|
1432
|
-
export type FusionEvent = ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | ClientDevtoolsToolCallRequestV1 | ClientDevtoolsToolCallV1 | ClientDevtoolsToolResultV1 | ClientDevtoolsBuildMigratedV1 | ClientDevtoolsBuildCompletedV1 | ClientDevtoolsBuildUploadedV1 | ClientDevtoolsBuildFailedV1 | FusionProjectCreatedV1 | FusionShapeIssuedV1 | FusionShapeAssembledV1 | FusionShapeResolvedV1 | FusionShapeQuestionAnsweredV1 | FusionShapeQuestionSkippedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | TimelineRecordingReadyV1 | FusionBranchCreatedV1 | FusionContainerStartedV1 | FusionContainerFailedV1 | FusionBranchFailedV1 | BotMentionGitHubExternalPrV1 | BotMentionGitHubInternalPrV1 | BotMentionGitLabPrV1 | BotMentionBitbucketPrV1 | BotMentionAzurePrV1 | ReviewSubmittedV1 | PrReviewRequestedV1 | FigmaDecodeJobV1 | ProjectSnapshotRefreshV1 | ProjectSnapshotCapturedV1 | ProjectSnapshotCreatedV1 | ProjectSnapshotFailedV1 | ProjectSnapshotReadyCheckV1 | ProjectSnapshotPodWatchV1 | McpPrototypePulledV1 | HostingCustomDomainCertCheckV1 | HostingCustomDomainServingCheckV1 | HostingCustomDomainDelegationCheckV1;
|
|
1462
|
+
export type FusionEvent = ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | ClientDevtoolsToolCallRequestV1 | ClientDevtoolsToolCallV1 | ClientDevtoolsToolResultV1 | ClientDevtoolsBuildMigratedV1 | ClientDevtoolsBuildCompletedV1 | ClientDevtoolsBuildUploadedV1 | ClientDevtoolsBuildFailedV1 | FusionProjectCreatedV1 | FusionShapeIssuedV1 | FusionShapeAssembledV1 | FusionShapeResolvedV1 | FusionShapeQuestionAnsweredV1 | FusionShapeQuestionSkippedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | TimelineRecordingReadyV1 | FusionBranchCreatedV1 | FusionContainerStartedV1 | FusionContainerFailedV1 | FusionBranchFailedV1 | BotMentionGitHubExternalPrV1 | BotMentionGitHubInternalPrV1 | BotMentionGitLabPrV1 | BotMentionBitbucketPrV1 | BotMentionAzurePrV1 | ReviewSubmittedV1 | PrReviewRequestedV1 | FigmaDecodeJobV1 | ProjectSnapshotRefreshV1 | ProjectSnapshotGoldenWatchdogV1 | ProjectSnapshotGoldenRetryV1 | ProjectSnapshotCapturedV1 | ProjectSnapshotCreatedV1 | ProjectSnapshotFailedV1 | ProjectSnapshotReadyCheckV1 | ProjectSnapshotPodWatchV1 | McpPrototypePulledV1 | HostingCustomDomainCertCheckV1 | HostingCustomDomainServingCheckV1 | HostingCustomDomainDelegationCheckV1;
|
|
1433
1463
|
export interface ModelPermissionRequiredEvent {
|
|
1434
1464
|
type: "assistant.model.permission.required";
|
|
1435
1465
|
data: {
|
package/src/events.js
CHANGED
|
@@ -114,6 +114,14 @@ export const ProjectSnapshotRefreshV1 = {
|
|
|
114
114
|
eventName: "project.snapshot.refresh",
|
|
115
115
|
version: "1",
|
|
116
116
|
};
|
|
117
|
+
export const ProjectSnapshotGoldenWatchdogV1 = {
|
|
118
|
+
eventName: "project.snapshot.golden.watchdog",
|
|
119
|
+
version: "1",
|
|
120
|
+
};
|
|
121
|
+
export const ProjectSnapshotGoldenRetryV1 = {
|
|
122
|
+
eventName: "project.snapshot.golden.retry",
|
|
123
|
+
version: "1",
|
|
124
|
+
};
|
|
117
125
|
export const ProjectSnapshotCapturedV1 = {
|
|
118
126
|
eventName: "project.snapshot.captured",
|
|
119
127
|
version: "1",
|
package/src/projects.d.ts
CHANGED
|
@@ -3414,6 +3414,10 @@ export declare const ReserveSlugResponseSchema: z.ZodObject<{
|
|
|
3414
3414
|
slug: z.ZodString;
|
|
3415
3415
|
}, z.core.$strip>;
|
|
3416
3416
|
export type ReserveSlugResponse = z.infer<typeof ReserveSlugResponseSchema>;
|
|
3417
|
+
export declare const GoldenSnapshotRefreshRequestSchema: z.ZodObject<{
|
|
3418
|
+
sourceCommitSha: z.ZodString;
|
|
3419
|
+
}, z.core.$strict>;
|
|
3420
|
+
export type GoldenSnapshotRefreshRequest = z.infer<typeof GoldenSnapshotRefreshRequestSchema>;
|
|
3417
3421
|
export declare const DeployRequestSchema: z.ZodObject<{
|
|
3418
3422
|
projectId: z.ZodString;
|
|
3419
3423
|
checkoutBranch: z.ZodOptional<z.ZodString>;
|
package/src/projects.js
CHANGED
|
@@ -1781,6 +1781,13 @@ export const ReserveSlugResponseSchema = z.object({
|
|
|
1781
1781
|
const gitCommitHashSchema = z
|
|
1782
1782
|
.string()
|
|
1783
1783
|
.regex(/^[0-9a-f]{7,40}$/i, "Must be a valid git commit hash (7–40 hex chars)");
|
|
1784
|
+
export const GoldenSnapshotRefreshRequestSchema = z
|
|
1785
|
+
.object({
|
|
1786
|
+
sourceCommitSha: z
|
|
1787
|
+
.string()
|
|
1788
|
+
.regex(/^[0-9a-f]{40}$/i, "Must be exactly 40 hexadecimal characters"),
|
|
1789
|
+
})
|
|
1790
|
+
.strict();
|
|
1784
1791
|
export const DeployRequestSchema = z.object({
|
|
1785
1792
|
projectId: z.string(),
|
|
1786
1793
|
checkoutBranch: z.string().optional(),
|