Repository navigation
fix(plugin): align AI SDK provider dependency - #67623
Open
rekram1-node wants to merge 1 commit into
Open
rekram1-node wants to merge 1 commit into
rekram1-node wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Looks good. The plugin now pins @ai-sdk/provider to 3.0.19, the version core uses. The package is used only for the LanguageModelV3 type in aisdk.ts, so nothing changes at runtime. I checked the frozen install, tsc on both packages/plugin and packages/core, and the plugin tests (38 pass, 0 fail).
Public API: the names in the plugin API are unchanged. The LanguageModelV3 type behind the aisdk language hook now comes from @ai-sdk/provider@3.0.19 instead of 3.0.8. It now matches the values core actually passes, so this is backwards compatible for plugins.
No concerns.
This branch has not been deployed
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.
Issue for this PR
N/A
Type of change
What does this PR do?
Aligns
@opencode/plugin's publicLanguageModelV3types with the@ai-sdk/provider@3.0.19runtime values core passes to plugin hooks. The dependency remains in place for emitted declarations, while the lockfile drops the plugin-specific duplicate3.0.8entry. No runtime code changes.How did you verify your code works?
bun install --frozen-lockfilefrom the repository rootbun run typecheckfrompackages/plugin: 333 files, no errorsbun run typecheck:tscfrompackages/pluginbun run buildfrompackages/plugin: declaration emit passedbun testfrompackages/plugin: 38 passed, 0 failedScreenshots / recordings
N/A
Checklist