From a73c0a30d9509d39e41d9179ba855e091f839c88 Mon Sep 17 00:00:00 2001 From: trick77 Date: Thu, 30 Jul 2026 20:56:29 +0200 Subject: [PATCH] feat(plugin-litellm-pricing): track the plugin's rename to 0.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- README.md | 2 +- presets/plugin-litellm-pricing.conf | 8 ++++---- test/builtin-presets.test.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 661b744..a7d2bd8 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ on a readline for the next. | `mcp-litellm-passthrough` | MCP | replace | Add one `x-mcp--
` passthrough header to the `mcp.litellm` server so an upstream MCP server authenticates as you (run once per header; install `mcp-litellm` first) | | `mcp-playwright` | MCP | replace | Add the Playwright MCP server (local stdio via npx; pins `@playwright/mcp` 0.0.78) | | `mcp-vscode` | MCP | replace | Add the VS Code MCP server via the `JuehangQin.vscode-mcp-server` extension (loopback HTTP, default port 3000) | -| `plugin-litellm-pricing` | Plugin | append | Add `opencode-litellm-pricing` — discovers a LiteLLM proxy's models at runtime and adds them to the picker with real per-model pricing instead of `$0` (pair with `provider-litellm` to set the proxy URL and key; pins `opencode-litellm-pricing` 0.2.0) | +| `plugin-litellm-pricing` | Plugin | append | Add `opencode-plugin-litellm-pricing` — discovers a LiteLLM proxy's models at runtime and adds them to the picker with real per-model pricing instead of `$0` (pair with `provider-litellm` to set the proxy URL and key; pins `opencode-plugin-litellm-pricing` 0.3.0) | | `provider-litellm` | Provider | replace | Point the `litellm` provider at your proxy URL for `plugin-litellm-pricing` (prompts for base URL and API key; no models list) | | `plugin-superpowers` | Plugin | append | Add the Superpowers OpenCode plugin from `obra/superpowers` (brainstorming, plans, TDD, review workflows; pins tag `v6.2.0`) | | `permissions-git-safe` | Permissions | merge | Read-only git commands (status, diff, log, branch --list, fetch, etc.) | diff --git a/presets/plugin-litellm-pricing.conf b/presets/plugin-litellm-pricing.conf index c9475da..7150985 100644 --- a/presets/plugin-litellm-pricing.conf +++ b/presets/plugin-litellm-pricing.conf @@ -1,11 +1,11 @@ // @name: plugin-litellm-pricing -// @description: Adds the opencode-litellm-pricing plugin: discovers a LiteLLM +// @description: Adds the opencode-plugin-litellm-pricing plugin: discovers a LiteLLM // proxy's models at runtime and adds them to the picker with real per-model // pricing instead of $0. // @author: Jan -// @version: 0.3.0 +// @version: 0.4.0 // @path: plugin // @mode: append -// @pins: opencode-litellm-pricing 0.2.0 +// @pins: opencode-plugin-litellm-pricing 0.3.0 -["opencode-litellm-pricing@0.2.0"] +["opencode-plugin-litellm-pricing@0.3.0"] diff --git a/test/builtin-presets.test.ts b/test/builtin-presets.test.ts index 4c551d6..41517b8 100644 --- a/test/builtin-presets.test.ts +++ b/test/builtin-presets.test.ts @@ -49,7 +49,7 @@ test('ships a litellm plugin preset that appends the runtime-discovery plugin', assert.equal(meta.name, 'plugin-litellm-pricing'); assert.equal(meta.path, 'plugin'); assert.equal(meta.mode, 'append'); - assert.deepEqual(body, ['opencode-litellm-pricing@0.2.0']); + assert.deepEqual(body, ['opencode-plugin-litellm-pricing@0.3.0']); }); test('ships a litellm provider preset that points at a proxy URL, no models', async () => { @@ -141,7 +141,7 @@ test('records the pinned third-party version of every preset that installs one', const expected: Record> = { 'jdtls-lombok': [{ name: 'lombok', version: '1.18.46' }], 'mcp-playwright': [{ name: '@playwright/mcp', version: '0.0.78' }], - 'plugin-litellm-pricing': [{ name: 'opencode-litellm-pricing', version: '0.2.0' }], + 'plugin-litellm-pricing': [{ name: 'opencode-plugin-litellm-pricing', version: '0.3.0' }], 'plugin-superpowers': [{ name: 'superpowers', version: '6.2.0' }], };