@levnikolaevich/hex-line-mcp 1.30.0 → 1.30.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 +4 -3
  2. package/package.json +1 -1
package/dist/server.mjs CHANGED
@@ -5090,14 +5090,15 @@ function classifyMcpFailure(input = {}) {
5090
5090
 
5091
5091
  // ../hex-common/src/runtime/results.mjs
5092
5092
  var LARGE_RESULT_META = { "anthropic/maxResultSizeChars": 5e5 };
5093
- function result(structured, { large = false } = {}) {
5093
+ function result(structured, { large = false, isError = null, errorStatuses = ["ERROR"] } = {}) {
5094
5094
  const text = JSON.stringify(structured);
5095
5095
  const response = {
5096
5096
  content: [{ type: "text", text }],
5097
5097
  structuredContent: structured
5098
5098
  };
5099
5099
  if (large) response._meta = LARGE_RESULT_META;
5100
- if (structured.status === "ERROR") response.isError = true;
5100
+ const resolvedError = isError === null ? new Set(errorStatuses).has(structured?.status) : isError;
5101
+ if (resolvedError) response.isError = true;
5101
5102
  return response;
5102
5103
  }
5103
5104
  function errorResult(code, message, recovery, { large = false, extra = null } = {}) {
@@ -5129,7 +5130,7 @@ function errorResult(code, message, recovery, { large = false, extra = null } =
5129
5130
  }
5130
5131
 
5131
5132
  // server.mjs
5132
- var version = true ? "1.30.0" : (await null).createRequire(import.meta.url)("./package.json").version;
5133
+ var version = true ? "1.30.1" : (await null).createRequire(import.meta.url)("./package.json").version;
5133
5134
  var STATUS_ENUM = z2.enum(STATUS_VALUES);
5134
5135
  var ERROR_SHAPE = z2.object({ code: z2.string(), message: z2.string(), recovery: z2.string() }).optional();
5135
5136
  var ERROR_RESULT_FIELDS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levnikolaevich/hex-line-mcp",
3
- "version": "1.30.0",
3
+ "version": "1.30.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.",