@builder.io/ai-utils 0.4.20 → 0.4.22

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.4.20",
3
+ "version": "0.4.22",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -94,7 +94,6 @@ export interface CodeGenToolMap {
94
94
  }
95
95
  export type CodeGenTools = keyof CodeGenToolMap;
96
96
  export type AllCodeGenTools = CodeGenTools | "web_search";
97
- export type CodeGenMode = "exact" | "precise" | "precise_vision" | "creative" | "creative_vision" | "creative_only_vision";
98
97
  export interface CodeGenInputOptions {
99
98
  position: string;
100
99
  eventName?: string;
@@ -129,6 +128,7 @@ export interface CodeGenInputOptions {
129
128
  mcpServers?: boolean;
130
129
  pingEvents?: boolean;
131
130
  forceCompact?: boolean;
131
+ hadPagination?: boolean;
132
132
  searchResponse?: any | null;
133
133
  prettierConfig?: PrettierOptions;
134
134
  role?: "user" | "agent";
@@ -151,10 +151,10 @@ export interface CodegenUsage {
151
151
  };
152
152
  }
153
153
  export interface PromptSuggestion {
154
- type: "missing-imports" | "lazy-code" | "no-file-for-diff" | "syntax-error" | "llm-suggested" | "diff-apply" | "acl-policy-violation";
154
+ type: "info" | "missing-imports" | "lazy-code" | "no-file-for-diff" | "syntax-error" | "llm-suggested" | "diff-apply" | "acl-policy-violation";
155
155
  filePath?: string;
156
156
  line?: number;
157
- importance: "high" | "medium" | "low";
157
+ importance: "high" | "medium" | "low" | "info";
158
158
  column?: number;
159
159
  summary: string;
160
160
  prompt: string;
@@ -292,6 +292,7 @@ export interface GenerateCompletionStepError {
292
292
  stopReason?: "error" | "limit";
293
293
  metadata?: any;
294
294
  message: string;
295
+ restoreCredits?: number;
295
296
  usage?: CodegenUsage;
296
297
  contextPrompt?: string;
297
298
  }
@@ -418,6 +419,7 @@ export interface UserSourceBuilder {
418
419
  userName?: string;
419
420
  userEmail?: string;
420
421
  role: "user";
422
+ photoURL?: string;
421
423
  }
422
424
  export interface UserSourceGithub {
423
425
  source: "github";
package/src/projects.d.ts CHANGED
@@ -143,4 +143,9 @@ export interface CleanupCompletedMessage extends BaseMessage {
143
143
  * Messages sent by the container orchestrator.
144
144
  */
145
145
  export type ProjectsChunkMessage = InitializingMessage | FetchingGithubTokenMessage | FetchingFusionKeyMessage | CheckingAppMessage | CleaningUpAppMessage | CreatingAppMessage | CheckingIPMessage | AllocatingIPMessage | CheckingMachineMessage | CheckingVolumeMessage | ForkingVolumeMessage | RetryingWithNewRegionMessage | WaitingBeforePollingMessage | PollingMachineStatusMessage | WarningStateMessage | PingMessage | DebugMessage | ErrorMessage | InfoMessage | WarningMessage | MachineStatusMessage | LogsMessage | ConfigStatusMessage | AppCreatedMessage | MachineCreatedMessage | IpAllocatedMessage | VolumeForkedMessage | ReadyMessage | ErrorStateMessage | CleanupCompletedMessage;
146
+ export type GitConfig = {
147
+ url: string;
148
+ provider: "github" | "bitbucket" | "gitlab";
149
+ };
150
+ export type GitConfigs = Record<string, GitConfig>;
146
151
  export {};