@wrongstack/codebase-index-mcp 1.0.8 → 1.0.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.
package/dist/cli.js CHANGED
@@ -140,6 +140,9 @@ function createContext(projectRoot, indexDir) {
140
140
  }
141
141
  };
142
142
  }
143
+ function isDegradedFailure(content) {
144
+ return !!content && typeof content === "object" && !Array.isArray(content) && content["indexStatus"] === "error";
145
+ }
143
146
  function nonEmptyString(value) {
144
147
  return typeof value === "string" && value.trim().length > 0;
145
148
  }
@@ -196,7 +199,7 @@ function createCodebaseIndexMcpToolHost(projectRoot, opts = {}) {
196
199
  }
197
200
  }
198
201
  const content = await executeTool(builtin, args, context, new AbortController().signal);
199
- return { content, isError: false };
202
+ return { content, isError: isDegradedFailure(content) };
200
203
  }
201
204
  const base = {
202
205
  projectRoot,
package/dist/index.js CHANGED
@@ -125,6 +125,9 @@ function createContext(projectRoot, indexDir) {
125
125
  }
126
126
  };
127
127
  }
128
+ function isDegradedFailure(content) {
129
+ return !!content && typeof content === "object" && !Array.isArray(content) && content["indexStatus"] === "error";
130
+ }
128
131
  function nonEmptyString(value) {
129
132
  return typeof value === "string" && value.trim().length > 0;
130
133
  }
@@ -181,7 +184,7 @@ function createCodebaseIndexMcpToolHost(projectRoot, opts = {}) {
181
184
  }
182
185
  }
183
186
  const content = await executeTool(builtin, args, context, new AbortController().signal);
184
- return { content, isError: false };
187
+ return { content, isError: isDegradedFailure(content) };
185
188
  }
186
189
  const base = {
187
190
  projectRoot,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/codebase-index-mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack Codebase Index as an MCP server, backed by the existing project-scoped IPC daemon.",
6
6
  "repository": {
@@ -31,14 +31,14 @@
31
31
  "!dist/**/*.map"
32
32
  ],
33
33
  "dependencies": {
34
- "@wrongstack/core": "1.0.8",
35
- "@wrongstack/mcp": "1.0.8",
36
- "@wrongstack/tools": "1.0.8"
34
+ "@wrongstack/core": "1.0.10",
35
+ "@wrongstack/mcp": "1.0.10",
36
+ "@wrongstack/tools": "1.0.10"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^26.2.0",
39
+ "@types/node": "^26.5.1",
40
40
  "typescript": "^7.0.2",
41
- "vitest": "^4.1.11"
41
+ "vitest": "^5.0.0"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"