Skip to content

Commit 70c74ef

Browse files
committed
Refactor CodeGraph MCP: Streamline executor initialization, enhance autoagents module organization, and improve SurrealDB schema
- Simplified the `CodeGraphExecutor::new` method for cleaner initialization. - Reorganized module imports in `autoagents/mod.rs` for better readability. - Updated `tier_plugin.rs` to include necessary imports for prompt selection. - Refactored `graph_tools.rs` to improve error handling and code clarity in tool execution. - Introduced a synchronous wrapper for `GraphToolExecutor` in `tool_executor_adapter.rs`. - Enhanced `ProjectIndexer` to utilize a new `SurrealWriterHandle` for batch processing of nodes, edges, and embeddings. - Updated SurrealDB schema to unify DeepWiki and CodeGraph, adding new fields and indexes for enhanced functionality. - Improved error handling and logging throughout the indexing process.
1 parent 91e5b50 commit 70c74ef

20 files changed

+1268
-1163
lines changed

Cargo.lock

Lines changed: 233 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/codegraph-graph/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ notify = { workspace = true }
3333

3434
# SurrealDB support (optional)
3535
surrealdb = { version = "2.2", optional = true }
36+
dotenvy = { version = "0.15", optional = true }
3637

3738
[features]
3839
default = []
39-
surrealdb = ["dep:surrealdb"]
40+
surrealdb = ["dep:surrealdb", "dep:dotenvy"]
4041

4142
[dev-dependencies]
4243
tokio-test = { workspace = true }
@@ -47,3 +48,8 @@ fastrand = "2.0"
4748
[[bench]]
4849
name = "simple_traversal_benchmarks"
4950
harness = false
51+
52+
[[bin]]
53+
name = "surreal_smoke_test"
54+
path = "src/bin/surreal_smoke_test.rs"
55+
required-features = ["surrealdb"]

crates/codegraph-graph/migrations/001_initial_schema.sql

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)