@lansenger-pm/openclaw-lansenger-channel 2.8.3 → 2.9.0

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.fr.md CHANGED
@@ -56,18 +56,18 @@ Connecte OpenClaw à Lansenger — une plateforme de messagerie d'entreprise —
56
56
  openclaw plugins install @lansenger-pm/openclaw-lansenger-channel
57
57
 
58
58
  # 2. Activer le plugin (si non auto-activé)
59
- openclaw config set plugins.entries.Lansenger.enabled true
59
+ openclaw config set plugins.entries.lansenger.enabled true
60
60
 
61
61
  # 3. Configurer le canal (assistant interactif)
62
- openclaw channels add --channel Lansenger
62
+ openclaw channels add --channel lansenger
63
63
  # OU non-interactif :
64
- openclaw channels add --channel Lansenger --token "appId:appSecret"
64
+ openclaw channels add --channel lansenger --token "appId:appSecret"
65
65
 
66
66
  # 4. Redémarrer la passerelle
67
67
  openclaw gateway restart
68
68
  ```
69
69
 
70
- Les métadonnées `openclaw.install` dans `package.json` (`npmSpec`, `localPath`, `defaultChoice`) permettent l'**installation à la demande** : si un utilisateur exécute `openclaw channels add --channel Lansenger` avant que le plugin soit installé, OpenClaw peut l'installer automatiquement.
70
+ Les métadonnées `openclaw.install` dans `package.json` (`npmSpec`, `localPath`, `defaultChoice`) permettent l'**installation à la demande** : si un utilisateur exécute `openclaw channels add --channel lansenger` avant que le plugin soit installé, OpenClaw peut l'installer automatiquement.
71
71
 
72
72
  > **Passerelle personnalisée** : pour les déploiements entreprise (ex. 奇安信), configurez `apiGatewayUrl` dans `openclaw.json` ou via les variables d'environnement après la configuration — voir [Configuration optionnelle](#configuration-optionnelle).
73
73
 
@@ -91,7 +91,7 @@ openclaw gateway restart
91
91
  Après le redémarrage, le bot se connecte automatiquement via WebSocket. Envoyez un DM au bot — vous recevrez un code de pairage. Approuvez-le :
92
92
 
93
93
  ```bash
94
- openclaw pairing approve Lansenger <code>
94
+ openclaw pairing approve lansenger <code>
95
95
  ```
96
96
 
97
97
  ## Configuration
@@ -117,11 +117,11 @@ Ajoutez ces variables à `~/.openclaw/.env` ou à votre environnement :
117
117
  ```json
118
118
  {
119
119
  "channels": {
120
- "Lansenger": {
120
+ "lansenger": {
121
121
  "appId": "your-appid",
122
122
  "appSecret": "your-secret",
123
123
  "apiGatewayUrl": "https://open.e.lanxin.cn/open/apigw",
124
- "homeChannel": "Lansenger",
124
+ "homeChannel": "lansenger",
125
125
  "enabled": true,
126
126
  "allowFrom": ["your-appid"],
127
127
  "dmSecurity": "paired",
@@ -142,7 +142,7 @@ Ajoutez ces variables à `~/.openclaw/.env` ou à votre environnement :
142
142
  | `appId` | App ID du bot personnel | — |
143
143
  | `appSecret` | App Secret du bot personnel | — |
144
144
  | `apiGatewayUrl` | URL de la passerelle API | `https://open.e.lanxin.cn/open/apigw` |
145
- | `homeChannel` | Canal par défaut pour le routage de l'agent | `Lansenger` |
145
+ | `homeChannel` | Canal par défaut pour le routage de l'agent | `lansenger` |
146
146
  | `enabled` | Activer/désactiver le canal | `true` |
147
147
  | `allowFrom` | IDs d'utilisateurs autorisés en DM | `[]` |
148
148
  | `dmSecurity` | Politique DM : `paired`, `allowlist`, `open` | `paired` |
@@ -157,9 +157,9 @@ Pour ajouter plusieurs bots, utilisez `openclaw config set` avec la structure `a
157
157
 
158
158
  ```bash
159
159
  # Ajouter un deuxième bot (remplacez appid/appsecret/gateway par vos valeurs)
160
- openclaw config set channels.Lansenger.accounts.your-appid-2.appId "your-appid-2"
161
- openclaw config set channels.Lansenger.accounts.your-appid-2.appSecret "your-appsecret"
162
- openclaw config set channels.Lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
160
+ openclaw config set channels.lansenger.accounts.your-appid-2.appId "your-appid-2"
161
+ openclaw config set channels.lansenger.accounts.your-appid-2.appSecret "your-appsecret"
162
+ openclaw config set channels.lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
163
163
 
164
164
  # Redémarrer pour appliquer
165
165
  openclaw gateway restart
@@ -170,7 +170,7 @@ Structure de configuration résultante :
170
170
  ```json
171
171
  {
172
172
  "channels": {
173
- "Lansenger": {
173
+ "lansenger": {
174
174
  "appId": "your-appid-2",
175
175
  "appSecret": "...",
176
176
  "dmSecurity": "paired",
@@ -231,14 +231,14 @@ Utilisez `bindings` pour router les DM Lansenger ou les conversations de groupe
231
231
  {
232
232
  agentId: "agent-a",
233
233
  match: {
234
- channel: "Lansenger",
234
+ channel: "lansenger",
235
235
  peer: { kind: "direct", id: "2285568-xxx" },
236
236
  },
237
237
  },
238
238
  {
239
239
  agentId: "agent-a",
240
240
  match: {
241
- channel: "Lansenger",
241
+ channel: "lansenger",
242
242
  peer: { kind: "group", id: "group-chat-id" },
243
243
  },
244
244
  },
@@ -247,7 +247,7 @@ Utilisez `bindings` pour router les DM Lansenger ou les conversations de groupe
247
247
  ```
248
248
 
249
249
  Champs de routage :
250
- * `match.channel`: `"Lansenger"`
250
+ * `match.channel`: `"lansenger"`
251
251
  * `match.peer.kind`: `"direct"` (DM) ou `"group"` (chat de groupe)
252
252
  * `match.peer.id`: ID utilisateur (`2285568-xxx`) ou ID de chat de groupe
253
253
 
package/README.md CHANGED
@@ -54,18 +54,18 @@ Lansenger (蓝信) channel plugin for OpenClaw — WebSocket inbound, HTTP API o
54
54
  openclaw plugins install @lansenger-pm/openclaw-lansenger-channel
55
55
 
56
56
  # 2. Enable the plugin (if not auto-enabled)
57
- openclaw config set plugins.entries.Lansenger.enabled true
57
+ openclaw config set plugins.entries.lansenger.enabled true
58
58
 
59
59
  # 3. Configure the channel (interactive wizard)
60
- openclaw channels add --channel Lansenger
60
+ openclaw channels add --channel lansenger
61
61
  # OR non-interactive:
62
- openclaw channels add --channel Lansenger --token "appId:appSecret"
62
+ openclaw channels add --channel lansenger --token "appId:appSecret"
63
63
 
64
64
  # 4. Restart the gateway
65
65
  openclaw gateway restart
66
66
  ```
67
67
 
68
- The `openclaw.install` metadata in `package.json` (`npmSpec`, `localPath`, `defaultChoice`) enables **install-on-demand**: if a user runs `openclaw channels add --channel Lansenger` before the plugin is installed, OpenClaw can automatically install it using this metadata.
68
+ The `openclaw.install` metadata in `package.json` (`npmSpec`, `localPath`, `defaultChoice`) enables **install-on-demand**: if a user runs `openclaw channels add --channel lansenger` before the plugin is installed, OpenClaw can automatically install it using this metadata.
69
69
 
70
70
  > **Custom gateway**: For enterprise deployments (e.g. 奇安信), set `apiGatewayUrl` in `openclaw.json` or environment after configuration — see [Optional Configuration](#optional-configuration).
71
71
 
@@ -89,7 +89,7 @@ openclaw gateway restart
89
89
  The bot auto-connects via WebSocket on gateway restart. Send a DM to the bot — you'll receive a pairing code. Approve it:
90
90
 
91
91
  ```bash
92
- openclaw pairing approve Lansenger <code>
92
+ openclaw pairing approve lansenger <code>
93
93
  ```
94
94
 
95
95
  ## Configuration
@@ -115,11 +115,11 @@ Add these to `~/.openclaw/.env` or your environment:
115
115
  ```json
116
116
  {
117
117
  "channels": {
118
- "Lansenger": {
118
+ "lansenger": {
119
119
  "appId": "your-appid",
120
120
  "appSecret": "your-secret",
121
121
  "apiGatewayUrl": "https://open.e.lanxin.cn/open/apigw",
122
- "homeChannel": "Lansenger",
122
+ "homeChannel": "lansenger",
123
123
  "enabled": true,
124
124
  "allowFrom": ["your-appid"],
125
125
  "dmSecurity": "paired",
@@ -140,7 +140,7 @@ Add these to `~/.openclaw/.env` or your environment:
140
140
  | `appId` | Personal bot App ID | — |
141
141
  | `appSecret` | Personal bot App Secret | — |
142
142
  | `apiGatewayUrl` | API Gateway URL | `https://open.e.lanxin.cn/open/apigw` |
143
- | `homeChannel` | Default channel for agent routing | `Lansenger` |
143
+ | `homeChannel` | Default channel for agent routing | `lansenger` |
144
144
  | `enabled` | Enable/disable the channel | `true` |
145
145
  | `allowFrom` | User IDs allowed to DM the bot | `[]` |
146
146
  | `dmSecurity` | DM policy: `paired`, `allowlist`, `open` | `paired` |
@@ -155,9 +155,9 @@ For multiple bots, add additional accounts using `openclaw config set`:
155
155
 
156
156
  ```bash
157
157
  # Add a second bot (replace appid/appsecret/gateway with your values)
158
- openclaw config set channels.Lansenger.accounts.your-appid-2.appId "your-appid-2"
159
- openclaw config set channels.Lansenger.accounts.your-appid-2.appSecret "your-appsecret"
160
- openclaw config set channels.Lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
158
+ openclaw config set channels.lansenger.accounts.your-appid-2.appId "your-appid-2"
159
+ openclaw config set channels.lansenger.accounts.your-appid-2.appSecret "your-appsecret"
160
+ openclaw config set channels.lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
161
161
 
162
162
  # Restart to apply
163
163
  openclaw gateway restart
@@ -168,7 +168,7 @@ The resulting config structure:
168
168
  ```json
169
169
  {
170
170
  "channels": {
171
- "Lansenger": {
171
+ "lansenger": {
172
172
  "appId": "your-appid-2",
173
173
  "appSecret": "...",
174
174
  "dmSecurity": "paired",
@@ -229,14 +229,14 @@ Use `bindings` to route Lansenger DMs or groups to different agents (same patter
229
229
  {
230
230
  agentId: "agent-a",
231
231
  match: {
232
- channel: "Lansenger",
232
+ channel: "lansenger",
233
233
  peer: { kind: "direct", id: "2285568-xxx" },
234
234
  },
235
235
  },
236
236
  {
237
237
  agentId: "agent-a",
238
238
  match: {
239
- channel: "Lansenger",
239
+ channel: "lansenger",
240
240
  peer: { kind: "group", id: "group-chat-id" },
241
241
  },
242
242
  },
@@ -245,7 +245,7 @@ Use `bindings` to route Lansenger DMs or groups to different agents (same patter
245
245
  ```
246
246
 
247
247
  Routing fields:
248
- * `match.channel`: `"Lansenger"`
248
+ * `match.channel`: `"lansenger"`
249
249
  * `match.peer.kind`: `"direct"` (DM) or `"group"` (group chat)
250
250
  * `match.peer.id`: user ID (`2285568-xxx`) or group chat ID
251
251
 
package/README.zhHans.md CHANGED
@@ -56,18 +56,18 @@
56
56
  openclaw plugins install @lansenger-pm/openclaw-lansenger-channel
57
57
 
58
58
  # 2. 启用插件(如未自动启用)
59
- openclaw config set plugins.entries.Lansenger.enabled true
59
+ openclaw config set plugins.entries.lansenger.enabled true
60
60
 
61
61
  # 3. 配置频道(交互式向导)
62
- openclaw channels add --channel Lansenger
62
+ openclaw channels add --channel lansenger
63
63
  # 或非交互式:
64
- openclaw channels add --channel Lansenger --token "appId:appSecret"
64
+ openclaw channels add --channel lansenger --token "appId:appSecret"
65
65
 
66
66
  # 4. 重启网关
67
67
  openclaw gateway restart
68
68
  ```
69
69
 
70
- `package.json` 中的 `openclaw.install` 元数据(`npmSpec`、`localPath`、`defaultChoice`)支持**按需安装**:如果用户在插件安装前运行 `openclaw channels add --channel Lansenger`,OpenClaw 可自动安装该插件。
70
+ `package.json` 中的 `openclaw.install` 元数据(`npmSpec`、`localPath`、`defaultChoice`)支持**按需安装**:如果用户在插件安装前运行 `openclaw channels add --channel lansenger`,OpenClaw 可自动安装该插件。
71
71
 
72
72
  > **自定义网关**:企业私有化部署(如奇安信)需在配置后通过 `openclaw.json` 或环境变量设置 `apiGatewayUrl` — 见[可选配置](#可选配置)。
73
73
 
@@ -91,7 +91,7 @@ openclaw gateway restart
91
91
  重启后机器人自动通过 WebSocket 连接。给机器人发私聊消息,会收到配对码,审批配对:
92
92
 
93
93
  ```bash
94
- openclaw pairing approve Lansenger <配对码>
94
+ openclaw pairing approve lansenger <配对码>
95
95
  ```
96
96
 
97
97
  ## 配置
@@ -117,11 +117,11 @@ openclaw pairing approve Lansenger <配对码>
117
117
  ```json
118
118
  {
119
119
  "channels": {
120
- "Lansenger": {
120
+ "lansenger": {
121
121
  "appId": "your-appid",
122
122
  "appSecret": "your-secret",
123
123
  "apiGatewayUrl": "https://open.e.lanxin.cn/open/apigw",
124
- "homeChannel": "Lansenger",
124
+ "homeChannel": "lansenger",
125
125
  "enabled": true,
126
126
  "allowFrom": ["your-appid"],
127
127
  "dmSecurity": "paired",
@@ -142,7 +142,7 @@ openclaw pairing approve Lansenger <配对码>
142
142
  | `appId` | 个人机器人 App ID | — |
143
143
  | `appSecret` | 个人机器人 App Secret | — |
144
144
  | `apiGatewayUrl` | API 网关 URL | `https://open.e.lanxin.cn/open/apigw` |
145
- | `homeChannel` | 代理路由的默认频道 | `Lansenger` |
145
+ | `homeChannel` | 代理路由的默认频道 | `lansenger` |
146
146
  | `enabled` | 启用/禁用频道 | `true` |
147
147
  | `allowFrom` | 允许私聊的用户 ID | `[]` |
148
148
  | `dmSecurity` | 私聊策略:`paired`、`allowlist`、`open` | `paired` |
@@ -157,9 +157,9 @@ openclaw pairing approve Lansenger <配对码>
157
157
 
158
158
  ```bash
159
159
  # 添加第二个机器人(替换 appid/appsecret/gateway 为你的值)
160
- openclaw config set channels.Lansenger.accounts.your-appid-2.appId "your-appid-2"
161
- openclaw config set channels.Lansenger.accounts.your-appid-2.appSecret "your-appsecret"
162
- openclaw config set channels.Lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
160
+ openclaw config set channels.lansenger.accounts.your-appid-2.appId "your-appid-2"
161
+ openclaw config set channels.lansenger.accounts.your-appid-2.appSecret "your-appsecret"
162
+ openclaw config set channels.lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
163
163
 
164
164
  # 重启生效
165
165
  openclaw gateway restart
@@ -170,7 +170,7 @@ openclaw gateway restart
170
170
  ```json
171
171
  {
172
172
  "channels": {
173
- "Lansenger": {
173
+ "lansenger": {
174
174
  "appId": "your-appid-2",
175
175
  "appSecret": "...",
176
176
  "dmSecurity": "paired",
@@ -231,14 +231,14 @@ openclaw gateway call lansenger.status
231
231
  {
232
232
  agentId: "agent-a",
233
233
  match: {
234
- channel: "Lansenger",
234
+ channel: "lansenger",
235
235
  peer: { kind: "direct", id: "2285568-xxx" },
236
236
  },
237
237
  },
238
238
  {
239
239
  agentId: "agent-a",
240
240
  match: {
241
- channel: "Lansenger",
241
+ channel: "lansenger",
242
242
  peer: { kind: "group", id: "group-chat-id" },
243
243
  },
244
244
  },
@@ -247,7 +247,7 @@ openclaw gateway call lansenger.status
247
247
  ```
248
248
 
249
249
  路由字段:
250
- * `match.channel`: `"Lansenger"`
250
+ * `match.channel`: `"lansenger"`
251
251
  * `match.peer.kind`: `"direct"`(私聊)或 `"group"`(群聊)
252
252
  * `match.peer.id`: 用户 ID(`2285568-xxx`)或群聊 ID
253
253
 
package/README.zhHant.md CHANGED
@@ -56,18 +56,18 @@
56
56
  openclaw plugins install @lansenger-pm/openclaw-lansenger-channel
57
57
 
58
58
  # 2. 啟用插件(如未自動啟用)
59
- openclaw config set plugins.entries.Lansenger.enabled true
59
+ openclaw config set plugins.entries.lansenger.enabled true
60
60
 
61
61
  # 3. 配置頻道(互動式向導)
62
- openclaw channels add --channel Lansenger
62
+ openclaw channels add --channel lansenger
63
63
  # 或非互動式:
64
- openclaw channels add --channel Lansenger --token "appId:appSecret"
64
+ openclaw channels add --channel lansenger --token "appId:appSecret"
65
65
 
66
66
  # 4. 重啟閘道
67
67
  openclaw gateway restart
68
68
  ```
69
69
 
70
- `package.json` 中的 `openclaw.install` 元資料(`npmSpec`、`localPath`、`defaultChoice`)支援**按需安裝**:如果使用者在插件安裝前執行 `openclaw channels add --channel Lansenger`,OpenClaw 可自動安裝該插件。
70
+ `package.json` 中的 `openclaw.install` 元資料(`npmSpec`、`localPath`、`defaultChoice`)支援**按需安裝**:如果使用者在插件安裝前執行 `openclaw channels add --channel lansenger`,OpenClaw 可自動安裝該插件。
71
71
 
72
72
  > **自訂閘道**:企業私有化部署(如奇安信)需在設定後透過 `openclaw.json` 或環境變數設定 `apiGatewayUrl` — 見[可選設定](#可選設定)。
73
73
 
@@ -91,7 +91,7 @@ openclaw gateway restart
91
91
  重啟後機器人自動透過 WebSocket 連線。給機器人發私聊訊息,會收到配對碼,核准配對:
92
92
 
93
93
  ```bash
94
- openclaw pairing approve Lansenger <配對碼>
94
+ openclaw pairing approve lansenger <配對碼>
95
95
  ```
96
96
 
97
97
  ## 設定
@@ -117,11 +117,11 @@ openclaw pairing approve Lansenger <配對碼>
117
117
  ```json
118
118
  {
119
119
  "channels": {
120
- "Lansenger": {
120
+ "lansenger": {
121
121
  "appId": "your-appid",
122
122
  "appSecret": "your-secret",
123
123
  "apiGatewayUrl": "https://open.e.lanxin.cn/open/apigw",
124
- "homeChannel": "Lansenger",
124
+ "homeChannel": "lansenger",
125
125
  "enabled": true,
126
126
  "allowFrom": ["your-appid"],
127
127
  "dmSecurity": "paired",
@@ -142,7 +142,7 @@ openclaw pairing approve Lansenger <配對碼>
142
142
  | `appId` | 個人機器人 App ID | — |
143
143
  | `appSecret` | 個人機器人 App Secret | — |
144
144
  | `apiGatewayUrl` | API 閘道 URL | `https://open.e.lanxin.cn/open/apigw` |
145
- | `homeChannel` | 代理路由的預設頻道 | `Lansenger` |
145
+ | `homeChannel` | 代理路由的預設頻道 | `lansenger` |
146
146
  | `enabled` | 啟用/禁用頻道 | `true` |
147
147
  | `allowFrom` | 允許私聊的使用者 ID | `[]` |
148
148
  | `dmSecurity` | 私聊策略:`paired`、`allowlist`、`open` | `paired` |
@@ -157,9 +157,9 @@ openclaw pairing approve Lansenger <配對碼>
157
157
 
158
158
  ```bash
159
159
  # 新增第二個機器人(替換 appid/appsecret/gateway 為你的值)
160
- openclaw config set channels.Lansenger.accounts.your-appid-2.appId "your-appid-2"
161
- openclaw config set channels.Lansenger.accounts.your-appid-2.appSecret "your-appsecret"
162
- openclaw config set channels.Lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
160
+ openclaw config set channels.lansenger.accounts.your-appid-2.appId "your-appid-2"
161
+ openclaw config set channels.lansenger.accounts.your-appid-2.appSecret "your-appsecret"
162
+ openclaw config set channels.lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
163
163
 
164
164
  # 重啟生效
165
165
  openclaw gateway restart
@@ -170,7 +170,7 @@ openclaw gateway restart
170
170
  ```json
171
171
  {
172
172
  "channels": {
173
- "Lansenger": {
173
+ "lansenger": {
174
174
  "appId": "your-appid-2",
175
175
  "appSecret": "...",
176
176
  "dmSecurity": "paired",
@@ -231,14 +231,14 @@ openclaw gateway call lansenger.status
231
231
  {
232
232
  agentId: "agent-a",
233
233
  match: {
234
- channel: "Lansenger",
234
+ channel: "lansenger",
235
235
  peer: { kind: "direct", id: "2285568-xxx" },
236
236
  },
237
237
  },
238
238
  {
239
239
  agentId: "agent-a",
240
240
  match: {
241
- channel: "Lansenger",
241
+ channel: "lansenger",
242
242
  peer: { kind: "group", id: "group-chat-id" },
243
243
  },
244
244
  },
@@ -247,7 +247,7 @@ openclaw gateway call lansenger.status
247
247
  ```
248
248
 
249
249
  路由欄位:
250
- * `match.channel`: `"Lansenger"`
250
+ * `match.channel`: `"lansenger"`
251
251
  * `match.peer.kind`: `"direct"`(私聊)或 `"group"`(群組聊天)
252
252
  * `match.peer.id`: 使用者 ID(`2285568-xxx`)或群組聊天 ID
253
253
 
@@ -56,18 +56,18 @@
56
56
  openclaw plugins install @lansenger-pm/openclaw-lansenger-channel
57
57
 
58
58
  # 2. 啟用插件(如未自動啟用)
59
- openclaw config set plugins.entries.Lansenger.enabled true
59
+ openclaw config set plugins.entries.lansenger.enabled true
60
60
 
61
61
  # 3. 配置頻道(互動式向導)
62
- openclaw channels add --channel Lansenger
62
+ openclaw channels add --channel lansenger
63
63
  # 或非互動式:
64
- openclaw channels add --channel Lansenger --token "appId:appSecret"
64
+ openclaw channels add --channel lansenger --token "appId:appSecret"
65
65
 
66
66
  # 4. 重啟網關
67
67
  openclaw gateway restart
68
68
  ```
69
69
 
70
- `package.json` 中的 `openclaw.install` 元資料(`npmSpec`、`localPath`、`defaultChoice`)支援**按需安裝**:如果使用者在插件安裝前執行 `openclaw channels add --channel Lansenger`,OpenClaw 可自動安裝該插件。
70
+ `package.json` 中的 `openclaw.install` 元資料(`npmSpec`、`localPath`、`defaultChoice`)支援**按需安裝**:如果使用者在插件安裝前執行 `openclaw channels add --channel lansenger`,OpenClaw 可自動安裝該插件。
71
71
 
72
72
  > **自訂閘道**:企業私有化部署(如奇安信)需在設定後透過 `openclaw.json` 或環境變數設定 `apiGatewayUrl` — 見[可選設定](#可選設定)。
73
73
 
@@ -91,7 +91,7 @@ openclaw gateway restart
91
91
  重啟後機械人自動透過 WebSocket 連線。給機械人發私聊訊息,會收到配對碼,核准配對:
92
92
 
93
93
  ```bash
94
- openclaw pairing approve Lansenger <配對碼>
94
+ openclaw pairing approve lansenger <配對碼>
95
95
  ```
96
96
 
97
97
  ## 設定
@@ -117,11 +117,11 @@ openclaw pairing approve Lansenger <配對碼>
117
117
  ```json
118
118
  {
119
119
  "channels": {
120
- "Lansenger": {
120
+ "lansenger": {
121
121
  "appId": "your-appid",
122
122
  "appSecret": "your-secret",
123
123
  "apiGatewayUrl": "https://open.e.lanxin.cn/open/apigw",
124
- "homeChannel": "Lansenger",
124
+ "homeChannel": "lansenger",
125
125
  "enabled": true,
126
126
  "allowFrom": ["your-appid"],
127
127
  "dmSecurity": "paired",
@@ -142,7 +142,7 @@ openclaw pairing approve Lansenger <配對碼>
142
142
  | `appId` | 個人機械人 App ID | — |
143
143
  | `appSecret` | 個人機械人 App Secret | — |
144
144
  | `apiGatewayUrl` | API 網關 URL | `https://open.e.lanxin.cn/open/apigw` |
145
- | `homeChannel` | 代理路由的預設頻道 | `Lansenger` |
145
+ | `homeChannel` | 代理路由的預設頻道 | `lansenger` |
146
146
  | `enabled` | 啟用/禁用頻道 | `true` |
147
147
  | `allowFrom` | 允許私聊的使用者 ID | `[]` |
148
148
  | `dmSecurity` | 私聊策略:`paired`、`allowlist`、`open` | `paired` |
@@ -159,9 +159,9 @@ openclaw pairing approve Lansenger <配對碼>
159
159
 
160
160
  ```bash
161
161
  # 新增第二個機械人(替換 appid/appsecret/gateway 為你的值)
162
- openclaw config set channels.Lansenger.accounts.your-appid-2.appId "your-appid-2"
163
- openclaw config set channels.Lansenger.accounts.your-appid-2.appSecret "your-appsecret"
164
- openclaw config set channels.Lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
162
+ openclaw config set channels.lansenger.accounts.your-appid-2.appId "your-appid-2"
163
+ openclaw config set channels.lansenger.accounts.your-appid-2.appSecret "your-appsecret"
164
+ openclaw config set channels.lansenger.accounts.your-appid-2.apiGatewayUrl "https://apigw.lx.qianxin.com"
165
165
 
166
166
  # 重啟生效
167
167
  openclaw gateway restart
@@ -172,7 +172,7 @@ openclaw gateway restart
172
172
  ```json
173
173
  {
174
174
  "channels": {
175
- "Lansenger": {
175
+ "lansenger": {
176
176
  "appId": "your-appid-2",
177
177
  "appSecret": "...",
178
178
  "dmSecurity": "paired",
@@ -233,14 +233,14 @@ openclaw gateway call lansenger.status
233
233
  {
234
234
  agentId: "agent-a",
235
235
  match: {
236
- channel: "Lansenger",
236
+ channel: "lansenger",
237
237
  peer: { kind: "direct", id: "2285568-xxx" },
238
238
  },
239
239
  },
240
240
  {
241
241
  agentId: "agent-a",
242
242
  match: {
243
- channel: "Lansenger",
243
+ channel: "lansenger",
244
244
  peer: { kind: "group", id: "group-chat-id" },
245
245
  },
246
246
  },
@@ -249,7 +249,7 @@ openclaw gateway call lansenger.status
249
249
  ```
250
250
 
251
251
  路由欄位:
252
- * `match.channel`: `"Lansenger"`
252
+ * `match.channel`: `"lansenger"`
253
253
  * `match.peer.kind`: `"direct"`(私聊)或 `"group"`(羣組聊天)
254
254
  * `match.peer.id`: 使用者 ID(`2285568-xxx`)或羣組聊天 ID
255
255
 
package/dist/index.js CHANGED
@@ -3,17 +3,17 @@ import { lansengerPlugin } from "./src/channel.js";
3
3
  import { startLansengerGateway } from "./src/runtime.js";
4
4
  import { registerLansengerTools } from "./src/tools.js";
5
5
  export default defineChannelPluginEntry({
6
- id: "Lansenger",
6
+ id: "lansenger",
7
7
  name: "Lansenger (蓝信)",
8
8
  description: "Lansenger enterprise messaging channel plugin for OpenClaw",
9
9
  plugin: lansengerPlugin,
10
10
  registerCliMetadata(api) {
11
11
  api.registerCli(({ program }) => {
12
- program.command("Lansenger").description("Lansenger (蓝信) management");
12
+ program.command("lansenger").description("Lansenger (蓝信) management");
13
13
  }, {
14
14
  descriptors: [
15
15
  {
16
- name: "Lansenger",
16
+ name: "lansenger",
17
17
  description: "Lansenger (蓝信) management",
18
18
  hasSubcommands: false,
19
19
  },