Repository navigation
feat(plugin): filter published catalog by provider with empty-result guard - #15239
Merged
diegosouzapw merged 1 commit intoOct 6, 2026
Conversation
maxmad64bis
force-pushed
the
feat/plugin-provider-filter
branch
from
September 30, 2026 21:51
230e264 to
a940d27
Compare
maxmad64bis
marked this pull request as ready for review
September 30, 2026 22:07
maxmad64bis
marked this pull request as draft
October 1, 2026 22:46
maxmad64bis
force-pushed
the
feat/plugin-provider-filter
branch
from
October 2, 2026 00:33
a940d27 to
c0e5009
Compare
5 tasks
maxmad64bis
marked this pull request as ready for review
October 2, 2026 09:02
4 of 5 tasks
maxmad64bis
marked this pull request as draft
October 3, 2026 01:23
maxmad64bis
force-pushed
the
feat/plugin-provider-filter
branch
from
October 3, 2026 01:23
c0e5009 to
0f898d9
Compare
maxmad64bis
marked this pull request as ready for review
October 3, 2026 01:41
5 tasks done
maxmad64bis
force-pushed
the
feat/plugin-provider-filter
branch
from
October 4, 2026 15:14
0f898d9 to
002e02c
Compare
diegosouzapw
merged commit Oct 6, 2026
fb07b05
into
diegosouzapw:release/v3.8.52
48 of 116 checks passed
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.
Summary
Adds an opt-in
providersAllowoption to the v2 plugin that restricts the published catalog (models, combos, auto-combos) by provider id prefix; empty or absent means the full catalog, so existing installs are unchanged.Related Issues
Validation
npm run lint— ESLint on the touched files is clean; the full run is red on the base (🔴 Release branch not green: release/v3.8.52 #15306).Tests Added Or Updated
@omniroute/opencode-plugin-v2/tests/provider-filter.test.ts(new): predicate-level coverage — empty allow, single provider, unknown name fail-open, empty-result case, multi-provider combos, pool typo, alias/canonical resolution, normalization.@omniroute/opencode-plugin-v2/tests/catalog-provider.test.ts(new): integration throughparsePluginOptions+ the exportedtoResolvedOptionsintocollectCatalog— all spec cases at catalog level plus synthetic scale and allowlist interop.@omniroute/opencode-plugin-v2/tests/options.test.ts(extended): option default, acceptance, non-array rejection.Coverage Notes
src/provider-filter.tsis pure (no fetch, no global state) and covered at both predicate and catalog levels;src/catalog.tswiring (3 collection points + empty-result guard) is covered by the integration file.Reviewer Notes
staged-refresh, "refresh after TTL keeps the overlay") not reproduced locally: 10/10 green on base and head with the same Node 24.21.0 binary — looks like CI flake, out of scope here. Merge order with feat(plugin): filter published catalog by capability presets #14554: this one first (additive, opt-in), feat(plugin): filter published catalog by capability presets #14554 reconnects on top — both touch the same three collection points, so the second to merge resolves the overlap. Shares the plugin catalog, options and README with feat(plugin): filter published catalog by capability presets #14554: either order, with a rebase on the release tip; fix(plugin): stop requesting the retired virtual-entries route #15392 is stacked on this branch and lands after it. feat(plugin): publish useful catalog entries by default, full list on request #15484 lands after this one, with a rebase on conflict.