@rse/claudex 1.0.9 → 1.0.11

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
+ 1.0.10 (2026-07-11)
6
+ -------------------
7
+
8
+ - IMPROVEMENT: provide statusline via `ase setup statusline`
9
+ - IMPROVEMENT: add more usage examples to README
10
+ - BUGFIX: fix `CLAUDE_MODEL` passing into tmux session
11
+
5
12
  1.0.9 (2026-06-15)
6
13
  ------------------
7
14
 
package/README.md CHANGED
@@ -81,10 +81,15 @@ $ claudex
81
81
  ```
82
82
 
83
83
  ```sh
84
- # example: run Claude Code with Gemma 4 31B MTP under Ollama
84
+ # example: run Claude Code with Gemma 4 31B MTP under local Ollama
85
85
  $ CLAUDE_MODEL="ollama:/gemma4:31b-coding-mtp-bf16?context=262K" claudex -T -R -A
86
86
  ```
87
87
 
88
+ ```sh
89
+ # example: run Claude Code with Google Gemini 3.5 Flash via remote OpenRouter
90
+ $ CLAUDE_MODEL="openrouter:google/gemini-3.5-flash?context=1000000" claudex -T -R -A
91
+ ```
92
+
88
93
  See Also
89
94
  --------
90
95
 
@@ -6,11 +6,6 @@
6
6
  "DISABLE_ERROR_REPORTING": "1",
7
7
  "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
8
8
  },
9
- "statusLine": {
10
- "type": "command",
11
- "command": "ase statusline -w 0 -m 2 '<blue>%u</blue> <red>%p</red> <black>%T</black> %s' '%m %e %t' '%P %c'",
12
- "padding": 0
13
- },
14
9
  "verbose": false,
15
10
  "teammateMode": "tmux",
16
11
  "preferences": {
package/claudex.js CHANGED
@@ -265,7 +265,7 @@ const actionInstall = async (capsula) => {
265
265
  info("install Claude Code");
266
266
  await self("internal", "capsula", "bash", "-c", `PATH="${HOME}/.local/bin:$PATH"; curl -kfsSL https://claude.ai/install.sh | bash`);
267
267
  info("install ANSI-Recolor");
268
- await self("internal", "capsula", "-s", "sudo", "-E", "npm", "install", "-y", "-g", "ansi-recolor");
268
+ await self("internal", "capsula", "-s", "sudo", "-E", "npm", "install", "-y", "-g", "--allow-scripts=node-pty,tty-attr", "ansi-recolor");
269
269
  info("install TypeScript LS");
270
270
  await self("internal", "capsula", "-s", "sudo", "-E", "npm", "install", "-y", "-g", "typescript-language-server");
271
271
  info("install CodeBurn");
@@ -339,9 +339,9 @@ const actionInstall = async (capsula) => {
339
339
  ensureTool("ansi-recolor", {
340
340
  hint: "https://github.com/rse/ansi-recolor",
341
341
  install: {
342
- "windows:*": "npm install -g ansi-recolor",
343
- "macos:*": "sudo npm install -g ansi-recolor",
344
- "linux:*": "sudo npm install -g ansi-recolor"
342
+ "windows:*": "npm install -g --allow-scripts=node-pty,tty-attr ansi-recolor",
343
+ "macos:*": "sudo npm install -g --allow-scripts=node-pty,tty-attr ansi-recolor",
344
+ "linux:*": "sudo npm install -g --allow-scripts=node-pty,tty-attr ansi-recolor"
345
345
  }
346
346
  });
347
347
  info("install TypeScript-Language-Server");
@@ -540,6 +540,17 @@ const actionInternalTmux = (opts, args) => {
540
540
  "bind-key s display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Shell )▶\" claudex internal shell\n" +
541
541
  (opts.ase ? "bind-key q display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Task Edit (ase task edit) )▶\" claudex internal ase-task-edit\n" : "");
542
542
  }
543
+ /* propagate model-selection environment variables into the tmux
544
+ server's global environment, so that they survive into every pane
545
+ (tmux does not carry arbitrary variables across the client/server
546
+ boundary -- only those listed in "update-environment" -- hence the
547
+ externally set CLAUDE_MODEL/OPENROUTER_API_KEY would otherwise be
548
+ lost before actionDefault reads them) */
549
+ for (const name of ["CLAUDE_MODEL", "OPENROUTER_API_KEY"]) {
550
+ const val = process.env[name];
551
+ if (val !== undefined && val !== "")
552
+ conf += `set-environment -g ${name} ${shQ.quote([val])}\n`;
553
+ }
543
554
  conf = conf.replace(/@USER@/g, USER);
544
555
  const confFile = path.join(os.tmpdir(), `claudex-tmux-${process.pid}.conf`);
545
556
  fs.writeFileSync(confFile, conf, { mode: 0o600 });
@@ -903,6 +914,7 @@ const actionDefault = (opts, args) => {
903
914
  env.CLAUDE_CODE_AUTO_COMPACT_WINDOW = context;
904
915
  env.DISABLE_LOGIN_COMMAND = "1";
905
916
  env.DISABLE_LOGOUT_COMMAND = "1";
917
+ env.ENABLE_TOOL_SEARCH = "auto";
906
918
  }
907
919
  else if (/^openrouter:/.test(claudeModel)) {
908
920
  /* parse openrouter:<model>[?[context=<size>],[capabilities=<list>]] */
@@ -939,6 +951,7 @@ const actionDefault = (opts, args) => {
939
951
  env.CLAUDE_CODE_AUTO_COMPACT_WINDOW = context;
940
952
  env.DISABLE_LOGIN_COMMAND = "1";
941
953
  env.DISABLE_LOGOUT_COMMAND = "1";
954
+ env.ENABLE_TOOL_SEARCH = "auto";
942
955
  }
943
956
  else if (claudeModel !== "")
944
957
  throw new Error(`invalid CLAUDE_MODEL "${claudeModel}" ` +
@@ -985,15 +998,6 @@ const actionDefault = (opts, args) => {
985
998
  ]
986
999
  }
987
1000
  };
988
- if (opts.ase) {
989
- claudeSettings = deepmerge(claudeSettings, {
990
- "statusLine": {
991
- "type": "command",
992
- "command": "ase statusline -w 0 -m 2 '<blue>%u</blue> <red>%p</red> <black>%T</black> %s' '%m %e %t' '%P %c'",
993
- "padding": 0
994
- }
995
- });
996
- }
997
1001
  if (opts.tmux) {
998
1002
  claudeSettings = deepmerge(claudeSettings, {
999
1003
  "env": {
@@ -1038,7 +1042,7 @@ const actionHelp = () => {
1038
1042
  " -C, --capsula execute Claude Code inside a Capsula sandbox container\n" +
1039
1043
  " -T, --tmux [session] wrap Claude Code in a Tmux terminal multiplexing session (optional session name)\n" +
1040
1044
  " -R, --recolor wrap Claude Code with ANSI recoloring for improved theming\n" +
1041
- " -A, --ase enable ASE-specific Claude Code statusline and ASE_* environment variables\n" +
1045
+ " -A, --ase enable ASE-specific ASE_* environment variables and Tmux settings\n" +
1042
1046
  "\n" +
1043
1047
  "claudeX extension subcommands (honored before claude):\n" +
1044
1048
  " install install host-side or in-container dependencies\n" +
@@ -1126,7 +1130,7 @@ const main = async () => {
1126
1130
  .option("-C, --capsula", "execute Claude Code inside a Capsula sandbox container")
1127
1131
  .option("-T, --tmux [session]", "wrap Claude Code in a Tmux terminal multiplexing session (optional session name)")
1128
1132
  .option("-R, --recolor", "wrap Claude Code with ANSI recoloring for improved theming")
1129
- .option("-A, --ase", "enable ASE-specific Claude Code statusline and ASE_* environment variables")
1133
+ .option("-A, --ase", "enable ASE-specific ASE_* environment variables and Tmux settings")
1130
1134
  .argument("[args...]", "arguments passed unparsed to Claude Code")
1131
1135
  .action((args, opts) => {
1132
1136
  actionDefault(opts, args);
package/claudex.ts CHANGED
@@ -305,7 +305,7 @@ const actionInstall = async (capsula: boolean): Promise<void> => {
305
305
  await self("internal", "capsula", "bash", "-c", `PATH="${HOME}/.local/bin:$PATH"; curl -kfsSL https://claude.ai/install.sh | bash`)
306
306
 
307
307
  info("install ANSI-Recolor")
308
- await self("internal", "capsula", "-s", "sudo", "-E", "npm", "install", "-y", "-g", "ansi-recolor")
308
+ await self("internal", "capsula", "-s", "sudo", "-E", "npm", "install", "-y", "-g", "--allow-scripts=node-pty,tty-attr", "ansi-recolor")
309
309
 
310
310
  info("install TypeScript LS")
311
311
  await self("internal", "capsula", "-s", "sudo", "-E", "npm", "install", "-y", "-g", "typescript-language-server")
@@ -391,9 +391,9 @@ const actionInstall = async (capsula: boolean): Promise<void> => {
391
391
  ensureTool("ansi-recolor", {
392
392
  hint: "https://github.com/rse/ansi-recolor",
393
393
  install: {
394
- "windows:*": "npm install -g ansi-recolor",
395
- "macos:*": "sudo npm install -g ansi-recolor",
396
- "linux:*": "sudo npm install -g ansi-recolor"
394
+ "windows:*": "npm install -g --allow-scripts=node-pty,tty-attr ansi-recolor",
395
+ "macos:*": "sudo npm install -g --allow-scripts=node-pty,tty-attr ansi-recolor",
396
+ "linux:*": "sudo npm install -g --allow-scripts=node-pty,tty-attr ansi-recolor"
397
397
  }
398
398
  })
399
399
 
@@ -619,6 +619,17 @@ const actionInternalTmux = (opts: TopOpts, args: string[]): never => {
619
619
  "bind-key s display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Shell )▶\" claudex internal shell\n" +
620
620
  (opts.ase ? "bind-key q display-popup -E -w 95% -h 95% -T \"─◀( ⧉ Task Edit (ase task edit) )▶\" claudex internal ase-task-edit\n" : "")
621
621
  }
622
+ /* propagate model-selection environment variables into the tmux
623
+ server's global environment, so that they survive into every pane
624
+ (tmux does not carry arbitrary variables across the client/server
625
+ boundary -- only those listed in "update-environment" -- hence the
626
+ externally set CLAUDE_MODEL/OPENROUTER_API_KEY would otherwise be
627
+ lost before actionDefault reads them) */
628
+ for (const name of [ "CLAUDE_MODEL", "OPENROUTER_API_KEY" ]) {
629
+ const val = process.env[name]
630
+ if (val !== undefined && val !== "")
631
+ conf += `set-environment -g ${name} ${shQ.quote([ val ])}\n`
632
+ }
622
633
  conf = conf.replace(/@USER@/g, USER)
623
634
  const confFile = path.join(os.tmpdir(), `claudex-tmux-${process.pid}.conf`)
624
635
  fs.writeFileSync(confFile, conf, { mode: 0o600 })
@@ -999,6 +1010,7 @@ const actionDefault = (opts: TopOpts, args: string[]): never => {
999
1010
  env.CLAUDE_CODE_AUTO_COMPACT_WINDOW = context
1000
1011
  env.DISABLE_LOGIN_COMMAND = "1"
1001
1012
  env.DISABLE_LOGOUT_COMMAND = "1"
1013
+ env.ENABLE_TOOL_SEARCH = "auto"
1002
1014
  }
1003
1015
  else if (/^openrouter:/.test(claudeModel)) {
1004
1016
  /* parse openrouter:<model>[?[context=<size>],[capabilities=<list>]] */
@@ -1034,6 +1046,7 @@ const actionDefault = (opts: TopOpts, args: string[]): never => {
1034
1046
  env.CLAUDE_CODE_AUTO_COMPACT_WINDOW = context
1035
1047
  env.DISABLE_LOGIN_COMMAND = "1"
1036
1048
  env.DISABLE_LOGOUT_COMMAND = "1"
1049
+ env.ENABLE_TOOL_SEARCH = "auto"
1037
1050
  }
1038
1051
  else if (claudeModel !== "")
1039
1052
  throw new Error(`invalid CLAUDE_MODEL "${claudeModel}" ` +
@@ -1082,15 +1095,6 @@ const actionDefault = (opts: TopOpts, args: string[]): never => {
1082
1095
  ]
1083
1096
  }
1084
1097
  } as Record<string, unknown>
1085
- if (opts.ase) {
1086
- claudeSettings = deepmerge(claudeSettings, {
1087
- "statusLine": {
1088
- "type": "command",
1089
- "command": "ase statusline -w 0 -m 2 '<blue>%u</blue> <red>%p</red> <black>%T</black> %s' '%m %e %t' '%P %c'",
1090
- "padding": 0
1091
- }
1092
- })
1093
- }
1094
1098
  if (opts.tmux) {
1095
1099
  claudeSettings = deepmerge(claudeSettings, {
1096
1100
  "env": {
@@ -1139,7 +1143,7 @@ const actionHelp = (): never => {
1139
1143
  " -C, --capsula execute Claude Code inside a Capsula sandbox container\n" +
1140
1144
  " -T, --tmux [session] wrap Claude Code in a Tmux terminal multiplexing session (optional session name)\n" +
1141
1145
  " -R, --recolor wrap Claude Code with ANSI recoloring for improved theming\n" +
1142
- " -A, --ase enable ASE-specific Claude Code statusline and ASE_* environment variables\n" +
1146
+ " -A, --ase enable ASE-specific ASE_* environment variables and Tmux settings\n" +
1143
1147
  "\n" +
1144
1148
  "claudeX extension subcommands (honored before claude):\n" +
1145
1149
  " install install host-side or in-container dependencies\n" +
@@ -1234,7 +1238,7 @@ const main = async (): Promise<void> => {
1234
1238
  .option("-C, --capsula", "execute Claude Code inside a Capsula sandbox container")
1235
1239
  .option("-T, --tmux [session]", "wrap Claude Code in a Tmux terminal multiplexing session (optional session name)")
1236
1240
  .option("-R, --recolor", "wrap Claude Code with ANSI recoloring for improved theming")
1237
- .option("-A, --ase", "enable ASE-specific Claude Code statusline and ASE_* environment variables")
1241
+ .option("-A, --ase", "enable ASE-specific ASE_* environment variables and Tmux settings")
1238
1242
  .argument("[args...]", "arguments passed unparsed to Claude Code")
1239
1243
  .action((args: string[], opts: TopOpts) => {
1240
1244
  actionDefault(opts, args)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rse/claudex",
3
3
  "publishConfig": { "access": "public" },
4
- "version": "1.0.9",
4
+ "version": "1.0.11",
5
5
  "description": "Claude Code eXtended",
6
6
  "type": "module",
7
7
  "keywords": [ "claude", "code", "extension", "wrapper" ],
@@ -17,28 +17,28 @@
17
17
  "bin": { "claudex": "claudex.js" },
18
18
  "dependencies": {
19
19
  "which": "7.0.0",
20
- "execa": "9.6.1",
20
+ "execa": "10.0.0",
21
21
  "chalk": "5.6.2",
22
22
  "commander": "15.0.0",
23
23
  "deepmerge": "4.3.1",
24
- "shescape": "2.1.12",
25
- "shell-quote": "1.8.4"
24
+ "shescape": "3.0.1",
25
+ "shell-quote": "1.10.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "6.0.3",
29
- "@types/node": "25.9.1",
29
+ "@types/node": "26.1.1",
30
30
  "@types/which": "3.0.4",
31
31
  "@types/shell-quote": "1.7.5",
32
32
 
33
- "@rse/stx": "1.1.5",
34
- "eslint": "9.39.4",
35
- "@eslint/js": "9.39.4",
36
- "typescript-eslint": "8.60.0",
37
- "@typescript-eslint/parser": "8.60.0",
33
+ "@rse/stx": "1.1.6",
34
+ "eslint": "9.39.5",
35
+ "@eslint/js": "9.39.5",
36
+ "typescript-eslint": "8.65.0",
37
+ "@typescript-eslint/parser": "8.65.0",
38
38
  "eslint-plugin-promise": "7.3.0",
39
39
  "eslint-plugin-import": "2.32.0",
40
40
  "neostandard": "0.13.0",
41
- "globals": "17.6.0",
41
+ "globals": "17.7.0",
42
42
  "shx": "0.4.0"
43
43
  },
44
44
  "engines": {