@builder.io/ai-utils 0.12.7 → 0.12.9

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.12.7",
3
+ "version": "0.12.9",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -485,6 +485,12 @@ export interface GenerateCompletionStepContinue {
485
485
  export type DevCommandState = "running" | "stopped" | "starting" | "failed" | "unset";
486
486
  export type SetupCommandState = "not-installed" | "installing" | "installed" | "install-failed" | "install-aborted";
487
487
  export type HttpServerState = "ok-2xx" | "error-4xx" | "error-5xx" | "error-fetch" | "stopped" | "connecting";
488
+ export type ProxyServerSelection = "hardcoded" | "auto-detected" | "port-env";
489
+ export interface HttpServerData {
490
+ state: HttpServerState;
491
+ remoteAddress: string | undefined;
492
+ remotePort: number | undefined;
493
+ }
488
494
  export interface CodeGenHealthStatus {
489
495
  devServerState: DevCommandState;
490
496
  setupState: SetupCommandState;
@@ -561,6 +567,10 @@ export interface GenerateCompletionStepDevServerState {
561
567
  devCommand: string | undefined;
562
568
  setupCommand: string | undefined;
563
569
  proxyServer: string | undefined;
570
+ proxyServerSelection: ProxyServerSelection | undefined;
571
+ remoteAddress: string | undefined;
572
+ remotePort: number | undefined;
573
+ proxyServerReachable: boolean;
564
574
  }
565
575
  export interface GenerateCompletionStepGit {
566
576
  type: "git";
@@ -1066,6 +1076,14 @@ export interface FusionConfig {
1066
1076
  mode?: Mode;
1067
1077
  autoDetectDevServer?: boolean;
1068
1078
  autoDetectDevServerPatterns?: string[];
1079
+ /**
1080
+ * If true, automatically assign a random free port (>=40000) to the PORT environment variable
1081
+ * when devCommand runs. The system will then detect which port the dev server is actually
1082
+ * listening on and use that instead of the configured serverUrl.
1083
+ *
1084
+ * @default false
1085
+ */
1086
+ autoSuggestPort?: boolean;
1069
1087
  runInPty?: boolean;
1070
1088
  httpsServerFiles?: {
1071
1089
  key?: string;
package/src/projects.d.ts CHANGED
@@ -255,14 +255,14 @@ export interface SetupScriptDependency {
255
255
  name: string;
256
256
  script: string;
257
257
  }
258
- export type FusionExecutionEnvironment = "containerized" | "container-less" | "cloud";
258
+ export type FusionExecutionEnvironment = "containerized" | "container-less" | "cloud" | "cloud-v2";
259
259
  export interface PartialBranchData {
260
260
  name?: string;
261
261
  createdBy: string;
262
262
  friendlyName: string;
263
263
  isDefault: boolean;
264
264
  isPublic: boolean;
265
- lockedFusionEnvironment: FusionExecutionEnvironment;
265
+ lockedFusionEnvironment?: FusionExecutionEnvironment;
266
266
  metadata?: Record<string, unknown>;
267
267
  backup?: BranchBackup;
268
268
  gitAiBranch?: string | null;