@sdsrs/code-graph 0.149.0 → 0.150.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.
package/README.md
CHANGED
|
@@ -427,6 +427,7 @@ skill does is also runnable by hand.
|
|
|
427
427
|
- **Rust has no `inherits` edges** — the language has no class inheritance, so `impl Trait for Type` is recorded as `implements` and an `inherits`-filtered query returns empty for Rust.
|
|
428
428
|
- **Kotlin/Swift interface conformance** is recorded as `inherits` (both use a single `: Type` grammar for base classes and protocols/interfaces), so `implements`-filtered queries return empty for these two languages.
|
|
429
429
|
- **Cross-file dead-code detection** may false-positive a type whose only cross-file reference sits beyond the 4096-byte stored-content cap per node (documented accepted limitation, v0.97.1).
|
|
430
|
+
- **Rust: borrowing a binding named `raw`** (`&raw`, `&raw[..]`, `&raw.field`) is misread by the pinned `tree-sitter-rust` 0.23 grammar as the start of the `&raw const` / `&raw mut` pointer operator, so the enclosing expression can be dropped from the index. `&mut raw`, `&self.raw` and the genuine `&raw const x` operator all parse correctly. The index reports the damage rather than hiding it, but only while indexing: a run prints `Syntax errors in <file> — symbols may be incomplete` per file plus an `N file(s) parsed with syntax errors` total. Nothing replays that afterwards — `health-check` and `doctor` both report a degraded index as healthy, so re-run the index to see the list. Workaround: rename the binding. Measured on this repo: 8 of 161 Rust files trip the warning (the total says 9 — a Markdown file trips the same counter for an unrelated reason), and one symbol is lost, `cmd_affected`. Recovery is usually partial rather than total: across a fixture covering every trigger shape, the surrounding functions and their call edges survived.
|
|
430
431
|
|
|
431
432
|
## Team-shared graph snapshot
|
|
432
433
|
|
|
@@ -446,8 +447,13 @@ npx -y -p @sdsrs/code-graph code-graph-mcp snapshot inspect ./code-graph-snapsho
|
|
|
446
447
|
```
|
|
447
448
|
|
|
448
449
|
After setup, the auto-fetch is **opt-in per consumer**: an untrusted repo could
|
|
449
|
-
otherwise seed a misleading graph, so an unconfigured clone
|
|
450
|
-
|
|
450
|
+
otherwise seed a misleading graph, so an unconfigured clone silently skips the
|
|
451
|
+
install — the explanation is logged at `debug` level (`RUST_LOG=debug`) rather
|
|
452
|
+
than warned, because deciding whether this repo even publishes a snapshot would
|
|
453
|
+
require the network call the gate is declining to make, and an unconditional
|
|
454
|
+
warning would fire on every repository. A committed `[snapshot] url` override is
|
|
455
|
+
louder: that one does warn, because the file is already asking for something.
|
|
456
|
+
Enable the auto-fetch with one of the trust signals below. These live in
|
|
451
457
|
the *environment* (never in `.code-graph.toml`) so a committed/PR-injected config
|
|
452
458
|
file cannot set them.
|
|
453
459
|
|
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
node-version: '20'
|
|
36
36
|
- name: Build snapshot
|
|
37
37
|
run: |
|
|
38
|
-
npx -y -p @sdsrs/code-graph@0.
|
|
38
|
+
npx -y -p @sdsrs/code-graph@0.150.0 code-graph-mcp snapshot create --out snapshot.db
|
|
39
39
|
zstd -9 snapshot.db -o snapshot.db.zst
|
|
40
40
|
mv snapshot.db.zst "code-graph-snapshot-${GITHUB_SHA:0:7}.db.zst"
|
|
41
41
|
- name: Upload to release
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.150.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.150.0",
|
|
39
|
+
"@sdsrs/code-graph-linux-arm64": "0.150.0",
|
|
40
|
+
"@sdsrs/code-graph-darwin-x64": "0.150.0",
|
|
41
|
+
"@sdsrs/code-graph-darwin-arm64": "0.150.0",
|
|
42
|
+
"@sdsrs/code-graph-win32-x64": "0.150.0"
|
|
43
43
|
}
|
|
44
44
|
}
|