@zhuxb-clouds/ai-code-review 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/bin/hook.mjs +1 -0
  2. package/package.json +1 -1
package/bin/hook.mjs CHANGED
@@ -326,6 +326,7 @@ async function runAIReview() {
326
326
  console.log(`💡 建议: ${result.suggestions}`);
327
327
  }
328
328
  logTimeEnd(totalTimer);
329
+ process.exit(0); // 确保成功时返回退出码 0
329
330
  } else {
330
331
  console.error("❌ AI Review 未通过");
331
332
  console.error(`📋 原因: ${result.reason}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhuxb-clouds/ai-code-review",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "基于 OpenAI API 的 Git Hooks 集成方案,自动代码审查并生成 Conventional Commits 提交信息",
5
5
  "type": "module",
6
6
  "bin": {