@blockrun/clawrouter 0.8.5 → 0.8.7

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
@@ -10,7 +10,7 @@ One wallet, 30+ models, zero API keys.
10
10
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.7-blue.svg)](https://typescriptlang.org)
11
11
  [![Node](https://img.shields.io/badge/node-%E2%89%A520-brightgreen.svg)](https://nodejs.org)
12
12
 
13
- [Docs](https://blockrun.ai/docs) · [Models](https://blockrun.ai/models) · [Configuration](docs/configuration.md) · [Features](docs/features.md) · [Troubleshooting](docs/troubleshooting.md) · [Telegram](https://t.me/blockrunAI) · [X](https://x.com/BlockRunAI)
13
+ [Docs](https://blockrun.ai/docs) · [Models](https://blockrun.ai/models) · [Configuration](docs/configuration.md) · [Features](docs/features.md) · [Windows](docs/windows-installation.md) · [Troubleshooting](docs/troubleshooting.md) · [Telegram](https://t.me/blockrunAI) · [X](https://x.com/BlockRunAI)
14
14
 
15
15
  </div>
16
16
 
@@ -53,6 +53,21 @@ openclaw gateway restart
53
53
 
54
54
  Done! Smart routing (`blockrun/auto`) is now your default model.
55
55
 
56
+ ### Windows Installation
57
+
58
+ ⚠️ **Current Status:** Windows installation is temporarily unavailable due to an OpenClaw CLI bug. The issue is with the OpenClaw framework, not ClawRouter itself.
59
+
60
+ **📖 Full Windows Guide:** [docs/windows-installation.md](docs/windows-installation.md)
61
+
62
+ **Quick Summary:**
63
+ - ✅ ClawRouter code is Windows-compatible
64
+ - ❌ OpenClaw CLI has a `spawn EINVAL` bug on Windows
65
+ - ✅ Works perfectly on **Linux** and **macOS**
66
+ - 🔧 Manual installation workaround available for advanced users
67
+ - 🧪 Full Windows test infrastructure ready ([.github/workflows/test-windows.yml](.github/workflows/test-windows.yml))
68
+
69
+ **For advanced users:** See the [complete manual installation guide](docs/windows-installation.md) with step-by-step PowerShell instructions.
70
+
56
71
  ### Tips
57
72
 
58
73
  - **Use `/model blockrun/auto`** in any conversation to switch on the fly
package/dist/cli.js CHANGED
@@ -1128,8 +1128,9 @@ var DEFAULT_ROUTING_CONFIG = {
1128
1128
  // Agentic tier configs - models that excel at multi-step autonomous tasks
1129
1129
  agenticTiers: {
1130
1130
  SIMPLE: {
1131
- primary: "anthropic/claude-haiku-4.5",
1132
- fallback: ["moonshot/kimi-k2.5", "xai/grok-4-fast-non-reasoning", "openai/gpt-4o-mini"]
1131
+ primary: "moonshot/kimi-k2.5",
1132
+ // Cheaper than Haiku ($0.5/$2.4 vs $1/$5), larger context
1133
+ fallback: ["anthropic/claude-haiku-4.5", "xai/grok-4-fast-non-reasoning", "openai/gpt-4o-mini"]
1133
1134
  },
1134
1135
  MEDIUM: {
1135
1136
  primary: "xai/grok-code-fast-1",
@@ -1161,7 +1162,7 @@ function route(prompt, systemPrompt, maxOutputTokens, options) {
1161
1162
  const estimatedTokens = Math.ceil(fullText.length / 4);
1162
1163
  const ruleResult = classifyByRules(prompt, systemPrompt, estimatedTokens, config.scoring);
1163
1164
  const agenticScore = ruleResult.agenticScore ?? 0;
1164
- const isAutoAgentic = agenticScore >= 0.75;
1165
+ const isAutoAgentic = agenticScore >= 0.69;
1165
1166
  const isExplicitAgentic = config.overrides.agenticMode ?? false;
1166
1167
  const useAgenticTiers = (isAutoAgentic || isExplicitAgentic) && config.agenticTiers != null;
1167
1168
  const tierConfigs = useAgenticTiers ? config.agenticTiers : config.tiers;