@wps365/openclaw-wpsxiezuo 1.7.0 → 1.7.1-beta.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/README.md CHANGED
@@ -303,7 +303,7 @@ openclaw doctor --fix
303
303
 
304
304
  ```bash
305
305
  openclaw config get tools.allow
306
- openclaw config set tools.allow '["wps_im_message_send"]'
306
+ openclaw config set tools.allow '["wps_message_send"]'
307
307
  ```
308
308
 
309
309
  **4. View logs**
package/README_ZH-CN.md CHANGED
@@ -274,7 +274,7 @@ openclaw doctor --fix
274
274
 
275
275
  ```bash
276
276
  openclaw config get tools.allow
277
- openclaw config set tools.allow '["wps_im_message_send"]'
277
+ openclaw config set tools.allow '["wps_message_send"]'
278
278
  ```
279
279
 
280
280
  **4. 查日志**
package/bin/cli.mjs CHANGED
@@ -195,9 +195,12 @@ function which(cmd) {
195
195
 
196
196
  function runOpenclaw(args, { capture = false, silent = false } = {}) {
197
197
  const bin = which("openclaw") || "openclaw";
198
+ // 如果 which() 找到了完整路径,就不需要 shell
199
+ // shell: true 只在 Windows 上未找到命令时才需要,但会触发 DEP0190 警告
200
+ const needShell = process.platform === "win32" && !which("openclaw");
198
201
  const opts = {
199
202
  stdio: capture ? ["ignore", "pipe", "pipe"] : silent ? "ignore" : "inherit",
200
- shell: process.platform === "win32",
203
+ shell: needShell,
201
204
  };
202
205
  const result = spawnSync(bin, args, opts);
203
206
  if (capture) {
@@ -404,16 +407,13 @@ function writeChannelConfig({ appId, appSecret, baseUrl }) {
404
407
  enabled: true,
405
408
  mode: "app",
406
409
  toolAllowlist: [
407
- "wps_im_message_send",
410
+ "wps_message_send",
408
411
  "wps_user_search",
409
412
  "wps_user_get",
410
- "wps_user_me",
411
- "wps_im_chat_list",
412
- "wps_im_chat_create",
413
- "wps_im_message_recall",
414
- "wps_calendar_event_create",
415
- "wps_calendar_event_list",
416
- "wps_calendar_free_busy_list",
413
+ "wps_chat_list",
414
+ "wps_chat_create",
415
+ "wps_calendar_create",
416
+ "wps_calendar_list_events",
417
417
  ],
418
418
  },
419
419
  dmPolicy: "open",
@@ -26,6 +26,7 @@ export type WpsRequestOptions = {
26
26
  method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
27
27
  path: string;
28
28
  query?: Record<string, string | number | boolean | string[] | undefined>;
29
+ /** JSON request body; omitted when undefined. */
29
30
  body?: unknown;
30
31
  headers?: Record<string, string>;
31
32
  };