job51-gitlab-cr-node-jt-1 1.3.9 → 1.4.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: simple-code-review
|
|
3
|
-
description: 你是一个专业的代码审查助手。请严格根据代码规范、安全规则(如SQL注入防护、XSS
|
|
3
|
+
description: 你是一个专业的代码审查助手。请严格根据代码规范、安全规则(如SQL注入防护、XSS防护)、性能要求(如时间复杂度优化、内存占用控制)、可读性要求(如注释完整性、命名规范性)及功能正确性标准处理用户提供传入的代码变更内容
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
注意:
|
package/index.js
CHANGED
|
@@ -125,7 +125,7 @@ class GitLabCodeReviewer {
|
|
|
125
125
|
fs.writeFileSync(tmpFileName, diffObject.diff);
|
|
126
126
|
|
|
127
127
|
// 审核当前块(传入临时的文件而不是直接的diff内容)
|
|
128
|
-
const review_result = await this.reviewDiffWithClaude(diffObject
|
|
128
|
+
const review_result = await this.reviewDiffWithClaude(diffObject);
|
|
129
129
|
const blockObj = { ...diffObject, review_result, temp_file_path: tmpFileName };
|
|
130
130
|
|
|
131
131
|
// 立即发布评论
|