Add a CorePlugin adapter (IS-A Void::Plugin::IPlugin and IS-A Core, hence
Api::ICoreInterface) and export the void_plugin_* C ABI from Export.cpp:
create/destroy/info plus the v2 state protocol (serialize/deserialize routed
through Core's already-Void::Json prepareForHotReload/restoreAfterHotReload).
The host recovers the bot interface by dynamic_cast-ing the IPlugin* back to
ICoreInterface*.
Additive: the legacy CreateCore/DestroyCore exports stay, so the current
dylib CoreLoader keeps working while the host migrates to
Void::Plugin::PluginManager. Verified via a dlopen smoke test (symbols
resolve; info/version correct; create/serialize/deserialize/destroy safe on
an uninitialized Core). The live hot-reload + state-survival test under
TeamSpeak is the remaining gate for the host-side loader swap. Link
Void::Plugin.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add Void::Service::ServiceRegistry to Core. initialize() now registers every
service by interface — ILogger, ConfigManager, EventBus, INetworkClient,
Database, MusicManager, RpcServer — so code can resolve them via
Core::services().require<I>() instead of reaching for global singletons. The
three former singletons (logger/config/event bus) are wrapped in non-owning
aliasing shared_ptrs and remain valid behind the ECHOION_LOG_*/PUBLISH/
SUBSCRIBE macros; the registry just makes them discoverable as services.
This establishes the DI backbone; migrating individual call sites to
registry resolution is intentionally incremental. Requires the VoidLibrary
fix allowing non-polymorphic service types in provide<I>. Link Void::Service.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
DatabaseImpl now holds a Void::Sqlite::Database (RAII open/close, WAL +
busy-timeout + foreign_keys); the existing raw-sqlite3 query methods borrow
its handle() unchanged. Removes the manual sqlite3_open/close + journal-mode
boilerplate.
Deliberately keeps echoion's schema_migrations migration framework rather
than switching to Void's PRAGMA user_version Migrator: existing databases
record versions in schema_migrations with user_version=0, and migrations
2/3 DROP tables — re-running them would destroy live data. Verified with an
integration test (data survives close+reopen; migrate() stays idempotent).
Link Void::Sqlite.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the ~700-line hand-rolled HTTP stack (Boost.Beast/Asio client,
URL parsing, HTTP-CONNECT + SOCKS5 proxy handshakes, a bespoke 4-thread
packaged_task pool) with a thin adapter over Void::Net::HttpClient that
still implements Api::INetworkClient. Translates Api::HttpRequest/Response/
ProxyConfig <-> Void::Net types; retry/backoff stays on Void::Retry; async
methods use std::async. Link Void::Net.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>