@builder.io/ai-utils 0.4.21 → 0.4.23

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.21",
3
+ "version": "0.4.23",
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";
@@ -586,11 +588,13 @@ export interface FusionConfig {
586
588
  checkCommand?: string;
587
589
  setupCommand?: string;
588
590
  projectId?: string;
591
+ branchName?: string;
589
592
  workingDirectory: string;
590
593
  bashWorkingDirectory?: string;
591
594
  workspace?: WorkspaceConfiguration;
592
595
  authenticateProxy?: boolean;
593
596
  allowedCommands?: string[];
597
+ autoBackupGit?: boolean;
594
598
  commitMode: CommitMode;
595
599
  serverUrl: string;
596
600
  isLocal?: boolean;
package/src/projects.d.ts CHANGED
@@ -148,4 +148,16 @@ export type GitConfig = {
148
148
  provider: "github" | "bitbucket" | "gitlab";
149
149
  };
150
150
  export type GitConfigs = Record<string, GitConfig>;
151
+ export declare const EXAMPLE_REPOS: string[];
152
+ export declare const STARTER_REPO = "BuilderIO/fusion-starter";
153
+ export interface GitBackupUploadUrlResult {
154
+ signedUrl: string;
155
+ filePath: string;
156
+ expiresAt: string;
157
+ }
158
+ export interface GitBackupUploadUrlOptions {
159
+ projectId: string;
160
+ branchName: string;
161
+ size: number;
162
+ }
151
163
  export {};
package/src/projects.js CHANGED
@@ -1 +1,7 @@
1
- export {};
1
+ export const EXAMPLE_REPOS = [
2
+ "steve8708/mui-vite",
3
+ "steve8708/carbon-vite",
4
+ "steve8708/vite-react-shopify-polaris",
5
+ "steve8708/cloudscape-demos",
6
+ ];
7
+ export const STARTER_REPO = "BuilderIO/fusion-starter";