@builder.io/ai-utils 0.5.40 → 0.5.41
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 +1 -1
- package/src/codegen.d.ts +3 -0
- package/src/messages.d.ts +2 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -191,6 +191,8 @@ export interface CodeGenToolMap {
|
|
|
191
191
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
192
192
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
193
193
|
export type CodeGenMode = "quality" | "quality-v3" | "quality-v4" | "quality-v4-agent";
|
|
194
|
+
export type BaseCodeGenPosition = "fusion" | "editor-ai" | "repo-indexing" | "cli" | "create-app-firebase" | "create-app-lovable" | "builder-code-panel";
|
|
195
|
+
export type CodeGenPosition = BaseCodeGenPosition | `${BaseCodeGenPosition}-agent`;
|
|
194
196
|
export interface RepoIndexingConfig {
|
|
195
197
|
designSystems: string[];
|
|
196
198
|
}
|
|
@@ -673,6 +675,7 @@ export interface CodegenFeedback {
|
|
|
673
675
|
afterCommit?: string;
|
|
674
676
|
linesOfCodeAdded?: number;
|
|
675
677
|
linesOfCodeRemoved?: number;
|
|
678
|
+
position?: CodeGenPosition;
|
|
676
679
|
}
|
|
677
680
|
export interface CodegenSetLastCompletion {
|
|
678
681
|
sessionId: string;
|
package/src/messages.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface DocumentBase64Source {
|
|
|
28
28
|
type: "base64";
|
|
29
29
|
media_type: "application/pdf";
|
|
30
30
|
data: string;
|
|
31
|
+
original_url?: string;
|
|
31
32
|
}
|
|
32
33
|
export interface DocumentUrlSource {
|
|
33
34
|
type: "url";
|
|
@@ -53,6 +54,7 @@ export interface ImageBase64Source {
|
|
|
53
54
|
type: "base64";
|
|
54
55
|
media_type: "image/webp" | "image/png" | "image/jpeg" | "image/gif";
|
|
55
56
|
data: string;
|
|
57
|
+
original_url?: string;
|
|
56
58
|
}
|
|
57
59
|
export interface ImageUrlSource {
|
|
58
60
|
type: "url";
|