Skip to content

Releases

v1.5.5

Choose a tag to compare

@qiudai0627 qiudai0627 released this 01 Dec 09:02

What's New in v1.5.5

  • Strict Redirect Host Allowlist & Canonical Release URLs (macos/MenuBarApp.swift, windows/tray_widget.pyw): Validates https://github.com / www.github.com hostnames and /qiudai0627/agy-usage/releases/tag/ path prefixes on 302 Location redirects, 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 existing tray_widget.pyw instances on Windows and verifies named-mutex release/re-acquisition (DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP + AGY_USAGE_PORT), verifies AGYUsageMenuBar exit/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

Choose a tag to compare

@qiudai0627 qiudai0627 released this 01 Dec 08:16

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 from github.com/.../releases/latest HTTP 302 Location headers (0 API quota consumed, immune to api.github.com 60 req/hr shared-proxy 403 rate 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 updates statusLine, restarts the :18420 background 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 Homebrew opt_libexec) when wiring statusLine, 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

Choose a tag to compare

@qiudai0627 qiudai0627 released this 01 Dec 05:50

What's New in v1.5.3

  • Strict Cross-Window Quota Monotonicity (src/statusline.py): Eliminates the same_conv stale-memory rollback vector across concurrent multi-pane agy sessions, unifies cycle reset tolerance (120s), and requires verified forward progress from sibling buckets before honoring early 1970-01-01 full-reset sentinels.
  • Ordered Atomic Commits & Fail-Closed Lock Timeout (src/statusline.py, src/quota.py): Unifies .state.lock -> .snapshots.lock ordering with monotonic state_revision tracking; 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): Preserves agy-usage record-quota upward/downward overrides via manual_revision and manual_baseline_rem guards, and fixes year-boundary %m-%d %H:%M parsing.
  • 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

Choose a tag to compare

@qiudai0627 qiudai0627 released this 28 Nov 15:34

What's New in v1.5.2

  • Server-Side Stat-Fingerprint Single-Flight Cache (src/stats_cache.py): Computes a lightweight os.stat() fingerprint across live_state.json, quota snapshots, preferences, and local transcript.jsonl files (with a 30s coarse time bucket). Coalesces concurrent /api/stats requests 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): Returns 304 Not Modified with a 0-byte body when If-None-Match matches the current source fingerprint.
  • Background-Tab Auto-Pause & Zero-Redraw (src/web/app.js): Automatically pauses polling when document.hidden is true (0 requests / 0 CPU in background tabs), refreshes immediately on tab focus, and skips JSON parsing & DOM redraw on 304.
  • 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

Choose a tag to compare

@qiudai0627 qiudai0627 released this 28 Nov 12:58

What's New in v1.5.1

  • macOS Loopback Fast-Bind Fix: Skips socket.getfqdn() reverse-DNS lookup in HTTPServer.server_bind() and bypasses OS proxy auto-detection on /api/health loopback 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 Injection chip 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 .zip archive (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

Choose a tag to compare

@qiudai0627 qiudai0627 released this 28 Nov 10:43

What's New in v1.5.0

  • Official Self-Contained AGY Native Plugin (plugins/agy-usage/): Installable via agy plugin install https://github.com/qiudai0627/agy-usage/tree/main/plugins/agy-usage with zero default side effects (no hooks.json, no automatic settings.json edits, no background daemon auto-start). Validated cleanly with agy plugin validate --strict --json (0 errors, 0 warnings).
  • Zero-Dependency stdio MCP Server (src/mcp_server.py): Pure Python 3.9+ standard library implementation of MCP 2024-11-05 newline-delimited JSON-RPC over stdio (quota server), 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 POSIX flock / Windows msvcrt locking, 0600 instance metadata (instance_id, pid, pid_start, port), /api/health identity 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, and macos/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 --strict PASS.
  • scripts/package-release.sh: 0 PII / 0 personal paths / 0 metadata leaks.

v1.4.0 — Modular Architecture, Flagship Dashboard UI & Bento Share Card

Choose a tag to compare

@qiudai0627 qiudai0627 released this 27 Nov 19:34

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×256 web / 512×512 README) 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-01 100%-full idle pool display (0.0% Used instead of expired) and honored out-of-band server resets without stale-window rollback.
  • Rewrote README.md, README_ZH-TW.md, and README_EN.md to 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

Choose a tag to compare

@qiudai0627 qiudai0627 released this 26 Nov 12:46

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 with curl -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

Choose a tag to compare

@qiudai0627 qiudai0627 released this 26 Nov 10:26
  • 🌐 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 免命令安装包)

Choose a tag to compare

@qiudai0627 qiudai0627 released this 26 Nov 04:41

一句话简介

纯本机运行的 Google Antigravity 额度与用量监控小工具:一眼看清 Gemini 与 Claude/GPT 四格「已用 %」和恢复倒计时,零第三方依赖、不传云端。

免命令行下载即用

  1. 下载下方 agy-usage-release.zip 并解压;
  2. Mac:右键点击 Start-Mac.command 选择「打开」;
  3. Windows:双击 Start-Windows.bat(需已安装 Python 3.9+ 并勾选 Add Python to PATH)。