@wps365/openclaw-wpsxiezuo 1.8.0 → 1.8.1-beta.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/cli.mjs CHANGED
@@ -194,10 +194,10 @@ function which(cmd) {
194
194
  }
195
195
 
196
196
  function runOpenclaw(args, { capture = false, silent = false } = {}) {
197
- const bin = which("openclaw") || "openclaw";
198
- // 如果 which() 找到了完整路径,就不需要 shell
199
- // shell: true 只在 Windows 上未找到命令时才需要,但会触发 DEP0190 警告
200
- const needShell = process.platform === "win32" && !which("openclaw");
197
+ const resolved = which("openclaw");
198
+ const bin = resolved || "openclaw";
199
+ // Windows 上需用 shell 执行,避免 .cmd 文件触发 DEP0190 警告
200
+ const needShell = process.platform === "win32";
201
201
  const opts = {
202
202
  stdio: capture ? ["ignore", "pipe", "pipe"] : silent ? "ignore" : "inherit",
203
203
  shell: needShell,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "wps-xiezuo",
3
3
  "name": "WPS Xiezuo",
4
- "version": "1.8.0",
4
+ "version": "1.8.1-beta.0",
5
5
  "description": "WPS Xiezuo OpenClaw Plugin - connect to WPS Open Platform enterprise robot",
6
6
  "main": "dist/index.js",
7
7
  "author": "WPS Xiezuo Team",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wps365/openclaw-wpsxiezuo",
3
- "version": "1.8.0",
3
+ "version": "1.8.1-beta.0",
4
4
  "description": "WPS Xiezuo OpenClaw plugin - connect OpenClaw Agent to the WPS Open Platform enterprise robot",
5
5
  "keywords": [
6
6
  "openclaw",
@@ -8,7 +8,6 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "author": "WPS Xiezuo Team",
11
- "packageManager": "pnpm@10.33.0",
12
11
  "type": "module",
13
12
  "main": "dist/index.js",
14
13
  "types": "dist/index.d.ts",
@@ -34,19 +33,6 @@
34
33
  "engines": {
35
34
  "node": ">=22.0.0"
36
35
  },
37
- "scripts": {
38
- "build": "tsc -p tsconfig.json",
39
- "build:release": "rm -rf dist && tsc -p tsconfig.json && node scripts/minify.mjs",
40
- "typecheck": "tsc -p tsconfig.json --noEmit",
41
- "pack:bundle": "node scripts/build-bundle.mjs",
42
- "release:bundle": "node scripts/release-bundle.mjs",
43
- "release:patch": "node scripts/release-bundle.mjs patch",
44
- "release:minor": "node scripts/release-bundle.mjs minor",
45
- "release:major": "node scripts/release-bundle.mjs major",
46
- "prepublishOnly": "pnpm run build:release",
47
- "dev": "tsc -p tsconfig.json --watch",
48
- "test": "echo \"Tests not yet implemented\""
49
- },
50
36
  "devDependencies": {
51
37
  "@types/node": "^22.0.0",
52
38
  "esbuild": "^0.24.0",
@@ -95,5 +81,17 @@
95
81
  "allowEnvAccess": true,
96
82
  "justification": "Legitimate OAuth token management and WPS OpenAPI calls. Network requests are for: 1) OAuth client_credentials token exchange, 2) User authorization code exchange, 3) WPS OpenAPI calls (messages, calendar, drive, todo). No credential harvesting or data exfiltration."
97
83
  }
84
+ },
85
+ "scripts": {
86
+ "build": "tsc -p tsconfig.json",
87
+ "build:release": "rm -rf dist && tsc -p tsconfig.json && node scripts/minify.mjs",
88
+ "typecheck": "tsc -p tsconfig.json --noEmit",
89
+ "pack:bundle": "node scripts/build-bundle.mjs",
90
+ "release:bundle": "node scripts/release-bundle.mjs",
91
+ "release:patch": "node scripts/release-bundle.mjs patch",
92
+ "release:minor": "node scripts/release-bundle.mjs minor",
93
+ "release:major": "node scripts/release-bundle.mjs major",
94
+ "dev": "tsc -p tsconfig.json --watch",
95
+ "test": "echo \"Tests not yet implemented\""
98
96
  }
99
- }
97
+ }
package/scripts/install CHANGED
File without changes
package/scripts/uninstall CHANGED
File without changes
File without changes