@builder.io/ai-utils 0.4.13 → 0.4.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -337,7 +337,6 @@ export interface GenerateCompletionStepRestore {
337
337
  location: "before" | "after";
338
338
  files: string[];
339
339
  lastCompletionId: string | undefined;
340
- commitHash: string | undefined;
341
340
  }
342
341
  export type GenerateCompletionState = "unknown" | "initial-with-url" | "initial-without-url" | "generating" | "success" | "abort" | "error" | "close" | "replay";
343
342
  export interface GenerateCompletionStepState {
@@ -455,6 +454,7 @@ export interface CodegenTurn {
455
454
  title: string;
456
455
  nextUrl: string | undefined;
457
456
  user: UserSource;
457
+ creditsUsed: number;
458
458
  actions: ActionItem[];
459
459
  sentiment: "positive" | "negative" | "undo" | undefined;
460
460
  applyResults: ApplyActionsResult[];
@@ -480,6 +480,7 @@ export interface CodegenFeedback {
480
480
  feedbackSentiment?: string;
481
481
  framework?: string;
482
482
  acceptedLines?: number;
483
+ beforeCommit?: string;
483
484
  afterCommit?: string;
484
485
  }
485
486
  export interface CodegenSetLastCompletion {
@@ -496,6 +497,7 @@ export interface GenerateCodeEventDone {
496
497
  needsPagination: boolean;
497
498
  actions?: ActionItem[];
498
499
  suggestions: PromptSuggestion[];
500
+ creditsUsed: number;
499
501
  usage?: CodegenUsage;
500
502
  messageIndex: number;
501
503
  sessionUsage: number;