From ed54b254f93963ed44b70ef85ff6d6c3b4e4ed4a Mon Sep 17 00:00:00 2001 From: juice094 <160722440+juice094@users.noreply.github.com> Date: Thu, 14 May 2026 20:33:16 +0800 Subject: [PATCH] =?UTF-8?q?docs(AGENTS):=20=E6=8A=80=E6=9C=AF=E5=80=BA?= =?UTF-8?q?=E7=99=BB=E8=AE=B0=E7=B0=BF=E6=9B=B4=E6=96=B0=20=E2=80=94=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E6=B7=B7=E4=B9=B1=20+=20RF-7=20?= =?UTF-8?q?=E6=A0=87=E8=AE=B0=E4=B8=BA=E5=B7=B2=E6=B8=85=E5=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 83904c3..e72fc34 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -254,8 +254,8 @@ done | 债项 | 严重 | 当前值 | 目标阈值 | 清理路径 | 引入 Wave | |---|---|---|---|---|---| | `main.rs` 上帝文件 | 🟢 | 778 行 | ≤1000 行 | 拆分为 `commands/simple.rs` + `commands/skill.rs` + `commands/workflow.rs` + `commands/limit.rs`;全部 22 个命令/子命令树已迁移 | ≤15 | -| Workspace crate 版本号混乱 | 🟡 | 6 个 crate 仍为 `0.1.0-alpha.1`,workspace 版本 `0.17.0-dev` 滞后主包 `0.20.0` | 全部统一为 `version.workspace = true` 或 `0.20.0` | 批量修正 `Cargo.toml` | v0.20.1 | -| RF-7 高耦合模块超标 | 🟡 | `registry.rs` (20)、`scan.rs` (18)、`digest.rs` (17) 超过 15 阈值 | ≤15 | `scan.rs` 拆分为 `scan/discover.rs` + `scan/filter.rs`;`digest.rs` 提取独立模块 | 持续 | +| Workspace crate 版本号混乱 | 🟢 | **已完成**:全部 19 个 crate 统一为 `version.workspace = true`,workspace 版本 `0.20.0` | 全部统一为 `version.workspace = true` 或 `0.20.0` | 批量修正 `Cargo.toml` | v0.20.1 | +| RF-7 高耦合模块超标 | 🟢 | **已完成**:`scan.rs` 18→7、`digest.rs` 17→5、`registry.rs` 20→4;全部 `src/*.rs` ≤ 15 `crate::` 引用 | ≤15 | use 语句规范化消除 self-reference;`registry.rs` 保留 4 个(2 use + 2 dependency_graph)作为 facade | v0.20.1 | | `init_db()` 全局路径 | 🟢 | `AppContext` 已集成到全部 commands/ 模块;`main()` 通过 `AppContext` 分发配置;`init_db()` 无外部调用 | 0 | 已完成:`StorageBackend` trait + `AppContext` 全面替代;`db_path`/`workspace_dir`/`index_path`/`backup_dir` 已统一 | ≤15 | | Tantivy+SQLite 双写一致性 | 🟡 | 无事务协调;**已添加反向检测**(`repair_tantivy_consistency` 现在检测 SQLite→Tantivy 缺失) | 补偿机制 | 长期:事务协调或 SQLite FTS5 替代;短期:反向检测 + 日志已落地(`fe14c81`) | 7 | | 主从表切换 | 🟢 | Phase 1 全部完成:`repos` 表已删除,entities 为唯一数据源 | `entities` 为第一公民 | Phase 2 类型系统开放(新增 entity_type 无需改表结构) | v0.12.0 |