agent-orchestrator/packages/web/server
Gaurav Bhola 87c661332e fix(web): restore local type defs in mux-websocket and add coverage tests
tsconfig.server.json sets rootDir:"server" so importing from
../src/lib/mux-protocol.ts violated the boundary and broke the CI
typecheck step. Reverted to local type definitions with a comment
linking to the canonical source.

Also adds tests to bring diff coverage above 80%:
- MuxProvider.test.tsx: 30 tests covering lifecycle, message handling,
  and all terminal operations (subscribeTerminal, write, open, close,
  resize, reconnect, cleanup)
- api-routes.test.ts: GET /api/sessions/patches coverage (success,
  field shape, project filter, error path)
- useSessionEvents.test.ts: mux-path tests (muxSessions snapshot
  dispatch, membership-change scheduleRefresh, mux-active SSE bypass,
  cleanup on unmount)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 22:46:29 -07:00
..
__tests__ feat(web): single-socket — multiplex terminals + sessions over one WebSocket 2026-04-06 22:46:29 -07:00
direct-terminal-ws.ts fix(web): address bugbot review — heartbeat, shutdown, runtime config, cleanup 2026-04-06 22:46:29 -07:00
mux-websocket.ts fix(web): restore local type defs in mux-websocket and add coverage tests 2026-04-06 22:46:29 -07:00
start-all.ts feat(web): single-socket — multiplex terminals + sessions over one WebSocket 2026-04-06 22:46:29 -07:00
terminal-observability.ts Publish ao-web on npm, harden error handling, deduplicate code 2026-03-14 19:01:49 +05:30
tmux-utils.ts fix: terminal servers compatible with hash-based architecture (#87) 2026-02-18 03:28:55 +05:30