You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`ws-server.ts` now consumes an explicit `WebSocketBridgeApi` instead of the concrete `BotBridgeService`, so websocket reads and `bot-event` subscriptions cross one narrowed runtime adapter seam.
48
-
-`index.ts` now composes route dependencies and websocket delegates through `createWebServerRuntimeDependencies(...)`, keeping runtime wiring in one place before `WebServer` starts sockets and file-watchers.
49
-
-`web-server.functional.test.ts` now guards that the web-server runtime bundle carries both explicit route dependencies and the shared websocket delegate surface.
50
-
-`ws-server.functional.test.ts` now proves the websocket bridge adapter preserves status reads, position reads, and `bot-event` unsubscribe behavior independent of the concrete bridge class.
-`analytics.routes.ts` now consumes an explicit route dependency bundle split into `journal`, `sessions`, `strategy`, and `curves`, so the HTTP layer no longer depends on one flat file-watcher-shaped read surface.
48
+
-`analytics.constants.ts` now owns analytics route paging, recent-window, and fallback-message constants instead of leaving route magic numbers and fallback strings inline.
49
+
-`route-response.ts` now builds an explicit route response context before writing success or error envelopes, keeping request-id normalization and shared route execution behavior on one runtime seam.
50
+
-`route-response.test.ts` now guards the shared response helper directly, while `web-server.functional.test.ts` proves the analytics route bundle stays on the narrowed delegates.
-`ws-server.ts` now depends on an explicit `WebSocketBridgeApi` seam for status reads, position reads, and `bot-event` forwarding instead of binding directly to the concrete bridge service.
60
-
-`index.ts` now composes route dependencies and websocket delegates through `createWebServerRuntimeDependencies(...)`, keeping runtime ownership explicit before startup.
61
-
-`web-server.functional.test.ts` and `ws-server.functional.test.ts`now guard the shared websocket delegate seam, including unsubscribe behavior and runtime bundle wiring.
-`analytics.routes.ts` now depends on a nested analytics route bundle (`journal`, `sessions`, `strategy`, `curves`) instead of a flat file-watcher-shaped read surface.
60
+
-`analytics.constants.ts` now owns route defaults and fallback strings for analytics paging, recent-history reads, and curve endpoints.
61
+
-`route-response.ts`now creates an explicit route response context before writing shared success/error envelopes, and `route-response.test.ts`directly guards request-id normalization plus fallback error behavior.
62
62
63
63
## Last Verification
64
+
-`npm test -- --runInBand packages/web-server/tests/route-response.test.ts`
64
65
-`npm test -- --runInBand packages/web-server/tests/web-server.functional.test.ts`
65
-
-`npm test -- --runInBand packages/web-server/tests/ws-server.functional.test.ts`
0 commit comments