@sdsrs/code-graph 0.100.2 → 0.101.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.
|
@@ -499,14 +499,28 @@ function runSessionInit({ source } = {}) {
|
|
|
499
499
|
return { inactive: true, lifecycle: 'noop', autoUpdateLaunched: false, teardown };
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
+
// Global-config self-heal runs BEFORE the non-project gate: settings.json is
|
|
503
|
+
// user-global and install() only writes claudeHome paths (idempotent, noop in
|
|
504
|
+
// steady state — a handful of JSON reads). Previously this sat behind the
|
|
505
|
+
// gate, so a missing/stale hook entry never healed while sessions started in
|
|
506
|
+
// marker-less cwds (e.g. the claude-mem-lite headless /tmp fleet) — the
|
|
507
|
+
// structural residue of the daagu weeks-dark bash-guard incident
|
|
508
|
+
// (project_cross_project_interference).
|
|
509
|
+
const lifecycle = syncLifecycleConfig();
|
|
510
|
+
// v0.49.1: a stale relic (see isStaleRelicContext) must not write ANY
|
|
511
|
+
// versioned state — that includes the adoption template: maybeAutoAdopt's
|
|
512
|
+
// drift-refresh would "refresh" MEMORY.md back to the relic's OLD shipped
|
|
513
|
+
// template, the adoption-surface twin of the settings.json downgrade war.
|
|
514
|
+
const isRelic = lifecycle === 'deferred-to-active-install';
|
|
515
|
+
|
|
502
516
|
// Non-project cwd (no .git/manifest — e.g. /tmp, where claude-mem-lite
|
|
503
|
-
// spawns headless `claude -p` calls that never use code-graph):
|
|
504
|
-
// Returns BEFORE
|
|
505
|
-
//
|
|
506
|
-
//
|
|
507
|
-
// launcher applies the same gate — see project-detect.js.
|
|
517
|
+
// spawns headless `claude -p` calls that never use code-graph): otherwise
|
|
518
|
+
// no-op. Returns BEFORE verifyBinary / ensureIndexFresh / maybeAutoAdopt /
|
|
519
|
+
// injectProjectMap so the plugin leaves zero PROJECT footprint (no
|
|
520
|
+
// incremental-index spawn, no map injection, no adoption, no .code-graph).
|
|
521
|
+
// The MCP launcher applies the same gate — see project-detect.js.
|
|
508
522
|
if (isNonProjectCwd(process.cwd())) {
|
|
509
|
-
return { inactive: false, nonProject: true, lifecycle
|
|
523
|
+
return { inactive: false, nonProject: true, lifecycle, autoUpdateLaunched: false };
|
|
510
524
|
}
|
|
511
525
|
|
|
512
526
|
const conflict = checkScopeConflict();
|
|
@@ -517,13 +531,6 @@ function runSessionInit({ source } = {}) {
|
|
|
517
531
|
);
|
|
518
532
|
}
|
|
519
533
|
|
|
520
|
-
const lifecycle = syncLifecycleConfig();
|
|
521
|
-
// v0.49.1: a stale relic (see isStaleRelicContext) must not write ANY
|
|
522
|
-
// versioned state — that includes the adoption template: maybeAutoAdopt's
|
|
523
|
-
// drift-refresh would "refresh" MEMORY.md back to the relic's OLD shipped
|
|
524
|
-
// template, the adoption-surface twin of the settings.json downgrade war.
|
|
525
|
-
const isRelic = lifecycle === 'deferred-to-active-install';
|
|
526
|
-
|
|
527
534
|
// Verify binary availability — catch issues early with actionable diagnostics
|
|
528
535
|
const binaryCheck = verifyBinary();
|
|
529
536
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.101.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": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"node": ">=16"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@sdsrs/code-graph-linux-x64": "0.
|
|
40
|
-
"@sdsrs/code-graph-linux-arm64": "0.
|
|
41
|
-
"@sdsrs/code-graph-darwin-x64": "0.
|
|
42
|
-
"@sdsrs/code-graph-darwin-arm64": "0.
|
|
43
|
-
"@sdsrs/code-graph-win32-x64": "0.
|
|
39
|
+
"@sdsrs/code-graph-linux-x64": "0.101.0",
|
|
40
|
+
"@sdsrs/code-graph-linux-arm64": "0.101.0",
|
|
41
|
+
"@sdsrs/code-graph-darwin-x64": "0.101.0",
|
|
42
|
+
"@sdsrs/code-graph-darwin-arm64": "0.101.0",
|
|
43
|
+
"@sdsrs/code-graph-win32-x64": "0.101.0"
|
|
44
44
|
}
|
|
45
45
|
}
|