@rse/claudex 1.0.3 → 1.0.4

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,11 @@
2
2
  ChangeLog
3
3
  =========
4
4
 
5
+ 1.0.4 (2026-05-10)
6
+ ------------------
7
+
8
+ - IMPROVEMENT: set `ASE_HEADLESS=true` when option -A/--ase and -p/--print are given
9
+
5
10
  1.0.3 (2026-05-10)
6
11
  ------------------
7
12
 
package/claudex.js CHANGED
@@ -909,24 +909,26 @@ const actionDefault = (opts, args) => {
909
909
  }
910
910
  /* override ASE configuration (for its diagram rendering) */
911
911
  if (opts.ase) {
912
- if (process.env.ASE_TERM_WIDTH === undefined) {
912
+ if (env.ASE_TERM_WIDTH === undefined) {
913
913
  let width = 0;
914
914
  if (process.stdout.isTTY) {
915
915
  const cols = process.stdout.columns;
916
916
  if (typeof cols === "number" && cols > 0)
917
917
  width = cols;
918
918
  }
919
- process.env.ASE_TERM_WIDTH = `${width}`;
919
+ env.ASE_TERM_WIDTH = `${width}`;
920
920
  }
921
- if (process.env.ASE_TERM_COLORS === undefined) {
921
+ if (env.ASE_TERM_COLORS === undefined) {
922
922
  let colorMode = "none";
923
923
  const depth = process.stdout.getColorDepth();
924
924
  if (depth >= 8)
925
925
  colorMode = "ansi256";
926
926
  else if (depth >= 4)
927
927
  colorMode = "ansi16";
928
- process.env.ASE_TERM_COLORS = `${colorMode}`;
928
+ env.ASE_TERM_COLORS = `${colorMode}`;
929
929
  }
930
+ if (args.includes("-p") || args.includes("--print"))
931
+ env.ASE_HEADLESS = "true";
930
932
  }
931
933
  /* determine Claude Code settings */
932
934
  let claudeSettings = {
package/claudex.ts CHANGED
@@ -1007,24 +1007,26 @@ const actionDefault = (opts: TopOpts, args: string[]): never => {
1007
1007
 
1008
1008
  /* override ASE configuration (for its diagram rendering) */
1009
1009
  if (opts.ase) {
1010
- if (process.env.ASE_TERM_WIDTH === undefined) {
1010
+ if (env.ASE_TERM_WIDTH === undefined) {
1011
1011
  let width = 0
1012
1012
  if (process.stdout.isTTY) {
1013
1013
  const cols = process.stdout.columns
1014
1014
  if (typeof cols === "number" && cols > 0)
1015
1015
  width = cols
1016
1016
  }
1017
- process.env.ASE_TERM_WIDTH = `${width}`
1017
+ env.ASE_TERM_WIDTH = `${width}`
1018
1018
  }
1019
- if (process.env.ASE_TERM_COLORS === undefined) {
1019
+ if (env.ASE_TERM_COLORS === undefined) {
1020
1020
  let colorMode = "none"
1021
1021
  const depth = process.stdout.getColorDepth()
1022
1022
  if (depth >= 8)
1023
1023
  colorMode = "ansi256"
1024
1024
  else if (depth >= 4)
1025
1025
  colorMode = "ansi16"
1026
- process.env.ASE_TERM_COLORS = `${colorMode}`
1026
+ env.ASE_TERM_COLORS = `${colorMode}`
1027
1027
  }
1028
+ if (args.includes("-p") || args.includes("--print"))
1029
+ env.ASE_HEADLESS = "true"
1028
1030
  }
1029
1031
 
1030
1032
  /* determine Claude Code settings */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rse/claudex",
3
3
  "publishConfig": { "access": "public" },
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "description": "Claude Code eXtended",
6
6
  "type": "module",
7
7
  "keywords": [ "claude", "code", "extension", "wrapper" ],