@mmmbuto/nexuscrew 0.2.0 → 0.2.1

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,108 +1,121 @@
1
- # NexusCrew — tmux AI Cockpit
2
-
3
- **Mobile-first** web cockpit for AI CLI tools. Persistent sessions via tmux.
4
-
5
- ## Features
6
-
7
- - **Persistent sessions** — tmux windows survive server restarts
8
- - **4 engines** — Claude Code, Codex CLI, Gemini CLI, Qwen Code
9
- - **Mobile-first** Termux (Android) primary target, then Linux/Mac
10
- - **Zero native deps** sql.js (WASM SQLite), no compilation needed
11
- - **Auth** JWT with localhost auto-bypass
12
- - **Dark/Light theme** CSS variables, instant toggle
13
- - **i18n** 6 languages (en, it, es, ja, ru, zh)
14
- - **STT/TTS** — Speech-to-text (Web Speech API + OpenAI Whisper) + Read aloud
15
- - **File upload** 50MB attachments
16
- - **Session dots** Green (alive), Yellow (idle), Red (dead) tmux state
17
- - **Lane-aware models** — Native + Custom per engine
18
- - **Shell discovery** — Scans .zshrc, .bashrc, providers.zsh for aliases
19
- - **Remote hosts** — SSH to any machine
20
- - **SSE streaming** — Real-time AI output
21
- - **6 languages UI** — Auto-detects browser language
1
+ # NexusCrew
2
+
3
+ Mobile-first `tmux` cockpit for local and remote AI CLI sessions.
4
+
5
+ NexusCrew is built for `Termux` and smartphone-first workflows, but also runs on Linux and macOS. It keeps CLI sessions alive inside `tmux`, exposes them through a web UI, and lets you switch between local and SSH hosts without reopening everything by hand.
6
+
7
+ ## Highlights
8
+
9
+ - Persistent `tmux` sessions for Claude, Codex, Gemini and Qwen
10
+ - Local + SSH host switching from one mobile-first UI
11
+ - Remote streaming via `tmux capture-pane`
12
+ - File and image attachments, including remote SSH staging
13
+ - Local STT with `whisper.cpp`, browser fallback, system TTS
14
+ - Dark/light theme
15
+ - Installable web app shell with mobile icon/manifest
16
+ - Termux-oriented CLI with setup, start, status and host management
22
17
 
23
18
  ## Install
24
19
 
25
20
  ```bash
26
21
  npm install -g @mmmbuto/nexuscrew
27
- nexuscrew init
22
+ nexuscrew setup
28
23
  nexuscrew start
29
- # Open http://localhost:41820
30
24
  ```
31
25
 
32
- ### Termux (Android)
26
+ `nexuscrew start` runs the server in background, waits for health, and can open the browser for you.
27
+
28
+ Default URL:
29
+
30
+ ```text
31
+ http://localhost:41820
32
+ ```
33
+
34
+ ## Termux
35
+
36
+ Recommended base packages:
33
37
 
34
38
  ```bash
35
- pkg install tmux nodejs
39
+ pkg install nodejs tmux openssh termux-services
36
40
  npm install -g @mmmbuto/nexuscrew
37
- nexuscrew init
38
- nexuscrew start
41
+ nexuscrew setup
39
42
  ```
40
43
 
41
- ## Quick Start
44
+ The setup wizard can also:
45
+
46
+ - prepare `Termux:Boot`
47
+ - create and enable the native `runit` service via `termux-services`
48
+ - configure SSH hosts
49
+ - prepare local STT checks for `whisper.cpp`
50
+
51
+ ## Core Commands
42
52
 
43
53
  ```bash
44
- nexuscrew init # First-time setup
45
- nexuscrew start # Start server + tmux
46
- nexuscrew status # Check server + sessions
47
- nexuscrew attach # Attach to tmux directly
48
- nexuscrew engines # Discover AI CLIs
54
+ nexuscrew setup
55
+ nexuscrew start
56
+ nexuscrew stop
57
+ nexuscrew status
58
+ nexuscrew attach
59
+ nexuscrew sessions
60
+ nexuscrew hosts list
61
+ nexuscrew hosts add --name mybox --host example.com --user dag
62
+ nexuscrew stt doctor
49
63
  ```
50
64
 
51
- ## Architecture
65
+ ## How It Works
52
66
 
53
- ```
54
- Browser/WebView ←SSE/REST→ Express :41820 ←tmux CLI AI processes
55
- |
56
- sql.js DB (WASM)
57
- JWT Auth
67
+ ```text
68
+ Browser/WebView <-> Express API <-> tmux session/windows <-> AI CLI processes
69
+ |
70
+ +-> local machine
71
+ +-> SSH hosts
58
72
  ```
59
73
 
60
- Each AI session = one tmux window. Output captured via `tee`, streamed to UI via SSE.
74
+ Each conversation runs in its own `tmux` window. Local sessions stream from log watchers; remote sessions stream from incremental pane capture.
61
75
 
62
76
  ## Configuration
63
77
 
64
- `~/.nexuscrew/config.json`:
65
- ```json
66
- {
67
- "port": 41820,
68
- "tmuxSession": "nexuscrew",
69
- "autoDiscovery": true
70
- }
78
+ Main config:
79
+
80
+ ```text
81
+ ~/.nexuscrew/config.json
82
+ ```
83
+
84
+ Host registry:
85
+
86
+ ```text
87
+ ~/.nexuscrew/hosts.json
71
88
  ```
72
89
 
73
- ## Commands
90
+ Important defaults include:
74
91
 
75
- | Command | Description |
76
- |---------|-------------|
77
- | `nexuscrew init` | First-time setup |
78
- | `nexuscrew start` | Start server + tmux |
79
- | `nexuscrew stop` | Stop server |
80
- | `nexuscrew status` | Server + tmux + hosts |
81
- | `nexuscrew engines` | Discover CLIs + aliases |
82
- | `nexuscrew sessions` | List tmux windows |
83
- | `nexuscrew attach` | Attach to tmux |
84
- | `nexuscrew config` | View/edit config |
85
- | `nexuscrew hosts add` | Add SSH host |
92
+ - `server.port`
93
+ - `tmuxSession`
94
+ - `hosts.default`
95
+ - `workspaces.default`
96
+ - `stt.provider`
97
+ - `termux.boot_start`
98
+ - `termux.service_enabled`
86
99
 
87
- ## API
100
+ ## Authentication
88
101
 
89
- Public: `/health`, `/api/v1/auth/login`, `/api/v1/models`, `/api/v1/runtimes`
90
- Protected (JWT/localhost): `/api/v1/send`, `/api/v1/sessions`, `/api/v1/upload`, `/api/v1/workspaces`
102
+ Localhost use is optimized for local device workflows.
91
103
 
92
- Default login: `admin` / `admin` (change after first login)
104
+ For remote or network exposure, review and configure authentication before relying on the instance outside localhost. Do not expose an unreviewed dev setup directly to the public internet.
93
105
 
94
106
  ## Development
95
107
 
96
108
  ```bash
97
109
  git clone https://github.com/DioNanos/nexuscrew
98
- cd nexuscrew && npm install
99
- cd frontend && npm install && npm run build && cd ..
110
+ cd nexuscrew
111
+ npm install
112
+ npm run build
100
113
  npm run dev
101
114
  ```
102
115
 
103
116
  ## Related
104
117
 
105
- - [NexusCLI](https://www.npmjs.com/package/@mmmbuto/nexuscli) PTY-based variant
118
+ - [NexusCLI](https://www.npmjs.com/package/@mmmbuto/nexuscli) - PTY-based sibling project
106
119
 
107
120
  ## License
108
121