@sdsrs/code-graph 0.5.13 → 0.5.14

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.9",
7
+ "version": "0.5.14",
8
8
  "keywords": ["code-graph", "ast", "navigation", "mcp", "knowledge-graph"]
9
9
  }
@@ -1,8 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
  const { execFileSync } = require('child_process');
4
+ const fs = require('fs');
5
+ const path = require('path');
4
6
  const { findBinary } = require('./find-binary');
5
7
 
8
+ // Only show status in projects that have a code-graph index.
9
+ // The statusLine config is global, so we must exit silently for
10
+ // directories that aren't code-graph projects.
11
+ const cwd = process.cwd();
12
+ if (!fs.existsSync(path.join(cwd, '.code-graph', 'index.db'))) {
13
+ process.exit(0);
14
+ }
15
+
6
16
  const bin = findBinary();
7
17
  if (!bin) {
8
18
  process.stdout.write('code-graph: offline');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
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.13",
37
- "@sdsrs/code-graph-linux-arm64": "0.5.13",
38
- "@sdsrs/code-graph-darwin-x64": "0.5.13",
39
- "@sdsrs/code-graph-darwin-arm64": "0.5.13",
40
- "@sdsrs/code-graph-win32-x64": "0.5.13"
36
+ "@sdsrs/code-graph-linux-x64": "0.5.14",
37
+ "@sdsrs/code-graph-linux-arm64": "0.5.14",
38
+ "@sdsrs/code-graph-darwin-x64": "0.5.14",
39
+ "@sdsrs/code-graph-darwin-arm64": "0.5.14",
40
+ "@sdsrs/code-graph-win32-x64": "0.5.14"
41
41
  }
42
42
  }