@ccchase/dsh-plugin-weixin
v0.1.0
Published
WeChat (Tencent iLink Bot) bridge plugin for DeepSeek Harness — talks to your WeChat, agent replies from DSH
Readme
@ccchase/dsh-plugin-weixin
WeChat bridge plugin for DeepSeek Harness — 用微信跟你 DSH 里的 agent 对话。
基于腾讯官方 @tencent-weixin/openclaw-weixin(iLink Bot 通道), 不需要 openclaw 本体:包内自带的 openclaw SDK stub 让腾讯插件以为自己在 openclaw 里运行(鸠占鹊巢)。
安装
npm install @ccchase/dsh-plugin-weixinDSH 配置(~/.dsh/profiles/web/cordis.patch.yml):
- insert:
- id: weixin-bridge
name: '@ccchase/dsh-plugin-weixin'
config:
cwd: 'C:\Users\you' # agent 会话工作目录,默认用户主目录
autoStart: true登录(首次)
npx @ccchase/dsh-plugin-weixin login # 或 node node_modules/@ccchase/dsh-plugin-weixin/scripts/login.mjs手机微信扫码确认,凭据存 ~/.openclaw/openclaw-weixin/accounts/。
工作原理
微信用户 → 腾讯 iLink Bot API (ilinkai.weixin.qq.com)
↑ 长轮询 getupdates + contextToken 回显
bridge.js(本插件进程内)
↓ HTTP/WebSocket (127.0.0.1:3080)
DSH harness(session.prompt + events.mux 事件流)- 每个微信用户固定映射一个 DSH 会话(
~/.openclaw/openclaw-weixin/dsh-bridge-state.json记录) - 消息串行处理,agent 回复完整后发回微信
- 独立运行(不挂 DSH):
node node_modules/@ccchase/dsh-plugin-weixin/lib/bridge.js,环境变量BRIDGE_CWD覆盖工作目录
