Mochabafey/whale-notify--plugins-dsh-whale-notify4

dsh-whale-notify

鲸鱼通知:任务完成通知与邮件问答/回复指挥插件

AI 分析

核心用途是提供任务完成通知、邮件提问及回复注入会话功能,支持飞书、微信、钉钉等渠道。适合需要多渠道通知、远程邮件交互和飞书双向聊天的 DSH 用户。

包名
dsh-whale-notify
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

dsh-whale-notify(鲸鱼通知)

DeepSeek Harness(DSH)的通知、聊天机器人、记忆与学习插件。

📚 完整文档

工具

工具说明
notify(title, message, channel?, level?, awaitReply?)发送通知:飞书开放平台 / 微信 Server酱 / 飞书 webhook / 企业微信 / 钉钉 / 邮箱。awaitReply:true 时邮件可回复指挥
ask_user_email(question, context?, options?)发邮件向用户提问,回复自动注入会话
飞书双向聊天飞书里给机器人发消息 → 注入 DSH 会话(长连接接收)

安装

  1. 将本目录复制到 DSH profile 的 node_modules(如 $DSH_HOME\profiles\node_modules\dsh-whale-notify
  2. 安装依赖:cd && npm install imapflow @larksuiteoapi/node-sdk
  3. 在 preset 的 agent.cordis.yml 加行:
- id: tool-notify
  name: 'dsh-whale-notify'
  config:
    smtp:
      host: 'smtp.feishu.cn'
      port: 587
      secure: false
      user: 'your-mailbox@example.com'
      pass: '$ENV:FEISHU_SMTP_PASS'
      from: 'your-mailbox@example.com'
      to: ['you@example.com']
    imap:
      host: 'imap.feishu.cn'
      port: 993
      secure: true
      user: 'your-mailbox@example.com'
      pass: '$ENV:FEISHU_SMTP_PASS'
      mailbox: 'INBOX'
    pollIntervalMs: 30000

完整配置示例见仓库 examples/agent.cordis.whale.yml。密钥一律用 $ENV:变量名,勿写明文。

依赖

  • peerDependencies:@deepseek-ai/cordis@deepseek-ai/dsh-tools
  • 运行时:imapflowask_user_email 收信)、@larksuiteoapi/node-sdk(飞书长连接接收)
  • 插件需注入 timer 服务(host 层提供):inject: ["tools", "timer"]

许可

MIT