@xiaozhi-pro/openclaw-plugin 1.0.1 → 1.0.2
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 +12 -0
- package/openclaw.plugin.json +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,14 @@ openclaw plugins install @xiaozhi-pro/openclaw-plugin
|
|
|
23
23
|
> openclaw plugins install ./openclaw-plugin-1.0.0.tgz
|
|
24
24
|
> ```
|
|
25
25
|
|
|
26
|
+
### 更新
|
|
27
|
+
|
|
28
|
+
如果已经安装过,需更新到最新版本:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
openclaw plugins install @xiaozhi-pro/openclaw-plugin --force
|
|
32
|
+
```
|
|
33
|
+
|
|
26
34
|
### 配置
|
|
27
35
|
|
|
28
36
|
编辑 `openclaw.json`:
|
|
@@ -69,6 +77,10 @@ pnpm run build
|
|
|
69
77
|
## 发布
|
|
70
78
|
|
|
71
79
|
```bash
|
|
80
|
+
# 发布前需要先提交commit
|
|
81
|
+
git add .
|
|
82
|
+
git commit -m 'xx'
|
|
83
|
+
# 然后更新版本号,本质上打了tag
|
|
72
84
|
npm version patch # 1.0.0 → 1.0.1(修bug,最后一位+1)
|
|
73
85
|
npm version minor # 1.0.0 → 1.1.0(新功能,中间位+1)
|
|
74
86
|
npm version major # 1.0.0 → 2.0.0(破坏性变更,首位+1)
|
package/openclaw.plugin.json
CHANGED
|
@@ -7,6 +7,17 @@
|
|
|
7
7
|
"channelEnvVars": {
|
|
8
8
|
"xiaozhi-pro": ["XIAOZHI_PRO_TOKEN"]
|
|
9
9
|
},
|
|
10
|
+
"configSchema": {
|
|
11
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"token": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "小智Pro平台 API Token"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
},
|
|
10
21
|
"channelConfigs": {
|
|
11
22
|
"xiaozhi-pro": {
|
|
12
23
|
"schema": {
|