fix
patch
billing
feat/phase-2g-bundle
fix(billing): deplete pack token balance as monthly allotment is exceeded + show equivalents in UI
billing-index-usage.mjs: - After recording monthly_indexing_tokens_used, compute the marginal overflow beyond the tier's monthly allotment and deduct it from pack_indexing_tokens_balance in the same atomic mutateBillingDb write. - When the billing period resets (monthly tokens → 0), overflow restarts from zero so the pack balance is never double-charged. - monthlyIncluded === null (unlimited tier) → no pack deduction.
hub.js + index.html: - Pack balance line now reads: "80M rollover tokens (≈ 1,600 index jobs or 80,000 searches)" - Ratios: 50K tokens per index job, 1K tokens per search (same as pack cards).
sha256:b7191ee5f4b6e9ce2ca0b5882bb63eb77f5bf0146f2ece980c16f602f09b3c96
sha
sha256:ace9882e92690709032106a9b261aa5b65e71d1872bdee41e46d87f30a7105d3
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:b7191ee5f4b6e9ce2ca0b5882bb63eb77f5bf0146f2ece980c16f602f09b3c96 --body "your comment"
No comments yet. Be the first to start the discussion.