Skip to content

v0.5.0 — local models, told apart from unknown ones

Choose a tag to compare

@ankit-arora-369 ankit-arora-369 released this 28 Aug 19:05
· 69 commits to main since this release
Immutable release. Only release title and notes can be modified.

Upgrading migrates your database on first open. Nothing is lost; see below.

Local models are now not_metered, not unpriced

A model running on your own hardware was reported the same way as a hosted model whose rate we simply do not have. Both show no dollar figure, but the claims differ: one says we are ignorant, the other there is nothing to know. doctor and the scan summary now count them apart.

not metered   1 (qwen3:0.6b) — no per-token rate exists
unpriced      1 (hy3-free)

Schema version 2, and the project's first migration

usage_events gains upstream_provider: a router like OpenCode reports OpenAI, DeepSeek and a local model through one adapter, and only this distinguishes them.

CREATE TABLE IF NOT EXISTS never alters an existing table, so without a migration an upgrade would keep the old shape and fail on the first insert. It runs on open, is keyed on user_version, and is idempotent.

Existing OpenCode rows are dropped so the next scan rebuilds them with the field set — they cannot be repaired in place, because inserts are DO NOTHING by design. Nothing is lost: every row derives from logs your agents still hold. Scan offsets are deliberately untouched.

Verified on a real 2,349-event database: version 1 → 2, column added, offsets kept, stable across repeated opens.

Fixed

  • The OpenCode test fixture was never committed. .gitignore carries *.db to protect your real database and caught the fixture too, so those tests passed locally and errored on every CI run. A test now asserts the fixture is tracked.
  • Six tests decayed with the calendar. The Claude plan-usage fixture used absolute timestamps while the adapter drops samples older than seven days — so they were always going to expire, and did, exactly a week later. Nothing in the product was wrong.

Install

git clone https://github.com/devopsinside/burn-o-meter
cd burn-o-meter && ./install.sh

Full history in CHANGELOG.md.