@builder.io/ai-utils 0.4.27 → 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/src/projects.d.ts +1 -1
- package/src/settings.d.ts +1 -0
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[];
|
package/src/projects.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export interface ReadyMessage extends BaseMessage {
|
|
|
132
132
|
url: string;
|
|
133
133
|
status?: LaunchServerStatus;
|
|
134
134
|
}
|
|
135
|
-
export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions";
|
|
135
|
+
export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions" | "machine-status-polling-failed";
|
|
136
136
|
export interface ErrorStateMessage extends BaseMessage {
|
|
137
137
|
state: "error";
|
|
138
138
|
message: string;
|