@alenfitz/spec-copilot 2.7.0 → 2.8.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.
@@ -4,6 +4,30 @@
4
4
 
5
5
  ---
6
6
 
7
+ ## [2.8.0] - 2026-05-23
8
+
9
+ ### 新增
10
+
11
+ **独立 Reviewer + 主动交互测试**
12
+
13
+ 两个核心特性,进一步消除"AI 自评虚高"问题:
14
+
15
+ **独立 Reviewer(review-checks.js)— 代码级 spec-to-code 验证**
16
+ 在 `gate review` 时自动执行,替代"AI 审 AI"的自评模式:
17
+ - **API 契约校验**:spec 中定义的 API 端点 → 检查前端是否调用 + 后端是否实现 → 不匹配即 fail
18
+ - **错误处理审计**:扫描前端所有 API 调用点 → 无 catch/空 catch → 超 50% 即 fail
19
+ - **硬编码数据检测**:检测前端组件中疑似 mock 数据(应从 API 获取的硬编码数组)
20
+ - **路由完整性**:spec 声明的路由 → router 文件中是否注册
21
+
22
+ **主动交互测试 — 从"被动观测"到"主动操作"**
23
+ E2E 浏览器冒烟中新增主动交互:
24
+ - **搜索测试**:自动定位搜索框 → 输入文字 + Enter → 检查是否触发 API 请求
25
+ - **分页测试**:自动定位分页组件 → 点击第 2 页 → 检查 API 请求是否带 page 参数
26
+ - **新增按钮检测**:检测"新增/创建"按钮是否存在、是否被禁用
27
+ - **表格操作检测**:检测表格行中"编辑/删除/查看"按钮是否存在
28
+
29
+ ---
30
+
7
31
  ## [2.7.0] - 2026-05-23
8
32
 
9
33
  ### 新增
package/framework/VERSION CHANGED
@@ -1 +1 @@
1
- 2.7.0
1
+ 2.8.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alenfitz/spec-copilot",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Spec-Driven Development Framework — one package, six AI coding tools (opencode, Claude Code, Cursor, Windsurf, GitHub Copilot, Cline)",
5
5
  "keywords": [
6
6
  "ai-coding",