Source Events ↗

plugins.config_mutated

Plugin config mutation changed raw YAML.

When
After config.mutate hooks run and output differs from input.
Payload
JSON: { hook_count, input_len, output_len }.
Cancelable
No

Fires once per startup if any config hook changes the YAML.

Use cases

  • Config audit
  • Plugin diagnostics

Example

Registration and handler

Register

hook!(host, PluginEvent::PluginConfigMutated, on_config_mutated);

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