@sdsrs/code-graph 0.54.2 → 0.55.0

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.
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "sdsrs"
6
6
  },
7
- "version": "0.54.2",
7
+ "version": "0.55.0",
8
8
  "keywords": [
9
9
  "code-graph",
10
10
  "ast",
@@ -82,6 +82,9 @@ hidden 5 加载 schema —— 实操中走新 flag。CLI 子命令保持原样
82
82
  | "相似/重复函数"(需 embedding) | `code-graph-mcp similar X` | `get_ast_node symbol_name=X include_similar=true` |
83
83
  | "未使用的代码" | `code-graph-mcp dead-code [path]` | `module_overview path=<path> include_dead=true` |
84
84
  | "架构咽喉/桥节点是谁?" | `code-graph-mcp centrality` | —(CLI-only;betweenness 中心性,补 `map` 的 caller_count 度中心性) |
85
+ | "循环导入依赖(哪些文件互相 import)?" | `code-graph-mcp cycles` | —(CLI-only;文件级 import 环 = SCC;JS/TS/Py/Go 是坏味,Rust 内部环常良性) |
86
+ | "可疑/意外的跨模块耦合?" | `code-graph-mcp surprising` | —(CLI-only;跨文件 calls/refs 按 低置信(ambiguous>inferred)+跨模块+sole-bridge 打分) |
87
+ | "代码健康总览(想要一份报告)?" | `code-graph-mcp report` | —(CLI-only;汇总 summary+置信度 / hot / chokepoints / cycles / surprising / dead-code) |
85
88
 
86
89
  **dead-code 的 `ignore_paths`**:CLI 默认豁免 `["claude-plugin/", "benches/"]`
87
90
  (macro/shell 入口点);`--no-ignore` 关闭。MCP 端也接同名参数。
@@ -117,6 +120,9 @@ code-graph-mcp show SYMBOL # 节点详情
117
120
  code-graph-mcp refs SYMBOL --relation calls # 引用筛选
118
121
  code-graph-mcp refs SYMBOL --min-confidence extracted # 只看精确边(滤跨文件裸名 inferred/ambiguous)
119
122
  code-graph-mcp centrality # 架构咽喉(betweenness 桥节点;补 map 的 caller_count)
123
+ code-graph-mcp cycles # 循环导入依赖(文件级 import 环 / SCC)
124
+ code-graph-mcp surprising # 可疑跨模块耦合(低置信 + 跨模块 + sole-bridge 打分)
125
+ code-graph-mcp report # 代码健康总览(汇总 hot/chokepoints/cycles/surprising/dead-code)
120
126
  code-graph-mcp dead-code [path] # 未使用代码(默认豁免 claude-plugin/)
121
127
  code-graph-mcp dead-code --ignore tmp/ --ignore scripts/bin/ # 自定义豁免前缀
122
128
  code-graph-mcp dead-code --no-ignore # 关掉默认豁免,看完整列表
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.54.2",
3
+ "version": "0.55.0",
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": {
@@ -35,10 +35,10 @@
35
35
  "node": ">=16"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@sdsrs/code-graph-linux-x64": "0.54.2",
39
- "@sdsrs/code-graph-linux-arm64": "0.54.2",
40
- "@sdsrs/code-graph-darwin-x64": "0.54.2",
41
- "@sdsrs/code-graph-darwin-arm64": "0.54.2",
42
- "@sdsrs/code-graph-win32-x64": "0.54.2"
38
+ "@sdsrs/code-graph-linux-x64": "0.55.0",
39
+ "@sdsrs/code-graph-linux-arm64": "0.55.0",
40
+ "@sdsrs/code-graph-darwin-x64": "0.55.0",
41
+ "@sdsrs/code-graph-darwin-arm64": "0.55.0",
42
+ "@sdsrs/code-graph-win32-x64": "0.55.0"
43
43
  }
44
44
  }