@blockrun/clawrouter 0.12.230 → 0.12.231

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 CHANGED
@@ -434,6 +434,7 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
434
434
  | google/gemini-2.5-pro | $1.25 | $10.00 | $0.0056 | 1M | reasoning, vision, tools |
435
435
  | zai/glm-5.2 | $1.40 | $4.40 | $0.0029 | 1M | reasoning, coding, tools (flagship) |
436
436
  | zai/glm-5.1 | $1.40 | $4.40 | $0.0029 | 200K | reasoning, tools (promo ended 2026-06-05) |
437
+ | qwen/qwen3.7-max | $1.475 | $4.425 | $0.0030 | 1M | reasoning, agentic, tools (Qwen flagship) |
437
438
  | xai/grok-4.3 | $1.50 | $4.00 | $0.0028 | 1M | reasoning, vision, agentic, tools |
438
439
  | xai/grok-4.5 | $2.50 | $9.00 | $0.0058 | 500K | reasoning, vision, agentic, tools |
439
440
  | xai/grok-build-0.1 | $1.50 | $3.00 | $0.0023 | 256K | agentic coding, tools |
package/dist/cli.js CHANGED
@@ -34296,6 +34296,7 @@ var init_top_models = __esm({
34296
34296
  "minimax/minimax-m3",
34297
34297
  "minimax/minimax-m2.7",
34298
34298
  "moonshot/kimi-k3",
34299
+ "qwen/qwen3.7-max",
34299
34300
  "deepseek/deepseek-v4-pro",
34300
34301
  "deepseek/deepseek-chat",
34301
34302
  "deepseek/deepseek-reasoner",
@@ -34522,6 +34523,17 @@ var init_models = __esm({
34522
34523
  "kimi-k2.6": "moonshot/kimi-k2.6",
34523
34524
  "kimi-k2.5": "moonshot/kimi-k2.5",
34524
34525
  "nvidia/kimi-k2.5": "moonshot/kimi-k2.5",
34526
+ // Qwen — Qwen3.7 Max is Alibaba's current flagship for reasoning, coding,
34527
+ // and agentic tool use. EXPLICIT PINS ONLY: bare `qwen` deliberately stays
34528
+ // unbound. Every other qwen* shorthand below points at a FREE model
34529
+ // (qwen-coder, qwen-thinking, qwen3-next, qwen3.5-122b), so binding the
34530
+ // shortest name to a $1.475/$4.425 flagship would silently charge callers
34531
+ // who typed it expecting the free tier — same rule that keeps generic
34532
+ // `kimi` on K2.7. (`grok` WAS promoted to 4.5, but only after the cost
34533
+ // tradeoff was argued explicitly; there's no such case for qwen yet.)
34534
+ "qwen3.7-max": "qwen/qwen3.7-max",
34535
+ "qwen-3.7-max": "qwen/qwen3.7-max",
34536
+ "qwen3-7-max": "qwen/qwen3.7-max",
34525
34537
  // Google
34526
34538
  // gemini-3-pro-preview delisted by Google 2026-06-06 — mirror the gateway
34527
34539
  // redirect to its successor so pinned callers land on 3.1-pro, not an error.
@@ -35331,6 +35343,27 @@ var init_models = __esm({
35331
35343
  agentic: true,
35332
35344
  toolCalling: true
35333
35345
  },
35346
+ // Qwen3.7 Max — BlockRun's paid Qwen flagship, served through its
35347
+ // OpenRouter credit pool. The gateway applies its standard 5% margin at
35348
+ // settlement, so keep the catalog rates at the upstream $1.475/$4.425 COGS.
35349
+ // NOTE: `reasoning: true` also enrolls this id in REASONING_MODEL_IDS
35350
+ // (proxy.ts), which raises its per-model timeout from 60s to 180s.
35351
+ // `toolCalling: true` is LIVE-VERIFIED (2026-07-20): a real request through
35352
+ // the gateway returned a structured tool_calls array (name + valid JSON
35353
+ // arguments, finish_reason "tool_calls"), not the textual leak that Kimi K3
35354
+ // (#213), Gemini (#189) and GPT (#193) produce. Don't downgrade on a hunch.
35355
+ {
35356
+ id: "qwen/qwen3.7-max",
35357
+ name: "Qwen3.7 Max",
35358
+ version: "3.7-max",
35359
+ inputPrice: 1.475,
35360
+ outputPrice: 4.425,
35361
+ contextWindow: 1e6,
35362
+ maxOutput: 65536,
35363
+ reasoning: true,
35364
+ agentic: true,
35365
+ toolCalling: true
35366
+ },
35334
35367
  // Kimi K2.6 — superseded by K2.7 (2026-06-13), hidden on BlockRun but still routable.
35335
35368
  {
35336
35369
  id: "moonshot/kimi-k2.6",
package/dist/index.js CHANGED
@@ -86,6 +86,7 @@ var init_top_models = __esm({
86
86
  "minimax/minimax-m3",
87
87
  "minimax/minimax-m2.7",
88
88
  "moonshot/kimi-k3",
89
+ "qwen/qwen3.7-max",
89
90
  "deepseek/deepseek-v4-pro",
90
91
  "deepseek/deepseek-chat",
91
92
  "deepseek/deepseek-reasoner",
@@ -312,6 +313,17 @@ var init_models = __esm({
312
313
  "kimi-k2.6": "moonshot/kimi-k2.6",
313
314
  "kimi-k2.5": "moonshot/kimi-k2.5",
314
315
  "nvidia/kimi-k2.5": "moonshot/kimi-k2.5",
316
+ // Qwen — Qwen3.7 Max is Alibaba's current flagship for reasoning, coding,
317
+ // and agentic tool use. EXPLICIT PINS ONLY: bare `qwen` deliberately stays
318
+ // unbound. Every other qwen* shorthand below points at a FREE model
319
+ // (qwen-coder, qwen-thinking, qwen3-next, qwen3.5-122b), so binding the
320
+ // shortest name to a $1.475/$4.425 flagship would silently charge callers
321
+ // who typed it expecting the free tier — same rule that keeps generic
322
+ // `kimi` on K2.7. (`grok` WAS promoted to 4.5, but only after the cost
323
+ // tradeoff was argued explicitly; there's no such case for qwen yet.)
324
+ "qwen3.7-max": "qwen/qwen3.7-max",
325
+ "qwen-3.7-max": "qwen/qwen3.7-max",
326
+ "qwen3-7-max": "qwen/qwen3.7-max",
315
327
  // Google
316
328
  // gemini-3-pro-preview delisted by Google 2026-06-06 — mirror the gateway
317
329
  // redirect to its successor so pinned callers land on 3.1-pro, not an error.
@@ -1121,6 +1133,27 @@ var init_models = __esm({
1121
1133
  agentic: true,
1122
1134
  toolCalling: true
1123
1135
  },
1136
+ // Qwen3.7 Max — BlockRun's paid Qwen flagship, served through its
1137
+ // OpenRouter credit pool. The gateway applies its standard 5% margin at
1138
+ // settlement, so keep the catalog rates at the upstream $1.475/$4.425 COGS.
1139
+ // NOTE: `reasoning: true` also enrolls this id in REASONING_MODEL_IDS
1140
+ // (proxy.ts), which raises its per-model timeout from 60s to 180s.
1141
+ // `toolCalling: true` is LIVE-VERIFIED (2026-07-20): a real request through
1142
+ // the gateway returned a structured tool_calls array (name + valid JSON
1143
+ // arguments, finish_reason "tool_calls"), not the textual leak that Kimi K3
1144
+ // (#213), Gemini (#189) and GPT (#193) produce. Don't downgrade on a hunch.
1145
+ {
1146
+ id: "qwen/qwen3.7-max",
1147
+ name: "Qwen3.7 Max",
1148
+ version: "3.7-max",
1149
+ inputPrice: 1.475,
1150
+ outputPrice: 4.425,
1151
+ contextWindow: 1e6,
1152
+ maxOutput: 65536,
1153
+ reasoning: true,
1154
+ agentic: true,
1155
+ toolCalling: true
1156
+ },
1124
1157
  // Kimi K2.6 — superseded by K2.7 (2026-06-13), hidden on BlockRun but still routable.
1125
1158
  {
1126
1159
  id: "moonshot/kimi-k2.6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.230",
3
+ "version": "0.12.231",
4
4
  "description": "Smart LLM router — save 85% on inference costs. 55+ models (8 free), one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -135,7 +135,7 @@ Rules handle ~~80% of requests in <1ms. Only ambiguous queries hit the LLM class
135
135
 
136
136
  ## Available Models
137
137
 
138
- 55+ models including: gpt-5.6-terra [balanced, stable default], gpt-5.6-sol [flagship], gpt-5.6-luna [cost-efficient], gpt-5.5, gpt-5.4, gpt-4o, o3, claude-fable-5, claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5, claude-sonnet-4.6, gemini-3.1-pro, gemini-2.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.5, grok-4.3, grok-build-0.1, kimi-k3 [1M ctx flagship], kimi-k2.7, and 8 free NVIDIA models (mistral-large-3-675b [default, 675B flagship], deepseek-v4-flash [1M context], seed-oss-36b [coding], nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
138
+ 55+ models including: gpt-5.6-terra [balanced, stable default], gpt-5.6-sol [flagship], gpt-5.6-luna [cost-efficient], gpt-5.5, gpt-5.4, gpt-4o, o3, claude-fable-5, claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5, claude-sonnet-4.6, gemini-3.1-pro, gemini-2.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.5, grok-4.3, grok-build-0.1, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.7-max [Qwen flagship, 1M ctx], and 8 free NVIDIA models (mistral-large-3-675b [default, 675B flagship], deepseek-v4-flash [1M context], seed-oss-36b [coding], nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
139
139
 
140
140
  ## Built-in Agent Tools
141
141
 
@@ -32,6 +32,7 @@
32
32
  "minimax/minimax-m3",
33
33
  "minimax/minimax-m2.7",
34
34
  "moonshot/kimi-k3",
35
+ "qwen/qwen3.7-max",
35
36
  "deepseek/deepseek-v4-pro",
36
37
  "deepseek/deepseek-chat",
37
38
  "deepseek/deepseek-reasoner",