@sdsrs/code-graph 0.11.0 → 0.11.2
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.
|
@@ -36,13 +36,17 @@ type: reference
|
|
|
36
36
|
|
|
37
37
|
### 进阶 5(隐藏但可调)
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
|
42
|
-
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
39
|
+
这 5 个工具从 `tools/list` 隐藏(省 token),但**仍可按名调用**。由于 schema 不在 list 里,**必须用下表列出的精确参数名**(猜错会返回 `"<param> is required"` 错误)。
|
|
40
|
+
|
|
41
|
+
| 意图 | 工具 | 必填参数 | 可选参数 |
|
|
42
|
+
|------|------|----------|----------|
|
|
43
|
+
| "改 X 会炸啥?" | `impact_analysis` | `symbol_name` | `file_path`, `change_type` ∈ {signature,behavior,remove}, `depth` |
|
|
44
|
+
| HTTP 路由 → handler 链路 | `trace_http_chain` | **`route_path`** ⚠(不是 `route`) | `depth` |
|
|
45
|
+
| "X 文件依赖谁?" | `dependency_graph` | `file_path` | `direction` ∈ {outgoing,incoming,both}, `depth`, `compact` |
|
|
46
|
+
| "相似/重复函数"(需 embedding) | `find_similar_code` | `symbol_name` 或 `node_id` | `top_k`, `max_distance` |
|
|
47
|
+
| "未使用的代码" | `find_dead_code` | — | `path`, `node_type`, `include_tests`, `min_lines`, `compact`, **`ignore_paths`** (prefix glob 数组;默认 `["claude-plugin/"]`,传 `[]` 关闭默认豁免) |
|
|
48
|
+
|
|
49
|
+
CLI 等价:`impact/trace/deps/similar/dead-code`(见下方 CLI 速查)。
|
|
46
50
|
|
|
47
51
|
## 不要替代
|
|
48
52
|
|
|
@@ -73,7 +77,9 @@ code-graph-mcp callgraph SYMBOL # 调用图
|
|
|
73
77
|
code-graph-mcp impact SYMBOL # 影响面
|
|
74
78
|
code-graph-mcp show SYMBOL # 节点详情
|
|
75
79
|
code-graph-mcp refs SYMBOL --relation calls # 引用筛选
|
|
76
|
-
code-graph-mcp dead-code [path] #
|
|
80
|
+
code-graph-mcp dead-code [path] # 未使用代码(默认豁免 claude-plugin/)
|
|
81
|
+
code-graph-mcp dead-code --ignore tmp/ --ignore scripts/bin/ # 自定义豁免前缀
|
|
82
|
+
code-graph-mcp dead-code --no-ignore # 关掉默认豁免,看完整列表
|
|
77
83
|
code-graph-mcp health-check # 索引健康
|
|
78
84
|
```
|
|
79
85
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
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": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"node": ">=16"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@sdsrs/code-graph-linux-x64": "0.11.
|
|
38
|
-
"@sdsrs/code-graph-linux-arm64": "0.11.
|
|
39
|
-
"@sdsrs/code-graph-darwin-x64": "0.11.
|
|
40
|
-
"@sdsrs/code-graph-darwin-arm64": "0.11.
|
|
41
|
-
"@sdsrs/code-graph-win32-x64": "0.11.
|
|
37
|
+
"@sdsrs/code-graph-linux-x64": "0.11.2",
|
|
38
|
+
"@sdsrs/code-graph-linux-arm64": "0.11.2",
|
|
39
|
+
"@sdsrs/code-graph-darwin-x64": "0.11.2",
|
|
40
|
+
"@sdsrs/code-graph-darwin-arm64": "0.11.2",
|
|
41
|
+
"@sdsrs/code-graph-win32-x64": "0.11.2"
|
|
42
42
|
}
|
|
43
43
|
}
|