claudish 7.8.4 → 7.11.0

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.
Files changed (3) hide show
  1. package/bin/claudish.cjs +4 -4
  2. package/dist/index.js +40386 -39570
  3. package/package.json +5 -5
package/bin/claudish.cjs CHANGED
@@ -4,8 +4,8 @@
4
4
  // Claudish uses Bun-specific APIs (bun:ffi for TUI, Bun.spawn, etc.)
5
5
  // so it cannot run under Node.js directly.
6
6
 
7
- const { execFileSync, execSync } = require("child_process");
8
- const { resolve } = require("path");
7
+ const { execFileSync, execSync } = require("node:child_process");
8
+ const { resolve } = require("node:path");
9
9
 
10
10
  function findBun() {
11
11
  try {
@@ -14,7 +14,7 @@ function findBun() {
14
14
  } catch {}
15
15
  // Common install locations
16
16
  const candidates = [
17
- process.env.HOME + "/.bun/bin/bun",
17
+ `${process.env.HOME}/.bun/bin/bun`,
18
18
  "/usr/local/bin/bun",
19
19
  "/opt/homebrew/bin/bun",
20
20
  ];
@@ -44,7 +44,7 @@ Learn more: https://bun.sh`);
44
44
  // Exec into bun with the real entry point
45
45
  const entry = resolve(__dirname, "..", "dist", "index.js");
46
46
  try {
47
- const result = require("child_process").spawnSync(bun, [entry, ...process.argv.slice(2)], {
47
+ const result = require("node:child_process").spawnSync(bun, [entry, ...process.argv.slice(2)], {
48
48
  stdio: "inherit",
49
49
  env: process.env,
50
50
  });