@builder.io/ai-utils 0.12.5 → 0.12.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.12.5",
3
+ "version": "0.12.7",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -314,7 +314,7 @@ export interface CodeGenInputOptions {
314
314
  /** @deprecated */
315
315
  repair?: boolean;
316
316
  }
317
- export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "abrupt-end" | "unknown" | "failed-recover-state" | "ask-to-continue" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "privacy-mode-key-required" | "privacy-mode-key-invalid" | "assertion" | "rate-limit" | "unknown-design-system";
317
+ export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "abrupt-end" | "unknown" | "failed-recover-state" | "ask-to-continue" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "privacy-mode-key-required" | "privacy-mode-key-invalid" | "cli-network-error" | "assertion" | "rate-limit" | "unknown-design-system";
318
318
  export interface CodegenUsage {
319
319
  total: number;
320
320
  fast: number;
@@ -603,6 +603,7 @@ export interface GenerateCompletionStepSession {
603
603
  turns: number;
604
604
  lastCompletionId: string | undefined;
605
605
  sessionMode: SessionMode;
606
+ fusionConfig: FusionConfig | undefined;
606
607
  }
607
608
  export interface GenerateCompletionStepServerToolResult {
608
609
  type: "server_tool_result";
@@ -1121,6 +1122,11 @@ export interface FusionConfig {
1121
1122
  * These are merged with filesystem-discovered agents.
1122
1123
  */
1123
1124
  customAgents?: CustomAgentDefinition[];
1125
+ /**
1126
+ * Array of regex patterns to ignore when checking for client-side errors.
1127
+ * Errors matching these patterns will not show the error popup.
1128
+ */
1129
+ errorIgnorePatterns?: string[];
1124
1130
  /** @deprecated use devCommand */
1125
1131
  command?: string;
1126
1132
  }