Source Events ↗

config.loaded

Config file has been parsed.

When
After plugin config.mutate hooks finish and final YAML is parsed.
Payload
Post-mutation raw config.yml bytes.
Cancelable
No

Config hooks run before this event; listeners should treat this payload as read-only.

Use cases

  • Validate effective config
  • Export config metadata

Example

Registration and handler

Register

hook!(host, PluginEvent::ConfigLoaded, on_config_loaded);

Handler

extern "C" fn on_event(ctx: *const EventContext) -> HookResult {
    let ctx = unsafe { &*ctx };
    let payload = unsafe { std::slice::from_raw_parts(ctx.payload_ptr, ctx.payload_len) };
    let _json = std::str::from_utf8(payload).unwrap_or_default();
    HookResult::r#continue()
}

← All lifecycle events