job51-gitlab-cr-node-skill-prompt-optimize 1.3.5 → 1.3.6

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.
@@ -104,7 +104,19 @@
104
104
  > - **处理**:不报告此安全问题
105
105
  > - 若该行以 `+` 开头表示新增或保留
106
106
  > - **处理**:报告安全问题,错误代码展示该行(不带 `-` 前缀)
107
-
107
+ 18. **变更内容解析步骤**(分析前必须执行):
108
+ > - **步骤 1:识别变更类型**
109
+ > - 遍历 `<CHANGE_CONTENT>` 中的每一行
110
+ > - 标记每行的类型:`-`(删除)、`+`(新增)、空格(保留)
111
+ > - **步骤 2:构建变更后代码视图**
112
+ > - 仅保留 `+` 开头的行和空格开头的行
113
+ > - **丢弃**所有 `-` 开头的行
114
+ > - **步骤 3:基于变更后代码视图进行审查**
115
+ > - 所有问题识别、行号计算、错误代码选取均基于变更后代码视图
116
+ > - **禁止**引用已丢弃的 `-` 开头行
117
+ > - **步骤 4:验证错误代码示例**
118
+ > - 检查错误代码示例中是否包含 `-` 前缀
119
+ > - 若包含,必须移除 `-` 前缀或重新选取变更后实际存在的代码
108
120
 
109
121
  <REPORT>
110
122
  ## 🤖 AI代码审查结果
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "job51-gitlab-cr-node-skill-prompt-optimize",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "GitLab merge request code review tool with AI-powered analysis",
5
5
  "main": "index.js",
6
6
  "bin": {