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
This commit was merged in pull request #2.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# App
|
||||
Avalonia 12 Fluent host (D8). Views are built in C# without reflection bindings. View-model
|
||||
properties use CommunityToolkit.Mvvm source generators. Custom charts use DrawingContext.
|
||||
Program owns StoreLock for the engine lifetime. DesktopApp marshals Core events to the UI;
|
||||
Program passes its executable path to RefreshEngine for desktop activation through D9 snapshots.
|
||||
history queries run on worker threads and discard superseded results. Keep all writes atomic (D5).
|
||||
Daily charts use local calendar boundaries; never assume a day lasts 24 hours.
|
||||
Stream Deck policy and the real installer come through IPluginInstaller (D11).
|
||||
UsePlatformDetect selects X11 on Linux in the pinned Avalonia version. Keep XWayland support.
|
||||
Run `dotnet test --project tests/FinalToken.App.Tests -c Release` from the root.
|
||||
Reference in New Issue
Block a user