Skip to content

Port Aerostack provider from upstream v0.74.1 - #843

Open
Finesssee wants to merge 3 commits into
feat/provider-cosmicfrom
feat/provider-aerostack
Open

Finesssee wants to merge 3 commits into
feat/provider-cosmicfrom
feat/provider-aerostack

Conversation

@Finesssee

Copy link
Copy Markdown
Collaborator

Port Aerostack provider (v0.74.1)

Ports the Aerostack account JWT provider from upstream CodexBar v0.74.1. Aerostack is an API-key provider using bearer-authenticated GET to https://api.aerostack.dev/api/billing/usage, returning monthly AI-token usage and the reported account tier.

Upstream sources:

Windows changes:

  • No cookie extraction needed; API-key only (native Windows difference).
  • Settings field: Account JWT (stored via secure_file / DPAPI).
  • Primary meter: token usage % (when both used and limit are present and limit > 0).
  • Detail rows: Tokens used, Allowance, Remaining, Above allowance (if over), Period (if reported), Tier (in identity).

Checks run:

  • cargo fmt --all -- --check ✓
  • cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings ✓
  • cargo clippy --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml --all-targets -- -D warnings (no shell changes)
  • cargo test --manifest-path rust/Cargo.toml (aerostack tests: 14 passed)

File manifest:

  • rust/src/core/provider.rs: ProviderId::Aerostack variant + metadata methods + brand_color
  • rust/src/core/provider_factory.rs: instantiate and pace_capability arms
  • rust/src/core/token_accounts.rs: token account support (None for API-key)
  • rust/src/providers/mod.rs: module import + re-export
  • rust/src/providers/aerostack/mod.rs: provider implementation
  • rust/src/providers/aerostack/tests.rs: 14 unit tests with literal JSON fixtures

Stacked on: #[Cosmic PR number TBD] (feat/provider-cosmic branch)

Proof: To be added with fresh binary build and win_run.py proof.

Known gaps vs. Mac:

  • None (API structure matches upstream; all response fields captured).

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: nesszer/Win-CodexBar/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 765b8c6a-50e6-47c3-b25a-d4c056201dbe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Finesssee
Finesssee force-pushed the feat/provider-aerostack branch from 105282a to 9c7df5a Compare October 12, 2026 21:11
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