Jesse-njx/dsh-chatnode-wechat ↗★ 5

@dsh-cowork/chatnode-wechat

通过微信对话、监控和审批智能体 适合需要利用微信作为网关与智能体交互并传输媒体文件的用户。

套件
@dsh-cowork/chatnode-wechat
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年8月28日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jesse-njx/dsh-chatnode-wechat

Configuration


## Usage

Send text or images to the bot. Everything is zero-config once one session
exists — the **most recent session** is the default target.

### Images

- **Inbound**: send an image to the bot; the gateway downloads and decrypts it
  (encrypted CDN + AES-128-ECB), persists it under `mediaDir` (default
  `$DSH_HOME/attachments/wechat/`), and hands the file path to the agent,
  which decodes it with its `read_image`/vision tool.
- **Outbound**: `/send ` sends a local image back to the
  current contact (AES-encrypt → `getuploadurl` → CDN upload →
  `sendmessage`). Sending depends on the peer's `context_token`, so it runs
  inside the gateway process.

| Command | What it does |
| --- | --- |
| *(plain text)* | routes to the active agent (`agent.followup`) |
| *(image)* | downloaded, decrypted, saved, path handed to the agent |
| `/sessions` | numbered session list (most recent first) |
| `/use N` | switch the active session |
| `/new 
` | create a fresh agent+session and start |
| `/stop` | cancel the active turn |
| `/status` | agent status + session summary |
| `/send 
` | send a local image to the current contact |
| `/yes` `/no` (or `1`/`2` while one request is pending) | answer a permission request |
| `/help` | command list |

Outbound is digest-style, never a mirror of every tool call:

- `⏳ 收到,开始处理…` when a turn starts,
- a one-line `🔄 仍在处理中…` heartbeat every `digestIntervalSec`,
- the assistant's actual text (chunked to `maxMessageChars`, throttled),
- `❌ 出错…` / `⏹ 已停止` / `⚠️ 输出截断` on turn end,
- `🔐 #N 需要你的确认` permission prompts, answered in-chat.