4runr-os 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ serde = { version = "1", features = ["derive"] }
11
11
  serde_json = "1"
12
12
  tokio-tungstenite = "0.24"
13
13
  tungstenite = "0.24"
14
+ futures-util = "0.3"
14
15
  anyhow = "1"
15
16
  thiserror = "2"
16
17
 
@@ -83,8 +83,8 @@ pub struct WebSocketClient {
83
83
 
84
84
  impl WebSocketClient {
85
85
  pub async fn connect(url: &str) -> Result<Self> {
86
- let (msg_tx, msg_rx) = mpsc::unbounded_channel();
87
- let (client_tx, mut client_rx) = mpsc::unbounded_channel();
86
+ let (msg_tx, mut msg_rx) = mpsc::unbounded_channel::<WsMessage>();
87
+ let (client_tx, client_rx) = mpsc::unbounded_channel::<WsClientMessage>();
88
88
 
89
89
  let url_clone = url.to_string();
90
90
  let connected = Arc::new(Mutex::new(false));
@@ -92,7 +92,7 @@ impl WebSocketClient {
92
92
 
93
93
  // Spawn WebSocket connection task
94
94
  tokio::spawn(async move {
95
- if let Err(e) = Self::run_connection(&url_clone, client_tx.clone(), &mut client_rx, connected_clone).await {
95
+ if let Err(e) = Self::run_connection(&url_clone, client_tx.clone(), msg_rx, connected_clone).await {
96
96
  let _ = client_tx.send(WsClientMessage::Error(e.to_string()));
97
97
  }
98
98
  });
@@ -100,7 +100,7 @@ impl WebSocketClient {
100
100
  Ok(Self {
101
101
  url: url.to_string(),
102
102
  tx: msg_tx,
103
- rx: Arc::new(Mutex::new(msg_rx)),
103
+ rx: Arc::new(Mutex::new(client_rx)),
104
104
  connected,
105
105
  })
106
106
  }
@@ -108,7 +108,7 @@ impl WebSocketClient {
108
108
  async fn run_connection(
109
109
  url: &str,
110
110
  client_tx: mpsc::UnboundedSender<WsClientMessage>,
111
- client_rx: &mut mpsc::UnboundedReceiver<WsMessage>,
111
+ mut client_rx: mpsc::UnboundedReceiver<WsMessage>,
112
112
  connected: Arc<Mutex<bool>>,
113
113
  ) -> Result<()> {
114
114
  // Connect to WebSocket server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "4runr-os",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "type": "module",
5
5
  "description": "4Runr AI Agent OS - Secure terminal interface for AI agents. v2.2.0 includes encryption, SSRF protection, and integrity verification. Built with Rust + Ratatui. ⚠️ Pre-MVP / Development Phase",
6
6
  "main": "dist/index.js",