Commit Graph
5 Commits
Author SHA1 Message Date
Florian Schmidt e39a244751 app: show the reset history of each long limit window
A Resets section after the window charts gives, per provider, totals for
the listed instances, a timeline with each burn-up and the skipped time,
early resets by local hour and weekday, and a sortable instance table with
a detailed tooltip per row (D8, D12). The breakdown and reset tables share
their sorting, header and expander code.

Refs #14
2026-10-18 10:07:40 +02:00
Florian Schmidt 1c3f857a2c core: add the reset history, API list prices and window series
The developer wants figures for every reset: how long an instance lasted,
its tokens, its final use, its API value, what it left unused and what an
early reset handed out (D12, D13). Instances come from one window series,
so a Codex limit that moves between the primary and secondary slot stays
one history (D7).

Building the spans once also fixes two D7 cases: the hour in which one
instance ends and the next starts goes to the new instance instead of
being lost, and a late sample of an old instance no longer places it after
a newer one.

Refs #14
Refs #9
2026-10-18 10:07:40 +02:00
schmidt.florian d5ad3ecee9 app: render the panel with an injected clock so tests do not depend on the date (#12)
The headless forecast test failed from 2026-10-16 on because the panel
read the real clock while its fixture fixes the time.

- App: PanelWindow takes an optional TimeProvider (the system clock by
  default) and passes it to the pace bar, burn-up, peak and usage charts
  and every forecast label. The burn-up chart uses the panel's render
  time as now.
- Tests: headless panels run on a fixed clock at fixture time, with a
  check before, at and after the forecast start. App and Core tests
  with fixed-date Claude events pin HistoryStore's clock, so the 60-day
  retention cannot drop them later.

Closes #11
2026-10-17 09:28:15 +02:00
schmidt.florian adb8f5b88d app: redesign the panel and add limit forecasts and daily week use (#6)
Redesign the stats panel after the developer's feedback on v1 and add
limit forecasts, daily week use and token-based estimates (D7, D8).

- Panel: a fixed header with range and provider controls, limit tiles
  with pace chips, meters and forecasts, week use per day, token KPIs
  and charts, one burn-up chart per limit window with past instances,
  and a sortable breakdown whose "Other" row expands. One tooltip
  component for every chart, tile and table.
- Core (D7): average and recent-rate forecasts, the reach date whenever
  use is over pace, days of a long window with even pace and daily
  budget, window instances derived from resets with a 15-minute
  tolerance, and estimates from price-weighted tokens where samples are
  missing. Forecasts start at 10 % of a window, or as soon as it is
  ahead, so a Codex week far ahead right after its reset warns too.
- Settings, popups and the version (1.1.0) follow the new design.

Closes #5
Closes #7
2026-10-15 19:06:04 +02:00
schmidt.florian f8afd11679 feat: add FinalToken v1 for Claude and Codex usage (#2)
FinalToken v1: a NativeAOT tray app for Windows 11 and CachyOS that tracks
Claude Code and Codex usage and limits through their CLIs only, with no
provider sign-in and no tokens (R1-R7, D1-D11).

- Core: incremental collectors for Claude transcripts and Codex
  rollouts, limit probes through `claude -p /usage` and
  `codex app-server`, a journaled history store, the refresh engine,
  pace and popup decisions, and the snapshot.json contract.
- App (Avalonia): stats panel with limit bars, pace, projections, token
  totals, charts, limit history and breakdowns; tray, settings,
  non-activating pace popups, single-instance activation, start with
  the OS, and the Off/Ask/Automatic Stream Deck plugin install.
- Stream Deck plugin (SDK v2, NativeAOT) for Elgato and OpenDeck.
- finaltoken-cli, tools/publish.py, the documentation check and the
  agent review workflow.

Closes #1
2026-10-14 22:11:19 +02:00