@jx0/jmux 0.5.0 → 0.5.2
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 +3 -1
- package/package.json +1 -1
- package/src/main.ts +21 -4
package/README.md
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**The terminal workspace for agentic development.**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Agents, editors, servers, logs. All running. All visible. One terminal.
|
|
8
|
+
|
|
9
|
+
Run Claude Code, Codex, or aider in parallel — jmux shows you which agents are working, which finished, and which need your review. No Electron. No lock-in. Just your terminal.
|
|
8
10
|
|
|
9
11
|
[](https://www.npmjs.com/package/@jx0/jmux)
|
|
10
12
|
[](LICENSE)
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -12,9 +12,16 @@ import { homedir } from "os";
|
|
|
12
12
|
|
|
13
13
|
// --- CLI commands (run and exit before TUI) ---
|
|
14
14
|
|
|
15
|
-
const VERSION = "0.5.
|
|
15
|
+
const VERSION = "0.5.2";
|
|
16
16
|
|
|
17
|
-
const HELP = `jmux —
|
|
17
|
+
const HELP = `jmux — the terminal workspace for agentic development
|
|
18
|
+
|
|
19
|
+
Agents, editors, servers, logs.
|
|
20
|
+
All running. All visible. One terminal.
|
|
21
|
+
|
|
22
|
+
Run Claude Code, Codex, or aider in parallel — jmux shows you which
|
|
23
|
+
agents are working, which finished, and which need your review.
|
|
24
|
+
No Electron. No lock-in. Just your terminal.
|
|
18
25
|
|
|
19
26
|
Usage:
|
|
20
27
|
jmux [session-name] [options]
|
|
@@ -33,10 +40,13 @@ Examples:
|
|
|
33
40
|
|
|
34
41
|
Keybindings:
|
|
35
42
|
Ctrl-Shift-Up/Down Switch sessions
|
|
36
|
-
Ctrl-a n New session
|
|
43
|
+
Ctrl-a n New session / worktree
|
|
44
|
+
Ctrl-a i Settings
|
|
37
45
|
Ctrl-a j Window picker (fzf)
|
|
38
46
|
Ctrl-a c New window
|
|
39
|
-
Click sidebar Switch to session
|
|
47
|
+
Click sidebar Switch to session
|
|
48
|
+
|
|
49
|
+
https://github.com/jarredkenny/jmux`;
|
|
40
50
|
|
|
41
51
|
if (process.argv.includes("-h") || process.argv.includes("--help")) {
|
|
42
52
|
console.log(HELP);
|
|
@@ -48,6 +58,12 @@ if (process.argv.includes("-v") || process.argv.includes("--version")) {
|
|
|
48
58
|
process.exit(0);
|
|
49
59
|
}
|
|
50
60
|
|
|
61
|
+
if (process.env.JMUX) {
|
|
62
|
+
console.error("Already running inside jmux.");
|
|
63
|
+
process.exit(1);
|
|
64
|
+
}
|
|
65
|
+
process.env.JMUX = "1";
|
|
66
|
+
|
|
51
67
|
if (process.argv.includes("--install-agent-hooks")) {
|
|
52
68
|
installAgentHooks();
|
|
53
69
|
process.exit(0);
|
|
@@ -585,6 +601,7 @@ async function start(): Promise<void> {
|
|
|
585
601
|
// we attached to an existing server that loaded ~/.tmux.conf
|
|
586
602
|
// Set JMUX_DIR in tmux's global environment so config bindings can reference it
|
|
587
603
|
await control.sendCommand(`set-environment -g JMUX_DIR ${jmuxDir}`);
|
|
604
|
+
await control.sendCommand("set-environment -g JMUX 1");
|
|
588
605
|
await control.sendCommand(`source-file ${configFile}`);
|
|
589
606
|
// Re-enable automatic-rename on all windows — clears any application-set names
|
|
590
607
|
try {
|