@emseepea/testing 0.24.0 → 0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emseepea/testing",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "MCP integration and semantic testing helpers",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "test:llm:built": "emseepea-test eval"
58
58
  },
59
59
  "dependencies": {
60
- "@emseepea/server": "0.23.0",
60
+ "@emseepea/server": "0.23.1",
61
61
  "@modelcontextprotocol/client": "2.2.0"
62
62
  },
63
63
  "devDependencies": {
package/semantic/cli.mjs CHANGED
@@ -5,7 +5,7 @@ import { tmpdir } from "node:os";
5
5
  import { dirname, join, relative, resolve } from "node:path";
6
6
  import { validRecord } from "./evidence.mjs";
7
7
  import { discoverTests } from "./discover.mjs";
8
- import { modelVersion, providerModel, providerSettings } from "./provider.mjs";
8
+ import { mcpClientVersion, modelVersion, providerModel, providerSettings } from "./provider.mjs";
9
9
 
10
10
  const paths = [];
11
11
  let provider = process.env.EMSEEPEA_EVAL_PROVIDER ?? "claude-local";
@@ -32,10 +32,9 @@ const evidence = { authoritative: provider === "claude-ci", provider, smoke,
32
32
  status: "failed", cases: {}, errors: [], startedAt: new Date().toISOString() };
33
33
  try {
34
34
  const client = JSON.parse(await readFile(new URL("../package.json", import.meta.resolve("@modelcontextprotocol/client")), "utf8"));
35
- if (client.name !== "@modelcontextprotocol/client" || client.version !== "2.2.0") throw new Error("Unexpected MCP client version");
35
+ const clientVersion = mcpClientVersion(client);
36
36
  const cliName = provider.startsWith("codex-") ? "codexCli" : "claudeCli";
37
- evidence.dependencies = { mcpClient: client.version, [cliName]: smoke ? "simulated" : await modelVersion(provider) };
38
- if (provider === "claude-ci" && evidence.dependencies.claudeCli !== "2.1.248") throw new Error("Unexpected Claude CLI version");
37
+ evidence.dependencies = { mcpClient: clientVersion, [cliName]: smoke ? "simulated" : await modelVersion(provider) };
39
38
  let interrupted = false;
40
39
  for (const file of files) {
41
40
  const displayFile = relative(process.cwd(), file);
@@ -4,6 +4,13 @@ import { existsSync, mkdirSync, readFileSync, symlinkSync, writeFileSync } from
4
4
  import { join } from "node:path";
5
5
  import { scriptedElicitations } from "./elicitation.mjs";
6
6
 
7
+ export function mcpClientVersion(client) {
8
+ if (client?.name !== "@modelcontextprotocol/client" || typeof client.version !== "string" || !client.version.trim()) {
9
+ throw new Error("Invalid MCP client provenance");
10
+ }
11
+ return client.version;
12
+ }
13
+
7
14
  const claudeModel = "claude-sonnet-4-6";
8
15
  const mcpServerName = "emseepea_eval";
9
16
  const codexEmptyDiscoveryTools = new Map([