@rse/claudex 1.1.11 → 1.1.13

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,16 @@
2
2
  ChangeLog
3
3
  =========
4
4
 
5
+ 1.1.13 (2026-11-16)
6
+ -------------------
7
+
8
+ - BUGFIX: skip `ansi-recolor` wrapping (`-R`) in print mode (`-p`) or with non-TTY stdout
9
+
10
+ 1.1.12 (2026-11-15)
11
+ -------------------
12
+
13
+ - IMPROVEMENT: map ANSI color 68 to blue in `ansi-recolor` theme for Claude Code
14
+
5
15
  1.1.11 (2026-11-07)
6
16
  -------------------
7
17
 
package/ansi-recolor.conf CHANGED
@@ -74,6 +74,7 @@ claude:
74
74
  23/* -> blue/*
75
75
  65/* -> blue/*
76
76
  35/* -> blue/*
77
+ 68/* -> blue/*
77
78
 
78
79
  */37 -> rse-white/rse-blue-1
79
80
  */63 -> rse-white/rse-blue-1
package/claudex.js CHANGED
@@ -1040,8 +1040,12 @@ const actionDefault = async (opts, args) => {
1040
1040
  }
1041
1041
  }
1042
1042
  /* branch: plain claude -- execute Claude Code, optionally
1043
- wrapped with ansi-recolor when "-R" was given */
1044
- const recolor = opts.recolor === true;
1043
+ wrapped with ansi-recolor when "-R" was given (but never in
1044
+ non-interactive print mode or with a non-TTY stdout, as recoloring
1045
+ through a PTY would merge stdout/stderr and break piped output) */
1046
+ const recolor = opts.recolor === true
1047
+ && process.stdout.isTTY === true
1048
+ && !args.includes("-p") && !args.includes("--print");
1045
1049
  if (recolor)
1046
1050
  ensureTool("ansi-recolor");
1047
1051
  process.env.PATH = `${path.join(HOME, ".local/bin")}${path.delimiter}${process.env.PATH ?? ""}`;
package/claudex.ts CHANGED
@@ -1151,8 +1151,12 @@ const actionDefault = async (opts: TopOpts, args: string[]): Promise<never> => {
1151
1151
  }
1152
1152
 
1153
1153
  /* branch: plain claude -- execute Claude Code, optionally
1154
- wrapped with ansi-recolor when "-R" was given */
1154
+ wrapped with ansi-recolor when "-R" was given (but never in
1155
+ non-interactive print mode or with a non-TTY stdout, as recoloring
1156
+ through a PTY would merge stdout/stderr and break piped output) */
1155
1157
  const recolor = opts.recolor === true
1158
+ && process.stdout.isTTY === true
1159
+ && !args.includes("-p") && !args.includes("--print")
1156
1160
  if (recolor)
1157
1161
  ensureTool("ansi-recolor")
1158
1162
  process.env.PATH = `${path.join(HOME, ".local/bin")}${path.delimiter}${process.env.PATH ?? ""}`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rse/claudex",
3
3
  "publishConfig": { "access": "public" },
4
- "version": "1.1.11",
4
+ "version": "1.1.13",
5
5
  "description": "Claude Code eXtended",
6
6
  "type": "module",
7
7
  "keywords": [ "claude", "code", "extension", "wrapper" ],