@blockrun/clawrouter 0.12.303 → 0.12.305

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.
@@ -77,20 +77,20 @@ OpenRouter uses nested model IDs: `openrouter/deepseek/deepseek-v3.2`. OpenClaw'
77
77
 
78
78
  ### How ClawRouter Solves This
79
79
 
80
- ClawRouter uses clean aliases. You say `sonnet` and get `anthropic/claude-sonnet-4-6`. You say `flash` and get `google/gemini-2.5-flash`. No nested prefixes. No double-prefix bugs.
80
+ ClawRouter uses clean aliases. You say `sonnet` and get `anthropic/claude-sonnet-4.6`. You say `flash` and get `google/gemini-2.5-flash`. No nested prefixes. No double-prefix bugs.
81
81
 
82
82
  ```typescript
83
83
  // resolveModelAlias() handles all normalization
84
- "sonnet" → "anthropic/claude-sonnet-4-6"
85
- "opus" → "anthropic/claude-opus-4-6"
84
+ "sonnet" → "anthropic/claude-sonnet-4.6"
85
+ "opus" → "anthropic/claude-opus-5"
86
86
  "flash" → "google/gemini-2.5-flash"
87
- "grok" → "xai/grok-4-0314"
88
- "deepseek" → "deepseek/deepseek-chat"
87
+ "grok" → "xai/grok-4.5"
88
+ "deepseek" → "deepseek/deepseek-v4.1-flash"
89
89
  ```
90
90
 
91
91
  One canonical format. No mangling. No UI inconsistency.
92
92
 
93
- ![Eliminating Model ID Mangling — OpenRouter's nested prefixes cause double-prefix bugs (openrouter/openrouter/auto) and UI stripping issues. ClawRouter uses one canonical format with clean aliases: "sonnet" → anthropic/claude-sonnet-4-6, "flash" → google/gemini-2.5-flash.](./assets/clawrouter-eliminating-model-id-mangling.png)
93
+ ![Eliminating Model ID Mangling — OpenRouter's nested prefixes cause double-prefix bugs (openrouter/openrouter/auto) and UI stripping issues. ClawRouter uses one canonical format with clean aliases: "sonnet" → anthropic/claude-sonnet-4.6, "flash" → google/gemini-2.5-flash.](./assets/clawrouter-eliminating-model-id-mangling.png)
94
94
 
95
95
  ---
96
96
 
@@ -244,8 +244,8 @@ ClawRouter maintains a curated catalog of <!-- br:models.chatVisible -->90<!-- /
244
244
 
245
245
  ```typescript
246
246
  // Delisted models redirect automatically
247
- "xai/grok-code-fast-1" → "deepseek/deepseek-chat"
248
- "google/gemini-2.0-pro" → "google/gemini-3.1-pro"
247
+ "xai/grok-code-fast-1" → "deepseek/deepseek-chat"
248
+ "google/gemini-3-pro-preview" → "google/gemini-3.1-pro"
249
249
  ```
250
250
 
251
251
  No silent drops. No stale catalog. Models are benchmarked for speed, quality, and tool support before inclusion.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.303",
3
+ "version": "0.12.305",
4
4
  "description": "Smart LLM router — save 84% on inference costs. 90 models (7 free). Pay by credit card (API key) or USDC (x402 wallet).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -95,11 +95,11 @@
95
95
  "@polymarket/clob-client-v2": "1.2.0",
96
96
  "@scure/bip32": "^2.0.1",
97
97
  "@scure/bip39": "^1.5.0",
98
- "@solana/kit": "^8.4.0",
99
- "@x402/core": "~2.28.0",
100
- "@x402/evm": "~2.28.0",
101
- "@x402/fetch": "~2.28.0",
102
- "@x402/svm": "~2.28.0",
98
+ "@solana/kit": "^8.6.0",
99
+ "@x402/core": "~2.29.0",
100
+ "@x402/evm": "~2.29.0",
101
+ "@x402/fetch": "~2.29.0",
102
+ "@x402/svm": "~2.29.0",
103
103
  "axios": "^1.20.0",
104
104
  "bs58": "^6.0.0",
105
105
  "https-proxy-agent": "^9.1.0",
@@ -145,6 +145,10 @@
145
145
  "proxy-addr": "^2.0.8",
146
146
  "@x402/svm": {
147
147
  "@solana/program-client-core": "$@solana/kit"
148
+ },
149
+ "@blockrun/llm": {
150
+ "@x402/core": "$@x402/core",
151
+ "@x402/svm": "$@x402/svm"
148
152
  }
149
153
  },
150
154
  "engines": {