@wdio/mcp 3.5.0 → 3.5.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/lib/server.js CHANGED
@@ -46,7 +46,7 @@ var package_default = {
46
46
  type: "git",
47
47
  url: "git://github.com/webdriverio/mcp.git"
48
48
  },
49
- version: "3.4.4",
49
+ version: "3.5.0",
50
50
  description: "MCP server with WebdriverIO for browser and mobile app automation (iOS/Android via Appium)",
51
51
  main: "./lib/server.js",
52
52
  module: "./lib/server.js",
@@ -2130,9 +2130,7 @@ init_state();
2130
2130
  import sharp from "sharp";
2131
2131
 
2132
2132
  // src/trace/state.ts
2133
- import { createRequire } from "module";
2134
- var require2 = createRequire(import.meta.url);
2135
- var { version: LIBRARY_VERSION } = require2("../../package.json");
2133
+ var libraryVersion = package_default.version;
2136
2134
  var traceSessions = /* @__PURE__ */ new Map();
2137
2135
  function createTraceSession(sessionId, browserName, viewport, title, sessionType = "browser") {
2138
2136
  const prefix = sessionId.slice(0, 8);
@@ -2156,7 +2154,7 @@ function createTraceSession(sessionId, browserName, viewport, title, sessionType
2156
2154
  type: "context-options",
2157
2155
  origin: "library",
2158
2156
  libraryName: "@wdio/mcp",
2159
- libraryVersion: LIBRARY_VERSION,
2157
+ libraryVersion,
2160
2158
  browserName,
2161
2159
  platform: process.platform === "darwin" ? "darwin" : process.platform === "win32" ? "windows" : "linux",
2162
2160
  wallTime: session.startWallTime,