@sdsrs/code-graph 0.115.0 → 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.
|
@@ -45,12 +45,25 @@ function classifyEmbeddings(hc) {
|
|
|
45
45
|
// health-check --json ≥0.115): the npm plugin installs them without the
|
|
46
46
|
// marker, so "never attempted" would contradict the filesystem — the only
|
|
47
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');
|
|
48
59
|
const why = (hc && hc.embedding_status === 'pending')
|
|
49
|
-
? (
|
|
60
|
+
? (filesReady
|
|
50
61
|
? 'model files present but not loaded — restart the MCP server (embeddings backfill there)'
|
|
51
|
-
:
|
|
52
|
-
?
|
|
53
|
-
:
|
|
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)')
|
|
54
67
|
: `embedding_status=${(hc && hc.embedding_status) || 'unknown'}`;
|
|
55
68
|
return { name: 'Embeddings', status: 'warn',
|
|
56
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
|
}
|