9router/src/lib
hodtien 54e3245ace feat(usage): track cached tokens + correct input/output/cache cost (#2209)
Normalize every provider to one cache-inclusive convention via
canonicalizeUsage() before persist, and price cached + cache_creation as
subsets of prompt_tokens in calculateCostFromTokens() to stop
double-counting. usageRepo now delegates cost math to a single source.
Surface Cached tokens/cost across dashboard (overview, tokens, cost,
details). Merge Claude message_start cache with message_delta output so
cache counts survive. Compatible LLM nodes now allow multiple API-key
connections (key pool).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 15:18:27 +07:00
..
auth fix(security): re-auth on DB export/import + SSRF guard on web fetch 2026-06-13 11:40:35 +07:00
db feat(usage): track cached tokens + correct input/output/cache cost (#2209) 2026-07-03 15:18:27 +07:00
headroom fix(headroom): support Docker sidecar proxy 2026-06-21 17:45:27 +07:00
mcp feat(cowork): re-enable Claude Cowork with preset-only stdio MCP 2026-06-08 15:35:37 +07:00
network fix(security): patch 5 vulnerabilities from security audit 2026-06-26 11:04:51 +07:00
oauth fix: prevent non-SSE stream pipe crash and cross-IdP account overwrites (#2244) 2026-07-03 11:11:07 +07:00
qoder refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup 2026-06-14 13:15:48 +07:00
tunnel fix(auth): real client IP rate-limiting + remote default-password guard 2026-06-08 12:10:02 +07:00
updater chore: release v0.4.27 2026-05-09 22:48:07 +07:00
appUpdater.js # v0.4.29 (2026-05-10) 2026-05-10 21:56:40 +07:00
consoleLogBuffer.js Fix usage logging dedupe and reduce stats churn 2026-06-26 10:22:20 +07:00
dataDir.js fix(mitm): update Kiro API endpoint to runtime.us-east-1.kiro.dev 2026-06-08 09:43:45 +07:00
disabledModelsDb.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
localDb.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
mitmAliasCache.js # v0.4.29 (2026-05-10) 2026-05-10 21:56:40 +07:00
providerNormalization.js feat(xai): add xAI Grok provider with OAuth + API key auth + image 2026-05-21 11:33:18 +07:00
requestDetailsDb.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
usageDb.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00