@builder.io/ai-utils 0.5.35 → 0.5.37
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 +5 -1
- package/src/events.d.ts +6 -1
- package/src/messages.d.ts +3 -1
- package/src/repo-indexing.d.ts +1 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -205,6 +205,7 @@ export interface CodeGenInputOptions {
|
|
|
205
205
|
customInstructions?: CustomInstruction[];
|
|
206
206
|
userPrompt?: string;
|
|
207
207
|
ephemeralUserPrompt?: string;
|
|
208
|
+
uiContextPrompt?: string;
|
|
208
209
|
displayUserPrompt?: string;
|
|
209
210
|
files?: ProjectFile[];
|
|
210
211
|
rerankFiles?: number;
|
|
@@ -603,6 +604,7 @@ export type UserSource = UserSourceBuilder | UserSourceGithub | UserSourceGitlab
|
|
|
603
604
|
export interface GenerateUserMessage {
|
|
604
605
|
user?: UserSource;
|
|
605
606
|
userPrompt: string;
|
|
607
|
+
uiContextPrompt?: string;
|
|
606
608
|
ephemeralUserPrompt?: string;
|
|
607
609
|
displayPrompt?: string;
|
|
608
610
|
files?: string[];
|
|
@@ -627,6 +629,7 @@ export interface UserInput {
|
|
|
627
629
|
user: UserSource;
|
|
628
630
|
patchFusionConfig?: Partial<FusionConfig> | undefined;
|
|
629
631
|
modelOverride?: string;
|
|
632
|
+
repair?: boolean;
|
|
630
633
|
}
|
|
631
634
|
export interface CodegenTurn {
|
|
632
635
|
state: "running" | "done" | "error";
|
|
@@ -688,6 +691,7 @@ export interface GenerateCodeEventDone {
|
|
|
688
691
|
sessionUsage: number;
|
|
689
692
|
nextUrl: string;
|
|
690
693
|
autoContinue: boolean;
|
|
694
|
+
model: string;
|
|
691
695
|
}
|
|
692
696
|
export interface GenerateCodeEventError {
|
|
693
697
|
type: "error";
|
|
@@ -762,7 +766,7 @@ export interface CheckBackupDataResultValid {
|
|
|
762
766
|
}
|
|
763
767
|
export interface CheckBackupDataResultInvalid {
|
|
764
768
|
hasValidBackup: false;
|
|
765
|
-
outcome: "no-backup" | "hash-mismatch" | "error" | "not-completed" | "no-session-id" | "no-last-commit-hash" | "no-backup-file" | "empty-full-backup" | "no-vcpCodeGenEvent" | "no-after-commit" | "no-signed-url" | "no-git-branch-name" | "repo-url-mismatch" | "branch-uninitialized";
|
|
769
|
+
outcome: "no-backup" | "hash-mismatch" | "error" | "not-completed" | "no-session-id" | "no-last-commit-hash" | "no-backup-file" | "empty-full-backup" | "no-vcpCodeGenEvent" | "no-after-commit" | "no-signed-url" | "no-git-branch-name" | "repo-url-mismatch" | "branch-uninitialized" | "unexpected-partial-backup" | "unexpected-full-backup";
|
|
766
770
|
message: string;
|
|
767
771
|
backup: BranchBackup | undefined;
|
|
768
772
|
}
|
package/src/events.d.ts
CHANGED
|
@@ -312,7 +312,12 @@ export interface CompletionResponseFeedback {
|
|
|
312
312
|
backendDomain?: string;
|
|
313
313
|
backendCommitId: string | undefined;
|
|
314
314
|
feedbackText: string;
|
|
315
|
-
sentiment?: "positive" | "negative";
|
|
315
|
+
sentiment?: "positive" | "negative" | "neutral";
|
|
316
|
+
frustration_level?: "none" | "low" | "medium" | "high";
|
|
317
|
+
repeated_attempts?: boolean;
|
|
318
|
+
confusion_level?: "none" | "low" | "medium" | "high";
|
|
319
|
+
urgency?: "none" | "low" | "medium" | "high";
|
|
320
|
+
satisfaction?: "none" | "low" | "medium" | "high";
|
|
316
321
|
}
|
|
317
322
|
export interface ThreadCreatedEvent {
|
|
318
323
|
type: "assistant.thread.created";
|
package/src/messages.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface ContentMessageItemText {
|
|
|
10
10
|
cache?: boolean;
|
|
11
11
|
citations?: TextCitationParam[] | null;
|
|
12
12
|
ephemeral?: boolean;
|
|
13
|
+
thoughtSignature?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface ContentMessageItemImage {
|
|
15
16
|
type: "image";
|
|
@@ -65,7 +66,7 @@ export interface ContentMessageItemThinking {
|
|
|
65
66
|
export interface ContentMessageItemRedactedThinking {
|
|
66
67
|
type: "redacted_thinking";
|
|
67
68
|
data: string;
|
|
68
|
-
source?: "openai";
|
|
69
|
+
source?: "openai" | "gemini";
|
|
69
70
|
id?: string;
|
|
70
71
|
}
|
|
71
72
|
export interface ContentMessageItemToolUse {
|
|
@@ -73,6 +74,7 @@ export interface ContentMessageItemToolUse {
|
|
|
73
74
|
id: string;
|
|
74
75
|
input: unknown;
|
|
75
76
|
completion?: string;
|
|
77
|
+
thoughtSignature?: string;
|
|
76
78
|
name: string;
|
|
77
79
|
}
|
|
78
80
|
export interface CitationCharLocationParam {
|
package/src/repo-indexing.d.ts
CHANGED