@wecom/wecom-openclaw-cli 1.0.8 → 1.0.9
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 +45 -5
- package/dist/package.json.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,40 +41,66 @@ wecom-openclaw-cli --help
|
|
|
41
41
|
|
|
42
42
|
### `install` — 安装插件
|
|
43
43
|
|
|
44
|
-
安装并配置企业微信官方 OpenClaw
|
|
44
|
+
安装并配置企业微信官方 OpenClaw 插件。安装过程中会自动检测并禁用冲突插件,并交互式提示输入机器人 ID(Bot ID)和机器人密钥(Secret)。
|
|
45
|
+
|
|
46
|
+
> **提示**:如果插件已安装,`install` 会自动进入更新流程,无需手动调用 `update`。
|
|
45
47
|
|
|
46
48
|
```bash
|
|
47
49
|
wecom-openclaw-cli install
|
|
48
50
|
|
|
49
51
|
# 指定版本安装
|
|
50
52
|
wecom-openclaw-cli install --version 1.2.0
|
|
53
|
+
|
|
54
|
+
# 强制重新安装(清除已有插件和配置后全量重装)
|
|
55
|
+
wecom-openclaw-cli install --force
|
|
56
|
+
|
|
57
|
+
# 指定 npm 包名(适用于私有源或自定义包名场景)
|
|
58
|
+
wecom-openclaw-cli install --package-name @my-scope/my-plugin
|
|
51
59
|
```
|
|
52
60
|
|
|
61
|
+
| 参数 | 说明 |
|
|
62
|
+
|------|------|
|
|
63
|
+
| `--version <version>` | 安装指定版本的插件 |
|
|
64
|
+
| `--package-name <packageName>` | 指定 npm 包名(默认 `@wecom/wecom-openclaw-plugin`) |
|
|
65
|
+
| `--force` | 强制重新安装,清除已有插件目录和配置 |
|
|
66
|
+
|
|
53
67
|
### `update` — 更新插件
|
|
54
68
|
|
|
55
|
-
|
|
69
|
+
将已安装的企业微信插件更新到最新版本或指定版本。更新完成后会自动运行 `doctor` 诊断检查。
|
|
56
70
|
|
|
57
71
|
```bash
|
|
58
72
|
wecom-openclaw-cli update
|
|
59
73
|
|
|
60
74
|
# 更新到指定版本
|
|
61
75
|
wecom-openclaw-cli update --version 1.3.0
|
|
76
|
+
|
|
77
|
+
# 指定 npm 包名
|
|
78
|
+
wecom-openclaw-cli update --package-name @my-scope/my-plugin
|
|
62
79
|
```
|
|
63
80
|
|
|
81
|
+
| 参数 | 说明 |
|
|
82
|
+
|------|------|
|
|
83
|
+
| `--version <version>` | 更新到指定版本的插件 |
|
|
84
|
+
| `--package-name <packageName>` | 指定 npm 包名(默认 `@wecom/wecom-openclaw-plugin`) |
|
|
85
|
+
|
|
64
86
|
### `info` — 查看信息
|
|
65
87
|
|
|
66
|
-
显示 CLI 版本、OpenClaw
|
|
88
|
+
显示 CLI 版本、OpenClaw 版本、插件版本和环境信息。
|
|
67
89
|
|
|
68
90
|
```bash
|
|
69
91
|
wecom-openclaw-cli info
|
|
70
92
|
|
|
71
|
-
#
|
|
93
|
+
# 显示完整详情(含配置状态、冲突插件检测、npm 源连通性及脱敏后的配置内容)
|
|
72
94
|
wecom-openclaw-cli info --all
|
|
73
95
|
```
|
|
74
96
|
|
|
97
|
+
| 参数 | 说明 |
|
|
98
|
+
|------|------|
|
|
99
|
+
| `--all` | 显示所有详细信息,包括配置状态、冲突插件、npm 源连通性和脱敏配置 |
|
|
100
|
+
|
|
75
101
|
### `doctor` — 诊断问题
|
|
76
102
|
|
|
77
|
-
|
|
103
|
+
全面检查插件安装状态,包括:插件目录、依赖完整性、配置正确性、冲突插件检测和 channel 配置。
|
|
78
104
|
|
|
79
105
|
```bash
|
|
80
106
|
wecom-openclaw-cli doctor
|
|
@@ -83,6 +109,20 @@ wecom-openclaw-cli doctor
|
|
|
83
109
|
wecom-openclaw-cli doctor --fix
|
|
84
110
|
```
|
|
85
111
|
|
|
112
|
+
| 参数 | 说明 |
|
|
113
|
+
|------|------|
|
|
114
|
+
| `--fix` | 尝试自动修复检测到的问题(如安装依赖、移除冲突插件、补全配置等) |
|
|
115
|
+
|
|
116
|
+
## 其他
|
|
117
|
+
|
|
118
|
+
### 版本查看
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
wecom-openclaw-cli -V
|
|
122
|
+
# 或
|
|
123
|
+
wecom-openclaw-cli --cli-version
|
|
124
|
+
```
|
|
125
|
+
|
|
86
126
|
## License
|
|
87
127
|
|
|
88
128
|
ISC
|
package/dist/package.json.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var name = "@wecom/wecom-openclaw-cli";
|
|
6
|
-
var version = "1.0.
|
|
6
|
+
var version = "1.0.9";
|
|
7
7
|
var description = "CLI for managing WeCom official plugin for OpenClaw";
|
|
8
8
|
var main = "dist/index.js";
|
|
9
9
|
var type = "commonjs";
|