@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 +1 -1
- package/README_ZH-CN.md +1 -1
- package/bin/cli.mjs +9 -9
- package/dist/core/wps-client.d.ts +1 -0
- package/dist/index.js +27 -25
- package/dist/tools/oapi/airpage.d.ts +121 -0
- package/dist/tools/oapi/calendar.d.ts +48 -1
- package/dist/tools/oapi/cloud-doc.d.ts +198 -0
- package/dist/tools/oapi/dbsheet.d.ts +23 -0
- package/dist/tools/oapi/index.d.ts +4 -1
- package/dist/tools/oapi/media.d.ts +9 -0
- package/dist/tools/oapi/meeting-room.d.ts +85 -0
- package/openclaw.plugin.json +66 -6
- package/package.json +2 -1
- package/skills/wps-airpage/SKILL.md +274 -0
- package/skills/wps-calendar/SKILL.md +122 -5
- package/skills/wps-channel-rules/SKILL.md +5 -3
- package/skills/wps-cloud-doc/SKILL.md +119 -0
- package/skills/wps-dbsheet/SKILL.md +285 -0
- package/skills/wps-media/SKILL.md +3 -1
- package/skills/wps-meeting-room/SKILL.md +100 -0
- package/skills/wps-user/SKILL.md +1 -1
- package/dist/tools/oapi/drive.d.ts +0 -112
- package/skills/wps-drive/SKILL.md +0 -79
package/README.md
CHANGED
package/README_ZH-CN.md
CHANGED
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:
|
|
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
|
-
"
|
|
410
|
+
"wps_message_send",
|
|
408
411
|
"wps_user_search",
|
|
409
412
|
"wps_user_get",
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
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
|
};
|