@builder.io/ai-utils 0.4.9 → 0.4.11
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 +12 -5
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -74,8 +74,11 @@ export interface SearchReplaceInput {
|
|
|
74
74
|
old_str: string;
|
|
75
75
|
new_str: string;
|
|
76
76
|
}
|
|
77
|
-
export interface
|
|
78
|
-
|
|
77
|
+
export interface FindMediaToolInput {
|
|
78
|
+
query: string;
|
|
79
|
+
type: "image" | "video";
|
|
80
|
+
orientation?: "landscape" | "portrait" | "square";
|
|
81
|
+
hex_color?: string;
|
|
79
82
|
}
|
|
80
83
|
export interface CodeGenToolMap {
|
|
81
84
|
view_path: ViewPathToolInput;
|
|
@@ -88,7 +91,7 @@ export interface CodeGenToolMap {
|
|
|
88
91
|
web_search: WebSearchToolInput;
|
|
89
92
|
write_file: WriteFileInput;
|
|
90
93
|
search_replace_file: SearchReplaceInput;
|
|
91
|
-
|
|
94
|
+
find_media: FindMediaToolInput;
|
|
92
95
|
}
|
|
93
96
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
94
97
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
@@ -294,7 +297,7 @@ export interface GenerateCompletionStepContinue {
|
|
|
294
297
|
id: string;
|
|
295
298
|
url: string;
|
|
296
299
|
}
|
|
297
|
-
export type DevCommandState = "running" | "stopped" | "unset";
|
|
300
|
+
export type DevCommandState = "running" | "stopped" | "failed" | "unset";
|
|
298
301
|
export type SetupCommandState = "not-installed" | "installing" | "installed" | "install-failed";
|
|
299
302
|
export type HttpServerState = "ok-2xx" | "error-4xx" | "error-5xx" | "error-fetch" | "stopped" | "connecting";
|
|
300
303
|
export interface CodeGenHealthStatus {
|
|
@@ -386,7 +389,7 @@ export interface GenerateCompletionStepSession {
|
|
|
386
389
|
createdUnixTime: number;
|
|
387
390
|
updatedUnixTime: number;
|
|
388
391
|
id: string;
|
|
389
|
-
|
|
392
|
+
turns: number;
|
|
390
393
|
}
|
|
391
394
|
export interface GenerateCompletionStepServerToolResult {
|
|
392
395
|
type: "server_tool_result";
|
|
@@ -463,12 +466,15 @@ export interface CodegenTurn {
|
|
|
463
466
|
}
|
|
464
467
|
export interface GetSessionTurnsResult {
|
|
465
468
|
turns: CodegenTurn[];
|
|
469
|
+
allIds: string[];
|
|
470
|
+
lastCompletionId: string | undefined;
|
|
466
471
|
sessionId: string;
|
|
467
472
|
initialUrl: string | undefined;
|
|
468
473
|
beforeCommit: string | undefined;
|
|
469
474
|
title: string | undefined;
|
|
470
475
|
createdUnixTime: number | undefined;
|
|
471
476
|
updatedUnixTime: number | undefined;
|
|
477
|
+
canLoadMore: boolean;
|
|
472
478
|
}
|
|
473
479
|
export interface CodegenFeedback {
|
|
474
480
|
id: string;
|
|
@@ -529,6 +535,7 @@ export interface GenerateCodeEventUser {
|
|
|
529
535
|
user: UserSource;
|
|
530
536
|
/** @deprecated */
|
|
531
537
|
role: "user" | "agent";
|
|
538
|
+
compacting: boolean;
|
|
532
539
|
}
|
|
533
540
|
export interface MCPClientStatus {
|
|
534
541
|
status: "ok" | "error";
|