@rezti/dsh-rez-wechat 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,20 @@
6
6
 
7
7
  | 能力 | 做法 |
8
8
  |---|---|
9
- | 发到群 | `wecom-mcp` + `REZ_WECHAT_WEBHOOK` |
10
- | 收消息 / 模板到人 | **未接入**。下一阶段选现成 wecomcli / 企业微信应用 MCP |
9
+ | 企业微信发到群 | `wecom-mcp`(`mcp__wechat__*`)+ `REZ_WECHAT_WEBHOOK` |
10
+ | 个人微信登录 / 收发 | `weixin-mcp`(`mcp__weixin__*`),QClaw / ClawBot 官方扫码 |
11
11
 
12
- 「微信」在雷泽场景里按企业微信理解。个人微信不在范围内。
12
+ ## 个人微信(QClaw 那套)
13
+
14
+ 1. 微信 → 发现 → 小程序 → 搜索 **ClawBot**,创建一个机器人
15
+ 2. 本机扫码一次:
16
+
17
+ ```bash
18
+ npx weixin-mcp login
19
+ ```
20
+
21
+ 3. 装过 suite 后,dsh 会自动起 `npx -y weixin-mcp`。缺登录时该 MCP 空转,不把 dsh 打挂。
22
+
23
+ 凭证目录:`$WEIXIN_MCP_DIR` → `~/.openclaw/openclaw-weixin/` → `~/.weixin-mcp/`。
24
+
25
+ 这是 ClawBot 客服会话,不是个人微信号管好友/群。
package/lib/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  export const name = 'rez-wechat';
2
2
  export const inject = ['systemPrompt'];
3
3
  const GUIDANCE = [
4
- '企业微信发送已通过官方 dsh-mcp-client + wecom-mcp 接入(mcp__wechat__*)。',
5
- '密钥是 REZ_WECHAT_WEBHOOK(群机器人 webhook URL)。',
6
- '对外发消息必须先征得用户批准。',
7
- '接收消息 / 应用模板通知不走本包:复用现成 wecomcli 或应用 API MCP,不要自写 WebSocket。',
4
+ '企业微信群发送走官方 dsh-mcp-client + wecom-mcp(mcp__wechat__*),密钥 REZ_WECHAT_WEBHOOK。',
5
+ '个人微信登录/收发走官方 ClawBot API,复用现成 weixin-mcp(mcp__weixin__*:weixin_send / weixin_poll / weixin_contacts)。这是 QClaw 同款扫码登录,不要自写 WebSocket。',
6
+ '员工先在微信小程序创建 ClawBot,本机执行一次:npx weixin-mcp login。凭证默认在 ~/.weixin-mcp/,可用 WEIXIN_MCP_DIR 改目录。',
7
+ '这是 ClawBot 客服会话,不是用个人微信号管好友/群。对外发消息必须先征得用户批准。',
8
8
  ].join('');
9
9
  export function apply(ctx) {
10
10
  ctx.effect(() => ctx.systemPrompt.section({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rezti/dsh-rez-wechat",
3
- "version": "0.1.0",
4
- "description": "ReZ-TI WeCom bridge for DeepSeek Harness. Send path uses wecom-mcp; inbound is not a custom WebSocket client.",
3
+ "version": "0.1.1",
4
+ "description": "ReZ-TI WeChat/WeCom bridges for DeepSeek Harness. WeCom send uses wecom-mcp; personal WeChat login/chat reuses weixin-mcp (QClaw/ClawBot).",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": "^22.19.0 || >=24.0.0"