@unifan/pi-unifan-zh 1.0.16 → 1.0.17
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.
- package/README.md +20 -14
- package/README_zh.md +20 -14
- package/extensions/review/index.ts +971 -238
- package/extensions/review/package.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,20 +85,26 @@ pi install npm:@unifan/pi-commit-zh
|
|
|
85
85
|
|
|
86
86
|
---
|
|
87
87
|
|
|
88
|
-
### 2. 🔍 `review` (AI Code Review Suite)
|
|
89
|
-
- **
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
- **`/review
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
88
|
+
### 2. 🔍 `review` (Interactive AI Code Review Suite)
|
|
89
|
+
- **Architecture**:
|
|
90
|
+
- Re-architected following the battle-tested **Codex & pi-agent-extensions** design (by Armin Ronacher @mitsuhiko).
|
|
91
|
+
- **Native Session Tree Branch Isolation**: Completely eliminates multi-subagent WebSocket dropouts, proxy streaming errors, and timeouts. Rock-solid stability on any model (GPT, Claude, DeepSeek, GLM, etc.).
|
|
92
|
+
- **Commands**:
|
|
93
|
+
- **`/review`** 🔍: Launches interactive Chinese TUI menu with 6 review modes:
|
|
94
|
+
- ① `Review uncommitted changes` (staged + unstaged working tree, smart default)
|
|
95
|
+
- ② `Review against base branch` (auto merge-base calculation against main/master/dev)
|
|
96
|
+
- ③ `Review specific commit` (search and pick from recent commits)
|
|
97
|
+
- ④ `Review GitHub Pull Request` (auto local checkout via gh CLI)
|
|
98
|
+
- ⑤ `Review folder/files snapshot` (full snapshot audit, non-diff)
|
|
99
|
+
- ⑥ `Custom review focus` (concurrency, GC, security, API contracts)
|
|
100
|
+
- **`/review-lite`** ⭐: Directly audits current uncommitted changes without menu prompts.
|
|
101
|
+
- **`/end-review`** 🏁:
|
|
102
|
+
- Automatically structures review findings into P0~P3 action items.
|
|
103
|
+
- Seamlessly jumps back to the original working branch and pre-fills the editor with fix instructions!
|
|
104
|
+
- **Standards & Guidelines**:
|
|
105
|
+
- **P0~P3 Strict Severity Tags**: Blocker, Urgent, Normal, Low.
|
|
106
|
+
- **Zero Speculation & Grounded in Diff**: Every finding is backed by source evidence.
|
|
107
|
+
- **Custom Guidelines**: Automatically respects repo-level `REVIEW_GUIDELINES.md`, `AGENTS.md`, or `CLAUDE.md`.
|
|
102
108
|
|
|
103
109
|
---
|
|
104
110
|
|
package/README_zh.md
CHANGED
|
@@ -84,20 +84,26 @@ pi install npm:@unifan/pi-commit-zh
|
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
|
-
### 2. 🔍 `review`(AI
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
- **`/review
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
87
|
+
### 2. 🔍 `review`(AI 交互式代码审查套件·中文版)
|
|
88
|
+
- **架构升级**:
|
|
89
|
+
- 参考并融合了 **Codex 与 pi-agent-extensions**(Armin Ronacher @mitsuhiko)的经典架构。
|
|
90
|
+
- **原生会话分支隔离技术**:彻底告别脆弱的 6 子代理并发通信、网络断流与超时风险,支持任意模型(GPT/Claude/DeepSeek/免费模型)。
|
|
91
|
+
- **核心审查命令**:
|
|
92
|
+
- **`/review`** 🔍 **(交互式全功能审查)**:唤起全中文 TUI 选择弹窗,支持 6 种审查模式:
|
|
93
|
+
- ① `审查未提交改动` (工作区已暂存 + 未暂存代码,智能默认推荐)
|
|
94
|
+
- ② `与基准分支对比审查` (如与 main / master / dev 自动计算 merge-base 对比)
|
|
95
|
+
- ③ `审查指定提交` (从最近提交历史中搜索挑选)
|
|
96
|
+
- ④ `审查 Pull Request` (输入 PR 编号或 GitHub URL 本地自动检出审查)
|
|
97
|
+
- ⑤ `审查指定目录/文件` (全量静态快照审查,非 diff)
|
|
98
|
+
- ⑥ `自定义审查要求` (针对并发安全、GC/性能、指定接口等重点排查)
|
|
99
|
+
- **`/review-lite`** ⭐ **(极速单兵审查)**:无需弹窗,直接对当前工作区未提交改动做闪电审查。
|
|
100
|
+
- **`/end-review`** 🏁 **(结束审查并返回)**:
|
|
101
|
+
- 自动将审查分支中发现的 `[P0~P3]` 缺陷与待办事项生成结构化中文报告。
|
|
102
|
+
- 一键平滑跳回主开发会话分支,并自动在输入框回填 `根据上述代码审查发现进行修改修复`!
|
|
103
|
+
- **审查准则与标准**:
|
|
104
|
+
- **P0~P3 严格分级**:致命阻塞、紧急待修、普通建议、细节优化。
|
|
105
|
+
- **严格过滤误报**:基于代码事实与真实 diff,杜绝主观臆测,重点排查并发竞态、内存开销、外部未受信输入与边界异常。
|
|
106
|
+
- **支持项目定制规范**:自动识别并加载项目根目录的 `REVIEW_GUIDELINES.md`、`AGENTS.md` 或 `CLAUDE.md`。
|
|
101
107
|
|
|
102
108
|
---
|
|
103
109
|
|