docs(wiki): 全量代码验证驱动更新 — 10页基于实际扫描非文档推测
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
关键数字修正: - Rust 74.5K行(原66K), Tauri命令 183(原182), SaaS路由 121 - 前端组件 104, lib/ 85文件, Store 17+4子store - TODO/FIXME 仅 8 个(前端4+Rust4) 内容增强: - 中间件完整14层注册清单含注册条件和优先级分类 - Store完整目录结构, Pipeline完整目录树 - Hands测试分布, Memory 16个Tauri命令列表 - 管家模式: 关键词路由→语义路由(TF-IDF)修正 - 代码健康度指标新增
This commit is contained in:
@@ -60,6 +60,20 @@ ExperienceStore (crates/zclaw-growth/src/experience_store.rs)
|
||||
→ URI scheme: agent://{agent_id}/experience/...
|
||||
```
|
||||
|
||||
### Hermes 管线 (4 Chunk)
|
||||
|
||||
| Chunk | 模块 | 文件 | 测试 |
|
||||
|-------|------|------|------|
|
||||
| 1 | ExperienceStore + Extractor | experience_store.rs | 10 |
|
||||
| 2 | UserProfileStore + Profiler | user_profile.rs | 14 |
|
||||
| 3 | NlScheduleParser | nl_schedule.rs | 16 |
|
||||
| 4 | TrajectoryRecorder + Compressor | middleware/trajectory_recorder.rs | 18 |
|
||||
|
||||
Hermes 相关测试分布:
|
||||
- `nl_schedule.rs`: 16 tests (中文时间→cron 解析)
|
||||
- `types.rs`: 9 tests (记忆类型)
|
||||
- `injector.rs`: 9 tests (prompt 注入)
|
||||
|
||||
### 查询意图分类
|
||||
|
||||
`QueryAnalyzer` 支持 5 种意图:
|
||||
@@ -85,11 +99,21 @@ SaaS 侧:
|
||||
→ generate_embedding Worker: 内容分块 + 中文关键词提取 (Phase 2 embedding deferred)
|
||||
```
|
||||
|
||||
### 前端 Tauri 命令
|
||||
|
||||
Memory 相关命令 (13 个,来自 `memory_commands.rs` + `memory/`):
|
||||
`memory_init, memory_store, memory_get, memory_search, memory_delete, memory_delete_all, memory_stats, memory_export, memory_import, memory_db_path, memory_configure_embedding, memory_is_embedding_configured, memory_build_context`
|
||||
|
||||
加上 `memory/extractor.rs` 的 2 个: `extract_session_memories, extract_and_store_memories`
|
||||
和 `memory/context_builder.rs` 的 1 个: `estimate_content_tokens`
|
||||
|
||||
总计 16 个 memory 相关 Tauri 命令。
|
||||
|
||||
## 关联模块
|
||||
|
||||
- [[chat]] — 对话是记忆的输入源
|
||||
- [[butler]] — 管家模式可能利用记忆提供个性化响应
|
||||
- [[middleware]] — 记忆注入通过中间件或 hook 实现
|
||||
- [[middleware]] — Memory 中间件自动提取 + SkillIndex 注入
|
||||
|
||||
## 关键文件
|
||||
|
||||
@@ -102,5 +126,9 @@ SaaS 侧:
|
||||
| `crates/zclaw-growth/src/storage/sqlite.rs` | FTS5 + TF-IDF 核心 |
|
||||
| `crates/zclaw-growth/src/retrieval/semantic.rs` | EmbeddingClient trait |
|
||||
| `crates/zclaw-growth/src/retrieval/query.rs` | 意图分类 + CJK 关键词 |
|
||||
| `desktop/src/store/memoryStore.ts` | 前端记忆 UI |
|
||||
| `crates/zclaw-growth/src/nl_schedule.rs` | 中文时间→cron 解析 (16 tests) |
|
||||
| `crates/zclaw-runtime/src/middleware/memory.rs` | 记忆中间件 |
|
||||
| `crates/zclaw-runtime/src/middleware/trajectory_recorder.rs` | 轨迹记录中间件 |
|
||||
| `desktop/src/store/memoryGraphStore.ts` | 前端记忆 UI |
|
||||
| `desktop/src-tauri/src/memory/` | Tauri 记忆命令桥接 |
|
||||
| `desktop/src-tauri/src/memory_commands.rs` | 13 个 memory CRUD 命令 |
|
||||
|
||||
Reference in New Issue
Block a user