mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-04 22:49:41 +02:00
Replace per-keystroke HTTP POST + SSE terminal output with a single bidirectional WebSocket connection for dramatically lower input latency. The existing SSE+POST paths remain fully functional as fallback. Server-side: ws-routes.ts provides /ws/sessions/:id/terminal with 8ms micro-batching and 16KB flush threshold. Each batch is wrapped in DEC 2026 synchronized update markers so xterm.js renders atomically — Ink's DA capability negotiation fails through the PTY→server→WS proxy chain, so without server-injected markers, cursor-up redraws flicker. Frontend: _connectWs/_disconnectWs manage per-session WS lifecycle. Input and resize use WS fast path with HTTP POST fallback. SSE terminal events are suppressed when WS is active to prevent double rendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
811 B
TypeScript
18 lines
811 B
TypeScript
/**
|
|
* @fileoverview Barrel export for all route modules.
|
|
*/
|
|
|
|
export { registerPushRoutes } from './push-routes.js';
|
|
export { registerTeamRoutes } from './team-routes.js';
|
|
export { registerMuxRoutes } from './mux-routes.js';
|
|
export { registerFileRoutes } from './file-routes.js';
|
|
export { registerScheduledRoutes } from './scheduled-routes.js';
|
|
export { registerSystemRoutes } from './system-routes.js';
|
|
export { registerHookEventRoutes } from './hook-event-routes.js';
|
|
export { registerCaseRoutes } from './case-routes.js';
|
|
export { registerSessionRoutes } from './session-routes.js';
|
|
export { registerRespawnRoutes } from './respawn-routes.js';
|
|
export { registerRalphRoutes } from './ralph-routes.js';
|
|
export { registerPlanRoutes } from './plan-routes.js';
|
|
export { registerWsRoutes } from './ws-routes.js';
|