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.
Files changed (2) hide show
  1. package/mk3-tui/src/main.rs +27 -16
  2. package/package.json +2 -2
@@ -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 rm = &app.state.run_manager;
197
- if rm.auto_refresh_enabled {
198
- let due = rm
199
- .last_refresh
200
- .map(|lr| lr.elapsed() >= rm.auto_refresh_interval)
201
- .unwrap_or(true);
202
- if due {
203
- if let Some(ws) = &ws_client {
204
- app.state.run_manager.last_refresh = Some(Instant::now());
205
- app.begin_run_list_request(ws, true);
206
- if rm.is_detail_view() {
207
- if let Some(run) = app.state.run_manager.selected_run() {
208
- let run_id = run.id.clone();
209
- app.begin_run_get_request(ws, &run_id);
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.56",
3
+ "version": "2.10.57",
4
4
  "type": "module",
5
- "description": "4Runr AI Agent OS - Secure terminal interface for AI agents. v2.10.56: Run Manager live auto-refresh (~3s); DDoS loopback exempt for local dev/smoke; run retention + local API key; 4Runr Tools bundle.",
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",