@jeik/dingtalk-connector 0.8.21-fix1

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.
Files changed (154) hide show
  1. package/CHANGELOG.md +686 -0
  2. package/LICENSE +21 -0
  3. package/README.en.md +181 -0
  4. package/README.md +221 -0
  5. package/bin/dingtalk-connector.js +858 -0
  6. package/bin/wizard-config.mjs +110 -0
  7. package/dist/accounts-BAzdqkAV.mjs +268 -0
  8. package/dist/accounts-BQptOmgB.mjs +2 -0
  9. package/dist/chunk-upload-BBQgGtcZ.mjs +193 -0
  10. package/dist/chunk-upload-DaLXXZH3.mjs +2 -0
  11. package/dist/common-C8pYKU_y.mjs +2 -0
  12. package/dist/common-Dt9n6fQN.mjs +101 -0
  13. package/dist/connection-DHHFFNQJ.mjs +423 -0
  14. package/dist/entry-bundled.d.mts +16 -0
  15. package/dist/entry-bundled.mjs +31 -0
  16. package/dist/game-xiyou-CqHt-6Q1.mjs +4271 -0
  17. package/dist/gateway-methods-C4tcgI7P.mjs +771 -0
  18. package/dist/gateway-methods-Ci31A3vg.mjs +2 -0
  19. package/dist/http-client-CpnJHB89.mjs +2 -0
  20. package/dist/http-client-DFWZgO1n.mjs +33 -0
  21. package/dist/index.d.mts +193 -0
  22. package/dist/index.mjs +45 -0
  23. package/dist/logger-BmJkQkm1.mjs +2 -0
  24. package/dist/logger-mZ9OSbmD.mjs +58 -0
  25. package/dist/media-C_SVin7s.mjs +2 -0
  26. package/dist/media-cz72EVS3.mjs +509 -0
  27. package/dist/message-handler-DESzFFDc.mjs +1971 -0
  28. package/dist/messaging-B6l1sRvX.mjs +1044 -0
  29. package/dist/runtime-DUgpo5zC.mjs +1422 -0
  30. package/dist/session-DJ4jYqPv.mjs +114 -0
  31. package/dist/utils-Bjh4r_qS.mjs +4 -0
  32. package/dist/utils-CIfI_3Jh.mjs +63 -0
  33. package/dist/utils-legacy-CALCPP1t.mjs +230 -0
  34. package/dist/utils-legacy-CFYDBM4r.mjs +3 -0
  35. package/docs/DEAP_AGENT_GUIDE.en.md +115 -0
  36. package/docs/DEAP_AGENT_GUIDE.md +115 -0
  37. package/docs/DINGTALK_MANUAL_SETUP.md +50 -0
  38. package/docs/MULTI_AGENT_SETUP.md +306 -0
  39. package/docs/RELEASE_NOTES_V0.7.10.md +40 -0
  40. package/docs/RELEASE_NOTES_V0.7.2.md +143 -0
  41. package/docs/RELEASE_NOTES_V0.7.3.md +149 -0
  42. package/docs/RELEASE_NOTES_V0.7.4.md +206 -0
  43. package/docs/RELEASE_NOTES_V0.7.5.md +267 -0
  44. package/docs/RELEASE_NOTES_V0.7.6.md +219 -0
  45. package/docs/RELEASE_NOTES_V0.7.7.md +122 -0
  46. package/docs/RELEASE_NOTES_V0.7.8.md +101 -0
  47. package/docs/RELEASE_NOTES_V0.7.9.md +65 -0
  48. package/docs/RELEASE_NOTES_V0.8.0.md +53 -0
  49. package/docs/RELEASE_NOTES_V0.8.1.md +47 -0
  50. package/docs/RELEASE_NOTES_V0.8.10.md +49 -0
  51. package/docs/RELEASE_NOTES_V0.8.11.md +51 -0
  52. package/docs/RELEASE_NOTES_V0.8.12.md +63 -0
  53. package/docs/RELEASE_NOTES_V0.8.13-beta.0.md +69 -0
  54. package/docs/RELEASE_NOTES_V0.8.13.md +62 -0
  55. package/docs/RELEASE_NOTES_V0.8.14.md +86 -0
  56. package/docs/RELEASE_NOTES_V0.8.16.md +40 -0
  57. package/docs/RELEASE_NOTES_V0.8.17.md +87 -0
  58. package/docs/RELEASE_NOTES_V0.8.18.md +64 -0
  59. package/docs/RELEASE_NOTES_V0.8.19.md +62 -0
  60. package/docs/RELEASE_NOTES_V0.8.2.md +55 -0
  61. package/docs/RELEASE_NOTES_V0.8.20.md +49 -0
  62. package/docs/RELEASE_NOTES_V0.8.3.md +63 -0
  63. package/docs/RELEASE_NOTES_V0.8.4.md +45 -0
  64. package/docs/RELEASE_NOTES_V0.8.7.md +49 -0
  65. package/docs/RELEASE_NOTES_V0.8.8.md +63 -0
  66. package/docs/RELEASE_NOTES_V0.8.9.md +81 -0
  67. package/docs/RELEASE_NOTES_v0.7.0.md +142 -0
  68. package/docs/RELEASE_NOTES_v0.7.1.md +74 -0
  69. package/docs/TROUBLESHOOTING.md +122 -0
  70. package/index.ts +77 -0
  71. package/openclaw.plugin.json +551 -0
  72. package/package.json +147 -0
  73. package/skills/dingtalk-channel-rules/SKILL.md +91 -0
  74. package/skills/dingtalk-troubleshoot/SKILL.md +93 -0
  75. package/skills/dws-cli/SKILL.md +129 -0
  76. package/skills/dws-cli/references/error-codes.md +95 -0
  77. package/skills/dws-cli/references/field-rules.md +105 -0
  78. package/skills/dws-cli/references/global-reference.md +104 -0
  79. package/skills/dws-cli/references/intent-guide.md +114 -0
  80. package/skills/dws-cli/references/products/aitable.md +452 -0
  81. package/skills/dws-cli/references/products/attendance.md +93 -0
  82. package/skills/dws-cli/references/products/calendar.md +217 -0
  83. package/skills/dws-cli/references/products/chat.md +292 -0
  84. package/skills/dws-cli/references/products/contact.md +108 -0
  85. package/skills/dws-cli/references/products/ding.md +57 -0
  86. package/skills/dws-cli/references/products/report.md +162 -0
  87. package/skills/dws-cli/references/products/simple.md +128 -0
  88. package/skills/dws-cli/references/products/todo.md +138 -0
  89. package/skills/dws-cli/references/products/workbench.md +39 -0
  90. package/skills/dws-cli/references/recovery-guide.md +94 -0
  91. package/src/channel.ts +588 -0
  92. package/src/config/accounts.ts +242 -0
  93. package/src/config/schema.ts +180 -0
  94. package/src/core/connection.ts +741 -0
  95. package/src/core/message-handler.ts +1788 -0
  96. package/src/core/provider.ts +111 -0
  97. package/src/core/state.ts +54 -0
  98. package/src/device-auth-config.ts +14 -0
  99. package/src/device-auth.ts +197 -0
  100. package/src/directory.ts +95 -0
  101. package/src/docs.ts +293 -0
  102. package/src/game-xiyou/achievement-engine.ts +252 -0
  103. package/src/game-xiyou/bounty-system.ts +315 -0
  104. package/src/game-xiyou/commands.ts +223 -0
  105. package/src/game-xiyou/drop-engine.ts +241 -0
  106. package/src/game-xiyou/encounter-system.ts +135 -0
  107. package/src/game-xiyou/escape-engine.ts +164 -0
  108. package/src/game-xiyou/exp-calculator.ts +139 -0
  109. package/src/game-xiyou/index.ts +479 -0
  110. package/src/game-xiyou/level-system.ts +91 -0
  111. package/src/game-xiyou/monster-pool.ts +180 -0
  112. package/src/game-xiyou/pity-counter.ts +114 -0
  113. package/src/game-xiyou/random-event-engine.ts +648 -0
  114. package/src/game-xiyou/renderer.ts +679 -0
  115. package/src/game-xiyou/storage.ts +218 -0
  116. package/src/game-xiyou/treasure-system.ts +105 -0
  117. package/src/game-xiyou/types.ts +582 -0
  118. package/src/game-xiyou/uid-resolver.ts +49 -0
  119. package/src/gateway-methods.ts +740 -0
  120. package/src/onboarding.ts +553 -0
  121. package/src/policy.ts +32 -0
  122. package/src/probe.ts +210 -0
  123. package/src/reply-dispatcher.ts +874 -0
  124. package/src/runtime.ts +32 -0
  125. package/src/sdk/helpers.ts +322 -0
  126. package/src/sdk/types.ts +519 -0
  127. package/src/secret-input.ts +19 -0
  128. package/src/services/media/audio.ts +54 -0
  129. package/src/services/media/chunk-upload.ts +296 -0
  130. package/src/services/media/common.ts +155 -0
  131. package/src/services/media/file.ts +75 -0
  132. package/src/services/media/image.ts +81 -0
  133. package/src/services/media/index.ts +10 -0
  134. package/src/services/media/video.ts +162 -0
  135. package/src/services/media.ts +1143 -0
  136. package/src/services/messaging/card.ts +604 -0
  137. package/src/services/messaging/index.ts +18 -0
  138. package/src/services/messaging/mentions.ts +267 -0
  139. package/src/services/messaging/send.ts +141 -0
  140. package/src/services/messaging.ts +1191 -0
  141. package/src/services/reply-markers.ts +55 -0
  142. package/src/targets.ts +45 -0
  143. package/src/types/index.ts +59 -0
  144. package/src/types/pdf-parse.d.ts +3 -0
  145. package/src/utils/agent.ts +63 -0
  146. package/src/utils/async.ts +51 -0
  147. package/src/utils/constants.ts +27 -0
  148. package/src/utils/http-client.ts +38 -0
  149. package/src/utils/index.ts +8 -0
  150. package/src/utils/logger.ts +78 -0
  151. package/src/utils/session.ts +147 -0
  152. package/src/utils/token.ts +93 -0
  153. package/src/utils/utils-legacy.ts +454 -0
  154. package/tsconfig.json +20 -0
@@ -0,0 +1,551 @@
1
+ {
2
+ "id": "dingtalk-connector",
3
+ "name": "DingTalk Channel",
4
+ "version": "0.8.20",
5
+ "description": "Official OpenClaw DingTalk channel plugin | 钉钉官方 OpenClaw 插件",
6
+ "author": "DingTalk Real Team",
7
+ "main": "index.ts",
8
+ "channels": [
9
+ "dingtalk-connector"
10
+ ],
11
+ "skills": ["./skills"],
12
+ "configSchema": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "cardTemplateId": { "type": "string" },
17
+ "cardContentVar": { "type": "string", "default": "msgContent" }
18
+ }
19
+ },
20
+ "channelConfigs": {
21
+ "dingtalk-connector": {
22
+ "label": "DingTalk",
23
+ "description": "钉钉企业内部机器人,使用 Stream 模式,无需公网 IP,支持 AI Card 流式响应。",
24
+ "schema": {
25
+ "type": "object",
26
+ "properties": {
27
+ "enabled": {
28
+ "type": "boolean"
29
+ },
30
+ "defaultAccount": {
31
+ "type": "string"
32
+ },
33
+ "clientId": {
34
+ "anyOf": [
35
+ {
36
+ "type": "string"
37
+ },
38
+ {
39
+ "type": "number"
40
+ }
41
+ ]
42
+ },
43
+ "clientSecret": {
44
+ "anyOf": [
45
+ {
46
+ "type": "string"
47
+ },
48
+ {
49
+ "type": "object",
50
+ "properties": {
51
+ "source": {
52
+ "type": "string",
53
+ "enum": [
54
+ "env",
55
+ "file",
56
+ "exec"
57
+ ]
58
+ },
59
+ "provider": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "id": {
64
+ "type": "string",
65
+ "minLength": 1
66
+ }
67
+ },
68
+ "required": [
69
+ "source",
70
+ "provider",
71
+ "id"
72
+ ],
73
+ "additionalProperties": false
74
+ }
75
+ ]
76
+ },
77
+ "enableMediaUpload": {
78
+ "type": "boolean"
79
+ },
80
+ "systemPrompt": {
81
+ "type": "string"
82
+ },
83
+ "dmPolicy": {
84
+ "default": "open",
85
+ "type": "string",
86
+ "enum": [
87
+ "open",
88
+ "pairing",
89
+ "allowlist"
90
+ ]
91
+ },
92
+ "allowFrom": {
93
+ "type": "array",
94
+ "items": {
95
+ "anyOf": [
96
+ {
97
+ "type": "string"
98
+ },
99
+ {
100
+ "type": "number"
101
+ }
102
+ ]
103
+ }
104
+ },
105
+ "groupPolicy": {
106
+ "default": "open",
107
+ "type": "string",
108
+ "enum": [
109
+ "open",
110
+ "allowlist",
111
+ "disabled"
112
+ ]
113
+ },
114
+ "groupAllowFrom": {
115
+ "type": "array",
116
+ "items": {
117
+ "anyOf": [
118
+ {
119
+ "type": "string"
120
+ },
121
+ {
122
+ "type": "number"
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ "requireMention": {
128
+ "default": true,
129
+ "type": "boolean"
130
+ },
131
+ "groups": {
132
+ "type": "object",
133
+ "additionalProperties": {
134
+ "type": "object",
135
+ "properties": {
136
+ "requireMention": {
137
+ "type": "boolean"
138
+ },
139
+ "tools": {
140
+ "type": "object",
141
+ "properties": {
142
+ "allow": {
143
+ "type": "array",
144
+ "items": {
145
+ "type": "string"
146
+ }
147
+ },
148
+ "deny": {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "string"
152
+ }
153
+ }
154
+ },
155
+ "additionalProperties": false
156
+ },
157
+ "enabled": {
158
+ "type": "boolean"
159
+ },
160
+ "allowFrom": {
161
+ "type": "array",
162
+ "items": {
163
+ "anyOf": [
164
+ {
165
+ "type": "string"
166
+ },
167
+ {
168
+ "type": "number"
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ "systemPrompt": {
174
+ "type": "string"
175
+ },
176
+ "groupSessionScope": {
177
+ "type": "string",
178
+ "enum": [
179
+ "group",
180
+ "group_sender"
181
+ ]
182
+ }
183
+ },
184
+ "additionalProperties": false
185
+ }
186
+ },
187
+ "historyLimit": {
188
+ "type": "integer",
189
+ "minimum": 0
190
+ },
191
+ "textChunkLimit": {
192
+ "type": "integer",
193
+ "exclusiveMinimum": 0
194
+ },
195
+ "mediaMaxMb": {
196
+ "type": "number",
197
+ "exclusiveMinimum": 0
198
+ },
199
+ "tools": {
200
+ "type": "object",
201
+ "properties": {
202
+ "docs": {
203
+ "type": "boolean"
204
+ },
205
+ "media": {
206
+ "type": "boolean"
207
+ }
208
+ },
209
+ "additionalProperties": false
210
+ },
211
+ "typingIndicator": {
212
+ "type": "boolean"
213
+ },
214
+ "resolveSenderNames": {
215
+ "type": "boolean"
216
+ },
217
+ "separateSessionByConversation": {
218
+ "default": true,
219
+ "type": "boolean"
220
+ },
221
+ "sharedMemoryAcrossConversations": {
222
+ "default": false,
223
+ "type": "boolean"
224
+ },
225
+ "groupSessionScope": {
226
+ "default": "group",
227
+ "type": "string",
228
+ "enum": [
229
+ "group",
230
+ "group_sender"
231
+ ]
232
+ },
233
+ "asyncMode": {
234
+ "type": "boolean"
235
+ },
236
+ "ackText": {
237
+ "type": "string"
238
+ },
239
+ "endpoint": {
240
+ "type": "string"
241
+ },
242
+ "debug": {
243
+ "type": "boolean"
244
+ },
245
+ "groupReplyMode": {
246
+ "type": "string",
247
+ "enum": [
248
+ "aicard",
249
+ "text",
250
+ "markdown"
251
+ ]
252
+ },
253
+ "cardTemplateId": {
254
+ "type": "string"
255
+ },
256
+ "cardContentVar": {
257
+ "type": "string",
258
+ "default": "msgContent"
259
+ },
260
+ "cardProcessVar": {
261
+ "type": "string"
262
+ },
263
+ "cardToolVar": {
264
+ "type": "string"
265
+ },
266
+ "accounts": {
267
+ "type": "object",
268
+ "additionalProperties": {
269
+ "type": "object",
270
+ "properties": {
271
+ "enabled": {
272
+ "type": "boolean"
273
+ },
274
+ "name": {
275
+ "type": "string"
276
+ },
277
+ "clientId": {
278
+ "anyOf": [
279
+ {
280
+ "type": "string"
281
+ },
282
+ {
283
+ "type": "number"
284
+ }
285
+ ]
286
+ },
287
+ "clientSecret": {
288
+ "anyOf": [
289
+ {
290
+ "type": "string"
291
+ },
292
+ {
293
+ "type": "object",
294
+ "properties": {
295
+ "source": {
296
+ "type": "string",
297
+ "enum": [
298
+ "env",
299
+ "file",
300
+ "exec"
301
+ ]
302
+ },
303
+ "provider": {
304
+ "type": "string",
305
+ "minLength": 1
306
+ },
307
+ "id": {
308
+ "type": "string",
309
+ "minLength": 1
310
+ }
311
+ },
312
+ "required": [
313
+ "source",
314
+ "provider",
315
+ "id"
316
+ ],
317
+ "additionalProperties": false
318
+ }
319
+ ]
320
+ },
321
+ "chatbotUserId": {
322
+ "type": "string"
323
+ },
324
+ "chatbotCorpId": {
325
+ "type": "string"
326
+ },
327
+ "dmPolicy": {
328
+ "type": "string",
329
+ "enum": [
330
+ "open",
331
+ "pairing",
332
+ "allowlist"
333
+ ]
334
+ },
335
+ "allowFrom": {
336
+ "type": "array",
337
+ "items": {
338
+ "anyOf": [
339
+ {
340
+ "type": "string"
341
+ },
342
+ {
343
+ "type": "number"
344
+ }
345
+ ]
346
+ }
347
+ },
348
+ "groupPolicy": {
349
+ "type": "string",
350
+ "enum": [
351
+ "open",
352
+ "allowlist",
353
+ "disabled"
354
+ ]
355
+ },
356
+ "groupAllowFrom": {
357
+ "type": "array",
358
+ "items": {
359
+ "anyOf": [
360
+ {
361
+ "type": "string"
362
+ },
363
+ {
364
+ "type": "number"
365
+ }
366
+ ]
367
+ }
368
+ },
369
+ "requireMention": {
370
+ "type": "boolean"
371
+ },
372
+ "groups": {
373
+ "type": "object",
374
+ "additionalProperties": {
375
+ "type": "object",
376
+ "properties": {
377
+ "requireMention": {
378
+ "type": "boolean"
379
+ },
380
+ "tools": {
381
+ "type": "object",
382
+ "properties": {
383
+ "allow": {
384
+ "type": "array",
385
+ "items": {
386
+ "type": "string"
387
+ }
388
+ },
389
+ "deny": {
390
+ "type": "array",
391
+ "items": {
392
+ "type": "string"
393
+ }
394
+ }
395
+ },
396
+ "additionalProperties": false
397
+ },
398
+ "enabled": {
399
+ "type": "boolean"
400
+ },
401
+ "allowFrom": {
402
+ "type": "array",
403
+ "items": {
404
+ "anyOf": [
405
+ {
406
+ "type": "string"
407
+ },
408
+ {
409
+ "type": "number"
410
+ }
411
+ ]
412
+ }
413
+ },
414
+ "systemPrompt": {
415
+ "type": "string"
416
+ },
417
+ "groupSessionScope": {
418
+ "type": "string",
419
+ "enum": [
420
+ "group",
421
+ "group_sender"
422
+ ]
423
+ }
424
+ },
425
+ "additionalProperties": false
426
+ }
427
+ },
428
+ "historyLimit": {
429
+ "type": "integer",
430
+ "minimum": 0
431
+ },
432
+ "textChunkLimit": {
433
+ "type": "integer",
434
+ "exclusiveMinimum": 0
435
+ },
436
+ "mediaMaxMb": {
437
+ "type": "number",
438
+ "exclusiveMinimum": 0
439
+ },
440
+ "tools": {
441
+ "type": "object",
442
+ "properties": {
443
+ "docs": {
444
+ "type": "boolean"
445
+ },
446
+ "media": {
447
+ "type": "boolean"
448
+ }
449
+ },
450
+ "additionalProperties": false
451
+ },
452
+ "typingIndicator": {
453
+ "type": "boolean"
454
+ },
455
+ "resolveSenderNames": {
456
+ "type": "boolean"
457
+ },
458
+ "separateSessionByConversation": {
459
+ "type": "boolean"
460
+ },
461
+ "sharedMemoryAcrossConversations": {
462
+ "type": "boolean"
463
+ },
464
+ "groupSessionScope": {
465
+ "type": "string",
466
+ "enum": [
467
+ "group",
468
+ "group_sender"
469
+ ]
470
+ },
471
+ "asyncMode": {
472
+ "type": "boolean"
473
+ },
474
+ "ackText": {
475
+ "type": "string"
476
+ },
477
+ "endpoint": {
478
+ "type": "string"
479
+ },
480
+ "debug": {
481
+ "type": "boolean"
482
+ },
483
+ "groupReplyMode": {
484
+ "type": "string",
485
+ "enum": [
486
+ "aicard",
487
+ "text",
488
+ "markdown"
489
+ ]
490
+ },
491
+ "cardTemplateId": {
492
+ "type": "string"
493
+ },
494
+ "cardContentVar": {
495
+ "type": "string",
496
+ "default": "msgContent"
497
+ },
498
+ "cardProcessVar": {
499
+ "type": "string"
500
+ },
501
+ "cardToolVar": {
502
+ "type": "string"
503
+ }
504
+ },
505
+ "additionalProperties": false
506
+ }
507
+ }
508
+ },
509
+ "additionalProperties": false
510
+ },
511
+ "uiHints": {
512
+ "channels.dingtalk-connector.clientId": {
513
+ "label": "Client ID (AppKey)",
514
+ "help": "钉钉应用的 AppKey / Client ID",
515
+ "sensitive": true
516
+ },
517
+ "channels.dingtalk-connector.clientSecret": {
518
+ "label": "Client Secret (AppSecret)",
519
+ "help": "钉钉应用的 AppSecret / Client Secret",
520
+ "sensitive": true
521
+ },
522
+ "channels.dingtalk-connector.dmPolicy": {
523
+ "label": "DM Policy",
524
+ "help": "单聊策略:open(开放)、pairing(配对)、allowlist(白名单)"
525
+ },
526
+ "channels.dingtalk-connector.groupPolicy": {
527
+ "label": "Group Policy",
528
+ "help": "群聊策略:open(开放)、allowlist(白名单)、disabled(禁用)"
529
+ },
530
+ "channels.dingtalk-connector.requireMention": {
531
+ "label": "Require @Mention",
532
+ "help": "群聊中是否需要 @机器人 才响应"
533
+ },
534
+ "channels.dingtalk-connector.debug": {
535
+ "label": "Debug Mode",
536
+ "help": "启用调试日志",
537
+ "advanced": true
538
+ },
539
+ "channels.dingtalk-connector.endpoint": {
540
+ "label": "Gateway Endpoint",
541
+ "help": "自定义 DWClient 网关地址(高级)",
542
+ "advanced": true
543
+ },
544
+ "channels.dingtalk-connector.accounts": {
545
+ "label": "Accounts",
546
+ "help": "多账号配置,每个 key 是账号 ID"
547
+ }
548
+ }
549
+ }
550
+ }
551
+ }
package/package.json ADDED
@@ -0,0 +1,147 @@
1
+ {
2
+ "name": "@jeik/dingtalk-connector",
3
+ "version": "0.8.21-fix1",
4
+ "description": "OpenClaw DingTalk channel plugin (fork) | 钉钉 OpenClaw 渠道插件(fork 自官方,含标记/卡片渲染修复)",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "import": {
9
+ "types": "./dist/index.d.mts",
10
+ "default": "./dist/index.mjs"
11
+ }
12
+ },
13
+ "./bundled": {
14
+ "import": {
15
+ "types": "./dist/entry-bundled.d.mts",
16
+ "default": "./dist/entry-bundled.mjs"
17
+ }
18
+ }
19
+ },
20
+ "main": "./dist/index.mjs",
21
+ "types": "./dist/index.d.mts",
22
+ "bin": {
23
+ "dingtalk-connector": "./bin/dingtalk-connector.js"
24
+ },
25
+ "files": [
26
+ "bin/",
27
+ "dist/",
28
+ "skills/",
29
+ "src/",
30
+ "index.ts",
31
+ "docs/*.md",
32
+ "openclaw.plugin.json",
33
+ "tsconfig.json",
34
+ "LICENSE",
35
+ "README.md",
36
+ "README.en.md",
37
+ "CHANGELOG.md"
38
+ ],
39
+ "scripts": {
40
+ "build": "tsdown",
41
+ "prepublishOnly": "npm run build",
42
+ "lint": "echo 'Lint check skipped'",
43
+ "lint:fix": "echo 'Lint fix skipped'",
44
+ "test": "vitest run tests/gateway-methods.unit.test.ts",
45
+ "test:unit": "vitest run tests/gateway-methods.unit.test.ts",
46
+ "test:integration": "vitest run tests/gateway-methods.unit.test.ts",
47
+ "test:all": "vitest run",
48
+ "test:watch": "vitest watch",
49
+ "test:ui": "vitest --ui",
50
+ "test:coverage": "vitest run --coverage --exclude tests/gateway-methods.test.ts",
51
+ "type-check": "npx tsc --noEmit",
52
+ "version:check": "echo 'Version check skipped'",
53
+ "release:prepare": "echo 'Release prepare skipped'",
54
+ "release:publish": "npm publish --access public",
55
+ "release:verify": "npm view @dingtalk-real-ai/dingtalk-connector version",
56
+ "clean": "rm -rf node_modules package-lock.json",
57
+ "install:fresh": "npm run clean && npm install",
58
+ "dev": "echo 'Run: openclaw start'",
59
+ "validate": "npm run lint && npm run type-check && npm run version:check",
60
+ "prepack": "node -e \"const fs=require('fs'),p=JSON.parse(fs.readFileSync('package.json','utf8'));p._devDependencies=p.devDependencies;delete p.devDependencies;fs.writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n')\"",
61
+ "postpack": "node -e \"const fs=require('fs'),p=JSON.parse(fs.readFileSync('package.json','utf8'));if(p._devDependencies){p.devDependencies=p._devDependencies;delete p._devDependencies;fs.writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n')}\""
62
+ },
63
+ "keywords": [
64
+ "openclaw",
65
+ "openclaw-plugin",
66
+ "dingtalk",
67
+ "dingtalk-bot",
68
+ "dingtalk-stream",
69
+ "钉钉",
70
+ "钉钉机器人",
71
+ "channel",
72
+ "ai-card",
73
+ "ai-agent",
74
+ "multi-agent",
75
+ "streaming",
76
+ "chatbot",
77
+ "connector",
78
+ "deap-agent"
79
+ ],
80
+ "author": "jeik",
81
+ "license": "MIT",
82
+ "repository": {
83
+ "type": "git",
84
+ "url": "git+https://github.com/jeikl/dingtalk-openclaw-connector-fix-Community.git"
85
+ },
86
+ "homepage": "https://github.com/jeikl/dingtalk-openclaw-connector-fix-Community#readme",
87
+ "bugs": "https://github.com/jeikl/dingtalk-openclaw-connector-fix-Community/issues",
88
+ "publishConfig": {
89
+ "access": "public",
90
+ "registry": "https://registry.npmjs.org"
91
+ },
92
+ "dependencies": {
93
+ "axios": "1.14.0",
94
+ "dingtalk-stream": "2.1.4",
95
+ "form-data": "4.0.0",
96
+ "qrcode-terminal": "0.12.0",
97
+ "zod": "4.3.6"
98
+ },
99
+ "optionalDependencies": {
100
+ "mammoth": "^1.8.0"
101
+ },
102
+ "peerDependencies": {
103
+ "openclaw": ">=2026.4.9"
104
+ },
105
+ "peerDependenciesMeta": {
106
+ "openclaw": {
107
+ "optional": true
108
+ }
109
+ },
110
+ "openclaw": {
111
+ "channels": [
112
+ "dingtalk-connector"
113
+ ],
114
+ "extensions": [
115
+ "./dist/index.mjs"
116
+ ],
117
+ "channel": {
118
+ "id": "dingtalk-connector",
119
+ "label": "DingTalk",
120
+ "selectionLabel": "DingTalk (钉钉)",
121
+ "docsPath": "/channels/dingtalk-connector",
122
+ "docsLabel": "dingtalk-connector",
123
+ "blurb": "钉钉企业内部机器人,使用 Stream 模式,无需公网 IP,支持 AI Card 流式响应。",
124
+ "aliases": [
125
+ "dd",
126
+ "ding"
127
+ ],
128
+ "order": 35,
129
+ "quickstartAllowFrom": true
130
+ },
131
+ "install": {
132
+ "npmSpec": "@jeik/dingtalk-connector",
133
+ "localPath": "extensions/dingtalk",
134
+ "defaultChoice": "npm"
135
+ },
136
+ "installDependencies": true
137
+ },
138
+ "_devDependencies": {
139
+ "@types/node": "^20.19.37",
140
+ "@vitest/coverage-v8": "^2.0.0",
141
+ "@vitest/ui": "^2.1.9",
142
+ "openclaw": "^2026.4.9",
143
+ "tsdown": "^0.21.4",
144
+ "typescript": "^5.6.0",
145
+ "vitest": "^2.1.9"
146
+ }
147
+ }