@softerist/heuristic-mcp 2.1.8 → 2.1.10

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.
@@ -21,12 +21,14 @@ export async function stop() {
21
21
  await execPromise(command);
22
22
  console.log('[Lifecycle] ✅ Stopped all running instances.');
23
23
  } catch (error) {
24
- // pkill returns non-zero if no process found, which is fine
25
- if (error.code === 1 || error.message.includes('No Instance(s) Available')) {
26
- console.log('[Lifecycle] No running instances found.');
24
+ // pkill (Linux/Mac) returns exit code 1 if no process matched.
25
+ // wmic (Windows) might throw specific errors if none found.
26
+ // We treat exit code 1 as "Success, nothing was running".
27
+ if (error.code === 1 || error.code === '1' || error.message.includes('No Instance(s) Available')) {
28
+ console.log('[Lifecycle] No running instances found (already stopped).');
27
29
  } else {
28
30
  // Don't fail hard, just warn
29
- console.warn(`[Lifecycle] Note: Could not stop server (it might not be running). Detail: ${error.message}`);
31
+ console.warn(`[Lifecycle] Warning: Stop command finished with unexpected result: ${error.message}`);
30
32
  }
31
33
  }
32
34
  }
package/index.js CHANGED
@@ -20,6 +20,7 @@ import * as IndexCodebaseFeature from "./features/index-codebase.js";
20
20
  import * as HybridSearchFeature from "./features/hybrid-search.js";
21
21
  import * as ClearCacheFeature from "./features/clear-cache.js";
22
22
  import * as FindSimilarCodeFeature from "./features/find-similar-code.js";
23
+ import * as AnnConfigFeature from "./features/ann-config.js";
23
24
  import { register } from "./features/register.js";
24
25
 
25
26
  // Parse workspace from command line arguments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softerist/heuristic-mcp",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
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",