vibeostheog 0.23.4 → 0.23.5
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/lib/pricing.js +4 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibeostheog",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.5",
|
|
4
4
|
"description": "Cost-aware delegation enforcer for OpenCode. Tracks model usage, routes Task subagents to cheaper tiers, surfaces cumulative savings in chat. Includes research audit, reporting framework, project memory, progressive scratchpad decadence, and trinity CLI for brain/medium/cheap slot switching.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"release": "node scripts/release.mjs",
|
package/src/lib/pricing.js
CHANGED
|
@@ -799,7 +799,10 @@ export function modelCostPerTurn(model) {
|
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
console.error(`[vibeOS] modelCostPerTurn: unknown model '${model}' (normalized: '${key}') — add to MODEL_USD_PER_TURN`);
|
|
802
|
-
|
|
802
|
+
// Fallback by tier: use median cost of all known models in the same tier
|
|
803
|
+
const tier = classify(model);
|
|
804
|
+
const TIER_FALLBACK = { high: 0.01175, mid: 0.00660, budget: 0.00144 };
|
|
805
|
+
return TIER_FALLBACK[tier] ?? 0.00144;
|
|
803
806
|
}
|
|
804
807
|
export function isModelFree(model) {
|
|
805
808
|
if (!model || typeof model !== "string")
|