@qqvu/openclaw-channel 1.0.27 → 1.0.28
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 +49 -3
- package/package.json +1 -1
package/openclaw.plugin.json
CHANGED
|
@@ -5,16 +5,62 @@
|
|
|
5
5
|
"channels": ["pufferfish"],
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
|
-
"additionalProperties":
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"$defs": {
|
|
10
|
+
"botConfig": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"properties": {
|
|
14
|
+
"enabled": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "是否启用该机器人"
|
|
17
|
+
},
|
|
18
|
+
"apiUrl": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Pufferfish API 地址,例如 http://127.0.0.1:5020"
|
|
21
|
+
},
|
|
22
|
+
"botUid": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "机器人唯一标识;留空时默认使用当前 key"
|
|
25
|
+
},
|
|
26
|
+
"privateKey": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Ed25519 私钥 PEM(用于 connect challenge 签名认证)"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": ["apiUrl", "privateKey"]
|
|
32
|
+
},
|
|
33
|
+
"botProfile": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"properties": {
|
|
37
|
+
"systemPrompt": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "机器人系统提示词"
|
|
40
|
+
},
|
|
41
|
+
"skills": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"description": "启用技能列表(字符串数组)"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
9
51
|
"properties": {
|
|
10
52
|
"bots": {
|
|
11
53
|
"type": "object",
|
|
12
|
-
"additionalProperties":
|
|
54
|
+
"additionalProperties": {
|
|
55
|
+
"$ref": "#/$defs/botConfig"
|
|
56
|
+
},
|
|
13
57
|
"description": "机器人配置集合;key 会作为运行时 accountId,建议直接使用 botUid,值中需要 apiUrl + privateKey(PEM,可选 enabled)"
|
|
14
58
|
},
|
|
15
59
|
"botProfilesByBotUid": {
|
|
16
60
|
"type": "object",
|
|
17
|
-
"additionalProperties":
|
|
61
|
+
"additionalProperties": {
|
|
62
|
+
"$ref": "#/$defs/botProfile"
|
|
63
|
+
},
|
|
18
64
|
"description": "按 botUid 配置 systemPrompt / skills;key 应与 bots 中 botUid 一致"
|
|
19
65
|
}
|
|
20
66
|
}
|