Repository navigation
CodexMeter 1.7.0
中文
- 新增可选的额度恢复远程提醒,支持 Bark、Gotify、Telegram 和 Discord,四个渠道默认关闭,可独立开启。
- 设置侧边栏新增「通知」,集中管理 Mac 本地低额度/消耗偏快提醒和远程渠道;可分别选择 5 小时与周额度恢复提醒。
- 每个渠道提供测试通知、发送状态和安全错误提示;断网、限流或服务器临时故障最多尝试三次。切换账号、修改发送目标或关闭相关提醒会取消旧任务。
- 提醒显示实际观测到的剩余额度,不会把部分恢复误报为 100%;重复观测进行客户端去重,不会因未使用额度的重置时间滑动而发送通知。
- Bark 密钥、Gotify/Telegram Token 和 Discord Webhook 使用本地钥匙串保存;旧明文配置仅在迁移成功后删除,失败会显示提示并保留原值。
- 不增加额度查询频率,禁用渠道时不发送请求,也不增加闲置推送定时器。通知只发送窗口名称和剩余额度,不发送账号邮箱或 Token 历史。
感谢 @WuBarlynn 在 PR #10 中贡献 Bark/Gotify 功能。
使用方式:打开 Settings → Notifications(设置 → 通知),填写需要的渠道配置,再发送测试通知。CodexMeter 必须运行且联网;服务器接受不代表手机已展示或消息已读。网络响应丢失后的重试仍可能重复送达,应用关闭期间的重置不会补发。
要求:Apple Silicon(arm64),macOS 13 或更高。DMG 沿用 ad-hoc 签名,未经过 Apple 公证;首次打开可能需要右键选择「打开」。更新后,macOS 也可能再次询问钥匙串访问权限。
English
- Added optional quota-replenishment reminders through Bark, Gotify, Telegram, and Discord. All four channels are disabled by default and can be enabled independently.
- Added a Notifications settings category for existing local low-quota/over-pace alerts and remote channels, with separate five-hour and weekly replenishment switches.
- Added test messages, server-acceptance status, and safe error feedback. Transient network failures, rate limits, and server errors get at most three attempts. Account changes, destination changes, and disabled reminders cancel pending old jobs.
- Notifications report the actual observed remaining quota, including partial recovery. Client-side event deduplication avoids repeated observations; unused full-quota windows with sliding reset dates do not notify.
- Push credentials and Discord webhook URLs are stored in the local Keychain. Legacy plaintext settings are removed only after successful migration; failures remain visible and preserve the previous value.
- No additional quota polling or idle push timers. Remote messages contain only the window name and observed remaining percentage, not account email or token history.
Thanks to @WuBarlynn for the Bark/Gotify contribution in PR #10.
Configure channels under Settings → Notifications, then send a test message. CodexMeter must be running and online. Server acceptance does not prove display or reading on the phone. A retry after a lost response can still deliver a duplicate; resets while the app is closed are not replayed.
Requires Apple Silicon (arm64), macOS 13+. The DMG is ad-hoc signed and not notarized; a first launch may require Control-click → Open. macOS may ask for Keychain access approval again after an update.