4runr-os 2.9.126 → 2.9.127

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,18 @@ use serde::{Deserialize, Serialize};
11
11
  use std::collections::VecDeque;
12
12
  use std::time::{Duration, Instant};
13
13
 
14
+ /// `HH:MM:SS` for Connection Portal activity log (UTC clock; avoids pulling in `chrono`).
15
+ fn wall_clock_hms() -> String {
16
+ let secs = std::time::SystemTime::now()
17
+ .duration_since(std::time::UNIX_EPOCH)
18
+ .map(|d| d.as_secs())
19
+ .unwrap_or(0);
20
+ let h = (secs / 3600) % 24;
21
+ let m = (secs / 60) % 60;
22
+ let s = secs % 60;
23
+ format!("{h:02}:{m:02}:{s:02}")
24
+ }
25
+
14
26
  mod render_scheduler;
15
27
  pub use render_scheduler::{RenderScheduler, RunMode};
16
28
 
@@ -2141,7 +2153,7 @@ impl App {
2141
2153
  self.state.connection_portal.connecting = false;
2142
2154
 
2143
2155
  if let Some(ref det) = self.state.setup_portal.detection_result {
2144
- let now = chrono::Local::now().format("%H:%M:%S").to_string();
2156
+ let now = wall_clock_hms();
2145
2157
  match self.state.setup_portal.selected_option {
2146
2158
  LocalBundle if !det.local_bundle.available => {
2147
2159
  self.state.connection_portal.add_log_entry(
@@ -2174,7 +2186,7 @@ impl App {
2174
2186
  _ => {}
2175
2187
  }
2176
2188
  } else if matches!(self.state.setup_portal.selected_option, CustomUrl) && url.is_empty() {
2177
- let now = chrono::Local::now().format("%H:%M:%S").to_string();
2189
+ let now = wall_clock_hms();
2178
2190
  self.state.connection_portal.add_log_entry(
2179
2191
  now,
2180
2192
  LogLevel::Info,
@@ -85,7 +85,7 @@ fn main() -> Result<()> {
85
85
 
86
86
  // Track previous screen to detect portal navigation
87
87
  let mut previous_screen: Option<crate::screens::Screen> = None;
88
- /// Last terminal size while Connection or Setup portal is visible (windowed hosts: sync buffer + clear on dimension drift).
88
+ // Last terminal size while Connection or Setup portal is visible (windowed hosts: sync buffer + clear on dimension drift).
89
89
  let mut standalone_portal_last_terminal_dims: Option<(u16, u16)> = None;
90
90
 
91
91
  // Force initial render
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "4runr-os",
3
- "version": "2.9.126",
3
+ "version": "2.9.127",
4
4
  "type": "module",
5
- "description": "4Runr AI Agent OS - Secure terminal interface for AI agents. v2.9.126: Fix Portal UI showing error on first load + Gateway port cleanup. Prior: auto-update npm list JSON parsing, Gateway /health DDoS exempt, Connection Portal error UI. ⚠️ Pre-MVP / Development Phase",
5
+ "description": "4Runr AI Agent OS - Secure terminal interface for AI agents. v2.9.127: mk3-tui build fix (no chrono dep activity log timestamps use std). Prior: Portal hints in activity log, Gateway shutdown order, npm auto-update list parsing. ⚠️ Pre-MVP / Development Phase",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
8
  "4runr": "dist/index.js",