Commit 7fe14e2
refactor(evm-wallet-experiment): use new kernel-cli queueMessage subcommand (#909)
## Summary
Leverages the new `ocap daemon queueMessage <kref> <method> [args]`
syntax (from #896) across all evm-wallet-experiment scripts, docs, and
the OpenClaw plugin.
- **Replace `daemon exec queueMessage '["kref","method",[args]]'`** with
the cleaner `daemon queueMessage kref method '[args]'` — eliminates
nested JSON escaping and simplifies argument construction throughout
`setup-home.sh`, `setup-away.sh`, and `update-limits.sh`
- **Remove `parse_capdata()` helper** (~30 lines per script) — the new
CLI auto-decodes CapData via `prettifySmallcaps`, so manual parsing is
no longer needed
- **Simplify OpenClaw plugin** — drop `decodeCapData()`,
`isCapDataLike()`, and `CapDataLike` type (~60 lines) since the CLI
handles CapData decoding; plugin just JSON.parses the decoded output
- **Add `OCAP_HOME` env var support** — `home-interactive.mjs` default
db path, log messages in scripts, and docs all respect `OCAP_HOME`
- **Fix wrong `OCAP_BIN` path** in `update-limits.sh` — was pointing to
non-existent `packages/cli/`, now correctly points to
`packages/kernel-cli/`
- **Fix error detection in `update-limits.sh`** — `prettifySmallcaps`
converts `#error` objects to strings like `[TypeError: msg]`, so the old
`grep '"#error"'` would never match; now uses string-prefix detection
Net result: **-108 lines** across 6 files.
## Test plan
These are shell scripts and documentation — no automated test suite
covers them directly. Verified by:
- All four bash scripts pass `bash -n` syntax checks
- Grepped the entire package to confirm zero remaining `parse_capdata`
or `daemon exec queueMessage` references
- Reviewed the new `daemon queueMessage` CLI source
(`packages/kernel-cli/src/commands/daemon.ts`) to confirm argument
handling matches the new script invocations
- Reviewed `prettifySmallcaps` to confirm error object encoding and fix
the detection logic accordingly
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Medium risk because it changes the CLI invocation contract and output
parsing used by setup/limits scripts and the OpenClaw plugin; failures
would surface as broken automation or mis-detected daemon/vat errors
rather than isolated unit changes.
>
> **Overview**
> **Switches the wallet setup flows to the new `kernel-cli` `daemon
queueMessage` interface.** All docs and automation scripts replace
`daemon exec queueMessage` nested-JSON calls with `daemon queueMessage
<kref> <method> <argsJson>`, simplifying argument construction and
updating the manual command examples.
>
> **Removes CapData unwrapping from consumers and updates error
handling.** The OpenClaw plugin and shell scripts drop
`CapData`/`parse_capdata` decoding logic and instead `JSON.parse` the
CLI’s decoded output, with new heuristics for detecting prettified vat
errors (e.g. `"[ErrorName: msg]"`).
>
> **Misc reliability/ops tweaks.** Adds `OCAP_HOME` support for
interactive DB/log paths, fixes `update-limits.sh` to point at
`packages/kernel-cli/dist/app.mjs`, refactors remote comms JSON
construction in scripts, and increases remote-comms e2e test
timeouts/backoff to reduce CI flakiness.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
70bf51b. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0699759 commit 7fe14e2
9 files changed
Lines changed: 367 additions & 502 deletions
File tree
- packages
- evm-wallet-experiment
- docs
- openclaw-plugin
- scripts
- src/vats
- test
- kernel-node-runtime/test/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
| 525 | + | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
| 662 | + | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
| 674 | + | |
| 675 | + | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
| 693 | + | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| |||
Lines changed: 37 additions & 80 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 54 | + | |
121 | 55 | | |
122 | 56 | | |
123 | 57 | | |
124 | | - | |
125 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
126 | 61 | | |
127 | 62 | | |
128 | 63 | | |
129 | | - | |
| 64 | + | |
130 | 65 | | |
| 66 | + | |
131 | 67 | | |
132 | | - | |
| 68 | + | |
133 | 69 | | |
134 | 70 | | |
135 | | - | |
136 | | - | |
| 71 | + | |
| 72 | + | |
137 | 73 | | |
138 | 74 | | |
139 | 75 | | |
| |||
160 | 96 | | |
161 | 97 | | |
162 | 98 | | |
163 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
164 | 102 | | |
165 | 103 | | |
166 | 104 | | |
| |||
179 | 117 | | |
180 | 118 | | |
181 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
182 | 123 | | |
183 | 124 | | |
184 | 125 | | |
185 | 126 | | |
186 | 127 | | |
187 | | - | |
| 128 | + | |
188 | 129 | | |
189 | | - | |
190 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
191 | 133 | | |
192 | 134 | | |
193 | 135 | | |
| |||
196 | 138 | | |
197 | 139 | | |
198 | 140 | | |
199 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
200 | 157 | | |
0 commit comments