@levnikolaevich/hex-line-mcp 1.24.0 → 1.24.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/dist/server.mjs +7 -5
  2. package/package.json +1 -1
package/dist/server.mjs CHANGED
@@ -439,9 +439,11 @@ function diagnoseGraph(filePath) {
439
439
  return { reason: "driver_missing" };
440
440
  }
441
441
  }
442
- function diagnoseGraphForProject(projectRoot) {
442
+ function diagnoseGraphForProject(directoryPath) {
443
443
  if (_driverUnavailable) return { reason: "driver_missing" };
444
444
  try {
445
+ if (!directoryPath) return { reason: "no_project_root" };
446
+ const projectRoot = findProjectRoot(join3(directoryPath, "__hex-line_probe__"));
445
447
  if (!projectRoot) return { reason: "no_project_root" };
446
448
  const dbPath = join3(projectRoot, ".hex-skills/codegraph", "index.db");
447
449
  if (!existsSync2(dbPath)) return { reason: "index_missing", projectRoot };
@@ -462,9 +464,9 @@ function diagnoseGraphForProject(projectRoot) {
462
464
  return { reason: "driver_missing" };
463
465
  }
464
466
  }
465
- function getGraphDBForProject(projectRoot) {
466
- const { reason } = diagnoseGraphForProject(projectRoot);
467
- if (reason !== "ok") return null;
467
+ function getGraphDBForProject(directoryPath) {
468
+ const { reason, projectRoot } = diagnoseGraphForProject(directoryPath);
469
+ if (reason !== "ok" || !projectRoot) return null;
468
470
  const dbPath = join3(projectRoot, ".hex-skills/codegraph", "index.db");
469
471
  return _dbs.get(dbPath) || null;
470
472
  }
@@ -4864,7 +4866,7 @@ function errorResult(code, message, recovery, { large = false, extra = null } =
4864
4866
  }
4865
4867
 
4866
4868
  // server.mjs
4867
- var version = true ? "1.24.0" : (await null).createRequire(import.meta.url)("./package.json").version;
4869
+ var version = true ? "1.24.1" : (await null).createRequire(import.meta.url)("./package.json").version;
4868
4870
  var STATUS_ENUM = z2.enum(["OK", "ERROR", "AUTO_REBASED", "CONFLICT", "STALE", "INVALID", "NO_CHANGES", "CHANGED", "UNSUPPORTED"]);
4869
4871
  var ERROR_SHAPE = z2.object({ code: z2.string(), message: z2.string(), recovery: z2.string() }).optional();
4870
4872
  var LINE_REPORT_KEYS = /* @__PURE__ */ new Set([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levnikolaevich/hex-line-mcp",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "mcpName": "io.github.levnikolaevich/hex-line-mcp",
5
5
  "type": "module",
6
6
  "description": "Hash-verified file editing MCP + token efficiency hook for AI coding agents. 9 tools: inspect_path, read, edit, write, grep, outline, verify, changes, bulk_replace.",