@lansenger-pm/openclaw-lansenger-channel 3.16.6 → 3.16.7

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
@@ -176,7 +176,7 @@ Les identifiants peuvent aussi être fournis via la configuration `openclaw.json
176
176
  | `name` | Nom d'affichage pour ce compte | — |
177
177
  | `accounts` | Configuration multi-robot | — |
178
178
  | `groupPolicy` | Politique de groupe : `open` (tous les groupes), `allowlist` (groupes autorisés), `disabled` (désactivé) | `open` |
179
- | `groups` | Configuration par groupe : `enabled`, `requireMention`, `autoMentionReply`, `autoQuoteReply`, `allowFrom`. Clé = `chatId` du groupe. Utiliser `groups.<chatId>.enabled: true` pour le mode allowlist. | — |
179
+ | `groups` | Configuration par groupe : `enabled`, `requireMention`, `autoMentionReply`, `autoQuoteReply`. Clé = `chatId` du groupe. Utiliser `groups.<chatId>.enabled: true` pour le mode allowlist. | — |
180
180
  | `autoMentionReply` | @mention automatique de l'expéditeur dans les réponses de groupe | `false` |
181
181
  | `autoQuoteReply` | Citation automatique du message entrant dans les réponses (groupes et DM) | `false` |
182
182
  | `ackMessage` | Envoyer un message de confirmation avant le traitement de l'agent | `true` |
package/README.md CHANGED
@@ -168,7 +168,7 @@ Credentials can also be provided via `openclaw.json` config (see Optional Config
168
168
  | `name` | Display name for this account | — |
169
169
  | `accounts` | Multi-bot configuration | — |
170
170
  | `groupPolicy` | Group policy: `open`, `allowlist`, `disabled` | `open` |
171
- | `groups` | Per-group configuration: `enabled`, `requireMention`, `autoMentionReply`, `autoQuoteReply`, `allowFrom`. Key is group `chatId`. Use `groups.<chatId>.enabled: true` for allowlist mode. | — |
171
+ | `groups` | Per-group configuration: `enabled`, `requireMention`, `autoMentionReply`, `autoQuoteReply`. Key is group `chatId`. Use `groups.<chatId>.enabled: true` for allowlist mode. | — |
172
172
  | `autoMentionReply` | Auto @mention the sender when replying in groups | `false` |
173
173
  | `autoQuoteReply` | Auto quote the inbound message when replying (groups and DMs) | `false` |
174
174
  | `ackMessage` | Send a brief acknowledgment message before agent processing | `true` |
package/README.zhHans.md CHANGED
@@ -176,7 +176,7 @@ openclaw pairing approve lansenger <配对码>
176
176
  | `name` | 此账户的显示名称 | — |
177
177
  | `accounts` | 多机器人配置 | — |
178
178
  | `groupPolicy` | 群聊策略:`open`(所有群)、`allowlist`(仅允许列表群)、`disabled`(禁止群消息) | `open` |
179
- | `groups` | 群级配置:`enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply`、`allowFrom`。key 为群 `chatId`。allowlist 模式设 `groups.<chatId>.enabled: true`。 | — |
179
+ | `groups` | 群级配置:`enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply`。key 为群 `chatId`。allowlist 模式设 `groups.<chatId>.enabled: true`。 | — |
180
180
  | `autoMentionReply` | 群聊回复时自动 @发送者 | `false` |
181
181
  | `autoQuoteReply` | 回复时自动引用入站消息(群聊和私聊) | `false` |
182
182
  | `ackMessage` | 在代理处理前发送确认消息 | `true` |
package/README.zhHant.md CHANGED
@@ -176,7 +176,7 @@ openclaw pairing approve lansenger <配對碼>
176
176
  | `name` | 此帳戶的顯示名稱 | — |
177
177
  | `accounts` | 多機器人設定 | — |
178
178
  | `groupPolicy` | 群聊策略:`open`(所有群)、`allowlist`(僅允許列表群)、`disabled`(禁止群訊息) | `open` |
179
- | `groups` | 群級設定:`enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply`、`allowFrom`。key 為群 `chatId`。allowlist 模式設 `groups.<chatId>.enabled: true`。 | — |
179
+ | `groups` | 群級設定:`enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply`。key 為群 `chatId`。allowlist 模式設 `groups.<chatId>.enabled: true`。 | — |
180
180
  | `autoMentionReply` | 群聊回覆時自動 @傳送者 | `false` |
181
181
  | `autoQuoteReply` | 回覆時自動引用入站訊息(群聊和私聊) | `false` |
182
182
  | `ackMessage` | 在代理處理前傳送確認訊息 | `true` |
@@ -176,7 +176,7 @@ openclaw pairing approve lansenger <配對碼>
176
176
  | `name` | 此帳戶的顯示名稱 | — |
177
177
  | `accounts` | 多機械人設定 | — |
178
178
  | `groupPolicy` | 羣聊策略:`open`(所有羣)、`allowlist`(僅允許列表羣)、`disabled`(禁止羣訊息) | `open` |
179
- | `groups` | 羣級設定:`enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply`、`allowFrom`。key 為羣 `chatId`。allowlist 模式設 `groups.<chatId>.enabled: true`。 | — |
179
+ | `groups` | 羣級設定:`enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply`。key 為羣 `chatId`。allowlist 模式設 `groups.<chatId>.enabled: true`。 | — |
180
180
  | `autoMentionReply` | 羣聊回覆時自動 @發送者 | `false` |
181
181
  | `autoQuoteReply` | 回覆時自動引用入站訊息(羣聊和私聊) | `false` |
182
182
  | `ackMessage` | 在代理處理前發送確認訊息 | `true` |
@@ -130,6 +130,12 @@
130
130
  "default": "open",
131
131
  "description": "Group chat policy / 群聊策略:open (所有群), allowlist (仅允许列表群), disabled (禁止群消息)"
132
132
  },
133
+ "groupAllowFrom": {
134
+ "type": "array",
135
+ "items": { "type": "string" },
136
+ "default": [],
137
+ "description": "User IDs allowed to trigger the bot in group chats (sender-level filter, NOT group IDs). Lansenger user IDs and group IDs share the same format — confirm via API or logs. / 群聊中允许触发机器人的用户 ID 列表(用户级过滤,不是群 ID)。蓝信用户 ID 和群 ID 格式相同,请从 API 或日志确认。"
138
+ },
133
139
  "requireMention": {
134
140
  "type": "boolean",
135
141
  "default": true,
@@ -154,8 +160,7 @@
154
160
  "requireMention": { "type": "boolean", "description": "Require @mention to trigger / 是否需要 @提及才触发" },
155
161
  "autoMentionReply": { "type": "boolean", "description": "Auto @mention the sender when replying in this group / 该群自动回复时是否 @发送者" },
156
162
  "autoQuoteReply": { "type": "boolean", "description": "Auto quote the inbound message when replying in this group / 该群回复时是否自动引用入站消息" },
157
- "enabled": { "type": "boolean", "description": "Enable/disable this group / 启用/禁用该群" },
158
- "allowFrom": { "type": "array", "items": { "type": "string" }, "description": "Sender IDs allowed in this group / 该群允许的发送者 ID" }
163
+ "enabled": { "type": "boolean", "description": "Enable/disable this group / 启用/禁用该群" }
159
164
  }
160
165
  }
161
166
  },
@@ -199,6 +204,7 @@
199
204
  "allowFrom": { "type": "array", "items": { "type": "string" }, "description": "Allowed user IDs / 允许的用户 ID 列表" },
200
205
  "dmPolicy": { "type": "string", "enum": ["pairing", "allowlist", "open", "disabled"], "default": "pairing", "description": "DM security policy / 私聊安全策略" },
201
206
  "groupPolicy": { "type": "string", "enum": ["open", "allowlist", "disabled"], "default": "open", "description": "Group chat policy / 群聊策略" },
207
+ "groupAllowFrom": { "type": "array", "items": { "type": "string" }, "default": [], "description": "User IDs allowed to trigger the bot in group chats (sender-level filter, NOT group IDs). Inherits from top-level if unset. / 群聊中允许触发机器人的用户 ID 列表(用户级过滤,不是群 ID)。未设置时继承顶层配置。" },
202
208
  "requireMention": { "type": "boolean", "description": "Require @mention to trigger in groups (inherits from top-level if unset) / 群聊中是否需要 @提及才触发(未设置时继承顶层配置)" },
203
209
  "autoMentionReply": { "type": "boolean", "description": "Auto @mention the sender when replying in groups (inherits from top-level if unset) / 群聊自动回复时是否 @发送者(未设置时继承顶层配置)" },
204
210
  "autoQuoteReply": { "type": "boolean", "description": "Auto quote the inbound message when replying (inherits from top-level if unset, applies to groups and DMs) / 回复时是否自动引用入站消息(未设置时继承顶层配置,群聊和私聊均生效)" },
@@ -215,8 +221,7 @@
215
221
  "enabled": { "type": "boolean", "description": "Enable/disable this group for this account / 启用/禁用该群" },
216
222
  "requireMention": { "type": "boolean", "description": "Require @mention to trigger / 是否需要 @提及才触发" },
217
223
  "autoMentionReply": { "type": "boolean", "description": "Auto @mention the sender when replying / 自动回复时是否 @发送者" },
218
- "autoQuoteReply": { "type": "boolean", "description": "Auto quote the inbound message when replying / 回复时是否自动引用入站消息" },
219
- "allowFrom": { "type": "array", "items": { "type": "string" }, "description": "Sender IDs allowed in this group / 该群允许的发送者 ID" }
224
+ "autoQuoteReply": { "type": "boolean", "description": "Auto quote the inbound message when replying / 回复时是否自动引用入站消息" }
220
225
  }
221
226
  }
222
227
  }
@@ -317,10 +322,16 @@
317
322
  },
318
323
  "help": "Controls which groups can trigger the bot. Recommended: open — for personal bots, the owner already controls who can add the bot to groups. / 控制哪些群可以触发机器人。推荐:open — 个人机器人由主人控制谁能把它拉到群里。"
319
324
  },
325
+ "groupAllowFrom": {
326
+ "label": "Group Allow From / 群聊允许的用户",
327
+ "placeholder": "Add user ID / 添加用户 ID",
328
+ "sensitive": false,
329
+ "help": "Lansenger user IDs allowed to trigger the bot in group chats (sender-level filter, NOT group IDs). Lansenger user IDs and group IDs share the same format — confirm via API or logs. / 群聊中允许触发机器人的蓝信用户 ID(用户级过滤,非群 ID)。蓝信用户 ID 和群 ID 格式相同,请从 API 或日志确认。"
330
+ },
320
331
  "groups": {
321
332
  "label": "Per-Group Config / 单群配置",
322
333
  "sensitive": false,
323
- "help": "Enable/disable individual groups and fine-tune per-group settings (requireMention, autoMentionReply, enabled, allowFrom). Key is group chatId. For allowlist mode (groupPolicy=allowlist), add groups with enabled: true. / 逐群启用/禁用和微调设置。key 为群聊 chatId。allowlist 模式时配置 enabled: true 加入白名单。"
334
+ "help": "Enable/disable individual groups and fine-tune per-group settings (requireMention, autoMentionReply, enabled). Key is group chatId. For allowlist mode (groupPolicy=allowlist), add groups with enabled: true. / 逐群启用/禁用和微调设置。key 为群聊 chatId。allowlist 模式时配置 enabled: true 加入白名单。"
324
335
  },
325
336
  "accounts": {
326
337
  "label": "Multi-Bot Accounts / 多机器人账号",
@@ -384,6 +395,12 @@
384
395
  },
385
396
  "help": "Group chat policy for this bot / 该机器人的群聊策略"
386
397
  },
398
+ "accounts.*.groupAllowFrom": {
399
+ "label": "Group Allow From / 群聊允许的用户",
400
+ "placeholder": "Add user ID / 添加用户 ID",
401
+ "sensitive": false,
402
+ "help": "Lansenger user IDs allowed to trigger this bot in group chats (sender-level filter, NOT group IDs). Inherits from top-level if unset. / 群聊中允许触发该机器人的蓝信用户 ID(用户级过滤,非群 ID)。未设置时继承顶层配置。"
403
+ },
387
404
  "accounts.*.ackMessage": {
388
405
  "label": "Ack Message / 确认消息",
389
406
  "help": "Send ack message for this bot (inherits from top-level if unset) / 该机器人是否发送确认消息(未设置时继承顶层配置)"
@@ -405,7 +422,7 @@
405
422
  "accounts.*.groups": {
406
423
  "label": "Per-Group Config / 单群配置",
407
424
  "sensitive": false,
408
- "help": "Per-group configuration for this account (requireMention, enabled, allowFrom). Overrides section-level groups. / 该账号的单群配置,覆盖顶级 groups 设置。"
425
+ "help": "Per-group configuration for this account (requireMention, enabled). Overrides section-level groups. / 该账号的单群配置,覆盖顶级 groups 设置。"
409
426
  }
410
427
  }
411
428
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansenger-pm/openclaw-lansenger-channel",
3
- "version": "3.16.6",
3
+ "version": "3.16.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -88,7 +88,7 @@
88
88
  "quickstartAllowFrom": true
89
89
  },
90
90
  "install": {
91
- "npmSpec": "@lansenger-pm/openclaw-lansenger-channel@3.16.6",
91
+ "npmSpec": "@lansenger-pm/openclaw-lansenger-channel@3.16.7",
92
92
  "localPath": ".",
93
93
  "defaultChoice": "npm"
94
94
  },
@@ -74,7 +74,7 @@ metadata: {"openclaw":{"requires":{"cli":["openclaw"]},"primaryEnv":"LANSENGER_A
74
74
  |--------|------|--------|------|
75
75
  | `groupPolicy` | enum | `open` | 群级策略。可选值:`open`(所有群可触发)、`allowlist`(仅 groups 中 enabled:true 的群)、`disabled`(禁止群消息) |
76
76
  | `groupAllowFrom` | string[] | `[]` | **用户级过滤**:只有列表中的蓝信用户 ID 在群聊中发消息才会触发 bot。注意,此项填的是**用户 ID**(发消息的人),不是群 ID。蓝信用户 ID 和群 ID 格式相同,无法靠格式区分,请从蓝信消息日志或 API 确认。 |
77
- | `groups` | object | `{}` | 单群配置(key 为群 chatId),可设置 `enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply`、`allowFrom` |
77
+ | `groups` | object | `{}` | 单群配置(key 为群 chatId),可设置 `enabled`、`requireMention`、`autoMentionReply`、`autoQuoteReply` |
78
78
  | `requireMention` | boolean | `true` | 群聊中是否需要 `@机器人名称` 才会触发。设为 `false` 则任何消息都会触发。 |
79
79
  | `autoMentionReply` | boolean | `false` | 群聊自动回复时是否 @入站消息发送者。蓝信 API 会根据 staffId 自动拼接名字,无需 Agent 手动写 `@姓名`。支持按群、按账号覆盖。 |
80
80
  | `autoQuoteReply` | boolean | `false` | 群聊和私聊回复时是否自动引用入站消息。支持按群、按账号覆盖。私聊时 per-group 配置不生效。 |
@@ -105,9 +105,6 @@ openclaw config set channels.lansenger.accounts.<appId>.groups.<chatId>.autoQuot
105
105
 
106
106
  # 启用/禁用特定群
107
107
  openclaw config set channels.lansenger.accounts.<appId>.groups.<chatId>.enabled false
108
-
109
- # 限制特定群中的发送者
110
- openclaw config set channels.lansenger.accounts.<appId>.groups.<chatId>.allowFrom '["<userId1>","<userId2>"]'
111
108
  ```
112
109
 
113
110
  > 仅有一个机器人时可以用 section 级 `channels.lansenger.groups.<chatId>` 简化配置。