@spaceflow/review 0.76.0 → 0.78.0
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/CHANGELOG.md +47 -0
- package/dist/index.js +3830 -2469
- package/package.json +2 -2
- package/src/deletion-impact.service.ts +17 -130
- package/src/index.ts +34 -2
- package/src/issue-verify.service.ts +18 -82
- package/src/locales/en/review.json +2 -1
- package/src/locales/zh-cn/review.json +2 -1
- package/src/mcp/index.ts +4 -1
- package/src/prompt/code-review.ts +95 -0
- package/src/prompt/deletion-impact.ts +105 -0
- package/src/prompt/index.ts +37 -0
- package/src/prompt/issue-verify.ts +86 -0
- package/src/prompt/pr-description.ts +149 -0
- package/src/prompt/schemas.ts +106 -0
- package/src/prompt/types.ts +53 -0
- package/src/pull-request-model.ts +236 -0
- package/src/review-context.ts +433 -0
- package/src/review-includes-filter.spec.ts +284 -0
- package/src/review-includes-filter.ts +196 -0
- package/src/review-issue-filter.ts +523 -0
- package/src/review-llm.ts +543 -0
- package/src/review-result-model.spec.ts +657 -0
- package/src/review-result-model.ts +1046 -0
- package/src/review-spec/review-spec.service.ts +26 -5
- package/src/review-spec/types.ts +2 -0
- package/src/review.config.ts +40 -5
- package/src/review.service.spec.ts +102 -1625
- package/src/review.service.ts +608 -2742
- package/src/system-rules/index.ts +48 -0
- package/src/system-rules/max-lines-per-file.ts +57 -0
- package/src/types/review-llm.ts +21 -0
- package/src/utils/review-llm.spec.ts +277 -0
- package/src/utils/review-llm.ts +177 -0
- package/src/utils/review-pr-comment.spec.ts +340 -0
- package/src/utils/review-pr-comment.ts +186 -0
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.77.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/review@0.76.0...@spaceflow/review@0.77.0) (2026-04-07)
|
|
4
|
+
|
|
5
|
+
### 新特性
|
|
6
|
+
|
|
7
|
+
* **review:** 新增 failOnIssues 选项,支持根据未解决问题状态控制工作流退出 ([6139538](https://github.com/Lydanne/spaceflow/commit/6139538008af8247ffccdf5aad94d6fa980b73de))
|
|
8
|
+
* **review:** 新增 PullRequestModel 封装 PR 数据访问层 ([3292f1f](https://github.com/Lydanne/spaceflow/commit/3292f1f7d0713ffbb1cdac9e3d3660a013a16fe1))
|
|
9
|
+
* **review:** 新增 ReviewContext 和 ReviewIssueFilter 核心模块 ([dd3c2ce](https://github.com/Lydanne/spaceflow/commit/dd3c2ce107088a17255c19ee1becfa4090d84be6))
|
|
10
|
+
|
|
11
|
+
### 修复BUG
|
|
12
|
+
|
|
13
|
+
* **review:** 修正 issue 统计中 resolved 状态的重复计数问题 ([b61f95e](https://github.com/Lydanne/spaceflow/commit/b61f95e92300dd9c508f3063b3174df1c10a90ad))
|
|
14
|
+
|
|
15
|
+
### 代码重构
|
|
16
|
+
|
|
17
|
+
* **review:** 优化 PR Review 提交流程,避免重复创建同轮次评论 ([c6977e0](https://github.com/Lydanne/spaceflow/commit/c6977e0ef4497aa3100281b76281e97dc313ab1a))
|
|
18
|
+
* **review:** 优化 PullRequestModel 缓存返回和依赖注入 ([9537a58](https://github.com/Lydanne/spaceflow/commit/9537a587f7ccc900de589aa38bc45a05d73f3f8f))
|
|
19
|
+
* **review:** 优化参数传递和代码组织 ([a1c165e](https://github.com/Lydanne/spaceflow/commit/a1c165ed6a804d6c683bada65f0eafd705d02dac))
|
|
20
|
+
* **review:** 提取 LLM 审查相关类型和工具函数到独立模块 ([78cff32](https://github.com/Lydanne/spaceflow/commit/78cff327459c377c57486b4322c5a29f9bedf162))
|
|
21
|
+
* **review:** 提取公共工具函数并优化代码复用 ([936bd6f](https://github.com/Lydanne/spaceflow/commit/936bd6f5e1b70c397696ed67ec64b77f63445eb1))
|
|
22
|
+
* **review:** 提取自动批准消息构建逻辑并支持 @PR 作者通知 ([0e6ad66](https://github.com/Lydanne/spaceflow/commit/0e6ad66b3d38d811ecbfb1da2a0426b2eb21b6fd))
|
|
23
|
+
* **review:** 新增 includes 模式的变更类型前缀语法支持 ([d0aacad](https://github.com/Lydanne/spaceflow/commit/d0aacada1f3144bac2934d50d547df17f4e9d305))
|
|
24
|
+
* **review:** 新增 ReviewResultModel 封装审查结果数据访问层 ([a4be34a](https://github.com/Lydanne/spaceflow/commit/a4be34aaa1f722ea0748efb67bd4999bff08b769))
|
|
25
|
+
* **review:** 重构类型定义位置并导出公共常量 ([0293f02](https://github.com/Lydanne/spaceflow/commit/0293f0220d4b7604b44d53c3fa547ca01961cc2d))
|
|
26
|
+
* **tsconfig:** 重命名 tsconfig.skill.json 为 tsconfig.extension.json ([16c80f9](https://github.com/Lydanne/spaceflow/commit/16c80f98ccffafeac06261f94341298523cebd93))
|
|
27
|
+
|
|
28
|
+
### 文档更新
|
|
29
|
+
|
|
30
|
+
* **review:** 更新文档,补充 includes 变更类型过滤和 failOnIssues 选项说明 ([6389048](https://github.com/Lydanne/spaceflow/commit/63890487e330909e4e30c392de723c052ee5fa23))
|
|
31
|
+
|
|
32
|
+
### 其他修改
|
|
33
|
+
|
|
34
|
+
* **core:** released version 0.30.0 [no ci] ([7a94a63](https://github.com/Lydanne/spaceflow/commit/7a94a632cd246d3d58c0e8cb85dd1c361ed39b6c))
|
|
35
|
+
* **publish:** released version 0.54.0 [no ci] ([64b467d](https://github.com/Lydanne/spaceflow/commit/64b467d663caa2ec5b793f609c01f150ab416bea))
|
|
36
|
+
* **review-summary:** released version 0.45.0 [no ci] ([640e71d](https://github.com/Lydanne/spaceflow/commit/640e71dd6da42ff055fc925767418f9ba742c8b1))
|
|
37
|
+
|
|
38
|
+
## [0.76.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/review@0.75.0...@spaceflow/review@0.76.0) (2026-04-03)
|
|
39
|
+
|
|
40
|
+
### 修复BUG
|
|
41
|
+
|
|
42
|
+
* **review:** 优化 merge commit 过滤逻辑 ([7c5bed6](https://github.com/Lydanne/spaceflow/commit/7c5bed66c193fa0368f5e32741995f4252576517))
|
|
43
|
+
|
|
44
|
+
### 其他修改
|
|
45
|
+
|
|
46
|
+
* **review-summary:** released version 0.44.0 [no ci] ([e3f943e](https://github.com/Lydanne/spaceflow/commit/e3f943e876a1ff0f4db61c7113c8b9c145e6e5c8))
|
|
47
|
+
* **scripts:** released version 0.31.0 [no ci] ([864d556](https://github.com/Lydanne/spaceflow/commit/864d556eea3d271d11ef51ab5e83200e75200a71))
|
|
48
|
+
* **shell:** released version 0.31.0 [no ci] ([66fcf46](https://github.com/Lydanne/spaceflow/commit/66fcf4648b708d46b939cc88050d43470b5dd25b))
|
|
49
|
+
|
|
3
50
|
## [0.75.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/review@0.74.0...@spaceflow/review@0.75.0) (2026-04-03)
|
|
4
51
|
|
|
5
52
|
### 修复BUG
|