project-brain 0.10.0 → 0.10.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.
Files changed (2) hide show
  1. package/bin/project-brain +11 -1
  2. package/package.json +6 -6
package/bin/project-brain CHANGED
@@ -30,4 +30,14 @@ try {
30
30
  }
31
31
 
32
32
  const ext = process.platform === "win32" ? ".exe" : "";
33
- execFileSync(join(pkgDir, "bin", `project-brain-native${ext}`), process.argv.slice(2), { stdio: "inherit" });
33
+ // execFileSync throws whenever the child exits non-zero — a legitimate,
34
+ // expected outcome now that sync/reindex exit 1 on partial embed failure.
35
+ // Propagate the child's exit code/signal quietly instead of letting Node
36
+ // print a stack trace that buries the child's own error message.
37
+ try {
38
+ execFileSync(join(pkgDir, "bin", `project-brain-native${ext}`), process.argv.slice(2), { stdio: "inherit" });
39
+ } catch (err) {
40
+ if (err && typeof err.status === "number") process.exit(err.status);
41
+ if (err && err.signal) process.exit(1);
42
+ throw err; // genuine spawn failure (ENOENT, EACCES) — keep the diagnostic
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-brain",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "description": "Local-first MCP server that gives AI tools semantic memory of your codebase.",
6
6
  "author": "jcsoftdev",
@@ -43,11 +43,11 @@
43
43
  "zod": "^4.4.3"
44
44
  },
45
45
  "optionalDependencies": {
46
- "project-brain-darwin-arm64": "0.10.0",
47
- "project-brain-linux-x64": "0.10.0",
48
- "project-brain-linux-arm64": "0.10.0",
49
- "project-brain-windows-x64": "0.10.0",
50
- "project-brain-windows-arm64": "0.10.0"
46
+ "project-brain-darwin-arm64": "0.10.1",
47
+ "project-brain-linux-x64": "0.10.1",
48
+ "project-brain-linux-arm64": "0.10.1",
49
+ "project-brain-windows-x64": "0.10.1",
50
+ "project-brain-windows-arm64": "0.10.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/bun": "latest",