Skip to content

fix(plugin): align AI SDK provider dependency - #67623

Open
rekram1-node wants to merge 1 commit into
devfrom
align-ai-provider
Open

rekram1-node wants to merge 1 commit into
devfrom
align-ai-provider

Conversation

@rekram1-node

Copy link
Copy Markdown
Member

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Aligns @opencode/plugin's public LanguageModelV3 types with the @ai-sdk/provider@3.0.19 runtime values core passes to plugin hooks. The dependency remains in place for emitted declarations, while the lockfile drops the plugin-specific duplicate 3.0.8 entry. No runtime code changes.

How did you verify your code works?

  • bun install --frozen-lockfile from the repository root
  • bun run typecheck from packages/plugin: 333 files, no errors
  • bun run typecheck:tsc from packages/plugin
  • bun run build from packages/plugin: declaration emit passed
  • bun test from packages/plugin: 38 passed, 0 failed

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

No deployments
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