@@ -20,18 +20,18 @@ Owns the public CLI shape (`simdeck`, `simdeck ui`, `daemon`, `boot`, `shutdown`
2020
2121Key modules:
2222
23- | Module | Responsibility |
24- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------- |
25- | ` server/src/main.rs ` | CLI entrypoint, project daemon management, AppKit main-thread shim, tokio runtime bootstrap. |
26- | ` server/src/api/routes.rs ` | Every ` /api/* ` route, including simulator control, accessibility, and inspector proxy. |
27- | ` server/src/android.rs ` | Android AVD discovery, emulator lifecycle, emulator gRPC input/ video, screenshots, UIAutomator, and logcat. |
28- | ` server/src/transport/webrtc.rs ` | WebRTC offer/answer endpoint for H.264 browser video. |
29- | ` server/src/transport/packet.rs ` | Shared encoded frame type used between simulator sessions and transports. |
30- | ` server/src/inspector.rs ` | WebSocket hub for the NativeScript runtime inspector. |
31- | ` server/src/simulators/registry.rs ` | Per-UDID session registry with lazy attachment to the native bridge. |
32- | ` server/src/simulators/session.rs ` | Frame broadcast channel, keyframe gating, refresh requests. |
33- | ` server/src/metrics/counters.rs ` | Atomic counters and per-client stream stats accepted from stream transports or ` /api/client-stream-stats ` . |
34- | ` server/src/logs.rs ` | ` os_log ` log streaming and filtering. |
23+ | Module | Responsibility |
24+ | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
25+ | ` server/src/main.rs ` | CLI entrypoint, project daemon management, AppKit main-thread shim, tokio runtime bootstrap. |
26+ | ` server/src/api/routes.rs ` | Every ` /api/* ` route, including simulator control, accessibility, and inspector proxy. |
27+ | ` server/src/android.rs ` | Android AVD discovery, emulator lifecycle, ADB input, emulator gRPC video, screenshots, UIAutomator, and logcat. |
28+ | ` server/src/transport/webrtc.rs ` | WebRTC offer/answer endpoint for H.264 browser video. |
29+ | ` server/src/transport/packet.rs ` | Shared encoded frame type used between simulator sessions and transports. |
30+ | ` server/src/inspector.rs ` | WebSocket hub for the NativeScript runtime inspector. |
31+ | ` server/src/simulators/registry.rs ` | Per-UDID session registry with lazy attachment to the native bridge. |
32+ | ` server/src/simulators/session.rs ` | Frame broadcast channel, keyframe gating, refresh requests. |
33+ | ` server/src/metrics/counters.rs ` | Atomic counters and per-client stream stats accepted from stream transports or ` /api/client-stream-stats ` . |
34+ | ` server/src/logs.rs ` | ` os_log ` log streaming and filtering. |
3535
3636The Rust server runs the tokio runtime on a worker thread while the AppKit main loop spins on the main thread. The native bridge needs the main loop to deliver display callbacks and HID events.
3737
0 commit comments