@ranger1/dx 0.1.26 → 0.1.28

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.
@@ -116,6 +116,7 @@ Round: 2
116
116
  - 只修复 `issuesToFix`/`optionalIssues`;禁止顺手重构/格式化/改无关代码
117
117
  - 不确定的问题降级为拒绝修复,并写清 `reason`(不要“猜”)
118
118
  - 修改尽量小:最小 diff、保持既有风格与约定
119
+ - 修改项目里的json/jsonc文件的时候,使用python脚本进行修改,禁止手动拼接字符串,防止格式错误
119
120
 
120
121
  ## 重要约束(强制)
121
122
 
@@ -46,11 +46,12 @@ reviewFile: ~/.opencode/cache/review-GMN-pr123-r1-abcdef123456.md
46
46
 
47
47
  1. Read `contextFile` 与全部 `reviewFile`
48
48
  2. 计算 needsFix(P0/P1/P2 任意 > 0)
49
- 3. 发布评审评论到 GitHub(gh pr comment),必须带 marker,评论正文必须内联包含:
49
+ 3. 合并重复的问题为一个
50
+ 4. 发布评审评论到 GitHub(gh pr comment),必须带 marker,评论正文必须内联包含:
50
51
  - Summary(P0/P1/P2/P3 统计)
51
52
  - P0/P1/P2 问题列表(至少 id/title/file:line/suggestion)
52
53
  - 三个 reviewer 的 reviewFile 原文(建议放到 <details>)
53
- 4. 若 needsFix:生成 `fixFile`(Markdown)并返回;否则发布“完成”评论并返回 stop
54
+ 5. 若 needsFix:生成 `fixFile`(Markdown)并返回;否则发布“完成”评论并返回 stop
54
55
 
55
56
  模式 B:
56
57
 
@@ -20,9 +20,8 @@ agent: sisyphus
20
20
  - `pr-review-aggregate`
21
21
  - `pr-fix`
22
22
 
23
- ## 循环(最多 2 轮)
24
23
 
25
- 每轮按顺序执行:
24
+ ## 预检
26
25
 
27
26
  0. Task: `pr-precheck`(强制 gate:编译/预检必须先通过)
28
27
 
@@ -34,6 +33,11 @@ agent: sisyphus
34
33
  - 若仍返回 `{"ok":false,"fixFile":"..."}`:第 2 次 Task `pr-fix` → 再 Task `pr-precheck`
35
34
  - 若仍不是 `{"ok":true}`:终止并回传错误(建议:`{"error":"PRECHECK_NOT_CLEAN_AFTER_FIX"}`)
36
35
 
36
+
37
+ ## 循环(最多 3 轮)
38
+
39
+ 每轮按顺序执行:
40
+
37
41
  1. Task: `pr-context` **(必须先完成,不可与 Step 2 并行)**
38
42
 
39
43
  - prompt 必须包含:`PR #{{PR_NUMBER}}`、`round: <ROUND>`
@@ -51,6 +55,8 @@ agent: sisyphus
51
55
  - reviewer 默认读 `contextFile`;必要时允许用 `git/gh` 只读命令拿 diff
52
56
  - 忽略问题:1.格式化代码引起的噪音 2.已经lint检查以外的格式问题
53
57
  - 特别关注: 逻辑、安全、性能、可维护性
58
+ - 同时要注意 pr 前面轮次的 修复和讨论,对于已经拒绝、已修复的问题不要反复的提出
59
+ - 同时也要注意fix的过程中有没有引入新的问题。
54
60
  - 每个 reviewer 输出:`reviewFile: <path>`(Markdown)
55
61
 
56
62
  3. Task: `pr-review-aggregate`
@@ -76,4 +82,4 @@ agent: sisyphus
76
82
 
77
83
  6. 下一轮
78
84
 
79
- - 回到 0(先跑 precheck gate,再进入下一轮 reviewers)
85
+ - 回到 1(进入下一轮 reviewers)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger1/dx",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {