@spaceflow/review 0.82.0 → 1.0.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 +45 -0
- package/dist/index.js +231 -210
- package/package.json +1 -1
- package/src/changed-file-collection.ts +11 -0
- package/src/mcp/index.ts +23 -16
- package/src/prompt/specs-section.ts +47 -0
- package/src/review-includes-filter.spec.ts +83 -0
- package/src/review-includes-filter.ts +80 -0
- package/src/review-issue-filter.spec.ts +52 -0
- package/src/review-llm.ts +6 -8
- package/src/review-source-resolver.ts +22 -4
- package/src/review-spec/review-spec.service.spec.ts +229 -11
- package/src/review-spec/review-spec.service.ts +69 -55
- package/src/review-spec/types.ts +8 -2
- package/src/review.service.spec.ts +44 -0
- package/src/review.service.ts +15 -4
- package/dist/551.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.83.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/review@0.82.0...@spaceflow/review@0.83.0) (2026-04-10)
|
|
4
|
+
|
|
5
|
+
### 代码重构
|
|
6
|
+
|
|
7
|
+
* **review:** 在 showAll=false 时过滤 merge commit 并屏蔽非本次 PR 的变更行 hash ([4edd6e2](https://github.com/Lydanne/spaceflow/commit/4edd6e285085c5fe22238eff273e7a3a683e4dc0))
|
|
8
|
+
|
|
9
|
+
### 其他修改
|
|
10
|
+
|
|
11
|
+
* **review-summary:** released version 0.51.0 [no ci] ([a76f9a4](https://github.com/Lydanne/spaceflow/commit/a76f9a4e0de05f209318fa3527532c5a54ada2bc))
|
|
12
|
+
* **scripts:** released version 0.34.0 [no ci] ([9bb3509](https://github.com/Lydanne/spaceflow/commit/9bb35096a2b1c42d6dd9b1836128249c622d22d6))
|
|
13
|
+
* **shell:** released version 0.34.0 [no ci] ([6a1638f](https://github.com/Lydanne/spaceflow/commit/6a1638fe69b0f086ddde4075bee2a76604f27ccb))
|
|
14
|
+
|
|
15
|
+
## [0.82.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/review@0.81.0...@spaceflow/review@0.82.0) (2026-04-09)
|
|
16
|
+
|
|
17
|
+
### 代码重构
|
|
18
|
+
|
|
19
|
+
* **review:** 优化 ChangedFileCollection 的防御性编程,确保数据不可变性和类型安全 ([4ce2dc8](https://github.com/Lydanne/spaceflow/commit/4ce2dc82e54df8684832bc210fe03b31a24961ea))
|
|
20
|
+
* **review:** 优化变更文件失效逻辑,在代码已变更时保留已 resolved 问题的状态 ([0fd947b](https://github.com/Lydanne/spaceflow/commit/0fd947b0e774aac52149fadcdbbc70f4091402f2))
|
|
21
|
+
* **review:** 优化统计表格格式,将有效问题细分状态合并为单行,并在修复率和解决率中显示分数详情 ([6b3fdac](https://github.com/Lydanne/spaceflow/commit/6b3fdacdae9d55557ca68b3cb2dd347ca8a0e848))
|
|
22
|
+
* **review:** 在 commits 为空时退化为变更行模式,并调整日志文案统一使用"变更行过滤"术语 ([fca208b](https://github.com/Lydanne/spaceflow/commit/fca208bf87fb80167700b10fecfe2a436b4dedf5))
|
|
23
|
+
* **review:** 将 getFileContents 方法从 ReviewIssueFilter 迁移至 ReviewSourceResolver,并在 resolve 阶段预加载文件内容 ([f861b17](https://github.com/Lydanne/spaceflow/commit/f861b17fb12a788f595229605eee1e5bfe735d27))
|
|
24
|
+
* **review:** 将统计表格中的"修复"术语统一改为"验收",提升状态语义准确性 ([e9782ac](https://github.com/Lydanne/spaceflow/commit/e9782ac89ef6cdc6f60d9683cb3c1cff0078644a))
|
|
25
|
+
* **review:** 提取 buildReviewResult 方法,将 LLM 审查和问题过滤逻辑从 execute 方法中分离 ([f981512](https://github.com/Lydanne/spaceflow/commit/f981512be9c3e8b0659eca201f67d673cd320745))
|
|
26
|
+
* **review:** 提取 ReviewSourceResolver 类,将源数据解析和前置过滤逻辑从 ReviewService 中分离 ([d40f23f](https://github.com/Lydanne/spaceflow/commit/d40f23f9f9c039d07e49f0248c974877c3c3fa68))
|
|
27
|
+
* **review:** 新增 ChangedFileCollection 类,封装变更文件集合并提供常用访问器,统一文件操作接口 ([22020f4](https://github.com/Lydanne/spaceflow/commit/22020f4c1c21ddd3adc422990e9ac3bc846ba593))
|
|
28
|
+
* **review:** 新增 git blame 支持,在分支比较模式下按实际 commit hash 过滤问题,并在 commits 为空时退化为变更行模式 ([ef5ba45](https://github.com/Lydanne/spaceflow/commit/ef5ba45c741ee94aa20ca18adb2836eba6692abe))
|
|
29
|
+
* **review:** 移除行号自动更新机制,改为在验证提示中提供原始代码片段辅助定位,并将去重逻辑从 ReviewService 上移至 ReviewResultModel.nextRound ([174b924](https://github.com/Lydanne/spaceflow/commit/174b924931c0f09e3714462a466f8844097a2af6))
|
|
30
|
+
* **review:** 简化规则过滤逻辑,移除冗余的 applicableSpecs 变量,统一使用 specs 表示已过滤的适用规则 ([571ad26](https://github.com/Lydanne/spaceflow/commit/571ad2656e743a091017384f31533ac67b3499d3))
|
|
31
|
+
|
|
32
|
+
### 文档更新
|
|
33
|
+
|
|
34
|
+
* **review:** 移除 buildLineCommitMap 方法及相关文档和注释 ([92e78d2](https://github.com/Lydanne/spaceflow/commit/92e78d2905f206bbb04e6a4873cd6a25c79b3882))
|
|
35
|
+
|
|
36
|
+
### 测试用例
|
|
37
|
+
|
|
38
|
+
* **review:** 新增 ReviewContextBuilder 和 ReviewIssueFilter 单元测试,覆盖上下文构建、问题过滤和文件内容获取等核心功能 ([432cc60](https://github.com/Lydanne/spaceflow/commit/432cc60c95a44bc6060a09be3a47f2c23aa8cd9d))
|
|
39
|
+
|
|
40
|
+
### 其他修改
|
|
41
|
+
|
|
42
|
+
* **core:** released version 0.31.0 [no ci] ([aed2199](https://github.com/Lydanne/spaceflow/commit/aed2199c5df44a0dca6f2e992c39b040571aaf49))
|
|
43
|
+
* **publish:** released version 0.56.0 [no ci] ([91a3da8](https://github.com/Lydanne/spaceflow/commit/91a3da86f91e1085c1b2d9affd72ace03ebd8e93))
|
|
44
|
+
* **review-summary:** released version 0.50.0 [no ci] ([1e1fc71](https://github.com/Lydanne/spaceflow/commit/1e1fc71842b06732e5132c26ec91e2f4fde32542))
|
|
45
|
+
* **scripts:** released version 0.33.0 [no ci] ([515099f](https://github.com/Lydanne/spaceflow/commit/515099f1dd6eda61cea9494750e5a73db4f6696a))
|
|
46
|
+
* **shell:** released version 0.33.0 [no ci] ([c9f6615](https://github.com/Lydanne/spaceflow/commit/c9f66152b33ab14343c9060b6d8bb30552262a61))
|
|
47
|
+
|
|
3
48
|
## [0.81.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/review@0.80.0...@spaceflow/review@0.81.0) (2026-04-09)
|
|
4
49
|
|
|
5
50
|
### 新特性
|