bridge.ai · events

Events

A plugin announces a fact it caused as one line, and whoever cares matches that line. Neither side names the other, so either one can change, ship, or be missing entirely without breaking the other. Writing those lines down is what makes the integration auditable: every key here has a named publisher, a declared body, and the list of who is listening.

The key says who caused the fact and what happened; the body is one compact JSON object, always present, {} when the event carries nothing. A subscriber matches the whole key, anchored, in a PostToolUse hook.

Coming soon · preview

Turning a subscription off

Installing two plugins turns on every band between them. The contract gives each band its own off switch, a git config boolean the subscriber reads before it acts, so a user can cut one reaction without uninstalling either plugin. Only sextant reads one so far; the roadmap below is how the rest arrive. A switch is on unless it reads false. Set it with --global, so a reaction behaves the same in every repo; a repo-level value is the exception, for a repo where one reaction doesn't fit.

<subscriber>.subscribe.<publisher> every band from that publisher <subscriber>.subscribe.<publisher>.<entity>-<event> one band git config --global sextant.subscribe.tack.session-ended false

The full rules are in the plugin contract.

Roadmap, tentative

show

← back to Requirements  ·  bridge.ai