Commit 862bfa6
v0.29.0: track CodexBar CLI 0.29.0 + add 6 major features
Provider sync with CodexBar CLI 0.29.0:
- Add Alibaba Bailian (alibaba-token-plan) provider — Bailian
token-plan quota tracking via browser or manual cookies.
New features inspired by gaps with CodexBar's own merged mode:
1. Quota warning notifications: post macOS notifications when a
provider's session/weekly usage crosses configurable warning
(default 80%) or critical (default 95%) thresholds. Each
threshold fires once per window until usage drops below it
again. Permission requested on first launch.
2. Threshold tick marks on usage bars: optional thin vertical lines
drawn at the warning and critical thresholds for at-a-glance
reference.
3. Workday markers on weekly bars: optional subtle vertical marks
dividing the weekly bar into seven daily segments.
4. Battery saver mode: skip background refreshes when on battery
power via IOPSCopyPowerSourcesInfo. Manual refresh still works.
5. Chinese (Simplified) localization: full UI translated via a
Localizable.xcstrings catalog. Translations sourced from
CodexBar's own zh-Hans bundle where possible to keep
terminology consistent. AppKit strings (menu items, alerts,
notification bodies) wrapped with String(localized:). SwiftUI
helpers (PreferenceToggleRow, SettingsSection, AboutLinkRow)
updated to take LocalizedStringKey instead of plain String.
6. In-app language selector: System / English / 简体中文. Writes
the choice into AppleLanguages in UserDefaults and prompts to
restart so the new locale takes effect.
Also bumps About version label, README provider lists + counts
(47 → 48), and CodexBar CLI version requirement note to 0.29.0.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent ca51b49 commit 862bfa6
13 files changed
Lines changed: 1220 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments