@blockrun/clawrouter 0.12.274 → 0.12.276
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 +2 -1
- package/dist/cli.js +23 -0
- package/dist/index.js +23 -0
- package/package.json +2 -1
- package/src/top-models.json +1 -0
package/README.md
CHANGED
|
@@ -540,7 +540,8 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
|
|
|
540
540
|
| zai/glm-5.1 | $1.40 | $4.40 | $0.0029 | 200K | reasoning, tools (promo ended 2026-06-05) |
|
|
541
541
|
| qwen/qwen3.7-max | $1.475 | $4.425 | $0.0030 | 1M | reasoning, agentic, tools (Qwen flagship) |
|
|
542
542
|
| xai/grok-4.3 | $1.25 | $2.50 | $0.0019 | 1M | reasoning, vision, agentic, tools |
|
|
543
|
-
| google/gemini-3.
|
|
543
|
+
| google/gemini-3.8-flash | $0.75 | $3.75 | $0.0023 | 1M | reasoning, vision, tools (newest Flash) |
|
|
544
|
+
| google/gemini-3.6-flash | $0.75 | $3.75 | $0.0023 | 1M | reasoning, vision, tools (thinking mode) |
|
|
544
545
|
| google/gemini-3.5-flash | $1.50 | $9.00 | $0.0053 | 1M | reasoning, vision, tools (thinking) |
|
|
545
546
|
| xai/grok-4.5 | $2.00 | $6.00 | $0.0040 | 500K | reasoning, vision, agentic, tools |
|
|
546
547
|
| xai/grok-build-0.1 | $1.00 | $2.00 | $0.0015 | 256K | agentic coding, tools |
|
package/dist/cli.js
CHANGED
|
@@ -37890,6 +37890,7 @@ var init_top_models = __esm({
|
|
|
37890
37890
|
"openai/gpt-5.4-nano",
|
|
37891
37891
|
"openai/gpt-5.3-codex",
|
|
37892
37892
|
"google/gemini-3.1-pro",
|
|
37893
|
+
"google/gemini-3.8-flash",
|
|
37893
37894
|
"google/gemini-3.6-flash",
|
|
37894
37895
|
"google/gemini-3.5-flash",
|
|
37895
37896
|
"google/gemini-3.5-flash-lite",
|
|
@@ -39073,6 +39074,25 @@ var init_models = __esm({
|
|
|
39073
39074
|
vision: true,
|
|
39074
39075
|
toolCalling: true
|
|
39075
39076
|
},
|
|
39077
|
+
{
|
|
39078
|
+
// Current-generation Flash. Live in the BlockRun catalog (chat, reasoning,
|
|
39079
|
+
// coding, vision; $0.75/$3.75) and pinned from the Hermes picker, so it
|
|
39080
|
+
// MUST be carried here and not just be routable at the gateway:
|
|
39081
|
+
// estimateAmount() returns undefined for an id we do not catalog, which
|
|
39082
|
+
// skips the pre-request balance check, projects $0 into the strict
|
|
39083
|
+
// maxCostPerRun gate and never accumulates into session cost. The gateway
|
|
39084
|
+
// ships 3.8 with the same pricing, context and capability row as 3.6.
|
|
39085
|
+
id: "google/gemini-3.8-flash",
|
|
39086
|
+
name: "Gemini 3.8 Flash",
|
|
39087
|
+
version: "3.8",
|
|
39088
|
+
inputPrice: 0.75,
|
|
39089
|
+
outputPrice: 3.75,
|
|
39090
|
+
contextWindow: 1048576,
|
|
39091
|
+
maxOutput: 65536,
|
|
39092
|
+
reasoning: true,
|
|
39093
|
+
vision: true,
|
|
39094
|
+
toolCalling: true
|
|
39095
|
+
},
|
|
39076
39096
|
{
|
|
39077
39097
|
// Newest-generation Flash with built-in thinking mode (blockrun #329,
|
|
39078
39098
|
// 2026-08-03). 17% cheaper output than 3.5 Flash.
|
|
@@ -91947,6 +91967,8 @@ async function startProxy(options) {
|
|
|
91947
91967
|
console.warn(`[ClawRouter] or run "npx @blockrun/clawrouter chain base" to switch to EVM.`);
|
|
91948
91968
|
} else if (paymentChain === "solana") {
|
|
91949
91969
|
console.log(`[ClawRouter] Payment chain: Solana (${BLOCKRUN_SOLANA_API})`);
|
|
91970
|
+
} else {
|
|
91971
|
+
console.log(`[ClawRouter] Payment chain: Base (${apiBase})`);
|
|
91950
91972
|
}
|
|
91951
91973
|
void loadGatewayCatalog(apiBase, apiKey);
|
|
91952
91974
|
const listenPort = options.port ?? getProxyPort();
|
|
@@ -92123,6 +92145,7 @@ async function startProxy(options) {
|
|
|
92123
92145
|
} else {
|
|
92124
92146
|
response.wallet = account.address;
|
|
92125
92147
|
response.paymentChain = paymentChain;
|
|
92148
|
+
response.gateway = apiBase;
|
|
92126
92149
|
if (solanaAddress) {
|
|
92127
92150
|
response.solana = solanaAddress;
|
|
92128
92151
|
}
|
package/dist/index.js
CHANGED
|
@@ -75,6 +75,7 @@ var init_top_models = __esm({
|
|
|
75
75
|
"openai/gpt-5.4-nano",
|
|
76
76
|
"openai/gpt-5.3-codex",
|
|
77
77
|
"google/gemini-3.1-pro",
|
|
78
|
+
"google/gemini-3.8-flash",
|
|
78
79
|
"google/gemini-3.6-flash",
|
|
79
80
|
"google/gemini-3.5-flash",
|
|
80
81
|
"google/gemini-3.5-flash-lite",
|
|
@@ -1258,6 +1259,25 @@ var init_models = __esm({
|
|
|
1258
1259
|
vision: true,
|
|
1259
1260
|
toolCalling: true
|
|
1260
1261
|
},
|
|
1262
|
+
{
|
|
1263
|
+
// Current-generation Flash. Live in the BlockRun catalog (chat, reasoning,
|
|
1264
|
+
// coding, vision; $0.75/$3.75) and pinned from the Hermes picker, so it
|
|
1265
|
+
// MUST be carried here and not just be routable at the gateway:
|
|
1266
|
+
// estimateAmount() returns undefined for an id we do not catalog, which
|
|
1267
|
+
// skips the pre-request balance check, projects $0 into the strict
|
|
1268
|
+
// maxCostPerRun gate and never accumulates into session cost. The gateway
|
|
1269
|
+
// ships 3.8 with the same pricing, context and capability row as 3.6.
|
|
1270
|
+
id: "google/gemini-3.8-flash",
|
|
1271
|
+
name: "Gemini 3.8 Flash",
|
|
1272
|
+
version: "3.8",
|
|
1273
|
+
inputPrice: 0.75,
|
|
1274
|
+
outputPrice: 3.75,
|
|
1275
|
+
contextWindow: 1048576,
|
|
1276
|
+
maxOutput: 65536,
|
|
1277
|
+
reasoning: true,
|
|
1278
|
+
vision: true,
|
|
1279
|
+
toolCalling: true
|
|
1280
|
+
},
|
|
1261
1281
|
{
|
|
1262
1282
|
// Newest-generation Flash with built-in thinking mode (blockrun #329,
|
|
1263
1283
|
// 2026-08-03). 17% cheaper output than 3.5 Flash.
|
|
@@ -91700,6 +91720,8 @@ async function startProxy(options) {
|
|
|
91700
91720
|
console.warn(`[ClawRouter] or run "npx @blockrun/clawrouter chain base" to switch to EVM.`);
|
|
91701
91721
|
} else if (paymentChain === "solana") {
|
|
91702
91722
|
console.log(`[ClawRouter] Payment chain: Solana (${BLOCKRUN_SOLANA_API})`);
|
|
91723
|
+
} else {
|
|
91724
|
+
console.log(`[ClawRouter] Payment chain: Base (${apiBase})`);
|
|
91703
91725
|
}
|
|
91704
91726
|
void loadGatewayCatalog(apiBase, apiKey);
|
|
91705
91727
|
const listenPort = options.port ?? getProxyPort();
|
|
@@ -91876,6 +91898,7 @@ async function startProxy(options) {
|
|
|
91876
91898
|
} else {
|
|
91877
91899
|
response.wallet = account.address;
|
|
91878
91900
|
response.paymentChain = paymentChain;
|
|
91901
|
+
response.gateway = apiBase;
|
|
91879
91902
|
if (solanaAddress) {
|
|
91880
91903
|
response.solana = solanaAddress;
|
|
91881
91904
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/clawrouter",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.276",
|
|
4
4
|
"description": "Smart LLM router — save 84% on inference costs. 76 models (7 free). Pay by credit card (API key) or USDC (x402 wallet).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"test:resilience:full": "npm run test:resilience:errors && npm run test:resilience:lifecycle && npm run test:resilience:stability:full",
|
|
59
59
|
"test:e2e": "tsx test/test-e2e.ts",
|
|
60
60
|
"test:e2e:tool-ids": "npm run build && tsx test/e2e-tool-id-sanitization.ts",
|
|
61
|
+
"test:e2e:openclaw-collision": "npm run build && tsx test/openclaw-plugin-collision-e2e.ts",
|
|
61
62
|
"test:docker:install": "bash test/run-docker-test.sh",
|
|
62
63
|
"test:docker:edge-cases": "bash test/docker/run-edge-cases.sh",
|
|
63
64
|
"test:docker:integration": "docker compose -f test/integration/docker-compose.yml up --build --abort-on-container-exit --exit-code-from integration"
|