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

lsm / neokai / 21810006476 / 5
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 09 Feb 2026 02:16AM UTC
Files 94
Run time 2s
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 Feb 2026 02:00AM UTC coverage: 20.635% (+0.2%) from 20.481%
21810006476.5

push

github

lsm
feat: Migrate MessageHub from command/query to unified request/onRequest API

This commit migrates the entire codebase from the old command/query API
to a unified request/onRequest API, simplifying RPC communication.

## Key Changes:

### Shared Layer (packages/shared)
- **types.ts**: Add RequestHandler type, keep old types for backward compat
- **message-hub.ts**:
  - Add request() method replacing command/query
  - Add onRequest() method replacing onCommand/onQuery
  - Add requestHandlers Map for unified handler storage
  - Update handleIncomingQuery with auto-ACK support
  - Keep old methods temporarily for smoother migration
- **protocol.ts**: Simplify message types (remove CALL/RESULT/SUBSCRIBE)
- **router.ts**: Update routing logic for new protocol
- **typed-hub.ts**: Update typed wrapper for new API
- **transports**: Update in-process and websocket transports
- **Add room-manager.ts**: New room-based routing system

### Daemon Layer (packages/daemon)
- **rpc-handlers/**: Migrate all 85 handlers from onCommand/onQuery to onRequest
- **app.ts**: Update handler registration
- **state-manager.ts**: Use new request API
- **routes/setup-websocket.ts**: Update for new protocol
- **Remove subscription-manager.ts**: No longer needed with new API

### Web Layer (packages/web)
- **hooks/useMessageHub.ts**:
  - Add request() method
  - Add onEvent() method
  - Keep old call/subscribe as deprecated aliases
- **lib/connection-manager.ts**: Update to use request
- **lib/session-store.ts**: Update to use request
- **lib/api-helpers.ts**: Update to use request
- **lib/state-channel.ts**: Update to use request
- **lib/global-store.ts**: Update to use request
- **components**: Update all components to use request/onEvent

### Tests
- Update all tests across packages/daemon, packages/shared, packages/web
- Update test helpers to use new API
- Remove cache.test.ts and stdio-transport.test.ts (deprecated)

## Benefits:
1. Simpler mental model: one method for request... (continued)

3322 of 16099 relevant lines covered (20.63%)

9.99 hits per line

Source Files on job daemon-offline-mcp - 21810006476.5
  • Tree
  • List 94
  • Changed 28
  • Source Changed 28
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21810006476
  • b873c822 on github
  • Prev Job for on dev (#21802643245.1)
  • Next Job for on dev (#21810133301.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