Skip to content

Conversation

@garethpaul
Copy link

Add Poe as a new provider that displays current point balance via the POE_API_KEY environment variable. Features:

Files added:

  • PoeProviderDescriptor.swift - Provider metadata and API strategy
  • PoeUsageFetcher.swift - API call and error handling
  • PoeModels.swift - Response types and formatting
  • PoeProviderImplementation.swift - UI availability hooks
  • ProviderIcon-poe.svg - Poe logo icon

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: ec967d6fad

ℹ️ 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".

Add Poe as a new provider that displays current point balance via the
POE_API_KEY environment variable. Features:

- Fetches balance from https://api.poe.com/usage/current_balance
- Displays formatted points (e.g., "295.9M pts", "1.5K pts")
- Environment variable authentication only (no settings UI needed)

Files added:
- PoeProviderDescriptor.swift - Provider metadata and API strategy
- PoeUsageFetcher.swift - API call and error handling
- PoeModels.swift - Response types and formatting
- PoeProviderImplementation.swift - UI availability hooks
- ProviderIcon-poe.svg - Poe logo icon

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@garethpaul garethpaul force-pushed the feat/add-poe-provider branch from ec967d6 to aa46b53 Compare January 30, 2026 21:54
- Add PoeModelsTests for formatPoints() validation
- Add PoeUsageFetcherTests for JSON parsing
- Add ProviderTokenResolver tests for POE_API_KEY
- Fix SettingsStoreTests to include .poe in expected order
- Fix ProviderIconResourcesTests to check for poe icon
- Make formatPoints() public for testing
- Add _parseBalanceForTesting() for response parsing tests
- Add request timeout (30s) to prevent hanging
- Fix weeklyLabel to empty string (no weekly window for Poe)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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