zhengmz/dsh-wecom-plugin0

dsh-wecom-plugin

Minimal feasibility demo: bridge WeCom (企业微信智能机器人 aibot WebSocket) to DeepSeek Harness (DSH) — no public endpoint needed.

包名
dsh-wecom-plugin
版本
0.1.0
许可证
MIT
最近更新
2026年9月8日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhengmz/dsh-wecom-plugin

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
syncUserPrefixGUI 消息同步到企微时的标注前缀(协议只能以机器人身份发送,标签标明是你发的;空=不标注)📱 你在 Web GUI 发送:
pluginVersionenter_check_update 版本探针应答0.1.0
subscribeExtra订阅帧额外字段(如 scene/plug_version),原样合并进 aibot_subscribe body{}
welcomeTextenter_chat 事件欢迎语,空=不发''
agent.presetagent preset''(profile 默认)
agent.cwd默认工作目录(可用 /cd 切换)dsh 进程 cwd
agent.provider/model覆盖模型路由,空=部署默认''
agent.reasoningEffort企微 agent 推理等级;空=跟随部署默认(settings 的 agent-default-model.reasoningEffort,与 GUI 一致)''
agent.conciseOutput企微 agent 注册"只输出结论" system-prompt sectiontrue
agent.cdAllowPaths允许 /cd ;默认 false 只允许配置的 workspaces 别名(防 IM 用户把 agent 指向任意目录)false
agent.sessionScope会话隔离:chat(每群一个,成员共享)/ chat-userper-channel-peer(OpenClaw session.dmScope 同义,每群每成员一个,推荐共享用)/ user(每成员一个跨群)chat
agent.groupMention群聊提及门控:none(每条都回)/ at(仅 @机器人 时回)/ at-or-quote(@ 或 引用/回复消息时回);斜杠命令始终放行none
agent.botName机器人显示名,用于 @提及 检测(如 你的机器人名''
agent.maxMessageLength单条回复上限,超出分块4000
agent.idleTimeoutMs会话闲置回收,0=不回收30min