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
Merge release/v3.8.0 into refactor/pages
diegosouzapw317d1463025b
diff --cc package-lock.jsonindex 155cc1f6ef,c4545fbca3..54afbe5ad1--- a/package-lock.json+++ b/package-lock.json@@@ -18,11 -18,13 +18,14 @@@"@monaco-editor/react": "^4.7.0","@ngrok/ngrok": "^1.7.0","@swc/helpers": "0.5.21",+ "@xyflow/react": "^12.10.2",- "axios": "^1.16.0",+ "axios": "^1.16.1","bcryptjs": "^3.0.3",- "better-sqlite3": "^12.9.0",+ "better-sqlite3": "^12.10.0","bottleneck": "^2.19.5",+ "cli-table3": "^0.6.5",+ "commander": "^14.0.3",+ "csv-stringify": "^6.7.0","express": "^5.2.1","fetch-socks": "^1.3.3","fuse.js": "^7.3.0",@@@ -6193,12 -6443,18 +6504,24 @@@"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==","license": "ISC"},+ "node_modules/classcat": {+ "version": "5.0.5",+ "resolved": "https://registry.npmjs.org/classcat/-/classcat-5.0.5.tgz",+ "integrity": "sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==",+ "license": "MIT"+ },+ "node_modules/cli-boxes": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz",+ "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/cli-cursor": {"version": "5.0.0","resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",diff --cc package.jsonindex 3e5fb43b9a,21c8004997..2587a07474--- a/package.json+++ b/package.json@@@ -131,11 -135,13 +135,14 @@@"@monaco-editor/react": "^4.7.0","@ngrok/ngrok": "^1.7.0","@swc/helpers": "0.5.21",+ "@xyflow/react": "^12.10.2",- "axios": "^1.16.0",+ "axios": "^1.16.1","bcryptjs": "^3.0.3",- "better-sqlite3": "^12.9.0",+ "better-sqlite3": "^12.10.0","bottleneck": "^2.19.5",+ "cli-table3": "^0.6.5",+ "commander": "^14.0.3",+ "csv-stringify": "^6.7.0","express": "^5.2.1","fetch-socks": "^1.3.3","fuse.js": "^7.3.0",diff --cc src/app/(dashboard)/dashboard/HomePageClient.tsxindex aebd6c60eb,c9b4d06e34..b2a7ad6a49--- a/src/app/(dashboard)/dashboard/HomePageClient.tsx+++ b/src/app/(dashboard)/dashboard/HomePageClient.tsx@@@ -11,9 -11,8 +11,10 @@@ import ProviderIcon from "@/shared/compimport { AI_PROVIDERS, FREE_PROVIDERS, OAUTH_PROVIDERS } from "@/shared/constants/providers";import { useNotificationStore } from "@/store/notificationStore";import { copyToClipboard } from "@/shared/utils/clipboard";++const ProviderTopology = dynamic(() => import("../home/ProviderTopology"), { ssr: false });import type { NewsAnnouncement } from "@/shared/utils/releaseNotes";+ import { TierCoverageWidget } from "./TierCoverageWidget";type UpdateStep = {step: string;@@@ -718,32 -732,70 +719,35 @@@ export default function HomePageClient(</div></Card>+ {/* Tier Coverage */}+ <TierCoverageWidget />+- {/* Providers Overview */}+ {/* Provider Topology */}<Card>- <div className="flex items-center justify-between mb-4">+ <div className="flex items-center justify-between mb-3"><div>- <h2 className="text-lg font-semibold">{t("providersOverview")}</h2>- <p className="text-sm text-text-muted">- {t("configuredOf", {- configured: providerStats.filter((item) => item.total > 0).length,- total: providerStats.length,- })}+ <h2 className="text-base font-semibold">Provider Topology</h2>+ <p className="text-xs text-text-muted">+ Connected providers routing through OmniRoute in real time</p></div>- <div className="flex items-center gap-4">- <div className="hidden sm:flex items-center gap-3 text-[11px] text-text-muted">- <span className="flex items-center gap-1">- <span className="size-2 rounded-full bg-green-500" /> {tc("free")}- </span>- <span className="flex items-center gap-1">- <span className="size-2 rounded-full bg-blue-500" /> {t("oauthLabel")}- </span>- <span className="flex items-center gap-1">- <span className="size-2 rounded-full bg-amber-500" /> {t("apiKeyLabel")}- </span>- </div>- <Link- href="/dashboard/providers"- className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border border-border text-text-muted hover:text-text-main hover:bg-bg-subtle transition-colors"- >- <span className="material-symbols-outlined text-[14px]">settings</span>- {tc("manage")}- </Link>+ <div className="flex items-center gap-3 text-[11px] text-text-muted">+ <span className="flex items-center gap-1.5">+ <span className="size-2 rounded-full bg-green-500" /> Active+ </span>+ <span className="flex items-center gap-1.5">+ <span className="size-2 rounded-full bg-amber-500" /> Recent+ </span>+ <span className="flex items-center gap-1.5">+ <span className="size-2 rounded-full bg-red-500" /> Error+ </span></div></div>-- <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3">- {providerStats.map((item) => (- <ProviderOverviewCard- key={item.id}- item={item}- metrics={providerMetrics[item.provider.alias] || providerMetrics[item.id]}- onClick={() => setSelectedProvider(item)}- />- ))}- </div>+ <ProviderTopology+ providers={providerStats+ .filter((p) => p.total > 0)+ .map((p) => ({ id: p.id, provider: p.id, name: p.provider.name }))}+ /></Card>{/* Provider Models Modal */}diff --cc src/app/(dashboard)/dashboard/batch/files/page.tsxindex e7583fe4b3,0000000000..54fb54b41dmode 100644,000000..100644--- a/src/app/(dashboard)/dashboard/batch/files/page.tsx+++ b/src/app/(dashboard)/dashboard/batch/files/page.tsx@@@ -1,32 -1,0 +1,43 @@@+"use client";++import { useState, useEffect, useCallback } from "react";+import FilesListTab from "../FilesListTab";- import { mapFileApiToRecord } from "../batch-utils";++import { mapFileApiToRecord, mapBatchApiToRecord } from "../batch-utils";+import { FileRecord } from "@/lib/db/files";++import { BatchRecord } from "@/lib/db/batches";++export default function BatchFilesPage() {+ const [files, setFiles] = useState<FileRecord[]>([]);++ const [batches, setBatches] = useState<BatchRecord[]>([]);+ const [loading, setLoading] = useState(true);+- const fetchFiles = useCallback(async () => {++ const fetchAll = useCallback(async () => {+ setLoading(true);+ try {- const res = await fetch("/api/v1/files?limit=20");- if (res.ok) {- const data = await res.json();++ const [filesRes, batchesRes] = await Promise.all([++ fetch("/api/v1/files?limit=20"),++ fetch("/api/v1/batches?limit=20"),++ ]);++ if (filesRes.ok) {++ const data = await filesRes.json();+ setFiles((data.data || []).map(mapFileApiToRecord));+ }++ if (batchesRes.ok) {++ const data = await batchesRes.json();++ setBatches((data.data || []).map(mapBatchApiToRecord));++ }+ } catch {+ // ignore+ } finally {+ setLoading(false);+ }+ }, []);++ useEffect(() => {- void fetchFiles();- }, [fetchFiles]);++ void fetchAll();++ }, [fetchAll]);+- return <FilesListTab files={files} loading={loading} onRefresh={fetchFiles} />;++ return (++ <FilesListTab files={files} loading={loading} onRefresh={fetchAll} batches={batches} />++ );+}diff --cc src/app/(dashboard)/dashboard/batch/page.tsxindex 1b7a22a81d,6afc254877..13ba9de876--- a/src/app/(dashboard)/dashboard/batch/page.tsx+++ b/src/app/(dashboard)/dashboard/batch/page.tsx@@@ -166,12 -202,35 +166,17 @@@ export default function BatchPage()</button></div>- {/* Tab content with scroll container for position preservation */}- <div ref={listContainerRef} className="flex flex-col gap-6">- {activeTab === "batches" ? (- <>- <BatchListTab- batches={batches}- files={files}- loading={loading}- onRefresh={() => fetchData(false)}- />- {loadingMore && batchesCount > 0 && (- <div className="text-center text-sm">Loading more…</div>- )}- <div ref={bottomRefBatches} className="h-10" />- </>- ) : (- <>- <FilesListTab- files={files}- loading={loading}- onRefresh={() => fetchData(false)}- batches={batches}- />- {loadingMore && filesCount > 0 && (- <div className="text-center text-sm">Loading more…</div>- )}- <div ref={bottomRefFiles} className="h-10" />- </>+ <div className="flex flex-col gap-6">- <BatchListTab batches={batches} files={files} loading={loading} />++ <BatchListTab++ batches={batches}++ files={files}++ loading={loading}++ onRefresh={() => fetchData(false)}++ />+ {loadingMore && batchesCount > 0 && (+ <div className="text-center text-sm">Loading more…</div>)}+ <div ref={bottomRefBatches} className="h-10" /></div></div>);