Observer hooks¶
pynchy_observer¶
Provide an event observer that subscribes to Pynchy's EventBus:
Pynchy calls subscribe(event_bus) for every observer at startup. An observer exposes name, subscribe(event_bus), and async close(). It can receive message, agent-activity, agent-trace, and chat-cleared events. Keep handlers light and non-blocking: observers run in the host process and can delay event dispatch.