basemind 0.0.1 → 0.1.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/bin/basemind.js +24 -0
- package/package.json +5 -6
package/bin/basemind.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawnSync } = require("node:child_process");
|
|
3
|
+
const path = require("node:path");
|
|
4
|
+
const os = require("node:os");
|
|
5
|
+
const fs = require("node:fs");
|
|
6
|
+
|
|
7
|
+
const binaryName = os.type() === "Windows_NT" ? "basemind.exe" : "basemind";
|
|
8
|
+
const binaryPath = path.join(__dirname, binaryName);
|
|
9
|
+
|
|
10
|
+
if (!fs.existsSync(binaryPath)) {
|
|
11
|
+
console.error(
|
|
12
|
+
`basemind: native binary not found at ${binaryPath}.\n` +
|
|
13
|
+
`The postinstall step that downloads the binary from GitHub releases may have failed.\n` +
|
|
14
|
+
`Reinstall with: npm install -g basemind`,
|
|
15
|
+
);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const result = spawnSync(binaryPath, process.argv.slice(2), { stdio: "inherit" });
|
|
20
|
+
if (result.error) {
|
|
21
|
+
console.error(`basemind: failed to spawn binary: ${result.error.message}`);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
process.exit(result.status ?? 0);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basemind",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Tree-sitter code-map + git context MCP server. Use for navigating large or unfamiliar codebases: outline files, find references/callers, search symbols, walk recent history, blame and diff at the symbol level.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"basemind": "bin/basemind"
|
|
7
|
+
"basemind": "bin/basemind.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"postinstall": "node install.js"
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
"tree-sitter",
|
|
15
15
|
"code-map",
|
|
16
16
|
"scanner",
|
|
17
|
-
"indexer"
|
|
18
|
-
"basemind"
|
|
17
|
+
"indexer"
|
|
19
18
|
],
|
|
20
19
|
"author": "Na'aman Hirschfeld",
|
|
21
20
|
"license": "MIT",
|
|
22
21
|
"repository": {
|
|
23
22
|
"type": "git",
|
|
24
|
-
"url": "https://github.com/Goldziher/basemind.git"
|
|
23
|
+
"url": "git+https://github.com/Goldziher/basemind.git"
|
|
25
24
|
},
|
|
26
25
|
"homepage": "https://github.com/Goldziher/basemind#readme",
|
|
27
26
|
"bugs": {
|