Commit 825ec0d
authored
fix(install): register plugin in slots, entries and installs of openclaw.json (#1402)
## Summary
The install scripts (`install.sh` / `install.ps1`) previously only wrote
`plugins.allow` and `plugins.enabled` to `openclaw.json`, but missed
three critical registrations. This caused the OpenClaw gateway to **not
auto-load the memos-local plugin on restart**.
### Changes
- **`plugins.slots.memory`**: Register the plugin in the `memory` slot
so OpenClaw knows which plugin handles memory operations
- **`plugins.entries[pluginId].enabled = true`**: Enable the plugin
entry (preserves existing user config like embedding/summarizer
settings)
- **`plugins.installs[pluginId]`**: Write full npm install metadata
(source, spec, installPath, version, resolvedName, resolvedVersion,
resolvedSpec, installedAt) so the gateway can track and auto-load the
plugin
- **Clean up stale `contextEngine` slot**: Remove deprecated slot from
previous versions
### Files changed
- `apps/memos-local-openclaw/install.sh`
- `apps/memos-local-openclaw/install.ps1`
## Test plan
- [ ] Fresh install via `bash install.sh --version <version>` — verify
`openclaw.json` contains `slots.memory`, `entries`, and `installs` for
the plugin
- [ ] Restart OpenClaw gateway — verify plugin loads automatically
without manual config
- [ ] Re-install over existing config — verify user's existing
`entries[pluginId].config` (embedding, summarizer, etc.) is preserved
Made with [Cursor](https://cursor.com)2 files changed
+86
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| 164 | + | |
| 165 | + | |
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
| |||
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 195 | | |
194 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
195 | 234 | | |
196 | 235 | | |
197 | | - | |
| 236 | + | |
198 | 237 | | |
199 | 238 | | |
200 | 239 | | |
| |||
320 | 359 | | |
321 | 360 | | |
322 | 361 | | |
323 | | - | |
| 362 | + | |
324 | 363 | | |
325 | 364 | | |
326 | 365 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
257 | 294 | | |
258 | 295 | | |
259 | 296 | | |
| |||
0 commit comments