@blockrun/clawrouter 0.9.20 → 0.9.21
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/cli.js +64 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.js +64 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,44 @@ 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: [
|
|
1292
|
+
primary: "minimax/minimax-m2.5",
|
|
1293
|
+
// $0.30/$1.20 - cheapest reasoning model
|
|
1294
|
+
fallback: [
|
|
1295
|
+
"deepseek/deepseek-reasoner",
|
|
1296
|
+
"xai/grok-4-1-fast-reasoning"
|
|
1297
|
+
]
|
|
1270
1298
|
}
|
|
1271
1299
|
},
|
|
1272
1300
|
// Premium tier configs - best quality (blockrun/premium)
|
|
@@ -1317,6 +1345,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1317
1345
|
primary: "moonshot/kimi-k2.5",
|
|
1318
1346
|
// Cheaper than Haiku ($0.5/$2.4 vs $1/$5), larger context
|
|
1319
1347
|
fallback: [
|
|
1348
|
+
"minimax/minimax-m2.5",
|
|
1349
|
+
// $0.30/$1.20 - agentic capable, cheaper than kimi
|
|
1320
1350
|
"anthropic/claude-haiku-4.5",
|
|
1321
1351
|
"xai/grok-4-1-fast-non-reasoning",
|
|
1322
1352
|
"openai/gpt-4o-mini"
|
|
@@ -1325,13 +1355,21 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1325
1355
|
MEDIUM: {
|
|
1326
1356
|
primary: "xai/grok-code-fast-1",
|
|
1327
1357
|
// Code specialist for agentic coding
|
|
1328
|
-
fallback: [
|
|
1358
|
+
fallback: [
|
|
1359
|
+
"minimax/minimax-m2.5",
|
|
1360
|
+
// $0.30/$1.20 - agentic capable
|
|
1361
|
+
"moonshot/kimi-k2.5",
|
|
1362
|
+
"anthropic/claude-haiku-4.5",
|
|
1363
|
+
"anthropic/claude-sonnet-4.6"
|
|
1364
|
+
]
|
|
1329
1365
|
},
|
|
1330
1366
|
COMPLEX: {
|
|
1331
1367
|
primary: "anthropic/claude-sonnet-4.6",
|
|
1332
1368
|
fallback: [
|
|
1333
1369
|
"anthropic/claude-opus-4.6",
|
|
1334
1370
|
// Latest Opus - best agentic
|
|
1371
|
+
"minimax/minimax-m2.5",
|
|
1372
|
+
// $0.30/$1.20 - cheap agentic fallback
|
|
1335
1373
|
"openai/gpt-5.2",
|
|
1336
1374
|
"google/gemini-3-pro-preview",
|
|
1337
1375
|
"xai/grok-4-0709"
|
|
@@ -1342,6 +1380,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1342
1380
|
// Strong tool use + reasoning for agentic tasks
|
|
1343
1381
|
fallback: [
|
|
1344
1382
|
"anthropic/claude-opus-4.6",
|
|
1383
|
+
"minimax/minimax-m2.5",
|
|
1384
|
+
// $0.30/$1.20 - reasoning + agentic
|
|
1345
1385
|
"xai/grok-4-1-fast-reasoning",
|
|
1346
1386
|
"deepseek/deepseek-reasoner"
|
|
1347
1387
|
]
|
|
@@ -1462,7 +1502,9 @@ var MODEL_ALIASES = {
|
|
|
1462
1502
|
"grok-code": "xai/grok-code-fast-1",
|
|
1463
1503
|
// NVIDIA
|
|
1464
1504
|
nvidia: "nvidia/gpt-oss-120b",
|
|
1465
|
-
"gpt-120b": "nvidia/gpt-oss-120b"
|
|
1505
|
+
"gpt-120b": "nvidia/gpt-oss-120b",
|
|
1506
|
+
// MiniMax
|
|
1507
|
+
minimax: "minimax/minimax-m2.5"
|
|
1466
1508
|
// Note: auto, free, eco, premium are virtual routing profiles registered in BLOCKRUN_MODELS
|
|
1467
1509
|
// They don't need aliases since they're already top-level model IDs
|
|
1468
1510
|
};
|
|
@@ -1809,6 +1851,17 @@ var BLOCKRUN_MODELS = [
|
|
|
1809
1851
|
reasoning: true
|
|
1810
1852
|
},
|
|
1811
1853
|
// grok-2-vision removed - old, 0 transactions
|
|
1854
|
+
// MiniMax
|
|
1855
|
+
{
|
|
1856
|
+
id: "minimax/minimax-m2.5",
|
|
1857
|
+
name: "MiniMax M2.5",
|
|
1858
|
+
inputPrice: 0.3,
|
|
1859
|
+
outputPrice: 1.2,
|
|
1860
|
+
contextWindow: 204800,
|
|
1861
|
+
maxOutput: 16384,
|
|
1862
|
+
reasoning: true,
|
|
1863
|
+
agentic: true
|
|
1864
|
+
},
|
|
1812
1865
|
// NVIDIA - Free/cheap models
|
|
1813
1866
|
{
|
|
1814
1867
|
id: "nvidia/gpt-oss-120b",
|