• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 25632447293 / 23
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 10 May 2026 03:27PM UTC
Files 286
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 May 2026 03:24PM UTC coverage: 23.642% (-0.2%) from 23.834%
25632447293.23

push

github

web-flow
refactor: extract room and space event forwarding into ClientEventBridge (#1835)

* refactor: extract room and space event forwarding into ClientEventBridge

Move ~30 repetitive daemon-to-client forwarding handlers from StateManager
into a new declarative ClientEventBridge module.

- New `packages/daemon/src/lib/client-event-bridge.ts` with ROOM_BRIDGE_MAPPINGS
  and SPACE_BRIDGE_MAPPINGS registries. Each mapping declares the DaemonHub
  event, client event name, target EventChannel, and optional transform.
- StateManager loses the room.*, goal.*, space.*, spaceAgent.*, and
  spaceWorkflow.* forwarding blocks; gains `getClientEventGateway()` as a
  temporary seam.
- DaemonApp wires the bridge after StateManager construction.
- Comprehensive unit tests for the bridge (subscription, idempotency, stop,
  and per-event forwarding assertions with correct EventChannel shapes).
- StateManager tests updated to assert the forwarding handlers are no longer
  registered there.

Scope: pure forwarding only — no state caching, no version increments, no
side effects. Remaining handlers (session.*, api.connection, auth.changed,
etc.) stay in StateManager for follow-up PRs.

* test: address review feedback on state-manager.test.ts

- P1: Restore the "falls back to a default ClientEventGateway" test so it
  actually builds a StateManager without injecting a gateway, and asserts
  the returned gateway has publish/publishGlobal methods.
- P2: Flatten duplicate nested describe('ClientEventGateway DI seam') blocks.
- P3: Add goal.updated negative assertion to the "should NOT register
  room/space forwarding handlers" test, and remove stale spaceSessionGroup.*
  assertions that no longer apply.

* refactor: remove dead room/goal bridge mappings

Room and goals have been removed from the codebase — there are zero
emitters for room.* and goal.* events. The 6 ROOM_BRIDGE_MAPPINGS entries
were dead code forwarding events nobody emits.

- Remove ROOM_BRIDGE_MAPPINGS and the roo... (continued)

17538 of 74182 relevant lines covered (23.64%)

12.26 hits per line

Source Files on job daemon-online-rpc-4 - 25632447293.23
  • Tree
  • List 286
  • Changed 13
  • Source Changed 13
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25632447293
  • db5d09be on github
  • Prev Job for on dev (#25624089872.4)
  • Next Job for on dev (#25632896017.9)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc