@blockrun/clawrouter 0.12.66 → 0.12.68
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 +24 -0
- package/dist/cli.js +438 -330
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +438 -330
- package/dist/index.js.map +1 -1
- package/docs/clawrouter-vs-openrouter-llm-routing-comparison.md +24 -0
- package/package.json +1 -1
- package/scripts/reinstall.sh +7 -20
- package/scripts/update.sh +17 -12
package/dist/index.d.ts
CHANGED
|
@@ -143,10 +143,6 @@ type ModelPricing = {
|
|
|
143
143
|
* Get the ordered fallback chain for a tier: [primary, ...fallbacks].
|
|
144
144
|
*/
|
|
145
145
|
declare function getFallbackChain(tier: Tier, tierConfigs: Record<Tier, TierConfig>): string[];
|
|
146
|
-
/**
|
|
147
|
-
* Calculate cost for a specific model (used when fallback model is used).
|
|
148
|
-
* Returns updated cost fields for RoutingDecision.
|
|
149
|
-
*/
|
|
150
146
|
declare function calculateModelCost(model: string, modelPricing: Map<string, ModelPricing>, estimatedInputTokens: number, maxOutputTokens: number, routingProfile?: "free" | "eco" | "auto" | "premium"): {
|
|
151
147
|
costEstimate: number;
|
|
152
148
|
baselineCost: number;
|