claudish 6.3.0 → 6.3.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.
package/dist/index.js CHANGED
@@ -37103,7 +37103,7 @@ async function fetchGLMCodingModels() {
37103
37103
  return [];
37104
37104
  }
37105
37105
  }
37106
- var __filename4, __dirname4, VERSION = "6.3.0", CACHE_MAX_AGE_DAYS2 = 2, CLAUDISH_CACHE_DIR2, BUNDLED_MODELS_PATH, CACHED_MODELS_PATH, ALL_MODELS_JSON_PATH;
37106
+ var __filename4, __dirname4, VERSION = "6.3.1", CACHE_MAX_AGE_DAYS2 = 2, CLAUDISH_CACHE_DIR2, BUNDLED_MODELS_PATH, CACHED_MODELS_PATH, ALL_MODELS_JSON_PATH;
37107
37107
  var init_cli = __esm(() => {
37108
37108
  init_config();
37109
37109
  init_model_loader();
@@ -101111,7 +101111,7 @@ __export(exports_pty_diag_runner, {
101111
101111
  MtmDiagRunner: () => MtmDiagRunner
101112
101112
  });
101113
101113
  import { spawn as spawn3 } from "child_process";
101114
- import { appendFileSync, createWriteStream as createWriteStream3, existsSync as existsSync21, mkdirSync as mkdirSync12, unlinkSync as unlinkSync9, writeFileSync as writeFileSync13 } from "fs";
101114
+ import { appendFileSync, createWriteStream as createWriteStream3, existsSync as existsSync21, mkdirSync as mkdirSync12, unlinkSync as unlinkSync9 } from "fs";
101115
101115
  import { homedir as homedir20 } from "os";
101116
101116
  import { dirname as dirname6, join as join23 } from "path";
101117
101117
  import { execSync as execSync3 } from "child_process";
@@ -101131,17 +101131,13 @@ class MtmDiagRunner {
101131
101131
  this.statusPath = join23(dir, `status-${process.pid}.txt`);
101132
101132
  this.logStream = createWriteStream3(this.logPath, { flags: "w" });
101133
101133
  this.logStream.on("error", () => {});
101134
- try {
101135
- writeFileSync13(this.statusPath, renderStatusBar({ model: "", provider: "", errorCount: 0, lastError: "" }) + `
101136
- `);
101137
- } catch {}
101138
101134
  }
101139
101135
  async run(claudeCommand, claudeArgs, env2) {
101140
101136
  const mtmBin = this.findMtmBinary();
101141
101137
  const quotedArgs = claudeArgs.map((a) => shellQuote(a)).join(" ");
101142
101138
  const claudeCmd = `${shellQuote(claudeCommand)} ${quotedArgs}`;
101143
101139
  const mergedEnv = { ...process.env, ...env2 };
101144
- this.mtmProc = spawn3(mtmBin, ["-e", claudeCmd, "-S", this.statusPath], {
101140
+ this.mtmProc = spawn3(mtmBin, ["-e", claudeCmd, "-S", this.statusPath, "-L", this.logPath], {
101145
101141
  stdio: "inherit",
101146
101142
  env: mergedEnv
101147
101143
  });
@@ -101201,7 +101197,6 @@ class MtmDiagRunner {
101201
101197
  } else if (name.includes("/")) {
101202
101198
  this.provider = name.split("/")[0];
101203
101199
  }
101204
- this.refreshStatusBar();
101205
101200
  }
101206
101201
  refreshStatusBar() {
101207
101202
  const bar = renderStatusBar({
@@ -106096,13 +106091,13 @@ class ComposedHandler {
106096
106091
  providerDisplayName: this.provider.displayName,
106097
106092
  streamFormat: this.provider.streamFormat,
106098
106093
  modelId: this.targetModel,
106099
- httpStatus: undefined,
106094
+ httpStatus: 401,
106100
106095
  isStreaming: false,
106101
106096
  retryAttempted: false,
106102
106097
  isInteractive: this.isInteractive,
106103
106098
  authType: "oauth"
106104
106099
  });
106105
- return c.json({ error: { type: "connection_error", message: err.message } }, 503);
106100
+ return c.json({ error: { type: "authentication_error", message: err.message } }, 401);
106106
106101
  }
106107
106102
  }
106108
106103
  if (this.provider.getContextWindow) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
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",