app: show the reset history of each long limit window (#16)

The developer asked for a detailed breakdown of every reset (feedback of
2026-10-18). Limits do not only reset at the end of their week: most Codex
weeks in the local history ended early.

- Core: a limit's samples form a window series (provider, limit name and
  length), so the history follows Codex's week across slots (D7). Instance
  spans are built once. One backward walk gives each instance, real or
  inferred, the start of the instance after it. The hour that holds a
  boundary goes to the instance that starts in it, or else to the one that
  ends in it (#9). A stale sample that would put its instance after a later
  one is ignored. The reset history lists the real instances with their
  figures, totals and early-reset hours (D12). API value uses a dated list
  price table; unknown models stay unpriced (D13).
- App: a Resets section per long window with totals, a timeline of
  burn-ups side by side with skipped time in lanes below, early resets by
  hour and weekday, and a sortable table (D8). The reset tooltip lists
  every model with its tokens and API value. Tall tooltips open beside the
  pointer, and Fluent's 320 px tooltip cap no longer wraps data values.
- Docs: D12 and D13 are new; D7 and D8 cover window series, boundary
  hours and the Resets section.

Closes #14
Closes #9
This commit was merged in pull request #16.
This commit is contained in:
2026-10-18 11:12:38 +02:00
parent 0a08b508a2
commit 82fece85f5
29 changed files with 1570 additions and 137 deletions
+2
View File
@@ -2,5 +2,7 @@
- [2026-10-14] `claude -p "/usage"` writes a transcript into the working directory's project folder unless `--no-session-persistence` is passed; that transcript would show up in Claude token history.
- [2026-10-14] Git Bash rewrites an argument that starts with `/` (`/usage` becomes `C:/Program Files/Git/usage`). Run CLI probes from PowerShell, or set `MSYS_NO_PATHCONV=1`. The app itself starts processes with an argument list, so it is not affected.
- [2026-10-18] Avalonia 12 `CustomPopupPlacementCallback` gets the target's bounds in window coordinates, and a flip mirrors anchor and gravity but not the offset. Put a gap into the anchor rectangle (see `DataTooltip.BesidePointer`).
- [2026-10-18] Fluent caps `ToolTip` `MaxWidth` at 320 px, and a tooltip that covers the pointer takes pointer-over from its control, which raises `PointerExited`. `Ui.Theme` raises the cap; tall tips open beside the pointer.
## Archive
+2 -2
View File
@@ -2,7 +2,7 @@
> Always-loaded. Everything else is on-demand. Update TOC when files change.
## Current Focus
- [2026-10-14] v1 on issue #1: Core collectors and store, Avalonia app, Stream Deck plugin.
- [2026-10-18] Reset history (D12), API value (D13) and panel fixes on issue #14, PR #16.
## Invariants
- No credential is ever read, stored or sent; providers are reached only through their CLIs (D2).
@@ -11,4 +11,4 @@
- `snapshot.json` is the only interface between the app and other processes (D9).
## Table of Contents
- `gotchas.md` — 2 entries — CLI probing pitfalls on this machine.
- `gotchas.md` — 4 entries — CLI probing pitfalls on this machine; Avalonia tooltip placement.