Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
7d65115
feat(plugins): WordPress-style plugin system backend
oyi77 May 18, 2026
ae6fd7d
fix(plugins): address code review feedback
oyi77 May 18, 2026
50b5c30
fix(plugins): replace vm with child_process, add auth to all routes
oyi77 May 18, 2026
7466af0
fix(plugins): security + ESM fixes for loader and manager
oyi77 May 29, 2026
5420c27
feat(discovery): add discovery tool stub service
oyi77 May 29, 2026
20b2081
chore(plugins): slop cleanup β€” pino logger, remove redundant sorts
oyi77 May 29, 2026
478350c
test(plugins): add scanner, loader, manager unit tests
oyi77 May 29, 2026
043e36c
fix(settings): add missing home page pin keys to updateSettingsSchema
apoapostolov May 29, 2026
5949725
feat(plugins): add i18n keys to all 42 locales
oyi77 May 29, 2026
ac517ea
fix(settings): add missing security keys to updateSettingsSchema and …
apoapostolov May 29, 2026
87569d6
fix(usage): analytics route reads combo_name/requested_model from cal…
diegosouzapw May 29, 2026
a9bc0e8
fix(types,test): resolve noImplicitAny in progressiveAging + align se…
diegosouzapw May 29, 2026
3ecd2a1
fix(analytics): address merged review regressions
htkarabulut May 29, 2026
170b549
fix(executor): normalize max effort for openai shape providers
rdself May 29, 2026
99aac28
Make zero-latency combo optimizations opt-in
rdself May 29, 2026
8c4aafc
Address zero-latency combo review feedback
rdself May 29, 2026
d39d271
chore(release): sync v3.8.7 touchpoints + credit contributors
diegosouzapw May 29, 2026
b5f0d72
fix(cleanup): restore usage history cutoff boundary
htkarabulut May 29, 2026
c3e5f2d
docs(changelog): rank 3.8.6 contributors in a commits table with thei…
diegosouzapw May 29, 2026
8a409fc
fix(dashboard): theme ReactFlow Controls +/- buttons for dark mode
apoapostolov May 29, 2026
fe990e0
fix(settings): add missing home page pin keys to updateSettingsSchema
apoapostolov May 29, 2026
863ee3e
fix(settings): add missing security keys to updateSettingsSchema and …
apoapostolov May 29, 2026
28ded81
fix(executor): normalize max effort for openai shape providers
rdself May 29, 2026
1ce07aa
Make zero-latency combo optimizations opt-in
rdself May 29, 2026
a7c098e
Address zero-latency combo review feedback
rdself May 29, 2026
6123e48
fix(analytics): address merged review regressions
htkarabulut May 29, 2026
25741a7
fix(cleanup): restore usage history cutoff boundary
htkarabulut May 29, 2026
0974b96
feat(plugins): WordPress-style plugin system backend
oyi77 May 18, 2026
087a880
fix(plugins): address code review feedback
oyi77 May 18, 2026
46d01be
fix(plugins): replace vm with child_process, add auth to all routes
oyi77 May 18, 2026
31a615c
fix(plugins): security + ESM fixes for loader and manager
oyi77 May 29, 2026
969e963
feat(discovery): add discovery tool stub service
oyi77 May 29, 2026
98b3822
chore(plugins): slop cleanup β€” pino logger, remove redundant sorts
oyi77 May 29, 2026
1ff3f32
test(plugins): add scanner, loader, manager unit tests
oyi77 May 29, 2026
9540812
feat(plugins): add i18n keys to all 42 locales
oyi77 May 29, 2026
0137435
chore(plugins): remove duplicate migration 059_create_plugins.sql
diegosouzapw May 29, 2026
2467a06
Merge pull request #2918 from unitythemaker/fix/analytics-gemini-foll…
diegosouzapw May 29, 2026
2f975c0
Merge pull request #2912 from oyi77/feat/plugin-system
diegosouzapw May 29, 2026
338636a
Merge pull request #2915 from apoapostolov/fix/pin-settings-schema-va…
diegosouzapw May 29, 2026
2ae278f
Merge pull request #2916 from rdself/coder/openai-compatible-max-effo…
diegosouzapw May 29, 2026
41ef944
Merge pull request #2917 from rdself/coder/zero-latency-combo-toggle
diegosouzapw May 29, 2026
8477789
chore(plugins): remove duplicate migration 059_create_plugins.sql (po…
diegosouzapw May 29, 2026
a800dc8
fix(sse): guard non-string error.code in proxyFetch + harden model pa…
diegosouzapw May 29, 2026
3c6ee6c
fix(docker): add runner-web stage with Playwright Chromium (#2832) (#…
diegosouzapw May 29, 2026
f42a072
docs(changelog): document NVIDIA NIM and error code type-crash fix (#…
diegosouzapw May 29, 2026
75012e6
test: ignore NVIDIA_BASE_URL and NVIDIA_MODEL in env contract check
diegosouzapw May 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
### πŸ† Hall of Contributors

A special thanks to everyone who contributed code, reviews, and tests for this release:
@akarray, @alltomatos, @androw, @apoapostolov, @Ardem2025, @dhaern, @disonjer, @gogones, @hartmark, @herjarsa, @InkshadeWoods, @jeferssonlemes, @leninejunior, @levonk, @marchlhw, @mugnimaestra, @nickwizard, @oyi77, @RajvardhanPatil07, @rdself, @soyelmismo, @Tushar49, @yunaamelia
@akarray, @alltomatos, @androw, @apoapostolov, @Ardem2025, @dhaern, @disonjer, @gogones, @hartmark, @herjarsa, @InkshadeWoods, @jeferssonlemes, @leninejunior, @levonk, @marchlhw, @mugnimaestra, @nickwizard, @oyi77, @RajvardhanPatil07, @rdself, @soyelmismo, @Tushar49, @yunaamelia, Dmitry Kuznetsov, Nikolay Alafuzov

---

Expand Down
4 changes: 2 additions & 2 deletions llm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OmniRoute solves the problem of managing multiple AI provider subscriptions, quo

**Key value:** One endpoint (`http://localhost:20128/v1`), unlimited models, zero downtime, minimal cost.

**Current version:** 3.8.5
**Current version:** 3.8.7

## Tech Stack

Expand Down Expand Up @@ -279,7 +279,7 @@ OmniRoute solves the problem of managing multiple AI provider subscriptions, quo
└── .env.example # Environment variable template
```

## Key Features (v3.8.5)
## Key Features (v3.8.7)

### Core Proxy
- **177 AI providers** with automatic format translation
Expand Down
8 changes: 6 additions & 2 deletions open-sse/services/compression/progressiveAging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ function estimateTokens(text: string): number {

type ChatMessage = ChatMessageLike;

type CompressedResult = {
body?: { messages?: Array<{ content?: ChatMessageLike["content"] }> };
};

function setContent(msg: ChatMessage, newContent: string): ChatMessage {
return replaceTextContent(msg, newContent) as ChatMessage;
}
Expand Down Expand Up @@ -52,7 +56,7 @@ export function applyAging(
if (distanceFromEnd <= t.verbatim) {
result.push(msg);
} else if (distanceFromEnd <= t.light) {
const compressed = applyLiteCompression({ messages: [msg] });
const compressed = applyLiteCompression({ messages: [msg] }) as CompressedResult;
if (compressed?.body?.messages?.[0]?.content) {
const newContent =
typeof compressed.body.messages[0].content === "string"
Expand All @@ -65,7 +69,7 @@ export function applyAging(
result.push(msg);
}
} else if (distanceFromEnd <= t.moderate) {
const compressed = cavemanCompress({ messages: [msg] as unknown as Parameters<typeof cavemanCompress>[0]["messages"] });
const compressed = cavemanCompress({ messages: [msg] as unknown as Parameters<typeof cavemanCompress>[0]["messages"] }) as CompressedResult;
if (compressed?.body?.messages?.[0]?.content) {
const newContent =
typeof compressed.body.messages[0].content === "string"
Expand Down
15 changes: 5 additions & 10 deletions src/app/api/usage/analytics/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
if (!pricing) {
// Global fallback: search all providers for this exact model (helps with aliases)
for (const prov of Object.values(pricingByProvider)) {
const found = tryFind(prov as Record<string, unknown>);

Check warning on line 192 in src/app/api/usage/analytics/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=diegosouzapw_OmniRoute&issues=AZ51YEy7L5O9AuzZk8YT&open=AZ51YEy7L5O9AuzZk8YT&pullRequest=2919
if (found) {
pricing = found;
break;
Expand Down Expand Up @@ -404,9 +404,7 @@
latency_ms,
connection_id,
api_key_id,
api_key_name,
combo_name,
requested_model
api_key_name
FROM usage_history
${rawWhere}
UNION ALL
Expand All @@ -424,22 +422,19 @@
0 as latency_ms,
NULL as connection_id,
NULL as api_key_id,
NULL as api_key_name,
NULL as combo_name,
NULL as requested_model
NULL as api_key_name
FROM daily_usage_summary
${aggWhere}
)`
)`
: `(SELECT
timestamp, provider, model,
tokens_input, tokens_output,
tokens_cache_read, tokens_cache_creation, tokens_reasoning,
service_tier, success, latency_ms,
connection_id, api_key_id, api_key_name,
combo_name, requested_model
connection_id, api_key_id, api_key_name
FROM usage_history
${whereClause}
)`;
)`;

// When using the unified source the WHERE filters are already embedded inside.
// For the original whereClause-based queries that still reference usage_history directly
Expand All @@ -449,7 +444,7 @@

// Fetch pricing data for cost calculation (no rows loaded)
const { getPricing } = await import("@/lib/db/settings");
const rawPricingByProvider = (await getPricing()) as PricingByProvider;

Check warning on line 447 in src/app/api/usage/analytics/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=diegosouzapw_OmniRoute&issues=AZ51YEy7L5O9AuzZk8YU&open=AZ51YEy7L5O9AuzZk8YU&pullRequest=2919

// Pre-process pricing data to lowercase keys for O(1) lookups
const pricingByProvider: PricingByProvider = {};
Expand Down Expand Up @@ -928,7 +923,7 @@
Number(existing.latencyWeightedTotal || 0) + Number(row.avgLatencyMs || 0) * requests;
existing.successfulRequests =
Number(existing.successfulRequests || 0) + Number(row.successfulRequests || 0);
if (!existing.lastUsed || String(row.lastUsed || "") > String(existing.lastUsed || "")) {

Check warning on line 926 in src/app/api/usage/analytics/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

'existing.lastUsed || ""' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=diegosouzapw_OmniRoute&issues=AZ51YEy7L5O9AuzZk8YW&open=AZ51YEy7L5O9AuzZk8YW&pullRequest=2919

Check warning on line 926 in src/app/api/usage/analytics/route.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

'row.lastUsed || ""' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=diegosouzapw_OmniRoute&issues=AZ51YEy7L5O9AuzZk8YV&open=AZ51YEy7L5O9AuzZk8YV&pullRequest=2919
existing.lastUsed = row.lastUsed;
}
existing.cost = Number(existing.cost || 0) + cost;
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/services-branch-hardening.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ test("rate limit semaphore covers immediate acquire, timeout, cooldown drain and

release();
release();
assert.equal(rateLimitSemaphore.getStats()["model-a"].running, 0);
// #2903 (perf-ram) prunes idle gates when they reach zero running/queued, so the
// entry may be absent here β€” assert "no running slots" without assuming it persists.
assert.equal(rateLimitSemaphore.getStats()["model-a"]?.running ?? 0, 0);

const heldRelease = await rateLimitSemaphore.acquire("model-b", { maxConcurrency: 1 });
const timeoutPromise = rateLimitSemaphore.acquire("model-b", {
Expand All @@ -214,7 +216,7 @@ test("rate limit semaphore covers immediate acquire, timeout, cooldown drain and
assert.equal(rateLimitSemaphore.getStats()["model-c"].queued, 1);
const secondRelease = await secondPromise;
secondRelease();
assert.equal(rateLimitSemaphore.getStats()["model-c"].queued, 0);
assert.equal(rateLimitSemaphore.getStats()["model-c"]?.queued ?? 0, 0);

const blockingRelease = await rateLimitSemaphore.acquire("model-d", { maxConcurrency: 1 });
const queuedPromise = rateLimitSemaphore.acquire("model-d", {
Expand Down