opencode-statboard 2.10.35 → 2.10.36

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-statboard",
3
- "version": "2.10.35",
3
+ "version": "2.10.36",
4
4
  "description": "Real-time dashboard for opencode token usage and cost statistics",
5
5
  "main": "server.js",
6
6
  "bin": {
package/server.js CHANGED
@@ -1600,14 +1600,14 @@ async function fetchOpenRouterQuota() {
1600
1600
  const d = j.data || {};
1601
1601
  const eb = d.effective_budget || {};
1602
1602
  // free_model_daily_requests is account-level (shared across all keys of the same account).
1603
- // Only show RPD for the free tier key; paid keys don't have their own RPD.
1603
+ // Show RPD for all keys so the user can see the account's daily free model usage.
1604
1604
  const isFree = !!d.is_free_tier;
1605
1605
  accounts.push({
1606
1606
  label, limitUsd: d.limit != null ? d.limit : null, usedUsd: d.usage || 0,
1607
1607
  remainingUsd: d.limit_remaining != null ? d.limit_remaining : null,
1608
1608
  dailyUsed: d.usage_daily || 0, weeklyUsed: d.usage_weekly || 0, monthlyUsed: d.usage_monthly || 0,
1609
1609
  isFreeTier: isFree, expiresAt: d.expires_at || null,
1610
- freeModelDaily: isFree ? (d.free_model_daily_requests || null) : null,
1610
+ freeModelDaily: d.free_model_daily_requests || null,
1611
1611
  budgetScope: eb.scope || null, budgetLimit: eb.limit_usd != null ? eb.limit_usd : null,
1612
1612
  budgetSpend: eb.spend_usd != null ? eb.spend_usd : null,
1613
1613
  budgetRemaining: eb.remaining_usd != null ? eb.remaining_usd : null,