@sdsrs/code-graph 0.60.0 → 0.62.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/bin/cli.js
CHANGED
|
@@ -12,6 +12,24 @@ process.env._FIND_BINARY_ROOT = path.resolve(__dirname, "..");
|
|
|
12
12
|
// Lets `code-graph-mcp adopt` / `unadopt` work uniformly across plugin / npm / npx.
|
|
13
13
|
const sub = process.argv[2];
|
|
14
14
|
if (sub === "adopt" || sub === "unadopt") {
|
|
15
|
+
// `--help`/`-h` must be side-effect-free: adopt() writes the memory file +
|
|
16
|
+
// MEMORY.md sentinel, unadopt() removes them. The Rust binary guards this for
|
|
17
|
+
// direct invocation, but npm/npx routes through this wrapper, which intercepts
|
|
18
|
+
// adopt/unadopt *before* the binary — so the guard must be repeated here, or
|
|
19
|
+
// `code-graph-mcp adopt --help` rewrites MEMORY.md (the common new-user path).
|
|
20
|
+
if (process.argv.slice(3).some((a) => a === "--help" || a === "-h")) {
|
|
21
|
+
process.stdout.write(sub === "adopt"
|
|
22
|
+
? "code-graph-mcp adopt — install the code-graph memory file + MEMORY.md sentinel\n\n" +
|
|
23
|
+
"USAGE:\n code-graph-mcp adopt\n\n" +
|
|
24
|
+
"Writes plugin_code_graph_mcp.md and a sentinel block into this project's\n" +
|
|
25
|
+
"~/.claude memory so Claude Code auto-loads the decision table. Run\n" +
|
|
26
|
+
"`code-graph-mcp unadopt` to remove it.\n"
|
|
27
|
+
: "code-graph-mcp unadopt — remove the code-graph memory file + sentinel\n\n" +
|
|
28
|
+
"USAGE:\n code-graph-mcp unadopt\n\n" +
|
|
29
|
+
"Reverses `code-graph-mcp adopt`: deletes the memory file and the MEMORY.md\n" +
|
|
30
|
+
"sentinel block. User content outside the sentinel is kept.\n");
|
|
31
|
+
process.exit(0);
|
|
32
|
+
}
|
|
15
33
|
const { adopt, unadopt, formatResult } = require("../claude-plugin/scripts/adopt");
|
|
16
34
|
const result = sub === "unadopt" ? unadopt() : adopt();
|
|
17
35
|
process.stdout.write(formatResult(sub, result) + "\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.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.62.0",
|
|
39
|
+
"@sdsrs/code-graph-linux-arm64": "0.62.0",
|
|
40
|
+
"@sdsrs/code-graph-darwin-x64": "0.62.0",
|
|
41
|
+
"@sdsrs/code-graph-darwin-arm64": "0.62.0",
|
|
42
|
+
"@sdsrs/code-graph-win32-x64": "0.62.0"
|
|
43
43
|
}
|
|
44
44
|
}
|