@sdsrs/code-graph 0.114.1 → 0.115.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
@@ -417,9 +417,10 @@ a manual install must be redone on each version bump.
417
417
 
418
418
  ### Diagnosing a model that never downloads
419
419
 
420
- `code-graph-mcp doctor` reports the last download outcome, distinguishing
421
- "no download has been attempted" from "download FAILED after N attempt(s): …"
422
- with the underlying error. The raw record is
420
+ `code-graph-mcp doctor` reports the model state, distinguishing "model files
421
+ present but not loaded" (weights on disk e.g. installed by the npm plugin
422
+ just no MCP server session yet) from "no download has been attempted" and from
423
+ "download FAILED after N attempt(s): …" with the underlying error. The raw record is
423
424
  `<platform cache>/code-graph/model-download.json`. On a network that performs
424
425
  TLS inspection, the download retries automatically against the OS certificate
425
426
  store after the bundled roots are rejected.
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "sdsrs"
6
6
  },
7
- "version": "0.114.1",
7
+ "version": "0.115.0",
8
8
  "keywords": [
9
9
  "code-graph",
10
10
  "ast",
@@ -41,10 +41,16 @@ function classifyEmbeddings(hc) {
41
41
  // so a machine whose download can never succeed read as "be patient"
42
42
  // forever instead of "this is broken". Absent field = never attempted,
43
43
  // which is itself a distinct diagnosis, not a reason to advise waiting.
44
+ // EXCEPT when the weights are already on disk (`model_files_present`,
45
+ // health-check --json ≥0.115): the npm plugin installs them without the
46
+ // marker, so "never attempted" would contradict the filesystem — the only
47
+ // missing step then is a server session to load them.
44
48
  const why = (hc && hc.embedding_status === 'pending')
45
- ? (hc.model_download
46
- ? `last model download: ${hc.model_download}`
47
- : 'model not loaded and NO download has ever been attempted on this machine — restart the MCP server, or set CODE_GRAPH_MODEL_DIR to a manually populated model dir (see README → Offline usage)')
49
+ ? (hc.model_files_present
50
+ ? 'model files present but not loaded — restart the MCP server (embeddings backfill there)'
51
+ : hc.model_download
52
+ ? `last model download: ${hc.model_download}`
53
+ : 'model not loaded and NO download has ever been attempted on this machine — restart the MCP server, or set CODE_GRAPH_MODEL_DIR to a manually populated model dir (see README → Offline usage)')
48
54
  : `embedding_status=${(hc && hc.embedding_status) || 'unknown'}`;
49
55
  return { name: 'Embeddings', status: 'warn',
50
56
  detail: `vector INACTIVE — ${total} embeddable nodes, 0 embedded; semantic search is FTS5-only (${why})` };
@@ -30,7 +30,7 @@ jobs:
30
30
  node-version: '20'
31
31
  - name: Build snapshot
32
32
  run: |
33
- npx -y -p @sdsrs/code-graph@0.114.1 code-graph-mcp snapshot create --out snapshot.db
33
+ npx -y -p @sdsrs/code-graph@0.115.0 code-graph-mcp snapshot create --out snapshot.db
34
34
  zstd -9 snapshot.db -o snapshot.db.zst
35
35
  mv snapshot.db.zst "code-graph-snapshot-${GITHUB_SHA:0:7}.db.zst"
36
36
  - name: Upload to release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.114.1",
3
+ "version": "0.115.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.114.1",
39
- "@sdsrs/code-graph-linux-arm64": "0.114.1",
40
- "@sdsrs/code-graph-darwin-x64": "0.114.1",
41
- "@sdsrs/code-graph-darwin-arm64": "0.114.1",
42
- "@sdsrs/code-graph-win32-x64": "0.114.1"
38
+ "@sdsrs/code-graph-linux-x64": "0.115.0",
39
+ "@sdsrs/code-graph-linux-arm64": "0.115.0",
40
+ "@sdsrs/code-graph-darwin-x64": "0.115.0",
41
+ "@sdsrs/code-graph-darwin-arm64": "0.115.0",
42
+ "@sdsrs/code-graph-win32-x64": "0.115.0"
43
43
  }
44
44
  }