@sdsrs/code-graph 0.17.0 → 0.17.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.
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "sdsrs"
6
6
  },
7
- "version": "0.17.0",
7
+ "version": "0.17.2",
8
8
  "keywords": [
9
9
  "code-graph",
10
10
  "ast",
@@ -23,17 +23,17 @@ function readAdoptedBy(filePath) {
23
23
  return m ? m[1] : null;
24
24
  } catch { return null; }
25
25
  }
26
- const INDEX_LINE = [
27
- '- [code-graph-mcp](plugin_code_graph_mcp.md) v0.10.0 tools/list 默认 7 核心 + 5 隐藏可调(省启动 token)',
28
- ' - 核心 7(默认暴露):`get_call_graph`/`module_overview`/`semantic_code_search`/`ast_search`/`find_references`/`get_ast_node`/`project_map`',
29
- ' - 进阶 5(隐藏按名可调):`impact_analysis`/`trace_http_chain`/`dependency_graph`/`find_similar_code`/`find_dead_code`',
30
- ' - 场景速查(优先于 Grep):',
31
- ' - X 影响面 → `get_ast_node symbol=X include_impact=true`(或 CLI `code-graph-mcp impact X`)',
32
- ' - 谁调用 X / X 被谁用 → `get_call_graph X` 或 `find_references X`',
33
- ' - X 源码 / 签名 `get_ast_node symbol=X`',
34
- ' - Y 模块长啥样 `module_overview` CLI `code-graph-mcp overview Y/`',
35
- ' - 概念查询(不知精确名)→ `semantic_code_search "Z"`;字面匹配用 Grep',
36
- ].join('\n');
26
+ // One-liner per MEMORY.md spec ("each entry should be one line"). All routing
27
+ // triggers from prior multi-line block preserved verbatim collapsing to single
28
+ // line is a structural fix, not a signal change. Decision table lives in the
29
+ // linked plugin_code_graph_mcp.md; this line is the router. Tag syntax
30
+ // `[tag1, tag2]` per spec for explicit keyword matching.
31
+ const INDEX_LINE =
32
+ '- [code-graph-mcp](plugin_code_graph_mcp.md) ' +
33
+ '[impact, callgraph, refs, overview, semantic, ast-search, dead-code, similar, deps, trace] — ' +
34
+ ' X 影响面/谁调用 X/X 被谁用/看 X 源码/Y 模块长啥样/概念查询 优先于 Grep;字面匹配走 Grep。' +
35
+ '核心 7(get_call_graph/module_overview/semantic_code_search/ast_search/find_references/get_ast_node/project_map)' +
36
+ '+ 进阶 5(impact_analysis/trace_http_chain/dependency_graph/find_similar_code/find_dead_code),决策表见全文';
37
37
  const TEMPLATE_PATH = path.resolve(__dirname, '..', 'templates', 'plugin_code_graph_mcp.md');
38
38
  const TARGET_NAME = 'plugin_code_graph_mcp.md';
39
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.17.0",
3
+ "version": "0.17.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": {
@@ -35,10 +35,10 @@
35
35
  "node": ">=16"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@sdsrs/code-graph-linux-x64": "0.17.0",
39
- "@sdsrs/code-graph-linux-arm64": "0.17.0",
40
- "@sdsrs/code-graph-darwin-x64": "0.17.0",
41
- "@sdsrs/code-graph-darwin-arm64": "0.17.0",
42
- "@sdsrs/code-graph-win32-x64": "0.17.0"
38
+ "@sdsrs/code-graph-linux-x64": "0.17.2",
39
+ "@sdsrs/code-graph-linux-arm64": "0.17.2",
40
+ "@sdsrs/code-graph-darwin-x64": "0.17.2",
41
+ "@sdsrs/code-graph-darwin-arm64": "0.17.2",
42
+ "@sdsrs/code-graph-win32-x64": "0.17.2"
43
43
  }
44
44
  }