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.
- package/mk3-tui/Cargo.toml +1 -0
- package/mk3-tui/src/websocket.rs +5 -5
- package/package.json +1 -1
package/mk3-tui/Cargo.toml
CHANGED
package/mk3-tui/src/websocket.rs
CHANGED
|
@@ -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,
|
|
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(),
|
|
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(
|
|
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:
|
|
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
|
+
"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",
|