@jx0/jmux 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.ts +36 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx0/jmux",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "A persistent session sidebar for tmux",
5
5
  "type": "module",
6
6
  "bin": {
package/src/main.ts CHANGED
@@ -12,6 +12,42 @@ import { homedir } from "os";
12
12
 
13
13
  // --- CLI commands (run and exit before TUI) ---
14
14
 
15
+ const VERSION = "0.1.5";
16
+
17
+ const HELP = `jmux — a persistent session sidebar for tmux
18
+
19
+ Usage:
20
+ jmux [session-name] [options]
21
+
22
+ Options:
23
+ -L, --socket <name> Use a separate tmux server socket
24
+ --install-agent-hooks Install Claude Code attention flag hooks
25
+ -v, --version Show version
26
+ -h, --help Show this help
27
+
28
+ Examples:
29
+ jmux Start with default session
30
+ jmux my-project Start with named session
31
+ jmux -L work Use isolated tmux server
32
+ jmux --install-agent-hooks Set up Claude Code integration
33
+
34
+ Keybindings:
35
+ Ctrl-Shift-Up/Down Switch sessions
36
+ Ctrl-a n New session (directory picker)
37
+ Ctrl-a j Window picker (fzf)
38
+ Ctrl-a c New window
39
+ Click sidebar Switch to session`;
40
+
41
+ if (process.argv.includes("-h") || process.argv.includes("--help")) {
42
+ console.log(HELP);
43
+ process.exit(0);
44
+ }
45
+
46
+ if (process.argv.includes("-v") || process.argv.includes("--version")) {
47
+ console.log(`jmux ${VERSION}`);
48
+ process.exit(0);
49
+ }
50
+
15
51
  if (process.argv.includes("--install-agent-hooks")) {
16
52
  installAgentHooks();
17
53
  process.exit(0);