@soimy/dingtalk 3.5.1 → 3.5.3

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 (36) hide show
  1. package/README.md +13 -24
  2. package/openclaw.plugin.json +695 -0
  3. package/package.json +12 -7
  4. package/src/ack-reaction-service.ts +1 -1
  5. package/src/auth.ts +1 -1
  6. package/src/card/card-action-handler.ts +1 -1
  7. package/src/card/card-stop-handler.ts +1 -1
  8. package/src/card/card-streaming-mode.ts +30 -0
  9. package/src/card/reasoning-answer-split.ts +162 -0
  10. package/src/card/reasoning-block-assembler.ts +157 -0
  11. package/src/card-callback-service.ts +1 -1
  12. package/src/card-draft-controller.ts +117 -6
  13. package/src/card-service.ts +112 -1
  14. package/src/channel.ts +131 -96
  15. package/src/command/card-stop-command.ts +4 -22
  16. package/src/command/inbound-command-dispatch-service.ts +464 -0
  17. package/src/config-schema.ts +62 -38
  18. package/src/config.ts +25 -3
  19. package/src/docs-service.ts +5 -5
  20. package/src/http-client.ts +20 -0
  21. package/src/inbound-handler.ts +475 -501
  22. package/src/logger-context.ts +16 -2
  23. package/src/media-utils.ts +166 -10
  24. package/src/message-utils.ts +33 -5
  25. package/src/{attachment-text-extractor.ts → messaging/attachment-text-extractor.ts} +1 -1
  26. package/src/{quoted-file-service.ts → messaging/quoted-file-service.ts} +14 -9
  27. package/src/onboarding.ts +29 -0
  28. package/src/plugin-sdk-channel-actions-augment.ts +11 -0
  29. package/src/reply-strategy-card.ts +294 -28
  30. package/src/reply-strategy-markdown.ts +124 -19
  31. package/src/reply-strategy.ts +22 -2
  32. package/src/send-service.ts +178 -7
  33. package/src/targeting/agent-routing.ts +55 -32
  34. package/src/{group-members-store.ts → targeting/group-members-store.ts} +1 -1
  35. package/src/types.ts +60 -4
  36. package/src/utils.ts +190 -0
package/README.md CHANGED
@@ -8,8 +8,8 @@
8
8
  <a href="https://github.com/openclaw/openclaw"><img alt="OpenClaw" src="https://img.shields.io/badge/OpenClaw-%3E%3D2026.3.24-0A7CFF"></a>
9
9
  <a href="https://www.npmjs.com/package/@soimy/dingtalk"><img alt="npm version" src="https://img.shields.io/npm/v/%40soimy%2Fdingtalk"></a>
10
10
  <a href="https://www.npmjs.com/package/@soimy/dingtalk"><img alt="npm downloads" src="https://img.shields.io/npm/dm/%40soimy%2Fdingtalk"></a>
11
- <a href="https://github.com/soimy/openclaw-channel-dingtalk/actions/workflows/docs-pages.yml"><img alt="Docs" src="https://img.shields.io/github/actions/workflow/status/soimy/openclaw-channel-dingtalk/docs-pages.yml?branch=main&label=Docs"></a>
12
11
  <a href="https://github.com/soimy/openclaw-channel-dingtalk/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/soimy/openclaw-channel-dingtalk"></a>
12
+ <a href="https://github.com/soimy/openclaw-channel-dingtalk/blob/main/CITATION.cff"><img alt="Citation" src="https://img.shields.io/badge/Citation-CITATION.cff-1277B5"></a>
13
13
  </p>
14
14
 
15
15
  针对 OpenClaw 的钉钉企业内部机器人 Channel 渠道插件,使用 Stream 模式,无需公网 IP。
@@ -25,37 +25,26 @@
25
25
  - 支持实时中止当前 AI generation。常用停止指令包括 `停止`、`stop`、`/stop`、`esc` 等
26
26
  - 接入 OpenClaw 消息处理与 outbound 能力
27
27
 
28
+ > [!IMPORTANT]
29
+ > 根据钉钉开放平台公告《[关于限时开放钉钉PaaS资源不限量额度以助力企业AI智能体集成的公告](https://open.dingtalk.com/document/development/open-ai-paas-report)》(更新于 `2026-03-11`),OpenClaw 调用钉钉 `API/Webhook/Stream` 的免费“不限量”额度默认有效至 `2026-03-31`;如已通过官方申请通道获批,豁免权益最晚有效至 `2026-04-30`。部署前请前往“钉钉开发者后台 -> 资源管理”核对当前额度状态。
30
+
28
31
  ## 文档入口
29
32
 
30
- - 文档站点:<https://soimy.github.io/openclaw-channel-dingtalk/>
33
+ - 线上文档站点:<https://dingtalk-channel.nanoo.app/>
31
34
  - 用户文档入口:[docs/user/index.md](docs/user/index.md)
32
35
  - 参与贡献入口:[docs/contributor/index.md](docs/contributor/index.md)
33
36
  - 发布记录:[docs/releases/index.md](docs/releases/index.md)
34
37
  - 英文入口:[docs/en/index.md](docs/en/index.md)
35
38
 
39
+ ## 引用与署名
40
+
41
+ - GitHub / 机器可读引用元数据:[CITATION.cff](https://github.com/soimy/openclaw-channel-dingtalk/blob/main/CITATION.cff)
42
+ - 维护者对复用、引用与 AI 协作场景的署名请求:[docs/contributor/citation-and-attribution.md](docs/contributor/citation-and-attribution.md)
43
+
36
44
  ## 安装
37
45
 
38
46
  > [!IMPORTANT]
39
47
  > 最小兼容版本为 `OpenClaw 2026.3.24`。安装前请先升级到最新版 OpenClaw。
40
- >
41
- > 由于上游 ClawHub 安装链路目前存在 bug,暂时无法稳定通过 `openclaw plugins install @soimy/dingtalk` 完成安装。
42
- > 当前推荐使用源码链接安装:
43
- >
44
- > ```bash
45
- > git clone https://github.com/soimy/openclaw-channel-dingtalk.git
46
- > cd openclaw-channel-dingtalk
47
- > npm install # 或 pnpm install
48
- > openclaw plugins install -l .
49
- > ```
50
- >
51
- > 详见下方:[本地开发或联调可使用源码链接安装](#本地开发或联调可使用源码链接安装)
52
-
53
- 如需关注上游修复进展:
54
-
55
- - ClawHub scoped package install bug: <https://github.com/openclaw/openclaw/issues/56452>
56
- - ClawHub plugin package owner controls: <https://github.com/openclaw/openclaw/issues/56451>
57
-
58
- 历史 npm 安装命令如下,但在上游修复前不推荐使用:
59
48
 
60
49
  ```bash
61
50
  openclaw plugins install @soimy/dingtalk
@@ -63,7 +52,7 @@ openclaw plugins install @soimy/dingtalk
63
52
 
64
53
  ### 本地开发或联调可使用源码链接安装
65
54
 
66
- 当前生产安装也建议使用源码链接安装:
55
+ 如需本地开发、调试或联调,可使用源码链接安装:
67
56
 
68
57
  ```bash
69
58
  git clone https://github.com/soimy/openclaw-channel-dingtalk.git
@@ -89,7 +78,7 @@ openclaw plugins install -l .
89
78
 
90
79
  ## 更新
91
80
 
92
- npm 安装来源:
81
+ ClawHub 安装来源:
93
82
 
94
83
  ```bash
95
84
  openclaw plugins update dingtalk
@@ -180,4 +169,4 @@ pnpm test
180
169
 
181
170
  ## 许可
182
171
 
183
- [MIT](LICENSE)
172
+ [MIT](https://github.com/soimy/openclaw-channel-dingtalk/blob/main/LICENSE)