claudish 3.7.5 → 3.7.6
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/dist/index.js +15 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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:
|
|
63262
|
+
shell: true
|
|
63249
63263
|
});
|
|
63250
63264
|
let output = "";
|
|
63251
63265
|
proc.stdout?.on("data", (data) => {
|