smart-review 1.0.2 → 1.0.4
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.en-US.md +4 -0
- package/README.md +4 -1
- package/bin/install.js +586 -417
- package/bin/review.js +425 -251
- package/lib/ai-client-pool.js +36 -7
- package/lib/ai-client.js +91 -2
- package/lib/default-config.js +16 -15
- package/lib/reviewer.js +1552 -1510
- package/lib/utils/i18n.js +9 -9
- package/package.json +1 -1
- package/templates/rules/en-US/best-practices.js +24 -12
- package/templates/rules/en-US/performance.js +24 -11
- package/templates/rules/en-US/security.js +67 -33
- package/templates/rules/zh-CN/best-practices.js +24 -12
- package/templates/rules/zh-CN/performance.js +24 -11
- package/templates/rules/zh-CN/security.js +67 -33
- package/templates/smart-review.json +3 -1
package/README.en-US.md
CHANGED
|
@@ -124,6 +124,10 @@ Add to `package.json` if you use Husky:
|
|
|
124
124
|
}
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
+
#### Interrupt & Terminal Compatibility
|
|
128
|
+
- Works in Git Bash, CMD, and PowerShell
|
|
129
|
+
- Press `q` or `Esc` during review to interrupt and print completed results
|
|
130
|
+
- Interruptions do not fail the review; only blocking risks stop the commit
|
|
127
131
|
## ⚙️ Config
|
|
128
132
|
|
|
129
133
|
Main config `.smart-review/smart-review.json` example:
|
package/README.md
CHANGED
|
@@ -130,7 +130,10 @@ node bin/review.js --files test/src/large-test-file.js
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
```
|
|
133
|
-
|
|
133
|
+
#### 中断与终端兼容
|
|
134
|
+
- 支持在 Git Bash、CMD、PowerShell 中进行交互中断
|
|
135
|
+
- 审查过程中输入 `q` 或按 `Esc` 可中断审查并输出已完成结果
|
|
136
|
+
- 中断不会被视为审查失败,只有存在阻断风险才会阻止提交
|
|
134
137
|
## ⚙️ 配置文件
|
|
135
138
|
|
|
136
139
|
### 主配置文件 `.smart-review/smart-review.json`
|