@lansenger/openclaw-channel-lansenger 1.1.21 → 1.1.22

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.
Files changed (2) hide show
  1. package/openclaw.plugin.json +41 -185
  2. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  "id": "openclaw-channel-lansenger",
3
3
  "name": "Lansenger",
4
4
  "description": "Lansenger (蓝信) channel plugin — WebSocket long-connection bot",
5
- "version": "1.1.21",
5
+ "version": "1.1.22",
6
6
  "main": "dist/index.js",
7
7
  "kind": "channel",
8
8
  "channels": [
@@ -19,199 +19,55 @@
19
19
  ],
20
20
  "configSchema": {
21
21
  "type": "object",
22
- "additionalProperties": true,
23
- "properties": {
24
- "enabled": {
25
- "type": "boolean",
26
- "default": true,
27
- "ui": {
28
- "label": "启用蓝信渠道",
29
- "help": "总开关。关闭后该账号不接收消息也不发送回复。",
30
- "order": 10
31
- }
32
- },
33
- "credentials": {
34
- "type": "object",
35
- "properties": {
36
- "name": {
37
- "type": "string",
38
- "ui": {
39
- "label": "账号显示名称",
40
- "help": "用于多账号场景下的识别名称(可选)。",
41
- "order": 10
42
- }
43
- },
44
- "appId": {
45
- "type": "string",
46
- "ui": {
47
- "label": "App ID",
48
- "help": "蓝信应用的 App ID。可在开发者后台查看。",
49
- "placeholder": "3417088-3744000",
50
- "order": 20
51
- }
52
- },
53
- "appSecret": {
54
- "type": "string",
55
- "ui": {
56
- "label": "App Secret",
57
- "help": "蓝信应用密钥。",
58
- "sensitive": true,
59
- "order": 30
60
- }
61
- },
62
- "apiGatewayUrl": {
63
- "type": "string",
64
- "ui": {
65
- "label": "API 网关地址",
66
- "help": "蓝信开放平台 API 网关地址。",
67
- "advanced": true,
68
- "order": 40
69
- }
70
- }
71
- },
72
- "ui": {
73
- "label": "1. 接入凭据",
74
- "help": "先完成机器人凭据配置,再继续配置消息行为。",
75
- "order": 20
76
- }
77
- },
78
- "conversation": {
22
+ "properties": {}
23
+ },
24
+ "channelConfigs": {
25
+ "Lansenger": {
26
+ "label": "Lansenger",
27
+ "description": "Lansenger (蓝信) channel plugin — WebSocket long-connection bot",
28
+ "schema": {
79
29
  "type": "object",
80
30
  "properties": {
81
- "allowFrom": {
82
- "type": "array",
83
- "items": {
84
- "type": "string"
85
- },
86
- "ui": {
87
- "label": "允许发送者列表",
88
- "help": "仅允许列表内用户触发(留空表示允许所有用户)。",
89
- "advanced": true,
90
- "order": 10
91
- }
92
- },
93
- "requireMention": {
31
+ "enabled": {
94
32
  "type": "boolean",
95
- "default": true,
96
- "ui": {
97
- "label": "群聊要求 @机器人",
98
- "help": "开启后,群聊里需要 @ 机器人才会响应。",
99
- "advanced": true,
100
- "order": 20
101
- }
33
+ "default": true
102
34
  },
103
- "requirePrefix": {
104
- "type": "string",
105
- "ui": {
106
- "label": "群聊触发前缀",
107
- "help": "设置后仅响应以此前缀开头的消息。",
108
- "advanced": true,
109
- "order": 30
110
- }
111
- },
112
- "isolateContextPerUserInGroup": {
113
- "type": "boolean",
114
- "default": false,
115
- "ui": {
116
- "label": "群聊按用户隔离上下文",
117
- "help": "开启后同一群内每个用户拥有独立会话上下文。",
118
- "advanced": true,
119
- "order": 40
35
+ "accounts": {
36
+ "type": "object",
37
+ "description": "Named multi-account Lansenger configurations. Each account can override most top-level settings and inherits unspecified values from the top level.",
38
+ "additionalProperties": {
39
+ "type": "object",
40
+ "properties": {
41
+ "appId": {
42
+ "type": "string",
43
+ "description": "蓝信机器人的 AppID"
44
+ },
45
+ "appSecret": {
46
+ "type": "string",
47
+ "description": "蓝信机器人的 AppSecret"
48
+ },
49
+ "apiGatewayUrl": {
50
+ "type": "string",
51
+ "description": "蓝信 API 网关地址 支持https/http协议"
52
+ },
53
+ "agentId": {
54
+ "type": "string",
55
+ "description": "(可选) 绑定的 OpenClaw Agent ID",
56
+ "default": "default"
57
+ }
58
+ }
120
59
  }
121
60
  }
122
- },
123
- "ui": {
124
- "label": "2. 会话触发与权限",
125
- "help": "控制哪些消息会触发机器人。",
126
- "order": 30
127
61
  }
128
62
  },
129
- "reply": {
130
- "type": "object",
131
- "properties": {
132
- "replyMode": {
133
- "type": "string",
134
- "enum": [
135
- "text",
136
- "markdown"
137
- ],
138
- "default": "markdown",
139
- "ui": {
140
- "label": "回复模式",
141
- "help": "text 纯文本 / markdown 富文本",
142
- "order": 10
143
- }
144
- },
145
- "maxChars": {
146
- "type": "number",
147
- "default": 4000,
148
- "ui": {
149
- "label": "单条消息最大长度",
150
- "help": "超过自动拆分",
151
- "order": 20
152
- }
153
- }
154
- },
155
- "ui": {
156
- "label": "3. 回复策略",
157
- "help": "设置回复格式、文本长度限制。",
158
- "order": 40
159
- }
160
- },
161
- "connection": {
162
- "type": "object",
163
- "properties": {
164
- "apiBase": {
165
- "type": "string",
166
- "ui": {
167
- "label": "API 基础地址",
168
- "advanced": true,
169
- "order": 10
170
- }
171
- },
172
- "apiGatewayUrl": {
173
- "type": "string",
174
- "ui": {
175
- "label": "API 网关地址",
176
- "help": "蓝信开放平台 API 网关地址。",
177
- "advanced": true,
178
- "order": 20
179
- }
180
- },
181
- "apiGatewayWssUrl": {
182
- "type": "string",
183
- "ui": {
184
- "label": "API WebSocket 网关地址",
185
- "help": "蓝信开放平台 WebSocket 网关地址,优先使用,未配置则使用 API 网关地址的 wss 协议。",
186
- "advanced": true,
187
- "order": 30
188
- }
189
- }
190
- },
191
- "ui": {
192
- "label": "4. 连接与网关",
193
- "help": "高级连接参数,默认即可。",
194
- "order": 50
195
- }
196
- },
197
- "testMode": {
198
- "type": "object",
199
- "properties": {
200
- "enabled": {
201
- "type": "boolean",
202
- "default": false,
203
- "ui": {
204
- "label": "启用测试模式",
205
- "help": "开启后,接收到的消息将直接发送到 staffId 的私聊,跳过 OpenClaw 处理。",
206
- "advanced": true,
207
- "order": 10
208
- }
209
- }
63
+ "uiHints": {
64
+ "enabled": {
65
+ "label": "启用蓝信渠道",
66
+ "help": "总开关。关闭后该账号不接收消息也不发送回复。"
210
67
  },
211
- "ui": {
212
- "label": "5. 测试模式",
213
- "help": "开启后,接收到的消息将直接发送到 staffId 的私聊,用于测试消息接收功能。",
214
- "order": 60
68
+ "accounts": {
69
+ "label": "多账号配置",
70
+ "help": "创建多个蓝信账号配置,用于不同的应用或租户。"
215
71
  }
216
72
  }
217
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansenger/openclaw-channel-lansenger",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "type": "module",
5
5
  "description": "蓝信机器人插件 - 让 AI 助手接入蓝信,无需服务器 | Lanxin channel plugin for OpenClaw",
6
6
  "author": "lxfe",