@sdsrs/code-graph 0.78.0 → 0.79.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.
|
@@ -59,7 +59,7 @@ function buildTriggerRows(projectType = 'generic') {
|
|
|
59
59
|
['Unfamiliar dir / module', '`code-graph-mcp overview <dir>`'],
|
|
60
60
|
['Symbol source / signature', '`code-graph-mcp show X`'],
|
|
61
61
|
['Concept search (no exact name)', '`code-graph-mcp search "…"` (vector: MCP `semantic_code_search`)'],
|
|
62
|
-
['grep + AST context', '`code-graph-mcp grep "pat" [paths]`'],
|
|
62
|
+
['grep + AST context', '`code-graph-mcp grep "pat" [paths] [-t lang] [-g glob] [-c]`'],
|
|
63
63
|
];
|
|
64
64
|
switch (projectType) {
|
|
65
65
|
case 'web-rs':
|
|
@@ -45,8 +45,9 @@ type: reference
|
|
|
45
45
|
> ToolSearch 加载),而 Bash 永远在线——真实编程夜(2026-06-12)观测到的全部
|
|
46
46
|
> 转化都是 CLI 调用。结构化查询的最快路径是 Bash 直呼
|
|
47
47
|
> `code-graph-mcp callgraph X / show X / overview <dir> / grep "pat" / impact X`。
|
|
48
|
-
> `grep` 是 drop-in 替代:`-F` 字面 / `-i` / `-w` / `-l` / `-
|
|
49
|
-
>
|
|
48
|
+
> `grep` 是 drop-in 替代:`-F` 字面 / `-i` / `-w` / `-l` / `-c` 计数 / `-t <lang>` 按语言筛 /
|
|
49
|
+
> `-g <glob>` 路径过滤 / `-A/-B/-C N` 上下文 / `-M N` 行宽上限(默认 512,防长行刷屏)/
|
|
50
|
+
> 多路径 / `-m 0` 取消每文件上限,退出码兼容 grep(0/1/2),召回达 git-grep 级
|
|
50
51
|
> (tracked-but-gitignored 也能搜到),每条命中标注所属 fn/class。
|
|
51
52
|
>
|
|
52
53
|
> v0.10.0 起:tools/list 默认只暴露 7 个核心工具;下表"进阶 5"中的工具
|
|
@@ -112,7 +113,7 @@ hidden 5 加载 schema —— 实操中走新 flag。CLI 子命令保持原样
|
|
|
112
113
|
## CLI 速查(替 Bash)
|
|
113
114
|
|
|
114
115
|
```
|
|
115
|
-
code-graph-mcp grep "pattern" [path] # ripgrep + AST
|
|
116
|
+
code-graph-mcp grep "pattern" [path] # ripgrep + AST 上下文(-t lang / -g glob / -c 计数 / -M 行宽)
|
|
116
117
|
code-graph-mcp search "concept" # 纯 FTS5(要混合检索走 MCP semantic_code_search)
|
|
117
118
|
code-graph-mcp ast-search "q" --type fn # 结构化筛选
|
|
118
119
|
code-graph-mcp map # 项目架构
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.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.
|
|
39
|
-
"@sdsrs/code-graph-linux-arm64": "0.
|
|
40
|
-
"@sdsrs/code-graph-darwin-x64": "0.
|
|
41
|
-
"@sdsrs/code-graph-darwin-arm64": "0.
|
|
42
|
-
"@sdsrs/code-graph-win32-x64": "0.
|
|
38
|
+
"@sdsrs/code-graph-linux-x64": "0.79.0",
|
|
39
|
+
"@sdsrs/code-graph-linux-arm64": "0.79.0",
|
|
40
|
+
"@sdsrs/code-graph-darwin-x64": "0.79.0",
|
|
41
|
+
"@sdsrs/code-graph-darwin-arm64": "0.79.0",
|
|
42
|
+
"@sdsrs/code-graph-win32-x64": "0.79.0"
|
|
43
43
|
}
|
|
44
44
|
}
|