feat(plugin-litellm-pricing): track the plugin's rename to 0.3.0 - #63
Merged
Conversation
opencode-litellm-pricing has been renamed to opencode-plugin-litellm-pricing.
npm has no rename, so the old package is a separate one, deprecated and frozen
at 0.2.0 — which does not load at all ("Plugin export is not a function"). This
preset pinned exactly that version, so anyone installing it got a plugin
opencode refuses to load.
Repins to opencode-plugin-litellm-pricing 0.3.0, which fixes the load bug.
provider-litellm needs no change: it writes provider.litellm, and the plugin
matches the id `litellm` directly — that was never tied to the package name.
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.
opencode-litellm-pricinghas been renamed toopencode-plugin-litellm-pricing. npm has no rename operation, so the old name is a separate package — now deprecated and frozen at 0.2.0.That matters here because 0.2.0 does not load at all:
plugin-litellm-pricing.confpinned exactly that version, so anyone installing this preset got a plugin opencode refuses to load. Repinned toopencode-plugin-litellm-pricing@0.3.0, which fixes it.Changes
presets/plugin-litellm-pricing.conf—@description,@pins, body spec; preset@version0.3.0 → 0.4.0test/builtin-presets.test.ts— both assertions (body spec and@pins)README.md— preset table rowNot changed
provider-litellm.confwritesprovider.litellm, and the plugin matches the idlitellmdirectly — that was never tied to the package name. Existing installs of either preset keep working: the plugin still accepts the oldopencode-litellm-pricingprovider id too.109/109 tests pass.