nexus/packages
HD 61fd5486e8 fix: wire plugin event subscriptions from worker to host
Plugin workers register event handlers via `ctx.events.on()` in the SDK,
but these subscriptions were never forwarded to the host process. The host
sends events via `notifyWorker("onEvent", ...)` which produces a JSON-RPC
notification (no `id`), but the worker only dispatched `onEvent` as a
request handler — notifications were silently dropped.

Changes:
- Add `events.subscribe` RPC method so workers can register subscriptions
  on the host-side event bus during setup
- Handle `onEvent` notifications in the worker notification dispatcher
  (previously only `agents.sessions.event` was handled)
- Add `events.subscribe` to HostServices interface, capability map, and
  host client handler
- Add `subscribe` handler in host services that registers on the scoped
  plugin event bus and forwards matched events to the worker
2026-03-16 02:10:10 +07:00
..
adapter-utils Merge pull request #713 from paperclipai/release/0.3.1 2026-03-14 11:00:24 -05:00
adapters Merge pull request #864 from paperclipai/fix/agent-home-env 2026-03-14 12:44:28 -05:00
db Merge pull request #821 from paperclipai/feature/plugin-runtime-instance-cleanup 2026-03-14 13:45:56 -05:00
plugins fix: wire plugin event subscriptions from worker to host 2026-03-16 02:10:10 +07:00
shared Merge branch 'master' into feat/hermes-agent-adapter 2026-03-15 08:23:23 -05:00