Files
spaceflow/commands/review/CHANGELOG.md
2026-02-15 22:02:21 +08:00

47 KiB
Raw Blame History

Changelog

0.29.0 (2026-02-15)

新特性

  • cli: 新增 MCP Server 命令并集成 review 扩展的 MCP 工具 (b794b36)
  • cli: 新增 MCP Server 导出类型支持 (9568cbd)
  • core: 为所有命令添加 i18n 国际化支持 (867c5d3)
  • core: 新增 GitLab 平台适配器并完善配置支持 (47be9ad)
  • core: 新增 Logger 全局日志工具并支持 plain/tui 双模式渲染 (8baae7c)
  • docs: 新增 VitePress 文档站点并完善项目文档 (a79d620)
  • mcp: 新增 MCP Inspector 交互式调试支持并优化工具日志输出 (05fd2ee)
  • review: 为 MCP 服务添加 i18n 国际化支持 (a749054)
  • review: 新增规则级 includes 解析测试并修复文件级/规则级 includes 过滤逻辑 (4baca71)

修复BUG

  • actions: 修正 pnpm setup 命令调用方式 (8f014fa)
  • mcp: 添加 -y 选项确保 Inspector 自动安装依赖 (a9201f7)

代码重构

  • claude: 移除 .claude 目录及其 .gitignore 配置文件 (91916a9)
  • cli: 优化依赖安装流程并支持 .spaceflow 目录配置 (5977631)
  • cli: 拆分 CLI 为独立包并重构扩展加载机制 (b385d28)
  • cli: 移除 ExtensionModule 并优化扩展加载机制 (8f7077d)
  • cli: 调整依赖顺序并格式化导入语句 (32a9c1c)
  • cli: 重构 getPluginConfigFromPackageJson 方法以提高代码可读性 (f5f6ed9)
  • cli: 重构扩展配置格式,支持 flow/command/skill 三种导出类型 (958dc13)
  • core: 为 build/clear/commit 命令添加国际化支持 (de82cb2)
  • core: 优化 list 命令输出格式并修复 MCP Inspector 包管理器兼容性 (a019829)
  • core: 将 rspack 配置和工具函数中的 @spaceflow/cli 引用改为 @spaceflow/core (3c301c6)
  • core: 将扩展依赖从 @spaceflow/cli 迁移到 @spaceflow/core (6f9ffd4)
  • core: 提取 source 处理和包管理器工具函数到共享模块 (ab3ff00)
  • core: 新增 getEnvFilePaths 工具函数统一管理 .env 文件路径优先级 (809fa18)
  • core: 新增远程仓库规则拉取功能并支持 Git API 获取目录内容 (69ade16)
  • core: 统一 LogLevel 类型定义并支持字符串/数字双模式 (557f6b0)
  • core: 重构配置读取逻辑,新增 ConfigReaderService 并支持 .spaceflowrc 配置文件 (72e88ce)
  • i18n: 将 locales 导入从命令文件迁移至扩展入口文件 (0da5d98)
  • i18n: 移除扩展元数据中的 locales 字段并改用 side-effect 自动注册 (2c7d488)
  • mcp: 使用 DTO + Swagger 装饰器替代手动 JSON Schema 定义 (87ec262)
  • mcp: 升级 MCP SDK API 并优化 Inspector 调试配置 (176d04a)
  • mcp: 将 MCP 元数据存储从 Reflect Metadata 改为静态属性以支持跨模块访问 (cac0ea2)
  • test: 迁移测试框架从 Jest 到 Vitest (308f9d4)
  • 优化构建流程并调整 MCP/review 日志输出级别 (74072c0)
  • 将 .spaceflow/package.json 纳入版本控制并自动添加到根项目依赖 (ab83d25)
  • 将 GiteaSdkModule/GiteaSdkService 重命名为 GitProviderModule/GitProviderService (462f492)
  • 恢复 pnpm catalog 配置并移除 .spaceflow 工作区导入器 (217387e)
  • 迁移扩展依赖到 .spaceflow 工作区并移除 pnpm catalog (c457c0f)
  • 重构 Extension 安装机制为 pnpm workspace 模式 (469b12e)
  • 重构插件加载改为扩展模式 (0e6e140)

文档更新

  • guide: 更新编辑器集成文档,补充四种导出类型说明和 MCP 注册机制 (19a7409)
  • guide: 更新配置文件位置说明并补充 RC 文件支持 (2214dc4)

测试用例

  • core: 新增 GiteaAdapter 完整单元测试并实现自动检测 provider 配置 (c74f745)
  • review: 新增 DeletionImpactService 测试覆盖并配置 coverage 工具 (50bfbfe)

其他修改

  • ci-scripts: released version 0.19.0 [no ci] (9f747c6)
  • ci-shell: released version 0.19.0 [no ci] (59ac30d)
  • ci: 迁移工作流从 Gitea 到 GitHub 并统一环境变量命名 (57e3bae)
  • cli: released version 0.19.0 [no ci] (6b63149)
  • config: 将 git 推送白名单用户从 "Gitea Actions" 改为 "GiteaActions" (fdbb865)
  • config: 将 git 推送白名单用户从 github-actions[bot] 改为 Gitea Actions (9c39819)
  • config: 移除 review-spec 私有仓库依赖 (8ae18f1)
  • core: released version 0.1.0 [no ci] (170fa67)
  • core: 禁用 i18next 初始化时的 locize.com 推广日志 (a99fbb0)
  • deps: 移除 pnpm catalog 配置并更新依赖锁定 (753fb9e)
  • docs: 统一文档脚本命名,为 VitePress 命令添加 docs: 前缀 (3cc46ea)
  • i18n: 配置 i18n-ally-next 自动提取键名生成策略 (753c3dc)
  • i18n: 重构 i18n 配置并统一 locales 目录结构 (3e94037)
  • period-summary: released version 0.19.0 [no ci] (b833948)
  • publish: released version 0.21.0 [no ci] (18f9b20)
  • scripts: 修正 setup 和 build 脚本的过滤条件,避免重复构建 cli 包 (ffd2ffe)
  • templates: 新增 MCP 工具插件模板 (5f6df60)
  • workflows: 为所有 GitHub Actions 工作流添加 GIT_PROVIDER_TYPE 环境变量 (a463574)
  • workflows: 在发布流程中添加 GIT_PROVIDER_TYPE 环境变量 (a4bb388)
  • workflows: 在发布流程中添加扩展安装步骤 (716be4d)
  • workflows: 将发布流程的 Git 和 NPM 配置从 GitHub 迁移到 Gitea (6d9acff)
  • workflows: 将发布流程的 GITHUB_TOKEN 改为使用 CI_GITEA_TOKEN (e7fe7b4)
  • 为所有 commands 包添加 @spaceflow/cli 开发依赖 (d4e6c83)
  • 优化依赖配置并移除 .spaceflow 包依赖 (be5264e)
  • 修正 postinstall 脚本命令格式 (3f0820f)
  • 恢复 pnpm catalog 配置并更新依赖锁定 (0b2295c)
  • 新增 .spaceflow/pnpm-workspace.yaml 防止被父级 workspace 接管并移除根项目 devDependencies 自动添加逻辑 (61de3a2)
  • 新增 postinstall 钩子自动执行 setup 脚本 (64dae0c)
  • 移除 postinstall 钩子避免依赖安装时自动执行构建 (ea1dc85)

0.28.0 (2026-02-04)

代码重构

  • verbose: 扩展 verbose 级别支持至 3 (c1a0808)

其他修改

  • ci-scripts: released version 0.18.0 [no ci] (e17894a)
  • ci-shell: released version 0.18.0 [no ci] (f64fd80)
  • core: released version 0.18.0 [no ci] (c5e973f)
  • period-summary: released version 0.18.0 [no ci] (f0df638)
  • publish: released version 0.20.0 [no ci] (d347e3b)

0.27.0 (2026-02-04)

修复BUG

  • core: 从 PR diff 填充缺失的 patch 字段 (24bfaa7)

代码重构

  • config: 降低并发数以优化 AI 审查性能 (052dd72)
  • review: 优化 Markdown 格式化器的代码风格和 JSON 数据输出逻辑 (ca1b0c9)
  • review: 新增测试方法用于验证 PR 审查功能 (5c57833)
  • review: 移除测试方法 testMethod (21e9938)

测试用例

  • review: 新增新增文件无 patch 时的测试用例,优化变更行标记逻辑 (a593f0d)

其他修改

  • ci-scripts: released version 0.17.0 [no ci] (31abd3d)
  • ci-shell: released version 0.17.0 [no ci] (a53508b)
  • core: released version 0.17.0 [no ci] (c85a8ed)
  • period-summary: released version 0.17.0 [no ci] (ac4e5b6)
  • publish: released version 0.19.0 [no ci] (7a96bca)

0.26.0 (2026-02-04)

新特性

  • review: 新增 override 作用域测试,验证 includes 对 override 过滤的影响 (820e0cb)

0.25.0 (2026-02-04)

代码重构

  • review: 优化 override 和变更行过滤的日志输出,增强调试信息的可读性 (9a7c6f5)

0.24.0 (2026-02-04)

修复BUG

  • review: 新增 getFileContents、getChangedFilesBetweenRefs 和 filterIssuesByValidCommits 方法的单元测试 (7618c91)

0.23.0 (2026-02-03)

代码重构

  • review: 使用 Base64 编码存储审查数据,避免 JSON 格式在 Markdown 中被转义 (fb91e30)

0.22.0 (2026-02-02)

代码重构

  • review: 基于 fileContents 实际 commit hash 验证问题归属,替代依赖 LLM 填写的 commit 字段 (de3e377)
  • review: 移除 filterNoCommit 配置项,统一使用基于 commit hash 的问题过滤逻辑 (82429b1)
  • review: 统一使用 parseLineRange 方法解析行号,避免重复的正则匹配逻辑 (c64f96a)
  • review: 调整 filterIssuesByValidCommits 逻辑,保留无 commit 的 issue 交由 filterNoCommit 配置处理 (e9c5d47)
  • review: 过滤非 PR commits 的问题,避免 merge commit 引入的代码被审查 (9e20f54)

0.21.0 (2026-02-02)

代码重构

  • review: 过滤 merge commits,避免在代码审查中处理合并提交 (d7c647c)

0.20.0 (2026-02-02)

新特性

  • core: 新增 Git diff 行号映射工具并优化 Claude 配置 (88ef340)
  • review: 为 execute 方法添加文档注释 (a21f582)
  • review: 为 getPrNumberFromEvent 方法添加文档注释 (54d1586)
  • review: 优化行号更新统计,分别统计更新和标记无效的问题数量 (892b8be)

代码重构

  • review: 优化历史 issue commit 匹配逻辑,支持短 SHA 与完整 SHA 的前缀匹配 (e30c6dd)
  • review: 简化历史问题处理策略,将行号更新改为标记变更文件问题为无效 (5df7f00)
  • review: 简化行号更新逻辑,使用最新 commit diff 替代增量 diff (6de7529)
  • review: 重构行号更新逻辑,使用增量 diff 替代全量 diff (d4f4304)

测试用例

  • review: 添加单元测试以覆盖行号更新逻辑 (ebf33e4)

其他修改

  • actions: 增强命令执行日志,输出原始 command 和 args 参数 (0f0c238)
  • ci-scripts: released version 0.16.0 [no ci] (9ab007d)
  • ci-shell: released version 0.16.0 [no ci] (87fd703)
  • core: released version 0.16.0 [no ci] (871f981)
  • period-summary: released version 0.16.0 [no ci] (b214e31)
  • publish: released version 0.18.0 [no ci] (2f2ce01)
  • 在 PR 审查工作流中启用 --filter-no-commit 参数 (e0024ad)
  • 禁用删除代码分析功能 (988e3f1)

0.19.0 (2026-02-02)

新特性

  • core: 在 Gitea SDK 中新增编辑 Pull Request 的方法 (a586bf1)
  • core: 在 Gitea SDK 中新增获取 reactions 的方法 (9324cf2)
  • review: 优化 commit author 获取逻辑,支持 committer 作为备选 (b75b613)
  • review: 优化 commit author 获取逻辑,支持从 Git 原始作者信息中提取 (10ac821)
  • review: 优化 commit author 获取逻辑,通过 Gitea API 搜索用户以关联 Git 原始作者 (daa274b)
  • review: 优化 PR 标题生成的格式要求 (a4d807d)
  • review: 优化 verbose 参数支持多级别累加,将日志级别扩展为 0-3 级 (fe4c830)
  • review: 优化历史问题的 author 信息填充逻辑 (b18d171)
  • review: 优化审查报告中回复消息的格式显示 (f478c8d)
  • review: 优化审查报告中的消息展示格式 (0996c2b)
  • review: 优化问题 author 信息填充时机,统一在所有问题合并后填充 (ea8c586)
  • review: 优化问题展示和无效标记逻辑 (e2b45e1)
  • review: 在 fillIssueAuthors 方法中添加详细的调试日志 (42ab288)
  • review: 在 syncReactionsToIssues 中添加详细日志并修复团队成员获取逻辑 (91f166a)
  • review: 在审查报告的回复中为用户名添加 @ 前缀 (bc6186b)
  • review: 在审查问题中添加作者信息填充功能 (8332dba)
  • review: 将审查命令的详细日志参数从 --verbose 简化为 -vv (5eb320b)
  • review: 扩展评审人收集逻辑,支持从 PR 指定的评审人和团队中获取 (bbd61af)
  • review: 支持 AI 自动生成和更新 PR 标题 (e02fb02)
  • review: 支持 PR 关闭事件触发审查并自动传递事件类型参数 (03967d9)
  • review: 支持在审查报告中展示评论的 reactions 和回复记录 (f4da31a)
  • review: 移除 handleReview 中的重复 author 填充逻辑 (e458bfd)
  • review: 限制 PR 标题自动更新仅在第一轮审查时执行 (1891cbc)
  • review: 默认启用 PR 标题自动更新功能 (fda6656)

修复BUG

  • actions: 修复日志输出中的 emoji 显示问题,将 <20> 替换为 (d3cd94a)
  • review: 修复审查完成日志中的乱码 emoji (36c1c48)
  • review: 将 UserInfo 的 id 字段类型从 number 改为 string (505e019)

其他修改

  • ci-scripts: released version 0.15.0 [no ci] (e314fb1)
  • ci-shell: released version 0.15.0 [no ci] (5c0dc0b)
  • core: released version 0.15.0 [no ci] (48f3875)
  • period-summary: released version 0.15.0 [no ci] (3dd72cb)
  • publish: released version 0.17.0 [no ci] (8e0d065)

0.18.0 (2026-01-31)

修复BUG

  • core: 统一所有命令的错误处理,添加堆栈信息输出 (31224a1)
  • review: 增强错误处理,添加堆栈信息输出 (e0fb5de)

其他修改

  • ci-scripts: released version 0.14.0 [no ci] (c536208)
  • ci-shell: released version 0.14.0 [no ci] (c6e4bdc)
  • core: released version 0.14.0 [no ci] (996dbc6)
  • period-summary: released version 0.14.0 [no ci] (55a72f2)
  • publish: released version 0.16.0 [no ci] (e31e46d)

0.17.0 (2026-01-31)

修复BUG

  • core: 修复 resolveRef 方法未处理空 ref 参数的问题 (0824c83)
  • review: 修复参数空值检查,增强代码健壮性 (792a192)

其他修改

  • ci-scripts: released version 0.13.0 [no ci] (021eefd)
  • ci-shell: released version 0.13.0 [no ci] (81e7582)
  • core: released version 0.13.0 [no ci] (e3edde3)
  • period-summary: released version 0.13.0 [no ci] (1d47460)
  • publish: released version 0.15.0 [no ci] (4b09122)

0.16.0 (2026-01-31)

新特性

  • review: 为删除影响分析添加文件过滤功能 (7304293)

0.15.0 (2026-01-31)

修复BUG

  • review: 修复按指定提交过滤时未处理空值导致的潜在问题 (5d4d3e0)

0.14.0 (2026-01-31)

新特性

  • review: 新增过滤无commit问题的选项 (7a4c458)

0.13.0 (2026-01-31)

新特性

  • core: 为 CLI 入口文件添加 Node shebang 支持 (0d787d3)

其他修改

  • ci-scripts: released version 0.12.0 [no ci] (097863f)
  • ci-shell: released version 0.12.0 [no ci] (274216f)
  • core: released version 0.12.0 [no ci] (1ce5034)
  • period-summary: released version 0.12.0 [no ci] (38490aa)
  • publish: released version 0.14.0 [no ci] (fe0e140)

0.12.0 (2026-01-29)

新特性

  • core: 优化 commit message 的 scope 处理逻辑 (42869dd)
  • core: 重构 commit 服务并添加结构化 commit message 支持 (22b4db8)

其他修改

  • ci-scripts: released version 0.11.0 [no ci] (d4f5bba)
  • ci-shell: released version 0.11.0 [no ci] (cf9e486)
  • core: released version 0.11.0 [no ci] (f0025c7)
  • period-summary: released version 0.11.0 [no ci] (b518887)
  • publish: released version 0.13.0 [no ci] (1d308d9)

0.11.0 (2026-01-29)

新特性

  • core: 优化 npm 包名处理逻辑 (ae23ebd)
  • core: 添加依赖更新功能 (1a544eb)

其他修改

  • ci-scripts: released version 0.10.0 [no ci] (ca2daad)
  • ci-shell: released version 0.10.0 [no ci] (53864b8)
  • core: released version 0.10.0 [no ci] (a80d34f)
  • period-summary: released version 0.10.0 [no ci] (c1ca3bb)
  • publish: released version 0.12.0 [no ci] (50e209e)

0.10.0 (2026-01-29)

新特性

  • review: 支持绝对路径转换为相对路径 (9050f64)

0.9.0 (2026-01-28)

新特性

  • core: 为 npm 包添加 npx 直接执行支持 (e67a7da)

其他修改

  • ci-scripts: released version 0.9.0 [no ci] (1b9e816)
  • ci-shell: released version 0.9.0 [no ci] (accdda7)
  • core: released version 0.9.0 [no ci] (8127211)
  • period-summary: released version 0.9.0 [no ci] (ac03f9b)
  • publish: released version 0.11.0 [no ci] (df17cd1)

0.8.0 (2026-01-28)

新特性

  • core: 优化 commit 消息生成器中的 scope 处理逻辑 (1592079)

其他修改

  • ci-scripts: released version 0.8.0 [no ci] (be6273d)
  • ci-shell: released version 0.8.0 [no ci] (3102178)
  • core: released version 0.8.0 [no ci] (625dbc0)
  • period-summary: released version 0.8.0 [no ci] (44ff3c5)
  • publish: released version 0.10.0 [no ci] (8722ba9)

0.7.0 (2026-01-28)

代码重构

  • core: 重构安装服务目录结构和命名 (50cc900)

其他修改

  • ci-scripts: released version 0.7.0 [no ci] (ea294e1)
  • ci-shell: released version 0.7.0 [no ci] (247967b)
  • core: released version 0.7.0 [no ci] (000c53e)
  • period-summary: released version 0.7.0 [no ci] (8869d58)
  • publish: released version 0.9.0 [no ci] (b404930)

0.6.0 (2026-01-28)

新特性

  • core: 优化pnpm包安装逻辑检测是否为workspace (6555daf)

其他修改

  • ci-scripts: released version 0.6.0 [no ci] (d485758)
  • ci-shell: released version 0.6.0 [no ci] (a2d1239)
  • core: released version 0.6.0 [no ci] (21e1ec6)
  • period-summary: released version 0.6.0 [no ci] (6648dfb)
  • publish: released version 0.8.0 [no ci] (d7cd2e9)

0.5.0 (2026-01-28)

新特性

  • core: 优化包管理器检测与 npm 包处理逻辑 (63f7fa4)

代码重构

  • core: 优化配置合并逻辑,添加字段覆盖策略 (18680e6)

其他修改

  • ci-scripts: released version 0.5.0 [no ci] (a87a1da)
  • ci-shell: released version 0.5.0 [no ci] (920d9a8)
  • core: released version 0.5.0 [no ci] (ad20098)
  • period-summary: released version 0.5.0 [no ci] (8e547e9)
  • publish: released version 0.7.0 [no ci] (7124435)
  • 更新项目依赖锁定文件 (19d2d1d)
  • 移除 npm registry 配置文件 (2d9fac6)
  • 调整依赖配置并添加npm registry配置 (a754db1)

0.4.0 (2026-01-28)

代码重构

  • publish: 调整zod依赖的导入来源 (574eef1)
  • review: 调整zod依赖的导入路径 (02014cd)

其他修改

  • ci-scripts: released version 0.4.0 [no ci] (364f696)
  • ci-shell: released version 0.4.0 [no ci] (7e6bf1d)
  • core: released version 0.4.0 [no ci] (bc4cd89)
  • core: 调整核心依赖与配置新增Zod类型系统支持 (def0751)
  • period-summary: released version 0.4.0 [no ci] (ca89a9b)
  • publish: released version 0.6.0 [no ci] (b6d8d09)
  • 调整项目依赖配置 (6802386)

0.3.0 (2026-01-28)

代码重构

  • publish: 调整包变更检测的日志输出格式 (df35e92)

其他修改

  • ci-scripts: released version 0.3.0 [no ci] (9292b52)
  • ci-shell: released version 0.3.0 [no ci] (7b25e55)
  • core: released version 0.3.0 [no ci] (bf8b005)
  • core: 调整依赖配置 (c86534a)
  • period-summary: released version 0.3.0 [no ci] (7e74c59)
  • publish: released version 0.4.0 [no ci] (be66220)
  • publish: released version 0.5.0 [no ci] (8eecd19)
  • 调整项目依赖配置 (f4009cb)

0.2.0 (2026-01-28)

新特性

  • publish: 增强包变更检测的日志输出 (b89c5cc)

修复BUG

  • publish: 修复分支锁定时未捕获异常处理器的资源泄漏问题 (ae326e9)

文档更新

  • core: 更新核心框架README文档 (0d98658)

其他修改

  • ci-scripts: released version 0.2.0 [no ci] (716e9ad)
  • ci-shell: released version 0.2.0 [no ci] (4f5314b)
  • core: released version 0.2.0 [no ci] (5a96529)
  • period-summary: released version 0.2.0 [no ci] (66a4e20)
  • publish: released version 0.2.0 [no ci] (bc30a82)
  • publish: released version 0.3.0 [no ci] (972eca4)
  • 优化CI工作流的代码检出配置 (d9740dd)

0.1.2 (2026-01-28)

修复BUG

  • publish: 修复预演模式下的交互式提示问题 (0b785bf)

其他修改

  • ci-scripts: released version 0.1.2 [no ci] (ab9c100)
  • ci-shell: released version 0.1.2 [no ci] (bf7977b)
  • core: released version 0.1.2 [no ci] (8292dbe)
  • period-summary: released version 0.1.2 [no ci] (eaf41a0)
  • publish: released version 0.1.2 [no ci] (4786731)

0.1.1 (2026-01-28)

文档更新

  • publish: 完善发布插件README文档 (faa57b0)

其他修改

  • ci-scripts: released version 0.1.1 [no ci] (19ca0d8)
  • ci-shell: released version 0.1.1 [no ci] (488a686)
  • core: released version 0.1.1 [no ci] (0cf3a4d)
  • period-summary: released version 0.1.1 [no ci] (b77e96b)
  • publish: released version 0.1.1 [no ci] (43ba6cb)

0.1.0 (2026-01-28)

新特性

  • core: 添加同步解锁分支方法用于进程退出清理 (cbec480)

其他修改

  • ci-scripts: released version 0.1.0 [no ci] (57b3a1c)
  • ci-shell: released version 0.1.0 [no ci] (2283d9d)
  • core: released version 0.1.0 [no ci] (f455607)
  • period-summary: released version 0.1.0 [no ci] (36fb7a4)
  • publish: released version 0.1.0 [no ci] (0ca1b54)

0.0.1 (2026-01-28)

其他修改

  • ci-scripts: released version 0.0.1 [no ci] (b38fb9b)
  • ci-shell: released version 0.0.1 [no ci] (ec2a84b)
  • core: released version 0.0.1 [no ci] (66497d6)
  • period-summary: released version 0.0.1 [no ci] (7ab3504)
  • publish: released version 0.0.1 [no ci] (16b0f64)
  • 重置所有包版本至 0.0.0 并清理 CHANGELOG 文件 (f7efaf9)