aicq-chat-plugin 2.5.9 → 2.6.1
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.md +11 -6
- package/SKILL.md +11 -6
- package/cli.js +29 -19
- package/extension.js +1 -1
- package/index.js +578 -569
- package/lib/chat.js +0 -0
- package/lib/crypto.js +0 -0
- package/lib/database.js +205 -85
- package/lib/file-transfer.js +0 -0
- package/lib/handshake.js +0 -0
- package/lib/identity.js +0 -0
- package/lib/server-client.js +1 -1
- package/openclaw.plugin.json +2 -2
- package/package.json +12 -12
- package/postinstall.js +15 -5
- package/public/favicon.ico +0 -0
- package/public/icon-16.png +0 -0
- package/public/icon-32.png +0 -0
- package/public/index.html +84 -56
- package/public/logo-512.png +0 -0
package/README.md
CHANGED
|
@@ -5,12 +5,17 @@ AICQ 端到端加密聊天插件 — 适用于 OpenClaw 的完整聊天 UI。
|
|
|
5
5
|
## 一键安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
#
|
|
9
|
-
|
|
8
|
+
# 1. 卸载旧版
|
|
9
|
+
openclaw plugins uninstall aicq-chat
|
|
10
10
|
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
# 2. 安装新版
|
|
12
|
+
openclaw plugins install npm:aicq-chat-plugin
|
|
13
|
+
|
|
14
|
+
# 3. 重启 gateway
|
|
15
|
+
openclaw gateway restart
|
|
16
|
+
|
|
17
|
+
# 4. 浏览器访问聊天界面
|
|
18
|
+
open http://localhost:6109
|
|
14
19
|
```
|
|
15
20
|
|
|
16
21
|
## 功能
|
|
@@ -46,7 +51,7 @@ aicq-plugin status
|
|
|
46
51
|
| 变量 | 默认值 | 说明 |
|
|
47
52
|
|------|--------|------|
|
|
48
53
|
| `AICQ_PORT` | 6109 | 插件服务端口 |
|
|
49
|
-
| `AICQ_SERVER_URL` |
|
|
54
|
+
| `AICQ_SERVER_URL` | https://aicq.online | AICQ 服务器地址 |
|
|
50
55
|
| `AICQ_DATA_DIR` | ~/.aicq-plugin | 数据存储目录 |
|
|
51
56
|
|
|
52
57
|
## OpenClaw 集成
|
package/SKILL.md
CHANGED
|
@@ -24,12 +24,17 @@ AICQ 是一个端到端加密聊天插件,适用于 OpenClaw 的完整聊天 U
|
|
|
24
24
|
## 一键启动
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
#
|
|
28
|
-
|
|
27
|
+
# 1. 卸载旧版
|
|
28
|
+
openclaw plugins uninstall aicq-chat
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
# 2. 安装新版
|
|
31
|
+
openclaw plugins install npm:aicq-chat-plugin
|
|
32
|
+
|
|
33
|
+
# 3. 重启 gateway
|
|
34
|
+
openclaw gateway restart
|
|
35
|
+
|
|
36
|
+
# 4. 浏览器访问聊天界面
|
|
37
|
+
open http://localhost:6109
|
|
33
38
|
```
|
|
34
39
|
|
|
35
40
|
## OpenClaw 集成
|
|
@@ -53,7 +58,7 @@ aicq-plugin
|
|
|
53
58
|
| 变量 | 默认值 | 说明 |
|
|
54
59
|
|------|--------|------|
|
|
55
60
|
| `AICQ_PORT` | 6109 | 插件服务端口 |
|
|
56
|
-
| `AICQ_SERVER_URL` |
|
|
61
|
+
| `AICQ_SERVER_URL` | https://aicq.online | AICQ 服务器地址 |
|
|
57
62
|
| `AICQ_DATA_DIR` | ~/.aicq-plugin | 数据存储目录 |
|
|
58
63
|
|
|
59
64
|
## Chat UI
|
package/cli.js
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
* AICQ Chat Plugin — CLI Entry Point
|
|
4
4
|
*
|
|
5
5
|
* Usage:
|
|
6
|
-
*
|
|
7
|
-
* aicq-
|
|
6
|
+
* openclaw plugins install npm:aicq-chat-plugin Install via openclaw CLI
|
|
7
|
+
* openclaw plugins uninstall aicq-chat Uninstall old version
|
|
8
|
+
* openclaw gateway restart Restart gateway
|
|
9
|
+
* aicq-plugin Start plugin server
|
|
8
10
|
* aicq-plugin start Start the plugin server
|
|
9
11
|
* aicq-plugin install Install plugin to OpenClaw only
|
|
10
12
|
* aicq-plugin uninstall Remove plugin from OpenClaw
|
|
@@ -22,7 +24,7 @@ const command = args[0] || 'start';
|
|
|
22
24
|
|
|
23
25
|
// Parse options
|
|
24
26
|
let port = process.env.AICQ_PORT || '6109';
|
|
25
|
-
let serverUrl = process.env.AICQ_SERVER_URL || '
|
|
27
|
+
let serverUrl = process.env.AICQ_SERVER_URL || 'https://aicq.online';
|
|
26
28
|
|
|
27
29
|
for (let i = 0; i < args.length; i++) {
|
|
28
30
|
if ((args[i] === '--port' || args[i] === '-p') && args[i + 1]) {
|
|
@@ -62,12 +64,17 @@ AICQ 是一个端到端加密聊天插件,适用于 OpenClaw 的完整聊天 U
|
|
|
62
64
|
## 一键启动
|
|
63
65
|
|
|
64
66
|
\`\`\`bash
|
|
65
|
-
#
|
|
66
|
-
|
|
67
|
+
# 1. 卸载旧版
|
|
68
|
+
openclaw plugins uninstall aicq-chat
|
|
67
69
|
|
|
68
|
-
#
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
# 2. 安装新版
|
|
71
|
+
openclaw plugins install npm:aicq-chat-plugin
|
|
72
|
+
|
|
73
|
+
# 3. 重启 gateway
|
|
74
|
+
openclaw gateway restart
|
|
75
|
+
|
|
76
|
+
# 4. 浏览器访问聊天界面
|
|
77
|
+
open http://localhost:6109
|
|
71
78
|
\`\`\`
|
|
72
79
|
|
|
73
80
|
## OpenClaw 集成
|
|
@@ -91,7 +98,7 @@ aicq-plugin
|
|
|
91
98
|
| 变量 | 默认值 | 说明 |
|
|
92
99
|
|------|--------|------|
|
|
93
100
|
| \`AICQ_PORT\` | 6109 | 插件服务端口 |
|
|
94
|
-
| \`AICQ_SERVER_URL\` |
|
|
101
|
+
| \`AICQ_SERVER_URL\` | https://aicq.online | AICQ 服务器地址 |
|
|
95
102
|
| \`AICQ_DATA_DIR\` | ~/.aicq-plugin | 数据存储目录 |
|
|
96
103
|
|
|
97
104
|
## Chat UI
|
|
@@ -389,8 +396,10 @@ if (command === '--help' || command === '-h') {
|
|
|
389
396
|
AICQ Chat Plugin — End-to-End Encrypted Chat for OpenClaw
|
|
390
397
|
|
|
391
398
|
Usage:
|
|
392
|
-
|
|
393
|
-
aicq-
|
|
399
|
+
openclaw plugins install npm:aicq-chat-plugin Install plugin via openclaw CLI
|
|
400
|
+
openclaw plugins uninstall aicq-chat Uninstall old version
|
|
401
|
+
openclaw gateway restart Restart gateway after install
|
|
402
|
+
aicq-plugin [command] [options] Advanced usage
|
|
394
403
|
|
|
395
404
|
Commands:
|
|
396
405
|
start Install to OpenClaw (if needed) and start plugin server (default)
|
|
@@ -400,7 +409,7 @@ Commands:
|
|
|
400
409
|
|
|
401
410
|
Options:
|
|
402
411
|
--port, -p <port> Plugin server port (default: 6109)
|
|
403
|
-
--server, -s <url> AICQ server URL (default:
|
|
412
|
+
--server, -s <url> AICQ server URL (default: https://aicq.online)
|
|
404
413
|
--help, -h Show this help message
|
|
405
414
|
|
|
406
415
|
Environment Variables:
|
|
@@ -411,12 +420,13 @@ Environment Variables:
|
|
|
411
420
|
OPENCLAW_WORKSPACE OpenClaw workspace directory (for skills/)
|
|
412
421
|
|
|
413
422
|
Examples:
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
aicq-plugin
|
|
417
|
-
aicq-plugin
|
|
418
|
-
aicq-plugin
|
|
419
|
-
aicq-plugin
|
|
423
|
+
openclaw plugins install npm:aicq-chat-plugin # Install via openclaw CLI
|
|
424
|
+
openclaw gateway restart # Restart gateway
|
|
425
|
+
aicq-plugin # Start on default port
|
|
426
|
+
aicq-plugin install # Install to OpenClaw only
|
|
427
|
+
aicq-plugin uninstall # Remove from OpenClaw
|
|
428
|
+
aicq-plugin --port 8080 # Start on port 8080
|
|
429
|
+
aicq-plugin -s http://localhost # Connect to local server
|
|
420
430
|
`);
|
|
421
431
|
process.exit(0);
|
|
422
432
|
}
|
|
@@ -443,7 +453,7 @@ if (command === 'status') {
|
|
|
443
453
|
});
|
|
444
454
|
req.on('error', () => {
|
|
445
455
|
console.log(`AICQ Plugin is not running on port ${port}.`);
|
|
446
|
-
console.log(`Start it with:
|
|
456
|
+
console.log(`Start it with: openclaw plugins install npm:aicq-chat-plugin`);
|
|
447
457
|
});
|
|
448
458
|
req.setTimeout(3000, () => {
|
|
449
459
|
req.destroy();
|
package/extension.js
CHANGED
|
@@ -109,7 +109,7 @@ function register() {
|
|
|
109
109
|
return {
|
|
110
110
|
id: 'aicq-chat',
|
|
111
111
|
name: 'AICQ Encrypted Chat',
|
|
112
|
-
version: '2.
|
|
112
|
+
version: '2.6.0',
|
|
113
113
|
description: 'End-to-end encrypted chat plugin for OpenClaw agents',
|
|
114
114
|
|
|
115
115
|
// Sidecar configuration — OpenClaw starts this process automatically
|