@xuanyue202/dingtalk 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.
@@ -0,0 +1,79 @@
1
+ {
2
+ "id": "dingtalk",
3
+ "name": "DingTalk",
4
+ "description": "钉钉消息渠道插件",
5
+ "version": "0.1.14",
6
+ "channels": ["dingtalk"],
7
+ "configSchema": {
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "enabled": { "type": "boolean" },
12
+ "name": { "type": "string" },
13
+ "defaultAccount": { "type": "string" },
14
+ "clientId": { "type": "string" },
15
+ "clientSecret": { "type": "string" },
16
+ "connectionMode": { "type": "string", "enum": ["stream", "webhook"] },
17
+ "dmPolicy": { "type": "string", "enum": ["open", "pairing", "allowlist"] },
18
+ "groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
19
+ "requireMention": { "type": "boolean" },
20
+ "allowFrom": { "type": "array", "items": { "type": "string" } },
21
+ "groupAllowFrom": { "type": "array", "items": { "type": "string" } },
22
+ "historyLimit": { "type": "integer", "minimum": 0 },
23
+ "textChunkLimit": { "type": "integer", "minimum": 1 },
24
+ "longTaskNoticeDelayMs": { "type": "integer", "minimum": 0 },
25
+ "enableAICard": { "type": "boolean" },
26
+ "gatewayToken": { "type": "string" },
27
+ "gatewayPassword": { "type": "string" },
28
+ "maxFileSizeMB": { "type": "number", "minimum": 1 },
29
+ "inboundMedia": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "properties": {
33
+ "dir": { "type": "string" },
34
+ "keepDays": { "type": "number", "minimum": 0 }
35
+ }
36
+ },
37
+ "accounts": {
38
+ "type": "object",
39
+ "additionalProperties": {
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "properties": {
43
+ "name": { "type": "string" },
44
+ "enabled": { "type": "boolean" },
45
+ "clientId": { "type": "string" },
46
+ "clientSecret": { "type": "string" },
47
+ "connectionMode": { "type": "string", "enum": ["stream", "webhook"] },
48
+ "dmPolicy": { "type": "string", "enum": ["open", "pairing", "allowlist"] },
49
+ "groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"] },
50
+ "requireMention": { "type": "boolean" },
51
+ "allowFrom": { "type": "array", "items": { "type": "string" } },
52
+ "groupAllowFrom": { "type": "array", "items": { "type": "string" } },
53
+ "historyLimit": { "type": "integer", "minimum": 0 },
54
+ "textChunkLimit": { "type": "integer", "minimum": 1 },
55
+ "longTaskNoticeDelayMs": { "type": "integer", "minimum": 0 },
56
+ "enableAICard": { "type": "boolean" },
57
+ "gatewayToken": { "type": "string" },
58
+ "gatewayPassword": { "type": "string" },
59
+ "maxFileSizeMB": { "type": "number", "minimum": 1 },
60
+ "inboundMedia": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "properties": {
64
+ "dir": { "type": "string" },
65
+ "keepDays": { "type": "number", "minimum": 0 }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ },
73
+ "uiHints": {
74
+ "clientId": { "label": "Client ID (AppKey)" },
75
+ "clientSecret": { "label": "Client Secret (AppSecret)", "sensitive": true },
76
+ "gatewayToken": { "label": "Gateway Token", "sensitive": true },
77
+ "gatewayPassword": { "label": "Gateway Password", "sensitive": true }
78
+ }
79
+ }
package/package.json ADDED
@@ -0,0 +1,115 @@
1
+ {
2
+ "name": "@xuanyue202/dingtalk",
3
+ "version": "2026.3.21",
4
+ "type": "module",
5
+ "description": "Moltbot DingTalk channel plugin",
6
+ "license": "MIT",
7
+ "files": [
8
+ "dist",
9
+ "moltbot.plugin.json",
10
+ "clawdbot.plugin.json",
11
+ "openclaw.plugin.json"
12
+ ],
13
+ "openclaw": {
14
+ "extensions": [
15
+ "./dist/index.js"
16
+ ],
17
+ "channel": {
18
+ "id": "dingtalk",
19
+ "label": "DingTalk",
20
+ "selectionLabel": "DingTalk (钉钉)",
21
+ "docsPath": "/channels/dingtalk",
22
+ "blurb": "钉钉企业消息",
23
+ "aliases": [
24
+ "ding"
25
+ ],
26
+ "order": 71
27
+ },
28
+ "install": {
29
+ "npmSpec": "@xuanyue202/dingtalk",
30
+ "localPath": ".",
31
+ "defaultChoice": "npm"
32
+ }
33
+ },
34
+ "moltbot": {
35
+ "extensions": [
36
+ "./dist/index.js"
37
+ ],
38
+ "channel": {
39
+ "id": "dingtalk",
40
+ "label": "DingTalk",
41
+ "selectionLabel": "DingTalk (钉钉)",
42
+ "docsPath": "/channels/dingtalk",
43
+ "blurb": "钉钉企业消息",
44
+ "aliases": [
45
+ "ding"
46
+ ],
47
+ "order": 71
48
+ },
49
+ "install": {
50
+ "npmSpec": "@xuanyue202/dingtalk",
51
+ "localPath": ".",
52
+ "defaultChoice": "npm"
53
+ }
54
+ },
55
+ "clawdbot": {
56
+ "extensions": [
57
+ "./dist/index.js"
58
+ ],
59
+ "channel": {
60
+ "id": "dingtalk",
61
+ "label": "DingTalk",
62
+ "selectionLabel": "DingTalk (钉钉)",
63
+ "docsPath": "/channels/dingtalk",
64
+ "blurb": "钉钉企业消息",
65
+ "aliases": [
66
+ "ding"
67
+ ],
68
+ "order": 71
69
+ },
70
+ "install": {
71
+ "npmSpec": "@xuanyue202/dingtalk",
72
+ "localPath": ".",
73
+ "defaultChoice": "npm"
74
+ }
75
+ },
76
+ "main": "./dist/index.js",
77
+ "types": "./dist/index.d.ts",
78
+ "exports": {
79
+ ".": {
80
+ "types": "./dist/index.d.ts",
81
+ "default": "./dist/index.js"
82
+ }
83
+ },
84
+ "scripts": {
85
+ "build": "tsup",
86
+ "dev": "tsup --watch",
87
+ "test": "vitest --run",
88
+ "test:watch": "vitest",
89
+ "release": "npm run build && npm publish",
90
+ "release:patch": "npm run build && npm version patch && npm publish",
91
+ "release:minor": "npm run build && npm version minor && npm publish",
92
+ "release:major": "npm run build && npm version major && npm publish"
93
+ },
94
+ "dependencies": {
95
+ "@xuanyue202/shared": "2026.3.21",
96
+ "dingtalk-stream": "^2.1.4"
97
+ },
98
+ "devDependencies": {
99
+ "@types/node": "^22.0.0",
100
+ "fast-check": "^3.22.0",
101
+ "tsup": "^8.2.0",
102
+ "typescript": "^5.7.0",
103
+ "vitest": "^2.1.0",
104
+ "zod": "^3.23.0"
105
+ },
106
+ "peerDependencies": {
107
+ "moltbot": ">=0.1.0"
108
+ },
109
+ "peerDependenciesMeta": {
110
+ "moltbot": {
111
+ "optional": true
112
+ }
113
+ },
114
+ "private": false
115
+ }