Skip to content

Commit b48a161

Browse files
kariyclaude
andcommitted
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

10 files changed

+795
-725
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ alloy-primitives.workspace = true
2323
anyhow.workspace = true
2424
clap.workspace = true
2525
console.workspace = true
26+
reqwest = { workspace = true, optional = true }
2627
serde.workspace = true
2728
serde_json.workspace = true
2829
shellexpand = "3.1.0"
@@ -39,6 +40,7 @@ starknet.workspace = true
3940
[features]
4041
paymaster = [
4142
"dep:katana-slot-controller",
43+
"dep:reqwest",
4244
"katana-node/paymaster",
4345
"katana-rpc-server/paymaster",
4446
]

0 commit comments

Comments
 (0)