Files
EchoionCore/include
faumarayandClaude Opus 4.8 30884ad0b5 Decompose Core: split RPC/event setup into files + dedupe init guards
Move Core::setupRpcHandlers (→ CoreRpcHandlers.cpp) and
Core::setupEventBusSubscriptions (→ CoreEventRelay.cpp) out of the
2100-line Core.cpp (now ~1535). They stay Core member functions —
definitions live in dedicated translation units — which gives the
file-decomposition without a risky 500-line this→core rewrite into separate
classes. The RpcAuthRequest struct moves to RpcDtos.hpp as Dto::AuthRequest;
the toJson<T> helper also moves there so both units share it.

Add Core::requireInitialized() and collapse the 28 identical
`if (!initialized_) return fail(ServiceUnavailable,…)` guards into
`if (auto r = requireInitialized(); !r) return std::unexpected(r.error());`.

Build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 00:26:26 +03:00
..