claudish 6.12.0 → 6.12.2

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
@@ -13645,7 +13645,6 @@ import {
13645
13645
  readFileSync,
13646
13646
  existsSync,
13647
13647
  readdirSync,
13648
- statSync,
13649
13648
  createWriteStream
13650
13649
  } from "fs";
13651
13650
  import { join, resolve } from "path";
@@ -13669,6 +13668,9 @@ function setupSession(sessionPath, models, input) {
13669
13668
  if (models.length === 0) {
13670
13669
  throw new Error("At least one model is required");
13671
13670
  }
13671
+ if (existsSync(join(sessionPath, "manifest.json"))) {
13672
+ throw new Error(`Session already exists at ${sessionPath}. ` + `Use a new directory path or delete the existing session first.`);
13673
+ }
13672
13674
  const sentinels = models.filter(isSentinelModel);
13673
13675
  if (sentinels.length > 0) {
13674
13676
  throw new Error(`Invalid model(s) for team run: ${sentinels.join(", ")}. ` + `These are Claude Code agent selectors, not external model IDs. ` + `Use real external models (e.g., "gemini-2.0-flash", "gpt-4o", "or@deepseek/deepseek-r1"). ` + `For Claude models, use a Task agent instead of the team tool.`);
@@ -13748,6 +13750,10 @@ async function runModels(sessionPath, opts = {}) {
13748
13750
  stdio: ["pipe", "pipe", "pipe"],
13749
13751
  shell: false
13750
13752
  });
13753
+ let byteCount = 0;
13754
+ proc.stdout?.on("data", (chunk) => {
13755
+ byteCount += chunk.length;
13756
+ });
13751
13757
  const outputStream = createWriteStream(outputPath);
13752
13758
  proc.stdout?.pipe(outputStream);
13753
13759
  let stderr = "";
@@ -13762,11 +13768,13 @@ async function runModels(sessionPath, opts = {}) {
13762
13768
  const finish = () => {
13763
13769
  if (resolved)
13764
13770
  return;
13771
+ if (statusCache.models[anonId].state === "TIMEOUT") {
13772
+ resolved = true;
13773
+ resolve2();
13774
+ return;
13775
+ }
13765
13776
  resolved = true;
13766
- let outputSize = 0;
13767
- try {
13768
- outputSize = statSync(outputPath).size;
13769
- } catch {}
13777
+ const outputSize = byteCount;
13770
13778
  updateModelStatus(anonId, {
13771
13779
  state: exitCode === 0 ? "COMPLETED" : "FAILED",
13772
13780
  exitCode: exitCode ?? 1,
@@ -22359,7 +22367,7 @@ var init_profile_config = __esm(() => {
22359
22367
  });
22360
22368
 
22361
22369
  // src/version.ts
22362
- var VERSION = "6.12.0";
22370
+ var VERSION = "6.12.2";
22363
22371
 
22364
22372
  // src/telemetry.ts
22365
22373
  var exports_telemetry = {};
@@ -25872,7 +25880,7 @@ var init_provider_resolver = __esm(() => {
25872
25880
  });
25873
25881
 
25874
25882
  // src/services/pricing-cache.ts
25875
- import { readFileSync as readFileSync9, writeFileSync as writeFileSync9, existsSync as existsSync12, mkdirSync as mkdirSync9, statSync as statSync2 } from "fs";
25883
+ import { readFileSync as readFileSync9, writeFileSync as writeFileSync9, existsSync as existsSync12, mkdirSync as mkdirSync9, statSync } from "fs";
25876
25884
  import { homedir as homedir13 } from "os";
25877
25885
  import { join as join14 } from "path";
25878
25886
  function getDynamicPricingSync(provider, modelName) {
@@ -25941,7 +25949,7 @@ function loadDiskCache() {
25941
25949
  try {
25942
25950
  if (!existsSync12(CACHE_FILE))
25943
25951
  return false;
25944
- const stat = statSync2(CACHE_FILE);
25952
+ const stat = statSync(CACHE_FILE);
25945
25953
  const age = Date.now() - stat.mtimeMs;
25946
25954
  const isFresh = age < CACHE_TTL_MS;
25947
25955
  const raw2 = readFileSync9(CACHE_FILE, "utf-8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "6.12.0",
3
+ "version": "6.12.2",
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",
@@ -59,10 +59,10 @@
59
59
  "ai"
60
60
  ],
61
61
  "optionalDependencies": {
62
- "@claudish/magmux-darwin-arm64": "6.12.0",
63
- "@claudish/magmux-darwin-x64": "6.12.0",
64
- "@claudish/magmux-linux-arm64": "6.12.0",
65
- "@claudish/magmux-linux-x64": "6.12.0"
62
+ "@claudish/magmux-darwin-arm64": "6.12.2",
63
+ "@claudish/magmux-darwin-x64": "6.12.2",
64
+ "@claudish/magmux-linux-arm64": "6.12.2",
65
+ "@claudish/magmux-linux-x64": "6.12.2"
66
66
  },
67
67
  "author": "Jack Rudenko <i@madappgang.com>",
68
68
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.2.0",
3
- "lastUpdated": "2026-04-09",
3
+ "lastUpdated": "2026-04-10",
4
4
  "source": "https://openrouter.ai/models?categories=programming&fmt=cards&order=top-weekly",
5
5
  "models": [
6
6
  {