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

lsm / neokai / 25604478977 / 4
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 09 May 2026 03:23PM UTC
Files 280
Run time 10s
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

09 May 2026 03:15PM UTC coverage: 23.83%. First build
25604478977.4

push

github

web-flow
Extract Channels and ClientEventGateway foundation (#1824)

* feat: add Channels and ClientEventGateway foundation

Introduce typed channel construction and a client-event delivery seam so
new code can target client-facing broadcasts without inlining wire-level
channel strings or coupling to MessageHub directly.

- packages/shared/src/message-hub/channels.ts: EventChannel ADT, Channels
  factories, and a default ChannelRegistry that serializes/parses to the
  existing wire strings (global, session:id, room:id, space:id,
  workflowRun:spaceId:workflowRunId, task:spaceId:taskId).
- packages/shared/src/message-hub/client-event-gateway.ts: thin gateway
  that accepts an EventChannel, serializes via the registry, and delegates
  to MessageHub.event(...). Structural ClientEventSink keeps it test-friendly.
- packages/daemon/src/lib/state-manager.ts: migrate session.created,
  session.deleted, and context.updated forwarding behind the gateway as a
  proof of pattern. channelVersions and the rest of StateManager are kept
  as-is to keep this PR low-conflict.
- Tests cover registry round-trips, malformed inputs, and gateway
  forwarding including a custom registry and global helper.

* test: cover ClientEventGateway DI seam; simplify hub type

P2: Add a new "ClientEventGateway DI seam" describe block in
state-manager.test.ts that injects a spied IClientEventGateway, drives
the EventBus, and asserts session.created/session.deleted/context.updated
flow through the gateway with typed EventChannel descriptors. Also covers
the default-gateway fallback path so the seam is documented end-to-end.

P3: Drop the redundant ClientEventSink | MessageHub union from
ClientEventGatewayOptions.hub. MessageHub structurally satisfies
ClientEventSink, so the union added a transport import without buying
anything; removing it keeps client-event-gateway.ts free of MessageHub
dependencies, matching the doc comment.

17310 of 72641 relevant lines covered (23.83%)

12.33 hits per line

Source Files on job daemon-online-rpc-4 - 25604478977.4
  • Tree
  • List 280
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25604478977
  • 6021c7dc on github
  • Next Job for on dev (#25615959391.18)
  • 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