Repository navigation
Commit d2e62c6
fix(diffs): stop lightweight CLI registration from crashing when runtime.state is unavailable (#128360)
* fix(diffs): stop lightweight CLI registration from crashing
The diffs plugin has no cli-metadata.ts, so the lightweight CLI
metadata loader fell back to plugin.ts and called register() with an
empty runtime, crashing on api.runtime.state.openBlobStore for any
non-bundled install (e.g. the published @openclaw/diffs npm package).
Add a no-op cli-metadata.ts, matching every other bundled plugin's
convention, so CLI metadata capture stops there instead of loading the
full runtime.
Fixes #128330
* fix(diffs): skip runtime setup while collecting CLI metadata
---------
Co-authored-by: Peter Steinberger <[email protected]>1 parent cbd4841 commit d2e62c6
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
23 | 40 | | |
24 | 41 | | |
25 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
0 commit comments