@softerist/heuristic-mcp 2.1.27 → 2.1.28

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.
@@ -213,7 +213,8 @@ export async function logs() {
213
213
  const { execSync } = await import('child_process');
214
214
  let npmBin = 'unknown';
215
215
  try {
216
- npmBin = execSync('npm bin -g', { encoding: 'utf-8' }).trim();
216
+ const prefix = execSync('npm config get prefix', { encoding: 'utf-8' }).trim();
217
+ npmBin = path.join(prefix, 'bin');
217
218
  } catch {}
218
219
 
219
220
  // Check all known MCP config paths (same as register.js)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softerist/heuristic-mcp",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
4
4
  "description": "An enhanced MCP server providing intelligent semantic code search with find-similar-code, recency ranking, and improved chunking. Fork of smart-coding-mcp.",
5
5
  "type": "module",
6
6
  "main": "index.js",