aicq-openclaw 3.16.3 → 3.16.4
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/openclaw.plugin.json +4 -6
- package/package.json +1 -1
- package/src/channel.js +11 -2
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "aicq-chat",
|
|
3
3
|
"name": "AICQ Encrypted Chat",
|
|
4
|
-
"version": "3.16.
|
|
4
|
+
"version": "3.16.4",
|
|
5
5
|
"description": "End-to-end encrypted chat channel via AICQ protocol — in-process Channel plugin using OpenClaw Channel SDK",
|
|
6
6
|
"entry": "index.js",
|
|
7
7
|
"activation": {
|
|
@@ -33,10 +33,8 @@
|
|
|
33
33
|
"items": {
|
|
34
34
|
"type": "string"
|
|
35
35
|
},
|
|
36
|
-
"default": [
|
|
37
|
-
|
|
38
|
-
],
|
|
39
|
-
"description": "启动后自动添加为好友的 AICQ 号码列表(如 1000000)"
|
|
36
|
+
"default": [],
|
|
37
|
+
"description": "启动后自动添加为好友的 AICQ 号码列表;也可用环境变量 AICQ_AUTO_ADD_FRIENDS(逗号分隔)配置"
|
|
40
38
|
},
|
|
41
39
|
"serverUrl": {
|
|
42
40
|
"type": "string",
|
|
@@ -82,7 +80,7 @@
|
|
|
82
80
|
},
|
|
83
81
|
"autoAddFriends": {
|
|
84
82
|
"label": "Auto Add Friends",
|
|
85
|
-
"help": "Comma-separated AICQ numbers to auto-add as friends on startup (
|
|
83
|
+
"help": "Comma-separated AICQ numbers to auto-add as friends on startup (or AICQ_AUTO_ADD_FRIENDS env)"
|
|
86
84
|
},
|
|
87
85
|
"serverUrl": {
|
|
88
86
|
"label": "AICQ Server URL",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aicq-openclaw",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.4",
|
|
4
4
|
"description": "AICQ End-to-end Encrypted Chat Channel Plugin for OpenClaw — In-process Channel SDK architecture with friend management, group chat, file transfer, and AI agent communication",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
package/src/channel.js
CHANGED
|
@@ -347,8 +347,17 @@ _plugin.gateway = {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
// Auto-add friends from config (autoAddFriends list)
|
|
351
|
-
|
|
350
|
+
// Auto-add friends from config (autoAddFriends list).
|
|
351
|
+
// [fix v3.16.4] precedence: explicit channel config > AICQ_AUTO_ADD_FRIENDS env
|
|
352
|
+
// (runtime.autoAddFriends, set by index.js) > schema-resolved account default.
|
|
353
|
+
// The manifest default is now [] — it previously shipped a hard-coded author
|
|
354
|
+
// number, so every fresh install tried to befriend a stranger at startup and
|
|
355
|
+
// the env override was silently masked by the schema default.
|
|
356
|
+
const cfgAutoAdd = cfg?.channels?.["aicq-chat"]?.autoAddFriends;
|
|
357
|
+
const envAutoAdd = Array.isArray(runtime.autoAddFriends) ? runtime.autoAddFriends : [];
|
|
358
|
+
const autoAddFriends = (Array.isArray(cfgAutoAdd) && cfgAutoAdd.length > 0)
|
|
359
|
+
? cfgAutoAdd
|
|
360
|
+
: (envAutoAdd.length > 0 ? envAutoAdd : (account?.autoAddFriends || []));
|
|
352
361
|
if (Array.isArray(autoAddFriends) && autoAddFriends.length > 0) {
|
|
353
362
|
console.log(`[AICQ Channel] Auto-adding ${autoAddFriends.length} friend(s) from config...`);
|
|
354
363
|
for (const friendEntry of autoAddFriends) {
|