Commit b48a161
refactor(cli): move sidecar process management from node to CLI
Move paymaster and VRF sidecar process spawning and lifecycle management
from the node module to the CLI layer. The node now treats all paymaster
and VRF services as external (just URLs), while the CLI handles spawning
and managing sidecar processes when running in sidecar mode.
Changes:
- Add crates/cli/src/sidecar.rs with process management code
- Simplify node config to remove ServiceMode enum
- Node exposes bootstrap data via LaunchedNode::sidecar_bootstrap()
- CLI automatically allocates free ports for sidecars
- Properly shutdown sidecar processes on node exit
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 73bc443 commit b48a161
File tree
10 files changed
+795
-725
lines changed- crates
- cli
- src
- node
- src
- config
10 files changed
+795
-725
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments