@jx0/jmux 0.5.3 → 0.5.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 CHANGED
@@ -22,7 +22,9 @@ bun install -g @jx0/jmux
22
22
  jmux
23
23
  ```
24
24
 
25
- Requires [Bun](https://bun.sh) 1.2+, [tmux](https://github.com/tmux/tmux) 3.2+, [fzf](https://github.com/junegunn/fzf), and optionally [git](https://git-scm.com/) for branch display.
25
+ Requires [Bun](https://bun.sh) 1.2+, [tmux](https://github.com/tmux/tmux) 3.2+, [fzf](https://github.com/junegunn/fzf), and optionally [git](https://git-scm.com/) for branch display. jmux will offer to install tmux and fzf for you on first run.
26
+
27
+ New to tmux? See the **[Getting Started guide](docs/getting-started.md)** — no prior tmux knowledge needed.
26
28
 
27
29
  ---
28
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx0/jmux",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "The terminal workspace for agentic development",
5
5
  "type": "module",
6
6
  "bin": {
package/src/main.ts CHANGED
@@ -12,7 +12,7 @@ import { homedir } from "os";
12
12
 
13
13
  // --- CLI commands (run and exit before TUI) ---
14
14
 
15
- const VERSION = "0.5.3";
15
+ const VERSION = "0.5.4";
16
16
 
17
17
  const HELP = `jmux — the terminal workspace for agentic development
18
18
 
@@ -58,12 +58,6 @@ if (process.argv.includes("-v") || process.argv.includes("--version")) {
58
58
  process.exit(0);
59
59
  }
60
60
 
61
- if (process.env.JMUX) {
62
- console.error("Already running inside jmux.");
63
- process.exit(1);
64
- }
65
- process.env.JMUX = "1";
66
-
67
61
  if (process.argv.includes("--install-agent-hooks")) {
68
62
  installAgentHooks();
69
63
  process.exit(0);
@@ -122,6 +116,14 @@ function installAgentHooks(): void {
122
116
  console.log("will show an orange ! on that session.");
123
117
  }
124
118
 
119
+ // --- Nesting guard (after CLI commands, before TUI) ---
120
+
121
+ if (process.env.JMUX) {
122
+ console.error("Already running inside jmux.");
123
+ process.exit(1);
124
+ }
125
+ process.env.JMUX = "1";
126
+
125
127
  // --- TUI startup ---
126
128
 
127
129
  // Read sidebar width from user config, fall back to default