@builder.io/ai-utils 0.4.28 → 0.4.29
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 +10 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -79,6 +79,12 @@ export interface FindMediaToolInput {
|
|
|
79
79
|
orientation?: "landscape" | "portrait" | "square";
|
|
80
80
|
hex_color?: string;
|
|
81
81
|
}
|
|
82
|
+
export interface MemoryToolInput {
|
|
83
|
+
scope: "global" | "user" | "project";
|
|
84
|
+
memory: string;
|
|
85
|
+
memory_id?: string;
|
|
86
|
+
when?: string;
|
|
87
|
+
}
|
|
82
88
|
export interface CodeGenToolMap {
|
|
83
89
|
view_path: ViewPathToolInput;
|
|
84
90
|
glob_search: GlobSearchToolInput;
|
|
@@ -91,6 +97,7 @@ export interface CodeGenToolMap {
|
|
|
91
97
|
write_file: WriteFileInput;
|
|
92
98
|
search_replace_file: SearchReplaceInput;
|
|
93
99
|
find_media: FindMediaToolInput;
|
|
100
|
+
memory: MemoryToolInput;
|
|
94
101
|
}
|
|
95
102
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
96
103
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
@@ -133,6 +140,7 @@ export interface CodeGenInputOptions {
|
|
|
133
140
|
prettierConfig?: PrettierOptions;
|
|
134
141
|
role?: "user" | "agent";
|
|
135
142
|
user?: UserSource;
|
|
143
|
+
projectId?: string;
|
|
136
144
|
/** @deprecated */
|
|
137
145
|
prevId?: string;
|
|
138
146
|
/** @deprecated */
|
|
@@ -458,7 +466,7 @@ export interface UserInput {
|
|
|
458
466
|
role: "user" | "agent";
|
|
459
467
|
}
|
|
460
468
|
export interface CodegenTurn {
|
|
461
|
-
state: "running" | "done" | "error"
|
|
469
|
+
state: "running" | "done" | "error";
|
|
462
470
|
unixTime: number;
|
|
463
471
|
completionId: string;
|
|
464
472
|
title: string;
|
|
@@ -471,6 +479,7 @@ export interface CodegenTurn {
|
|
|
471
479
|
userMessage: GenerateUserMessage | undefined;
|
|
472
480
|
beforeCommit: string | undefined;
|
|
473
481
|
afterCommit: string | undefined;
|
|
482
|
+
cachedToolResults?: ContentMessageItemToolResult[];
|
|
474
483
|
}
|
|
475
484
|
export interface GetSessionTurnsResult {
|
|
476
485
|
turns: CodegenTurn[];
|