claudish 3.7.5 → 3.7.7

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 (2) hide show
  1. package/dist/index.js +16 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -62664,7 +62664,7 @@ function printAvailableModelsJSON() {
62664
62664
  console.log(JSON.stringify(output, null, 2));
62665
62665
  }
62666
62666
  }
62667
- var __filename6, __dirname6, VERSION = "3.5.0", CACHE_MAX_AGE_DAYS3 = 2, MODELS_JSON_PATH, ALL_MODELS_JSON_PATH2;
62667
+ var __filename6, __dirname6, VERSION = "3.7.7", CACHE_MAX_AGE_DAYS3 = 2, MODELS_JSON_PATH, ALL_MODELS_JSON_PATH2;
62668
62668
  var init_cli = __esm(() => {
62669
62669
  init_dist3();
62670
62670
  init_model_loader2();
@@ -63241,11 +63241,25 @@ async function findClaudeBinary() {
63241
63241
  if (existsSync11(localPath)) {
63242
63242
  return localPath;
63243
63243
  }
63244
+ if (!isWindows3) {
63245
+ const commonPaths = [
63246
+ "/usr/local/bin/claude",
63247
+ "/opt/homebrew/bin/claude",
63248
+ join19(home, ".npm-global/bin/claude"),
63249
+ join19(home, ".local/bin/claude"),
63250
+ join19(home, "node_modules/.bin/claude")
63251
+ ];
63252
+ for (const path of commonPaths) {
63253
+ if (existsSync11(path)) {
63254
+ return path;
63255
+ }
63256
+ }
63257
+ }
63244
63258
  try {
63245
63259
  const command = isWindows3 ? "where" : "which";
63246
63260
  const proc = spawn(command, ["claude"], {
63247
63261
  stdio: "pipe",
63248
- shell: isWindows3
63262
+ shell: true
63249
63263
  });
63250
63264
  let output = "";
63251
63265
  proc.stdout?.on("data", (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "3.7.5",
3
+ "version": "3.7.7",
4
4
  "description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",