openclaw-channel-dmwork 0.6.2 → 0.6.3-dev.dc640a2e

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.
@@ -10,5 +10,49 @@
10
10
  "type": "object",
11
11
  "additionalProperties": false,
12
12
  "properties": {}
13
+ },
14
+ "channelConfigs": {
15
+ "dmwork": {
16
+ "schema": {
17
+ "$schema": "http://json-schema.org/draft-07/schema#",
18
+ "type": "object",
19
+ "properties": {
20
+ "name": { "type": "string" },
21
+ "enabled": { "type": "boolean" },
22
+ "botToken": { "type": "string" },
23
+ "apiUrl": { "type": "string" },
24
+ "wsUrl": { "type": "string" },
25
+ "cdnUrl": { "type": "string" },
26
+ "pollIntervalMs": { "type": "number", "minimum": 500 },
27
+ "heartbeatIntervalMs": { "type": "number", "minimum": 5000 },
28
+ "requireMention": { "type": "boolean" },
29
+ "ignoreMentionAll": { "type": "boolean" },
30
+ "botUid": { "type": "string" },
31
+ "historyLimit": { "type": "number", "minimum": 1, "maximum": 100 },
32
+ "historyPromptTemplate": { "type": "string" },
33
+ "accounts": {
34
+ "type": "object",
35
+ "additionalProperties": {
36
+ "type": "object",
37
+ "properties": {
38
+ "name": { "type": "string" },
39
+ "enabled": { "type": "boolean" },
40
+ "botToken": { "type": "string" },
41
+ "apiUrl": { "type": "string" },
42
+ "wsUrl": { "type": "string" },
43
+ "cdnUrl": { "type": "string" },
44
+ "pollIntervalMs": { "type": "number", "minimum": 500 },
45
+ "heartbeatIntervalMs": { "type": "number", "minimum": 5000 },
46
+ "requireMention": { "type": "boolean" },
47
+ "ignoreMentionAll": { "type": "boolean" },
48
+ "botUid": { "type": "string" },
49
+ "historyLimit": { "type": "number", "minimum": 1, "maximum": 100 },
50
+ "historyPromptTemplate": { "type": "string" }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
13
57
  }
14
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-channel-dmwork",
3
- "version": "0.6.2",
3
+ "version": "0.6.3-dev.dc640a2e",
4
4
  "description": "DMWork channel plugin for OpenClaw via WuKongIM WebSocket",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -8,6 +8,12 @@
8
8
  },
9
9
  "types": "dist/index.d.ts",
10
10
  "type": "module",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
11
17
  "files": [
12
18
  "bin",
13
19
  "dist",
@@ -31,12 +37,12 @@
31
37
  "ws": "^8.16.0"
32
38
  },
33
39
  "peerDependencies": {
34
- "openclaw": ">=2026.4.15"
40
+ "openclaw": ">=2026.5.4"
35
41
  },
36
42
  "devDependencies": {
37
43
  "@types/crypto-js": "^4.2.0",
38
44
  "@types/ws": "^8.5.10",
39
- "openclaw": "2026.3.2",
45
+ "openclaw": "^2026.5.4",
40
46
  "typescript": "^5.9.3",
41
47
  "vitest": "^3.0.0"
42
48
  },
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dmwork-bot-api
3
- version: 0.6.1
3
+ version: 0.6.3
4
4
  description: DMWork Bot API 文档。消息发送、群管理、Thread、文件上传、User API 等接口。API 基础地址从 OpenClaw 配置 channels.dmwork.accounts.<id>.apiUrl 获取。
5
5
  metadata: {"dmwork":{"category":"messaging","api_base":"<apiUrl>"}}
6
6
  ---
@@ -788,6 +788,8 @@ This lets you understand context when someone asks about a specific message.
788
788
 
789
789
  **To reply to every message:** set requireMention to false in your dmwork channel config (channels.dmwork.requireMention = false). This costs more tokens but lets the AI decide when to reply.
790
790
 
791
+ **To ignore @all/@所有人:** set ignoreMentionAll to true (channels.dmwork.accounts.xxx.ignoreMentionAll = true). This only applies when requireMention is true — @all will not trigger a bot reply, but direct @bot still will. When requireMention is false, ignoreMentionAll has no effect since the bot replies to all messages anyway.
792
+
791
793
  ### Rule 2: Don't respond to other bots
792
794
 
793
795
  If "from_uid" belongs to another bot (check if it ends with "_bot" or matches a known bot ID), **ignore** the message.
package/dist/package.json DELETED
@@ -1,62 +0,0 @@
1
- {
2
- "name": "openclaw-channel-dmwork",
3
- "version": "0.6.2",
4
- "description": "DMWork channel plugin for OpenClaw via WuKongIM WebSocket",
5
- "main": "dist/index.js",
6
- "bin": {
7
- "openclaw-channel-dmwork": "bin/dmwork.js"
8
- },
9
- "types": "dist/index.d.ts",
10
- "type": "module",
11
- "files": [
12
- "bin",
13
- "dist",
14
- "skills",
15
- "openclaw.plugin.json"
16
- ],
17
- "scripts": {
18
- "prebuild": "rm -rf dist && node -e \"const v=require('./package.json').version; require('fs').writeFileSync('src/version.ts','// Auto-generated by prebuild script. Do not edit manually.\\nexport const PLUGIN_VERSION = \\\"'+v+'\\\";\\n')\"",
19
- "build": "tsc",
20
- "type-check": "tsc --noEmit",
21
- "test": "vitest run",
22
- "test:watch": "vitest"
23
- },
24
- "dependencies": {
25
- "axios": "^1.7.0",
26
- "commander": "^12.1.0",
27
- "cos-nodejs-sdk-v5": "^2.15.4",
28
- "crypto-js": "^4.2.0",
29
- "curve25519-js": "^0.0.4",
30
- "md5-typescript": "^1.0.5",
31
- "ws": "^8.16.0"
32
- },
33
- "peerDependencies": {
34
- "openclaw": ">=2026.4.15"
35
- },
36
- "devDependencies": {
37
- "@types/crypto-js": "^4.2.0",
38
- "@types/ws": "^8.5.10",
39
- "openclaw": "2026.3.2",
40
- "typescript": "^5.9.3",
41
- "vitest": "^3.0.0"
42
- },
43
- "openclaw": {
44
- "id": "openclaw-channel-dmwork",
45
- "type": "channel",
46
- "extensions": [
47
- "dist/index.js"
48
- ]
49
- },
50
- "bundledDependencies": [
51
- "cos-nodejs-sdk-v5",
52
- "crypto-js",
53
- "curve25519-js",
54
- "md5-typescript"
55
- ],
56
- "bundleDependencies": [
57
- "cos-nodejs-sdk-v5",
58
- "crypto-js",
59
- "curve25519-js",
60
- "md5-typescript"
61
- ]
62
- }