@sdsrs/code-graph 0.114.1 → 0.116.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
|
|
421
|
-
"
|
|
422
|
-
|
|
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.
|
|
@@ -41,10 +41,29 @@ 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.
|
|
48
|
+
//
|
|
49
|
+
// `model_files_state` (≥0.116) splits that bool, because "on disk" did not
|
|
50
|
+
// imply "will be used": weights hand-placed in the platform CACHE dir carry
|
|
51
|
+
// no current `.model-id`, so the server re-downloads instead of adopting
|
|
52
|
+
// them, and "restart the MCP server" was advice that could not work for the
|
|
53
|
+
// offline user most likely to have hand-placed them. Older binaries omit the
|
|
54
|
+
// field; there `present` keeps its previous meaning.
|
|
55
|
+
const filesReady = hc && (hc.model_files_state
|
|
56
|
+
? hc.model_files_state === 'ready'
|
|
57
|
+
: !!hc.model_files_present);
|
|
58
|
+
const filesUnverified = !!(hc && hc.model_files_state === 'unverified');
|
|
44
59
|
const why = (hc && hc.embedding_status === 'pending')
|
|
45
|
-
? (
|
|
46
|
-
?
|
|
47
|
-
:
|
|
60
|
+
? (filesReady
|
|
61
|
+
? 'model files present but not loaded — restart the MCP server (embeddings backfill there)'
|
|
62
|
+
: filesUnverified
|
|
63
|
+
? 'model files are in the cache dir but are not this build\'s pinned weights — the server re-downloads on next start (needs network); for offline use point CODE_GRAPH_MODEL_DIR at them instead (see README → Offline usage)'
|
|
64
|
+
: hc.model_download
|
|
65
|
+
? `last model download: ${hc.model_download}`
|
|
66
|
+
: '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
67
|
: `embedding_status=${(hc && hc.embedding_status) || 'unknown'}`;
|
|
49
68
|
return { name: 'Embeddings', status: 'warn',
|
|
50
69
|
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.
|
|
33
|
+
npx -y -p @sdsrs/code-graph@0.116.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.
|
|
3
|
+
"version": "0.116.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.116.0",
|
|
39
|
+
"@sdsrs/code-graph-linux-arm64": "0.116.0",
|
|
40
|
+
"@sdsrs/code-graph-darwin-x64": "0.116.0",
|
|
41
|
+
"@sdsrs/code-graph-darwin-arm64": "0.116.0",
|
|
42
|
+
"@sdsrs/code-graph-win32-x64": "0.116.0"
|
|
43
43
|
}
|
|
44
44
|
}
|