@brutalsystems/muster 3.2.0 → 3.2.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.
@@ -8,7 +8,17 @@ const spec = JSON.parse(await readFile(file, "utf8"));
8
8
  await rm(dirname(file), { recursive: true });
9
9
  const child = spawn(spec.argv[0], spec.argv.slice(1), {
10
10
  cwd: spec.cwd,
11
- env: { ...spec.env, TERM: process.env.TERM ?? "xterm-256color" },
11
+ env: {
12
+ ...spec.env,
13
+ TERM: process.env.TERM ?? "xterm-256color",
14
+ // The launch env drops the caller's TMUX (it names the caller's server);
15
+ // what tmux gave this process names the pane the agent is really in, which
16
+ // is how a terminal finds the window attached to it. Absent under the pty
17
+ // host, so nothing is invented there.
18
+ ...(process.env.TMUX && process.env.TMUX_PANE
19
+ ? { TMUX: process.env.TMUX, TMUX_PANE: process.env.TMUX_PANE }
20
+ : {}),
21
+ },
12
22
  stdio: "inherit",
13
23
  });
14
24
  child.once("error", (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brutalsystems/muster",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Launch instructed, reachable local agent sessions",
5
5
  "type": "module",
6
6
  "engines": {