feat: supersede stacked plugin versions, pin litellm-pricing 0.9.0 - #122
Merged
Merged
Conversation
append deduped by deep equality, so every pinned bump added a second entry and opencode loaded the plugin at both versions. An incoming `name@spec` entry now replaces every existing entry with the same package name, in place, and a config that already stacked several bumps collapses on the next install. Non-`name@spec` entries (cache fetch dests, prompted dirs, git URLs with credentials) stay plain append. remove is unchanged, still exact-match only. plugin-litellm-pricing 0.9.0 drops options.catalogURL: pricing now comes from the proxy itself, so provider-litellm no longer prompts for a catalog URL and the README section is rewritten around it. Re-running provider-litellm is what clears a stale catalogURL out of an existing config.
…esent The deep-equality check ran before the package-name lookup, so installing pricing@0.9.0 over a config already holding both 0.8.1 and 0.9.0 matched 0.9.0, counted it preserved and returned unchanged, leaving the stale entry behind. That is the repair path the README advertises, and it was a silent no-op: no write, no backup, no warning. The name lookup now runs first, and the trailing-duplicate sweep runs whether the anchored entry matched or not. Also shortens the summary label so it keeps the padded column.
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.
Two changes.
append stacked plugin versions.
combine()deduped array entries by deep equality, sopkg@0.8.1andpkg@0.9.0were two entries and opencode loaded the plugin twice. Every pinned bump added another one:An incoming
name@specentry now replaces every existing entry with the same package name, overwriting in place so position is kept, and the config above collapses to[litellm-pricing@0.9.0, dcg@0.2.0]on the next install. Scoped names andsuperpowers@git+https://...#tagmatch on the package name too. Entries that are notname@spec({{cache}}fetch dests, prompted dirs, a git URL carryinguser@host) stay plain append.removeis unchanged, still exact-match only. The install summary reportssuperseded N.Hit plugin-dcg, plugin-superpowers and plugin-opencode-planify-german identically.
litellm-pricing 0.9.0. The plugin now reads pricing from the proxy's
/v1/model/infoand no longer readsoptions.catalogURL. Drops the catalogURL prompt and body key from provider-litellm, pins 0.9.0, rewrites the README pricing section. Re-running provider-litellm is what clears a stale catalogURL out of an existing config.Verified: npm test 198/198, check-pins all pins current, and the stacked-config repro above run against a temp config.