wsz987/dsh-channels--packages-channel-lark2

@wsz987/channel-lark

Lark / Feishu channel adapter for DeepSeek Harness (threads, editable card streaming, edit strategy)

AI 分析

核心用途是将飞书/Lark 作为消息渠道接入 DeepSeek Harness,支持 SDK 和网关模式、卡片流式传输。适合需要在飞书企业内集成 DSH 智能体服务的团队。

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

インストール

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

ドキュメント

README 全文を読む ↗

Configuration

SDK mode:

- id: channels-lark
  name: '@wsz987/channel-lark'
  inject: [channels, credentials, channelControl]
  config:
    enabled: true
    accountId: main
    upstream:
      mode: sdk
      appId: "cli_xxx"                 # AppId(非机密)
      domain: feishu                   # feishu(国内)| lark(海外)
      # appSecretRef 默认 DSH_CHANNEL_LARK_MAIN_APP_SECRET
      # 真实 AppSecret 只存 ctx.credentials
    card:
      createOnFirstDelta: true
      typingIndicator: true

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

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

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