Skip to content

Commit 862bfa6

Browse files
Lobobodevclaude
andcommitted
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ Packages/
2020

2121
# Code Injection
2222
iOSInjectionProject/
23+
default.profraw

CodexBarMenuBar/CodexBarMenuBarApp.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
2424

2525
func applicationDidFinishLaunching(_ notification: Notification) {
2626
menuBarManager = MenuBarManager(dataManager: dataManager)
27+
QuotaNotifier.shared.requestPermissionIfNeeded()
2728

2829
Task { @MainActor in
2930
try? await Task.sleep(for: .seconds(1))

0 commit comments

Comments
 (0)