@blockrun/clawrouter 0.10.0 → 0.10.2

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
@@ -1860,7 +1860,11 @@ var DEFAULT_ROUTING_CONFIG = {
1860
1860
  SIMPLE: {
1861
1861
  primary: "moonshot/kimi-k2.5",
1862
1862
  // $0.60/$3.00 - good for simple coding
1863
- fallback: ["anthropic/claude-haiku-4.5", "google/gemini-2.5-flash-lite", "xai/grok-code-fast-1"]
1863
+ fallback: [
1864
+ "anthropic/claude-haiku-4.5",
1865
+ "google/gemini-2.5-flash-lite",
1866
+ "xai/grok-code-fast-1"
1867
+ ]
1864
1868
  },
1865
1869
  MEDIUM: {
1866
1870
  primary: "openai/gpt-5.2-codex",
@@ -1903,7 +1907,11 @@ var DEFAULT_ROUTING_CONFIG = {
1903
1907
  SIMPLE: {
1904
1908
  primary: "moonshot/kimi-k2.5",
1905
1909
  // Cheaper than Haiku ($0.5/$2.4 vs $1/$5), larger context
1906
- fallback: ["anthropic/claude-haiku-4.5", "xai/grok-4-1-fast-non-reasoning", "openai/gpt-4o-mini"]
1910
+ fallback: [
1911
+ "anthropic/claude-haiku-4.5",
1912
+ "xai/grok-4-1-fast-non-reasoning",
1913
+ "openai/gpt-4o-mini"
1914
+ ]
1907
1915
  },
1908
1916
  MEDIUM: {
1909
1917
  primary: "xai/grok-code-fast-1",
@@ -1925,7 +1933,11 @@ var DEFAULT_ROUTING_CONFIG = {
1925
1933
  REASONING: {
1926
1934
  primary: "anthropic/claude-sonnet-4.6",
1927
1935
  // Strong tool use + reasoning for agentic tasks
1928
- fallback: ["anthropic/claude-opus-4.6", "xai/grok-4-1-fast-reasoning", "deepseek/deepseek-reasoner"]
1936
+ fallback: [
1937
+ "anthropic/claude-opus-4.6",
1938
+ "xai/grok-4-1-fast-reasoning",
1939
+ "deepseek/deepseek-reasoner"
1940
+ ]
1929
1941
  }
1930
1942
  },
1931
1943
  overrides: {
@@ -4817,6 +4829,7 @@ async function proxyRequest(req, res, apiBase, payFetch, options, routerOpts, de
4817
4829
  } catch (err) {
4818
4830
  const errorMsg = err instanceof Error ? err.message : String(err);
4819
4831
  console.error(`[ClawRouter] Routing error: ${errorMsg}`);
4832
+ console.error(`[ClawRouter] Run 'npx @blockrun/clawrouter doctor' for help`);
4820
4833
  options.onError?.(new Error(`Routing failed: ${errorMsg}`));
4821
4834
  }
4822
4835
  }