claudish 1.7.0 → 1.7.1

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 +11 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -331,6 +331,13 @@ function getAvailableModels() {
331
331
  }
332
332
 
333
333
  // src/cli.ts
334
+ import { readFileSync as readFileSync2 } from "node:fs";
335
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
336
+ import { dirname as dirname2, join as join3 } from "node:path";
337
+ var __filename3 = fileURLToPath2(import.meta.url);
338
+ var __dirname3 = dirname2(__filename3);
339
+ var packageJson = JSON.parse(readFileSync2(join3(__dirname3, "../package.json"), "utf-8"));
340
+ var VERSION = packageJson.version;
334
341
  function parseArgs(args) {
335
342
  const config = {
336
343
  model: undefined,
@@ -472,7 +479,7 @@ function parseArgs(args) {
472
479
  return config;
473
480
  }
474
481
  function printVersion() {
475
- console.log("claudish version 1.3.1");
482
+ console.log(`claudish version ${VERSION}`);
476
483
  }
477
484
  function printHelp() {
478
485
  console.log(`
@@ -736,7 +743,7 @@ async function selectModelInteractively() {
736
743
 
737
744
  // src/logger.ts
738
745
  import { writeFileSync as writeFileSync2, appendFile, existsSync as existsSync2, mkdirSync } from "fs";
739
- import { join as join3 } from "path";
746
+ import { join as join4 } from "path";
740
747
  var logFilePath = null;
741
748
  var logLevel = "info";
742
749
  var logBuffer = [];
@@ -781,12 +788,12 @@ function initLogger(debugMode, level = "info") {
781
788
  return;
782
789
  }
783
790
  logLevel = level;
784
- const logsDir = join3(process.cwd(), "logs");
791
+ const logsDir = join4(process.cwd(), "logs");
785
792
  if (!existsSync2(logsDir)) {
786
793
  mkdirSync(logsDir, { recursive: true });
787
794
  }
788
795
  const timestamp = new Date().toISOString().replace(/[:.]/g, "-").split("T").join("_").slice(0, -5);
789
- logFilePath = join3(logsDir, `claudish_${timestamp}.log`);
796
+ logFilePath = join4(logsDir, `claudish_${timestamp}.log`);
790
797
  writeFileSync2(logFilePath, `Claudish Debug Log - ${new Date().toISOString()}
791
798
  Log Level: ${level}
792
799
  ${"=".repeat(80)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "CLI tool to run Claude Code with any OpenRouter model (Grok, GPT-5, MiniMax, etc.) via local Anthropic API-compatible proxy",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",