ICoreInterface is the vtable ABI contract between the already-loaded Plugin
and a freshly hot-reloaded Core. reloadConfig() was added mid-interface (after
getConfigJson), which shifted every later vtable slot — so the still-running
Plugin's calls to saveState/restoreState/getStateFormatVersion/onPluginEvent
dispatched to the wrong methods on the new Core. Symptom: state restore read a
garbage version (2303262719), threw basic_string::_M_create, and left the Core
uninitialized (onPluginEvent ignored, initialized=false).
Move reloadConfig() to the very end of the interface (append-only) so all
pre-existing slots keep their indices. Add a comment documenting the rule.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Remove logger/LoggerInterface.hpp entirely — ILogger, LoggerRegistry,
Api::LogLevel, Api::LogEntry, and the ECHOION_LOG_* macros — and drop it
from the api.hpp aggregate. All logging goes through the Void::Log facade.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ConfigManager loses its static instance() (and the private ctor) — it is now
a plain object Core owns and provides as a service. The eight ECHOION_CONFIG/
BOT/YOUTUBE/NETWORK/TEAMSPEAK/SECURITY/FEATURES/ADVANCED convenience macros
are deleted.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace eventbus/EventBus.hpp (the Api::EventBus wrapper, GlobalEventBus
singleton, SubscriptionToken, and the unused ECHOION_PUBLISH/SUBSCRIBE
macros) with eventbus/Events.hpp — just the Events:: structs. The bus is
now Void::EventBus::EventBus, owned by Core.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Delete Api::HttpMethod/Header/Request/Response/ProxyConfig/ProxyType +
RetryConfig — they duplicated Void::Net::* and Void::Retry. INetworkClient
now takes/returns Void::Net::Request/Response/Header/ProxyConfig (retry
tuning drops off the public interface; it was unused and lives inside the
client now). NetworkConfig.proxy becomes Void::Net::ProxyConfig, and
NetworkTypes.hpp is a thin forwarder to <Void/Net/Http.hpp>.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Api::fail(ErrorCode, msg, src="") → std::unexpected(Error(...)), a concise
replacement for the verbose std::unexpected(Api::Error(...)) pattern. Keeps
the domain ErrorCode (so it can't defer to Void::Result::fail).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>