mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
* Enhance socket connection logging and URL handling - Added logging for the backend URL in the `runtime_socket_connect` function to improve traceability. - Updated the `SocketManager` to convert HTTP/HTTPS URLs to WebSocket URLs, enhancing connection handling. - Improved error logging to capture detailed error chains during connection failures, aiding in debugging. * Enhance TDLib integration and macOS bundling process - Updated build.rs to include a setup function for TDLib, ensuring the correct version is used based on the target OS. - Added a new script, build-tdlib-from-source.sh, to facilitate building TDLib from source for macOS with the appropriate deployment target. - Modified .gitignore to exclude the new tdlib-local and tdlib-build directories. - Updated tauri.conf.json to streamline TDLib references and ensure compatibility with the new bundling process. - Removed outdated bundling scripts to simplify the build workflow. * Refactor socket management and update dependencies - Updated `build.rs` to correctly reference architecture-specific paths for local TDLib builds. - Replaced `rust_socketio` with `tf-rust-socketio` in `Cargo.toml` and `socket_manager.rs` to align with the new dependency structure. - Enhanced logging in `socket_manager.rs` for better connection diagnostics and pre-flight checks. - Updated `build-tdlib-from-source.sh` to define architecture-specific build and install directories, improving build isolation. * Update TDLib installation process and refine socket payload handling - Modified `build-tdlib-from-source.sh` to manually install `tdjson` libraries, addressing potential installation failures. - Updated `socket_manager.rs` to handle payloads with an additional parameter in `Payload::Text`, improving data extraction and connection management. * Add macOS TDLib binary for version 1.8.29 - Introduced the `libtdjson.1.8.29.dylib` binary to the macOS TDLib prebuilt directory, enabling integration with the latest TDLib features and improvements. * Refactor SocketManager to use WebSocket and update dependencies - Replaced `tf-rust-socketio` with a WebSocket-based implementation using `tokio-tungstenite`, enhancing connection stability and compatibility. - Updated `Cargo.toml` to include new features for `reqwest` and removed deprecated dependencies. - Improved documentation in `socket_manager.rs` to clarify the new WebSocket connection handling and its implications for Android. - Streamlined connection lifecycle management and error handling for better performance and maintainability.