wsz987/dsh-channels--packages-channel-dingtalk ↗★ 2

@wsz987/channel-dingtalk

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

Package
@wsz987/channel-dingtalk
Compatibility
Unverified
Version
0.7.0
License
MIT
Last updated
Aug 16, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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.