- libagent: rewrite EventBus as a type-safe dispatcher keyed by event type; listeners are invoked with the concrete event type instead of 'const void*', and the bus is mutex-protected
- libagent: services subscribe/unsubscribe by event type (IService::listen no longer takes an EventId)
- libagent: remove the unused MethodEntry/MethodExit events and EventMethodEntry/EventMethodExit structs
- build: drop the in-tree eventpp headers (23 files) and its license
- examples: update config.toml to the v2 schema ([JarLoader] with Mode / InjectionDir / JarPath / EntryClass / EntryMethod) for inject-via-java-api, load-via-injector-exe and retransform-class
- libagent: read JarLoader.* instead of JuiceAgent.Modules.JarLoader.*, use Config::isValid() and the new get()/getPath() accessors
- libagent: rename call_java_impl to call_static_java_method
- skip empty include/exclude entries in Remapper::shouldRemap to avoid
calling back() on an empty std::string (undefined behavior)
- null-check new_class_data_len/new_classbytes in JuiceRemapperService
before writing remapped bytes back to the JVMTI callback
- add Agent::initialized_ guard so init() is a no-op on second call,
preventing duplicate service instantiation and listeners
- fill EventPreLoad/EventLoaded struct members instead of leaving them
as uninitialized garbage; post PreLoad only after the agent environment
(JavaVM/JNIEnv/JVMTI) is set so listeners can query Agent state
- store (EventId, Handle) pairs in IService and add unlistenAll() to
remove registered listeners on shutdown, preventing dangling callbacks
into destroyed services; BytecodeService and JarLoaderService now call
it from onShutdown
- add JarLoaderService registered via JUICEAGENT_REGISTER_SERVICE; it
listens for EventId::Loaded, reads JuiceAgent.Modules.JarLoader config
from config.toml, serializes it and calls the Java JarLoader.loadJar
module to inject the jar into the JVM
- post EventPreLoad during Agent::preload and EventLoaded after services
initialize so services can react to agent lifecycle
- introduce EventBus singleton wrapping eventpp::EventDispatcher with
typed event ids and const void* payloads
- post EventClassFileLoadHook from ClassFileLoadHook callback
- add IService base with typed listen<>() helper that binds a member
function directly to an event, no virtual onEvent dispatch
- add ServiceManager to register, initialize and shutdown services
- add BytecodeService that subscribes to ClassFileLoadHook
- wire Services::initializeAll() into Agent::init()
- Make runtime_dir optional in JuiceAgent.init (tolerate null jstring)
- Load config.toml into Agent and expose getConfig/setConfig
- Warn instead of failing when runtime directory or config is missing
- Replace eventbus/services with Agent preload/init lifecycle
- Move JNI header to shared includes; add jni_common.hpp umbrella header
- Reduce ClassFileLoadHook to a stub for later implementation
- Add eventpp dependency
- Document custom API JAR workflow (WIP)