@sdsrs/code-graph 0.104.0 → 0.105.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.
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "sdsrs"
6
6
  },
7
- "version": "0.104.0",
7
+ "version": "0.105.0",
8
8
  "keywords": [
9
9
  "code-graph",
10
10
  "ast",
@@ -557,8 +557,16 @@ function surveyHookCoverage(settings) {
557
557
  if (!pScript) return false;
558
558
  if (!fs.existsSync(pScript)) return true; // dead path
559
559
  const pv = cacheDirVersion(pScript);
560
- const dv = cacheDirVersion(hookCmdScript(desiredCmd[k]));
561
- if (pv && dv) return compareVersions(pv, dv) < 0; // older cache version dir
560
+ if (pv) {
561
+ // Pinned to a plugin-cache version dir: stale iff older than us. Compare
562
+ // against the desired cache dir when we're the cache authority; the
563
+ // global-npm/dev authority's desired path carries no version dir, so
564
+ // fall back to our own plugin version — an old-version cache pin must be
565
+ // healed from EITHER surface, not only when the desired path happens to
566
+ // be cache-shaped. Newer-than-us stays (downgrade-war guard, §1.11).
567
+ const dv = cacheDirVersion(hookCmdScript(desiredCmd[k])) || getPluginVersion();
568
+ return compareVersions(pv, dv) < 0;
569
+ }
562
570
  return false; // in-place/current surface
563
571
  });
564
572
  return { expected, present: [...present], missing, stale };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.104.0",
3
+ "version": "0.105.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": {
@@ -29,17 +29,17 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "build": "cargo build --release --no-default-features && node scripts/copy-binary.js",
32
- "prepare": "git rev-parse --git-dir > /dev/null 2>&1 && ln -sf ../../scripts/pre-commit.sh .git/hooks/pre-commit || true",
32
+ "prepare": "git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath scripts/githooks || true",
33
33
  "preuninstall": "node claude-plugin/scripts/lifecycle.js uninstall || true"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=16"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@sdsrs/code-graph-linux-x64": "0.104.0",
40
- "@sdsrs/code-graph-linux-arm64": "0.104.0",
41
- "@sdsrs/code-graph-darwin-x64": "0.104.0",
42
- "@sdsrs/code-graph-darwin-arm64": "0.104.0",
43
- "@sdsrs/code-graph-win32-x64": "0.104.0"
39
+ "@sdsrs/code-graph-linux-x64": "0.105.0",
40
+ "@sdsrs/code-graph-linux-arm64": "0.105.0",
41
+ "@sdsrs/code-graph-darwin-x64": "0.105.0",
42
+ "@sdsrs/code-graph-darwin-arm64": "0.105.0",
43
+ "@sdsrs/code-graph-win32-x64": "0.105.0"
44
44
  }
45
45
  }