Repository navigation
3.0:按账户展示额度、自动识别套餐、可配置统计时区(#287) - #291
Merged
Merged
Conversation
- 采集端:额度上报附带账户资料(不可逆指纹、展示名、套餐),套餐读账户资料而非陈旧凭据缓存, 像邮箱的展示名不上传;Claude /usage 超时放宽到 60 秒并只对超时重试一次。 - Worker:新增 account_profiles(0016),额度来源→账户写入 account_observations;摘要新增 account_slots / account_usage_coverage,同一账户多台机器读到合成一格,读不到身份的 provider 退回 provider 级格子,归属不了账户的用量单独计数。 - 统计时区:去掉写死的北京时间,按 AIUSAGE_TIMEZONE 计算日界、小时桶与周期(含夏令时); rollup 脏日改登记 UTC 日,Worker 换算本地日在同一事务内重算。 - macOS 3.0.0:每个账户一个额度圆环,显示账户名、套餐与套餐变化;多于 3 个改两列网格; 修复旧缓存叠加出幽灵圆环。iPhone 3.0.0:额度按账户分组。collector 0.5.0。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
用户结果
菜单栏 / iPhone 每个 AI 账户一个额度格:账户名、套餐(如 Max 5x)、套餐变化、周额度与重置时刻(本地时间)。账户与套餐由采集端自动识别。统计时区可配置,不再写死北京时间。
关联 #287。起因:2026-11-07 Claude 额度消失 = TZ 上
/usage连续 4 轮超过 20s 被掐断(error_type=timeout),单一来源 + 120 分钟时效后隐藏。改动
account{fingerprint,label,plan};套餐读~/.claude.json的organizationRateLimitTier/ Codex id_token 的chatgpt_plan_type;像邮箱的展示名不上传;Claude CLI 超时 60s、仅超时重试 1 次。account_profiles,并把脏日触发器改为登记 UTC 日;摘要新增account_slots/account_usage_coverage;buildLimitStatus泛化为buildLimitStatusBy(原 provider 口径不变);统计时区按AIUSAGE_TIMEZONE(夏令时、≥+13 时区用纯日历运算)。验证(证据等级 3:本地测试通过)
test_signed_release用uv run --with cryptography单独补跑 7 条 OK)部署顺序(必须)
AIUSAGE_TIMEZONE为常驻地时区后,把近期 UTC 日写入usage_rollup_dirty_days触发按新时区重建。account_config_path/account_fingerprint_sources后升级采集端;TZ wangzhipeng 开启 Claude 额度采集(Tony 账户)。已知缺口 / 跟进
provider_slots过渡保留、Watch/小组件 → [task] 3.0 收尾:全部客户端升级后删除 provider_slots,Watch 与小组件按账户显示 #289🤖 Generated with Claude Code