Functions
FUNC has_plugins
hook_type is provided, also checks whether any plugin has
registered a handler for that specific hook, enabling callers to skip
payload construction entirely when no plugin subscribes.
FUNC get_plugin_manager
None if plugins are not configured.
FUNC ensure_plugin_manager
FUNC initialize_plugins
config_path: Optional path to a YAML plugin configuration file.timeout: Maximum execution time per plugin in seconds.
FUNC shutdown_plugins
FUNC track_session_plugin
FUNC deregister_session_plugins
FUNC invoke_hook
(result, possibly-modified-payload).
If plugins are not configured, returns (None, original_payload) immediately.
Three layers of no-op guards ensure zero overhead when plugins are not configured:
_plugins_enabledboolean — single pointer dereferencehas_hooks_for(hook_type)— skips when no plugin subscribes- Returns immediately when either guard fails