grepmax 0.6.4 → 0.6.5

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.
@@ -136,7 +136,7 @@ child.unref();
136
136
  `;
137
137
  const stopScript = `
138
138
  const { spawnSync, execSync } = require("child_process");
139
- try { execSync("pkill -f 'gmax serve'"); } catch {}
139
+ try { execSync("gmax serve stop", { stdio: "ignore" }); } catch {}
140
140
  `;
141
141
  writeFileIfChanged(startJsPath, startScript.trim());
142
142
  writeFileIfChanged(stopJsPath, stopScript.trim());
@@ -705,6 +705,6 @@ exports.mcp = new commander_1.Command("mcp")
705
705
  }));
706
706
  yield server.connect(transport);
707
707
  // Kick off index readiness check and watcher in background
708
- ensureIndexReady();
708
+ ensureIndexReady().catch((e) => console.error("[MCP] Index readiness check failed:", e));
709
709
  ensureWatcher();
710
710
  }));
@@ -65,7 +65,7 @@ exports.setup = new commander_1.Command("setup")
65
65
  catch (error) {
66
66
  p.cancel("Setup failed");
67
67
  console.error(error);
68
- process.exit(1);
68
+ yield (0, exit_1.gracefulExit)(1);
69
69
  }
70
70
  // Download grammars
71
71
  const grammarSpinner = p.spinner();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "author": "Robert Owens <robowens@me.com>",
5
5
  "homepage": "https://github.com/reowens/grepmax",
6
6
  "bugs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
5
5
  "author": {
6
6
  "name": "Robert Owens",