| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: 修复6个核心问题 1. MCP Server 索引重建:加载图谱后从存储节点重建索引 2. CALL 边修复:使用全局函数名映射,支持跨文件调用追踪 3. DEPEND 边修复:使用模块路径映射,建立正确的模块依赖 4. 模块层级关系:建立父模块关系和 CONTAIN 边 5. get_history/get_owner 实现:基于 MODIFY 边查询提交历史和贡献者 6. History Parser:建立 commit -> file 的 MODIFY 边 所有 208 个测试通过 | 5 个月前 | |
fix(graph): add missing get_edge method to GraphStore backends code_parser.py:220 (fallback code_chunk linking loop, added in 61f112d) calls store.get_edge(edge_id) to dedup CONTAIN edges between a fallback file and its parent directory module, but get_edge was never defined on any store backend — only get_edges (by node) existed. The bug was unreachable for root-level fallback files (no parent dir, so the linking loop is skipped), which is why the existing fallback test suite never caught it. It surfaced on any real codebase whose parse-failed files live in subdirectories (e.g. tree-sitter-c on a C project), making the full graph build raise: AttributeError: 'JsonStore' object has no attribute 'get_edge' - JsonStore.get_edge: O(E) scan over self.edges, membership short- circuited via the existing _edge_ids set; add_edge already dedups, so get_edge only guards the edges_created counter. - SqliteStore.get_edge: SELECT by id. - base.GraphStore: declare get_edge as abstract. Regression tests: - test_json_store: get_edge found / not-found / reflects deletion. - test_fallback_chunks: fallback file nested in a subdirectory now links to its parent module instead of crashing the build. | 4 个月前 |