@wu529778790/open-im 1.10.9-beta.19 → 1.10.9-beta.20

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  **English** · [中文](./README.zh-CN.md)
4
4
 
5
- Multi-platform IM bridge for AI CLI tools. Connect Telegram, Feishu, WeCom, DingTalk, QQ, and WeChat (WorkBuddy) to Claude Code, Codex, and CodeBuddy — use your AI coding assistant from any phone or chat window.
5
+ Multi-platform IM bridge for AI CLI tools. Connect Telegram, Feishu, WeCom, DingTalk, QQ, WeChat (WorkBuddy), and WeChat (ClawBot) to Claude Code, Codex, and CodeBuddy — use your AI coding assistant from any phone or chat window.
6
6
 
7
7
  ## Architecture
8
8
 
@@ -10,7 +10,7 @@ Multi-platform IM bridge for AI CLI tools. Connect Telegram, Feishu, WeCom, Ding
10
10
 
11
11
  ## Features
12
12
 
13
- - **Six IM platforms** — Telegram, Feishu, WeCom, DingTalk, QQ, WorkBuddy
13
+ - **Seven IM platforms** — Telegram, Feishu, WeCom, DingTalk, QQ, WorkBuddy, ClawBot
14
14
  - **Three AI backends** — Claude (Agent SDK), Codex, CodeBuddy (per-platform override supported)
15
15
  - **Streaming, media, sessions** — live output where supported; `/new` for a fresh AI session
16
16
  - **Web UI** — dashboard bundled in the package; default **`http://127.0.0.1:39282`**
@@ -162,6 +162,34 @@ Use **`config.json`** (platforms, `tools.*`, etc.) or environment variables; the
162
162
  | DingTalk | Open Platform — bot **Stream Mode**; optional **`cardTemplateId`** for AI assistant cards |
163
163
  | WeCom | [Admin](https://work.weixin.qq.com/) |
164
164
  | WeChat | **`open-im init`** → WorkBuddy OAuth |
165
+ | ClawBot (WeChat) | QR code login via iLink API; see [ClawBot setup](#clawbot-setup) |
166
+
167
+ ### ClawBot setup
168
+
169
+ ClawBot connects to WeChat via the official iLink Bot API (same protocol as `@tencent-weixin/openclaw-weixin`). It supports text, voice, image, file, and video messages.
170
+
171
+ **Setup:**
172
+
173
+ 1. Enable in config:
174
+ ```json
175
+ {
176
+ "platforms": {
177
+ "clawbot": { "enabled": true }
178
+ }
179
+ }
180
+ ```
181
+ 2. Open the Web dashboard → **ClawBot** section → **Scan QR code** with WeChat.
182
+ 3. After scanning, `bot_token` and `apiUrl` are saved automatically.
183
+
184
+ **Config fields:**
185
+
186
+ | Field | Default | Description |
187
+ | --- | --- | --- |
188
+ | `apiUrl` | `https://ilinkai.weixin.qq.com` | iLink API base URL |
189
+ | `apiToken` | — | Bot token (auto-set after QR login) |
190
+ | `aiCommand` | `claude` | AI backend override |
191
+
192
+ **Protocol:** POST + JSON body + Bearer token auth. Long-polling via `ilink/bot/getupdates` with `get_updates_buf` cursor.
165
193
 
166
194
  ## Troubleshooting
167
195
 
@@ -175,6 +203,7 @@ Use **`config.json`** (platforms, `tools.*`, etc.) or environment variables; the
175
203
  | Codex disconnect | **`CODEX_PROXY`** or **`tools.codex.proxy`** |
176
204
  | CodeBuddy login | **`codebuddy login`** |
177
205
  | WorkBuddy | Re-run **`open-im init`** (tokens expire) |
206
+ | ClawBot | QR re-login via Web UI; `apiUrl` defaults to `https://ilinkai.weixin.qq.com` |
178
207
 
179
208
  ## License
180
209
 
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](./README.md) · **中文**
4
4
 
5
- 多平台 IM 桥接:把 Telegram、飞书、企业微信、钉钉、QQ、微信(WorkBuddy)接到 Claude Code、Codex、CodeBuddy,在手机或聊天里使用 AI 编程助手。
5
+ 多平台 IM 桥接:把 Telegram、飞书、企业微信、钉钉、QQ、微信(WorkBuddy)、微信(ClawBot)接到 Claude Code、Codex、CodeBuddy,在手机或聊天里使用 AI 编程助手。
6
6
 
7
7
  ## 架构
8
8
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  ## 功能特性
12
12
 
13
- - **六个 IM 平台** — Telegram、飞书、企业微信、钉钉、QQ、WorkBuddy
13
+ - **七个 IM 平台** — Telegram、飞书、企业微信、钉钉、QQ、WorkBuddy、ClawBot
14
14
  - **三种 AI 后端** — Claude(Agent SDK)、Codex、CodeBuddy(可按平台覆盖)
15
15
  - **流式、多媒体、会话** — 视平台能力;`/new` 开启新 AI 会话
16
16
  - **Web 控制台** — 随包内置,默认 **`http://127.0.0.1:39282`**
@@ -162,6 +162,34 @@ codebuddy login
162
162
  | 钉钉 | 开放平台创建应用,机器人开 **Stream Mode**;可选 **`cardTemplateId`** 走 AI 助理卡片 |
163
163
  | 企业微信 | [管理后台](https://work.weixin.qq.com/) |
164
164
  | 微信 | **`open-im init`** → WorkBuddy OAuth |
165
+ | ClawBot(微信) | 扫码登录 iLink API,参见 [ClawBot 配置](#clawbot-配置) |
166
+
167
+ ### ClawBot 配置
168
+
169
+ ClawBot 通过官方 iLink Bot API 连接微信(与 `@tencent-weixin/openclaw-weixin` 协议相同)。支持文本、语音、图片、文件和视频消息。
170
+
171
+ **使用方法:**
172
+
173
+ 1. 在配置中启用:
174
+ ```json
175
+ {
176
+ "platforms": {
177
+ "clawbot": { "enabled": true }
178
+ }
179
+ }
180
+ ```
181
+ 2. 打开 Web 控制台 → **ClawBot** 区域 → **扫码登录**(用微信扫码)。
182
+ 3. 扫码成功后 `bot_token` 和 `apiUrl` 自动保存。
183
+
184
+ **配置字段:**
185
+
186
+ | 字段 | 默认值 | 说明 |
187
+ | --- | --- | --- |
188
+ | `apiUrl` | `https://ilinkai.weixin.qq.com` | iLink API 地址 |
189
+ | `apiToken` | — | Bot Token(扫码后自动写入) |
190
+ | `aiCommand` | `claude` | AI 后端覆盖 |
191
+
192
+ **协议:** POST + JSON body + Bearer token 鉴权,通过 `ilink/bot/getupdates` 长轮询 + `get_updates_buf` 游标拉取消息。
165
193
 
166
194
  ## 故障排除
167
195
 
@@ -175,6 +203,7 @@ codebuddy login
175
203
  | Codex 断流 | **`CODEX_PROXY`** 或 **`tools.codex.proxy`** |
176
204
  | CodeBuddy 登录 | **`codebuddy login`** |
177
205
  | WorkBuddy / 微信 | 重跑 **`open-im init`**(Token 会过期) |
206
+ | ClawBot | Web 控制台重新扫码;`apiUrl` 默认 `https://ilinkai.weixin.qq.com` |
178
207
 
179
208
  ## License
180
209
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.10.9-beta.19",
3
+ "version": "1.10.9-beta.20",
4
4
  "description": "Multi-platform IM bridge for AI CLI tools (Claude, Codex, CodeBuddy)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",