@sdsrs/code-graph 0.5.2 → 0.5.3

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,6 +4,6 @@
4
4
  "author": {
5
5
  "name": "sdsrs"
6
6
  },
7
- "version": "0.5.2",
7
+ "version": "0.5.3",
8
8
  "keywords": ["code-graph", "ast", "navigation", "mcp", "knowledge-graph"]
9
9
  }
@@ -17,6 +17,7 @@ try {
17
17
  fs.writeFileSync(flag, '');
18
18
  process.stdout.write(
19
19
  '[code-graph] For code understanding, prefer code-graph tools over Grep:\n' +
20
+ ' project_map → full project architecture overview (call FIRST)\n' +
20
21
  ' semantic_code_search → find code by concept (10x fewer tokens)\n' +
21
22
  ' get_call_graph → who calls X / what X calls (13x fewer tokens)\n' +
22
23
  ' module_overview → understand a module (20x fewer tokens)\n' +
@@ -18,6 +18,14 @@ if (BIN) {
18
18
  } catch { /* timeout — silent */ }
19
19
  }
20
20
 
21
+ // --- 1b. Suggest project_map as first action ---
22
+ if (BIN) {
23
+ process.stdout.write(
24
+ '\n[code-graph] TIP: Call project_map first to get a full architecture overview ' +
25
+ '(modules, dependencies, hot functions, entry points) in one call.\n'
26
+ );
27
+ }
28
+
21
29
  // --- 2. Scope conflict warning ---
22
30
  const conflict = checkScopeConflict();
23
31
  if (conflict) {
@@ -20,7 +20,7 @@ This project has a code-graph MCP server. These tools return structured, token-e
20
20
  | One symbol's signature+relations | `get_ast_node` | Read entire file | 10x |
21
21
  | File import/export dependencies | `dependency_graph` | Grep import statements | 5x |
22
22
  | Find similar/duplicate code | `find_similar_code` | Grep partial names | 5x |
23
- | Read code of a search result | `read_snippet` (by node_id) | Read entire file | 3x |
23
+ | Read code of a search result | `get_ast_node` (by node_id) | Read entire file | 3x |
24
24
 
25
25
  ## When to use native tools instead
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
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.5.2",
37
- "@sdsrs/code-graph-linux-arm64": "0.5.2",
38
- "@sdsrs/code-graph-darwin-x64": "0.5.2",
39
- "@sdsrs/code-graph-darwin-arm64": "0.5.2",
40
- "@sdsrs/code-graph-win32-x64": "0.5.2"
36
+ "@sdsrs/code-graph-linux-x64": "0.5.3",
37
+ "@sdsrs/code-graph-linux-arm64": "0.5.3",
38
+ "@sdsrs/code-graph-darwin-x64": "0.5.3",
39
+ "@sdsrs/code-graph-darwin-arm64": "0.5.3",
40
+ "@sdsrs/code-graph-win32-x64": "0.5.3"
41
41
  }
42
42
  }