Skip to content

API Bar 0.5.0

Choose a tag to compare

@0xCosmosly 0xCosmosly released this 03 Nov 20:16
· 55 commits to main since this release

API Bar 0.5.0

A major feature, design, and resilience update introducing native Lutheos.com & Refuseless token burn rate pacing, OpenCode iCloud sync, a built-in multi-version Changelog viewer, a 4-tier traffic-light percentage color scale, matching brand accent progress bars, unified percentage calculations, rich in-app release notes, and hardened self-updating with seamless auto-relaunch.


✨ What's New in 0.5.0

1. ⚡️ Token Burn Rate & Runway Pacing (Refuseless & Lutheos)

• Real-Time Pacing Calculations: Calculates actual consumption velocity and runway directly in the balance card (e.g. 1.9M tokens per day - Runs out in 3 days or 500K tokens per day - Runs out in 1 day).
• Refuseless Token Pacing: Analyzes output tokens, spend telemetry, and deposits to provide automatic runway estimation.
• Lutheos Inference Runway: Analyzes usage ledger nodes, token buckets, and credit runway to show clear depletion timelines.

2. ☁️ OpenCode iCloud Sync

• Cross-Mac Syncing: Synchronizes your OpenCode configuration (~/.config/opencode/opencode.json) securely across all your Macs via iCloud Drive.
• Automatic Rollback Backups: Generates .bak snapshots prior to merging remote updates, ensuring workspace settings are always protected.
• Manifest Versioning & Watcher: Uses low-overhead dispatch event watchers to detect local config updates in real time.

3. 📜 Native Multi-Version Changelog Viewer

• Complete Version History: Inspect current (v0.5.0) and previous releases (v0.4.9, v0.4.8, v0.4.7) directly in a native, two-column macOS window.
• Offline-First & Dynamic: Pre-loaded with full built-in release documentation for offline browsing, with background synchronization for newly published GitHub releases.
• Instant Access: Accessible from the menu bar (Changelog…), the Settings panel header, and the Software Update prompt.

4. ⚡️ Lutheos.com Native Support

• Full Native Integration: Automatically connect and track prepaid balances for Lutheos.com (https://lutheos.com), the private and uncensored AI inference platform.
• SvelteKit Devalue Data Traversal: Implemented an advanced data parser that navigates SvelteKit devalue pointer index trees, accurately decoding microdollar/cents balance, live workspace balances, credited top-up totals, and account email.
• Automatic 100% Reference Baseline: Detects fulfilled top-up transactions (e.g. $9.00, $10.00, $25.00 crypto top-ups) to calculate remaining balance percentages without manual configuration.
• Packaged Vector Brand Icon: Bundled official vector icon silhouette (lutheos-mask.png) in app resources with Lutheos terracotta accent (#AD4F2C).

5. 🚦 Four-Tier Traffic-Light Percentage Scale

Replaced binary percentage coloring with an intuitive, accessible 4-tier traffic-light system:
• 100% – 80% (Green): Abundant remaining balance (Color.green).
• 80% – 20% (Neutral Slate / Grey): Standard running consumption (NSColor.secondaryLabelColor).
• 20% – 10% (Amber Warning Yellow): Low balance warning (#D97706 in light mode / #FBBF24 in dark mode) engineered to pass WCAG AA contrast on white backgrounds.
• 10% – 0% (Alert Red): Critical balance alert (Color.red) signaling immediate top-up needed.

6. 🎨 Provider Brand Accent Bars

• Progress bars and tab selection gauges consistently reflect each provider's distinct brand accent color:
• Lutheos: Terracotta #AD4F2C
• Refuseless: Crimson #C8102E
• Fireworks AI: Amber Orange #D46400
• Google Cloud / Vertex AI: Google Blue #1A73E8
• Cerebras: Flame Red #DC321E
• Crowbot: Forest Green #0D733C
• Venice AI: Royal Purple #7B1FA2

7. 📖 Rich In-App Release Notes Viewer

• Completely overhauled the software update window with native rich text rendering. Markdown headers (#, ##, ###), dividers (---), bullet lists (•, -), numbered steps (1., 2.), bold highlights (**text**), inline code ( code ), and clickable web links ([text](url)) are formatted with native typography instead of showing raw markdown syntax.

8. 🛡️ Hardened Self-Updating & Seamless Auto-Relaunch

• Detached Process-Exit Waiter: Updated the in-place updater to spawn a detached background helper that monitors the dying app's PID (kill -0 $pid). Once the old process has fully exited, it flushes LaunchServices bundle registration (lsregister -f) and launches the new app.
• Startup Grace Period: Enhanced Main.swift single-instance check with an adaptive polling loop. When launched during an update, if a previous instance is still terminating, the new instance waits for it to exit rather than immediately aborting.
• Atomic Rollback & Safe Backup: In-place bundle replacement creates an isolated backup before moving the existing app bundle, and retains it until after process exit so dyld paging is not disrupted while shutting down.
• Quarantine Stripping: Automatically invokes /usr/bin/xattr -dr com.apple.quarantine on newly extracted bundles to ensure smooth, unblocked relaunch without macOS Gatekeeper permission prompts.

9. 🔒 Security & Privacy Sanitization

• Complete audit and sanitization of test suites to use anonymous placeholders (user@example.com, user@refuseless.com, user@lutheos.com).
• Zero telemetry and 100% local macOS Keychain credential storage.


📦 Installation

  1. Download APIBar-app.zip below.
  2. Unzip and drag API Bar.app into your /Applications folder (or use in-app auto-update via Check for Updates…).
  3. Open it. All your existing connected sessions, Keychain credentials, and custom baselines are automatically preserved.