D
dsh-im-weixin
v1.0.5 · 3 天前发布
微信渠道适配器(dsh-im 插件家族):腾讯 iLink 个人微信机器人,官方协议 getupdates 长轮询免公网;npx -y dsh-im-weixin-qr 扫码绑定。
README
dsh-im-weixin(微信适配器)
腾讯 iLink 个人微信机器人(官方协议,协议格式源自腾讯开源 MIT 项目
Tencent/openclaw-weixin)。
getupdates 长轮询,免公网(不需要隧道/回调 URL)。
平台四件事
| # | 事项 | 说明 |
|---|---|---|
| 1 | 凭证 | 扫码绑定(npx -y dsh-im-weixin-qr)拿到 bot_token,写入 $DSH_HOME/dsh-im/weixin-credentials.json;或设 WECHAT_BOT_TOKEN 环境变量 |
| 2 | 权限/入口 | 手机微信账号必须已获得「微信机器人」功能(我 → 设置 → 插件)。腾讯分批开放,插件无法绕过;账号无入口时扫码/连接会失败 |
| 3 | 订阅方式 | ilink/bot/getupdates 长轮询(免公网) |
| 4 | 发布生效 | 无(扫码即生效) |
实现状态
lib/weixin-api.js,fetch 可注入;URL 受信白名单防令牌外泄)extractWeixinText 纯函数 + 单测(文本 / 语音转写)lastEventAt 心跳 / 边界日志(带平台错误码)bin/weixin-qr.mjs,配对数字流程)版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-im-weixin
- Repo
- git+https://github.com/shaobeichen/dsh-im-bridge.git
- Engines
{"node":">=22"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-ui-slots"],"platform":"web"}}