@easbot/gateway 0.3.19 → 0.3.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.en.md CHANGED
@@ -6,7 +6,7 @@ EASBot Gateway - AI Agent Server and Multi-channel Integration Platform
6
6
 
7
7
  ## Features
8
8
 
9
- - **Multi-channel Integration**: WebSocket, HTTP, Discord, Telegram, Slack, Feishu, WeChat and more
9
+ - **Multi-channel Integration**: WebSocket, HTTP, Discord, Telegram, Slack, Feishu, official/wecom WeChat, iLink personal WeChat, and more
10
10
  - **Agent Core**: AI SDK-based Agent runtime
11
11
  - **Session Management**: Multi-session and multi-agent concurrency support
12
12
  - **Message Routing**: Intelligent message routing and format conversion
@@ -131,6 +131,33 @@ await gateway.start();
131
131
  }
132
132
  ```
133
133
 
134
+ ### Weixin (iLink personal WeChat)
135
+
136
+ ⚠️ Different from `wechat` (official account / wecom) — Weixin uses the iLink personal-account protocol and **only hosts one WeChat user at a time**. See [`docs/channel/weixin.md`](./docs/channel/weixin.md).
137
+
138
+ ```typescript
139
+ {
140
+ weixin: {
141
+ enabled: true,
142
+ // token / userId are NOT in the config — they live in account.json
143
+ // written by `easbot weixin login`
144
+ }
145
+ }
146
+ ```
147
+
148
+ ```bash
149
+ # 1. Bind your personal WeChat via QR code scan
150
+ easbot weixin login
151
+
152
+ # 2. Start Gateway (it auto-picks up the weixin channel)
153
+ easbot gateway start
154
+
155
+ # 3. When a stranger messages the bot, the operator authorizes them via the pairing code
156
+ easbot weixin access pair 123456
157
+ ```
158
+
159
+ Both `login` and `access pair` are **independent CLI processes**; the long-running Gateway watches the state files via `fs.watch` and reloads automatically — no restart needed.
160
+
134
161
  ## API Documentation
135
162
 
136
163
  ### Gateway
package/README.md CHANGED
@@ -6,7 +6,7 @@ EASBot Gateway - AI Agent 服务器与多渠道集成平台
6
6
 
7
7
  ## 特性
8
8
 
9
- - **多渠道集成**:支持 WebSocket、HTTP、Discord、Telegram、Slack、飞书、微信等
9
+ - **多渠道集成**:支持 WebSocket、HTTP、Discord、Telegram、Slack、飞书、公众号 / 企业微信、iLink 个人微信等
10
10
  - **Agent 核心**:基于 AI SDK 的 Agent 运行时
11
11
  - **会话管理**:支持多会话、多 Agent 并发
12
12
  - **消息路由**:智能消息路由和格式转换
@@ -131,6 +131,32 @@ await gateway.start();
131
131
  }
132
132
  ```
133
133
 
134
+ ### Weixin (iLink 个人微信)
135
+
136
+ ⚠️ 与 `wechat`(公众号 / 企业微信)不同 —— Weixin 走 iLink 个人号协议,**一次只能托管一个微信用户**。详见 [`docs/channel/weixin.md`](./docs/channel/weixin.md)。
137
+
138
+ ```typescript
139
+ {
140
+ weixin: {
141
+ enabled: true,
142
+ // token / userId 不在配置里,通过 `easbot weixin login` 扫码写入 account.json
143
+ }
144
+ }
145
+ ```
146
+
147
+ ```bash
148
+ # 1. 扫码绑定个人微信
149
+ easbot weixin login
150
+
151
+ # 2. 启动 Gateway(自动接管 weixin channel)
152
+ easbot gateway start
153
+
154
+ # 3. 陌生用户给 bot 发消息后,管理员授权配对码
155
+ easbot weixin access pair 123456
156
+ ```
157
+
158
+ login / access pair 都是**独立 CLI 进程**;Gateway 通过 fs.watch 自动 reload,无需重启。
159
+
134
160
  ## API 文档
135
161
 
136
162
  ### Gateway