@rse/claudex 0.9.23 → 0.9.24

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
  ChangeLog
3
3
  =========
4
4
 
5
+ 0.9.24 (2026-05-10)
6
+ -------------------
7
+
8
+ - BUGFIX: further Windows workarounds related to tmux configuration
9
+ - CLEANUP: make ESLint happy
10
+ - REFACTOR: simplify `tmux.conf` patching by overwriting entries
11
+
5
12
  0.9.23 (2026-05-10)
6
13
  -------------------
7
14
 
package/claudex.js CHANGED
@@ -479,18 +479,23 @@ const actionUpdate = async (capsula) => {
479
479
  const actionInternalTmux = (args) => {
480
480
  ensureTool("tmux");
481
481
  let conf = fs.readFileSync(path.join(basedir, "tmux.conf"), "utf8");
482
- conf = conf.replace(/@USER@/g, USER);
483
482
  if (isPsmux()) {
484
483
  /* psmux does not honor the reverse ANSI sequence in at least the statusline
485
- and no expansions at all in the pane border format */
486
- conf = conf.replace(/fg=default,bg=default,reverse/, "bg=black,fg=color15")
487
- .replaceAll(/(status.*?)fg=blue,reverse/g, "$1bg=blue,fg=color15")
488
- .replaceAll(/(status.*?)fg=blue/g, "$1bg=blue,fg=color15")
489
- .replaceAll(/(status.*?)fg=red/g, "$1bg=red,fg=color15")
490
- .replaceAll(/(status.*?)fg=default/g, "$1bg=black,fg=color15")
491
- .replaceAll(/#\[reverse\]/g, "")
492
- .replaceAll(/#\[noreverse\]/g, "");
484
+ and not some expansions in the pane border format */
485
+ conf +=
486
+ "set-option -g status-style bg=black,fg=color15\n" +
487
+ "set-option -g status-left \" claudeX #[bg=blue,fg=color15] ※ @USER@ #[bg=black,fg=color15] #{?session_attached,#[bg=red,fg=color15] ⚑ #{session_name} #[bg=black,fg=color15],}\"\n" +
488
+ "set-option -g window-status-current-style bg=red,fg=color15\n" +
489
+ "set-option -g window-status-bell-style bg=blue,fg=color15\n" +
490
+ "set-option -g window-status-activity-style bg=blue,fg=color15\n" +
491
+ "set-option -g message-style bg=blue,fg=color15\n" +
492
+ "set-hook -g -u pane-exited\n" +
493
+ "set-hook -g -u after-split-window\n" +
494
+ "bind-key g display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Version Control (lazygit) )▶\" claudex internal lazygit\n" +
495
+ "bind-key s display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Shell )▶\" claudex internal shell\n" +
496
+ "bind-key q display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Task Edit (ase task edit) )▶\" claudex internal ase-task-edit\n";
493
497
  }
498
+ conf = conf.replace(/@USER@/g, USER);
494
499
  const confFile = path.join(os.tmpdir(), `claudex-tmux-${process.pid}.conf`);
495
500
  fs.writeFileSync(confFile, conf, { mode: 0o600 });
496
501
  /* ensure the temp config is removed on normal exit AND on signal-driven
package/claudex.ts CHANGED
@@ -550,18 +550,23 @@ const actionUpdate = async (capsula: boolean): Promise<void> => {
550
550
  const actionInternalTmux = (args: string[]): never => {
551
551
  ensureTool("tmux")
552
552
  let conf = fs.readFileSync(path.join(basedir, "tmux.conf"), "utf8")
553
- conf = conf.replace(/@USER@/g, USER)
554
553
  if (isPsmux()) {
555
554
  /* psmux does not honor the reverse ANSI sequence in at least the statusline
556
- and no expansions at all in the pane border format */
557
- conf = conf.replace(/fg=default,bg=default,reverse/, "bg=black,fg=color15")
558
- .replaceAll(/(status.*?)fg=blue,reverse/g, "$1bg=blue,fg=color15")
559
- .replaceAll(/(status.*?)fg=blue/g, "$1bg=blue,fg=color15")
560
- .replaceAll(/(status.*?)fg=red/g, "$1bg=red,fg=color15")
561
- .replaceAll(/(status.*?)fg=default/g, "$1bg=black,fg=color15")
562
- .replaceAll(/#\[reverse\]/g, "")
563
- .replaceAll(/#\[noreverse\]/g, "")
555
+ and not some expansions in the pane border format */
556
+ conf +=
557
+ "set-option -g status-style bg=black,fg=color15\n" +
558
+ "set-option -g status-left \" claudeX #[bg=blue,fg=color15] ※ @USER@ #[bg=black,fg=color15] #{?session_attached,#[bg=red,fg=color15] ⚑ #{session_name} #[bg=black,fg=color15],}\"\n" +
559
+ "set-option -g window-status-current-style bg=red,fg=color15\n" +
560
+ "set-option -g window-status-bell-style bg=blue,fg=color15\n" +
561
+ "set-option -g window-status-activity-style bg=blue,fg=color15\n" +
562
+ "set-option -g message-style bg=blue,fg=color15\n" +
563
+ "set-hook -g -u pane-exited\n" +
564
+ "set-hook -g -u after-split-window\n" +
565
+ "bind-key g display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Version Control (lazygit) )▶\" claudex internal lazygit\n" +
566
+ "bind-key s display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Shell )▶\" claudex internal shell\n" +
567
+ "bind-key q display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Task Edit (ase task edit) )▶\" claudex internal ase-task-edit\n"
564
568
  }
569
+ conf = conf.replace(/@USER@/g, USER)
565
570
  const confFile = path.join(os.tmpdir(), `claudex-tmux-${process.pid}.conf`)
566
571
  fs.writeFileSync(confFile, conf, { mode: 0o600 })
567
572
  /* ensure the temp config is removed on normal exit AND on signal-driven
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rse/claudex",
3
3
  "publishConfig": { "access": "public" },
4
- "version": "0.9.23",
4
+ "version": "0.9.24",
5
5
  "description": "Claude Code eXtended",
6
6
  "type": "module",
7
7
  "keywords": [ "claude", "code", "extension", "wrapper" ],
package/tmux.conf CHANGED
@@ -199,9 +199,9 @@ set-option -as terminal-overrides ',*:Tc:sitm=\E[3m:ritm=\E[23m'
199
199
  bind-key c new-window -c "#{pane_current_path}" -n claude "claudex"
200
200
  bind-key | split-window -c "#{pane_current_path}" -h "claudex"
201
201
  bind-key - split-window -c "#{pane_current_path}" -v "claudex"
202
- bind-key g display-popup -E -w 95% -h 95% -T "─◀#[reverse] ⧉ Version Control (lazygit) #[noreverse]▶" "claudex internal lazygit"
203
- bind-key s display-popup -E -w 95% -h 95% -T "─◀#[reverse] ⧉ Shell #[noreverse]▶" "claudex internal shell"
204
- bind-key q display-popup -E -w 95% -h 95% -T "─◀#[reverse] ⧉ Task Edit (ase task edit) #[noreverse]▶" "claudex internal ase-task-edit"
202
+ bind-key g display-popup -E -w 95% -h 95% -T "─◀#[reverse] ⧉ Version Control (lazygit) #[noreverse]▶" claudex internal lazygit
203
+ bind-key s display-popup -E -w 95% -h 95% -T "─◀#[reverse] ⧉ Shell #[noreverse]▶" claudex internal shell
204
+ bind-key q display-popup -E -w 95% -h 95% -T "─◀#[reverse] ⧉ Task Edit (ase task edit) #[noreverse]▶" claudex internal ase-task-edit
205
205
  bind-key t send-keys "/ase:ase-meta-task "
206
206
  bind-key p send-keys "/ase:ase-meta-persona "
207
207