@builder.io/ai-utils 0.5.14 → 0.5.16
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 +9 -2
- package/src/projects.d.ts +3 -2
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -173,6 +173,9 @@ export interface CodeGenToolMap {
|
|
|
173
173
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
174
174
|
export type AllCodeGenTools = CodeGenTools | "web_search";
|
|
175
175
|
export type CodeGenMode = "quality" | "quality-v3" | "quality-v4" | "quality-v4-agent";
|
|
176
|
+
export interface RepoIndexingConfig {
|
|
177
|
+
designSystems: string[];
|
|
178
|
+
}
|
|
176
179
|
export interface CodeGenInputOptions {
|
|
177
180
|
position: string;
|
|
178
181
|
eventName?: string;
|
|
@@ -197,6 +200,7 @@ export interface CodeGenInputOptions {
|
|
|
197
200
|
typescript?: boolean;
|
|
198
201
|
userContext?: UserContext;
|
|
199
202
|
aclPolicy?: AclPolicy;
|
|
203
|
+
repoIndexingConfig?: RepoIndexingConfig;
|
|
200
204
|
enabledTools?: CodeGenTools[];
|
|
201
205
|
maxTokens?: number;
|
|
202
206
|
maxPages?: number;
|
|
@@ -590,6 +594,7 @@ export interface UserInput {
|
|
|
590
594
|
mostRelevantFile: string | null;
|
|
591
595
|
toolResults: ContentMessageItemToolResult[];
|
|
592
596
|
user: UserSource;
|
|
597
|
+
patchFusionConfig?: Partial<FusionConfig> | undefined;
|
|
593
598
|
}
|
|
594
599
|
export interface CodegenTurn {
|
|
595
600
|
state: "running" | "done" | "error";
|
|
@@ -710,7 +715,8 @@ export interface BranchBackup {
|
|
|
710
715
|
lastCommitHash: string;
|
|
711
716
|
partial: boolean;
|
|
712
717
|
status: "initiated" | "completed";
|
|
713
|
-
contentMd5
|
|
718
|
+
contentMd5?: string;
|
|
719
|
+
empty?: boolean;
|
|
714
720
|
}
|
|
715
721
|
export interface CheckBackupDataResultValid {
|
|
716
722
|
hasValidBackup: true;
|
|
@@ -793,6 +799,7 @@ export interface FusionConfig {
|
|
|
793
799
|
isLocal?: boolean;
|
|
794
800
|
envVariables?: Record<string, string>;
|
|
795
801
|
accessControl?: AclPolicy;
|
|
802
|
+
repoIndexingConfig?: RepoIndexingConfig;
|
|
796
803
|
machine?: RemoteMachineConfig;
|
|
797
804
|
_attemptDryRunBackupGit?: boolean;
|
|
798
805
|
/** @deprecated use devCommand */
|
|
@@ -847,7 +854,7 @@ export interface InitState {
|
|
|
847
854
|
branch: string;
|
|
848
855
|
}[];
|
|
849
856
|
}
|
|
850
|
-
export type LaunchServerState = "initial" | "init-running" | "init-complete" | "ready" | "active-session" | "error";
|
|
857
|
+
export type LaunchServerState = "initial" | "init-running" | "init-complete" | "ready" | "active-session" | "error" | "closing";
|
|
851
858
|
export interface LaunchServerStatus {
|
|
852
859
|
status: "ok";
|
|
853
860
|
state: LaunchServerState;
|
package/src/projects.d.ts
CHANGED
|
@@ -185,8 +185,9 @@ export interface GitBackupRecordOptions {
|
|
|
185
185
|
initialCommitHash: string;
|
|
186
186
|
lastCommitHash: string;
|
|
187
187
|
partial: boolean;
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
empty: boolean;
|
|
189
|
+
status: "completed";
|
|
190
|
+
contentMd5?: string;
|
|
190
191
|
}
|
|
191
192
|
export interface GitBackupRecordResult {
|
|
192
193
|
success: boolean;
|