mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-10-19 05:20:05 +00:00
test(plugin-v2): lock relay of catalog filter defaults and name star sentinel (#16163)
Thanks @maxmad64bis. Wave 27 boarded this pull request cleanly on release/v3.8.52 at f8d11c9326. The focused unit tests for the files it touches passed on that combined tree (116 passed in the second run, plus the auto-combo weight tests and the skills characterization tests). Changelog integrity passed. The only file-size finding is executeTargetAttempt.ts, already over its frozen ceiling on the release tip and unchanged by this diff.
⚠️ base-red inherited: #15306
This commit is contained in:
parent
884f8fc0e9
commit
c4798e5b4d
3 changed files with 14 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import {
|
|||
PLUGIN_ID,
|
||||
providerIdFor,
|
||||
resolveTimeouts,
|
||||
toResolvedOptions,
|
||||
} from "../src/options.js";
|
||||
|
||||
describe("parsePluginOptions", () => {
|
||||
|
|
@ -286,3 +287,14 @@ describe("providerId is bounded because it reaches a filesystem path", () => {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("resolved relay defaults", () => {
|
||||
it("relays the four catalog filter defaults from parse to resolved options", () => {
|
||||
const parsed = parsePluginOptions({ baseURL: "https://gw.example.com" });
|
||||
const resolved = toResolvedOptions(parsed);
|
||||
assert.equal(resolved.usableOnly, parsed.usableOnly);
|
||||
assert.equal(resolved.freeOnly, parsed.freeOnly);
|
||||
assert.equal(resolved.toolsOnly, parsed.toolsOnly);
|
||||
assert.equal(resolved.visionOnly, parsed.visionOnly);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
- **test(plugin-v2):** the plugin keeps the four catalog filter defaults when relaying parsed options, and the guide names `*` as the full-catalog escape hatch ([#16163](https://github.com/diegosouzapw/OmniRoute/pull/16163)) — thanks @maxmad64bis
|
||||
|
|
@ -91,7 +91,7 @@ naming the endpoint and what was lost — so a degraded picker is never a myster
|
|||
| `freshPerOwner` | `10` | Default-view fresh entries kept per provider |
|
||||
| `freshWindowDays` | `90` | Freshness window in days for the fresh branch |
|
||||
| `usageMemory` | `true` | Restore statically dropped entries named by 30-day usage analytics (needs a management token) |
|
||||
| `visibleModels` / `hiddenModels` | `[]` | Exact-or-suffix allowlists; deny wins |
|
||||
| `visibleModels` / `hiddenModels` | `[]` | Exact-or-suffix allowlists; deny wins; `*` publishes the full catalog (other filters still apply) |
|
||||
| `geminiSanitization` | `true` | Strip the JSON-Schema keywords Gemini rejects from tool schemas (`$ref` tools are forwarded untouched) |
|
||||
| `apiFormat.allowAnthropic` | `false` | Route allowlisted ids through the Anthropic API block |
|
||||
| `apiFormat.anthropicModels` | `[]` | Full model ids routed to Anthropic |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue