wsz987/dsh-channels--packages-channel-dingtalk2

@wsz987/channel-dingtalk

DingTalk channel adapter for DeepSeek Harness (AI Card streaming, edit strategy)

AI 分析

核心用途是将 DSH 的 AI 能力接入钉钉。适合需要通过钉钉群聊或单聊与 DSH Agent 交互,并要求支持富文本卡片流式更新的企业或个人用户。

パッケージ
@wsz987/channel-dingtalk
バージョン
0.7.0
ライセンス
MIT
最終更新
2026/08/16

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Configuration

SDK mode:

- id: channels-dingtalk
  name: '@wsz987/channel-dingtalk'
  inject: [channels, credentials, channelControl]
  config:
    enabled: true
    accountId: main
    upstream:
      mode: sdk
      clientId: "ding-xxx"             # AppKey(非机密)
      # clientSecretRef 默认 DSH_CHANNEL_DINGTALK_MAIN_CLIENT_SECRET
      # 真实 AppSecret 只存 ctx.credentials
    card:
      createOnFirstDelta: true

Gateway mode (legacy, self-hosted HTTP gateway):

- id: channels-dingtalk
  name: '@wsz987/channel-dingtalk'
  inject: [channels, credentials, channelControl]
  config:
    enabled: true
    accountId: main
    upstream:
      mode: gateway
    baseUrl: http://127.0.0.1:9100
    longPollTimeoutMs: 25000

The AppSecret is resolved through ctx.credentials at startup and injected as deps.clientSecret. A legacy plaintext upstream.clientSecret is migrated into the credentials seam once and then deleted.