@lansenger-pm/openclaw-lansenger-channel 2.8.2 → 2.8.3
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 +2 -53
- package/README.md +1 -1
- package/README.zhHans.md +1 -1
- package/README.zhHant.md +1 -1
- package/README.zhHantHK.md +2 -53
- package/package.json +2 -2
package/README.fr.md
CHANGED
|
@@ -33,7 +33,7 @@ Connecte OpenClaw à Lansenger — une plateforme de messagerie d'entreprise —
|
|
|
33
33
|
|
|
34
34
|
**Stratégie par défaut** : utiliser `formatText` en priorité pour les réponses Markdown. Revenir à `text` pour les pièces jointes. Les deux types supportent @mention via le paramètre `reminder` — inclure « @姓名 » dans le texte pour les mentions.
|
|
35
35
|
|
|
36
|
-
## Outils de l'agent
|
|
36
|
+
## Outils de l'agent
|
|
37
37
|
|
|
38
38
|
| Outil | Description |
|
|
39
39
|
|-------|-------------|
|
|
@@ -94,57 +94,6 @@ Après le redémarrage, le bot se connecte automatiquement via WebSocket. Envoye
|
|
|
94
94
|
openclaw pairing approve Lansenger <code>
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
> ⚠️ Step 2 is required because `openclaw channels add` only discovers plugins in the `extensions/` directory, not from npm-installed packages. This is an [OpenClaw upstream bug](https://docs.openclaw.ai), not a plugin issue.
|
|
98
|
-
|
|
99
|
-
### Via npm
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# First install the npm package manually, then configure via CLI
|
|
103
|
-
npm install -g @lansenger-pm/openclaw-lansenger-channel
|
|
104
|
-
openclaw channels add --channel Lansenger --app-token "your-appid" --secret "your-appsecret"
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Installation de développement (lien local)
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
cd /path/to/openclaw-lansenger-channel
|
|
111
|
-
npm install
|
|
112
|
-
openclaw plugins install --link
|
|
113
|
-
openclaw gateway restart
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Configuration rapide
|
|
117
|
-
|
|
118
|
-
Après l'installation, configurez les identifiants :
|
|
119
|
-
|
|
120
|
-
> **Compte unique** : `channels add` crée un seul compte. Pour plusieurs bots, voir [Configuration multi-bot](#configuration-multi-bot) ci-dessous.
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
# Standard (utilise la passerelle par défaut https://open.e.lanxin.cn/open/apigw)
|
|
124
|
-
openclaw channels add --channel Lansenger \
|
|
125
|
-
--app-token "your-appid" \
|
|
126
|
-
--secret "your-appsecret"
|
|
127
|
-
|
|
128
|
-
# Déploiement entreprise (URL de passerelle personnalisée)
|
|
129
|
-
openclaw channels add --channel Lansenger \
|
|
130
|
-
--app-token "your-appid" \
|
|
131
|
-
--secret "your-appsecret" \
|
|
132
|
-
--base-url "https://apigw.lx.qianxin.com"
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
Puis redémarrez :
|
|
136
|
-
```bash
|
|
137
|
-
openclaw gateway restart
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
Obtenir les identifiants : **Lansenger Desktop** → **Contacts** → **Bots** → **Personal Bots** → cliquer sur l'icône **ℹ️** (le client mobile ne permet pas de voir les identifiants).
|
|
141
|
-
|
|
142
|
-
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 :
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
openclaw pairing approve Lansenger <code>
|
|
146
|
-
```
|
|
147
|
-
|
|
148
97
|
## Configuration
|
|
149
98
|
|
|
150
99
|
### Variables d'environnement requises
|
|
@@ -193,7 +142,7 @@ Ajoutez ces variables à `~/.openclaw/.env` ou à votre environnement :
|
|
|
193
142
|
| `appId` | App ID du bot personnel | — |
|
|
194
143
|
| `appSecret` | App Secret du bot personnel | — |
|
|
195
144
|
| `apiGatewayUrl` | URL de la passerelle API | `https://open.e.lanxin.cn/open/apigw` |
|
|
196
|
-
| `homeChannel` | Canal par défaut pour le routage de l'agent | `
|
|
145
|
+
| `homeChannel` | Canal par défaut pour le routage de l'agent | `Lansenger` |
|
|
197
146
|
| `enabled` | Activer/désactiver le canal | `true` |
|
|
198
147
|
| `allowFrom` | IDs d'utilisateurs autorisés en DM | `[]` |
|
|
199
148
|
| `dmSecurity` | Politique DM : `paired`, `allowlist`, `open` | `paired` |
|
package/README.md
CHANGED
|
@@ -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 | `
|
|
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` |
|
package/README.zhHans.md
CHANGED
|
@@ -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` | 代理路由的默认频道 | `
|
|
145
|
+
| `homeChannel` | 代理路由的默认频道 | `Lansenger` |
|
|
146
146
|
| `enabled` | 启用/禁用频道 | `true` |
|
|
147
147
|
| `allowFrom` | 允许私聊的用户 ID | `[]` |
|
|
148
148
|
| `dmSecurity` | 私聊策略:`paired`、`allowlist`、`open` | `paired` |
|
package/README.zhHant.md
CHANGED
|
@@ -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` | 代理路由的預設頻道 | `
|
|
145
|
+
| `homeChannel` | 代理路由的預設頻道 | `Lansenger` |
|
|
146
146
|
| `enabled` | 啟用/禁用頻道 | `true` |
|
|
147
147
|
| `allowFrom` | 允許私聊的使用者 ID | `[]` |
|
|
148
148
|
| `dmSecurity` | 私聊策略:`paired`、`allowlist`、`open` | `paired` |
|
package/README.zhHantHK.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
**預設策略**:優先使用 `formatText` 發送 Markdown 回覆。附件使用 `text` 回退。兩種類型均支援 @mention(透過 `reminder` 參數)—提及使用者時在文字中包含「@姓名」。
|
|
35
35
|
|
|
36
|
-
##
|
|
36
|
+
## 代理工具
|
|
37
37
|
|
|
38
38
|
| 工具 | 說明 |
|
|
39
39
|
|------|------|
|
|
@@ -94,57 +94,6 @@ openclaw gateway restart
|
|
|
94
94
|
openclaw pairing approve Lansenger <配對碼>
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
> ⚠️ 第2步是必需的,因為 `openclaw channels add` 只發現 `extensions/` 目錄下的插件。這是 [OpenClaw 上游 bug](https://docs.openclaw.ai)。
|
|
98
|
-
|
|
99
|
-
### 透過 npm
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# First install the npm package manually, then configure via CLI
|
|
103
|
-
npm install -g @lansenger-pm/openclaw-lansenger-channel
|
|
104
|
-
openclaw channels add --channel Lansenger --app-token "your-appid" --secret "your-appsecret"
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### 開發安裝(本地連結)
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
cd /path/to/openclaw-lansenger-channel
|
|
111
|
-
npm install
|
|
112
|
-
openclaw plugins install --link
|
|
113
|
-
openclaw gateway restart
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## 快速配置
|
|
117
|
-
|
|
118
|
-
安裝後,配置憑證:
|
|
119
|
-
|
|
120
|
-
> **單帳號**:`channels add` 僅建立一個帳號。如需多個機械人,見下方[多機械人設定](#多機械人設定)。
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
# 標準安裝(使用預設閘道 https://open.e.lanxin.cn/open/apigw)
|
|
124
|
-
openclaw channels add --channel Lansenger \
|
|
125
|
-
--app-token "你的-appid" \
|
|
126
|
-
--secret "你的-appsecret"
|
|
127
|
-
|
|
128
|
-
# 企業私有化部署(自訂閘道地址)
|
|
129
|
-
openclaw channels add --channel Lansenger \
|
|
130
|
-
--app-token "你的-appid" \
|
|
131
|
-
--secret "你的-appsecret" \
|
|
132
|
-
--base-url "https://apigw.lx.qianxin.com"
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
然後重啟:
|
|
136
|
-
```bash
|
|
137
|
-
openclaw gateway restart
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
取得憑證:**藍信桌面端** → **通訊錄** → **智能機器人** → **個人機械人** → 點擊右側 **ℹ️** 圖標(行動端不支援查看憑證)。
|
|
141
|
-
|
|
142
|
-
重啟後機械人自動透過 WebSocket 連線。給機械人發私聊訊息,會收到配對碼,核准配對:
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
openclaw pairing approve Lansenger <配對碼>
|
|
146
|
-
```
|
|
147
|
-
|
|
148
97
|
## 設定
|
|
149
98
|
|
|
150
99
|
### 必要環境變數
|
|
@@ -193,7 +142,7 @@ openclaw pairing approve Lansenger <配對碼>
|
|
|
193
142
|
| `appId` | 個人機械人 App ID | — |
|
|
194
143
|
| `appSecret` | 個人機械人 App Secret | — |
|
|
195
144
|
| `apiGatewayUrl` | API 網關 URL | `https://open.e.lanxin.cn/open/apigw` |
|
|
196
|
-
| `homeChannel` | 代理路由的預設頻道 | `
|
|
145
|
+
| `homeChannel` | 代理路由的預設頻道 | `Lansenger` |
|
|
197
146
|
| `enabled` | 啟用/禁用頻道 | `true` |
|
|
198
147
|
| `allowFrom` | 允許私聊的使用者 ID | `[]` |
|
|
199
148
|
| `dmSecurity` | 私聊策略:`paired`、`allowlist`、`open` | `paired` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansenger-pm/openclaw-lansenger-channel",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -90,13 +90,13 @@
|
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
+
"openclaw": "^2026.5.7",
|
|
93
94
|
"@types/node": "^25.7.0",
|
|
94
95
|
"@types/ws": "^8.18.1",
|
|
95
96
|
"typescript": "^6.0.3",
|
|
96
97
|
"vitest": "^4.1.6"
|
|
97
98
|
},
|
|
98
99
|
"dependencies": {
|
|
99
|
-
"openclaw": "^2026.5.7",
|
|
100
100
|
"ws": "^8.20.0"
|
|
101
101
|
}
|
|
102
102
|
}
|