@sdsrs/code-graph 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -101,13 +101,15 @@ Real-world benchmarks comparing code-graph-mcp tools against traditional approac
|
|
|
101
101
|
|
|
102
102
|
```
|
|
103
103
|
src/
|
|
104
|
+
├── domain.rs # Shared constants, relation types, env-var config
|
|
104
105
|
├── mcp/ # MCP protocol layer (JSON-RPC, tool registry, server)
|
|
105
|
-
|
|
106
|
+
│ └── server/ # McpServer with IndexingState + CacheState sub-structs
|
|
107
|
+
├── parser/ # Tree-sitter parsing, relation extraction, LanguageConfig dispatch
|
|
106
108
|
├── indexer/ # 3-phase pipeline, Merkle tree, file watcher
|
|
107
|
-
├── storage/ # SQLite schema, CRUD, FTS5
|
|
109
|
+
├── storage/ # SQLite schema (v6), CRUD, FTS5, migrations
|
|
108
110
|
├── graph/ # Recursive CTE call graph queries
|
|
109
111
|
├── search/ # RRF fusion search combining BM25 + vector
|
|
110
|
-
├── embedding/ # Candle embedding model (optional)
|
|
112
|
+
├── embedding/ # Candle embedding model (optional, masked mean pooling)
|
|
111
113
|
├── sandbox/ # Context compressor with token estimation
|
|
112
114
|
└── utils/ # Language detection, config
|
|
113
115
|
```
|
|
@@ -225,11 +227,11 @@ npm uninstall -g @sdsrs/code-graph
|
|
|
225
227
|
| `trace_http_chain` | Full request flow: route → handler → downstream call chain |
|
|
226
228
|
| `impact_analysis` | Analyze the blast radius of changing a symbol |
|
|
227
229
|
| `module_overview` | High-level overview of a module's structure and exports |
|
|
228
|
-
| `dependency_graph` | Visualize dependency relationships between modules |
|
|
229
|
-
| `find_similar_code` | Find code
|
|
230
|
-
| `get_ast_node` | Extract a specific code symbol with signature, body, and relations |
|
|
230
|
+
| `dependency_graph` | Visualize dependency relationships between modules. Supports `compact` mode |
|
|
231
|
+
| `find_similar_code` | Find semantically similar code via embeddings. Requires `symbol_name` or `node_id` |
|
|
232
|
+
| `get_ast_node` | Extract a specific code symbol with signature, body, and relations. Supports `compact` mode |
|
|
231
233
|
| `ast_search` | Search AST nodes by text and/or structural filters (type, return type, params) |
|
|
232
|
-
| `find_references` | Find all references to a symbol (callers, importers, inheritors) |
|
|
234
|
+
| `find_references` | Find all references to a symbol (callers, importers, inheritors). Supports `compact` mode |
|
|
233
235
|
| `find_dead_code` | Find unused code — orphan symbols and exported-but-unused public APIs |
|
|
234
236
|
|
|
235
237
|
## Plugin Slash Commands
|
|
@@ -316,6 +318,9 @@ cargo test --no-default-features
|
|
|
316
318
|
|
|
317
319
|
# Check compilation
|
|
318
320
|
cargo check
|
|
321
|
+
|
|
322
|
+
# Run performance benchmarks (indexing, search, call graph)
|
|
323
|
+
cargo bench --no-default-features
|
|
319
324
|
```
|
|
320
325
|
|
|
321
326
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "MCP server that indexes codebases into an AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"node": ">=16"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@sdsrs/code-graph-linux-x64": "0.
|
|
37
|
-
"@sdsrs/code-graph-linux-arm64": "0.
|
|
38
|
-
"@sdsrs/code-graph-darwin-x64": "0.
|
|
39
|
-
"@sdsrs/code-graph-darwin-arm64": "0.
|
|
40
|
-
"@sdsrs/code-graph-win32-x64": "0.
|
|
36
|
+
"@sdsrs/code-graph-linux-x64": "0.7.1",
|
|
37
|
+
"@sdsrs/code-graph-linux-arm64": "0.7.1",
|
|
38
|
+
"@sdsrs/code-graph-darwin-x64": "0.7.1",
|
|
39
|
+
"@sdsrs/code-graph-darwin-arm64": "0.7.1",
|
|
40
|
+
"@sdsrs/code-graph-win32-x64": "0.7.1"
|
|
41
41
|
}
|
|
42
42
|
}
|