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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.23.5
2
+ - fix: tier-based median cost fallback for unknown models
3
+
4
+
1
5
  ## 0.23.4
2
6
  - fix: add complete OpenCode Go + Zen pricing maps, footer dedup/regex fix, free icon
3
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibeostheog",
3
- "version": "0.23.4",
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",
@@ -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
- return 0.00001; // unknown model default cheap, but not free
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")