@builder.io/ai-utils 0.12.16 → 0.12.18

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.16",
3
+ "version": "0.12.18",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -4,6 +4,7 @@ import type { Options as PrettierOptions } from "prettier";
4
4
  import type { UserContext } from "./mapping";
5
5
  import type { ForcedBackup, SetupDependency } from "./projects";
6
6
  import type { Feature } from "./features";
7
+ import type { CpuKind } from "./projects";
7
8
  export type ImportType = "named" | "default";
8
9
  export interface ESMImport {
9
10
  importName: string;
@@ -39,6 +40,7 @@ export interface CustomAgentDefinition {
39
40
  tools?: string[];
40
41
  model?: string;
41
42
  needDevServer?: boolean;
43
+ needValidation?: boolean;
42
44
  includeMemories?: boolean;
43
45
  }
44
46
  export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
@@ -229,7 +231,7 @@ export interface CodeGenToolMap {
229
231
  }
230
232
  export type CodeGenTools = keyof CodeGenToolMap;
231
233
  export type AllCodeGenTools = CodeGenTools | "web_search";
232
- export type SessionMode = "planning" | "normal";
234
+ export type SessionMode = "planning" | "normal" | "auto-planning";
233
235
  export type CodeGenMode = "quality" | "quality-v3" | "quality-v4" | "quality-v4-agent";
234
236
  export type BaseCodeGenPosition = "fusion" | "editor-ai" | "repo-indexing" | "cli" | "create-app-firebase" | "create-app-lovable" | "builder-code-panel";
235
237
  export type CodeGenPosition = BaseCodeGenPosition | `${BaseCodeGenPosition}-agent`;
@@ -487,6 +489,7 @@ export interface GenerateCompletionStepContinue {
487
489
  autoContinue: boolean;
488
490
  }
489
491
  export type DevCommandState = "running" | "stopped" | "starting" | "failed" | "unset";
492
+ export type ValidateCommandState = "unset" | "running" | "stopped" | "success" | "failure";
490
493
  export type SetupCommandState = "not-installed" | "installing" | "installed" | "install-failed" | "install-aborted";
491
494
  export type HttpServerState = "ok-2xx" | "error-4xx" | "error-5xx" | "error-fetch" | "stopped" | "connecting";
492
495
  export type ProxyServerSelection = "hardcoded" | "auto-detected" | "port-env";
@@ -503,6 +506,7 @@ export interface CodeGenHealthStatus {
503
506
  devCommand: string | undefined;
504
507
  setupCommand: string | undefined;
505
508
  hasMergeConflict: boolean;
509
+ hasConfigurationIssue: boolean;
506
510
  logs: string | undefined;
507
511
  prompt: string;
508
512
  message: string;
@@ -575,6 +579,7 @@ export interface GenerateCompletionStepDevServerState {
575
579
  remoteAddress: string | undefined;
576
580
  remotePort: number | undefined;
577
581
  proxyServerReachable: boolean;
582
+ validateState: ValidateCommandState;
578
583
  }
579
584
  export interface GenerateCompletionStepGit {
580
585
  type: "git";
@@ -976,7 +981,7 @@ export type RemoteMachineConfig = {
976
981
  cpus: number;
977
982
  memory: number;
978
983
  region: string;
979
- cpuKind: "performance" | "shared";
984
+ cpuKind?: CpuKind;
980
985
  volumeSize: number;
981
986
  };
982
987
  export type MachineConfig = (RemoteMachineConfig & {
@@ -1056,6 +1061,7 @@ export interface FusionConfig {
1056
1061
  projectId?: string;
1057
1062
  branchName?: string;
1058
1063
  sessionId?: string;
1064
+ browserAutomationInstructions?: string;
1059
1065
  featureBranch?: string;
1060
1066
  aiBranch?: string;
1061
1067
  refreshPreview?: boolean;
package/src/projects.d.ts CHANGED
@@ -325,7 +325,7 @@ export interface Branch {
325
325
  kubeHostname?: string | null;
326
326
  checkoutBranch?: string | null;
327
327
  }
328
- export type CpuKind = "performance" | "shared";
328
+ export type CpuKind = "performance" | "standard" | "shared";
329
329
  export type MachineAutoStop = "stop" | "off" | "suspend";
330
330
  export interface ProjectRolePermissions {
331
331
  view?: boolean;
@@ -374,12 +374,16 @@ export interface Project {
374
374
  installCommand?: string;
375
375
  validateCommand?: string;
376
376
  proxyOrigin?: string;
377
+ proxyDefaultOrigin?: string;
377
378
  gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom";
378
379
  setupDependencies?: SetupDependency[];
379
380
  gitBranchNamingCustom?: string;
380
381
  devServerCommand?: string;
381
- memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384;
382
382
  cpuKind?: CpuKind;
383
+ cpus?: 1 | 2 | 4;
384
+ memory?: 2048 | 4096 | 8192 | 16384;
385
+ /** @deprecated */
386
+ memoryLimit?: 1024 | 2048 | 4096 | 8192 | 16384;
383
387
  autoStop?: MachineAutoStop;
384
388
  mainBranchName?: string;
385
389
  minMachinesRunning?: number;
@@ -408,6 +412,11 @@ export interface Project {
408
412
  recommendedRoot?: string;
409
413
  https?: boolean;
410
414
  localHttpsDomain?: string;
415
+ browserAutomation?: {
416
+ backgroundAgents?: boolean;
417
+ builderApp?: boolean;
418
+ instructions?: string;
419
+ };
411
420
  httpsServerKeyPath?: string;
412
421
  httpsServerCertPath?: string;
413
422
  httpsServerCaPath?: string;