@builder.io/ai-utils 0.43.0 → 0.44.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.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/codegen.d.ts CHANGED
@@ -1849,6 +1849,8 @@ export interface FusionConfig {
1849
1849
  machine?: RemoteMachineConfig;
1850
1850
  _attemptDryRunBackupGit?: boolean;
1851
1851
  _useNI?: boolean;
1852
+ /** If true, nuke and re-clone the git repo during init, overwriting the existing repo */
1853
+ rebuildGit?: boolean;
1852
1854
  mode?: Mode;
1853
1855
  autoDetectDevServer?: boolean;
1854
1856
  autoDetectDevServerPatterns?: string[];
package/src/projects.d.ts CHANGED
@@ -818,6 +818,8 @@ export interface CreateBranchOptions {
818
818
  branchNameSuffix?: string;
819
819
  /** Additional metadata to store on the branch (e.g., Slack thread origin) */
820
820
  metadata?: Record<string, unknown>;
821
+ /** The git branch name this Fusion branch corresponds to (used by push/pull CLI commands) */
822
+ gitAiBranch?: string | null;
821
823
  }
822
824
  interface BaseCreateBranchMessage {
823
825
  }
@@ -1,20 +1,37 @@
1
- export interface VpcPeering {
1
+ /** Fields common to all VPC connectivity types. */
2
+ interface VpcConnectionBase {
2
3
  id: string;
3
4
  ownerId: string;
4
- cloud: "gcp";
5
+ type: string;
5
6
  gcpRegion: string;
6
- gcpProjectId: string;
7
- gcpNetworkName: string;
8
- bridgeCidr: string;
9
7
  customerDnsServers: string[];
10
- importCustomRoutes: boolean;
11
8
  proxyIp: string;
12
9
  enabled: boolean;
13
10
  createdAt: number;
14
11
  updatedAt: number;
15
12
  }
16
- export interface CreateVpcPeeringParams {
17
- cloud: "gcp";
13
+ /** Traditional VPC Peering via bridge VPC. */
14
+ export interface VpcGcpPeering extends VpcConnectionBase {
15
+ type: "gcp-peering";
16
+ gcpProjectId: string;
17
+ gcpNetworkName: string;
18
+ bridgeCidr: string;
19
+ importCustomRoutes: boolean;
20
+ }
21
+ /**
22
+ * PSC Network Attachment — customer creates the network attachment in their VPC,
23
+ * our proxy VM connects to it via a PSC interface on nic1.
24
+ * No bridge VPC or bridge CIDR needed on our side.
25
+ */
26
+ export interface VpcGcpNetworkAttachment extends VpcConnectionBase {
27
+ type: "gcp-network-attachment";
28
+ gcpProjectId: string;
29
+ networkAttachmentName: string;
30
+ }
31
+ /** Discriminated union of all VPC connectivity types. */
32
+ export type VpcPeering = VpcGcpPeering | VpcGcpNetworkAttachment;
33
+ export interface CreateVpcGcpPeeringParams {
34
+ type: "gcp-peering";
18
35
  gcpRegion: string;
19
36
  gcpProjectId: string;
20
37
  gcpNetworkName: string;
@@ -22,3 +39,11 @@ export interface CreateVpcPeeringParams {
22
39
  customerDnsServers: string[];
23
40
  importCustomRoutes?: boolean;
24
41
  }
42
+ export interface CreateVpcGcpNetworkAttachmentParams {
43
+ type: "gcp-network-attachment";
44
+ gcpProjectId: string;
45
+ networkAttachmentName: string;
46
+ customerDnsServers: string[];
47
+ }
48
+ export type CreateVpcPeeringParams = CreateVpcGcpPeeringParams | CreateVpcGcpNetworkAttachmentParams;
49
+ export {};