@blockrun/clawrouter 0.9.20 → 0.9.22
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/README.md +1 -1
- package/dist/cli.js +61 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.js +68 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -186,7 +186,7 @@ Compared to **$25/M** for Claude Opus = **92% savings** on a typical workload.
|
|
|
186
186
|
| o3-mini | $1.10 | $4.40 | 128K | \* |
|
|
187
187
|
| **Anthropic** | | | | |
|
|
188
188
|
| claude-opus-4.5 | $5.00 | $25.00 | 200K | \* |
|
|
189
|
-
| claude-sonnet-4.6
|
|
189
|
+
| claude-sonnet-4.6 | $3.00 | $15.00 | 200K | \* |
|
|
190
190
|
| claude-haiku-4.5 | $1.00 | $5.00 | 200K | |
|
|
191
191
|
| **Google** | | | | |
|
|
192
192
|
| gemini-2.5-pro | $1.25 | $10.00 | 1M | \* |
|
package/dist/cli.js
CHANGED
|
@@ -1200,6 +1200,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1200
1200
|
primary: "moonshot/kimi-k2.5",
|
|
1201
1201
|
// $0.50/$2.40 - best quality/price for simple tasks
|
|
1202
1202
|
fallback: [
|
|
1203
|
+
"minimax/minimax-m2.5",
|
|
1204
|
+
// $0.30/$1.20 - cheap with reasoning
|
|
1203
1205
|
"google/gemini-2.5-flash",
|
|
1204
1206
|
// 1M context, cost-effective
|
|
1205
1207
|
"nvidia/gpt-oss-120b",
|
|
@@ -1211,6 +1213,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1211
1213
|
primary: "xai/grok-code-fast-1",
|
|
1212
1214
|
// Code specialist, $0.20/$1.50
|
|
1213
1215
|
fallback: [
|
|
1216
|
+
"minimax/minimax-m2.5",
|
|
1217
|
+
// $0.30/$1.20 - cheap with reasoning
|
|
1214
1218
|
"google/gemini-2.5-flash",
|
|
1215
1219
|
// 1M context, cost-effective
|
|
1216
1220
|
"deepseek/deepseek-chat",
|
|
@@ -1225,6 +1229,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1225
1229
|
"google/gemini-2.5-flash",
|
|
1226
1230
|
// CRITICAL: 1M context, cheap failsafe before expensive models
|
|
1227
1231
|
"google/gemini-2.5-pro",
|
|
1232
|
+
"minimax/minimax-m2.5",
|
|
1233
|
+
// $0.30/$1.20 - cheap with reasoning
|
|
1228
1234
|
"deepseek/deepseek-chat",
|
|
1229
1235
|
// Another cheap option
|
|
1230
1236
|
"xai/grok-4-0709",
|
|
@@ -1238,8 +1244,10 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1238
1244
|
primary: "xai/grok-4-1-fast-reasoning",
|
|
1239
1245
|
// Upgraded Grok 4.1 reasoning $0.20/$0.50
|
|
1240
1246
|
fallback: [
|
|
1247
|
+
"minimax/minimax-m2.5",
|
|
1248
|
+
// $0.30/$1.20 - reasoning capable
|
|
1241
1249
|
"deepseek/deepseek-reasoner",
|
|
1242
|
-
// Cheap reasoning model
|
|
1250
|
+
// Cheap reasoning model
|
|
1243
1251
|
"openai/o4-mini",
|
|
1244
1252
|
// Newer and cheaper than o3 ($1.10 vs $2.00)
|
|
1245
1253
|
"openai/o3"
|
|
@@ -1249,24 +1257,41 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1249
1257
|
// Eco tier configs - ultra cost-optimized (blockrun/eco)
|
|
1250
1258
|
ecoTiers: {
|
|
1251
1259
|
SIMPLE: {
|
|
1252
|
-
primary: "
|
|
1253
|
-
// $0.
|
|
1254
|
-
fallback: [
|
|
1260
|
+
primary: "minimax/minimax-m2.5",
|
|
1261
|
+
// $0.30/$1.20 - cheapest with reasoning
|
|
1262
|
+
fallback: [
|
|
1263
|
+
"moonshot/kimi-k2.5",
|
|
1264
|
+
"nvidia/gpt-oss-120b",
|
|
1265
|
+
"deepseek/deepseek-chat",
|
|
1266
|
+
"google/gemini-2.5-flash"
|
|
1267
|
+
]
|
|
1255
1268
|
},
|
|
1256
1269
|
MEDIUM: {
|
|
1257
1270
|
primary: "deepseek/deepseek-chat",
|
|
1258
1271
|
// $0.14/$0.28
|
|
1259
|
-
fallback: [
|
|
1272
|
+
fallback: [
|
|
1273
|
+
"minimax/minimax-m2.5",
|
|
1274
|
+
// $0.30/$1.20 - cheap with reasoning
|
|
1275
|
+
"xai/grok-code-fast-1",
|
|
1276
|
+
"google/gemini-2.5-flash",
|
|
1277
|
+
"moonshot/kimi-k2.5"
|
|
1278
|
+
]
|
|
1260
1279
|
},
|
|
1261
1280
|
COMPLEX: {
|
|
1262
1281
|
primary: "xai/grok-4-0709",
|
|
1263
1282
|
// $0.20/$1.50
|
|
1264
|
-
fallback: [
|
|
1283
|
+
fallback: [
|
|
1284
|
+
"minimax/minimax-m2.5",
|
|
1285
|
+
// $0.30/$1.20 - cheap with reasoning
|
|
1286
|
+
"deepseek/deepseek-chat",
|
|
1287
|
+
"google/gemini-2.5-flash",
|
|
1288
|
+
"openai/gpt-4o-mini"
|
|
1289
|
+
]
|
|
1265
1290
|
},
|
|
1266
1291
|
REASONING: {
|
|
1267
|
-
primary: "
|
|
1268
|
-
// $0.
|
|
1269
|
-
fallback: ["xai/grok-4-1-fast-reasoning"]
|
|
1292
|
+
primary: "minimax/minimax-m2.5",
|
|
1293
|
+
// $0.30/$1.20 - cheapest reasoning model
|
|
1294
|
+
fallback: ["deepseek/deepseek-reasoner", "xai/grok-4-1-fast-reasoning"]
|
|
1270
1295
|
}
|
|
1271
1296
|
},
|
|
1272
1297
|
// Premium tier configs - best quality (blockrun/premium)
|
|
@@ -1317,6 +1342,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1317
1342
|
primary: "moonshot/kimi-k2.5",
|
|
1318
1343
|
// Cheaper than Haiku ($0.5/$2.4 vs $1/$5), larger context
|
|
1319
1344
|
fallback: [
|
|
1345
|
+
"minimax/minimax-m2.5",
|
|
1346
|
+
// $0.30/$1.20 - agentic capable, cheaper than kimi
|
|
1320
1347
|
"anthropic/claude-haiku-4.5",
|
|
1321
1348
|
"xai/grok-4-1-fast-non-reasoning",
|
|
1322
1349
|
"openai/gpt-4o-mini"
|
|
@@ -1325,13 +1352,21 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1325
1352
|
MEDIUM: {
|
|
1326
1353
|
primary: "xai/grok-code-fast-1",
|
|
1327
1354
|
// Code specialist for agentic coding
|
|
1328
|
-
fallback: [
|
|
1355
|
+
fallback: [
|
|
1356
|
+
"minimax/minimax-m2.5",
|
|
1357
|
+
// $0.30/$1.20 - agentic capable
|
|
1358
|
+
"moonshot/kimi-k2.5",
|
|
1359
|
+
"anthropic/claude-haiku-4.5",
|
|
1360
|
+
"anthropic/claude-sonnet-4.6"
|
|
1361
|
+
]
|
|
1329
1362
|
},
|
|
1330
1363
|
COMPLEX: {
|
|
1331
1364
|
primary: "anthropic/claude-sonnet-4.6",
|
|
1332
1365
|
fallback: [
|
|
1333
1366
|
"anthropic/claude-opus-4.6",
|
|
1334
1367
|
// Latest Opus - best agentic
|
|
1368
|
+
"minimax/minimax-m2.5",
|
|
1369
|
+
// $0.30/$1.20 - cheap agentic fallback
|
|
1335
1370
|
"openai/gpt-5.2",
|
|
1336
1371
|
"google/gemini-3-pro-preview",
|
|
1337
1372
|
"xai/grok-4-0709"
|
|
@@ -1342,6 +1377,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1342
1377
|
// Strong tool use + reasoning for agentic tasks
|
|
1343
1378
|
fallback: [
|
|
1344
1379
|
"anthropic/claude-opus-4.6",
|
|
1380
|
+
"minimax/minimax-m2.5",
|
|
1381
|
+
// $0.30/$1.20 - reasoning + agentic
|
|
1345
1382
|
"xai/grok-4-1-fast-reasoning",
|
|
1346
1383
|
"deepseek/deepseek-reasoner"
|
|
1347
1384
|
]
|
|
@@ -1462,7 +1499,9 @@ var MODEL_ALIASES = {
|
|
|
1462
1499
|
"grok-code": "xai/grok-code-fast-1",
|
|
1463
1500
|
// NVIDIA
|
|
1464
1501
|
nvidia: "nvidia/gpt-oss-120b",
|
|
1465
|
-
"gpt-120b": "nvidia/gpt-oss-120b"
|
|
1502
|
+
"gpt-120b": "nvidia/gpt-oss-120b",
|
|
1503
|
+
// MiniMax
|
|
1504
|
+
minimax: "minimax/minimax-m2.5"
|
|
1466
1505
|
// Note: auto, free, eco, premium are virtual routing profiles registered in BLOCKRUN_MODELS
|
|
1467
1506
|
// They don't need aliases since they're already top-level model IDs
|
|
1468
1507
|
};
|
|
@@ -1809,6 +1848,17 @@ var BLOCKRUN_MODELS = [
|
|
|
1809
1848
|
reasoning: true
|
|
1810
1849
|
},
|
|
1811
1850
|
// grok-2-vision removed - old, 0 transactions
|
|
1851
|
+
// MiniMax
|
|
1852
|
+
{
|
|
1853
|
+
id: "minimax/minimax-m2.5",
|
|
1854
|
+
name: "MiniMax M2.5",
|
|
1855
|
+
inputPrice: 0.3,
|
|
1856
|
+
outputPrice: 1.2,
|
|
1857
|
+
contextWindow: 204800,
|
|
1858
|
+
maxOutput: 16384,
|
|
1859
|
+
reasoning: true,
|
|
1860
|
+
agentic: true
|
|
1861
|
+
},
|
|
1812
1862
|
// NVIDIA - Free/cheap models
|
|
1813
1863
|
{
|
|
1814
1864
|
id: "nvidia/gpt-oss-120b",
|