csspilot 0.4.0 → 0.5.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.
@@ -2,7 +2,7 @@
2
2
  # `npx csspilot init` 会把整个 skills/testpilot/ 安装到业务项目 .agents/skills/testpilot/
3
3
  id: testpilot
4
4
  name: TestPilot
5
- version: 0.4.0
5
+ version: 0.5.0
6
6
 
7
7
  description: >
8
8
  AI Native cross-platform testing skill.
@@ -2,11 +2,12 @@
2
2
 
3
3
  1. 执行 `npx csspilot report` 生成报告。
4
4
  2. 产物位于 `.testpilot/artifacts/runs/<run-id>/`:
5
- - `report.json` —— 结构化结果,AI 优先读这个:`{ generatedAt, summary: { runId, status, totals, cases: [{ caseId, status, steps: [{ index, target, action, status, durationMs, error?, screenshot?, extracted? }] }] } }`
6
- - `report.html` —— 人类可读报告
7
- - `screenshots/`、`traces/`、`logs/` —— 失败取证
8
- 3. 失败分析顺序:report.json 中失败步骤的 `error` 信息 → 对应 `screenshot` → `logs/run.log` → `events.ndjson`。
5
+ - `report.json` —— 结构化结果,AI 优先读这个:`{ generatedAt, summary: { runId, status, totals, cases: [{ caseId, status, steps: [{ index, target, action, status, durationMs, error?, screenshot?, extracted? }] }] }, history(最近 12 次运行趋势), failures(失败分类明细:category / caseId / message) }`;失败步骤的 `category` ∈ assert / element / adapter / env / timeout / other
6
+ - `report.html` —— 交互式报告(步骤树、失败分类筛选、历史趋势)
7
+ - `screenshots/`、`videos/`、`traces/`、`logs/` —— 失败取证
8
+ 3. 失败分析顺序:report.json 中失败步骤的 `category` 与 `error` → 对应 `screenshot` → `logs/run.log` → `events.ndjson`。
9
9
  4. 得出结论:
10
10
  - Case 问题(locator 过期、步骤错误)→ 修改 Case,重新 validate → run
11
11
  - 产品 bug → 停止修改 Case,向用户报告证据与结论
12
- 5. 不要在未分析 Evidence 的情况下盲目重跑或修改 Case。
12
+ 5. 历史趋势中出现反复失败的用例(intermittent / flaky)要在结论中单独标注。
13
+ 6. 不要在未分析 Evidence 的情况下盲目重跑或修改 Case。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "csspilot",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "TestPilot — AI Native 跨端业务测试基础设施 CLI",
5
5
  "license": "MIT",
6
6
  "repository": {