@builder.io/ai-utils 0.21.1 → 0.22.0

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.21.1",
3
+ "version": "0.22.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -802,6 +802,7 @@ export interface GenerateCompletionStepGit {
802
802
  isSessionDirty: boolean;
803
803
  hasGeneratingPlaceholder: boolean;
804
804
  remoteBranchExists: boolean;
805
+ remoteBranchHasChanges: boolean;
805
806
  canPush: boolean;
806
807
  canPull: boolean;
807
808
  canSync: boolean;
@@ -813,6 +814,7 @@ export interface GenerateCompletionStepGit {
813
814
  currentBranch: string;
814
815
  remoteBranch: string;
815
816
  pendingValidation: boolean;
817
+ unmergedFiles: string[];
816
818
  }
817
819
  export interface GenerateCompletionStepClose {
818
820
  type: "close";
@@ -914,6 +916,7 @@ export interface UserSourceBase {
914
916
  }
915
917
  export interface UserSourceOther extends UserSourceBase {
916
918
  source: "slack" | "teams" | "jira" | "linear";
919
+ /** User ID from the external platform (Slack user ID, Jira account ID, etc.) */
917
920
  userId?: string;
918
921
  userName?: string;
919
922
  userEmail?: string;
@@ -1876,6 +1879,8 @@ export interface CommitMessageRequest {
1876
1879
  recentCommits: string[];
1877
1880
  /** Whether to generate a long commit message */
1878
1881
  longCommit?: boolean;
1882
+ /** Project ID for fetching project-specific commit instructions */
1883
+ projectId?: string;
1879
1884
  }
1880
1885
  /**
1881
1886
  * Response from commit message generation
package/src/projects.d.ts CHANGED
@@ -540,6 +540,7 @@ export interface Project {
540
540
  instructions?: string;
541
541
  };
542
542
  postMergeMemories?: boolean;
543
+ commitInstructions?: string;
543
544
  httpsServerKeyPath?: string;
544
545
  httpsServerCertPath?: string;
545
546
  httpsServerCaPath?: string;