@builder.io/ai-utils 0.12.22 → 0.12.24
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 +20 -2
- package/src/projects.d.ts +1 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -406,9 +406,10 @@ export interface GenerateCompletionStepUser {
|
|
|
406
406
|
type: "user";
|
|
407
407
|
displayPrompt: string | undefined;
|
|
408
408
|
attachments?: Array<Attachment>;
|
|
409
|
-
id
|
|
409
|
+
id?: string;
|
|
410
410
|
user: UserSource;
|
|
411
411
|
role: "user" | "agent";
|
|
412
|
+
idempotencyKey?: string;
|
|
412
413
|
compacting: boolean;
|
|
413
414
|
}
|
|
414
415
|
export interface GenerateCompletionStepFile {
|
|
@@ -629,6 +630,10 @@ export interface GenerateCompletionStepMetadata {
|
|
|
629
630
|
type: "metadata";
|
|
630
631
|
[key: string]: unknown;
|
|
631
632
|
}
|
|
633
|
+
export interface GenerateCompletionStepMessageQueue {
|
|
634
|
+
type: "message-queue";
|
|
635
|
+
queue: Pick<GenerateUserMessage, "idempotencyKey" | "displayPrompt" | "user">[];
|
|
636
|
+
}
|
|
632
637
|
export interface GenerateCompletionStepServerToolResult {
|
|
633
638
|
type: "server_tool_result";
|
|
634
639
|
content: any;
|
|
@@ -653,7 +658,7 @@ export interface GenerateCompletionStepTerminals {
|
|
|
653
658
|
}
|
|
654
659
|
export type GenerateCompletionStep = {
|
|
655
660
|
timestamp?: number;
|
|
656
|
-
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCompletionStepToolCallRequest | GenerateCodeEventMCPStatus | GenerateCodeEventMCPAuthRequired | GenerateCompletionStepDevServerState | GenerateCompletionStepAgent | GenerateCompletionStepBatch | GenerateCompletionStepTerminals | GenerateCompletionStepMetadata);
|
|
661
|
+
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCompletionStepToolCallRequest | GenerateCodeEventMCPStatus | GenerateCodeEventMCPAuthRequired | GenerateCompletionStepDevServerState | GenerateCompletionStepAgent | GenerateCompletionStepBatch | GenerateCompletionStepTerminals | GenerateCompletionStepMetadata | GenerateCompletionStepMessageQueue);
|
|
657
662
|
export interface ApplyActionsResult {
|
|
658
663
|
filePath: string;
|
|
659
664
|
addedLines: number;
|
|
@@ -708,6 +713,7 @@ export interface UserSourceAgent extends UserSourceBase {
|
|
|
708
713
|
}
|
|
709
714
|
export type UserSource = UserSourceOther | UserSourceBuilder | UserSourceGithub | UserSourceGitlab | UserSourceAzure | UserSourceBitbucket | UserSourceAgent;
|
|
710
715
|
export interface GenerateUserMessage {
|
|
716
|
+
idempotencyKey?: string;
|
|
711
717
|
user?: UserSource;
|
|
712
718
|
userPrompt: string;
|
|
713
719
|
uiContextPrompt?: string;
|
|
@@ -1506,3 +1512,15 @@ export interface RepoMetrics {
|
|
|
1506
1512
|
guessedSettings?: GuessedSettings;
|
|
1507
1513
|
errors?: string[];
|
|
1508
1514
|
}
|
|
1515
|
+
export interface CodegenAbortOptions {
|
|
1516
|
+
cleanCurrentMessage?: boolean;
|
|
1517
|
+
flushMessageQueue?: boolean;
|
|
1518
|
+
}
|
|
1519
|
+
export type MessageUpdateOptions = {
|
|
1520
|
+
type: "move";
|
|
1521
|
+
idempotencyKey: string;
|
|
1522
|
+
delta: number;
|
|
1523
|
+
} | {
|
|
1524
|
+
type: "delete";
|
|
1525
|
+
idempotencyKey: string;
|
|
1526
|
+
};
|
package/src/projects.d.ts
CHANGED
|
@@ -405,7 +405,7 @@ export interface Project {
|
|
|
405
405
|
validateCommand?: string;
|
|
406
406
|
proxyOrigin?: string;
|
|
407
407
|
proxyDefaultOrigin?: string;
|
|
408
|
-
gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom";
|
|
408
|
+
gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom" | "ask-user";
|
|
409
409
|
setupDependencies?: SetupDependency[];
|
|
410
410
|
gitBranchNamingCustom?: string;
|
|
411
411
|
devServerCommand?: string;
|