@blockrun/clawrouter 0.9.15 → 0.9.17

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/index.js CHANGED
@@ -1632,8 +1632,9 @@ var DEFAULT_ROUTING_CONFIG = {
1632
1632
  "deepseek/deepseek-chat",
1633
1633
  // Another cheap option
1634
1634
  "xai/grok-4-0709",
1635
- "openai/gpt-4o",
1636
1635
  "openai/gpt-5.2",
1636
+ // Newer and cheaper input than gpt-4o
1637
+ "openai/gpt-4o",
1637
1638
  "anthropic/claude-sonnet-4"
1638
1639
  ]
1639
1640
  },
@@ -1643,11 +1644,9 @@ var DEFAULT_ROUTING_CONFIG = {
1643
1644
  fallback: [
1644
1645
  "deepseek/deepseek-reasoner",
1645
1646
  // Cheap reasoning model as first fallback
1646
- "xai/grok-4-fast-reasoning",
1647
- "openai/o3",
1648
1647
  "openai/o4-mini",
1649
- // Latest o-series mini
1650
- "moonshot/kimi-k2.5"
1648
+ // Newer and cheaper than o3 ($1.10 vs $2.00)
1649
+ "openai/o3"
1651
1650
  ]
1652
1651
  }
1653
1652
  },
@@ -1671,7 +1670,7 @@ var DEFAULT_ROUTING_CONFIG = {
1671
1670
  REASONING: {
1672
1671
  primary: "deepseek/deepseek-reasoner",
1673
1672
  // $0.55/$2.19
1674
- fallback: ["xai/grok-4-fast-reasoning", "moonshot/kimi-k2.5"]
1673
+ fallback: ["xai/grok-4-1-fast-reasoning"]
1675
1674
  }
1676
1675
  },
1677
1676
  // Premium tier configs - best quality (blockrun/premium)
@@ -1683,22 +1682,22 @@ var DEFAULT_ROUTING_CONFIG = {
1683
1682
  fallback: ["anthropic/claude-haiku-4.5", "google/gemini-2.5-flash", "xai/grok-code-fast-1"]
1684
1683
  },
1685
1684
  MEDIUM: {
1686
- primary: "anthropic/claude-sonnet-4",
1687
- // $3/$15 - reasoning/instructions
1685
+ primary: "openai/gpt-5.2-codex",
1686
+ // $2.50/$10 - strong coding for medium tasks
1688
1687
  fallback: [
1689
- "openai/gpt-5.2-codex",
1690
1688
  "moonshot/kimi-k2.5",
1691
1689
  "google/gemini-2.5-pro",
1692
- "xai/grok-4-0709"
1690
+ "xai/grok-4-0709",
1691
+ "anthropic/claude-sonnet-4"
1693
1692
  ]
1694
1693
  },
1695
1694
  COMPLEX: {
1696
- primary: "openai/gpt-5.2-codex",
1697
- // $2.50/$10 - complex coding (78% cost savings vs Opus)
1695
+ primary: "anthropic/claude-sonnet-4",
1696
+ // $3/$15 - best reasoning/analysis for complex tasks
1698
1697
  fallback: [
1699
1698
  "anthropic/claude-opus-4.6",
1700
1699
  "anthropic/claude-opus-4.5",
1701
- "anthropic/claude-sonnet-4",
1700
+ "openai/gpt-5.2-codex",
1702
1701
  "google/gemini-3-pro-preview",
1703
1702
  "moonshot/kimi-k2.5"
1704
1703
  ]
@@ -1709,6 +1708,8 @@ var DEFAULT_ROUTING_CONFIG = {
1709
1708
  fallback: [
1710
1709
  "anthropic/claude-opus-4.6",
1711
1710
  "anthropic/claude-opus-4.5",
1711
+ "openai/o4-mini",
1712
+ // Newer and cheaper than o3 ($1.10 vs $2.00)
1712
1713
  "openai/o3",
1713
1714
  "xai/grok-4-1-fast-reasoning"
1714
1715
  ]
@@ -1721,7 +1722,7 @@ var DEFAULT_ROUTING_CONFIG = {
1721
1722
  // Cheaper than Haiku ($0.5/$2.4 vs $1/$5), larger context
1722
1723
  fallback: [
1723
1724
  "anthropic/claude-haiku-4.5",
1724
- "xai/grok-4-fast-non-reasoning",
1725
+ "xai/grok-4-1-fast-non-reasoning",
1725
1726
  "openai/gpt-4o-mini"
1726
1727
  ]
1727
1728
  },
@@ -1745,8 +1746,7 @@ var DEFAULT_ROUTING_CONFIG = {
1745
1746
  // Strong tool use + reasoning for agentic tasks
1746
1747
  fallback: [
1747
1748
  "anthropic/claude-opus-4.6",
1748
- "xai/grok-4-fast-reasoning",
1749
- "moonshot/kimi-k2.5",
1749
+ "xai/grok-4-1-fast-reasoning",
1750
1750
  "deepseek/deepseek-reasoner"
1751
1751
  ]
1752
1752
  }
@@ -5268,7 +5268,7 @@ function injectModelsConfig(logger) {
5268
5268
  { id: "gemini", alias: "gemini" },
5269
5269
  { id: "flash", alias: "flash" }
5270
5270
  ];
5271
- const DEPRECATED_ALIASES = ["blockrun/nvidia", "blockrun/gpt", "blockrun/o3", "blockrun/grok"];
5271
+ const DEPRECATED_ALIASES = ["blockrun/nvidia", "blockrun/gpt", "blockrun/o3", "blockrun/grok", "blockrun/mini"];
5272
5272
  if (!defaults.models) {
5273
5273
  defaults.models = {};
5274
5274
  needsWrite = true;