@builder.io/ai-utils 0.11.24 → 0.11.26-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.11.24",
3
+ "version": "0.11.26-0",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -0,0 +1,160 @@
1
+ import type { BranchBackup, EnvironmentVariable, LaunchServerState, SetupDependency } from "./index.js";
2
+ export type FusionExecutionEnvironment = "containerized" | "container-less" | "cloud";
3
+ export interface PartialBranchData {
4
+ name?: string;
5
+ createdBy: string;
6
+ friendlyName: string;
7
+ isDefault: boolean;
8
+ isPublic: boolean;
9
+ lockedFusionEnvironment: FusionExecutionEnvironment;
10
+ metadata?: Record<string, unknown>;
11
+ useHomeDir?: boolean;
12
+ }
13
+ export interface Branch {
14
+ lockedFusionEnvironment?: FusionExecutionEnvironment;
15
+ id?: string;
16
+ appName?: string | null;
17
+ prNumber?: number | null;
18
+ prUrl?: string | null;
19
+ machineId?: string | null;
20
+ lastMachineIdRemovedAt?: number | null;
21
+ volumeId?: string | null;
22
+ secondaryVolumeId?: string | null;
23
+ volumeName?: string | null;
24
+ gitAiBranch?: string | null;
25
+ lastCommitHash?: string | null;
26
+ lastCommitDate?: number | null;
27
+ lastServerState?: LaunchServerState | null;
28
+ lastServerStateDate?: number | null;
29
+ lastServerVersion?: string | null;
30
+ name?: string;
31
+ createdBy?: string;
32
+ isPublic?: boolean;
33
+ isDefault?: boolean;
34
+ sessionId?: string;
35
+ createdAt?: number | null;
36
+ friendlyName?: string;
37
+ useHomeDir?: boolean;
38
+ ipv4?: {
39
+ address: string | null;
40
+ allocated: boolean | null;
41
+ } | null;
42
+ ipv6?: {
43
+ address: string | null;
44
+ allocated: boolean | null;
45
+ } | null;
46
+ preRecoveryData?: Partial<Branch> & {
47
+ recoveryDate: Date;
48
+ };
49
+ backup?: BranchBackup;
50
+ metadata?: Record<string, unknown>;
51
+ needsCleanup?: boolean;
52
+ deleted?: boolean;
53
+ updatedAt?: string;
54
+ commitMode?: "commits" | "draft-prs" | "prs";
55
+ kubePodName?: string | null;
56
+ kubeNamespace?: string | null;
57
+ kubePvcName?: string | null;
58
+ kubeHostname?: string | null;
59
+ }
60
+ export type CpuKind = "performance" | "shared";
61
+ export type MachineAutoStop = "stop" | "off" | "suspend";
62
+ export interface Project {
63
+ id: string;
64
+ name: string;
65
+ ownerId: string;
66
+ repoFullName: string | undefined;
67
+ repoProvider: string;
68
+ repoProtocol: string | undefined;
69
+ repoDescription?: string;
70
+ repoPrivate: boolean;
71
+ repoUrl: string | undefined;
72
+ createdDate: string;
73
+ updatedAt: string;
74
+ pinned?: boolean;
75
+ archived?: boolean;
76
+ createdBy: string;
77
+ checkRunCounts?: Record<string, number>;
78
+ repoAddedBy?: string;
79
+ pipelineCounts?: Record<string, number>;
80
+ needSetup?: boolean;
81
+ domains?: string[];
82
+ settings: {
83
+ autoDetectDevServer?: boolean;
84
+ autoDetectDevServerPatterns?: string[];
85
+ fusionEnvironment?: FusionExecutionEnvironment;
86
+ devServerPort?: number;
87
+ devServerUrl?: string;
88
+ refreshPreview?: boolean;
89
+ installCommand?: string;
90
+ gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom";
91
+ setupDependencies?: SetupDependency[];
92
+ gitBranchNamingCustom?: string;
93
+ devServerCommand?: string;
94
+ memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384;
95
+ cpuKind?: CpuKind;
96
+ autoStop?: MachineAutoStop;
97
+ mainBranchName?: string;
98
+ minMachinesRunning?: number;
99
+ volumeSize?: 5 | 10 | 12 | 15 | 20;
100
+ includePath?: string;
101
+ includePatterns?: string[];
102
+ environmentVariables?: EnvironmentVariable[];
103
+ commitMode?: "commits" | "draft-prs" | "prs";
104
+ dockerImagePath?: string;
105
+ nodeVersion?: string;
106
+ designSystems?: string[];
107
+ useNI?: boolean;
108
+ folders?: Array<{
109
+ name: string;
110
+ remoteUrl: string;
111
+ mainBranchName?: string;
112
+ includePath?: string;
113
+ addedBy?: string;
114
+ repoProvider?: string;
115
+ repoProtocol?: string;
116
+ }>;
117
+ agentsMD?: string;
118
+ initializationCommand?: string;
119
+ repoSubpath?: string;
120
+ recommendedRoot?: string;
121
+ https?: boolean;
122
+ localHttpsDomain?: string;
123
+ httpsServerKeyPath?: string;
124
+ httpsServerCertPath?: string;
125
+ httpsServerCaPath?: string;
126
+ httpsServerKeyContent?: string;
127
+ httpsServerCertContent?: string;
128
+ httpsServerCaContent?: string;
129
+ httpsServerPfx?: string;
130
+ httpsServerPassphrase?: string;
131
+ httpsServerSecureProtocol?: string;
132
+ httpsServerSecureOptions?: number;
133
+ httpsServerCiphers?: string;
134
+ httpsServerHonorCipherOrder?: boolean;
135
+ httpsServerRequestCert?: boolean;
136
+ httpsServerRejectUnauthorized?: boolean;
137
+ };
138
+ screenshot: string | null;
139
+ isExample?: boolean;
140
+ snapshotVolume?: {
141
+ volumeId: string;
142
+ appName: string;
143
+ createdAt: number;
144
+ };
145
+ isFromUserTemplate?: boolean;
146
+ localPath?: string | null;
147
+ }
148
+ export interface ProjectWithBranches extends Project {
149
+ branches: Record<string, Branch>;
150
+ }
151
+ export interface OrganizationPrivate {
152
+ ownerId: string;
153
+ id: string;
154
+ installs?: {
155
+ ids: number[];
156
+ host: string;
157
+ }[];
158
+ createdAt: number;
159
+ updatedAt: number;
160
+ }
package/src/fusion.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/src/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from "./projects.js";
8
8
  export * from "./repo-indexing.js";
9
9
  export * from "./organization.js";
10
10
  export * from "./features.js";
11
+ export * from "./fusion.js";
package/src/index.js CHANGED
@@ -8,3 +8,4 @@ export * from "./projects.js";
8
8
  export * from "./repo-indexing.js";
9
9
  export * from "./organization.js";
10
10
  export * from "./features.js";
11
+ export * from "./fusion.js";