@builder.io/ai-utils 0.5.38 → 0.5.40

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.5.38",
3
+ "version": "0.5.40",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -228,6 +228,7 @@ export interface CodeGenInputOptions {
228
228
  maxTokens?: number;
229
229
  maxPages?: number;
230
230
  autoContinue?: number;
231
+ isManualContinue?: boolean;
231
232
  promptCaching?: boolean;
232
233
  llmSuggestions?: boolean;
233
234
  conclusionText?: boolean;
@@ -374,6 +375,7 @@ export interface GenerateCompletionStepDone {
374
375
  actions: ActionItem[];
375
376
  creditsUsed: number;
376
377
  sessionUsage: number;
378
+ model: string;
377
379
  usage: CodegenUsage | undefined;
378
380
  url?: string;
379
381
  stopReason: CompletionStopReason;
@@ -615,6 +617,7 @@ export interface GenerateUserMessage {
615
617
  dropAbortedPrompt?: boolean;
616
618
  modelOverride?: string;
617
619
  maxCompletions?: number;
620
+ isManualContinue?: boolean;
618
621
  repair?: boolean;
619
622
  }
620
623
  export interface UserInput {
@@ -966,3 +969,11 @@ export interface FusionMetrics {
966
969
  attributes: Record<string, string>;
967
970
  }[];
968
971
  }
972
+ export interface AnalyzeChatSentimentResults {
973
+ sentiment: "positive" | "neutral" | "negative";
974
+ frustration_level: "none" | "low" | "medium" | "high";
975
+ repeated_attempts: boolean;
976
+ confusion_level: "none" | "low" | "medium" | "high";
977
+ urgency: "none" | "low" | "medium" | "high";
978
+ satisfaction: "none" | "low" | "medium" | "high";
979
+ }
@@ -49,10 +49,14 @@ export interface AddDesignSystemInput {
49
49
  export interface UpdateDesignSystemInput {
50
50
  id: string;
51
51
  designSystemName: string;
52
+ scope: DesignSystemScope;
52
53
  designSystemPackage?: string;
53
54
  designSystemVersion?: string;
54
55
  status?: "in-progress" | "completed" | "failed";
55
- scope?: DesignSystemScope;
56
+ }
57
+ export interface UpdateDesignSystemScopeInput {
58
+ id: string;
59
+ scope: DesignSystemScope;
56
60
  }
57
61
  export interface DesignSystem {
58
62
  id: string;