@rse/claudex 1.0.9 → 1.0.10

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
@@ -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 });
@@ -985,15 +996,6 @@ const actionDefault = (opts, args) => {
985
996
  ]
986
997
  }
987
998
  };
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
999
  if (opts.tmux) {
998
1000
  claudeSettings = deepmerge(claudeSettings, {
999
1001
  "env": {
@@ -1038,7 +1040,7 @@ const actionHelp = () => {
1038
1040
  " -C, --capsula execute Claude Code inside a Capsula sandbox container\n" +
1039
1041
  " -T, --tmux [session] wrap Claude Code in a Tmux terminal multiplexing session (optional session name)\n" +
1040
1042
  " -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" +
1043
+ " -A, --ase enable ASE-specific ASE_* environment variables and Tmux settings\n" +
1042
1044
  "\n" +
1043
1045
  "claudeX extension subcommands (honored before claude):\n" +
1044
1046
  " install install host-side or in-container dependencies\n" +
@@ -1126,7 +1128,7 @@ const main = async () => {
1126
1128
  .option("-C, --capsula", "execute Claude Code inside a Capsula sandbox container")
1127
1129
  .option("-T, --tmux [session]", "wrap Claude Code in a Tmux terminal multiplexing session (optional session name)")
1128
1130
  .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")
1131
+ .option("-A, --ase", "enable ASE-specific ASE_* environment variables and Tmux settings")
1130
1132
  .argument("[args...]", "arguments passed unparsed to Claude Code")
1131
1133
  .action((args, opts) => {
1132
1134
  actionDefault(opts, args);
package/claudex.ts CHANGED
@@ -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 })
@@ -1082,15 +1093,6 @@ const actionDefault = (opts: TopOpts, args: string[]): never => {
1082
1093
  ]
1083
1094
  }
1084
1095
  } 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
1096
  if (opts.tmux) {
1095
1097
  claudeSettings = deepmerge(claudeSettings, {
1096
1098
  "env": {
@@ -1139,7 +1141,7 @@ const actionHelp = (): never => {
1139
1141
  " -C, --capsula execute Claude Code inside a Capsula sandbox container\n" +
1140
1142
  " -T, --tmux [session] wrap Claude Code in a Tmux terminal multiplexing session (optional session name)\n" +
1141
1143
  " -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" +
1144
+ " -A, --ase enable ASE-specific ASE_* environment variables and Tmux settings\n" +
1143
1145
  "\n" +
1144
1146
  "claudeX extension subcommands (honored before claude):\n" +
1145
1147
  " install install host-side or in-container dependencies\n" +
@@ -1234,7 +1236,7 @@ const main = async (): Promise<void> => {
1234
1236
  .option("-C, --capsula", "execute Claude Code inside a Capsula sandbox container")
1235
1237
  .option("-T, --tmux [session]", "wrap Claude Code in a Tmux terminal multiplexing session (optional session name)")
1236
1238
  .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")
1239
+ .option("-A, --ase", "enable ASE-specific ASE_* environment variables and Tmux settings")
1238
1240
  .argument("[args...]", "arguments passed unparsed to Claude Code")
1239
1241
  .action((args: string[], opts: TopOpts) => {
1240
1242
  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.10",
5
5
  "description": "Claude Code eXtended",
6
6
  "type": "module",
7
7
  "keywords": [ "claude", "code", "extension", "wrapper" ],