@lujoai/lujo-mcp 0.7.3 → 0.7.5

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/bin/check.js CHANGED
@@ -19,7 +19,9 @@ const binFile = `lujo-mcp-server${process.platform === 'win32' ? '.exe' : ''}`;
19
19
  // - 受支持平台 → 沿用严格的"缺失/版本不匹配"校验;
20
20
  // - 不受支持平台 → 给出清晰说明并以 0 退出(不阻断 npm install)。
21
21
  // 支持集需与 npm/scripts/gen-platform-packages.js 的平台数组保持同步。
22
- const supportedPlatforms = new Set(['win32-x64', 'linux-x64', 'osx-arm64']);
22
+ // FIX(v0.7.4 P0):白名单必须用完整包名(lujo-mcp-<platform>-<arch>)——此前写成
23
+ // 无前缀后缀,与上方 pkg(带前缀)永不相等,postinstall 校验自 v0.6.8 起一直空转。
24
+ const supportedPlatforms = new Set(['lujo-mcp-win32-x64', 'lujo-mcp-linux-x64', 'lujo-mcp-osx-arm64']);
23
25
 
24
26
  function pkgVersionAt(pkgDir) {
25
27
  try {
package/bin/cli.js CHANGED
@@ -65,7 +65,11 @@ function run() {
65
65
  const pkg = platformPackageName();
66
66
  // FIX: P2-F6 —— 与 check.js 一致:非 CI 构建平台无官方预编译包,给出清晰指引而非
67
67
  // 提示安装一个不存在的平台包。支持集需与 gen-platform-packages.js 平台数组保持同步。
68
- const supportedPlatforms = new Set(['win32-x64', 'linux-x64', 'osx-arm64']);
68
+ // FIX(v0.7.4 P0):白名单此前写成无前缀后缀(win32-x64),与 platformPackageName()
69
+ // 产出的完整包名(lujo-mcp-win32-x64)永不相等 → 启动器在所有平台 100% exit 1,
70
+ // npm stdio 用户自 v0.6.8 起完全无法启动且 CI 未发现(发布冒烟只测裸二进制)。
71
+ // 白名单必须用完整包名,test_distribution_smoke 有静态一致性守卫。
72
+ const supportedPlatforms = new Set(['lujo-mcp-win32-x64', 'lujo-mcp-linux-x64', 'lujo-mcp-osx-arm64']);
69
73
  if (!supportedPlatforms.has(pkg)) {
70
74
  console.error(
71
75
  `[lujo-mcp-server] 当前平台(${pkg})暂无官方预编译二进制。\n` +
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lujo-mcp Browser SDK v0.7.3
2
+ * lujo-mcp Browser SDK v0.7.5
3
3
  *
4
4
  * 版本以 browser-sdk/package.json 的 version 为准(本注释仅为可读性,
5
5
  * 升级时随版本 bump 一并更新,避免再次漂移)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lujoai/lujo-mcp",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Lujo-MCP — MCP Runtime Debugging Context Server for AI coding agents. Gives Claude, Cursor, Trae and any MCP-compatible client real runtime debugging context: browser errors, console logs, network failures, UI interaction traces and session context. Zero-config, install via npm.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,8 +43,8 @@
43
43
  "prepublishOnly": "node ./scripts/check-clean-bin.js"
44
44
  },
45
45
  "optionalDependencies": {
46
- "@lujoai/lujo-mcp-win32-x64": "0.7.3",
47
- "@lujoai/lujo-mcp-linux-x64": "0.7.3",
48
- "@lujoai/lujo-mcp-osx-arm64": "0.7.3"
46
+ "@lujoai/lujo-mcp-win32-x64": "0.7.5",
47
+ "@lujoai/lujo-mcp-linux-x64": "0.7.5",
48
+ "@lujoai/lujo-mcp-osx-arm64": "0.7.5"
49
49
  }
50
50
  }