Repository navigation
feat(providers): add Mistral (Vibe Code + La Plateforme API budgets) - #226
Open
atostivint wants to merge 2 commits into
Open
atostivint wants to merge 2 commits into
atostivint wants to merge 2 commits into
Conversation
New 8th provider Mistral (ProviderId::Mistral = 7, key mistral, native menu cmd 67, disabled by default). Poller src/poller/mistral.rs reads GET https://api.mistral.ai/v1/billing/budget (Bearer + x-api-key): vibe_budget -> weekly window label Vibe, api_budget -> monthly window label API, both with the API reset_at (calendar month end). Unknown response fields ignored. Credentials in order: MISTRAL_API_KEY env var; Vibe CLI .env (VIBE_HOME/.env then USERPROFILE/.vibe/.env); Windows Credential Manager targets ai.mistral.vibe and MISTRAL_API_KEY@ai.mistral.vibe as written by vibe --setup. Watch snapshot hashes/metadata only, secrets never logged. UI: show_mistral setting, mistral_* strings in all 14 locales, brand mark U+F008 in brand-marks.ttf (official Mistral pixel-M from mistral.ai logo SVG), provider-mistral context menu item, mistral in usage_line whitelist, 10 studio helper expressions. Themes: mistral provider rows and mistral-tray-icon surfaces in classic-usage-widget, classic-vertical, compact-fluent-quad with Mistral red #FF4A00 accent, including segmented progress bars for both Vibe (weekly) and API (monthly) budgets. Docs: README provider setup and credentials, USER_GUIDE, CHANGELOG. Tests: 629 passed / 0 failed (cargo-bg test --release), incl. 8 new poller::mistral tests and brand-mark rasterization checks.
…t 2026) for brand mark U+F008 Single-path Inkscape outline from Icon-Mistral-Black.svg (Mistral_Brandkit_2026), scaled to match the other brand marks (bbox 21,156-979,840 in 1000upm, hmtx 1000/21). Font stays monochrome: glyph renders in the UI text color (white on dark), verified with white-on-dark and black-on-white previews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds Mistral as the 8th usage provider.
Tests: 629 passed / 0 failed (cargo-bg test --release). Live-tested on Windows with a real Vibe sign-in (widget shows API % and Vibe % with the month-end reset).