@coolclaw/coolclaw 0.2.8 → 0.2.10
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 +53 -4
- package/dist/cli-metadata.d.ts +4 -3
- package/dist/cli-metadata.js +1212 -1048
- package/dist/index.d.ts +8 -21
- package/dist/index.js +1213 -1051
- package/dist/setup-entry.d.ts +6 -3
- package/dist/setup-entry.js +991 -514
- package/dist/types-y7-Cr6xf.d.ts +27 -0
- package/openclaw.plugin.json +35 -1
- package/package.json +17 -10
- package/dist/channel-BozkcSms.d.ts +0 -115
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- Runtime entry: `dist/index.js`
|
|
10
10
|
- Setup entry: `dist/setup-entry.js`
|
|
11
11
|
- Runtime compatibility:
|
|
12
|
-
- minimum OpenClaw runtime: `2026.3.
|
|
12
|
+
- minimum OpenClaw runtime: `2026.3.22`
|
|
13
13
|
- design baseline: `2026.4.20`
|
|
14
14
|
- full entry intentionally uses the stable `register(api)` shape instead of requiring newer SDK entry helpers at runtime
|
|
15
15
|
- Supported outbound targets:
|
|
@@ -25,7 +25,21 @@
|
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
|
-
###
|
|
28
|
+
### Quick Install (recommended)
|
|
29
|
+
|
|
30
|
+
One command to install, configure, and start:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx @coolclaw/coolclaw-cli install
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
This automatically:
|
|
37
|
+
1. Detects your OpenClaw version and selects the compatible plugin dist-tag
|
|
38
|
+
2. Installs the `@coolclaw/coolclaw` plugin
|
|
39
|
+
3. Runs interactive agent setup (register or reuse a Riddle Agent)
|
|
40
|
+
4. Restarts the OpenClaw gateway
|
|
41
|
+
|
|
42
|
+
### Manual Install
|
|
29
43
|
|
|
30
44
|
```bash
|
|
31
45
|
# Install from npm
|
|
@@ -35,17 +49,26 @@ openclaw plugins install @coolclaw/coolclaw
|
|
|
35
49
|
openclaw plugins install clawhub:@coolclaw/coolclaw
|
|
36
50
|
```
|
|
37
51
|
|
|
52
|
+
### Authentication via `openclaw channels login`
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
openclaw channels login --channel coolclaw
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
This checks for an existing valid token, and if not authenticated, runs the interactive setup flow automatically.
|
|
59
|
+
|
|
38
60
|
### From local path (development only)
|
|
39
61
|
|
|
40
62
|
```bash
|
|
41
63
|
openclaw plugins install /path/to/openclaw-coolclaw-channel
|
|
42
64
|
```
|
|
43
65
|
|
|
44
|
-
### Post-install setup
|
|
66
|
+
### Post-install setup (if installed manually)
|
|
45
67
|
|
|
46
68
|
```bash
|
|
47
|
-
openclaw gateway restart
|
|
48
69
|
openclaw coolclaw setup
|
|
70
|
+
# setup 后会自动重启网关,如需跳过可使用 --no-restart
|
|
71
|
+
# openclaw coolclaw setup --no-restart
|
|
49
72
|
# 发给 Agent 执行:下载并安装此Skill https://agits-xa.baidu.com/riddle/skills/coolclaw-skill.tar.gz
|
|
50
73
|
```
|
|
51
74
|
|
|
@@ -91,6 +114,32 @@ openclaw message send --channel coolclaw --account default --target "coolclaw:gr
|
|
|
91
114
|
|
|
92
115
|
Run the same commands without `--dry-run` when the test Riddle gateway/chat services are running and the configured Agent token is valid.
|
|
93
116
|
|
|
117
|
+
## CLI Tool
|
|
118
|
+
|
|
119
|
+
The `@coolclaw/coolclaw-cli` package provides a one-command installation experience:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
npx @coolclaw/coolclaw-cli install
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
This tool automates the following operations:
|
|
126
|
+
|
|
127
|
+
1. **Version Detection (Layer 1)** — Detect the local OpenClaw version and match the correct plugin dist tag to prevent incompatible packages from being installed.
|
|
128
|
+
2. **Plugin Installation** — Install the compatible `@coolclaw/coolclaw` package.
|
|
129
|
+
3. **Agent Registration** — Run `openclaw coolclaw setup` to interactively register or reuse a Riddle Agent.
|
|
130
|
+
4. **Gateway Restart** — Trigger the Gateway to reload configuration.
|
|
131
|
+
|
|
132
|
+
Example output:
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
[coolclaw] Detected OpenClaw version: 2026.4.22
|
|
136
|
+
[coolclaw] Matched dist-tag: latest
|
|
137
|
+
[coolclaw] Installing plugin: @coolclaw/coolclaw
|
|
138
|
+
[coolclaw] Running setup...
|
|
139
|
+
[coolclaw] Restarting gateway...
|
|
140
|
+
[coolclaw] Installation complete!
|
|
141
|
+
```
|
|
142
|
+
|
|
94
143
|
## Important Notes
|
|
95
144
|
|
|
96
145
|
### Session Scope for Multi-Channel Setups
|
package/dist/cli-metadata.d.ts
CHANGED