panex 0.9.2 → 0.9.4
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 +32 -34
- package/dist/cli.js +572 -264
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +554 -261
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@ A terminal UI for running multiple processes in parallel. Like Turborepo's TUI,
|
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
┌──────────────┬──────────────────────────────────────────────┐
|
|
7
|
-
│
|
|
7
|
+
│ │ api │
|
|
8
|
+
│ ▶ api ● │ │
|
|
9
|
+
│ web ● │ Server listening on http://localhost:3001 │
|
|
10
|
+
│ mobile ● │ {"level":30,"msg":"request completed"} │
|
|
8
11
|
│ │ │
|
|
9
|
-
│ ▶ api ● │ Server listening on http://localhost:3001 │
|
|
10
|
-
│ web ● │ {"level":30,"msg":"request completed"} │
|
|
11
|
-
│ mobile ● │ │
|
|
12
12
|
├──────────────┴──────────────────────────────────────────────┤
|
|
13
|
-
│ [↑↓] select [enter] focus [r] restart [q] quit
|
|
13
|
+
│ [↑↓] select [enter] focus [r] restart [q] quit │
|
|
14
14
|
└─────────────────────────────────────────────────────────────┘
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -21,20 +21,18 @@ A terminal UI for running multiple processes in parallel. Like Turborepo's TUI,
|
|
|
21
21
|
- **Zero config** - Just pass commands as arguments
|
|
22
22
|
- **Cross-platform** - macOS, Linux, Windows
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Requirements
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
# npm
|
|
28
|
-
npm install -g panex
|
|
26
|
+
**Bun runtime is required.** Panex uses Bun's built-in PTY support for interactive processes.
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
npx panex "npm run api" "npm run web"
|
|
28
|
+
## Installation
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
```bash
|
|
31
|
+
# Run directly with bunx
|
|
34
32
|
bunx panex "bun run api" "bun run web"
|
|
35
33
|
|
|
36
|
-
#
|
|
37
|
-
|
|
34
|
+
# Or install globally
|
|
35
|
+
bun add -g panex
|
|
38
36
|
```
|
|
39
37
|
|
|
40
38
|
## Usage
|
|
@@ -51,28 +49,28 @@ panex -n api,web,mobile "npm run api" "npm run web" "npm run mobile"
|
|
|
51
49
|
|
|
52
50
|
### Keyboard Shortcuts
|
|
53
51
|
|
|
54
|
-
| Key
|
|
55
|
-
|
|
56
|
-
| `↑/↓` or `j/k` | Navigate process list
|
|
57
|
-
| `Enter`
|
|
58
|
-
| `Esc`
|
|
59
|
-
| `r`
|
|
60
|
-
| `x`
|
|
61
|
-
| `
|
|
62
|
-
| `q`
|
|
63
|
-
| `?`
|
|
64
|
-
| `g/G`
|
|
65
|
-
| `PgUp/PgDn`
|
|
52
|
+
| Key | Action |
|
|
53
|
+
| -------------- | -------------------------------- |
|
|
54
|
+
| `↑/↓` or `j/k` | Navigate process list |
|
|
55
|
+
| `Enter` | Focus process (interactive mode) |
|
|
56
|
+
| `Esc` | Exit focus mode |
|
|
57
|
+
| `r` | Restart selected process |
|
|
58
|
+
| `x` | Kill selected process |
|
|
59
|
+
| `A` | Restart all processes |
|
|
60
|
+
| `q` | Quit panex |
|
|
61
|
+
| `?` | Show help |
|
|
62
|
+
| `g/G` | Scroll to top/bottom |
|
|
63
|
+
| `PgUp/PgDn` | Scroll output |
|
|
66
64
|
|
|
67
65
|
## Why panex?
|
|
68
66
|
|
|
69
|
-
| Feature
|
|
70
|
-
|
|
71
|
-
| Split-pane TUI
|
|
72
|
-
| PTY support (QR codes) | ✅
|
|
73
|
-
| Zero config
|
|
74
|
-
| npm install
|
|
75
|
-
| No monorepo required
|
|
67
|
+
| Feature | panex | concurrently | mprocs | turbo |
|
|
68
|
+
| ---------------------- | ----- | ------------ | ------ | ----- |
|
|
69
|
+
| Split-pane TUI | ✅ | ❌ | ✅ | ✅ |
|
|
70
|
+
| PTY support (QR codes) | ✅ | ❌ | ✅ | ✅ |
|
|
71
|
+
| Zero config | ✅ | ✅ | ❌ | ❌ |
|
|
72
|
+
| npm install | ✅ | ✅ | ❌ | ✅ |
|
|
73
|
+
| No monorepo required | ✅ | ✅ | ✅ | ❌ |
|
|
76
74
|
|
|
77
75
|
## Development
|
|
78
76
|
|
|
@@ -104,7 +102,7 @@ node dist/cli.js "echo test"
|
|
|
104
102
|
|
|
105
103
|
- TypeScript + Bun
|
|
106
104
|
- blessed (TUI framework)
|
|
107
|
-
-
|
|
105
|
+
- Bun.spawn with terminal (PTY support)
|
|
108
106
|
- commander (CLI parsing)
|
|
109
107
|
- tsup (build tool)
|
|
110
108
|
|