@tencent-weixin/openclaw-weixin-cli 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/cli.mjs +2 -1
  2. package/package.json +2 -1
package/cli.mjs CHANGED
@@ -27,8 +27,9 @@ function run(cmd, { silent = true } = {}) {
27
27
  }
28
28
 
29
29
  function which(bin) {
30
+ const cmd = process.platform === "win32" ? `where ${bin}` : `which ${bin}`;
30
31
  try {
31
- return execSync(`which ${bin}`, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }).trim();
32
+ return execSync(cmd, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }).trim();
32
33
  } catch {
33
34
  return null;
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-weixin/openclaw-weixin-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Lightweight installer for the OpenClaw Weixin channel plugin",
5
5
  "license": "MIT",
6
6
  "author": "Tencent",
@@ -11,6 +11,7 @@
11
11
  "files": [
12
12
  "cli.mjs"
13
13
  ],
14
+ "scripts": {},
14
15
  "engines": {
15
16
  "node": ">=22"
16
17
  }