ai-git-tools 2.0.15 → 2.0.16

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": "ai-git-tools",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "AI-powered Git automation tools for commit messages and PR generation",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -61,7 +61,7 @@ export function parseCliArgs() {
61
61
  */
62
62
  export async function loadConfig() {
63
63
  // 1. 載入預設配置
64
- const configPath = resolve(process.cwd(), '.ai-pr-config.js');
64
+ const configPath = resolve(process.cwd(), '.ai-pr-config.mjs');
65
65
  let config = null;
66
66
 
67
67
  if (existsSync(configPath)) {
@@ -1,38 +0,0 @@
1
- /**
2
- * AI Git Tools 配置檔範本
3
- *
4
- * 此配置檔用於:
5
- * - gitai commit:自動生成單個 commit
6
- * - gitai commit-all:智能分析並批量 commit
7
- * - gitai pr:自動生成 PR
8
- * - gitai workflow:完整工作流程
9
- */
10
- export default {
11
- // AI 設定
12
- ai: {
13
- model: 'gpt-4.1', // AI 模型:gpt-4.1, claude-haiku-4.5, claude-sonnet-4.5
14
- maxDiffLength: 8000, // 最大 diff 長度(字元)- 太小會導致 AI 看不到完整變更
15
- maxRetries: 3, // API 失敗時的最大重試次數
16
- },
17
-
18
- // GitHub 設定(用於 PR 工具)
19
- github: {
20
- orgName: '', // GitHub 組織名稱(留空則自動從 git remote 取得,或使用 'kingsinfo-project')
21
- defaultBase: 'release', // 預設目標分支:'release' | 'auto' | 'main' | 'develop' | 'master'
22
- autoLabels: true, // 自動添加 Labels
23
- },
24
-
25
- // Reviewer 設定(用於 PR 工具)
26
- reviewers: {
27
- interactiveReviewers: true, // 是否啟用 reviewer 選擇功能(true: 啟用互動選擇 | false: 跳過選擇)
28
- maxSuggested: 5, // 最多建議的 reviewers 數量(基於 Git 歷史分析)
29
- gitHistoryDepth: 20, // Git 歷史分析深度(查看最近 N 筆 commit)
30
- excludeAuthors: [], // 排除特定作者(email 或 username),例如: ['bot@', 'ci-user']
31
- },
32
-
33
- // 輸出設定
34
- output: {
35
- verbose: false, // 顯示詳細輸出
36
- saveHistory: false, // 儲存操作歷史(未來功能)
37
- },
38
- };