@emseepea/testing 0.26.0 → 0.26.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/testing",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "description": "MCP integration and semantic testing helpers",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -57,10 +57,10 @@
57
57
  "test:llm:built": "emseepea-test eval"
58
58
  },
59
59
  "dependencies": {
60
- "@emseepea/server": "0.23.1",
61
- "@modelcontextprotocol/client": "2.2.0",
62
- "@modelcontextprotocol/server": "2.0.0",
63
- "@modelcontextprotocol/core": "2.0.0"
60
+ "@emseepea/server": "0.24.1",
61
+ "@modelcontextprotocol/client": "2.3.1",
62
+ "@modelcontextprotocol/server": "2.3.1",
63
+ "@modelcontextprotocol/core": "2.3.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "playwright": "1.62.1"
@@ -173,9 +173,11 @@ export function parseNativeClaudeEvents(stdout, advertisedTools, requireInit = f
173
173
  };
174
174
  });
175
175
  if (hasAuthenticationFailure(events)) throw new Error("Model command is not signed in");
176
- if (result?.is_error || typeof result?.result !== "string") {
177
- throw new Error("Model command returned no answer");
176
+ if (!result) throw new Error("Model command omitted its result event");
177
+ if (result.is_error) {
178
+ throw new Error(providerErrorMessages.get(result.subtype) ?? "Model command reported an error");
178
179
  }
180
+ if (typeof result.result !== "string") throw new Error("Model command returned a non-text answer");
179
181
  if ((result.permission_denials?.length ?? 0) > 0) {
180
182
  throw new Error("Model command attempted a forbidden action");
181
183
  }