@sdsrs/code-graph 0.171.0 → 0.171.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
|
@@ -556,6 +556,7 @@ defaults are what you get by doing nothing.
|
|
|
556
556
|
| `CODE_GRAPH_NO_INJECT=1` | No post-tool AST context injection. |
|
|
557
557
|
| `CODE_GRAPH_STATUSLINE_COUNTS=0` | Drop the session counts (`5 answers · 2 calls`) from the statusline. |
|
|
558
558
|
| `CODE_GRAPH_HOOK_INDEX=on\|off` | Turn the per-edit incremental-index hook on (it is off by default; the MCP server's watcher re-indexes edits at its next query tool call) or keep it off. |
|
|
559
|
+
| `CODE_GRAPH_YIELD_TO_SERVER=1` | Set by SessionStart on its background refresh: `incremental-index` indexes nothing (exit 0) while another process holds `.code-graph/index.lock` — an MCP server, which keeps the index fresh itself, or a `rebuild-index`. |
|
|
559
560
|
| `CODE_GRAPH_MODEL_DIR=<dir>` | Load the embedding model from here (air-gapped installs). |
|
|
560
561
|
| `CODE_GRAPH_DISABLE_MODEL_DOWNLOAD=1` | Never fetch the model; fail instead. |
|
|
561
562
|
| `CODE_GRAPH_REQUIRE_MODEL=1` | Test-only: make the embedding tests FAIL when no model can be loaded instead of self-skipping. Set by the release gate and the cache-warm cron, which supply pinned weights — without it those tests pass by doing nothing on any runner with no cached model. |
|
|
@@ -393,11 +393,21 @@ function ensureIndexFresh(deps = {}) {
|
|
|
393
393
|
// it raced its writes and failed it: django, the server first and this hook
|
|
394
394
|
// 50 ms later, 3 of 3, and the server's watcher never started (E2E
|
|
395
395
|
// 2026-10-16 round 4).
|
|
396
|
+
//
|
|
397
|
+
// A server that starts after this look is covered by the binary instead
|
|
398
|
+
// (D#406): asked to yield, the run takes the build lock and then does nothing
|
|
399
|
+
// if a server holds index.lock; a server that starts later waits for its
|
|
400
|
+
// build lock. An older binary ignores the variable and refreshes as before.
|
|
401
|
+
// --no-embed: the run holds that lock through its embedding too, and a
|
|
402
|
+
// server starting meanwhile would answer every tool call with "indexing in
|
|
403
|
+
// progress" until the vectors were done (pre-tag review); the server embeds
|
|
404
|
+
// the new nodes itself, as it does after the per-edit hook's runs.
|
|
396
405
|
if (!require('./project-root').indexBuildInProgress(cwd)) {
|
|
397
|
-
const child = spawnRefresh(bin, ['incremental-index', '--quiet'], hidden({
|
|
406
|
+
const child = spawnRefresh(bin, ['incremental-index', '--quiet', '--no-embed'], hidden({
|
|
398
407
|
cwd,
|
|
399
408
|
detached: true,
|
|
400
409
|
stdio: 'ignore',
|
|
410
|
+
env: { ...process.env, CODE_GRAPH_YIELD_TO_SERVER: '1' },
|
|
401
411
|
}));
|
|
402
412
|
if (child && typeof child.unref === 'function') child.unref();
|
|
403
413
|
}
|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
# refuses a snapshot that has no checksum sidecar.
|
|
42
42
|
- name: Build snapshot
|
|
43
43
|
run: |
|
|
44
|
-
npx -y -p @sdsrs/code-graph@0.171.
|
|
44
|
+
npx -y -p @sdsrs/code-graph@0.171.1 code-graph-mcp snapshot create --out "code-graph-snapshot-${GITHUB_SHA:0:7}.db.zst"
|
|
45
45
|
- name: Upload to release
|
|
46
46
|
env:
|
|
47
47
|
GH_TOKEN: ${{ github.token }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.171.
|
|
3
|
+
"version": "0.171.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": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"node": ">=16"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@sdsrs/code-graph-linux-x64": "0.171.
|
|
39
|
-
"@sdsrs/code-graph-linux-arm64": "0.171.
|
|
40
|
-
"@sdsrs/code-graph-darwin-x64": "0.171.
|
|
41
|
-
"@sdsrs/code-graph-darwin-arm64": "0.171.
|
|
42
|
-
"@sdsrs/code-graph-win32-x64": "0.171.
|
|
38
|
+
"@sdsrs/code-graph-linux-x64": "0.171.1",
|
|
39
|
+
"@sdsrs/code-graph-linux-arm64": "0.171.1",
|
|
40
|
+
"@sdsrs/code-graph-darwin-x64": "0.171.1",
|
|
41
|
+
"@sdsrs/code-graph-darwin-arm64": "0.171.1",
|
|
42
|
+
"@sdsrs/code-graph-win32-x64": "0.171.1"
|
|
43
43
|
}
|
|
44
44
|
}
|