claudish 7.12.3 → 7.12.4

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 +19 -7
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -581,7 +581,7 @@ var init_onepassword_config = __esm(() => {
581
581
  });
582
582
 
583
583
  // src/version.ts
584
- var VERSION = "7.12.3";
584
+ var VERSION = "7.12.4";
585
585
 
586
586
  // src/logger.ts
587
587
  var exports_logger = {};
@@ -62374,6 +62374,7 @@ async function parseArgs(args) {
62374
62374
  config3.quiet = true;
62375
62375
  } else if (arg === "--verbose" || arg === "-v") {
62376
62376
  config3.quiet = false;
62377
+ config3._sawVerbose = true;
62377
62378
  } else if (arg === "--json") {
62378
62379
  config3.jsonOutput = true;
62379
62380
  } else if (arg === "--monitor") {
@@ -62572,6 +62573,9 @@ Usage: claudish --models --provider <slug>`);
62572
62573
  if (!config3._hasPositionalPrompt && !config3.stdin && !config3._hasPrintFlag) {
62573
62574
  config3.interactive = true;
62574
62575
  }
62576
+ if (config3._sawVerbose && !config3.interactive && !config3.claudeArgs.includes("--verbose") && !config3.claudeArgs.includes("-v")) {
62577
+ config3.claudeArgs.push("--verbose");
62578
+ }
62575
62579
  if (config3.monitor) {
62576
62580
  if (process.env.ANTHROPIC_API_KEY?.includes("placeholder")) {
62577
62581
  delete process.env.ANTHROPIC_API_KEY;
@@ -71331,7 +71335,9 @@ async function runClaudeWithProxy(config3, proxyUrl, onCleanup) {
71331
71335
  }
71332
71336
  claudeArgs.push(...config3.claudeArgs);
71333
71337
  } else {
71334
- claudeArgs.push("-p");
71338
+ if (!config3.claudeArgs.includes("-p") && !config3.claudeArgs.includes("--print")) {
71339
+ claudeArgs.push("-p");
71340
+ }
71335
71341
  if (config3.autoApprove) {
71336
71342
  claudeArgs.push("--dangerously-skip-permissions");
71337
71343
  }
@@ -71371,7 +71377,11 @@ async function runClaudeWithProxy(config3, proxyUrl, onCleanup) {
71371
71377
  }
71372
71378
  const log2 = (message) => {
71373
71379
  if (!config3.quiet) {
71374
- console.log(message);
71380
+ if (config3.interactive) {
71381
+ console.log(message);
71382
+ } else {
71383
+ console.error(message);
71384
+ }
71375
71385
  }
71376
71386
  };
71377
71387
  if (!config3.monitor && hasNativeAnthropicMapping(config3)) {
@@ -71448,7 +71458,7 @@ function setupSignalHandlers(proc, tempSettingsPath, quiet, onCleanup) {
71448
71458
  for (const signal of signals2) {
71449
71459
  process.on(signal, () => {
71450
71460
  if (!quiet) {
71451
- console.log(`
71461
+ console.error(`
71452
71462
  [claudish] Received ${signal}, shutting down...`);
71453
71463
  }
71454
71464
  proc.kill();
@@ -72336,7 +72346,7 @@ Team Status`);
72336
72346
  }
72337
72347
  const rawArgs = process.argv.slice(2);
72338
72348
  const explicitNoAutoApprove = rawArgs.includes("--no-auto-approve");
72339
- if (cliConfig.autoApprove && !explicitNoAutoApprove && !cliConfig.stdin) {
72349
+ if (cliConfig.autoApprove && !explicitNoAutoApprove && !cliConfig.stdin && cliConfig.interactive) {
72340
72350
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_profile_config(), exports_profile_config));
72341
72351
  try {
72342
72352
  const cfg = loadConfig2();
@@ -72503,13 +72513,15 @@ Team Status`);
72503
72513
  setDiagOutput2(null);
72504
72514
  diag.cleanup();
72505
72515
  if (!cliConfig.quiet) {
72506
- console.log(`
72516
+ const write = cliConfig.interactive ? console.log : console.error;
72517
+ write(`
72507
72518
  [claudish] Shutting down proxy server...`);
72508
72519
  }
72509
72520
  await proxy.shutdown();
72510
72521
  }
72511
72522
  if (!cliConfig.quiet) {
72512
- console.log(`[claudish] Done
72523
+ const write = cliConfig.interactive ? console.log : console.error;
72524
+ write(`[claudish] Done
72513
72525
  `);
72514
72526
  }
72515
72527
  const sessionLogPath = getAlwaysOnLogPath2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "7.12.3",
3
+ "version": "7.12.4",
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",
@@ -60,10 +60,10 @@
60
60
  "ai"
61
61
  ],
62
62
  "optionalDependencies": {
63
- "@claudish/magmux-darwin-arm64": "7.12.3",
64
- "@claudish/magmux-darwin-x64": "7.12.3",
65
- "@claudish/magmux-linux-arm64": "7.12.3",
66
- "@claudish/magmux-linux-x64": "7.12.3"
63
+ "@claudish/magmux-darwin-arm64": "7.12.4",
64
+ "@claudish/magmux-darwin-x64": "7.12.4",
65
+ "@claudish/magmux-linux-arm64": "7.12.4",
66
+ "@claudish/magmux-linux-x64": "7.12.4"
67
67
  },
68
68
  "author": "Jack Rudenko <i@madappgang.com>",
69
69
  "license": "MIT",