@blockrun/clawrouter 0.9.26 → 0.9.27
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 +36 -32
- package/dist/cli.js.map +1 -1
- package/dist/index.js +36 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/reinstall.sh +2 -2
package/dist/cli.js
CHANGED
|
@@ -1237,7 +1237,7 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1237
1237
|
"openai/gpt-5.2",
|
|
1238
1238
|
// Newer and cheaper input than gpt-4o
|
|
1239
1239
|
"openai/gpt-4o",
|
|
1240
|
-
"anthropic/claude-sonnet-4
|
|
1240
|
+
"anthropic/claude-sonnet-4-6"
|
|
1241
1241
|
]
|
|
1242
1242
|
},
|
|
1243
1243
|
REASONING: {
|
|
@@ -1300,7 +1300,7 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1300
1300
|
SIMPLE: {
|
|
1301
1301
|
primary: "moonshot/kimi-k2.5",
|
|
1302
1302
|
// $0.50/$2.40 - good for simple coding
|
|
1303
|
-
fallback: ["anthropic/claude-haiku-4
|
|
1303
|
+
fallback: ["anthropic/claude-haiku-4-5", "google/gemini-2.5-flash", "xai/grok-code-fast-1"]
|
|
1304
1304
|
},
|
|
1305
1305
|
MEDIUM: {
|
|
1306
1306
|
primary: "openai/gpt-5.2-codex",
|
|
@@ -1309,26 +1309,26 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1309
1309
|
"moonshot/kimi-k2.5",
|
|
1310
1310
|
"google/gemini-2.5-pro",
|
|
1311
1311
|
"xai/grok-4-0709",
|
|
1312
|
-
"anthropic/claude-sonnet-4
|
|
1312
|
+
"anthropic/claude-sonnet-4-6"
|
|
1313
1313
|
]
|
|
1314
1314
|
},
|
|
1315
1315
|
COMPLEX: {
|
|
1316
|
-
primary: "anthropic/claude-opus-4
|
|
1316
|
+
primary: "anthropic/claude-opus-4-6",
|
|
1317
1317
|
// Best quality for complex tasks
|
|
1318
1318
|
fallback: [
|
|
1319
1319
|
"openai/gpt-5.2-codex",
|
|
1320
|
-
"anthropic/claude-opus-4
|
|
1321
|
-
"anthropic/claude-sonnet-4
|
|
1320
|
+
"anthropic/claude-opus-4-5",
|
|
1321
|
+
"anthropic/claude-sonnet-4-6",
|
|
1322
1322
|
"google/gemini-3-pro-preview",
|
|
1323
1323
|
"moonshot/kimi-k2.5"
|
|
1324
1324
|
]
|
|
1325
1325
|
},
|
|
1326
1326
|
REASONING: {
|
|
1327
|
-
primary: "anthropic/claude-sonnet-4
|
|
1327
|
+
primary: "anthropic/claude-sonnet-4-6",
|
|
1328
1328
|
// $3/$15 - best for reasoning/instructions
|
|
1329
1329
|
fallback: [
|
|
1330
|
-
"anthropic/claude-opus-4
|
|
1331
|
-
"anthropic/claude-opus-4
|
|
1330
|
+
"anthropic/claude-opus-4-6",
|
|
1331
|
+
"anthropic/claude-opus-4-5",
|
|
1332
1332
|
"openai/o4-mini",
|
|
1333
1333
|
// Newer and cheaper than o3 ($1.10 vs $2.00)
|
|
1334
1334
|
"openai/o3",
|
|
@@ -1344,7 +1344,7 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1344
1344
|
fallback: [
|
|
1345
1345
|
"minimax/minimax-m2.5",
|
|
1346
1346
|
// $0.30/$1.20 - agentic capable, cheaper than kimi
|
|
1347
|
-
"anthropic/claude-haiku-4
|
|
1347
|
+
"anthropic/claude-haiku-4-5",
|
|
1348
1348
|
"xai/grok-4-1-fast-non-reasoning",
|
|
1349
1349
|
"openai/gpt-4o-mini"
|
|
1350
1350
|
]
|
|
@@ -1356,14 +1356,14 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1356
1356
|
"minimax/minimax-m2.5",
|
|
1357
1357
|
// $0.30/$1.20 - agentic capable
|
|
1358
1358
|
"moonshot/kimi-k2.5",
|
|
1359
|
-
"anthropic/claude-haiku-4
|
|
1360
|
-
"anthropic/claude-sonnet-4
|
|
1359
|
+
"anthropic/claude-haiku-4-5",
|
|
1360
|
+
"anthropic/claude-sonnet-4-6"
|
|
1361
1361
|
]
|
|
1362
1362
|
},
|
|
1363
1363
|
COMPLEX: {
|
|
1364
|
-
primary: "anthropic/claude-sonnet-4
|
|
1364
|
+
primary: "anthropic/claude-sonnet-4-6",
|
|
1365
1365
|
fallback: [
|
|
1366
|
-
"anthropic/claude-opus-4
|
|
1366
|
+
"anthropic/claude-opus-4-6",
|
|
1367
1367
|
// Latest Opus - best agentic
|
|
1368
1368
|
"minimax/minimax-m2.5",
|
|
1369
1369
|
// $0.30/$1.20 - cheap agentic fallback
|
|
@@ -1373,10 +1373,10 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1373
1373
|
]
|
|
1374
1374
|
},
|
|
1375
1375
|
REASONING: {
|
|
1376
|
-
primary: "anthropic/claude-sonnet-4
|
|
1376
|
+
primary: "anthropic/claude-sonnet-4-6",
|
|
1377
1377
|
// Strong tool use + reasoning for agentic tasks
|
|
1378
1378
|
fallback: [
|
|
1379
|
-
"anthropic/claude-opus-4
|
|
1379
|
+
"anthropic/claude-opus-4-6",
|
|
1380
1380
|
"minimax/minimax-m2.5",
|
|
1381
1381
|
// $0.30/$1.20 - reasoning + agentic
|
|
1382
1382
|
"xai/grok-4-1-fast-reasoning",
|
|
@@ -1465,19 +1465,23 @@ function route(prompt, systemPrompt, maxOutputTokens, options) {
|
|
|
1465
1465
|
|
|
1466
1466
|
// src/models.ts
|
|
1467
1467
|
var MODEL_ALIASES = {
|
|
1468
|
-
// Claude - short names
|
|
1469
|
-
claude: "anthropic/claude-sonnet-4
|
|
1470
|
-
sonnet: "anthropic/claude-sonnet-4
|
|
1471
|
-
opus: "anthropic/claude-opus-4
|
|
1472
|
-
|
|
1473
|
-
"opus-
|
|
1474
|
-
|
|
1475
|
-
haiku: "anthropic/claude-haiku-4.5",
|
|
1468
|
+
// Claude - short names (use dashes in version, not dots - Anthropic API format)
|
|
1469
|
+
claude: "anthropic/claude-sonnet-4-6",
|
|
1470
|
+
sonnet: "anthropic/claude-sonnet-4-6",
|
|
1471
|
+
opus: "anthropic/claude-opus-4-6",
|
|
1472
|
+
"opus-46": "anthropic/claude-opus-4-6",
|
|
1473
|
+
"opus-45": "anthropic/claude-opus-4-5",
|
|
1474
|
+
haiku: "anthropic/claude-haiku-4-5",
|
|
1476
1475
|
// Claude - provider/shortname patterns (common in agent frameworks)
|
|
1477
|
-
"anthropic/sonnet": "anthropic/claude-sonnet-4
|
|
1478
|
-
"anthropic/opus": "anthropic/claude-opus-4
|
|
1479
|
-
"anthropic/haiku": "anthropic/claude-haiku-4
|
|
1480
|
-
"anthropic/claude": "anthropic/claude-sonnet-4
|
|
1476
|
+
"anthropic/sonnet": "anthropic/claude-sonnet-4-6",
|
|
1477
|
+
"anthropic/opus": "anthropic/claude-opus-4-6",
|
|
1478
|
+
"anthropic/haiku": "anthropic/claude-haiku-4-5",
|
|
1479
|
+
"anthropic/claude": "anthropic/claude-sonnet-4-6",
|
|
1480
|
+
// Backward compatibility - old dot notation still works
|
|
1481
|
+
"anthropic/claude-sonnet-4.6": "anthropic/claude-sonnet-4-6",
|
|
1482
|
+
"anthropic/claude-opus-4.6": "anthropic/claude-opus-4-6",
|
|
1483
|
+
"anthropic/claude-opus-4.5": "anthropic/claude-opus-4-5",
|
|
1484
|
+
"anthropic/claude-haiku-4.5": "anthropic/claude-haiku-4-5",
|
|
1481
1485
|
// OpenAI
|
|
1482
1486
|
gpt: "openai/gpt-4o",
|
|
1483
1487
|
gpt4: "openai/gpt-4o",
|
|
@@ -1666,7 +1670,7 @@ var BLOCKRUN_MODELS = [
|
|
|
1666
1670
|
},
|
|
1667
1671
|
// Anthropic - all Claude models excel at agentic workflows
|
|
1668
1672
|
{
|
|
1669
|
-
id: "anthropic/claude-haiku-4
|
|
1673
|
+
id: "anthropic/claude-haiku-4-5",
|
|
1670
1674
|
name: "Claude Haiku 4.5",
|
|
1671
1675
|
inputPrice: 1,
|
|
1672
1676
|
outputPrice: 5,
|
|
@@ -1675,7 +1679,7 @@ var BLOCKRUN_MODELS = [
|
|
|
1675
1679
|
agentic: true
|
|
1676
1680
|
},
|
|
1677
1681
|
{
|
|
1678
|
-
id: "anthropic/claude-sonnet-4
|
|
1682
|
+
id: "anthropic/claude-sonnet-4-6",
|
|
1679
1683
|
name: "Claude Sonnet 4.6",
|
|
1680
1684
|
inputPrice: 3,
|
|
1681
1685
|
outputPrice: 15,
|
|
@@ -1695,7 +1699,7 @@ var BLOCKRUN_MODELS = [
|
|
|
1695
1699
|
agentic: true
|
|
1696
1700
|
},
|
|
1697
1701
|
{
|
|
1698
|
-
id: "anthropic/claude-opus-4
|
|
1702
|
+
id: "anthropic/claude-opus-4-5",
|
|
1699
1703
|
name: "Claude Opus 4.5",
|
|
1700
1704
|
inputPrice: 5,
|
|
1701
1705
|
outputPrice: 25,
|
|
@@ -1705,7 +1709,7 @@ var BLOCKRUN_MODELS = [
|
|
|
1705
1709
|
agentic: true
|
|
1706
1710
|
},
|
|
1707
1711
|
{
|
|
1708
|
-
id: "anthropic/claude-opus-4
|
|
1712
|
+
id: "anthropic/claude-opus-4-6",
|
|
1709
1713
|
name: "Claude Opus 4.6",
|
|
1710
1714
|
inputPrice: 5,
|
|
1711
1715
|
outputPrice: 25,
|