@xuanyue202/wecom-app 2026.3.21
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/dist/index.d.ts +1023 -0
- package/dist/index.js +9831 -0
- package/dist/index.js.map +1 -0
- package/openclaw.plugin.json +91 -0
- package/package.json +118 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "wecom-app",
|
|
3
|
+
"name": "WeCom App",
|
|
4
|
+
"description": "企业微信自建应用消息渠道插件(支持主动推送)",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"channels": ["wecom-app"],
|
|
7
|
+
"configSchema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"enabled": { "type": "boolean" },
|
|
12
|
+
"name": { "type": "string" },
|
|
13
|
+
"corpId": { "type": "string" },
|
|
14
|
+
"corpSecret": { "type": "string" },
|
|
15
|
+
"agentId": { "type": "number" },
|
|
16
|
+
"apiBaseUrl": { "type": "string" },
|
|
17
|
+
"webhookPath": { "type": "string" },
|
|
18
|
+
"token": { "type": "string" },
|
|
19
|
+
"encodingAESKey": { "type": "string" },
|
|
20
|
+
"receiveId": { "type": "string" },
|
|
21
|
+
"asr": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"properties": {
|
|
25
|
+
"enabled": { "type": "boolean" },
|
|
26
|
+
"appId": { "type": "string" },
|
|
27
|
+
"secretId": { "type": "string" },
|
|
28
|
+
"secretKey": { "type": "string" },
|
|
29
|
+
"engineType": { "type": "string" },
|
|
30
|
+
"timeoutMs": { "type": "number" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"welcomeText": { "type": "string" },
|
|
34
|
+
"dmPolicy": { "type": "string", "enum": ["open", "pairing", "allowlist", "disabled"] },
|
|
35
|
+
"allowFrom": { "type": "array", "items": { "type": "string" } },
|
|
36
|
+
"groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
|
|
37
|
+
"groupAllowFrom": { "type": "array", "items": { "type": "string" } },
|
|
38
|
+
"requireMention": { "type": "boolean" },
|
|
39
|
+
"defaultAccount": { "type": "string" },
|
|
40
|
+
"accounts": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"properties": {
|
|
46
|
+
"name": { "type": "string" },
|
|
47
|
+
"enabled": { "type": "boolean" },
|
|
48
|
+
"corpId": { "type": "string" },
|
|
49
|
+
"corpSecret": { "type": "string" },
|
|
50
|
+
"agentId": { "type": "number" },
|
|
51
|
+
"apiBaseUrl": { "type": "string" },
|
|
52
|
+
"webhookPath": { "type": "string" },
|
|
53
|
+
"token": { "type": "string" },
|
|
54
|
+
"encodingAESKey": { "type": "string" },
|
|
55
|
+
"receiveId": { "type": "string" },
|
|
56
|
+
"asr": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"properties": {
|
|
60
|
+
"enabled": { "type": "boolean" },
|
|
61
|
+
"appId": { "type": "string" },
|
|
62
|
+
"secretId": { "type": "string" },
|
|
63
|
+
"secretKey": { "type": "string" },
|
|
64
|
+
"engineType": { "type": "string" },
|
|
65
|
+
"timeoutMs": { "type": "number" }
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"welcomeText": { "type": "string" },
|
|
69
|
+
"dmPolicy": { "type": "string", "enum": ["open", "pairing", "allowlist", "disabled"] },
|
|
70
|
+
"allowFrom": { "type": "array", "items": { "type": "string" } },
|
|
71
|
+
"groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
|
|
72
|
+
"groupAllowFrom": { "type": "array", "items": { "type": "string" } },
|
|
73
|
+
"requireMention": { "type": "boolean" }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"uiHints": {
|
|
80
|
+
"corpId": { "label": "企业ID (CorpID)" },
|
|
81
|
+
"corpSecret": { "label": "应用Secret", "sensitive": true },
|
|
82
|
+
"asr.appId": { "label": "ASR App ID" },
|
|
83
|
+
"asr.secretId": { "label": "ASR Secret ID", "sensitive": true },
|
|
84
|
+
"asr.secretKey": { "label": "ASR Secret Key", "sensitive": true },
|
|
85
|
+
"agentId": { "label": "应用AgentId" },
|
|
86
|
+
"apiBaseUrl": { "label": "企微 API 基础地址(可选代理)" },
|
|
87
|
+
"token": { "label": "回调Token", "sensitive": true },
|
|
88
|
+
"encodingAESKey": { "label": "回调EncodingAESKey", "sensitive": true },
|
|
89
|
+
"webhookPath": { "label": "Webhook Path" }
|
|
90
|
+
}
|
|
91
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xuanyue202/wecom-app",
|
|
3
|
+
"version": "2026.3.21",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Openclaw WeCom Self-built Application (企业微信自建应用) channel plugin",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"openclaw.plugin.json"
|
|
10
|
+
],
|
|
11
|
+
"openclaw": {
|
|
12
|
+
"extensions": [
|
|
13
|
+
"./dist/index.js"
|
|
14
|
+
],
|
|
15
|
+
"channel": {
|
|
16
|
+
"id": "wecom-app",
|
|
17
|
+
"label": "WeCom App",
|
|
18
|
+
"selectionLabel": "WeCom Self-built App (企微自建应用)",
|
|
19
|
+
"docsPath": "/channels/wecom-app",
|
|
20
|
+
"blurb": "企业微信自建应用,支持主动发送消息",
|
|
21
|
+
"aliases": [
|
|
22
|
+
"qywx-app",
|
|
23
|
+
"企微自建应用"
|
|
24
|
+
],
|
|
25
|
+
"order": 84
|
|
26
|
+
},
|
|
27
|
+
"install": {
|
|
28
|
+
"npmSpec": "@xuanyue202/wecom-app",
|
|
29
|
+
"localPath": ".",
|
|
30
|
+
"defaultChoice": "npm"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"moltbot": {
|
|
34
|
+
"extensions": [
|
|
35
|
+
"./dist/index.js"
|
|
36
|
+
],
|
|
37
|
+
"channel": {
|
|
38
|
+
"id": "wecom-app",
|
|
39
|
+
"label": "WeCom App",
|
|
40
|
+
"selectionLabel": "WeCom Self-built App (企微自建应用)",
|
|
41
|
+
"docsPath": "/channels/wecom-app",
|
|
42
|
+
"blurb": "企业微信自建应用,支持主动发送消息",
|
|
43
|
+
"aliases": [
|
|
44
|
+
"qywx-app",
|
|
45
|
+
"企微自建应用"
|
|
46
|
+
],
|
|
47
|
+
"order": 84
|
|
48
|
+
},
|
|
49
|
+
"install": {
|
|
50
|
+
"npmSpec": "@xuanyue202/wecom-app",
|
|
51
|
+
"localPath": ".",
|
|
52
|
+
"defaultChoice": "npm"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"clawdbot": {
|
|
56
|
+
"extensions": [
|
|
57
|
+
"./dist/index.js"
|
|
58
|
+
],
|
|
59
|
+
"channel": {
|
|
60
|
+
"id": "wecom-app",
|
|
61
|
+
"label": "WeCom App",
|
|
62
|
+
"selectionLabel": "WeCom Self-built App (企微自建应用)",
|
|
63
|
+
"docsPath": "/channels/wecom-app",
|
|
64
|
+
"blurb": "企业微信自建应用,支持主动发送消息",
|
|
65
|
+
"aliases": [
|
|
66
|
+
"qywx-app",
|
|
67
|
+
"企微自建应用"
|
|
68
|
+
],
|
|
69
|
+
"order": 84
|
|
70
|
+
},
|
|
71
|
+
"install": {
|
|
72
|
+
"npmSpec": "@xuanyue202/wecom-app",
|
|
73
|
+
"localPath": ".",
|
|
74
|
+
"defaultChoice": "npm"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"main": "./dist/index.js",
|
|
78
|
+
"types": "./dist/index.d.ts",
|
|
79
|
+
"exports": {
|
|
80
|
+
".": {
|
|
81
|
+
"types": "./dist/index.d.ts",
|
|
82
|
+
"default": "./dist/index.js"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "tsup",
|
|
87
|
+
"dev": "tsup --watch",
|
|
88
|
+
"test": "vitest --run",
|
|
89
|
+
"test:watch": "vitest",
|
|
90
|
+
"release": "npm run build && npm publish",
|
|
91
|
+
"release:patch": "npm run build && npm version patch && npm publish",
|
|
92
|
+
"release:minor": "npm run build && npm version minor && npm publish",
|
|
93
|
+
"release:major": "npm run build && npm version major && npm publish"
|
|
94
|
+
},
|
|
95
|
+
"dependencies": {
|
|
96
|
+
"@xuanyue202/shared": "2026.3.21",
|
|
97
|
+
"ffmpeg-static": "^5.3.0",
|
|
98
|
+
"ws": "^8.18.0"
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"@types/node": "^22.0.0",
|
|
102
|
+
"@types/ws": "^8.5.0",
|
|
103
|
+
"fast-check": "^3.22.0",
|
|
104
|
+
"tsup": "^8.2.0",
|
|
105
|
+
"typescript": "^5.7.0",
|
|
106
|
+
"vitest": "^2.1.0",
|
|
107
|
+
"zod": "^3.23.0"
|
|
108
|
+
},
|
|
109
|
+
"peerDependencies": {
|
|
110
|
+
"moltbot": ">=0.1.0"
|
|
111
|
+
},
|
|
112
|
+
"peerDependenciesMeta": {
|
|
113
|
+
"moltbot": {
|
|
114
|
+
"optional": true
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"private": false
|
|
118
|
+
}
|