- [Token Stats] Local Token Usage Report (shared collector with Antigravity Manager) (PR #4217):
- New "Gateway / Local" Source Switch: Token Stats gains a data-source switch (defaults to Gateway). Local mode reads on-device usage history from
antigravity,agy(Antigravity Tools) andgemini_cliclients and aggregates totals, sources and per-model breakdowns for the selected range; missing breakdowns render as "—" rather than 0, and local totals do not represent billing, quotas, or gateway account attribution. - Read-Only Collection & Privacy Hardening: The collector is a byte-for-byte snapshot of the canonical Manager implementation (per-file inventory and SHA-256 verification) and only scans source history read-only; SQLite is read from a private temporary copy (
0700directory,0600files, current-user LocalAppData on Windows) with continuous fingerprint checks that reject concurrent changes. - Desktop and Web/Headless Entry Points: The desktop app reads the system HOME over Tauri IPC (optional
GEMINI_CLI_HOME); Web/Headless is served by the admin-authenticatedGET /api/stats/token/local, enabled only when an absoluteABV_LOCAL_USAGE_HOME(and optionalABV_LOCAL_USAGE_GEMINI_HOME) is explicitly configured — unconfigured roots return an empty unconfigured report and never fall back to the ambient HOME. Docker docs,.env.exampleand a compose example are included.
- New "Gateway / Local" Source Switch: Token Stats gains a data-source switch (defaults to Gateway). Local mode reads on-device usage history from
- [Accessibility] Selected-State Semantics for Settings Sections & Dashboard Views (PR #4208, PR #4209):
- Settings Side Navigation: Added current-section semantics (
aria-current/ selected state) to the Settings sidebar for keyboard and screen-reader users. (PR #4208) - Dashboard Display Views: Added
aria-pressedto the Dashboard display-view switch so the active view is exposed to assistive technology. (PR #4209)
- Settings Side Navigation: Added current-section semantics (
- [Token 统计] 本地 Token 用量报告(与 Antigravity Manager 共享采集实现)(PR #4217):
- 新增「网关 / 本地」数据源切换: Token 统计页新增数据源切换(默认仍为网关),本地模式读取本机
antigravity、agy(Antigravity Tools)与gemini_cli三类客户端的历史用量,按区间聚合总量、来源与模型明细;缺失的细分项显示为「—」而非 0,本地总量不代表计费、配额或网关账号归属。 - 只读采集与隐私加固: 采集器为 Manager 规范实现的原样快照(逐文件 SHA-256 与清单校验),仅只读扫描源历史;SQLite 读取使用私有临时副本(
0700目录、0600文件,Windows 走当前用户 LocalAppData),并在打开期间持续校验源指纹以拒绝并发变更。 - 桌面与 Web/Headless 双入口: 桌面端经 Tauri IPC 读取系统 HOME(可选
GEMINI_CLI_HOME);Web/Headless 端经管理员鉴权的GET /api/stats/token/local提供,仅当显式配置绝对路径的ABV_LOCAL_USAGE_HOME(及可选的ABV_LOCAL_USAGE_GEMINI_HOME)时启用,未配置时返回未配置状态的空报告,不回退到环境 HOME。Docker 侧提供.env.example、README 与 compose 示例说明。
- 新增「网关 / 本地」数据源切换: Token 统计页新增数据源切换(默认仍为网关),本地模式读取本机
- [无障碍] 设置区与仪表盘展示视图的选中语义 (PR #4208, PR #4209):
What's Changed
- fix(a11y): expose the selected Dashboard display view by @chenxiaokeng666-prog in #4209
- fix(a11y): expose the active Settings section by @chenxiaokeng666-prog in #4208
- feat(stats): sync Manager local Token usage to Tools by @cubelikeplayDaniel in #4217
Full Changelog: v5.0.6-beta.3...v5.0.6-beta.4