@sdsrs/code-graph 0.7.4 → 0.7.6
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
|
@@ -234,6 +234,31 @@ npm uninstall -g @sdsrs/code-graph
|
|
|
234
234
|
| `find_references` | Find all references to a symbol (callers, importers, inheritors). Supports `compact` mode |
|
|
235
235
|
| `find_dead_code` | Find unused code — orphan symbols and exported-but-unused public APIs |
|
|
236
236
|
|
|
237
|
+
## CLI Commands
|
|
238
|
+
|
|
239
|
+
All tools are also available as CLI subcommands for shell scripts, hooks, and terminal workflows:
|
|
240
|
+
|
|
241
|
+
| Command | MCP Equivalent | Description |
|
|
242
|
+
|---------|---------------|-------------|
|
|
243
|
+
| `search <query>` | `semantic_code_search` | FTS5 search by concept |
|
|
244
|
+
| `ast-search [query]` | `ast_search` | Structural search with `--type`/`--returns`/`--params` filters |
|
|
245
|
+
| `callgraph <symbol>` | `get_call_graph` | Show call graph (callers/callees) |
|
|
246
|
+
| `impact <symbol>` | `impact_analysis` | Impact analysis (callers, routes, risk level) |
|
|
247
|
+
| `show <symbol>` | `get_ast_node` | Show symbol details (code, type, signature) |
|
|
248
|
+
| `map` | `project_map` | Project architecture map |
|
|
249
|
+
| `overview <path>` | `module_overview` | Module symbols grouped by file and type |
|
|
250
|
+
| `deps <file>` | `dependency_graph` | File-level dependency graph |
|
|
251
|
+
| `trace <route>` | `trace_http_chain` | Trace HTTP route → handler → downstream calls |
|
|
252
|
+
| `similar <symbol>` | `find_similar_code` | Find semantically similar code (requires embeddings) |
|
|
253
|
+
| `refs <symbol>` | `find_references` | Find all references to a symbol |
|
|
254
|
+
| `dead-code [path]` | `find_dead_code` | Find unused code (orphans and exported-unused) |
|
|
255
|
+
| `grep <pattern>` | — | AST-context grep (ripgrep + containing function/class) |
|
|
256
|
+
| `incremental-index` | — | Run incremental index update (auto-creates DB if needed) |
|
|
257
|
+
| `health-check` | `get_index_status` | Query index status and freshness |
|
|
258
|
+
| `benchmark` | — | Benchmark index speed, query latency, token savings |
|
|
259
|
+
|
|
260
|
+
Common options: `--json` (JSON output), `--compact` (compact output), `--limit N`, `--depth N`, `--file <path>`.
|
|
261
|
+
|
|
237
262
|
## Plugin Slash Commands
|
|
238
263
|
|
|
239
264
|
Available when installed as a Claude Code plugin:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
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.7.
|
|
37
|
-
"@sdsrs/code-graph-linux-arm64": "0.7.
|
|
38
|
-
"@sdsrs/code-graph-darwin-x64": "0.7.
|
|
39
|
-
"@sdsrs/code-graph-darwin-arm64": "0.7.
|
|
40
|
-
"@sdsrs/code-graph-win32-x64": "0.7.
|
|
36
|
+
"@sdsrs/code-graph-linux-x64": "0.7.6",
|
|
37
|
+
"@sdsrs/code-graph-linux-arm64": "0.7.6",
|
|
38
|
+
"@sdsrs/code-graph-darwin-x64": "0.7.6",
|
|
39
|
+
"@sdsrs/code-graph-darwin-arm64": "0.7.6",
|
|
40
|
+
"@sdsrs/code-graph-win32-x64": "0.7.6"
|
|
41
41
|
}
|
|
42
42
|
}
|