Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
chore(release): v3.1.9 — schema coercion, tool sanitization, clearAllModels i18n, bug fixes #605 #709 #710 #711
diegosouzapwa7cdcd8b3ac9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 56eaa57200..0080e32232 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,42 @@## [Unreleased]+---++## [3.1.9] — 2026-03-28++### ✨ New Features++- **Schema Coercion** — Auto-coerce string-encoded numeric JSON Schema constraints (e.g. `"minimum": "1"`) to proper types, preventing 400 errors from Cursor, Cline, and other clients sending malformed tool schemas.+- **Tool Description Sanitization** — Ensure tool descriptions are always strings; converts `null`, `undefined`, or numeric descriptions to empty strings before sending to providers.+- **Clear All Models Button** — Added i18n translations for the "Clear All Models" provider action across all 30 languages.+- **Codex Auth Export** — Added Codex `auth.json` export and apply-local buttons for seamless CLI integration.+- **Windsurf BYOK Notes** — Added official limitation warnings to the Windsurf CLI tool card documenting BYOK constraints.++### 🐛 Bug Fixes++- **Fix #709** — `system-info.mjs` no longer crashes when the output directory doesn't exist (added `mkdirSync` with recursive flag).+- **Fix #710** — A2A `TaskManager` singleton now uses `globalThis` to prevent state leakage across Next.js API route recompilations in dev mode. E2E test suite updated to handle 401 gracefully.+- **Fix #711** — Added provider-specific `max_tokens` cap enforcement for upstream requests.+- **Fix #605 / #592** — Strip `proxy_` prefix from tool names in non-streaming Claude responses; fixed LongCat validation URL.+- **Call Logs Max Cap** — Upgraded `getMaxCallLogs()` with caching layer, env var support (`CALL_LOGS_MAX`), and DB settings integration.++### 🧪 Tests++- Test suite expanded from 964 → 1027 tests (63 new tests)+- Added `schema-coercion.test.mjs` — 9 tests for numeric field coercion and tool description sanitization+- Added `t40-opencode-cli-tools-integration.test.mjs` — OpenCode/Windsurf CLI integration tests+- Enhanced feature-tests branch with comprehensive coverage tooling++### 📁 New Files++| File | Purpose |+|------|---------|+| `open-sse/translator/helpers/schemaCoercion.ts` | Schema coercion and tool description sanitization utilities |+| `tests/unit/schema-coercion.test.mjs` | Unit tests for schema coercion |+| `tests/unit/t40-opencode-cli-tools-integration.test.mjs` | CLI tool integration tests |+| `COVERAGE_PLAN.md` | Test coverage planning document |+## [3.1.8] - 2026-03-27### 🐛 Bug Fixes & Featuresdiff --git a/docs/openapi.yaml b/docs/openapi.yamlindex b358a66f7d..97af13ca62 100644--- a/docs/openapi.yaml+++ b/docs/openapi.yaml@@ -1,7 +1,7 @@openapi: 3.1.0info:title: OmniRoute API- version: 3.1.8+ version: 3.1.9description: |OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatibleendpoint that routes requests to multiple AI providers with load balancing,diff --git a/package-lock.json b/package-lock.jsonindex 52f1ea8e43..00c495a0f8 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "omniroute",- "version": "3.1.8",+ "version": "3.1.9","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "omniroute",- "version": "3.1.8",+ "version": "3.1.9","hasInstallScript": true,"license": "MIT","workspaces": [diff --git a/package.json b/package.jsonindex ef7f8ff1c4..a3f0c6af7e 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "omniroute",- "version": "3.1.8",+ "version": "3.1.9","description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.","type": "module","bin": {