新增:
- cli-anything/ — 命令行伴侣
- docs/ — v3.8设计文档、v3.9 rag-skill补充设计、实施计划、进度快照、data_structure.md索引
- skills/ — zhiyi技能(SKILL.md+scripts+references)、rag-progressive-search渐进检索技能
- scripts/ — 更新wiki_curator.py(中文版)、新增three-way-check.sh、verify-gitea-deploy.sh
变更:
- scripts/wiki_curator.py — 更新为中文说明版
- README.md — 已完成(ca37de9)
功能覆盖:
- P0 Recall降级策略 / P1 自动注入 / P2 信任评分
- P3 CREATIVE.md / P4 Ground Truth / P5 Wiki策展
- H1 BM25融合 / H2 LLM策展 / H3自动信任 / H4 diversity / H5三模式 / H6多级存储
- rag-skill渐进式检索集成(分层索引+渐进检索+先学再做)
834 B
834 B
Test Plan for cli-anything-zhiyi
Test Files
test_core.py— Unit tests for ZhiYiClient
Unit Test Plan
client.py
| Function | Test case | Expected |
|---|---|---|
__init__ |
Default params | base=localhost:7821, key=default |
__init__ |
Custom params | Uses provided values |
health() |
Live endpoint | status=ok, service=zhiyid |
stats() |
Live endpoint | total_memories > 0 |
graph_stats() |
Live endpoint | node_count > 0, edge_count > 0 |
metrics() |
Live endpoint | total_memories present |
search() |
Live query | Returns results |
search() |
All modes | hybrid, semantic, keyword all work |
diagnose() |
Full check | All 5 components present |
Results
- Tests: 9/9 passing
- Coverage: Client unit tests only (no CLI subprocess tests in v0.1.0)