job51-gitlab-cr-node-jt-1 1.2.6 → 1.2.7

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/index.js +9 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -196,7 +196,15 @@ class GitLabCodeReviewer {
196
196
  async reviewDiffWithClaudeUsingFile(filePath) {
197
197
  debugLog(`开始审核文件: ${filePath}`);
198
198
 
199
- const prompt = '现在使用simple-code-review技能对文件中的代码变更进行评审,并必须按照技能md文件中规定的格式返回报告文本内容,代码变更内容文件见文件:' + filePath;
199
+ const prompt = `请严格按照以下步骤执行:
200
+ 1. 使用simple-code-review技能分析以下文件中的代码变更
201
+ 2. 必须严格按照skill.md文件中规定的格式返回报告
202
+ 3. 输出不允许包含除以下标题外的其他任何标题的内容:审查总览、严重问题、警告、优化建议、上下文影响分析
203
+ 4. 必须使用REPORT标签包围整个报告内容
204
+
205
+ 文件路径:${filePath}
206
+
207
+ 请严格遵守模板格式,不要有任何偏离。`;
200
208
 
201
209
  // 最多重试5次,直到结果包含"🤖 AI代码审查报告"或达到最大重试次数
202
210
  let attempts = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "job51-gitlab-cr-node-jt-1",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "GitLab merge request code review tool with AI-powered analysis",
5
5
  "main": "index.js",
6
6
  "bin": {