@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 +5 -0
- package/claudex.js +6 -4
- package/claudex.ts +6 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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 (
|
|
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
|
-
|
|
919
|
+
env.ASE_TERM_WIDTH = `${width}`;
|
|
920
920
|
}
|
|
921
|
-
if (
|
|
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
|
-
|
|
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 (
|
|
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
|
-
|
|
1017
|
+
env.ASE_TERM_WIDTH = `${width}`
|
|
1018
1018
|
}
|
|
1019
|
-
if (
|
|
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
|
-
|
|
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 */
|