Skip to content

feat(providers): Add Xiaomi MiMo balance provider#596

Open
rolandkakonyi wants to merge 11 commits intosteipete:mainfrom
rolandkakonyi:feature/xiaomi-mimo-balance
Open

feat(providers): Add Xiaomi MiMo balance provider#596
rolandkakonyi wants to merge 11 commits intosteipete:mainfrom
rolandkakonyi:feature/xiaomi-mimo-balance

Conversation

@rolandkakonyi
Copy link

@rolandkakonyi rolandkakonyi commented Mar 24, 2026

Summary

  • add Xiaomi MiMo as a new balance provider across CodexBar app, core, and CLI surfaces
  • implement MiMo browser-cookie/manual-cookie balance fetching, settings/config integration, branding/icon, and menu/detail presentation
  • add regression coverage for MiMo fetch/parsing plus balance-label formatting and cookieSource=off behavior
  • document the provider in the shared provider/configuration docs and add dedicated setup notes in docs/mimo.md

Reviewer Question

Open question for reviewers: Should we extract the request-URL cookie matching logic added for MiMo into a shared helper for providers that import browser cookies, or keep it provider-local until a second caller needs the same behavior?

Testing

  • swift test --filter MiMoProviderTests
  • swift test --filter MenuDescriptorAntigravityTests
  • swiftformat Sources Tests
  • swiftlint --strict
  • pnpm check
  • ./Scripts/compile_and_run.sh

Notes

  • MiMo currently exposes balance-only data; token cost, debug log output, status polling, and widgets remain unsupported

Roland Kakonyi added 2 commits March 24, 2026 17:47
Introduce the Xiaomi MiMo provider across app, core, CLI, and widget surfaces.\n\nAdd MiMo-specific fetchers, settings, icons, and tests, and fix balance row formatting and cookie-source off handling discovered during review.
Add Xiaomi MiMo to the provider reference and update the configuration guide's provider ID list so the docs match the current branch.
## Provider IDs
Current IDs (see `Sources/CodexBarCore/Providers/Providers.swift`):
`codex`, `claude`, `cursor`, `opencode`, `factory`, `gemini`, `antigravity`, `copilot`, `zai`, `minimax`, `kimi`, `kilo`, `kiro`, `vertexai`, `augment`, `jetbrains`, `kimik2`, `amp`, `ollama`, `synthetic`, `warp`, `openrouter`.
`codex`, `claude`, `cursor`, `opencode`, `alibaba`, `factory`, `gemini`, `antigravity`, `copilot`, `zai`, `minimax`, `kimi`, `kilo`, `kiro`, `vertexai`, `augment`, `jetbrains`, `kimik2`, `amp`, `ollama`, `synthetic`, `warp`, `openrouter`, `mimo`.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 alibaba was missing here

@rolandkakonyi rolandkakonyi marked this pull request as ready for review March 25, 2026 04:47
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e41ab3791

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rolandkakonyi
Copy link
Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b43d91b0d5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rolandkakonyi
Copy link
Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d6dfcdd5b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rolandkakonyi
Copy link
Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7ece0d540

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rolandkakonyi
Copy link
Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f84020860

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rolandkakonyi
Copy link
Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rolandkakonyi rolandkakonyi changed the title Add Xiaomi MiMo balance provider feat(providers): Add Xiaomi MiMo balance provider Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant