pub fn run_plugin_hooks(
event: &str,
payload: &Value,
) -> Result<Vec<HookResponse>>Expand description
Run every enabled plugin’s hooks for event, returning their parsed
responses (empty when no plugin responds — most events, most hooks).
Callers that gate on the result aggregate via aggregate_hook_responses;
fire-and-forget callers keep ignoring the return value.
§Errors
Only the setup: opening the runtime store, serializing payload, and
listing the plugins. Nothing a single plugin does can fail the call — an
unparseable manifest, a source directory that has been deleted, and a hook
that exits nonzero are each logged and skipped. An Ok therefore means the
hooks were dispatched, not that they all succeeded.