mcp-speechmatics-transcribe 0.1.9 → 0.1.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/README.md CHANGED
@@ -153,7 +153,9 @@ changes create a different cache entry; edits inside an env file take effect on
153
153
  the next refresh or after invalidation.
154
154
 
155
155
  Cache filenames hash the CLI command, arguments, working directory, and complete
156
- effective environment. `CODEX_TOOL_CALL_ID` is excluded from the hash; additional
156
+ effective environment. `CODEX_TOOL_CALL_ID`, `PATH`, and names starting with
157
+ `INIT_` or `NPM_` are excluded from the hash (the PATH and prefix checks are
158
+ case-insensitive); additional
157
159
  names can be listed in `SPEECHMATICS_DISCOVERY_CACHE_KEY_EXCLUDE`. These exclusions
158
160
  never remove variables from the CLI environment. Windows environment names are
159
161
  case-insensitive. Exclude only transient values that do not affect discovery.
@@ -20,7 +20,7 @@ export function discoveryKey(launch, platform = process.platform) {
20
20
  const normalize = (key) => platform === "win32" ? key.toUpperCase() : key;
21
21
  const excluded = new Set(["CODEX_TOOL_CALL_ID", ...(launch.env.SPEECHMATICS_DISCOVERY_CACHE_KEY_EXCLUDE ?? "").split(",").map((key) => key.trim()).filter(Boolean)].map(normalize));
22
22
  const env = Object.entries(launch.env).map(([key, value]) => [normalize(key), value])
23
- .filter(([key]) => !excluded.has(key)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
23
+ .filter(([key]) => !excluded.has(key) && !/^(?:PATH$|INIT_|NPM_)/i.test(key)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
24
24
  return createHash("sha256").update(JSON.stringify({ version: 1, command: launch.command, args: launch.args, cwd: launch.cwd, shell: launch.shell, env })).digest("hex");
25
25
  }
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-speechmatics-transcribe",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Transcribe audio and video files with Speechmatics through a CLI and MCP server.",
5
5
  "type": "module",
6
6
  "license": "MIT",