4runr-os 2.1.50 โ†’ 2.1.52

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/README.md CHANGED
@@ -1,65 +1,256 @@
1
- # 4Runr OS
2
-
3
- Modern Terminal Interface for the 4Runr AI Agent OS.
4
-
5
- ## Quick Start
6
-
7
- ### One-Time Setup
8
-
9
- ```bash
10
- npm install -g 4runr-os
11
- ```
12
-
13
- ### Daily Use
14
-
15
- ```bash
16
- 4r
17
- ```
18
-
19
- **That's it!** No other setup needed.
20
-
21
- ---
22
-
23
- ## Features
24
-
25
- - ๐Ÿš€ **Modern TUI** - Beautiful Rust-based terminal interface
26
- - ๐Ÿ”„ **Auto-Updates** - Automatically updates when new versions are available
27
- - ๐ŸŽฏ **Zero Config** - Works out of the box
28
- - ๐Ÿชถ **Lightweight** - Fast and efficient
29
-
30
- ## Commands
31
-
32
- - `4r` - Launch the 4Runr OS terminal interface
33
- - `4runr` - Alias for `4r`
34
- - `4runr-os` - Alias for `4r`
35
-
36
- ## Auto-Update
37
-
38
- The `4r` command automatically checks for updates and installs them if available. You can control this behavior:
39
-
40
- ```bash
41
- # Disable auto-update (still checks)
42
- NO_AUTO_UPDATE=1 4r
43
-
44
- # Disable update check entirely
45
- NO_UPDATE_CHECK=1 4r
46
-
47
- # Or use the config command inside the OS
48
- 4r
49
- # Then: config auto-update disable
50
- ```
51
-
52
- ## Requirements
53
-
54
- - **Node.js** 18.0.0 or higher
55
- - **npm** (comes with Node.js)
56
-
57
- **No Rust or build tools needed!** Pre-built binaries are included for Windows, Linux, and macOS.
58
-
59
- ## Troubleshooting
60
-
61
- See [SETUP.md](./SETUP.md) for detailed setup instructions and troubleshooting.
62
-
63
- ## License
64
-
65
- MIT
1
+ # 4Runr OS
2
+
3
+ <div align="center">
4
+
5
+ ![4Runr OS](https://img.shields.io/npm/v/4runr-os?style=for-the-badge)
6
+ ![License](https://img.shields.io/npm/l/4runr-os?style=for-the-badge)
7
+ ![Node](https://img.shields.io/node/v/4runr-os?style=for-the-badge)
8
+
9
+ **Production-ready terminal interface for managing AI agents with real-time monitoring, safety controls, and enterprise features.**
10
+
11
+ [Installation](#-installation) โ€ข [Features](#-features) โ€ข [Documentation](#-documentation) โ€ข [Support](#-support)
12
+
13
+ </div>
14
+
15
+ ---
16
+
17
+ ## ๐Ÿ“ธ Screenshots
18
+
19
+ ### Boot Screen
20
+
21
+ ![4Runr OS Boot Screen](./images/screenshot-boot.png)
22
+
23
+ *Initialization screen showing system startup and readiness status.*
24
+
25
+ ### Main Interface
26
+
27
+ ![4Runr OS Terminal Interface](./images/screenshot.png)
28
+
29
+ *Full terminal interface showing system status, operations log, resources, and capabilities.*
30
+
31
+ ---
32
+
33
+ ## ๐Ÿš€ Quick Start
34
+
35
+ ### Installation
36
+
37
+ ```bash
38
+ npm install -g 4runr-os
39
+ ```
40
+
41
+ ### Usage
42
+
43
+ ```bash
44
+ 4r
45
+ ```
46
+
47
+ **That's it!** The terminal interface launches automatically.
48
+
49
+ ---
50
+
51
+ ## โœจ Features
52
+
53
+ ### ๐ŸŽจ Modern Terminal Interface
54
+ - **Rust + Ratatui** - High-performance, native terminal UI
55
+ - **Real-time Updates** - Live monitoring of agent runs, system resources, and network status
56
+ - **Beautiful Design** - Clean, professional interface with 4Runr brand colors
57
+ - **Cross-platform** - Works on Windows, macOS, and Linux
58
+
59
+ ### ๐Ÿ”’ Enterprise Safety Features
60
+ - **Shield System** - PII detection, injection blocking, hallucination checks
61
+ - **Sentinel Monitoring** - Real-time safety monitoring and alerting
62
+ - **Policy Enforcement** - Configurable safety policies and controls
63
+ - **Audit Logging** - Complete audit trail of all operations
64
+
65
+ ### ๐Ÿ“Š Real-time Monitoring
66
+ - **System Status** - CPU, memory, network monitoring
67
+ - **Agent Operations** - Live log streaming and status updates
68
+ - **Gateway Health** - Connection status and metrics
69
+ - **Resource Tracking** - Active runs, connections, and capabilities
70
+
71
+ ### ๐Ÿ”„ Auto-Update System
72
+ - **Automatic Updates** - Checks for and installs new versions automatically
73
+ - **Configurable** - Enable/disable auto-updates via config command
74
+ - **Zero Downtime** - Updates happen seamlessly in the background
75
+
76
+ ### ๐Ÿ› ๏ธ Developer Experience
77
+ - **Zero Configuration** - Works out of the box
78
+ - **Pre-built Binaries** - No Rust or build tools required
79
+ - **Fast Startup** - Optimized for quick launch times
80
+ - **Comprehensive Logging** - Detailed logs for debugging
81
+
82
+ ---
83
+
84
+ ## ๐Ÿ“‹ Commands
85
+
86
+ ### Global Commands
87
+
88
+ | Command | Description |
89
+ |---------|-------------|
90
+ | `4r` | Launch the 4Runr OS terminal interface (recommended) |
91
+ | `4runr` | Alias for `4r` |
92
+ | `4runr-os` | Alias for `4r` |
93
+ | `4runr-setup` | Run initial setup wizard |
94
+
95
+ ### In-Terminal Commands
96
+
97
+ Once the TUI is running, you can use these commands:
98
+
99
+ - `help` - Show all available commands
100
+ - `config` - Manage configuration settings
101
+ - `status` - Show system status
102
+ - `agents` - List available agents
103
+ - `runs` - View agent run history
104
+ - `exit` or `Ctrl+C` - Exit the terminal
105
+
106
+ ---
107
+
108
+ ## โš™๏ธ Configuration
109
+
110
+ ### Auto-Update Settings
111
+
112
+ Control automatic updates from within the OS:
113
+
114
+ ```bash
115
+ 4r
116
+ # Then in the terminal:
117
+ config auto-update disable # Disable automatic updates
118
+ config auto-update enable # Enable automatic updates
119
+ config auto-update status # Check current setting
120
+ ```
121
+
122
+ ### Environment Variables
123
+
124
+ ```bash
125
+ # Disable auto-update (still checks for updates)
126
+ NO_AUTO_UPDATE=1 4r
127
+
128
+ # Disable update check entirely
129
+ NO_UPDATE_CHECK=1 4r
130
+
131
+ # Set custom gateway URL
132
+ GATEWAY_URL=http://your-gateway:3001 4r
133
+ ```
134
+
135
+ ### Configuration File
136
+
137
+ Settings are saved in `~/.4runr/config.json` and persist across sessions.
138
+
139
+ ---
140
+
141
+ ## ๐Ÿ“ฆ Requirements
142
+
143
+ - **Node.js** 18.0.0 or higher
144
+ - **npm** (comes with Node.js)
145
+
146
+ **No Rust or build tools needed!** Pre-built binaries are included for:
147
+ - Windows (x64)
148
+ - macOS (x64, ARM64)
149
+ - Linux (x64, ARM64)
150
+
151
+ ---
152
+
153
+ ## ๐Ÿ—๏ธ Architecture
154
+
155
+ 4Runr OS is built with:
156
+
157
+ - **Frontend**: Rust + Ratatui for the terminal interface
158
+ - **Backend**: Node.js for orchestration and gateway communication
159
+ - **Communication**: HTTP/SSE for real-time updates
160
+ - **Safety**: Built-in Shield and Sentinel systems
161
+
162
+ ```
163
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
164
+ โ”‚ 4Runr OS โ”‚ โ† Terminal Interface (Rust + Ratatui)
165
+ โ”‚ (TUI) โ”‚
166
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
167
+ โ”‚ HTTP/SSE
168
+ โ–ผ
169
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
170
+ โ”‚ 4Runr Gateway โ”‚ โ† API Gateway (Node.js)
171
+ โ”‚ (Backend) โ”‚
172
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
173
+ ```
174
+
175
+ ---
176
+
177
+ ## ๐Ÿ“š Documentation
178
+
179
+ - **[Setup Guide](./SETUP.md)** - Detailed setup instructions and troubleshooting
180
+ - **[User Privacy](./USER-PRIVACY.md)** - Privacy policy and data handling
181
+ - **[Easy Usage](./EASY-USAGE.md)** - Quick reference guide
182
+ - **[Contributing](./CONTRIBUTING-CLI.md)** - How to contribute to the project
183
+
184
+ ---
185
+
186
+ ## ๐Ÿ”ง Troubleshooting
187
+
188
+ ### "mk3-tui binary not found"
189
+
190
+ The package will try to auto-install it. If that fails:
191
+
192
+ ```bash
193
+ npm install -g 4runr-os-mk3
194
+ ```
195
+
196
+ ### "4r: command not found"
197
+
198
+ Make sure npm global bin is in your PATH:
199
+
200
+ ```bash
201
+ # Check PATH
202
+ echo $PATH | grep npm
203
+
204
+ # Add to PATH if needed (add to ~/.bashrc or ~/.zshrc)
205
+ export PATH=$PATH:$(npm config get prefix)/bin
206
+ ```
207
+
208
+ ### Terminal too small
209
+
210
+ The TUI requires a minimum terminal size of 80x24. Resize your terminal window.
211
+
212
+ ### Connection issues
213
+
214
+ Check your gateway URL:
215
+
216
+ ```bash
217
+ # Test gateway connection
218
+ curl http://your-gateway:3001/health
219
+
220
+ # Set gateway URL
221
+ export GATEWAY_URL=http://your-gateway:3001
222
+ 4r
223
+ ```
224
+
225
+ ---
226
+
227
+ ## ๐Ÿค Support
228
+
229
+ - **Issues**: [GitHub Issues](https://github.com/KyanBergeron4Runr/4Runr-AI-Agent-OS/issues)
230
+ - **Documentation**: [Full Documentation](./SETUP.md)
231
+ - **Website**: [4Runr.com](https://4runr.com)
232
+
233
+ ---
234
+
235
+ ## ๐Ÿ“„ License
236
+
237
+ MIT License - see [LICENSE](../LICENSE) file for details.
238
+
239
+ ---
240
+
241
+ ## ๐Ÿ™ Acknowledgments
242
+
243
+ Built with:
244
+ - [Ratatui](https://github.com/ratatui-org/ratatui) - Terminal UI library
245
+ - [Rust](https://www.rust-lang.org/) - Systems programming language
246
+ - [Node.js](https://nodejs.org/) - JavaScript runtime
247
+
248
+ ---
249
+
250
+ <div align="center">
251
+
252
+ **Made with โค๏ธ by the 4Runr Team**
253
+
254
+ [โฌ† Back to Top](#4runr-os)
255
+
256
+ </div>
package/SETUP.md CHANGED
@@ -1,85 +1,85 @@
1
- # 4Runr OS - Quick Setup Guide
2
-
3
- ## One-Time Setup
4
-
5
- **Step 1: Install**
6
- ```bash
7
- npm install -g 4runr-os
8
- ```
9
-
10
- **Step 2: Run Setup (Auto-detects and fixes everything)**
11
- ```bash
12
- 4runr-setup
13
- ```
14
-
15
- Or if that doesn't work:
16
- ```bash
17
- npm run -g setup
18
- ```
19
-
20
- **That's it!** The setup script will:
21
- - โœ… Check Node.js and npm
22
- - โœ… Install Rust if needed
23
- - โœ… Fix Windows MSVC linker issues automatically
24
- - โœ… Build mk3-tui binary
25
- - โœ… Verify everything is ready
26
-
27
- ## Daily Use
28
-
29
- ```bash
30
- 4r
31
- ```
32
-
33
- **Done!** Just `4r` every time. It will verify everything is ready before launching.
34
-
35
- ---
36
-
37
- ## After Setup
38
-
39
- Once installed, just run:
40
-
41
- ```bash
42
- 4r
43
- ```
44
-
45
- That's all you need! The `4r` command will:
46
- - โœ… Launch the 4Runr OS terminal interface
47
- - โœ… Auto-update when new versions are available
48
- - โœ… Work immediately (no additional setup needed)
49
-
50
- ---
51
-
52
- ## Troubleshooting
53
-
54
- ### "4r: command not found"
55
-
56
- Make sure npm global bin is in your PATH:
57
-
58
- **Windows:**
59
- ```powershell
60
- # Add to PATH (add to your PowerShell profile)
61
- $env:Path += ";$env:APPDATA\npm"
62
- ```
63
-
64
- **Linux/macOS:**
65
- ```bash
66
- # Add to PATH (add to ~/.bashrc or ~/.zshrc)
67
- export PATH=$PATH:$(npm config get prefix)/bin
68
- ```
69
-
70
- ### "mk3-tui binary not found"
71
-
72
- This shouldn't happen if binaries are included in the package. If you see this:
73
-
74
- 1. Make sure you have the latest version: `npm install -g 4runr-os@latest`
75
- 2. If still happening, the package will try to build from source automatically (requires Rust)
76
-
77
- ---
78
-
79
- ## That's It!
80
-
81
- - **One-time setup**: `npm install -g 4runr-os`
82
- - **Daily use**: `4r`
83
-
84
- No other commands needed! ๐Ÿš€
85
-
1
+ # 4Runr OS - Quick Setup Guide
2
+
3
+ ## One-Time Setup
4
+
5
+ **Step 1: Install**
6
+ ```bash
7
+ npm install -g 4runr-os
8
+ ```
9
+
10
+ **Step 2: Run Setup (Auto-detects and fixes everything)**
11
+ ```bash
12
+ 4runr-setup
13
+ ```
14
+
15
+ Or if that doesn't work:
16
+ ```bash
17
+ npm run -g setup
18
+ ```
19
+
20
+ **That's it!** The setup script will:
21
+ - โœ… Check Node.js and npm
22
+ - โœ… Install Rust if needed
23
+ - โœ… Fix Windows MSVC linker issues automatically
24
+ - โœ… Build mk3-tui binary
25
+ - โœ… Verify everything is ready
26
+
27
+ ## Daily Use
28
+
29
+ ```bash
30
+ 4r
31
+ ```
32
+
33
+ **Done!** Just `4r` every time. It will verify everything is ready before launching.
34
+
35
+ ---
36
+
37
+ ## After Setup
38
+
39
+ Once installed, just run:
40
+
41
+ ```bash
42
+ 4r
43
+ ```
44
+
45
+ That's all you need! The `4r` command will:
46
+ - โœ… Launch the 4Runr OS terminal interface
47
+ - โœ… Auto-update when new versions are available
48
+ - โœ… Work immediately (no additional setup needed)
49
+
50
+ ---
51
+
52
+ ## Troubleshooting
53
+
54
+ ### "4r: command not found"
55
+
56
+ Make sure npm global bin is in your PATH:
57
+
58
+ **Windows:**
59
+ ```powershell
60
+ # Add to PATH (add to your PowerShell profile)
61
+ $env:Path += ";$env:APPDATA\npm"
62
+ ```
63
+
64
+ **Linux/macOS:**
65
+ ```bash
66
+ # Add to PATH (add to ~/.bashrc or ~/.zshrc)
67
+ export PATH=$PATH:$(npm config get prefix)/bin
68
+ ```
69
+
70
+ ### "mk3-tui binary not found"
71
+
72
+ This shouldn't happen if binaries are included in the package. If you see this:
73
+
74
+ 1. Make sure you have the latest version: `npm install -g 4runr-os@latest`
75
+ 2. If still happening, the package will try to build from source automatically (requires Rust)
76
+
77
+ ---
78
+
79
+ ## That's It!
80
+
81
+ - **One-time setup**: `npm install -g 4runr-os`
82
+ - **Daily use**: `4r`
83
+
84
+ No other commands needed! ๐Ÿš€
85
+
package/USER-PRIVACY.md CHANGED
@@ -1,81 +1,81 @@
1
- # User Privacy & System Cleanliness
2
-
3
- ## What We Install
4
-
5
- 4runr-os **only installs what's necessary** and **respects your system**:
6
-
7
- ### โœ… What Gets Installed (Only if Missing)
8
-
9
- 1. **Rust** (optional)
10
- - Only if not already installed
11
- - **User must install manually** (we provide instructions, don't auto-install)
12
- - Required for building mk3-tui binary
13
-
14
- 2. **MinGW/MSYS2** (Windows only, optional)
15
- - Only if MSVC linker not available
16
- - Only if not already installed
17
- - Used for Rust GNU toolchain on Windows
18
-
19
- 3. **mk3-tui Binary**
20
- - Built from source included in package
21
- - Only if pre-built binary not available
22
- - Stored in package directory (not system directories)
23
-
24
- ### โœ… What We Never Do
25
-
26
- - โŒ Never install system-wide software without user consent
27
- - โŒ Never modify system PATH permanently without asking
28
- - โŒ Never download large files unnecessarily
29
- - โŒ Never leave temporary files on your system
30
- - โŒ Never modify registry or system settings
31
- - โŒ Never auto-install Rust (user must do it manually)
32
-
33
- ### ๐Ÿงน Automatic Cleanup
34
-
35
- The package automatically cleans up:
36
-
37
- 1. **Build Artifacts** (after building)
38
- - Removes Rust debug builds (~200-300MB saved)
39
- - Removes incremental compilation artifacts
40
- - Keeps only the final release binary
41
-
42
- 2. **Old Versions** (during updates)
43
- - Removes old npm package versions (keeps last 2)
44
- - Prevents disk space overflow from version history
45
-
46
- 3. **No Temporary Files**
47
- - All operations use existing directories
48
- - No temp files created or left behind
49
-
50
- ### ๐Ÿ“ฆ Package Contents
51
-
52
- The npm package includes:
53
- - โœ… Compiled TypeScript (dist/)
54
- - โœ… Rust source code (for building if needed)
55
- - โœ… Setup scripts (for one-time setup)
56
- - โŒ Build artifacts (excluded via .npmignore)
57
- - โŒ Source TypeScript (excluded - only dist/ included)
58
- - โŒ Development files
59
-
60
- ### ๐Ÿ”’ What We Touch
61
-
62
- **User's System:**
63
- - โœ… npm global install directory (standard npm location)
64
- - โœ… PATH environment variable (session-only, unless user approves permanent)
65
- - โŒ System directories (we never touch system files)
66
- - โŒ Registry/configuration files (Windows)
67
- - โŒ User's home directory (except standard npm locations)
68
-
69
- **User's Data:**
70
- - โœ… Configuration file: `~/.4runr/config.json` (for user preferences)
71
- - โŒ User's files or documents (never accessed)
72
- - โŒ Browser data or history (never accessed)
73
- - โŒ Personal information (never collected)
74
-
75
- ### ๐Ÿ›ก๏ธ Privacy Guarantee
76
-
77
- - No telemetry or tracking
78
- - No data collection
79
- - No external network calls (except npm registry for updates)
80
- - All operations are local
81
-
1
+ # User Privacy & System Cleanliness
2
+
3
+ ## What We Install
4
+
5
+ 4runr-os **only installs what's necessary** and **respects your system**:
6
+
7
+ ### โœ… What Gets Installed (Only if Missing)
8
+
9
+ 1. **Rust** (optional)
10
+ - Only if not already installed
11
+ - **User must install manually** (we provide instructions, don't auto-install)
12
+ - Required for building mk3-tui binary
13
+
14
+ 2. **MinGW/MSYS2** (Windows only, optional)
15
+ - Only if MSVC linker not available
16
+ - Only if not already installed
17
+ - Used for Rust GNU toolchain on Windows
18
+
19
+ 3. **mk3-tui Binary**
20
+ - Built from source included in package
21
+ - Only if pre-built binary not available
22
+ - Stored in package directory (not system directories)
23
+
24
+ ### โœ… What We Never Do
25
+
26
+ - โŒ Never install system-wide software without user consent
27
+ - โŒ Never modify system PATH permanently without asking
28
+ - โŒ Never download large files unnecessarily
29
+ - โŒ Never leave temporary files on your system
30
+ - โŒ Never modify registry or system settings
31
+ - โŒ Never auto-install Rust (user must do it manually)
32
+
33
+ ### ๐Ÿงน Automatic Cleanup
34
+
35
+ The package automatically cleans up:
36
+
37
+ 1. **Build Artifacts** (after building)
38
+ - Removes Rust debug builds (~200-300MB saved)
39
+ - Removes incremental compilation artifacts
40
+ - Keeps only the final release binary
41
+
42
+ 2. **Old Versions** (during updates)
43
+ - Removes old npm package versions (keeps last 2)
44
+ - Prevents disk space overflow from version history
45
+
46
+ 3. **No Temporary Files**
47
+ - All operations use existing directories
48
+ - No temp files created or left behind
49
+
50
+ ### ๐Ÿ“ฆ Package Contents
51
+
52
+ The npm package includes:
53
+ - โœ… Compiled TypeScript (dist/)
54
+ - โœ… Rust source code (for building if needed)
55
+ - โœ… Setup scripts (for one-time setup)
56
+ - โŒ Build artifacts (excluded via .npmignore)
57
+ - โŒ Source TypeScript (excluded - only dist/ included)
58
+ - โŒ Development files
59
+
60
+ ### ๐Ÿ”’ What We Touch
61
+
62
+ **User's System:**
63
+ - โœ… npm global install directory (standard npm location)
64
+ - โœ… PATH environment variable (session-only, unless user approves permanent)
65
+ - โŒ System directories (we never touch system files)
66
+ - โŒ Registry/configuration files (Windows)
67
+ - โŒ User's home directory (except standard npm locations)
68
+
69
+ **User's Data:**
70
+ - โœ… Configuration file: `~/.4runr/config.json` (for user preferences)
71
+ - โŒ User's files or documents (never accessed)
72
+ - โŒ Browser data or history (never accessed)
73
+ - โŒ Personal information (never collected)
74
+
75
+ ### ๐Ÿ›ก๏ธ Privacy Guarantee
76
+
77
+ - No telemetry or tracking
78
+ - No data collection
79
+ - No external network calls (except npm registry for updates)
80
+ - All operations are local
81
+