@sdsrs/code-graph 0.96.0 → 0.97.1

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.
package/README.md CHANGED
@@ -5,7 +5,7 @@ A high-performance code knowledge graph server implementing the [Model Context P
5
5
  ## Features
6
6
 
7
7
  - **Multi-language parsing** — Tree-sitter AST extraction across tiers of depth:
8
- - **Full** (calls + imports + inheritance + HTTP routes + test markers): TypeScript/TSX, JavaScript, Go, Python, Rust, Java
8
+ - **Full** (calls + imports + inheritance + test markers): TypeScript/TSX, JavaScript, Go, Python, Rust, Java. HTTP route extraction additionally covers TypeScript/TSX + JavaScript (Express/Connect), Go (`net/http`), and Python (Flask/FastAPI) only — Rust and Java web frameworks are not yet route-extracted
9
9
  - **Smoke-tested** (calls + imports + inheritance): C#, Kotlin, Ruby, PHP, Swift, Dart
10
10
  - **Limited** (functions + calls + `#include` imports + gtest test markers + C++ base-class inheritance; `Class::method` scope qualification deferred): C, C++
11
11
  - **Scripting**: Bash (functions + commands + `source`/`.` imports), Markdown (headings)
@@ -295,7 +295,7 @@ Available when installed as a Claude Code plugin:
295
295
  | `/status` | Show code-graph index status and embedding progress |
296
296
  | `/rebuild` | Force a full code-graph index rebuild |
297
297
 
298
- ## Supported Languages (16)
298
+ ## Supported Languages (19)
299
299
 
300
300
  | Language | Extensions | Relations Extracted |
301
301
  |----------|-----------|-------------------|
@@ -313,8 +313,11 @@ Available when installed as a Claude Code plugin:
313
313
  | Dart | .dart | calls, imports, inherits, implements |
314
314
  | C | .c, .h | calls, imports |
315
315
  | C++ | .cpp, .cc, .cxx, .hpp | calls, imports, inherits |
316
- | HTML | .html, .htm | structural parsing |
317
- | CSS | .css | structural parsing |
316
+ | Bash | .sh, .bash | functions, commands, `source`/`.` imports |
317
+ | Markdown | .md, .mdx, .markdown | headings |
318
+ | HTML | .html, .htm | file-FTS only (no AST symbols) |
319
+ | CSS | .css | file-FTS only (no AST symbols) |
320
+ | JSON | .json | file-FTS only (no AST symbols) |
318
321
 
319
322
  ## Team-shared graph snapshot
320
323
 
@@ -333,8 +336,32 @@ Skip the full local index for team members and CI runners by publishing a
333
336
  npx code-graph-mcp snapshot inspect ./code-graph-snapshot-<sha>.db.zst
334
337
  ```
335
338
 
336
- After setup, fresh clones automatically fetch the latest snapshot the
337
- first time the MCP server starts. No client-side configuration needed.
339
+ After setup, the auto-fetch is **opt-in per consumer**: an untrusted repo could
340
+ otherwise seed a misleading graph, so an unconfigured clone prints a hint and
341
+ skips the install. Enable it with one of the trust signals below. These live in
342
+ the *environment* (never in `.code-graph.toml`) so a committed/PR-injected config
343
+ file cannot set them.
344
+
345
+ | Environment variable | Effect |
346
+ |----------------------|--------|
347
+ | `CODE_GRAPH_SNAPSHOT_TRUST_ORIGIN=1` | Trust the auto-detected GitHub-release snapshot for this repo's `origin` remote, allowing auto-install. |
348
+ | `CODE_GRAPH_SNAPSHOT_PIN=<blake3 hex>` | Pin the expected artifact digest (64-char blake3 hex). When set it is the **sole** integrity authority — the download must match it, no network sidecar is consulted — and it also implicitly trusts the origin path. |
349
+ | `CODE_GRAPH_SNAPSHOT_TRUST_URL=1` | Honor a `.code-graph.toml [snapshot] url` override (an arbitrary, non-origin URL). Off by default because a committed URL could redirect the graph to an attacker-chosen database. |
350
+
351
+ Integrity **fail-closes**: with no pin set and no fetchable `<url>.blake3` sidecar,
352
+ install is refused rather than accepting unverified content. Set a pin, or have
353
+ the publisher serve the `.blake3` sidecar alongside the snapshot. (`file://`
354
+ sources, used in tests, are exempt.)
355
+
356
+ ## Offline / air-gapped usage
357
+
358
+ The optional embedding model (needed for vector semantic search) is downloaded
359
+ lazily on first use. To control that in a restricted environment:
360
+
361
+ | Environment variable | Effect |
362
+ |----------------------|--------|
363
+ | `CODE_GRAPH_MODEL_DIR=<dir>` | Load `model.safetensors` from `<dir>` instead of downloading (highest-priority lookup). If the file isn't there, it warns and falls back to the normal search paths. |
364
+ | `CODE_GRAPH_DISABLE_MODEL_DOWNLOAD=1` | Disable the automatic background model download. An already-cached model is still loaded and used; the server otherwise stays in FTS5-only mode. |
338
365
 
339
366
  ## Storage
340
367
 
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "sdsrs"
6
6
  },
7
- "version": "0.96.0",
7
+ "version": "0.97.1",
8
8
  "keywords": [
9
9
  "code-graph",
10
10
  "ast",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
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": {
@@ -36,10 +36,10 @@
36
36
  "node": ">=16"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@sdsrs/code-graph-linux-x64": "0.96.0",
40
- "@sdsrs/code-graph-linux-arm64": "0.96.0",
41
- "@sdsrs/code-graph-darwin-x64": "0.96.0",
42
- "@sdsrs/code-graph-darwin-arm64": "0.96.0",
43
- "@sdsrs/code-graph-win32-x64": "0.96.0"
39
+ "@sdsrs/code-graph-linux-x64": "0.97.1",
40
+ "@sdsrs/code-graph-linux-arm64": "0.97.1",
41
+ "@sdsrs/code-graph-darwin-x64": "0.97.1",
42
+ "@sdsrs/code-graph-darwin-arm64": "0.97.1",
43
+ "@sdsrs/code-graph-win32-x64": "0.97.1"
44
44
  }
45
45
  }