git-ai-shen 1.0.0 → 1.0.2
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/bin/git-ai.js +2 -7
- package/lib/core/ai-reviewer.js +0 -1
- package/package.json +9 -3
package/bin/git-ai.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
2
3
|
const { program } = require('commander');
|
|
3
4
|
const chalk = require('chalk');
|
|
4
5
|
const path = require('path');
|
|
@@ -43,15 +44,9 @@ program
|
|
|
43
44
|
.action(() => {
|
|
44
45
|
console.log(chalk.cyan('执行 init 命令...'));
|
|
45
46
|
try {
|
|
46
|
-
// 使用 simple-config 而不是 config
|
|
47
47
|
const { SimpleConfigManager } = require('../lib/core/simple-config');
|
|
48
|
-
console.log(chalk.gray('SimpleConfigManager 加载成功'));
|
|
49
|
-
|
|
50
48
|
const config = new SimpleConfigManager();
|
|
51
|
-
console.log(chalk.gray('SimpleConfigManager 实例化成功'));
|
|
52
|
-
|
|
53
49
|
config.init();
|
|
54
|
-
console.log(chalk.gray('config.init() 执行完成'));
|
|
55
50
|
} catch (error) {
|
|
56
51
|
console.error(chalk.red(`❌ 错误: ${error.message}`));
|
|
57
52
|
console.error(chalk.red(error.stack));
|
package/lib/core/ai-reviewer.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-ai-shen",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "智能Git提交工具,支持行级代码审查和AI生成提交信息",
|
|
5
5
|
"main": "bin/git-ai.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node bin/git-ai.js"
|
|
11
11
|
},
|
|
12
|
-
"keywords": [
|
|
12
|
+
"keywords": [
|
|
13
|
+
"git",
|
|
14
|
+
"ai",
|
|
15
|
+
"code-review",
|
|
16
|
+
"commit"
|
|
17
|
+
],
|
|
13
18
|
"author": "shenzhichao",
|
|
14
19
|
"license": "MIT",
|
|
15
20
|
"dependencies": {
|
|
@@ -17,7 +22,8 @@
|
|
|
17
22
|
"openai": "^4.0.0",
|
|
18
23
|
"chalk": "^4.1.2",
|
|
19
24
|
"inquirer": "^8.2.5",
|
|
20
|
-
"ignore": "^5.2.4"
|
|
25
|
+
"ignore": "^5.2.4",
|
|
26
|
+
"commander": "^11.0.0"
|
|
21
27
|
},
|
|
22
28
|
"engines": {
|
|
23
29
|
"node": ">=14.0.0"
|