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.
Summary
Add Warp terminal AI provider for tracking credit usage. This enables CodexBar users to monitor their Warp AI credits directly from the menu bar.
Closes #160
Features
API-based fetching via Warp's usage API
API key authentication - stored in
~/.codexbar/config.json(gitignored)Displays credit usage percentage (using Warp’s signature purple tab highlight) and the reset date.
Screenshots
*Menu Bar *
The CodexBar‑styled icon blends CodexBar’s playful look with Warp’s signature diagonal line, giving it a mysterious ninja vibe 🥷.
Icon style can be selected in Settings.
Settings
Files Added/Modified
Core Implementation:
Sources/CodexBarCore/Providers/Warp/WarpProviderDescriptor.swift- Provider metadataSources/CodexBarCore/Providers/Warp/WarpUsageFetcher.swift- API-based usage fetchingSources/CodexBarCore/Providers/Warp/WarpSettingsReader.swift- Settings readerUI Integration:
Sources/CodexBar/Providers/Warp/WarpProviderImplementation.swift- Provider implementationSources/CodexBar/Providers/Warp/WarpSettingsStore.swift- Settings persistenceSources/CodexBar/Resources/ProviderIcon-warp.svg- Warp iconSources/CodexBar/IconRenderer.swift- Icon rendering with Warp purple colorDocumentation:
docs/warp.md- Provider documentationdocs/providers.md- Updated provider listIntegration Files (updated with
.warpenum cases):How It Works
User generates API key at app.warp.dev
Paste API key in CodexBar Settings → Providers → Warp
CodexBar fetches usage data via Warp API
Shows credits percentage and reset date in menu bar
Testing
Manual verification:
./Scripts/compile_and_run.shswift test(timed out locally; CI will re-run)swiftformat Sources Tests(not installed locally; CI will verify)swiftlint --strict(not installed locally; CI will verify)