@jx0/jmux 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx0/jmux",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
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.0";
15
+ const VERSION = "0.5.1";
16
16
 
17
17
  const HELP = `jmux — a persistent session sidebar for tmux
18
18
 
@@ -48,6 +48,12 @@ if (process.argv.includes("-v") || process.argv.includes("--version")) {
48
48
  process.exit(0);
49
49
  }
50
50
 
51
+ if (process.env.JMUX) {
52
+ console.error("Already running inside jmux.");
53
+ process.exit(1);
54
+ }
55
+ process.env.JMUX = "1";
56
+
51
57
  if (process.argv.includes("--install-agent-hooks")) {
52
58
  installAgentHooks();
53
59
  process.exit(0);