4runr-os 2.10.56 → 2.10.57
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/src/main.rs +27 -16
- package/package.json +2 -2
package/mk3-tui/src/main.rs
CHANGED
|
@@ -193,22 +193,33 @@ fn main() -> Result<()> {
|
|
|
193
193
|
if matches!(current_screen, Screen::RunManager)
|
|
194
194
|
&& app.state.operation_mode == OperationMode::Connected
|
|
195
195
|
{
|
|
196
|
-
let
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
196
|
+
let run_poll = {
|
|
197
|
+
let rm = &app.state.run_manager;
|
|
198
|
+
if !rm.auto_refresh_enabled {
|
|
199
|
+
None
|
|
200
|
+
} else {
|
|
201
|
+
let due = rm
|
|
202
|
+
.last_refresh
|
|
203
|
+
.map(|lr| lr.elapsed() >= rm.auto_refresh_interval)
|
|
204
|
+
.unwrap_or(true);
|
|
205
|
+
if !due {
|
|
206
|
+
None
|
|
207
|
+
} else {
|
|
208
|
+
let detail_run_id = if rm.is_detail_view() {
|
|
209
|
+
rm.selected_run().map(|r| r.id.clone())
|
|
210
|
+
} else {
|
|
211
|
+
None
|
|
212
|
+
};
|
|
213
|
+
Some(detail_run_id)
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
if let Some(detail_run_id) = run_poll {
|
|
218
|
+
if let Some(ws) = &ws_client {
|
|
219
|
+
app.state.run_manager.last_refresh = Some(Instant::now());
|
|
220
|
+
app.begin_run_list_request(ws, true);
|
|
221
|
+
if let Some(run_id) = detail_run_id {
|
|
222
|
+
app.begin_run_get_request(ws, &run_id);
|
|
212
223
|
}
|
|
213
224
|
}
|
|
214
225
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "4runr-os",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.57",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "4Runr AI Agent OS - Secure terminal interface for AI agents. v2.10.
|
|
5
|
+
"description": "4Runr AI Agent OS - Secure terminal interface for AI agents. v2.10.57: Fix mk3-tui compile (Run Manager live refresh borrow); DDoS loopback exempt; run retention + 4Runr Tools.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"4runr": "dist/index.js",
|