@rse/claudex 0.9.17 → 0.9.19

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
+ 0.9.18 (2026-05-09)
6
+ -------------------
7
+
8
+ - BUGFIX: try to workaround problems again in self-reference under Windows
9
+
10
+ 0.9.18 (2026-05-09)
11
+ -------------------
12
+
13
+ - BUGFIX: try to workaround problems in self-reference under Windows
14
+
5
15
  0.9.17 (2026-05-09)
6
16
  -------------------
7
17
 
package/claudex.js CHANGED
@@ -29,7 +29,7 @@ const basedir = findBaseDir();
29
29
  next to the compiled JS, since the JS itself is not executable
30
30
  and embedded shell strings (docker/tmux) need a runnable command */
31
31
  const selfPath = path.join(basedir, "claudex");
32
- const selfPathJS = process.argv[1] ?? path.join(basedir, "claudex.js");
32
+ const selfPathJS = path.join(basedir, "claudex.js");
33
33
  /* helper for displaying info messages */
34
34
  const info = (msg) => {
35
35
  process.stderr.write(`${chalk.blue("claudex: ")}${chalk.blue.bold("INFO:")}${chalk.blue(` ${msg}`)}\n`);
@@ -263,7 +263,7 @@ const actionInstall = async (capsula) => {
263
263
  info("install Tmux");
264
264
  ensureTool("tmux", {
265
265
  hint: platform.match(/^windows:/) ?
266
- "https://github.com/psmux/psmux" :
266
+ "https://github.com/psmux/psmux/" :
267
267
  "https://github.com/tmux/tmux/",
268
268
  install: {
269
269
  "windows:winget": "winget install --accept-package-agreements --accept-source-agreements --silent -e psmux",
@@ -671,8 +671,8 @@ const actionDefault = (opts, args) => {
671
671
  }
672
672
  else {
673
673
  /* enter/start plain tmux */
674
- return execInherit(selfPath, [
675
- "internal", "tmux", "new-session", "-A", "-s", session, "-n", "claude", inPane
674
+ return execInherit(process.execPath, [
675
+ selfPathJS, "internal", "tmux", "new-session", "-A", "-s", session, "-n", "claude", inPane
676
676
  ]);
677
677
  }
678
678
  }
package/claudex.ts CHANGED
@@ -35,7 +35,7 @@ const basedir = findBaseDir()
35
35
  next to the compiled JS, since the JS itself is not executable
36
36
  and embedded shell strings (docker/tmux) need a runnable command */
37
37
  const selfPath = path.join(basedir, "claudex")
38
- const selfPathJS = process.argv[1] ?? path.join(basedir, "claudex.js")
38
+ const selfPathJS = path.join(basedir, "claudex.js")
39
39
 
40
40
  /* helper for displaying info messages */
41
41
  const info = (msg: string): void => {
@@ -310,7 +310,7 @@ const actionInstall = async (capsula: boolean): Promise<void> => {
310
310
  info("install Tmux")
311
311
  ensureTool("tmux", {
312
312
  hint: platform.match(/^windows:/) ?
313
- "https://github.com/psmux/psmux" :
313
+ "https://github.com/psmux/psmux/" :
314
314
  "https://github.com/tmux/tmux/",
315
315
  install: {
316
316
  "windows:winget": "winget install --accept-package-agreements --accept-source-agreements --silent -e psmux",
@@ -758,8 +758,8 @@ const actionDefault = (opts: TopOpts, args: string[]): never => {
758
758
  }
759
759
  else {
760
760
  /* enter/start plain tmux */
761
- return execInherit(selfPath, [
762
- "internal", "tmux", "new-session", "-A", "-s", session, "-n", "claude", inPane
761
+ return execInherit(process.execPath, [
762
+ selfPathJS, "internal", "tmux", "new-session", "-A", "-s", session, "-n", "claude", inPane
763
763
  ])
764
764
  }
765
765
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rse/claudex",
3
3
  "publishConfig": { "access": "public" },
4
- "version": "0.9.17",
4
+ "version": "0.9.19",
5
5
  "description": "Claude Code eXtended",
6
6
  "type": "module",
7
7
  "keywords": [ "claude", "code", "extension", "wrapper" ],
@@ -43,6 +43,7 @@
43
43
  "node": ">=22.0.0"
44
44
  },
45
45
  "scripts": {
46
+ "prepublishOnly": "npm start build",
46
47
  "start": "stx -v 4 -c stx.conf"
47
48
  }
48
49
  }