@ranger1/dx 0.1.26 → 0.1.27
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.
|
@@ -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.
|
|
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
|
-
|
|
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>`
|
|
@@ -76,4 +80,4 @@ agent: sisyphus
|
|
|
76
80
|
|
|
77
81
|
6. 下一轮
|
|
78
82
|
|
|
79
|
-
- 回到
|
|
83
|
+
- 回到 1(进入下一轮 reviewers)
|