claudish 14.19.0 → 14.19.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 +13 -6
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5494,7 +5494,7 @@ var init_onepassword_config = __esm(() => {
|
|
|
5494
5494
|
});
|
|
5495
5495
|
|
|
5496
5496
|
// src/version.ts
|
|
5497
|
-
var VERSION = "14.19.
|
|
5497
|
+
var VERSION = "14.19.1";
|
|
5498
5498
|
|
|
5499
5499
|
// src/redact.ts
|
|
5500
5500
|
function isPlaceholder(value) {
|
|
@@ -41783,7 +41783,7 @@ function resolveAntigravityModelId(requested, servedIds, defaultId, catalogDefau
|
|
|
41783
41783
|
if (catalogDefault && servedIds.includes(catalogDefault))
|
|
41784
41784
|
return catalogDefault;
|
|
41785
41785
|
const familyPrefix = `${req}-`;
|
|
41786
|
-
const variants = servedIds.filter((id) => id.startsWith(familyPrefix));
|
|
41786
|
+
const variants = servedIds.filter((id) => id.startsWith(familyPrefix) && Object.hasOwn(REASONING_TIER_RANK, id.slice(familyPrefix.length)));
|
|
41787
41787
|
if (variants.length > 0) {
|
|
41788
41788
|
if (defaultId && variants.includes(defaultId))
|
|
41789
41789
|
return defaultId;
|
|
@@ -51064,7 +51064,7 @@ function byCost(a, b) {
|
|
|
51064
51064
|
return length !== 0 ? length : a.wireId.localeCompare(b.wireId);
|
|
51065
51065
|
}
|
|
51066
51066
|
function defaultOf(group) {
|
|
51067
|
-
const declared = group.
|
|
51067
|
+
const declared = group.filter((entry) => entry.isFamilyDefault).sort(byCost)[0];
|
|
51068
51068
|
if (declared)
|
|
51069
51069
|
return declared;
|
|
51070
51070
|
const plain = group.filter((entry) => !devinHasSpeedPremium(asConfig(entry)));
|
|
@@ -51155,15 +51155,22 @@ class DevinModelResolver {
|
|
|
51155
51155
|
const family = nonEmpty(entry.family)?.toLowerCase();
|
|
51156
51156
|
return label === lower || family === lower;
|
|
51157
51157
|
});
|
|
51158
|
-
const pool = named.length > 0 ? named :
|
|
51158
|
+
const pool = named.length > 0 ? named : effortSiblings(lower, modelsCatalog);
|
|
51159
51159
|
if (pool.length === 0)
|
|
51160
51160
|
return requested;
|
|
51161
|
-
if (named.length === 0
|
|
51162
|
-
return
|
|
51161
|
+
if (named.length === 0)
|
|
51162
|
+
return pickForEffort(pool, ctx.effort).wireId;
|
|
51163
51163
|
const chosen = pool.filter((entry) => entry.isFamilyDefault).sort(byCost)[0] ?? pool.slice().sort(byCost)[0];
|
|
51164
51164
|
return pickForEffort(groups.get(keyOf(chosen)), ctx.effort).wireId;
|
|
51165
51165
|
}
|
|
51166
51166
|
}
|
|
51167
|
+
function effortSiblings(base, modelsCatalog) {
|
|
51168
|
+
const prefix = `${base}-`;
|
|
51169
|
+
return modelsCatalog.filter((entry) => {
|
|
51170
|
+
const wireId = entry.wireId.toLowerCase();
|
|
51171
|
+
return wireId.startsWith(prefix) && isEffortLevel(wireId.slice(prefix.length));
|
|
51172
|
+
});
|
|
51173
|
+
}
|
|
51167
51174
|
function pickForEffort(group, effort) {
|
|
51168
51175
|
if (!effort)
|
|
51169
51176
|
return defaultOf(group);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "14.19.
|
|
3
|
+
"version": "14.19.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",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"ai"
|
|
72
72
|
],
|
|
73
73
|
"optionalDependencies": {
|
|
74
|
-
"@claudish/magmux-darwin-arm64": "14.19.
|
|
75
|
-
"@claudish/magmux-darwin-x64": "14.19.
|
|
76
|
-
"@claudish/magmux-linux-arm64": "14.19.
|
|
77
|
-
"@claudish/magmux-linux-x64": "14.19.
|
|
74
|
+
"@claudish/magmux-darwin-arm64": "14.19.1",
|
|
75
|
+
"@claudish/magmux-darwin-x64": "14.19.1",
|
|
76
|
+
"@claudish/magmux-linux-arm64": "14.19.1",
|
|
77
|
+
"@claudish/magmux-linux-x64": "14.19.1"
|
|
78
78
|
},
|
|
79
79
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
80
80
|
"license": "MIT",
|