Repository navigation
Releases: llblab/pi-claude-usage
Releases · llblab/pi-claude-usage
Release list
0.2.5: Reactive Quota Indicators
- Added an immediate quota-display response to the specific native Anthropic subscription account-limit error. At most one window with strictly less than 5% remaining is inferred exhausted; when both are near-empty, an empirical weekly-to-five-hour budget ratio of 6:1 selects the smaller equivalent balance, preferring five-hour on ties. An already exhausted measured window leaves the other untouched. The shared signal makes no extra quota requests and preserves measured data, leadership and retry deadlines; a successful refresh started after the signal restores authoritative values. Other providers, proxies, API-key models, generic throttling and Fast credit errors do not trigger it.
- Changed shared quota polling from every three minutes to every two minutes, with follower takeover after two minutes and thirty seconds. Shared usage-endpoint failure backoff is preserved.
0.2.4: Quota Polling Hotfix
- Reduced shared quota polling from once a minute to once every three minutes to lower request pressure on Anthropic's usage endpoint. Follower takeover now waits three minutes and thirty seconds so multiple instances preserve the slower cadence. Shared HTTP 429 backoff and local reset countdown updates remain in place.
0.2.3: Empty Quota Bar Hotfix
- Aligned quota bars with rounded remaining percentages: when either window rounds to
0%, its final segment disappears and the whole dual bar uses the error background, while the other half retains its quota. The 5-hour reset countdown follows the same zero boundary; near-full quota still rounds to the nearest 5% step.
0.2.2: Windows CI Validation
- Added Linux and Windows GitHub Actions validation that runs the full release check suite (typecheck, tests, extension import, dependency audit and package dry-run) on every push to
mainand pull request, so the shared-refresh SQLite mutex, atomic state writes and path handling are exercised on Windows. The extension runtime is unchanged from 0.2.1.
0.2.1: Telegram Fast Status
- The optional Telegram status row now appends lowercase
fastfor the active eligible Opus model, or showsfastalone when quota is unavailable. It rereads the per-model preference at menu render time, so toggles and model changes do not wait for quota refresh. Unsupported Claude families ignore stale Fast overrides. Quota polling, auth, request adaptation and terminal behavior are unchanged; isolated tests cover eligibility, model/provider changes and unreadable configuration.
0.2.0: Shared Fast Mode and Pi 1.0 Baseline
- Split the monolithic extension into cohesive
lib/domains matching Codex Usage: composition, status lifecycle, shared state, OAuth query, quota normalization, formatting, Telegram and Fast.index.tsnow only re-exports the unchanged public API; tests follow domain owners. Quota/auth/leadership, mutex/fencing/backoff, status redraw and Fast behavior are preserved. - Added an argument-free
/fastprovider handler through@llblab/pi-command-fast@^0.1.0, sharing exactly one command with Codex Usage across load orders, duplicate dependency copies, independent sessions and reloads. Claude eligibility is restricted to the Opus family without a version allowlist; other families receiveFast mode is supported only for Opuswithout writes or quota requests, and stale unsupported overrides do not decorate status or activate the request bridge. Generic command dispatch and Codex eligibility are unchanged. - Persisted
speed: "fast"solely in the current Anthropic model override; OFF deletes it. The shared JSONC helper preserves comments and unrelated configuration with atomic replacement. - Requires Pi ≥1.0.0 across coding-agent, AI and agent-core peers: older Anthropic transports do not expose the same assembled beta payload contract. Adapted native payloads with Fast speed and additive
fast-mode-2026-02-01beta, preserving explicit speed and Pi-generated/configured betas through actual HTTP assembly. No provider replacement or header-default suppression. - Appended dim lowercase
fastat the final terminal status boundary, including loading/error/n/a paths, with immediate silent redraw and no quota request. OAuth quota polling, SQLite mutex, claim fencing, stale display, retry/backoff, and Telegram remain unchanged. Tests now live intests/.
0.1.1: Trusted CI Publication
- Releases use the configured npm Trusted Publisher for GitHub Actions, with provenance and workflow-owned GitHub Release creation. Public-package verification now allows approximately 30 minutes for npm processing, with a 35-minute step limit, while retaining exact commit and package-inventory checks.
- Quota polling, OAuth authentication, shared-state coordination, and statusline behavior are unchanged from 0.1.0.