Open
Conversation
Contributor
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
…AI models with cost and capability details
- Detect and migrate v1 auth.json to auth-v2.json automatically - Ensures users with existing auth files don't lose their credentials - Validates OPENCODE_AUTH_CONTENT env var and migrates if needed
…nstead of hardcoded priorities Small models are now automatically selected based on output cost rather than maintaining hardcoded provider-specific priority lists. This ensures users always get the most cost-effective option without manual configuration updates when providers change pricing or add new models. Also adds alphabetical sorting to debug v2 output for easier navigation and improves plugin hook observability with span tracing.
Change plugin registration from direct hooks to lazy effect evaluation. Plugins now use PluginV2.define() which wraps the hooks in an Effect, allowing dependencies to be injected at registration time rather than at definition time. This enables plugins to depend on services like Catalog and Auth without explicit wiring in each provider file.
…re reliable multi-provider AI support Adds 35 test files covering all supported AI providers in the v2 plugin system. This ensures users can reliably switch between providers like OpenAI, Anthropic, Google, Azure, and others without runtime errors. Each provider is tested for correct API endpoint selection, authentication handling, and SDK integration.
8d4a667 to
7a19cac
Compare
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.
Summary
ModelV2so session events and messages use the same schema identity.Testing