@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 +16 -1
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1593,8 +1593,9 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1593
1593
|
// Agentic tier configs - models that excel at multi-step autonomous tasks
|
|
1594
1594
|
agenticTiers: {
|
|
1595
1595
|
SIMPLE: {
|
|
1596
|
-
primary: "
|
|
1597
|
-
|
|
1596
|
+
primary: "moonshot/kimi-k2.5",
|
|
1597
|
+
// Cheaper than Haiku ($0.5/$2.4 vs $1/$5), larger context
|
|
1598
|
+
fallback: ["anthropic/claude-haiku-4.5", "xai/grok-4-fast-non-reasoning", "openai/gpt-4o-mini"]
|
|
1598
1599
|
},
|
|
1599
1600
|
MEDIUM: {
|
|
1600
1601
|
primary: "xai/grok-code-fast-1",
|
|
@@ -1626,7 +1627,7 @@ function route(prompt, systemPrompt, maxOutputTokens, options) {
|
|
|
1626
1627
|
const estimatedTokens = Math.ceil(fullText.length / 4);
|
|
1627
1628
|
const ruleResult = classifyByRules(prompt, systemPrompt, estimatedTokens, config.scoring);
|
|
1628
1629
|
const agenticScore = ruleResult.agenticScore ?? 0;
|
|
1629
|
-
const isAutoAgentic = agenticScore >= 0.
|
|
1630
|
+
const isAutoAgentic = agenticScore >= 0.69;
|
|
1630
1631
|
const isExplicitAgentic = config.overrides.agenticMode ?? false;
|
|
1631
1632
|
const useAgenticTiers = (isAutoAgentic || isExplicitAgentic) && config.agenticTiers != null;
|
|
1632
1633
|
const tierConfigs = useAgenticTiers ? config.agenticTiers : config.tiers;
|