mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-06 13:26:40 +00:00
A plugin that rewrites the reply (redaction, policy filters) can declare that it must see the reply before the user does. The declaration rides the hook's registration handle, so it lives exactly as long as the registration and is scoped to the plugin manager of the profile that loaded it; stream_held() answers for the active profile. Plain transform registrations keep streaming (opt-in), and the flag on any other hook is ignored with a warning. The memory-provider hook proxy and the `plugins validate` probe stub accept the keyword so a declaring plugin loads through every registration seam. Shape and seams salvaged from #102481 (mutates= on register_hook, the memory proxy and validate-stub forwarding). Co-authored-by: Halldrix <12357213+Halldrix@users.noreply.github.com>