fix: 兼容 discovery-state.json 新旧两种格式

- readDiscoveryProgress: 自动检测 perspectives 格式(对象数组/字符串数组)
- readDiscoveryIndex: 兼容从 perspectives 和 metadata.perspectives 提取视角
- 列表 API: 优先从 results 对象提取统计数据,回退到顶层字段
- 新增 3 个测试用例验证新格式兼容性
- bump version to 6.3.22

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
catlog22
2026-01-13 12:35:05 +08:00
parent a8627e7f68
commit a20f81d44a
3 changed files with 267 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "claude-code-workflow",
"version": "6.3.21",
"version": "6.3.22",
"description": "JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution",
"type": "module",
"main": "ccw/src/index.js",