@builder.io/ai-utils 0.5.6 → 0.5.8
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 +21 -1
- package/src/projects.d.ts +4 -3
- package/src/repo-indexing.d.ts +14 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import type { Attachment, ContentMessageItemToolResult } from "./messages";
|
|
|
2
2
|
import type { BuilderContent } from "./completion";
|
|
3
3
|
import type { Options as PrettierOptions } from "prettier";
|
|
4
4
|
import type { UserContext } from "./mapping";
|
|
5
|
+
export interface LoadingState {
|
|
6
|
+
type: "tool_start" | "tool_end";
|
|
7
|
+
toolName?: string;
|
|
8
|
+
toolId?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
5
11
|
export type ImportType = "named" | "default";
|
|
6
12
|
export interface ESMImport {
|
|
7
13
|
importName: string;
|
|
@@ -124,6 +130,11 @@ export interface TodoWriteToolInput {
|
|
|
124
130
|
id: string;
|
|
125
131
|
}[];
|
|
126
132
|
}
|
|
133
|
+
export interface BuilderEditToolInput {
|
|
134
|
+
filePath: string;
|
|
135
|
+
old_str: string;
|
|
136
|
+
new_str: string;
|
|
137
|
+
}
|
|
127
138
|
export interface GetScreenshotToolInput {
|
|
128
139
|
url: string;
|
|
129
140
|
selector?: string;
|
|
@@ -162,6 +173,7 @@ export interface CodeGenToolMap {
|
|
|
162
173
|
Revert: RevertToolInput;
|
|
163
174
|
TodoRead: TodoReadToolInput;
|
|
164
175
|
TodoWrite: TodoWriteToolInput;
|
|
176
|
+
BuilderEdit: BuilderEditToolInput;
|
|
165
177
|
LS: ListDirToolInput;
|
|
166
178
|
}
|
|
167
179
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
@@ -681,7 +693,15 @@ export interface GenerateCodeEventMCPStatus {
|
|
|
681
693
|
type: "mcp-status";
|
|
682
694
|
status: Record<string, MCPClientStatus>;
|
|
683
695
|
}
|
|
684
|
-
export type GenerateCodeEvent = ActionItem | GenerateCodeEventDone | GenerateCodeEventContinue | GenerateCodeEventPagination | GenerateCodeEventDelta | GenerateCodeEventError | GenerateCodeEventPing | GenerateCodeEventMCPStatus | GenerateCodeEventUser;
|
|
696
|
+
export type GenerateCodeEvent = ActionItem | GenerateCodeEventDone | GenerateCodeEventContinue | GenerateCodeEventPagination | GenerateCodeEventDelta | GenerateCodeEventError | GenerateCodeEventPing | GenerateCodeEventMCPStatus | GenerateCodeEventUser | GenerateCodeEventEditorAILoadingState;
|
|
697
|
+
export interface GenerateCodeEventEditorAILoadingState {
|
|
698
|
+
type: "loading_state";
|
|
699
|
+
loadingState: LoadingState;
|
|
700
|
+
content?: string;
|
|
701
|
+
actionTitle?: string;
|
|
702
|
+
artifactTitle?: string;
|
|
703
|
+
filePath?: string;
|
|
704
|
+
}
|
|
685
705
|
export type CommitMode = "commits" | "draft-prs" | "prs";
|
|
686
706
|
export interface WorkspaceFolder {
|
|
687
707
|
enableGit?: boolean;
|
package/src/projects.d.ts
CHANGED
|
@@ -187,9 +187,10 @@ export interface GitBackupRecordOptions {
|
|
|
187
187
|
branchName: string;
|
|
188
188
|
size: number;
|
|
189
189
|
gitBranchName: string;
|
|
190
|
-
initialCommitHash
|
|
191
|
-
lastCommitHash
|
|
192
|
-
partial
|
|
190
|
+
initialCommitHash: string;
|
|
191
|
+
lastCommitHash: string;
|
|
192
|
+
partial: boolean;
|
|
193
|
+
status: "initiated" | "completed";
|
|
193
194
|
}
|
|
194
195
|
export interface GitBackupRecordResult {
|
|
195
196
|
success: boolean;
|
package/src/repo-indexing.d.ts
CHANGED
|
@@ -8,4 +8,18 @@ export interface StoreComponentDocsInput {
|
|
|
8
8
|
designSystemPackage?: string;
|
|
9
9
|
designSystemVersion?: string;
|
|
10
10
|
hash?: string;
|
|
11
|
+
designSystemId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AddDesignSystemInput {
|
|
14
|
+
designSystemName: string;
|
|
15
|
+
status: string;
|
|
16
|
+
spaceId: string;
|
|
17
|
+
rootOrgId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface UpdateDesignSystemInput {
|
|
20
|
+
id: string;
|
|
21
|
+
spaceId?: string;
|
|
22
|
+
rootOrgId?: string;
|
|
23
|
+
designSystemName?: string;
|
|
24
|
+
status?: "in-progress" | "completed" | "failed";
|
|
11
25
|
}
|