@blockrun/clawrouter 0.12.290 → 0.12.291

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.
@@ -502,6 +502,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
502
502
  supportsTools: true,
503
503
  supportsVision: true
504
504
  },
505
+ "anthropic/claude-fable-5.1": {
506
+ contextWindow: 1e6,
507
+ maxOutputTokens: 128e3,
508
+ supportsTools: true,
509
+ supportsVision: true
510
+ },
505
511
  "anthropic/claude-haiku-4.5": {
506
512
  // override: The public catalog's `categories` omit "vision" for this Anthropic model even though the gateway accepts image input for it (the prior hand-maintained snapshot had it, and Anthropic's model card lists it). Without this the vision filter would silently drop it — reported against the catalog; remove once the categories carry vision.
507
513
  contextWindow: 2e5,
@@ -533,6 +539,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
533
539
  supportsTools: true,
534
540
  supportsVision: true
535
541
  },
542
+ "anthropic/claude-opus-5.5": {
543
+ contextWindow: 1e6,
544
+ maxOutputTokens: 128e3,
545
+ supportsTools: true,
546
+ supportsVision: true
547
+ },
536
548
  "anthropic/claude-sonnet-4.5": {
537
549
  contextWindow: 2e5,
538
550
  maxOutputTokens: 64e3,
@@ -552,6 +564,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
552
564
  supportsTools: true,
553
565
  supportsVision: true
554
566
  },
567
+ "anthropic/claude-sonnet-5.5": {
568
+ contextWindow: 1e6,
569
+ maxOutputTokens: 128e3,
570
+ supportsTools: true,
571
+ supportsVision: true
572
+ },
555
573
  "cohere/north-mini-code": {
556
574
  // supportsTools: not probed — fails closed
557
575
  contextWindow: 256e3,
@@ -571,6 +589,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
571
589
  supportsTools: true,
572
590
  supportsVision: false
573
591
  },
592
+ "deepseek/deepseek-v4-flash-vision-exp": {
593
+ contextWindow: 1048576,
594
+ maxOutputTokens: 65536,
595
+ supportsTools: false,
596
+ supportsVision: true
597
+ },
574
598
  "deepseek/deepseek-v4-pro": {
575
599
  contextWindow: 1048576,
576
600
  maxOutputTokens: 65536,
@@ -631,6 +655,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
631
655
  supportsTools: true,
632
656
  supportsVision: true
633
657
  },
658
+ "google/gemini-3.8-flash": {
659
+ contextWindow: 1048576,
660
+ maxOutputTokens: 65536,
661
+ supportsTools: true,
662
+ supportsVision: true
663
+ },
634
664
  "minimax/minimax-m2.7": {
635
665
  contextWindow: 204800,
636
666
  maxOutputTokens: 16384,
@@ -656,6 +686,13 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
656
686
  supportsTools: false,
657
687
  supportsVision: true
658
688
  },
689
+ "nvidia/muse-glimmer-30b": {
690
+ // supportsTools: not probed — fails closed
691
+ contextWindow: 131072,
692
+ maxOutputTokens: 16384,
693
+ supportsTools: false,
694
+ supportsVision: false
695
+ },
659
696
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": {
660
697
  // override: The catalog tags this model "vision", but a correctly sized probe does not hold up (ClawRouter, 2026-08-31): a 64x64 solid-red PNG was named correctly 1 of 4 times on Base, and on Solana the image was silently dropped and a text model answered "white". An HTTP 200 with a confident wrong answer gives the caller nothing to branch on, so image turns must not be routed here. It is ecoTiers.SIMPLE.fallback[0] since nemotron-3-nano-30b was delisted (2026-09-08); remove once a probe of this size comes back right on both chains.
661
698
  contextWindow: 256e3,
@@ -719,6 +756,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
719
756
  supportsTools: true,
720
757
  supportsVision: false
721
758
  },
759
+ "openai/gpt-5.1": {
760
+ contextWindow: 4e5,
761
+ maxOutputTokens: 128e3,
762
+ supportsTools: true,
763
+ supportsVision: true
764
+ },
722
765
  "openai/gpt-5.2": {
723
766
  contextWindow: 4e5,
724
767
  maxOutputTokens: 128e3,
@@ -813,6 +856,24 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
813
856
  supportsTools: true,
814
857
  supportsVision: true
815
858
  },
859
+ "openai/gpt-6-astra": {
860
+ contextWindow: 105e4,
861
+ maxOutputTokens: 128e3,
862
+ supportsTools: true,
863
+ supportsVision: true
864
+ },
865
+ "openai/gpt-6-luna": {
866
+ contextWindow: 105e4,
867
+ maxOutputTokens: 128e3,
868
+ supportsTools: true,
869
+ supportsVision: true
870
+ },
871
+ "openai/gpt-6-sol": {
872
+ contextWindow: 105e4,
873
+ maxOutputTokens: 128e3,
874
+ supportsTools: true,
875
+ supportsVision: true
876
+ },
816
877
  "openai/o1": {
817
878
  contextWindow: 2e5,
818
879
  maxOutputTokens: 1e5,
@@ -837,6 +898,13 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
837
898
  supportsTools: true,
838
899
  supportsVision: false
839
900
  },
901
+ "poolside/laguna-s-2.1": {
902
+ // supportsTools: not probed — fails closed
903
+ contextWindow: 1048576,
904
+ maxOutputTokens: 131072,
905
+ supportsTools: false,
906
+ supportsVision: false
907
+ },
840
908
  "poolside/laguna-xs-2.1": {
841
909
  // supportsTools: not probed — fails closed
842
910
  contextWindow: 131072,
@@ -862,10 +930,24 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
862
930
  supportsTools: true,
863
931
  supportsVision: false
864
932
  },
865
- "tencent/hy3": {
866
- contextWindow: 262144,
867
- maxOutputTokens: 128e3,
868
- supportsTools: true,
933
+ "qwen/qwen3.8-flash": {
934
+ contextWindow: 1e6,
935
+ maxOutputTokens: 131072,
936
+ supportsTools: false,
937
+ supportsVision: true
938
+ },
939
+ "qwen/qwen3.8-max": {
940
+ // supportsTools: not probed — fails closed
941
+ contextWindow: 1e6,
942
+ maxOutputTokens: 131072,
943
+ supportsTools: false,
944
+ supportsVision: false
945
+ },
946
+ "tencent/hy4-preview": {
947
+ // supportsTools: not probed — fails closed
948
+ contextWindow: 1048576,
949
+ maxOutputTokens: 64e3,
950
+ supportsTools: false,
869
951
  supportsVision: false
870
952
  },
871
953
  "xai/grok-4.3": {
@@ -880,12 +962,30 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
880
962
  supportsTools: true,
881
963
  supportsVision: true
882
964
  },
965
+ "xai/grok-4.6": {
966
+ contextWindow: 5e5,
967
+ maxOutputTokens: 16384,
968
+ supportsTools: true,
969
+ supportsVision: true
970
+ },
971
+ "xai/grok-4.7": {
972
+ contextWindow: 5e5,
973
+ maxOutputTokens: 16384,
974
+ supportsTools: true,
975
+ supportsVision: true
976
+ },
883
977
  "xai/grok-build-0.1": {
884
978
  contextWindow: 256e3,
885
979
  maxOutputTokens: 16384,
886
980
  supportsTools: true,
887
981
  supportsVision: false
888
982
  },
983
+ "xiaomi/mimo-v2.5": {
984
+ contextWindow: 1048576,
985
+ maxOutputTokens: 131072,
986
+ supportsTools: true,
987
+ supportsVision: true
988
+ },
889
989
  "xiaomi/mimo-v2.5-pro": {
890
990
  contextWindow: 1048576,
891
991
  maxOutputTokens: 131072,
@@ -2128,6 +2228,19 @@ function evidenceCandidates(task) {
2128
2228
  }
2129
2229
  return [];
2130
2230
  }
2231
+ var VERIFIED_TOOL_FALLBACKS = [
2232
+ "anthropic/claude-fable-5.1",
2233
+ "anthropic/claude-opus-5.5",
2234
+ "anthropic/claude-sonnet-5.5",
2235
+ "google/gemini-3.8-flash",
2236
+ "openai/gpt-5.1",
2237
+ "openai/gpt-6-astra",
2238
+ "openai/gpt-6-luna",
2239
+ "openai/gpt-6-sol",
2240
+ "xai/grok-4.6",
2241
+ "xai/grok-4.7",
2242
+ "xiaomi/mimo-v2.5"
2243
+ ];
2131
2244
  function isEligible(modelId, features, maxOutputTokens, options) {
2132
2245
  const model = options.modelCapabilities?.[modelId] ?? DEFAULT_MODEL_CAPABILITIES[modelId];
2133
2246
  if (!model) return true;
@@ -2174,8 +2287,17 @@ var PortfolioStrategy = class {
2174
2287
  const tierConfig = tierConfigs[targetTier];
2175
2288
  const configuredCandidates = tierConfig ? getFallbackChain(targetTier, tierConfigs) : [];
2176
2289
  const unavailable = new Set(options.unavailableModels ?? []);
2290
+ const verifiedToolFallbacks = features.needsTools ? VERIFIED_TOOL_FALLBACKS.filter((model2) => options.modelPricing.has(model2)) : [];
2291
+ if (options.routingProfile !== "premium") {
2292
+ const fallbackCost = (model2) => estimatedCost(model2, options, features.estimatedInputTokens, maxOutputTokens);
2293
+ verifiedToolFallbacks.sort((a, b) => fallbackCost(a) - fallbackCost(b));
2294
+ }
2177
2295
  const chain = [
2178
- .../* @__PURE__ */ new Set([...configuredCandidates, ...evidenceCandidates(features.taskType)])
2296
+ .../* @__PURE__ */ new Set([
2297
+ ...configuredCandidates,
2298
+ ...evidenceCandidates(features.taskType),
2299
+ ...verifiedToolFallbacks
2300
+ ])
2179
2301
  ].filter(
2180
2302
  (model2) => typeof model2 === "string" && model2.length > 0 && !unavailable.has(model2)
2181
2303
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.290",
3
+ "version": "0.12.291",
4
4
  "description": "Smart LLM router — save 84% on inference costs. 88 models (7 free). Pay by credit card (API key) or USDC (x402 wallet).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -104,7 +104,7 @@
104
104
  "bs58": "^6.0.0",
105
105
  "https-proxy-agent": "^9.1.0",
106
106
  "undici": "^8.11.2",
107
- "viem": "~2.56.9"
107
+ "viem": "~2.57.5"
108
108
  },
109
109
  "peerDependencies": {
110
110
  "openclaw": ">=2025.1.0"
@@ -116,7 +116,7 @@
116
116
  },
117
117
  "devDependencies": {
118
118
  "@blockrun/model-catalog": "https://codeload.github.com/BlockRunAI/model-catalog/tar.gz/465c45941fb8ea9d6858fe8402abc8ba8934be90",
119
- "@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/e38958bba9af0aaa788c5baafbdaff539638b7c9",
119
+ "@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/27125a3dfe319a6f422a0c0f41bf1666b0dc61a9",
120
120
  "@eslint/js": "^10.0.1",
121
121
  "eslint": "^10.2.0",
122
122
  "openclaw": "^2026.7.2-beta.7",