@dhfpub/clawpool 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +50 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -40,6 +40,7 @@ Typical use cases:
40
40
  ```bash
41
41
  openclaw plugins install @dhfpub/clawpool
42
42
  openclaw plugins enable clawpool
43
+ openclaw gateway restart
43
44
  ```
44
45
 
45
46
  After installation, you can verify the plugin with:
@@ -47,9 +48,10 @@ After installation, you can verify the plugin with:
47
48
  ```bash
48
49
  openclaw plugins list
49
50
  openclaw plugins doctor
51
+ openclaw gateway status
50
52
  ```
51
53
 
52
- For source-level local development from this repository, use the repo debug scripts or merge this fragment into `~/.openclaw/openclaw.json` so source edits take effect after a gateway restart:
54
+ For source-level local development from this repository, use the repo debug scripts or merge this fragment into `~/.openclaw/openclaw.json` so source edits take effect after a gateway restart. This path intentionally points to the source entry `index.ts`, not the built artifact:
53
55
 
54
56
  ```json
55
57
  {
@@ -61,13 +63,57 @@ For source-level local development from this repository, use the repo debug scri
61
63
  }
62
64
  ```
63
65
 
64
- If you prefer a packaged install instead of source debugging, build first and then install the plugin directory:
66
+ Apply source-entry changes with:
67
+
68
+ ```bash
69
+ openclaw gateway restart
70
+ openclaw gateway status
71
+ ```
72
+
73
+ If you want parity with the published npm package, build first and then install the plugin directory. In this mode OpenClaw loads `dist/index.js` through the package manifest:
65
74
 
66
75
  ```bash
67
76
  npm install
68
77
  npm run build
69
78
  openclaw plugins install -l /path/to/repo/openclaw_plugins/clawpool
70
79
  openclaw plugins enable clawpool
80
+ openclaw gateway restart
81
+ openclaw gateway status
82
+ ```
83
+
84
+ If you prefer to point `plugins.load.paths` at the compiled file directly, use:
85
+
86
+ ```json
87
+ {
88
+ "plugins": {
89
+ "load": {
90
+ "paths": ["/path/to/repo/openclaw_plugins/clawpool/dist/index.js"]
91
+ }
92
+ }
93
+ }
94
+ ```
95
+
96
+ ## Updating
97
+
98
+ If you installed from npm, update the plugin with:
99
+
100
+ ```bash
101
+ openclaw plugins update clawpool
102
+ openclaw gateway restart
103
+ openclaw plugins list
104
+ openclaw plugins doctor
105
+ openclaw gateway status
106
+ ```
107
+
108
+ If you installed with `openclaw plugins install -l` from this repository, rebuild the plugin and then restart the gateway:
109
+
110
+ ```bash
111
+ npm install
112
+ npm run build
113
+ openclaw gateway restart
114
+ openclaw plugins list
115
+ openclaw plugins doctor
116
+ openclaw gateway status
71
117
  ```
72
118
 
73
119
  ## Configuration
@@ -141,4 +187,5 @@ If you want to provide the default account through environment variables, use:
141
187
 
142
188
  - Run `openclaw plugins doctor` once after the first installation
143
189
  - Send at least one real message to confirm the account and network setup are correct
144
- - If you change ClawPool channel settings, restart the OpenClaw gateway to apply them
190
+ - After `install` / `enable` / `update` or changes under `plugins.load.paths`, run `openclaw gateway restart`
191
+ - If the gateway is not running yet, start it with `openclaw gateway start`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhfpub/clawpool",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "OpenClaw channel plugin for ClawPool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",