aicq-openclaw-plugin 1.0.0
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/dist/index.js +11646 -0
- package/openclaw.plugin.json +80 -0
- package/package.json +65 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "aicq-chat",
|
|
3
|
+
"name": "AICQ Encrypted Chat",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "End-to-end encrypted chat plugin supporting AI-AI, Human-AI communication with P2P messaging via Noise-XK handshake, Ed25519/X25519/AES-256-GCM encryption",
|
|
6
|
+
"enabledByDefault": false,
|
|
7
|
+
"channels": ["encrypted-chat"],
|
|
8
|
+
"tools": ["chat-friend", "chat-send", "chat-export-key"],
|
|
9
|
+
"contracts": {
|
|
10
|
+
"tools": ["chat-friend", "chat-send", "chat-export-key"]
|
|
11
|
+
},
|
|
12
|
+
"configSchema": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"serverUrl": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"default": "ws://localhost:3000",
|
|
19
|
+
"description": "AICQ relay server WebSocket URL",
|
|
20
|
+
"uiHints": {
|
|
21
|
+
"label": "Server URL",
|
|
22
|
+
"placeholder": "ws://localhost:3000",
|
|
23
|
+
"order": 1,
|
|
24
|
+
"group": "Connection",
|
|
25
|
+
"helpText": "The WebSocket URL of the AICQ relay server. For local development, use ws://localhost:3000. For production, use wss://your-server.com."
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"agentId": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Unique agent identifier (auto-generated if empty)",
|
|
31
|
+
"uiHints": {
|
|
32
|
+
"label": "Agent ID",
|
|
33
|
+
"placeholder": "auto-generated",
|
|
34
|
+
"order": 2,
|
|
35
|
+
"group": "Connection",
|
|
36
|
+
"advanced": true,
|
|
37
|
+
"helpText": "A unique identifier for this agent node. Leave empty to auto-generate a new identity with Ed25519 key pair."
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"maxFriends": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"default": 200,
|
|
43
|
+
"description": "Maximum number of friends allowed",
|
|
44
|
+
"uiHints": {
|
|
45
|
+
"label": "Max Friends",
|
|
46
|
+
"order": 3,
|
|
47
|
+
"group": "Limits",
|
|
48
|
+
"min": 1,
|
|
49
|
+
"max": 1000,
|
|
50
|
+
"helpText": "Maximum number of encrypted friend connections allowed. Default is 200."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"autoAcceptFriends": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false,
|
|
56
|
+
"description": "Auto-accept incoming friend requests",
|
|
57
|
+
"uiHints": {
|
|
58
|
+
"label": "Auto-Accept Friends",
|
|
59
|
+
"order": 4,
|
|
60
|
+
"group": "Limits",
|
|
61
|
+
"helpText": "When enabled, all incoming friend requests are automatically accepted. Disable for manual review of requests."
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"uiHints": {
|
|
66
|
+
"groups": [
|
|
67
|
+
{
|
|
68
|
+
"id": "Connection",
|
|
69
|
+
"label": "Server Connection",
|
|
70
|
+
"order": 1
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "Limits",
|
|
74
|
+
"label": "Friend Limits & Permissions",
|
|
75
|
+
"order": 2
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aicq-openclaw-plugin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "AICQ OpenClaw plugin - end-to-end encrypted P2P chat for AI agents",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/",
|
|
9
|
+
"openclaw.plugin.json"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "ts-node-dev --respawn src/index.ts",
|
|
13
|
+
"build": "node ../scripts-build-plugin/build.mjs",
|
|
14
|
+
"prepack": "npm run build",
|
|
15
|
+
"start": "node dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"openclaw": {
|
|
18
|
+
"extensions": [
|
|
19
|
+
"./dist/index.js"
|
|
20
|
+
],
|
|
21
|
+
"compat": {
|
|
22
|
+
"pluginApi": ">=2026.4.2"
|
|
23
|
+
},
|
|
24
|
+
"build": {
|
|
25
|
+
"openclawVersion": "2026.4.2",
|
|
26
|
+
"pluginSdkVersion": "2026.4.2"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"openclaw": ">=2026.4.2"
|
|
31
|
+
},
|
|
32
|
+
"peerDependenciesMeta": {
|
|
33
|
+
"openclaw": { "optional": true }
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"ws": "^8.16.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@aicq/crypto": "file:../shared/crypto",
|
|
40
|
+
"openclaw": "^2026.4.2",
|
|
41
|
+
"esbuild": "^0.25.0",
|
|
42
|
+
"typescript": "^5.3.3",
|
|
43
|
+
"@types/node": "^20.10.0",
|
|
44
|
+
"@types/ws": "^8.5.10",
|
|
45
|
+
"@types/uuid": "^9.0.7",
|
|
46
|
+
"@types/qrcode": "^1.5.5",
|
|
47
|
+
"ts-node-dev": "^2.0.0",
|
|
48
|
+
"uuid": "^9.0.0",
|
|
49
|
+
"qrcode": "^1.5.3",
|
|
50
|
+
"dotenv": "^16.3.1"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"openclaw",
|
|
54
|
+
"aicq",
|
|
55
|
+
"encrypted-chat",
|
|
56
|
+
"p2p",
|
|
57
|
+
"e2ee",
|
|
58
|
+
"ai-agent"
|
|
59
|
+
],
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/ctz168/aicq"
|
|
64
|
+
}
|
|
65
|
+
}
|