Repository navigation
Releases
Releases · qiudai0627/agy-usage
v1.5.5
What's New in v1.5.5
- Strict Redirect Host Allowlist & Canonical Release URLs (
macos/MenuBarApp.swift,windows/tray_widget.pyw): Validateshttps://github.com/www.github.comhostnames and/qiudai0627/agy-usage/releases/tag/path prefixes on302 Locationredirects, disables redirects on the REST API fallback, and always constructs canonical GitHub release URLs. - In-Flight Re-Entrancy Guards & Unified SemVer Comparison: Disables duplicate update checks while a check or modal alert is active, aligns pre-release and multi-digit SemVer comparison across Swift and Python, and replaces unsolicited clipboard writes on Windows with an explicit 3-button upgrade dialog.
- Verified Desktop Widget Restart in
agy-usage sync(src/cli.py): Stops existingtray_widget.pywinstances on Windows and verifies named-mutex release/re-acquisition (DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP+AGY_USAGE_PORT), verifiesAGYUsageMenuBarexit/relaunch on macOS, and propagates non-zero exit codes. - Isolated Cross-Platform Regression Tests (
tests/test_suite.py): Adds isolated tests for untrusted redirect rejection, Swift/Python SemVer parity, Windows mutex restart states, and symlink-preserving statusline paths.
v1.5.4
What's New in v1.5.4
- Rate-Limit-Free Update Check (
macos/MenuBarApp.swift,windows/tray_widget.pyw): Resolves the latest release tag directly fromgithub.com/.../releases/latestHTTP 302 Locationheaders (0 API quota consumed, immune toapi.github.com60 req/hr shared-proxy403rate limits), with explicit HTTP status verification on the REST API fallback, one-click upgrade command copy, and direct release-page fallback buttons. - One-Command Post-Upgrade Desktop Sync (
agy-usage sync): New CLI subcommand that updatesstatusLine, restarts the:18420background dashboard, and rebuilds/relaunches the native desktop floating pill in one step (e.g.,brew upgrade agy-usage && agy-usage sync). - Stable Symlink Path Preservation (
src/cli.py): Preserves stable symlink directories (such as Homebrewopt_libexec) when wiringstatusLine, preventing broken paths when old Cellar versions are pruned. - Expanded Regression Suite: 22/22 core/concurrency/update-check tests + 6/6 plugin/cache-contention tests pass across macOS, Linux, and Windows.
v1.5.3
What's New in v1.5.3
- Strict Cross-Window Quota Monotonicity (
src/statusline.py): Eliminates thesame_convstale-memory rollback vector across concurrent multi-paneagysessions, unifies cycle reset tolerance (120s), and requires verified forward progress from sibling buckets before honoring early1970-01-01full-reset sentinels. - Ordered Atomic Commits & Fail-Closed Lock Timeout (
src/statusline.py,src/quota.py): Unifies.state.lock -> .snapshots.lockordering with monotonicstate_revisiontracking; renders the last committed disk snapshot without writing stale state or firing duplicate alerts on multi-pane lock contention. - Per-Bucket Manual Calibration Protection (
src/quota.py): Preservesagy-usage record-quotaupward/downward overrides viamanual_revisionandmanual_baseline_remguards, and fixes year-boundary%m-%d %H:%Mparsing. - Read-Only Burn-Rate Series Purification (
src/quota.py): Isolates unverified same-cycle rollback spikes without truncating observed burn-rate history, opening new segments only on verified cycle rollovers or manual calibrations. - Verified Single-Flight Cache & Cross-Client Parity (
src/stats_cache.py,macos/MenuBarApp.swift,windows/tray_widget.pyw): Adds per-bucket expiry bitmasks and WAL tracking to source fingerprints, enforces post-build generation verification, and aligns expired-cycle (G Ref/G 待刷) indicators and request ordering across macOS, Windows, Web, and CLI. - Expanded Regression Suite: 21/21 core/concurrency tests + 6/6 plugin/cache-contention tests pass across macOS, Linux, and Windows.
v1.5.2 — Zero-Waste Polling: Fingerprint Cache, ETag/304 & Background-Tab Auto-Pause
What's New in v1.5.2
- Server-Side Stat-Fingerprint Single-Flight Cache (
src/stats_cache.py): Computes a lightweightos.stat()fingerprint acrosslive_state.json, quota snapshots, preferences, and localtranscript.jsonlfiles (with a 30s coarse time bucket). Coalesces concurrent/api/statsrequests and eliminates redundant aggregation when nothing changed; immediately invalidates on user writes (POST /api/preferences,/api/record-quota). - HTTP
ETag+304 Not Modified(src/server.py): Returns304 Not Modifiedwith a 0-byte body whenIf-None-Matchmatches the current source fingerprint. - Background-Tab Auto-Pause & Zero-Redraw (
src/web/app.js): Automatically pauses polling whendocument.hiddenis true (0 requests / 0 CPU in background tabs), refreshes immediately on tab focus, and skips JSON parsing & DOM redraw on304. - Expanded Regression Tests: 15/15 core tests + 5/5 plugin/single-instance/ETag-304 tests pass across macOS, Linux, and Windows.
v1.5.1 — macOS Fast-Bind, Manual Update Check & Slim Release Archive
What's New in v1.5.1
- macOS Loopback Fast-Bind Fix: Skips
socket.getfqdn()reverse-DNS lookup inHTTPServer.server_bind()and bypasses OS proxy auto-detection on/api/healthloopback checks (eliminating 30s+ stalls on macOS VPN/CI networks; all 4 CI jobs pass green). - Desktop Menu Version & Manual Update Check (Zero Silent Networking): Both macOS MenuBar Pill (
MenuBarApp.swift) and Windows Floating Widget (tray_widget.pyw) now display the current version (AGY Usage v1.5.1) with an explicit manual Check for Updates… menu item (zero background network calls). - Subtle Read-Only Trust Chip & Refreshed Visuals: Added a localized
Read-Only · Zero Injectionchip to the Web Dashboard header, refreshed README previews with real v1.5 screenshots + 2× Retina Bento Share Cards, and updated terminal/pill SVGs to match live reset countdowns. - Slimmed Release Archive (~1.1 MB): Excluded README-only showcase PNGs from the downloadable
.ziparchive (kept in Git for GitHub display) for instant Homebrew & archive installs.
v1.5.0 — Official AGY Native Plugin, Zero-Dep stdio MCP Server & Single-Instance Lock
What's New in v1.5.0
- Official Self-Contained AGY Native Plugin (
plugins/agy-usage/): Installable viaagy plugin install https://github.com/qiudai0627/agy-usage/tree/main/plugins/agy-usagewith zero default side effects (nohooks.json, no automaticsettings.jsonedits, no background daemon auto-start). Validated cleanly withagy plugin validate --strict --json(0 errors, 0 warnings). - Zero-Dependency
stdioMCP Server (src/mcp_server.py): Pure Python 3.9+ standard library implementation of MCP2024-11-05newline-delimited JSON-RPC over stdio (quotaserver), exposing 4 strictly sanitized read-only tools (agy_usage_summary,agy_usage_quota,agy_usage_cache_health,agy_usage_health). - Pure-Query Sanitization Layer (
src/pure_query.py): Completely decoupled from notification dispatch; strips conversation titles, bodies, previews, local workspace paths, and raw session IDs; gracefully falls back on read-only cache directories. - Cross-Platform Single-Instance Lock & Identity Handshake (
src/instance_lock.py,src/server.py): Full-transaction POSIXflock/ Windowsmsvcrtlocking,0600instance metadata (instance_id,pid,pid_start,port),/api/healthidentity handshake, PID-reuse protection, and safe refusal to kill unrelated services occupying the target port. - Transparent Three-Layer Data Boundary & Version Sync: Updated
README.md,README_EN.md,README_ZH-TW.md, andmacos/build-app.sh(1.5.0).
Verification
verify.sh: 15/15 core tests + 4/4 v1.5.0 G02–G05 plugin/MCP/single-instance lock tests PASS +agy plugin validate --strictPASS.scripts/package-release.sh: 0 PII / 0 personal paths / 0 metadata leaks.
v1.4.0 — Modular Architecture, Flagship Dashboard UI & Bento Share Card
Highlights
Modular Codebase Architecture
- Decomposed monolithic backend, CLI, frontend, and i18n files into focused single-responsibility modules (
storage.py,transcripts.py,quota.py,analytics.py,notifications.py,maintenance.py,server.py,tui.py,cli.py). - Extracted standalone frontend assets (
src/web/index.html,styles.css,charts.js,app.js,share_card.js) and 11 standalone JSON locale files (src/locales/*.json), preserving zero runtime dependencies.
Flagship Dashboard UI & Bento Share Card
- Upgraded brand icon to crisp 4× Retina Lanczos-resampled PNG (
256×256web /512×512README) with centered masthead & floating telemetry capsule. - Removed redundant prose banners, nested scrollbars on the Recent Calls stream, and duplicate CTAs; elevated 4-column Umami-style KPI strip and fixed 24×7 equal-width heatmap grid.
- Upgraded 2× Retina Share Card with radial pool gauges, proportioned Bento metric tiles, and live 7×24 activity heatmap signature.
Quota Edge-Case Fixes & Tri-Lingual Flagship READMEs
- Fixed sentinel
1970-01-01100%-full idle pool display (0.0% Usedinstead of expired) and honored out-of-band server resets without stale-window rollback. - Rewrote
README.md,README_ZH-TW.md, andREADME_EN.mdto high-star open-source standards.
Verification
- 15/15 isolated unit, concurrency, i18n, and README checks passing (
./verify.sh). - Zero-PII release gate passing (
./scripts/package-release.sh). - SHA-256 (
agy-usage-release.zip):f0c7f49054897f33364623e1cc0e7dc1962d405ee681a8d6c231655ab2bf7c9e
v1.3.0 — Viral Privacy-Safe Share Card, Living Flame CTA & Homebrew Tap
What's New in v1.3.0
- 📸 1-Click Privacy-Safe Share Card (
战报晒单卡): Generate 2x Retina Leica-style usage & cache-savings cards across all 11 built-in languages and 3 themes (Light · Airy · Dark), with zero file paths, session titles, or account identifiers. - 🔥 Living Flame + Rotating Aurora Beam CTA: Instant visual hook on the Web Dashboard with one-click image clipboard copy & ready-to-share install post copy.
- 🍺 Official Homebrew Tap: Install on macOS via
brew install qiudai0627/tap/agy-usage(or run the full interactive setup withcurl -fsSL https://raw.githubusercontent.com/qiudai0627/agy-usage/main/install.sh | bash).
v1.2.0 · 11-Language Dashboard, Celadon Brand Icon, 3 Themes & Multi-Window Reset Guard
- 🌐 11 Built-in Languages (简体中文, 繁體中文, English, 日本語, 한국어, Español, Português, Deutsch, Français, Русский, Tiếng Việt) with instant 0ms switching & tri-lingual READMEs
- ✨ New Brand Icon & 3 Color Themes (Light · Airy 通透 · Dark) across Web Dashboard, macOS notch-safe floating pill & Windows widget
- 🛡️ Multi-Window Reset Anti-Rollback Guard so stale idle windows never overwrite freshly reset Gemini/Claude cycles
- 🍎 Zero-TCC Desktop/Downloads Zip Install — double-clicking Start-Mac.command from Downloads/Desktop copies cleanly to ~/.local/share/agy-usage without folder permission popups
v1.1.0 · 四格额度实时监控(Mac & Windows 免命令安装包)
一句话简介
纯本机运行的 Google Antigravity 额度与用量监控小工具:一眼看清 Gemini 与 Claude/GPT 四格「已用 %」和恢复倒计时,零第三方依赖、不传云端。
免命令行下载即用
- 下载下方
agy-usage-release.zip并解压; - Mac:右键点击
Start-Mac.command选择「打开」; - Windows:双击
Start-Windows.bat(需已安装 Python 3.9+ 并勾选 Add Python to PATH)。