claudish 3.7.4 → 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 +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62360,6 +62360,7 @@ ENVIRONMENT VARIABLES:
|
|
|
62360
62360
|
GLM_API_KEY Alias for ZHIPU_API_KEY
|
|
62361
62361
|
OLLAMA_API_KEY OllamaCloud API key (for oc/ prefix)
|
|
62362
62362
|
ANTHROPIC_API_KEY Placeholder (prevents Claude Code dialog)
|
|
62363
|
+
ANTHROPIC_AUTH_TOKEN Placeholder (prevents Claude Code login screen)
|
|
62363
62364
|
|
|
62364
62365
|
Custom endpoints:
|
|
62365
62366
|
GEMINI_BASE_URL Custom Gemini endpoint
|
|
@@ -63165,8 +63166,10 @@ async function runClaudeWithProxy(config3, proxyUrl) {
|
|
|
63165
63166
|
};
|
|
63166
63167
|
if (config3.monitor) {
|
|
63167
63168
|
delete env.ANTHROPIC_API_KEY;
|
|
63169
|
+
delete env.ANTHROPIC_AUTH_TOKEN;
|
|
63168
63170
|
} else {
|
|
63169
63171
|
env.ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY || "sk-ant-api03-placeholder-not-used-proxy-handles-auth-with-openrouter-key-xxxxxxxxxxxxxxxxxxxxx";
|
|
63172
|
+
env.ANTHROPIC_AUTH_TOKEN = process.env.ANTHROPIC_AUTH_TOKEN || "placeholder-token-not-used-proxy-handles-auth";
|
|
63170
63173
|
}
|
|
63171
63174
|
const log2 = (message) => {
|
|
63172
63175
|
if (!config3.quiet) {
|
|
@@ -63238,11 +63241,25 @@ async function findClaudeBinary() {
|
|
|
63238
63241
|
if (existsSync11(localPath)) {
|
|
63239
63242
|
return localPath;
|
|
63240
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
|
+
}
|
|
63241
63258
|
try {
|
|
63242
63259
|
const command = isWindows3 ? "where" : "which";
|
|
63243
63260
|
const proc = spawn(command, ["claude"], {
|
|
63244
63261
|
stdio: "pipe",
|
|
63245
|
-
shell:
|
|
63262
|
+
shell: true
|
|
63246
63263
|
});
|
|
63247
63264
|
let output = "";
|
|
63248
63265
|
proc.stdout?.on("data", (data) => {
|