@xgjktech/xg_cwork_im 1.0.5 → 1.0.6
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 +2 -2
- package/index.ts +1 -1
- package/package.json +3 -3
- package/src/channel.ts +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# XG CWork IM Channel for OpenClaw
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
工作说说 IM 机器人 Channel 插件,通过 WebSocket 长连接接收 `@` 消息,由 OpenClaw AI 处理后自动回复。
|
|
4
4
|
|
|
5
5
|
## 工作原理
|
|
6
6
|
|
|
@@ -192,7 +192,7 @@ openclaw gateway restart
|
|
|
192
192
|
"wsBaseUrl": "wss://sg-al-cwork-web.mediportal.com.cn",
|
|
193
193
|
"groupPolicy": "mention",
|
|
194
194
|
"debug": false,
|
|
195
|
-
"maxConnectionAttempts":
|
|
195
|
+
"maxConnectionAttempts": 200,
|
|
196
196
|
"maxReconnectDelay": 120000,
|
|
197
197
|
// 生产环境可根据需要调整首回复超时时间(毫秒)
|
|
198
198
|
"firstReplyTimeoutMs": 300000,
|
package/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type { XgCworkImPluginModule } from "./src/types.js";
|
|
|
14
14
|
const plugin: XgCworkImPluginModule = {
|
|
15
15
|
id: "xg_cwork_im",
|
|
16
16
|
name: "XG CWork IM Channel",
|
|
17
|
-
description: "
|
|
17
|
+
description: "工作说说 IM 机器人 Channel 插件,通过 WebSocket 长连接接入",
|
|
18
18
|
configSchema: emptyPluginConfigSchema(),
|
|
19
19
|
register(api: OpenClawPluginApi): void {
|
|
20
20
|
setXgImRuntime(api.runtime);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xgjktech/xg_cwork_im",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "XG CWork IM channel plugin for OpenClaw",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bot",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"channel": {
|
|
49
49
|
"id": "xg_cwork_im",
|
|
50
50
|
"label": "XG CWork IM",
|
|
51
|
-
"selectionLabel": "XG CWork IM (
|
|
52
|
-
"blurb": "
|
|
51
|
+
"selectionLabel": "XG CWork IM (工作说说)",
|
|
52
|
+
"blurb": "工作说说 IM 机器人 Channel 插件,通过 WebSocket 长连接接收消息。",
|
|
53
53
|
"aliases": [
|
|
54
54
|
"xg_cwork_im",
|
|
55
55
|
"im"
|
package/src/channel.ts
CHANGED
|
@@ -124,9 +124,9 @@ export const xgCworkImChannelPlugin: XgImChannelPlugin = {
|
|
|
124
124
|
meta: {
|
|
125
125
|
id: "xg_cwork_im",
|
|
126
126
|
label: "XG CWork IM",
|
|
127
|
-
selectionLabel: "XG CWork IM (
|
|
127
|
+
selectionLabel: "XG CWork IM (工作说说)",
|
|
128
128
|
docsPath: "/channels/xg_cwork_im",
|
|
129
|
-
blurb: "
|
|
129
|
+
blurb: "工作说说 IM 机器人,通过 WebSocket 长连接接收 @ 消息。",
|
|
130
130
|
aliases: ["xg_cwork_im", "im"],
|
|
131
131
|
},
|
|
132
132
|
// 双重类型转换绕过 zod v3/v4 的 TS 类型不兼容
|