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

@wsz987/channel-dingtalk

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

包名
@wsz987/channel-dingtalk
版本
0.7.0
许可证
MIT
最近更新
2026年8月16日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 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.