@xulongzhe/clawbench 0.77.0 → 0.78.0

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/clawbench.js CHANGED
@@ -16,15 +16,19 @@ const PLATFORM_MAP = {
16
16
  "win32-x64": "@xulongzhe/clawbench-win32-x64",
17
17
  };
18
18
 
19
- const key = `${process.platform}-${process.arch}`;
19
+ // Termux 上报 process.platform === "android",但它运行的是 Linux 用户态,
20
+ // 其中 linux-arm64 的 Go 二进制可以直接执行,因此归一化到 linux。
21
+ const platform = process.platform === "android" ? "linux" : process.platform;
22
+
23
+ const key = `${platform}-${process.arch}`;
20
24
  const pkg = PLATFORM_MAP[key];
21
25
 
22
26
  if (!pkg) {
23
- console.error(`clawbench: 不支持的平台 ${key}`);
27
+ console.error(`clawbench: 不支持的平台 ${process.platform}-${process.arch}`);
24
28
  process.exit(1);
25
29
  }
26
30
 
27
- const binName = process.platform === "win32" ? "clawbench.exe" : "clawbench";
31
+ const binName = platform === "win32" ? "clawbench.exe" : "clawbench";
28
32
 
29
33
  let binPath;
30
34
  if (process.env.CLAWBENCH_BINARY_PATH) {
package/install.js CHANGED
@@ -17,7 +17,11 @@ const PLATFORM_MAP = {
17
17
  "win32-x64": "@xulongzhe/clawbench-win32-x64",
18
18
  };
19
19
 
20
- const key = `${process.platform}-${process.arch}`;
20
+ // Termux 上报 process.platform === "android",但它运行的是 Linux 用户态,
21
+ // 其中 linux-arm64 的 Go 二进制可以直接执行,因此归一化到 linux。
22
+ const platform = process.platform === "android" ? "linux" : process.platform;
23
+
24
+ const key = `${platform}-${process.arch}`;
21
25
  const pkg = PLATFORM_MAP[key];
22
26
 
23
27
  if (!pkg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xulongzhe/clawbench",
3
- "version": "0.77.0",
3
+ "version": "0.78.0",
4
4
  "description": "Mobile-first AI workstation — Go backend + Vue3 frontend",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,11 +14,11 @@
14
14
  "postinstall": "node install.js"
15
15
  },
16
16
  "optionalDependencies": {
17
- "@xulongzhe/clawbench-linux-x64": "0.77.0",
18
- "@xulongzhe/clawbench-linux-arm64": "0.77.0",
19
- "@xulongzhe/clawbench-darwin-x64": "0.77.0",
20
- "@xulongzhe/clawbench-darwin-arm64": "0.77.0",
21
- "@xulongzhe/clawbench-win32-x64": "0.77.0"
17
+ "@xulongzhe/clawbench-linux-x64": "0.78.0",
18
+ "@xulongzhe/clawbench-linux-arm64": "0.78.0",
19
+ "@xulongzhe/clawbench-darwin-x64": "0.78.0",
20
+ "@xulongzhe/clawbench-darwin-arm64": "0.78.0",
21
+ "@xulongzhe/clawbench-win32-x64": "0.78.0"
22
22
  },
23
23
  "engines": {
24
24
  "node": ">=14"