Skip to content

Releases: akshatshaw/tokenmap

v0.1.2

10 May 15:14

Choose a tag to compare

v0.1.2 — Cost calculation fix

Fixed

  • Cost totals stuck on lifetime numbers regardless of filter.
    The Claude adapter's _enrich_from_stats_cache was overwriting
    per-year token totals (built from JSONL logs) with
    stats-cache.json's top-level modelUsage block, which contains
    lifetime totals with no date keys. Result: identical cost output
    on every run and --year filters silently ignored.
  • Enrichment now reads the dated statsCache block and respects
    year_filter, so per-year cost breakdowns reflect only that
    range.
  • Filtering an empty year now correctly reports $0.00 instead of
    the lifetime figure.

Internal

  • Threaded year_filter through _enrich_from_stats_cache call
    site in load().
  • Removed unused pathlib.Path import in
    tokenmap/adapters/claude.py.

Upgrade

pip install --upgrade tokenmap # or: uv pip install --upgrade
tokenmap

No API or CLI changes. Drop-in upgrade.

Intial release

18 Apr 11:28

Choose a tag to compare

tokenmap

yml chnages

v0.1.1

18 Apr 12:44

Choose a tag to compare

  • Fixed image rendering issue