M3: All providers + auth #4

Open
darman wants to merge 5 commits from feature/m3 into feature/m2
Owner
  • OpenAI chat + responses codecs, provider, registry wiring
  • auth.json credential storage
  • model pricing + per-step cost accumulation
  • models.dev catalog + cost display wiring in the TUI
  • Copilot device-flow login, token exchange with direct-Bearer fallback, provider
- OpenAI chat + responses codecs, provider, registry wiring - `auth.json` credential storage - model pricing + per-step cost accumulation - models.dev catalog + cost display wiring in the TUI - Copilot device-flow login, token exchange with direct-Bearer fallback, provider
darman changed target branch from develop to feature/m2 2026-07-10 15:12:20 +00:00
darman added 5 commits 2026-07-10 15:12:20 +00:00
Adds both OpenAI codecs — chat completions and the newer responses API — plus the OpenAiProvider and registry wiring, so the same session can run against OpenAI in addition to Anthropic.
Adds harness-providers::auth, a persisted auth.json credential store for provider tokens, laying the groundwork for Copilot's device-flow login and token refresh.
Extends the model catalog with per-token pricing and accumulates cost per engine step, threading the running total through the store and up into harness-app so it can be surfaced in the UI.
Adds a bundled models.dev snapshot plus harness-providers::modelsdev to resolve model metadata, and wires live cost display into the TUI's input bar and message state, updating the render snapshots accordingly.
Adds the Copilot provider: device-flow login modal support, copilot_internal/v2/token exchange with a direct-Bearer fallback, and routing across the three codecs, per the dual-path mitigation noted for Copilot token variance.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/m3:feature/m3
git checkout feature/m3
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: darman/ai-harness#4