dsh-wecom-plugin
Minimal feasibility demo: bridge WeCom (企业微信智能机器人 aibot WebSocket) to DeepSeek Harness (DSH) — no public endpoint needed.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhengmz/dsh-wecom-plugin说明文档
阅读完整 README ↗1. 确保本机 DSH 已配置一个可用的 LLM 提供方(即你的 DSH 默认模型),
配置项
| 键 | 含义 | 默认 |
|---|---|---|
botId / secret | 企微智能机器人凭据 | '' |
websocketUrl | 网关地址(本地 mock 测试时改) | wss://openws.work.weixin.qq.com |
allowedUserIds | 允许对话的企微 userid,空=放行所有 | [] |
workspaces | 工作区别名表(/cd 用),如 { web: /path/a, api: /path/b } | {} |
stateFile | 会话路由状态文件(chatId→sessionId,热重载不丢路由) | $DSH_HOME/dsh-wecom-plugin-state.json |
syncUserPrefix | GUI 消息同步到企微时的标注前缀(协议只能以机器人身份发送,标签标明是你发的;空=不标注) | 📱 你在 Web GUI 发送: |
pluginVersion | enter_check_update 版本探针应答 | 0.1.0 |
subscribeExtra | 订阅帧额外字段(如 scene/plug_version),原样合并进 aibot_subscribe body | {} |
welcomeText | enter_chat 事件欢迎语,空=不发 | '' |
agent.preset | agent preset | ''(profile 默认) |
agent.cwd | 默认工作目录(可用 /cd 切换) | dsh 进程 cwd |
agent.provider/model | 覆盖模型路由,空=部署默认 | '' |
agent.reasoningEffort | 企微 agent 推理等级;空=跟随部署默认(settings 的 agent-default-model.reasoningEffort,与 GUI 一致) | '' |
agent.conciseOutput | 企微 agent 注册"只输出结论" system-prompt section | true |
agent.cdAllowPaths | 允许 /cd ;默认 false 只允许配置的 workspaces 别名(防 IM 用户把 agent 指向任意目录) | false |
agent.sessionScope | 会话隔离:chat(每群一个,成员共享)/ chat-user 或 per-channel-peer(OpenClaw session.dmScope 同义,每群每成员一个,推荐共享用)/ user(每成员一个跨群) | chat |
agent.groupMention | 群聊提及门控:none(每条都回)/ at(仅 @机器人 时回)/ at-or-quote(@ 或 引用/回复消息时回);斜杠命令始终放行 | none |
agent.botName | 机器人显示名,用于 @提及 检测(如 你的机器人名) | '' |
agent.maxMessageLength | 单条回复上限,超出分块 | 4000 |
agent.idleTimeoutMs | 会话闲置回收,0=不回收 | 30min |