claudish 9.0.3 → 9.0.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 +5 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -731,7 +731,7 @@ var init_onepassword_config = __esm(() => {
731
731
  });
732
732
 
733
733
  // src/version.ts
734
- var VERSION = "9.0.3";
734
+ var VERSION = "9.0.4";
735
735
 
736
736
  // src/logger.ts
737
737
  var exports_logger = {};
@@ -27655,6 +27655,10 @@ function resolveSubscriptionRouting(modelId, provider, cachePath) {
27655
27655
  const hasPublishedProviderRoster = cache.entries.some((candidate) => candidate.subscriptionPlans?.some((planId) => providerPlanIds.has(planId)));
27656
27656
  if (!hasPublishedProviderRoster)
27657
27657
  return { kind: "unknown" };
27658
+ const vendorsInView = new Set(providerPlans.map((plan) => plan.provider).filter((v) => v !== undefined));
27659
+ const hasUnroutableSiblingPlan = (cache.plans ?? []).some((plan) => plan.provider !== undefined && vendorsInView.has(plan.provider) && plan.routing?.providerUid === undefined);
27660
+ if (hasUnroutableSiblingPlan)
27661
+ return { kind: "unknown" };
27658
27662
  return providerPlans.every(isCatalogDiscoveredPlan) ? { kind: "not-served" } : { kind: "unknown" };
27659
27663
  }
27660
27664
  function isCatalogDiscoveredPlan(plan) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "9.0.3",
3
+ "version": "9.0.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": "9.0.3",
64
- "@claudish/magmux-darwin-x64": "9.0.3",
65
- "@claudish/magmux-linux-arm64": "9.0.3",
66
- "@claudish/magmux-linux-x64": "9.0.3"
63
+ "@claudish/magmux-darwin-arm64": "9.0.4",
64
+ "@claudish/magmux-darwin-x64": "9.0.4",
65
+ "@claudish/magmux-linux-arm64": "9.0.4",
66
+ "@claudish/magmux-linux-x64": "9.0.4"
67
67
  },
68
68
  "author": "Jack Rudenko <i@madappgang.com>",
69
69
  "license": "MIT",