Skip to content

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

refactor(dashboard): nav, providers, endpoint, runtime, quota, pricing, budget redesign + quota sharing preview (#2384)

Diego Rodrigues de Sa e Souzaeb83eaf25fcd
diff --git a/open-sse/services/compression/types.ts b/open-sse/services/compression/types.ts
index aea6a54a44..c6d1387bd2 100644
--- a/open-sse/services/compression/types.ts
+++ b/open-sse/services/compression/types.ts
@@ -167,7 +167,7 @@ export const DEFAULT_COMPRESSION_CONFIG: CompressionConfig = {
};
export const DEFAULT_CAVEMAN_CONFIG: CavemanConfig = {
- enabled: true,
+ enabled: false,
compressRoles: ["user"],
skipRules: [],
minMessageLength: 50,
@@ -181,18 +181,18 @@ export const DEFAULT_CAVEMAN_CONFIG: CavemanConfig = {
"^\\s*(Error|TypeError|RangeError|SyntaxError|ReferenceError):",
"^\\s+at\\s",
],
- intensity: "full",
+ intensity: "lite",
};
export const DEFAULT_CAVEMAN_OUTPUT_MODE_CONFIG: CavemanOutputModeConfig = {
enabled: false,
- intensity: "full",
+ intensity: "lite",
autoClarity: true,
};
export const DEFAULT_RTK_CONFIG: RtkConfig = {
- enabled: true,
- intensity: "standard",
+ enabled: false,
+ intensity: "minimal",
applyToToolResults: true,
applyToCodeBlocks: false,
applyToAssistantMessages: false,
diff --git a/src/app/(dashboard)/dashboard/HomePageClient.tsx b/src/app/(dashboard)/dashboard/HomePageClient.tsx
index b2a7ad6a49..aebd6c60eb 100644
--- a/src/app/(dashboard)/dashboard/HomePageClient.tsx
+++ b/src/app/(dashboard)/dashboard/HomePageClient.tsx
@@ -14,7 +14,6 @@ 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;
@@ -719,9 +718,6 @@ export default function HomePageClient({ machineId }: HomePageClientProps) {
</div>
</Card>
- {/* Tier Coverage */}
- <TierCoverageWidget />
-
{/* Provider Topology */}
<Card>
<div className="flex items-center justify-between mb-3">
diff --git a/src/app/(dashboard)/dashboard/context/caveman/CavemanContextPageClient.tsx b/src/app/(dashboard)/dashboard/context/caveman/CavemanContextPageClient.tsx
index 7847079b17..a68fa1499b 100644
--- a/src/app/(dashboard)/dashboard/context/caveman/CavemanContextPageClient.tsx
+++ b/src/app/(dashboard)/dashboard/context/caveman/CavemanContextPageClient.tsx
@@ -28,9 +28,16 @@ type OutputModeConfig = {
autoClarity: boolean;
};
+type InputModeConfig = {
+ enabled: boolean;
+ intensity: "lite" | "full" | "ultra";
+};
+
type CompressionSettings = {
+ enabled?: boolean;
languageConfig?: LanguageConfig;
cavemanOutputMode?: OutputModeConfig;
+ cavemanConfig?: InputModeConfig & Record<string, unknown>;
};
type LanguagePack = { language: string; ruleCount: number; categories?: string[] };
@@ -74,9 +81,14 @@ export default function CavemanContextPageClient() {
};
const outputMode: OutputModeConfig = settings?.cavemanOutputMode ?? {
enabled: false,
- intensity: "full",
+ intensity: "lite",
autoClarity: true,
};
+ const inputMode: InputModeConfig = {
+ enabled: settings?.cavemanConfig?.enabled ?? false,
+ intensity: (settings?.cavemanConfig?.intensity as InputModeConfig["intensity"]) ?? "lite",
+ };
+ const masterEnabled = settings?.enabled ?? false;
const saveSettings = async (patch: Partial<CompressionSettings>) => {
setSaving(true);
@@ -96,6 +108,11 @@ export default function CavemanContextPageClient() {
saveSettings({ languageConfig: { ...languageConfig, ...patch } });
};
+ const updateInputMode = (patch: Partial<InputModeConfig>) => {
+ const current = settings?.cavemanConfig ?? {};
+ saveSettings({ cavemanConfig: { ...current, ...inputMode, ...patch } });
+ };
+
const updateOutputMode = (patch: Partial<OutputModeConfig>) => {
saveSettings({ cavemanOutputMode: { ...outputMode, ...patch } });
};
@@ -205,6 +222,46 @@ export default function CavemanContextPageClient() {
</div>
</section>
+ {!masterEnabled && (
+ <div className="rounded-lg border border-amber-500/30 bg-amber-500/10 px-4 py-3 text-sm text-amber-700 dark:text-amber-300 flex items-start gap-2">
+ <span className="material-symbols-outlined text-[18px]">info</span>
+ <p>
+ Token Saver master switch is OFF — these settings will not affect requests until you
+ turn it on from the Endpoint page or change it here.
+ </p>
+ </div>
+ )}
+
+ <section className="rounded-lg border border-border bg-surface p-4">
+ <h2 className="text-sm font-semibold text-text-main">Input compression</h2>
+ <p className="mt-1 text-xs text-text-muted">
+ Rewrite chat history with shorter wording. Reduces input tokens by ~50%.
+ </p>
+ <div className="mt-3 flex flex-wrap gap-4 text-sm text-text-main">
+ <label className="flex items-center gap-2">
+ <input
+ type="checkbox"
+ checked={inputMode.enabled}
+ disabled={saving}
+ onChange={(event) => updateInputMode({ enabled: event.target.checked })}
+ />
+ {t("enabled")}
+ </label>
+ <select
+ value={inputMode.intensity}
+ disabled={saving}
+ onChange={(event) =>
+ updateInputMode({ intensity: event.target.value as InputModeConfig["intensity"] })
+ }
+ className="rounded-lg border border-border bg-bg px-3 py-2 text-sm"
+ >
+ <option value="lite">lite</option>
+ <option value="full">full</option>
+ <option value="ultra">ultra</option>
+ </select>
+ </div>
+ </section>
+
<section className="grid grid-cols-1 gap-4 lg:grid-cols-2">
<div className="rounded-lg border border-border bg-surface p-4">
<h2 className="text-sm font-semibold text-text-main">{t("analyticsTitle")}</h2>
diff --git a/src/app/(dashboard)/dashboard/context/rtk/RtkContextPageClient.tsx b/src/app/(dashboard)/dashboard/context/rtk/RtkContextPageClient.tsx
index 8ae6106560..254db88a5c 100644
--- a/src/app/(dashboard)/dashboard/context/rtk/RtkContextPageClient.tsx
+++ b/src/app/(dashboard)/dashboard/context/rtk/RtkContextPageClient.tsx
@@ -68,6 +68,14 @@ export default function RtkContextPageClient() {
const [preview, setPreview] = useState<PreviewResult | null>(null);
const [saving, setSaving] = useState(false);
const [viewMode, setViewMode] = useState<"simple" | "advanced">("simple");
+ const [masterEnabled, setMasterEnabled] = useState<boolean | null>(null);
+
+ useEffect(() => {
+ fetch("/api/settings/compression")
+ .then((res) => (res.ok ? res.json() : null))
+ .then((data) => setMasterEnabled(data?.enabled ?? false))
+ .catch(() => {});
+ }, []);
useEffect(() => {
fetch("/api/context/rtk/filters")
@@ -170,6 +178,16 @@ export default function RtkContextPageClient() {
))}
</section>
+ {masterEnabled === false && (
+ <div className="rounded-lg border border-amber-500/30 bg-amber-500/10 px-4 py-3 text-sm text-amber-700 dark:text-amber-300 flex items-start gap-2">
+ <span className="material-symbols-outlined text-[18px]">info</span>
+ <p>
+ Token Saver master switch is OFF — these settings will not affect requests until you
+ turn it on from the Endpoint page.
+ </p>
+ </div>
+ )}
+
{config && (
<section className="rounded-lg border border-border bg-surface p-4">
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-5">
diff --git a/src/app/(dashboard)/dashboard/costs/quota-share/QuotaSharePageClient.tsx b/src/app/(dashboard)/dashboard/costs/quota-share/QuotaSharePageClient.tsx
new file mode 100644
index 0000000000..574f8b6a12
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/costs/quota-share/QuotaSharePageClient.tsx
@@ -0,0 +1,919 @@
+"use client";
+
+import { useCallback, useEffect, useMemo, useState } from "react";
+import Card from "@/shared/components/Card";
+import { Button, Modal } from "@/shared/components";
+import ProviderIcon from "@/shared/components/ProviderIcon";
+
+// ────────────────────────────────────────────────────────────────────────────
+// Types
+// ────────────────────────────────────────────────────────────────────────────
+
+type Allocation = { apiKeyId: string; percent: number };
+type PoolPolicy = "hard" | "soft" | "burst";
+
+type QuotaPool = {
+ id: string;
+ connectionId: string; // provider connection id (account)
+ provider: string;
+ accountLabel: string;
+ window: string; // e.g. "session", "weekly", "credits"
+ windowLabel: string;
+ totalQuota: number; // numeric total (tokens / sessions / dollars / requests)
+ unit: string; // "tokens" | "sessions" | "USD" | "requests" | "credits"
+ resetIso?: string | null;
+ policy: PoolPolicy;
+ allocations: Allocation[];
+ createdAt: number;
+};
+
+type Connection = {
+ id: string;
+ provider: string;
+ name?: string;
+ displayName?: string;
+ email?: string;
+ authType?: string;
+};
+
+type ApiKey = { id: string; name?: string };
+
+type CachedProviderLimit = {
+ fetchedAt?: string;
+ plan?: string;
+ quotas?: Record<string, any>;
+};
+
+type CachedAllResponse = {
+ caches?: Record<string, CachedProviderLimit>;
+};
+
+const LS_POOLS = "omniroute:quota-share:pools";
+
+// Side-effecting helpers kept at module scope so React's purity lint does
+// not flag callers — they only ever run inside event handlers.
+function generatePoolId(): string {
+ return `pool_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
+}
+function nowMs(): number {
+ return Date.now();
+}
+
+// Palette for allocation slices in donut + bars
+const SLICE_PALETTE = [
+ "#a78bfa", // violet
+ "#60a5fa", // blue
+ "#34d399", // emerald
+ "#fbbf24", // amber
+ "#f87171", // red
+ "#22d3ee", // cyan
+ "#f472b6", // pink
+ "#94a3b8", // slate
+];
+
+// ────────────────────────────────────────────────────────────────────────────
+// Helpers
+// ────────────────────────────────────────────────────────────────────────────
+
+function loadPools(): QuotaPool[] {
+ if (typeof window === "undefined") return [];
+ try {
+ const raw = localStorage.getItem(LS_POOLS);
+ return raw ? JSON.parse(raw) : [];
+ } catch {
+ return [];
+ }
+}
+
+function persistPools(pools: QuotaPool[]) {
+ try {
+ localStorage.setItem(LS_POOLS, JSON.stringify(pools));
+ } catch {
+ /* ignore */
+ }
+}
+
+function shortId(value: string, max = 12) {
+ return value.length > max ? `${value.slice(0, max)}…` : value;
+}
+
+function fmtNumber(n: number, unit?: string): string {
+ if (unit === "USD") return `$${n.toLocaleString(undefined, { maximumFractionDigits: 2 })}`;
+ if (!Number.isFinite(n)) return "—";
+ if (n >= 1_000_000) return `${(n / 1_000_000).toFixed(1)}M`;
+ if (n >= 1_000) return `${(n / 1_000).toFixed(1)}k`;
+ return `${n}`;
+}
+
+function fmtCountdown(iso?: string | null): string {
+ if (!iso) return "—";
+ try {
+ const diff = new Date(iso).getTime() - Date.now();
+ if (diff <= 0) return "now";
+ const h = Math.floor(diff / 3_600_000);
+ const m = Math.floor((diff % 3_600_000) / 60_000);
+ if (h >= 24) {
+ const d = Math.floor(h / 24);
+ return `${d}d ${h % 24}h`;
+ }
+ return `${h}h ${m}m`;
+ } catch {
+ return "—";
+ }
+}
+
+// Extract candidate pool sources from a provider's cached quota response.
+// Each quota window (session/weekly/credits) becomes a potential pool.
+function extractPoolSources(
+ conn: Connection,
+ cached: CachedProviderLimit | undefined
+): Array<{
+ window: string;
+ windowLabel: string;
+ totalQuota: number;
+ unit: string;
+ resetIso?: string | null;
+}> {
+ if (!cached?.quotas) return [];
+ const out: Array<{
+ window: string;
+ windowLabel: string;
+ totalQuota: number;
+ unit: string;
+ resetIso?: string | null;
+ }> = [];
+ for (const [key, q] of Object.entries(cached.quotas)) {
+ if (!q || typeof q !== "object") continue;
+ const isCredits = (q as any).isCredits === true || /^credits/i.test(key);
+ const total = Number((q as any).total ?? 0);
+ const remaining = Number((q as any).remaining ?? 0);
+ const totalQuota = isCredits ? Math.max(total, remaining) : total;
+ if (totalQuota <= 0 && !isCredits) continue;
+ const windowLabel =
+ (q as any).displayName || key.replace(/_/g, " ").replace(/\b\w/g, (c) => c.toUpperCase());
+ const unit = isCredits
+ ? ((q as any).currency as string) || "USD"
+ : key === "session" || key === "weekly"
+ ? "tokens"
+ : "requests";
+ out.push({
+ window: key,
+ windowLabel,
+ totalQuota: totalQuota || remaining,
+ unit,
+ resetIso: (q as any).resetAt || null,
+ });
+ }
+ return out;
+}
+
+// Donut SVG renderer — slices from allocations array + unfilled gap if <100%
+function Donut({
+ size = 140,
+ thickness = 22,
+ slices,
+}: {
+ size?: number;
+ thickness?: number;
+ slices: Array<{ percent: number; color: string; label?: string }>;
+}) {
+ const r = size / 2 - thickness / 2;
+ const c = 2 * Math.PI * r;
+ const cx = size / 2;
+ const cy = size / 2;
+ // Precompute cumulative offsets immutably so we can map slices without
+ // mutating across renders.
+ const lens = slices.map((s) => Math.max(0, Math.min(s.percent, 100)) / 100);
+ const offsets = lens.reduce<number[]>((acc, len, idx) => {
+ acc.push(idx === 0 ? 0 : (acc[idx - 1] as number) + lens[idx - 1]);
+ return acc;
+ }, []);
+ return (
+ <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>
+ <circle
+ cx={cx}
+ cy={cy}
+ r={r}
+ fill="none"
+ stroke="rgba(255,255,255,0.06)"
+ strokeWidth={thickness}
+ />
+ {slices.map((s, i) => {
+ const dash = lens[i] * c;
+ const offset = -offsets[i] * c;
+ return (
+ <circle
+ key={i}
+ cx={cx}
+ cy={cy}
+ r={r}
+ fill="none"
+ stroke={s.color}
+ strokeWidth={thickness}
+ strokeDasharray={`${dash} ${c}`}
+ strokeDashoffset={offset}
+ transform={`rotate(-90 ${cx} ${cy})`}
+ strokeLinecap="butt"
+ />
+ );
+ })}
+ </svg>
+ );
+}
+
+// ────────────────────────────────────────────────────────────────────────────
+// Component
+// ────────────────────────────────────────────────────────────────────────────
+
+export default function QuotaSharePageClient() {
+ const [connections, setConnections] = useState<Connection[]>([]);
+ const [caches, setCaches] = useState<Record<string, CachedProviderLimit>>({});
+ const [apiKeys, setApiKeys] = useState<ApiKey[]>([]);
+ const [pools, setPools] = useState<QuotaPool[]>([]);
+ const [loading, setLoading] = useState(true);
+ const [createOpen, setCreateOpen] = useState(false);
+ const [editing, setEditing] = useState<QuotaPool | null>(null);
+
+ // ── Fetch ────────────────────────────────────────────────────────────────
+
+ const loadAll = useCallback(async () => {
+ setLoading(true);
+ try {
+ const [connsRes, cacheRes, keysRes] = await Promise.all([
+ fetch("/api/providers/client"),
+ fetch("/api/usage/provider-limits"),
+ fetch("/api/keys"),
+ ]);
+ const connsData = connsRes.ok ? await connsRes.json() : null;
+ const conns: Connection[] = Array.isArray(connsData?.connections)
+ ? connsData.connections
+ : [];
+ const cacheData: CachedAllResponse | null = cacheRes.ok ? await cacheRes.json() : null;
+ const keysData = keysRes.ok ? await keysRes.json() : null;
+ const keys: ApiKey[] = Array.isArray(keysData) ? keysData : keysData?.keys || [];
+ setConnections(conns);
+ setCaches(cacheData?.caches || {});
+ setApiKeys(keys);
+ } catch (err) {
+ console.error("[QuotaShare] load failed", err);
+ } finally {
+ setLoading(false);
+ }
+ }, []);
+
+ useEffect(() => {
+ void loadAll();
+ setPools(loadPools());
+ }, [loadAll]);
+
+ // ── Mutations ────────────────────────────────────────────────────────────
+
+ const savePools = useCallback((next: QuotaPool[]) => {
+ setPools(next);
+ persistPools(next);
+ }, []);
+
+ const upsertPool = useCallback(
+ (pool: QuotaPool) => {
+ const idx = pools.findIndex((p) => p.id === pool.id);
+ const next = [...pools];
+ if (idx >= 0) next[idx] = pool;
+ else next.push(pool);
+ savePools(next);
+ },
+ [pools, savePools]
+ );
+
+ const removePool = useCallback(
+ (id: string) => {
+ if (!confirm("Remove this pool?")) return;
+ savePools(pools.filter((p) => p.id !== id));
+ },
+ [pools, savePools]
+ );
+
+ // ── Derived ──────────────────────────────────────────────────────────────
+
+ const stats = useMemo(() => {
+ let allocations = 0;
+ let atCap = 0;
+ let uncappedPct = 0;
+ for (const p of pools) {
+ allocations += p.allocations.length;
+ const totalPct = p.allocations.reduce((s, a) => s + a.percent, 0);
+ if (totalPct < 100) uncappedPct += 100 - totalPct;
+ // Simulated "at cap" — without backend tracking, mark pools with >=1
+ // allocation summing to 100% as "fully utilized config" (proxy metric).
+ if (totalPct >= 100 && p.allocations.length > 0) atCap += 0; // see disclaimer
+ }
+ return {
+ activePools: pools.length,
+ allocations,
+ atCap,
+ uncapped: pools.length > 0 ? Math.round(uncappedPct / pools.length) : 0,
+ };
+ }, [pools]);
+
+ // ── Render ───────────────────────────────────────────────────────────────
+
+ return (
+ <div className="flex flex-col gap-4">
+ {/* Header */}
+ <div className="flex items-start justify-between flex-wrap gap-3">
+ <div>
+ <h1 className="text-xl font-bold text-text-main flex items-center gap-2">
+ <span className="material-symbols-outlined text-[24px] text-primary">pie_chart</span>
+ Quota Sharing
+ </h1>
+ <p className="text-sm text-text-muted mt-0.5">
+ Compartilhe cotas de providers entre API keys com limites %
+ </p>
+ </div>
+ <Button variant="primary" size="sm" onClick={() => setCreateOpen(true)}>
+ <span className="material-symbols-outlined text-[14px] mr-1">add</span>
+ New pool
+ </Button>
+ </div>
+
+ {/* Beta disclaimer */}
+ <div className="rounded-lg border border-amber-500/30 bg-amber-500/10 px-4 py-3 text-xs text-amber-700 dark:text-amber-300 flex items-start gap-2">
+ <span className="material-symbols-outlined text-[18px] shrink-0">science</span>
+ <div>
+ <strong>Beta — UI preview.</strong> A configuração é salva em <code>localStorage</code>{" "}
+ (não persiste no servidor ainda). A aplicação dos caps por request ainda não está
+ conectada ao pipeline da proxy. Esta tela permite desenhar e visualizar a divisão de cota;
+ a aplicação real virá em uma próxima iteração com persistência no banco e interceptação na
+ chamada upstream.
+ </div>
+ </div>
+
+ {/* Stats */}
+ <div className="grid grid-cols-2 lg:grid-cols-4 gap-3">
+ <StatCard label="Active pools" value={String(stats.activePools)} />
+ <StatCard label="Keys allocated" value={String(stats.allocations)} />
+ <StatCard
+ label="Avg unallocated"
+ value={`${stats.uncapped}%`}
+ tone={stats.uncapped > 0 ? "amber" : "green"}
+ />
+ <StatCard label="Providers w/ quota" value={String(connections.length)} />
+ </div>
+
+ {loading ? (
+ <div className="text-text-muted text-sm py-10 text-center animate-pulse">Loading…</div>
+ ) : pools.length === 0 ? (
+ <div className="rounded-xl border border-border bg-surface py-16 text-center">
+ <span className="material-symbols-outlined text-[64px] opacity-15">pie_chart</span>
+ <h3 className="mt-3 text-base font-semibold text-text-main">No pools configured</h3>
+ <p className="mt-1 text-sm text-text-muted max-w-md mx-auto">
+ Create a pool to assign API keys to share a provider&apos;s quota window with %
+ allocations.
+ </p>
+ <Button variant="primary" size="sm" className="mt-4" onClick={() => setCreateOpen(true)}>
+ <span className="material-symbols-outlined text-[14px] mr-1">add</span>
+ New pool
+ </Button>
+ </div>
+ ) : (
+ <div className="flex flex-col gap-3">
+ {pools.map((pool) => (
+ <PoolCard
+ key={pool.id}
+ pool={pool}
+ cached={caches[pool.connectionId]}
+ apiKeys={apiKeys}
+ onEdit={() => setEditing(pool)}
+ onRemove={() => removePool(pool.id)}
+ onPolicyChange={(policy) => upsertPool({ ...pool, policy })}
+ />
+ ))}
+ </div>
+ )}
+
+ {createOpen && (
+ <CreatePoolModal
+ connections={connections}
+ caches={caches}
+ existingPools={pools}
+ onClose={() => setCreateOpen(false)}
+ onCreate={(pool) => {
+ upsertPool(pool);
+ setCreateOpen(false);
+ }}
+ />
+ )}
+
+ {editing && (
+ <EditAllocationsModal
+ pool={editing}
+ apiKeys={apiKeys}
+ onClose={() => setEditing(null)}
+ onSave={(allocations) => {
+ upsertPool({ ...editing, allocations });
+ setEditing(null);
+ }}
+ />
+ )}
+ </div>
+ );
+}
+
+// ────────────────────────────────────────────────────────────────────────────
+// Sub-components
+// ────────────────────────────────────────────────────────────────────────────
+
+function StatCard({
+ label,
+ value,
+ tone,
+}: {
+ label: string;
+ value: string;
+ tone?: "green" | "amber" | "red";
+}) {
+ const color =
+ tone === "amber"
+ ? "text-amber-400"
+ : tone === "red"
+ ? "text-red-400"
+ : tone === "green"
+ ? "text-emerald-400"
+ : "text-text-main";
+ return (
+ <div className="rounded-lg border border-border/40 bg-bg-subtle/30 px-4 py-3">
+ <div className="text-[10px] uppercase tracking-wide text-text-muted font-semibold">
+ {label}
+ </div>
+ <div className={`text-2xl font-bold tabular-nums leading-tight ${color}`}>{value}</div>
+ </div>
+ );
+}
+
+function PoolCard({
+ pool,
+ cached,
+ apiKeys,
+ onEdit,
+ onRemove,
+ onPolicyChange,
+}: {
+ pool: QuotaPool;
+ cached?: CachedProviderLimit;
+ apiKeys: ApiKey[];
+ onEdit: () => void;
+ onRemove: () => void;
+ onPolicyChange: (policy: PoolPolicy) => void;
+}) {
+ // Refresh totalQuota from latest cache if available
+ const live = cached?.quotas?.[pool.window];
+ const liveTotal = live ? Number((live as any).total || 0) : 0;
+ const liveRemaining = live ? Number((live as any).remaining || 0) : 0;
+ const total = liveTotal > 0 ? liveTotal : pool.totalQuota;
+ const used = liveTotal > 0 ? liveTotal - liveRemaining : 0;
+ const usedPct = total > 0 ? Math.min((used / total) * 100, 100) : 0;
+ const resetIso = (live as any)?.resetAt || pool.resetIso;
+ const totalAllocated = pool.allocations.reduce((s, a) => s + a.percent, 0);
+ const unallocated = Math.max(0, 100 - totalAllocated);
+
+ const slices = [
+ ...pool.allocations.map((a, i) => ({
+ percent: a.percent,
+ color: SLICE_PALETTE[i % SLICE_PALETTE.length],
+ label: a.apiKeyId,
+ })),
+ ];
+ if (unallocated > 0) {
+ slices.push({ percent: unallocated, color: "rgba(255,255,255,0.10)", label: "free" });
+ }
+
+ const keyLabel = (id: string) => apiKeys.find((k) => k.id === id)?.name || id.slice(0, 12) + "…";
+
+ return (
+ <Card padding="md">
+ <div className="flex items-start justify-between gap-3 mb-3">
+ <div className="flex items-center gap-2 min-w-0">
+ <div className="w-7 h-7 rounded-md flex items-center justify-center overflow-hidden shrink-0 bg-bg-subtle">
+ <ProviderIcon providerId={pool.provider} size={28} type="color" />
+ </div>
+ <div className="min-w-0">
+ <div className="text-sm font-bold text-text-main truncate">
+ {pool.provider} · {pool.accountLabel}
+ </div>
+ <div className="text-[11px] text-text-muted">
+ {pool.windowLabel} · reset in {fmtCountdown(resetIso)} · total{" "}
+ {fmtNumber(total, pool.unit)} {pool.unit === "USD" ? "" : pool.unit}
+ </div>
+ </div>
+ </div>
+ <div className="flex items-center gap-1">
+ <button
+ type="button"
+ onClick={onRemove}
+ title="Remove pool"
+ className="p-1.5 rounded-md hover:bg-red-500/10 text-text-muted hover:text-red-400 cursor-pointer"
+ >
+ <span className="material-symbols-outlined text-[16px]">delete</span>
+ </button>
+ </div>
+ </div>
+
+ <div className="grid grid-cols-1 lg:grid-cols-[200px_1fr] gap-4 items-start">
+ {/* Donut */}
+ <div className="flex flex-col items-center gap-2">
+ <div className="relative">
+ <Donut slices={slices} size={160} thickness={24} />
+ <div className="absolute inset-0 flex flex-col items-center justify-center pointer-events-none">
+ <div className="text-[10px] uppercase tracking-wide text-text-muted font-semibold">
+ Pool
+ </div>
+ <div className="text-lg font-bold text-text-main tabular-nums">
+ {Math.round(usedPct)}%
+ </div>
+ <div className="text-[10px] text-text-muted">used</div>
+ </div>
+ </div>
+ <div className="w-full px-1">
+ <div className="h-1.5 rounded-sm bg-black/[0.06] dark:bg-white/[0.06] overflow-hidden">
+ <div className="h-full bg-primary" style={{ width: `${usedPct}%` }} />
+ </div>
+ <div className="text-[10px] text-text-muted text-center mt-1 tabular-nums">
+ {fmtNumber(used, pool.unit)} / {fmtNumber(total, pool.unit)}
+ </div>
+ </div>
+ </div>
+
+ {/* Allocations */}
+ <div>
+ <div className="flex items-center justify-between mb-2">
+ <h3 className="text-[11px] uppercase tracking-wide font-bold text-text-muted">
+ Allocations ({pool.allocations.length})
+ </h3>
+ <span
+ className={`text-[10px] font-bold tabular-nums ${
+ totalAllocated === 100
+ ? "text-emerald-400"
+ : totalAllocated > 100
+ ? "text-red-400"
+ : "text-amber-400"
+ }`}
+ >
+ {totalAllocated}% allocated · {unallocated}% free
+ </span>
+ </div>
+
+ {pool.allocations.length === 0 ? (
+ <div className="text-[11px] text-text-muted italic py-3 text-center bg-bg-subtle/40 rounded-md">
+ No keys allocated yet
+ </div>
+ ) : (
+ <div className="space-y-1.5">
+ {pool.allocations.map((a, i) => {
+ const cap = total > 0 ? (total * a.percent) / 100 : 0;
+ const color = SLICE_PALETTE[i % SLICE_PALETTE.length];
+ return (
+ <div
+ key={a.apiKeyId}
+ className="grid items-center gap-2 text-[11px]"
+ style={{ gridTemplateColumns: "12px minmax(0,1fr) 50px 90px 90px" }}
+ >
+ <span
+ className="inline-block w-3 h-3 rounded-sm"
+ style={{ background: color }}
+ />
+ <span className="font-mono truncate text-text-main">
+ {keyLabel(a.apiKeyId)}
+ </span>
+ <span className="text-right font-bold tabular-nums" style={{ color }}>
+ {a.percent}%
+ </span>
+ <span className="text-right text-text-muted tabular-nums">
+ cap {fmtNumber(cap, pool.unit)}
+ </span>
+ <span className="text-text-muted text-right">(not tracked yet)</span>
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ <div className="mt-3 flex items-center justify-between gap-2 flex-wrap text-[11px]">
+ <div className="flex items-center gap-1">
+ <span className="text-text-muted font-semibold uppercase tracking-wide">Policy:</span>
+ {(["hard", "soft", "burst"] as PoolPolicy[]).map((p) => (
+ <button
+ key={p}
+ type="button"
+ onClick={() => onPolicyChange(p)}
+ className={`px-2 py-0.5 rounded-md border cursor-pointer ${
+ pool.policy === p
+ ? "bg-primary/15 border-primary/40 text-primary font-semibold"
+ : "border-border text-text-muted hover:text-text-main"
+ }`}
+ title={
+ p === "hard"
+ ? "Block when key exhausts allocation"
+ : p === "soft"
+ ? "Allow overflow, alert only"
+ : "Allow burst into free pool"
+ }
+ >
+ {p}
+ </button>
+ ))}
+ </div>
+ <div className="flex items-center gap-1">
+ <Button variant="secondary" size="sm" onClick={onEdit}>
+ <span className="material-symbols-outlined text-[14px] mr-1">edit</span>
+ Edit allocations
+ </Button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </Card>
+ );
+}
+
+function CreatePoolModal({
+ connections,
+ caches,
+ existingPools,
+ onClose,
+ onCreate,
+}: {
+ connections: Connection[];
+ caches: Record<string, CachedProviderLimit>;
+ existingPools: QuotaPool[];
+ onClose: () => void;
+ onCreate: (pool: QuotaPool) => void;
+}) {
+ const [connectionId, setConnectionId] = useState<string>("");
+ const [window, setWindow] = useState<string>("");
+
+ // Connections that have at least one quota window
+ const eligibleConnections = useMemo(() => {
+ return connections.filter((c) => {
+ const cached = caches[c.id];
+ return extractPoolSources(c, cached).length > 0;
+ });
+ }, [connections, caches]);
+
+ const selectedConn = connections.find((c) => c.id === connectionId);
+ const windowSources = selectedConn ? extractPoolSources(selectedConn, caches[connectionId]) : [];
+ const selectedWindow = windowSources.find((w) => w.window === window);
+
+ // Already used (connection+window) pairs to avoid duplicates
+ const usedPairs = new Set(existingPools.map((p) => `${p.connectionId}:${p.window}`));
+
+ const handleCreate = () => {
+ if (!selectedConn || !selectedWindow) return;
+ if (usedPairs.has(`${connectionId}:${window}`)) {
+ alert("A pool for this connection + window already exists");
+ return;
+ }
+ const accountLabel =
+ selectedConn.name ||
+ selectedConn.email ||
+ selectedConn.displayName ||
+ selectedConn.id.slice(0, 12);
+ const pool: QuotaPool = {
+ id: generatePoolId(),
+ connectionId,
+ provider: selectedConn.provider,
+ accountLabel,
+ window,
+ windowLabel: selectedWindow.windowLabel,
+ totalQuota: selectedWindow.totalQuota,
+ unit: selectedWindow.unit,
+ resetIso: selectedWindow.resetIso || null,
+ policy: "hard",
+ allocations: [],
+ createdAt: nowMs(),
+ };
+ onCreate(pool);
+ };
+
+ return (
+ <Modal isOpen onClose={onClose} title="New quota pool">
+ <div className="space-y-3">
+ <div>
+ <label className="text-[11px] uppercase tracking-wide text-text-muted font-semibold block mb-1">
+ Provider connection (account)
+ </label>
+ <select
+ value={connectionId}
+ onChange={(e) => {
+ setConnectionId(e.target.value);
+ setWindow("");
+ }}
+ className="w-full px-3 py-2 rounded border border-border bg-bg-base text-sm"
+ >
+ <option value="">Select a connection…</option>
+ {eligibleConnections.map((c) => (
+ <option key={c.id} value={c.id}>
+ {c.provider} / {c.name || c.email || c.id.slice(0, 12)}
+ </option>
+ ))}
+ </select>
+ {eligibleConnections.length === 0 && (
+ <p className="text-[10px] text-amber-400 mt-1">
+ No connections with quota data. Refresh from /dashboard/quota first.
+ </p>
+ )}
+ </div>
+
+ {connectionId && (
+ <div>
+ <label className="text-[11px] uppercase tracking-wide text-text-muted font-semibold block mb-1">
+ Quota window
+ </label>
+ <select
+ value={window}
+ onChange={(e) => setWindow(e.target.value)}
+ className="w-full px-3 py-2 rounded border border-border bg-bg-base text-sm"
+ >
+ <option value="">Select a window…</option>
+ {windowSources.map((w) => {
+ const used = usedPairs.has(`${connectionId}:${w.window}`);
+ return (
+ <option key={w.window} value={w.window} disabled={used}>
+ {w.windowLabel} · total {fmtNumber(w.totalQuota, w.unit)} {w.unit}{" "}
+ {used ? "(already used)" : ""}
+ </option>
+ );
+ })}
+ </select>
+ </div>
+ )}
+
+ {selectedWindow && (
+ <div className="rounded-md border border-border/40 bg-bg-subtle/30 p-3 text-[11px] text-text-muted">
+ <div>
+ <strong className="text-text-main">{selectedWindow.windowLabel}</strong> ·{" "}
+ {fmtNumber(selectedWindow.totalQuota, selectedWindow.unit)} {selectedWindow.unit}
+ </div>
+ <div>
+ Reset:{" "}
+ {selectedWindow.resetIso ? new Date(selectedWindow.resetIso).toLocaleString() : "—"}
+ </div>
+ </div>
+ )}
+
+ <div className="flex justify-end gap-2 pt-2 border-t border-border/40">
+ <Button variant="secondary" size="sm" onClick={onClose}>
+ Cancel
+ </Button>
+ <Button
+ variant="primary"
+ size="sm"
+ onClick={handleCreate}
+ disabled={!selectedConn || !selectedWindow}
+ >
+ Create pool
+ </Button>
+ </div>
+ </div>
+ </Modal>
+ );
+}
+
+function EditAllocationsModal({
+ pool,
+ apiKeys,
+ onClose,
+ onSave,
+}: {
+ pool: QuotaPool;
+ apiKeys: ApiKey[];
+ onClose: () => void;
+ onSave: (allocations: Allocation[]) => void;
+}) {
+ const [drafts, setDrafts] = useState<Allocation[]>(pool.allocations);
+ const total = drafts.reduce((s, a) => s + (Number.isFinite(a.percent) ? a.percent : 0), 0);
+
+ const availableKeys = apiKeys.filter((k) => !drafts.some((a) => a.apiKeyId === k.id));
+
+ const addKey = (id: string) => {
+ setDrafts((prev) => [...prev, { apiKeyId: id, percent: 0 }]);
+ };
+
+ const updatePercent = (id: string, value: number) => {
+ setDrafts((prev) =>
+ prev.map((a) =>
+ a.apiKeyId === id ? { ...a, percent: Math.max(0, Math.min(100, value)) } : a
+ )
+ );
+ };
+
+ const removeKey = (id: string) => {
+ setDrafts((prev) => prev.filter((a) => a.apiKeyId !== id));
+ };
+
+ const equalSplit = () => {
+ if (drafts.length === 0) return;
+ const each = Math.floor(100 / drafts.length);
+ const remainder = 100 - each * drafts.length;
+ setDrafts((prev) => prev.map((a, i) => ({ ...a, percent: each + (i < remainder ? 1 : 0) })));
+ };
+
+ const keyLabel = (id: string) => apiKeys.find((k) => k.id === id)?.name || shortId(id);
+
+ return (
+ <Modal isOpen onClose={onClose} title="Edit allocations" size="lg">
+ <div className="space-y-3">
+ <div className="text-xs text-text-muted">
+ Pool:{" "}
+ <strong className="text-text-main">
+ {pool.provider} / {pool.accountLabel} · {pool.windowLabel}
+ </strong>
+ <br />
+ Total: {fmtNumber(pool.totalQuota, pool.unit)} {pool.unit}
+ </div>
+
+ {drafts.length === 0 ? (
+ <div className="text-[12px] text-text-muted italic py-4 text-center bg-bg-subtle/40 rounded-md">
+ No keys allocated. Add one below.
+ </div>
+ ) : (
+ <div className="space-y-2">
+ {drafts.map((a, i) => {
+ const color = SLICE_PALETTE[i % SLICE_PALETTE.length];
+ const cap = (pool.totalQuota * a.percent) / 100;
+ return (
+ <div
+ key={a.apiKeyId}
+ className="grid items-center gap-2"
+ style={{ gridTemplateColumns: "12px minmax(0,1fr) 70px 90px 24px" }}
+ >
+ <span className="inline-block w-3 h-3 rounded-sm" style={{ background: color }} />
+ <span className="text-[12px] font-mono truncate">{keyLabel(a.apiKeyId)}</span>
+ <input
+ type="number"
+ min={0}
+ max={100}
+ value={a.percent}
+ onChange={(e) => updatePercent(a.apiKeyId, Number(e.target.value))}
+ className="px-2 py-1 rounded border border-border bg-bg-base text-sm text-right tabular-nums"
+ />
+ <span className="text-[11px] text-text-muted tabular-nums">
+ cap {fmtNumber(cap, pool.unit)}
+ </span>
+ <button
+ type="button"
+ onClick={() => removeKey(a.apiKeyId)}
+ className="p-0.5 rounded hover:bg-red-500/10 text-text-muted hover:text-red-400 cursor-pointer"
+ >
+ <span className="material-symbols-outlined text-[16px]">close</span>
+ </button>
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ <div className="flex items-center justify-between text-[11px] pt-2 border-t border-border/40">
+ <span
+ className={`font-bold tabular-nums ${
+ total === 100 ? "text-emerald-400" : total > 100 ? "text-red-400" : "text-amber-400"
+ }`}
+ >
+ Total: {total}% {total > 100 && "⚠ exceeds 100%"}
+ </span>
+ <div className="flex items-center gap-2">
+ {availableKeys.length > 0 && (
+ <select
+ value=""
+ onChange={(e) => e.target.value && addKey(e.target.value)}
+ className="px-2 py-1 rounded border border-border bg-bg-base text-xs"
+ >
+ <option value="">+ Add key…</option>
+ {availableKeys.map((k) => (
+ <option key={k.id} value={k.id}>
+ {k.name || shortId(k.id)}
+ </option>
+ ))}
+ </select>
+ )}
+ <Button
+ variant="secondary"
+ size="sm"
+ onClick={equalSplit}
+ disabled={drafts.length === 0}
+ >
+ Equal split
+ </Button>
+ </div>
+ </div>
+
+ <div className="flex justify-end gap-2 pt-2 border-t border-border/40">
+ <Button variant="secondary" size="sm" onClick={onClose}>
+ Cancel
+ </Button>
+ <Button variant="primary" size="sm" onClick={() => onSave(drafts)} disabled={total > 100}>
+ Save allocations
+ </Button>
+ </div>
+ </div>
+ </Modal>
+ );
+}
diff --git a/src/app/(dashboard)/dashboard/costs/quota-share/page.tsx b/src/app/(dashboard)/dashboard/costs/quota-share/page.tsx
new file mode 100644
index 0000000000..01641f8bca
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/costs/quota-share/page.tsx
@@ -0,0 +1,7 @@
+import QuotaSharePageClient from "./QuotaSharePageClient";
+
+export const dynamic = "force-dynamic";
+
+export default function QuotaSharePage() {
+ return <QuotaSharePageClient />;
+}
diff --git a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
index e82fe9d9e0..476744f3af 100644
--- a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
+++ b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
@@ -8,6 +8,7 @@ import { useDisplayBaseUrl } from "@/shared/hooks";
import { AI_PROVIDERS, getProviderByAlias } from "@/shared/constants/providers";
import { getProviderDisplayName } from "@/lib/display/names";
import { useTranslations } from "next-intl";
+import TokenSaverCard from "./components/TokenSaverCard";
const BUILD_TIME_CLOUD_URL = process.env.NEXT_PUBLIC_CLOUD_URL || null;
const CLOUD_ACTION_TIMEOUT_MS = 15000;
@@ -1721,6 +1722,8 @@ export default function APIPageClient({ machineId }: Readonly<APIPageClientProps
</div>
</Card>
+ <TokenSaverCard />
+
<Card>
<div className="flex items-center justify-between mb-5">
<div>
diff --git a/src/app/(dashboard)/dashboard/endpoint/components/TokenSaverCard.tsx b/src/app/(dashboard)/dashboard/endpoint/components/TokenSaverCard.tsx
new file mode 100644
index 0000000000..fb8e79e333
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/endpoint/components/TokenSaverCard.tsx
@@ -0,0 +1,264 @@
+"use client";
+
+import { useCallback, useEffect, useState } from "react";
+import Link from "next/link";
+import { Card, Toggle } from "@/shared/components";
+import { useNotificationStore } from "@/store/notificationStore";
+
+type CavemanIntensity = "lite" | "full" | "ultra";
+type RtkIntensity = "minimal" | "standard" | "aggressive";
+
+interface CompressionConfig {
+ enabled: boolean;
+ cavemanConfig?: { enabled: boolean; intensity: CavemanIntensity };
+ cavemanOutputMode?: { enabled: boolean; intensity: CavemanIntensity };
+ rtkConfig?: { enabled: boolean; intensity: RtkIntensity };
+}
+
+const CAVEMAN_LEVELS: { value: CavemanIntensity; label: string }[] = [
+ { value: "lite", label: "Lite" },
+ { value: "full", label: "Full" },
+ { value: "ultra", label: "Ultra" },
+];
+
+const RTK_LEVELS: { value: RtkIntensity; label: string }[] = [
+ { value: "minimal", label: "Min" },
+ { value: "standard", label: "Std" },
+ { value: "aggressive", label: "Agg" },
+];
+
+function SegmentedLevel<T extends string>({
+ levels,
+ value,
+ onChange,
+ disabled,
+}: {
+ levels: readonly { value: T; label: string }[];
+ value: T;
+ onChange: (v: T) => void;
+ disabled: boolean;
+}) {
+ return (
+ <div
+ className={`inline-flex rounded-md border border-border bg-bg-subtle p-0.5 ${
+ disabled ? "opacity-50" : ""
+ }`}
+ >
+ {levels.map((lvl) => {
+ const active = lvl.value === value;
+ return (
+ <button
+ key={lvl.value}
+ type="button"
+ onClick={() => !disabled && onChange(lvl.value)}
+ disabled={disabled}
+ className={`px-2.5 py-0.5 text-[11px] font-medium rounded transition-colors ${
+ active ? "bg-primary text-white" : "text-text-muted hover:text-text-primary"
+ } ${disabled ? "cursor-not-allowed" : "cursor-pointer"}`}
+ >
+ {lvl.label}
+ </button>
+ );
+ })}
+ </div>
+ );
+}
+
+function EngineRow({
+ title,
+ description,
+ href,
+ badge,
+ enabled,
+ masterEnabled,
+ onToggle,
+ level,
+}: {
+ title: string;
+ description: string;
+ href: string;
+ badge: string;
+ enabled: boolean;
+ masterEnabled: boolean;
+ onToggle: (v: boolean) => void;
+ level: React.ReactNode;
+}) {
+ const effective = masterEnabled && enabled;
+ return (
+ <div
+ className={`flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between py-3 ${
+ masterEnabled ? "" : "opacity-60"
+ }`}
+ >
+ <div className="flex-1 min-w-0">
+ <div className="flex items-center gap-2 text-sm font-medium text-text-main">
+ {title}
+ <Link
+ href={href}
+ className="text-[10px] uppercase tracking-wider rounded px-1.5 py-0.5 bg-bg-subtle border border-border text-text-muted hover:text-primary hover:border-primary/40"
+ >
+ {badge}
+ </Link>
+ </div>
+ <p className="text-xs text-text-muted mt-0.5">{description}</p>
+ </div>
+ <div className="flex items-center gap-2 shrink-0">
+ {level}
+ <Toggle size="sm" checked={effective} onChange={onToggle} disabled={!masterEnabled} />
+ </div>
+ </div>
+ );
+}
+
+export default function TokenSaverCard() {
+ const notify = useNotificationStore();
+ const [config, setConfig] = useState<CompressionConfig | null>(null);
+ const [loading, setLoading] = useState(true);
+ const [saving, setSaving] = useState(false);
+
+ useEffect(() => {
+ fetch("/api/settings/compression")
+ .then((r) => (r.ok ? r.json() : null))
+ .then((data) => {
+ if (data) setConfig(data);
+ })
+ .catch(() => {})
+ .finally(() => setLoading(false));
+ }, []);
+
+ const save = useCallback(
+ async (patch: Partial<CompressionConfig>) => {
+ if (!config) return;
+ const next = { ...config, ...patch };
+ setConfig(next);
+ setSaving(true);
+ try {
+ const res = await fetch("/api/settings/compression", {
+ method: "PUT",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(patch),
+ });
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
+ const updated = await res.json();
+ setConfig(updated);
+ } catch (err) {
+ notify.error(err instanceof Error ? err.message : "Failed to save");
+ } finally {
+ setSaving(false);
+ }
+ },
+ [config, notify]
+ );
+
+ if (loading || !config) {
+ return (
+ <Card>
+ <div className="h-32 animate-pulse rounded-md bg-bg-subtle/40" />
+ </Card>
+ );
+ }
+
+ const masterEnabled = config.enabled;
+ const rtk = config.rtkConfig ?? { enabled: true, intensity: "standard" as RtkIntensity };
+ const cavemanOut = config.cavemanOutputMode ?? {
+ enabled: false,
+ intensity: "full" as CavemanIntensity,
+ };
+ const cavemanIn = config.cavemanConfig ?? {
+ enabled: true,
+ intensity: "full" as CavemanIntensity,
+ };
+
+ return (
+ <Card>
+ <div className="flex items-start justify-between mb-1">
+ <div className="flex-1 min-w-0">
+ <h2 className="text-lg font-semibold flex items-center gap-2">
+ <span className="material-symbols-outlined text-[22px] text-amber-500">bolt</span>
+ Token Saver
+ {saving && (
+ <span className="material-symbols-outlined text-[16px] animate-spin text-text-muted">
+ sync
+ </span>
+ )}
+ </h2>
+ <p className="text-sm text-text-muted mt-1">Spend less tokens on every request.</p>
+ </div>
+ <Toggle size="md" checked={masterEnabled} onChange={(v) => save({ enabled: v })} />
+ </div>
+
+ <div className="divide-y divide-border mt-4">
+ <EngineRow
+ title="Tool output"
+ badge="RTK"
+ href="/dashboard/context/rtk"
+ description="git/grep/ls/tree/logs cleaner → 60-90% fewer input tokens"
+ enabled={rtk.enabled}
+ masterEnabled={masterEnabled}
+ onToggle={(v) => save({ rtkConfig: { ...rtk, enabled: v } })}
+ level={
+ <SegmentedLevel
+ levels={RTK_LEVELS}
+ value={rtk.intensity}
+ onChange={(intensity) => save({ rtkConfig: { ...rtk, intensity } })}
+ disabled={!masterEnabled || !rtk.enabled}
+ />
+ }
+ />
+ <EngineRow
+ title="LLM output"
+ badge="Caveman"
+ href="/dashboard/context/caveman"
+ description="Terse-style system prompt → ~65% fewer output tokens (up to 87%)"
+ enabled={cavemanOut.enabled}
+ masterEnabled={masterEnabled}
+ onToggle={(v) => save({ cavemanOutputMode: { ...cavemanOut, enabled: v } })}
+ level={
+ <SegmentedLevel
+ levels={CAVEMAN_LEVELS}
+ value={cavemanOut.intensity}
+ onChange={(intensity) => save({ cavemanOutputMode: { ...cavemanOut, intensity } })}
+ disabled={!masterEnabled || !cavemanOut.enabled}
+ />
+ }
+ />
+ <EngineRow
+ title="Input compression"
+ badge="Caveman"
+ href="/dashboard/context/caveman"
+ description="Rewrite chat history → ~50% fewer input tokens"
+ enabled={cavemanIn.enabled}
+ masterEnabled={masterEnabled}
+ onToggle={(v) => save({ cavemanConfig: { ...cavemanIn, enabled: v } })}
+ level={
+ <SegmentedLevel
+ levels={CAVEMAN_LEVELS}
+ value={cavemanIn.intensity}
+ onChange={(intensity) => save({ cavemanConfig: { ...cavemanIn, intensity } })}
+ disabled={!masterEnabled || !cavemanIn.enabled}
+ />
+ }
+ />
+ </div>
+
+ <div className="mt-4 pt-3 border-t border-border flex items-start gap-2 text-xs text-text-muted">
+ <span className="material-symbols-outlined text-[16px] mt-px">info</span>
+ <p>
+ Fine-tune each engine on{" "}
+ <Link href="/dashboard/context/caveman" className="text-primary hover:underline">
+ Caveman
+ </Link>{" "}
+ /{" "}
+ <Link href="/dashboard/context/rtk" className="text-primary hover:underline">
+ RTK
+ </Link>
+ , or combine engines per request on{" "}
+ <Link href="/dashboard/context/combos" className="text-primary hover:underline">
+ Engine Combos
+ </Link>
+ .
+ </p>
+ </div>
+ </Card>
+ );
+}
diff --git a/src/app/(dashboard)/dashboard/limits/page.tsx b/src/app/(dashboard)/dashboard/limits/page.tsx
index af0b390d99..aff11c0e1b 100644
--- a/src/app/(dashboard)/dashboard/limits/page.tsx
+++ b/src/app/(dashboard)/dashboard/limits/page.tsx
@@ -1,19 +1,5 @@
-"use client";
+import { redirect } from "next/navigation";
-import { Suspense } from "react";
-import { CardSkeleton } from "@/shared/components";
-import ProviderLimits from "../usage/components/ProviderLimits";
-import RateLimitStatus from "../usage/components/RateLimitStatus";
-import SessionsTab from "../usage/components/SessionsTab";
-
-export default function LimitsPage() {
- return (
- <div className="flex flex-col gap-6">
- <Suspense fallback={<CardSkeleton />}>
- <ProviderLimits />
- </Suspense>
- <SessionsTab />
- <RateLimitStatus />
- </div>
- );
+export default function LimitsRedirect() {
+ redirect("/dashboard/quota");
}
diff --git a/src/app/(dashboard)/dashboard/playground/SearchPlayground.tsx b/src/app/(dashboard)/dashboard/playground/SearchPlayground.tsx
index 52ba7babaa..6003cba660 100644
--- a/src/app/(dashboard)/dashboard/playground/SearchPlayground.tsx
+++ b/src/app/(dashboard)/dashboard/playground/SearchPlayground.tsx
@@ -1,11 +1,9 @@
"use client";
import { useState, useEffect, useRef } from "react";
-import dynamic from "next/dynamic";
import { useTranslations } from "next-intl";
import { Card, Button, Select, Badge } from "@/shared/components";
-
-const Editor = dynamic(() => import("@monaco-editor/react"), { ssr: false });
+import Editor from "@/shared/components/MonacoEditor";
interface SearchProvider {
id: string;
diff --git a/src/app/(dashboard)/dashboard/playground/page.tsx b/src/app/(dashboard)/dashboard/playground/page.tsx
index 4e18183b8d..1b2a728188 100644
--- a/src/app/(dashboard)/dashboard/playground/page.tsx
+++ b/src/app/(dashboard)/dashboard/playground/page.tsx
@@ -7,8 +7,8 @@ import { ALIAS_TO_ID } from "@/shared/constants/providers";
import { pickMaskedDisplayValue, pickDisplayValue } from "@/shared/utils/maskEmail";
import useEmailPrivacyStore from "@/store/emailPrivacyStore";
import dynamic from "next/dynamic";
+import Editor from "@/shared/components/MonacoEditor";
-const Editor = dynamic(() => import("@monaco-editor/react"), { ssr: false });
const SearchPlayground = dynamic(() => import("./SearchPlayground"), {
ssr: false,
});
diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
index 67d4a58c2b..5b137e03d4 100644
--- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
+++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
@@ -1043,6 +1043,7 @@ export default function ProviderDetailPage() {
Record<string, { proxy: any; level: string } | null>
>({});
const [importingModels, setImportingModels] = useState(false);
+ const [importingZed, setImportingZed] = useState(false);
const [showImportModal, setShowImportModal] = useState(false);
const [importProgress, setImportProgress] = useState({
current: 0,
@@ -1316,6 +1317,36 @@ export default function ProviderDetailPage() {
.catch(() => {});
}, [fetchConnections, fetchAliases]);
+ const handleZedImport = useCallback(async () => {
+ if (importingZed) return;
+ setImportingZed(true);
+ try {
+ const res = await fetch("/api/providers/zed/import", { method: "POST" });
+ const data = await res.json();
+ if (!res.ok || !data.success) {
+ notify.error(data.error || "Zed import failed");
+ } else if (!data.count) {
+ const found = data.credentials?.length ?? 0;
+ if (found === 0) {
+ notify.info("No Zed credentials found in keychain");
+ } else {
+ notify.info(
+ `Found ${found} keychain credential(s), but none matched supported providers`
+ );
+ }
+ } else {
+ notify.success(
+ `Imported ${data.count} credential(s) from Zed for ${data.providers?.length ?? 0} provider(s)`
+ );
+ await fetchConnections();
+ }
+ } catch (e: any) {
+ notify.error(e?.message || "Zed import failed");
+ } finally {
+ setImportingZed(false);
+ }
+ }, [importingZed, notify, fetchConnections]);
+
useEffect(() => {
if (providerId !== "codex") return;
fetch("/api/settings", { cache: "no-store" })
@@ -3285,6 +3316,33 @@ export default function ProviderDetailPage() {
</div>
</div>
+ {providerId === "zed" && (
+ <Card>
+ <div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
+ <div className="flex-1 min-w-0">
+ <h2 className="text-lg font-semibold flex items-center gap-2">
+ <span className="material-symbols-outlined text-[20px]">download</span>
+ Import from Zed Keychain
+ </h2>
+ <p className="text-sm text-text-muted mt-1">
+ Discover AI provider credentials (OpenAI, Anthropic, Google, Mistral, xAI) that Zed
+ IDE stored in the OS keychain and import them as connections. Requires Zed IDE
+ installed on this machine.
+ </p>
+ </div>
+ <Button
+ size="sm"
+ variant="secondary"
+ icon={importingZed ? "sync" : "download"}
+ onClick={handleZedImport}
+ disabled={importingZed}
+ >
+ {importingZed ? "Importing…" : "Import from Zed"}
+ </Button>
+ </div>
+ </Card>
+ )}
+
{isCompatible && providerNode && (
<Card>
<div className="mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
diff --git a/src/app/(dashboard)/dashboard/providers/page.tsx b/src/app/(dashboard)/dashboard/providers/page.tsx
index 64446faaa4..1b579c0d62 100644
--- a/src/app/(dashboard)/dashboard/providers/page.tsx
+++ b/src/app/(dashboard)/dashboard/providers/page.tsx
@@ -16,6 +16,7 @@ import {
AGGREGATOR_PROVIDER_IDS,
EMBEDDING_RERANK_PROVIDER_IDS,
ENTERPRISE_CLOUD_PROVIDER_IDS,
+ IDE_PROVIDER_IDS,
IMAGE_ONLY_PROVIDER_IDS,
VIDEO_PROVIDER_IDS,
isClaudeCodeCompatibleProvider,
@@ -125,7 +126,6 @@ export default function ProvidersPage() {
const [showAddCcCompatibleModal, setShowAddCcCompatibleModal] = useState(false);
const [testingMode, setTestingMode] = useState<string | null>(null);
const [testResults, setTestResults] = useState<any>(null);
- const [importingZed, setImportingZed] = useState(false);
const [showConfiguredOnly, setShowConfiguredOnly] = useState(false);
const [configuredOnlyPreferenceReady, setConfiguredOnlyPreferenceReady] = useState(false);
const [oauthEnvRepairStatus, setOauthEnvRepairStatus] = useState<{
@@ -204,33 +204,6 @@ export default function ProvidersPage() {
void fetchOauthEnvRepairStatus();
}, [fetchOauthEnvRepairStatus]);
- const handleZedImport = async () => {
- setImportingZed(true);
- try {
- const res = await fetch("/api/providers/zed/import", { method: "POST" });
- const data = await res.json();
- if (res.ok && data.success) {
- if (data.count > 0) {
- notify.success(
- t("zedImportSuccess", { count: data.count, providers: data.providers.join(", ") })
- );
- // Refresh connections silently
- const connectionsRes = await fetch("/api/providers");
- const connectionsData = await connectionsRes.json();
- if (connectionsRes.ok) setConnections(connectionsData.connections || []);
- } else {
- notify.info(t("zedImportNone"));
- }
- } else {
- notify.error(data.error || t("zedImportFailed"));
- }
- } catch (error) {
- notify.error(t("zedImportNetworkError"));
- } finally {
- setImportingZed(false);
- }
- };
-
const handleRepairEnv = async () => {
if (!oauthEnvRepairStatus?.available || repairingEnv) return;
@@ -603,7 +576,22 @@ export default function ProvidersPage() {
searchQuery
);
- const oauthOnlyEntriesAll = oauthProviderEntriesAll.filter((e) => e.toggleAuthType === "oauth");
+ // IDE providers: subset of oauth/apikey providers that are editors/IDEs with
+ // built-in AI subscription. Rendered in a dedicated "IDE Providers" section
+ // and excluded from the regular OAuth/API Key sections to avoid duplication.
+ const ideProviderEntriesAll = [...oauthProviderEntriesAll, ...apiKeyProviderEntriesAll].filter(
+ (e) => IDE_PROVIDER_IDS.has(e.providerId)
+ );
+ const ideProviderEntries = filterConfiguredProviderEntries(
+ ideProviderEntriesAll,
+ effectiveShowConfiguredOnly,
+ searchQuery,
+ showFreeOnly
+ );
+
+ const oauthOnlyEntriesAll = oauthProviderEntriesAll
+ .filter((e) => e.toggleAuthType === "oauth")
+ .filter((e) => !IDE_PROVIDER_IDS.has(e.providerId));
const summaryStats = {
all: {
configured:
@@ -614,6 +602,13 @@ export default function ProvidersPage() {
free: countConfigured(freeSectionEntriesAll),
oauth: countConfigured(oauthOnlyEntriesAll),
apikey: countConfigured(apiKeyProviderEntriesAll),
+ compatible: countConfigured(compatibleProviderEntriesAll),
+ webcookie: countConfigured(webCookieProviderEntriesAll),
+ search: countConfigured(searchProviderEntriesAll),
+ audio: countConfigured(audioProviderEntriesAll),
+ local: countConfigured(localProviderEntriesAll),
+ cloudagent: countConfigured(cloudAgentProviderEntriesAll),
+ ide: countConfigured(ideProviderEntriesAll),
};
if (loading) {
@@ -705,159 +700,187 @@ export default function ProvidersPage() {
</button>
</div>
- {/* Row 2: Legend */}
- <div className="flex flex-wrap items-center gap-x-3 gap-y-0.5 text-[11px] text-text-muted select-none">
- {(
- [
- ["bg-green-500", tc("free")],
- ["bg-blue-500", t("oauthLabel")],
- ["bg-amber-500", t("apiKeyLabel")],
- ["bg-orange-500", t("compatibleLabel")],
- ["bg-purple-500", t("webCookieProviders")],
- ["bg-teal-500", t("searchProvidersHeading")],
- ["bg-rose-500", t("audioProvidersHeading")],
- ["bg-emerald-500", t("localProviders")],
- ["bg-indigo-500", t("upstreamProxyProviders")],
- ["bg-violet-500", t("cloudAgentProviders")],
- ] as [string, string][]
- ).map(([color, label]) => (
- <span key={color} className="flex items-center gap-1 whitespace-nowrap">
- <span className={`size-2 rounded-full shrink-0 ${color}`} />
- {label}
- </span>
- ))}
- </div>
-
- {/* Divider + Stats */}
- <div className="border-t border-border pt-3 flex flex-wrap items-center gap-x-5 gap-y-1">
+ {/* Category filter pills with embedded counters */}
+ <div className="border-t border-border pt-3 flex flex-wrap items-center gap-2">
{(
[
- [null, t("providerSummaryAll"), summaryStats.all],
- ["bg-green-500", tc("free"), summaryStats.free],
- ["bg-blue-500", t("oauthLabel"), summaryStats.oauth],
- ["bg-amber-500", t("apiKeyLabel"), summaryStats.apikey],
- ] as [string | null, string, { configured: number; total: number }][]
- ).map(([color, label, stat]) => (
- <span key={label} className="flex items-center gap-1.5">
- {color && <span className={`size-2 rounded-full shrink-0 ${color}`} />}
- <span className="text-xs text-text-muted">{label}</span>
- <span className="text-sm font-semibold text-text-main">
- {stat.configured}
- <span className="font-normal text-text-muted">/{stat.total}</span>
- </span>
- </span>
- ))}
+ { key: null, color: null, label: t("providerSummaryAll"), stat: summaryStats.all },
+ {
+ key: "free",
+ color: "bg-green-500",
+ label: tc("free"),
+ stat: summaryStats.free,
+ },
+ {
+ key: "oauth",
+ color: "bg-blue-500",
+ label: t("oauthLabel"),
+ stat: summaryStats.oauth,
+ },
+ {
+ key: "apikey",
+ color: "bg-amber-500",
+ label: t("apiKeyLabel"),
+ stat: summaryStats.apikey,
+ },
+ {
+ key: "ide",
+ color: "bg-cyan-500",
+ label: "IDE",
+ stat: summaryStats.ide,
+ },
+ {
+ key: "compatible",
+ color: "bg-orange-500",
+ label: t("compatibleLabel"),
+ stat: summaryStats.compatible,
+ },
+ {
+ key: "webcookie",
+ color: "bg-purple-500",
+ label: "Web Cookie",
+ stat: summaryStats.webcookie,
+ },
+ {
+ key: "search",
+ color: "bg-teal-500",
+ label: "Search",
+ stat: summaryStats.search,
+ },
+ {
+ key: "audio",
+ color: "bg-rose-500",
+ label: "Audio",
+ stat: summaryStats.audio,
+ },
+ {
+ key: "local",
+ color: "bg-emerald-500",
+ label: "Local",
+ stat: summaryStats.local,
+ },
+ {
+ key: "cloudagent",
+ color: "bg-violet-500",
+ label: "Cloud Agent",
+ stat: summaryStats.cloudagent,
+ },
+ ] as Array<{
+ key: string | null;
+ color: string | null;
+ label: string;
+ stat: { configured: number; total: number };
+ }>
+ ).map((cat) => {
+ const isActive =
+ (cat.key === null && !activeCategory && !showFreeOnly) ||
+ (cat.key === "free" && showFreeOnly) ||
+ (cat.key !== "free" &&
+ cat.key !== null &&
+ !showFreeOnly &&
+ activeCategory === cat.key);
+ return (
+ <button
+ key={cat.key ?? "all"}
+ onClick={() => {
+ if (cat.key === null) {
+ setShowFreeOnly(false);
+ setActiveCategory(null);
+ } else if (cat.key === "free") {
+ setShowFreeOnly(true);
+ setActiveCategory(null);
+ } else {
+ setShowFreeOnly(false);
+ setActiveCategory(cat.key);
+ }
+ }}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-medium transition-colors ${
+ isActive
+ ? "bg-primary text-white border-primary"
+ : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/30"
+ }`}
+ title={cat.label}
+ >
+ {cat.color && <span className={`size-2 rounded-full shrink-0 ${cat.color}`} />}
+ <span>{cat.label}</span>
+ <span className={`text-[11px] ${isActive ? "text-white/80" : "text-text-muted"}`}>
+ {cat.stat.configured}
+ <span className="opacity-70">/{cat.stat.total}</span>
+ </span>
+ </button>
+ );
+ })}
</div>
</div>
</Card>
{/* API Key Compatible Providers — dynamic (OpenAI/Anthropic compatible) */}
- <div className="flex flex-col gap-4">
- <div className="flex flex-wrap items-center gap-2">
- <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
- {t("compatibleProviders")}{" "}
- <span className="size-2.5 rounded-full bg-orange-500" title={t("compatibleLabel")} />
- <ProviderCountBadge {...countConfigured(compatibleProviderEntriesAll)} />
- </h2>
- <div className="flex flex-wrap gap-2">
- {(compatibleProviders.length > 0 ||
- anthropicCompatibleProviders.length > 0 ||
- ccCompatibleProviders.length > 0) && (
- <button
- onClick={() => handleBatchTest("compatible")}
- disabled={!!testingMode}
- className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${
- testingMode === "compatible"
- ? "bg-primary/20 border-primary/40 text-primary animate-pulse"
- : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"
- }`}
- title={t("testAllCompatible")}
- >
- <span className="material-symbols-outlined text-[14px]">
- {testingMode === "compatible" ? "sync" : "play_arrow"}
- </span>
- {testingMode === "compatible" ? t("testing") : t("testAll")}
- </button>
- )}
- {ccCompatibleProviderEnabled && (
- <Button size="sm" icon="add" onClick={() => setShowAddCcCompatibleModal(true)}>
- {addCcCompatibleLabel}
+ {showSection("compatible") && (
+ <div className="flex flex-col gap-4">
+ <div className="flex flex-wrap items-center gap-2">
+ <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
+ {t("compatibleProviders")}{" "}
+ <span className="size-2.5 rounded-full bg-orange-500" title={t("compatibleLabel")} />
+ <ProviderCountBadge {...countConfigured(compatibleProviderEntriesAll)} />
+ </h2>
+ <div className="flex flex-wrap gap-2">
+ {(compatibleProviders.length > 0 ||
+ anthropicCompatibleProviders.length > 0 ||
+ ccCompatibleProviders.length > 0) && (
+ <button
+ onClick={() => handleBatchTest("compatible")}
+ disabled={!!testingMode}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${
+ testingMode === "compatible"
+ ? "bg-primary/20 border-primary/40 text-primary animate-pulse"
+ : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"
+ }`}
+ title={t("testAllCompatible")}
+ >
+ <span className="material-symbols-outlined text-[14px]">
+ {testingMode === "compatible" ? "sync" : "play_arrow"}
+ </span>
+ {testingMode === "compatible" ? t("testing") : t("testAll")}
+ </button>
+ )}
+ {ccCompatibleProviderEnabled && (
+ <Button size="sm" icon="add" onClick={() => setShowAddCcCompatibleModal(true)}>
+ {addCcCompatibleLabel}
+ </Button>
+ )}
+ <Button size="sm" icon="add" onClick={() => setShowAddAnthropicCompatibleModal(true)}>
+ {t("addAnthropicCompatible")}
</Button>
- )}
- <Button size="sm" icon="add" onClick={() => setShowAddAnthropicCompatibleModal(true)}>
- {t("addAnthropicCompatible")}
- </Button>
- <Button size="sm" icon="add" onClick={() => setShowAddCompatibleModal(true)}>
- {t("addOpenAICompatible")}
- </Button>
+ <Button size="sm" icon="add" onClick={() => setShowAddCompatibleModal(true)}>
+ {t("addOpenAICompatible")}
+ </Button>
+ </div>
</div>
+ {compatibleProviders.length === 0 &&
+ anthropicCompatibleProviders.length === 0 &&
+ ccCompatibleProviders.length === 0 ? (
+ <div className="flex items-center justify-center gap-2 py-2 border border-dashed border-border rounded-xl text-text-muted text-sm">
+ <span className="material-symbols-outlined text-[18px]">extension</span>
+ <span>{t("noCompatibleYet")}</span>
+ </div>
+ ) : (
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {compatibleProviderEntries.map(
+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
+ />
+ )
+ )}
+ </div>
+ )}
</div>
- {compatibleProviders.length === 0 &&
- anthropicCompatibleProviders.length === 0 &&
- ccCompatibleProviders.length === 0 ? (
- <div className="flex items-center justify-center gap-2 py-2 border border-dashed border-border rounded-xl text-text-muted text-sm">
- <span className="material-symbols-outlined text-[18px]">extension</span>
- <span>{t("noCompatibleYet")}</span>
- </div>
- ) : (
- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {compatibleProviderEntries.map(
- ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
- <ProviderCard
- key={providerId}
- providerId={providerId}
- provider={provider}
- stats={stats}
- authType={displayAuthType}
- onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
- />
- )
- )}
- </div>
- )}
- </div>
-
- {/* Category Filter Chips */}
- <div className="flex flex-wrap items-center gap-2">
- {[
- { key: null, label: t("allProviders") || "All" },
- { key: "free", label: t("freeProviders") || "Free" },
- { key: "oauth", label: t("oauthProviders") },
- { key: "apikey", label: t("apiKeyProviders") },
- { key: "webcookie", label: t("webCookieProviders") || "Web Cookie" },
- { key: "search", label: t("searchProviders") || "Search" },
- { key: "audio", label: t("audioProviders") || "Audio" },
- { key: "cloudagent", label: t("cloudAgentProviders") || "Cloud Agent" },
- { key: "local", label: t("localProviders") || "Local" },
- { key: "compatible", label: t("compatibleProviders") || "Compatible" },
- ].map((cat) => (
- <button
- key={cat.key ?? "all"}
- onClick={() => {
- if (cat.key === "free") {
- setShowFreeOnly(true);
- setActiveCategory(null);
- } else {
- setShowFreeOnly(false);
- setActiveCategory(cat.key);
- }
- }}
- className={`px-3 py-1.5 text-xs font-medium rounded-full border transition-colors ${
- (cat.key === "free" && showFreeOnly) ||
- (cat.key !== "free" && !showFreeOnly && activeCategory === cat.key)
- ? "bg-primary text-white border-primary"
- : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/30"
- }`}
- >
- {cat.key === "free" && (
- <span className="material-symbols-outlined text-[12px] mr-0.5 align-middle">
- star
- </span>
- )}
- {cat.label}
- </button>
- ))}
- </div>
+ )}
{/* Expiration Banner */}
{expirations?.summary &&
@@ -896,7 +919,7 @@ export default function ProvidersPage() {
)}
{/* Free Tier Providers */}
- {freeSectionEntries.length > 0 && (
+ {showSection("free") && freeSectionEntries.length > 0 && (
<div className="flex flex-col gap-4">
<div className="flex flex-wrap items-start gap-2">
<div className="flex-1 min-w-0">
@@ -941,129 +964,115 @@ export default function ProvidersPage() {
)}
{/* OAuth Providers (including providers that expose free tiers via OAuth) */}
- <div className="flex flex-col gap-4">
- <div className="flex flex-wrap items-center gap-2">
- <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
- {t("oauthProviders")}{" "}
- <span className="size-2.5 rounded-full bg-blue-500" title={t("oauthLabel")} />
- <ProviderCountBadge {...countConfigured(oauthProviderEntriesAll)} />
- </h2>
- <div className="flex items-center gap-2">
- <Toggle
- size="sm"
- checked={showFreeOnly}
- onChange={setShowFreeOnly}
- label={t("showFreeOnly") || "Free only"}
- className="rounded-lg border border-border bg-bg-subtle px-3 py-1.5"
- />
- <Toggle
- size="sm"
- checked={effectiveShowConfiguredOnly}
- onChange={setShowConfiguredOnly}
- label={t("showConfiguredOnly")}
- disabled={connections.length === 0}
- className="rounded-lg border border-border bg-bg-subtle px-3 py-1.5"
- />
- <button
- onClick={handleZedImport}
- disabled={importingZed}
- className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40`}
- title={t("zedImportHint")}
- >
- <span
- className={`material-symbols-outlined text-[14px] ${importingZed ? "animate-spin" : ""}`}
- >
- {importingZed ? "sync" : "download"}
- </span>
- {importingZed ? t("zedImporting") : t("zedImportButton")}
- </button>
- {oauthEnvRepairStatus?.available && oauthEnvRepairStatus.missingCount > 0 && (
+ {showSection("oauth") && (
+ <div className="flex flex-col gap-4">
+ <div className="flex flex-wrap items-center gap-2">
+ <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
+ {t("oauthProviders")}{" "}
+ <span className="size-2.5 rounded-full bg-blue-500" title={t("oauthLabel")} />
+ <ProviderCountBadge
+ {...countConfigured(
+ oauthProviderEntriesAll.filter((e) => !IDE_PROVIDER_IDS.has(e.providerId))
+ )}
+ />
+ </h2>
+ <div className="flex items-center gap-2">
+ {oauthEnvRepairStatus?.available && oauthEnvRepairStatus.missingCount > 0 && (
+ <button
+ onClick={handleRepairEnv}
+ disabled={repairingEnv}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${
+ repairingEnv
+ ? "bg-primary/20 border-primary/40 text-primary animate-pulse"
+ : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"
+ }`}
+ title={t("repairEnvHint")}
+ aria-label={t("repairEnv")}
+ >
+ <span className="material-symbols-outlined text-[14px]">
+ {repairingEnv ? "sync" : "settings_backup_restore"}
+ </span>
+ {repairingEnv ? t("repairEnvWorking") : t("repairEnv")}
+ </button>
+ )}
<button
- onClick={handleRepairEnv}
- disabled={repairingEnv}
+ onClick={() => handleBatchTest("oauth")}
+ disabled={!!testingMode}
className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${
- repairingEnv
+ testingMode === "oauth"
? "bg-primary/20 border-primary/40 text-primary animate-pulse"
: "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"
}`}
- title={t("repairEnvHint")}
- aria-label={t("repairEnv")}
+ title={t("testAllOAuth")}
+ aria-label={t("testAllOAuth")}
>
<span className="material-symbols-outlined text-[14px]">
- {repairingEnv ? "sync" : "settings_backup_restore"}
+ {testingMode === "oauth" ? "sync" : "play_arrow"}
</span>
- {repairingEnv ? t("repairEnvWorking") : t("repairEnv")}
+ {testingMode === "oauth" ? t("testing") : t("testAll")}
</button>
- )}
+ </div>
+ </div>
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {oauthProviderEntries
+ .filter((e) => !IDE_PROVIDER_IDS.has(e.providerId))
+ .map(({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
+ />
+ ))}
+ </div>
+ </div>
+ )}
+
+ {/* IDE Providers (Cursor, Zed, Trae) — editors with built-in AI subscription */}
+ {showSection("ide") && (
+ <div className="flex flex-col gap-4">
+ <div className="flex flex-wrap items-center gap-2">
+ <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
+ {t("ideProviders") || "IDE Providers"}{" "}
+ <span
+ className="size-2.5 rounded-full bg-cyan-500"
+ title={t("ideProviders") || "IDE Providers"}
+ />
+ <ProviderCountBadge {...countConfigured(ideProviderEntriesAll)} />
+ </h2>
<button
- onClick={() => handleBatchTest("oauth")}
+ onClick={() => handleBatchTest("ide")}
disabled={!!testingMode}
className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${
- testingMode === "oauth"
+ testingMode === "ide"
? "bg-primary/20 border-primary/40 text-primary animate-pulse"
: "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"
}`}
- title={t("testAllOAuth")}
- aria-label={t("testAllOAuth")}
+ title={t("testAll")}
+ aria-label={t("testAll")}
>
<span className="material-symbols-outlined text-[14px]">
- {testingMode === "oauth" ? "sync" : "play_arrow"}
+ {testingMode === "ide" ? "sync" : "play_arrow"}
</span>
- {testingMode === "oauth" ? t("testing") : t("testAll")}
+ {testingMode === "ide" ? t("testing") : t("testAll")}
</button>
</div>
- </div>
- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {oauthProviderEntries.map(
- ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
- <ProviderCard
- key={providerId}
- providerId={providerId}
- provider={provider}
- stats={stats}
- authType={displayAuthType}
- onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
- />
- )
- )}
- </div>
- </div>
-
- {/* API Key Providers — fixed list */}
- <div className="flex flex-col gap-4">
- <div className="flex flex-wrap items-center gap-2">
- <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
- {t("apiKeyProviders")}{" "}
- <span className="size-2.5 rounded-full bg-amber-500" title={t("apiKeyLabel")} />
- <ProviderCountBadge {...countConfigured(apiKeyProviderEntriesAll)} />
- </h2>
- <button
- onClick={() => handleBatchTest("apikey")}
- disabled={!!testingMode}
- className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${
- testingMode === "apikey"
- ? "bg-primary/20 border-primary/40 text-primary animate-pulse"
- : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"
- }`}
- title={t("testAllApiKey")}
- aria-label={t("testAllApiKey")}
- >
- <span className="material-symbols-outlined text-[14px]">
- {testingMode === "apikey" ? "sync" : "play_arrow"}
- </span>
- {testingMode === "apikey" ? t("testing") : t("testAll")}
- </button>
- </div>
- {llmProviderEntries.length > 0 && (
- <div className="flex flex-col gap-3">
- <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
- {t("llmProviders")}
- </h3>
+ <p className="text-sm text-text-muted -mt-2">
+ {t("ideProvidersDesc") ||
+ "Editors with built-in AI subscription. Use the provider page to import credentials directly from the IDE's keychain."}
+ </p>
+ {ideProviderEntries.length === 0 ? (
+ <div className="rounded-lg border border-dashed border-border bg-bg-subtle p-6 text-center text-sm text-text-muted">
+ {t("noIdeProviders") || "No IDE providers match the current filters."}
+ </div>
+ ) : (
<div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {llmProviderEntries.map(
+ {ideProviderEntries.map(
({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
<ProviderCard
- key={providerId}
+ key={`ide-${providerId}`}
providerId={providerId}
provider={provider}
stats={stats}
@@ -1073,122 +1082,184 @@ export default function ProvidersPage() {
)
)}
</div>
+ )}
+ </div>
+ )}
+
+ {/* API Key Providers — fixed list */}
+ {showSection("apikey") && (
+ <div className="flex flex-col gap-4">
+ <div className="flex flex-wrap items-center gap-2">
+ <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
+ {t("apiKeyProviders")}{" "}
+ <span className="size-2.5 rounded-full bg-amber-500" title={t("apiKeyLabel")} />
+ <ProviderCountBadge {...countConfigured(apiKeyProviderEntriesAll)} />
+ </h2>
+ <button
+ onClick={() => handleBatchTest("apikey")}
+ disabled={!!testingMode}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${
+ testingMode === "apikey"
+ ? "bg-primary/20 border-primary/40 text-primary animate-pulse"
+ : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"
+ }`}
+ title={t("testAllApiKey")}
+ aria-label={t("testAllApiKey")}
+ >
+ <span className="material-symbols-outlined text-[14px]">
+ {testingMode === "apikey" ? "sync" : "play_arrow"}
+ </span>
+ {testingMode === "apikey" ? t("testing") : t("testAll")}
+ </button>
</div>
- )}
+ {llmProviderEntries.length > 0 && (
+ <div className="flex flex-col gap-3">
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
+ {t("llmProviders")}
+ </h3>
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {llmProviderEntries.map(
+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) =>
+ handleToggleProvider(providerId, toggleAuthType, active)
+ }
+ />
+ )
+ )}
+ </div>
+ </div>
+ )}
- {aggregatorProviderEntries.length > 0 && (
- <div className="flex flex-col gap-3">
- <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
- {t("aggregatorsGateways")}
- </h3>
- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {aggregatorProviderEntries.map(
- ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
- <ProviderCard
- key={providerId}
- providerId={providerId}
- provider={provider}
- stats={stats}
- authType={displayAuthType}
- onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
- />
- )
- )}
+ {aggregatorProviderEntries.length > 0 && (
+ <div className="flex flex-col gap-3">
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
+ {t("aggregatorsGateways")}
+ </h3>
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {aggregatorProviderEntries.map(
+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) =>
+ handleToggleProvider(providerId, toggleAuthType, active)
+ }
+ />
+ )
+ )}
+ </div>
</div>
- </div>
- )}
+ )}
- {enterpriseProviderEntries.length > 0 && (
- <div className="flex flex-col gap-3">
- <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
- {t("enterpriseCloud")}
- </h3>
- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {enterpriseProviderEntries.map(
- ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
- <ProviderCard
- key={providerId}
- providerId={providerId}
- provider={provider}
- stats={stats}
- authType={displayAuthType}
- onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
- />
- )
- )}
+ {enterpriseProviderEntries.length > 0 && (
+ <div className="flex flex-col gap-3">
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
+ {t("enterpriseCloud")}
+ </h3>
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {enterpriseProviderEntries.map(
+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) =>
+ handleToggleProvider(providerId, toggleAuthType, active)
+ }
+ />
+ )
+ )}
+ </div>
</div>
- </div>
- )}
+ )}
- {imageProviderEntries.length > 0 && (
- <div className="flex flex-col gap-3">
- <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
- {t("imageProviders")}
- </h3>
- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {imageProviderEntries.map(
- ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
- <ProviderCard
- key={providerId}
- providerId={providerId}
- provider={provider}
- stats={stats}
- authType={displayAuthType}
- onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
- />
- )
- )}
+ {imageProviderEntries.length > 0 && (
+ <div className="flex flex-col gap-3">
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
+ {t("imageProviders")}
+ </h3>
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {imageProviderEntries.map(
+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) =>
+ handleToggleProvider(providerId, toggleAuthType, active)
+ }
+ />
+ )
+ )}
+ </div>
</div>
- </div>
- )}
+ )}
- {videoProviderEntries.length > 0 && (
- <div className="flex flex-col gap-3">
- <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
- {t("videoProviders")}
- </h3>
- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {videoProviderEntries.map(
- ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
- <ProviderCard
- key={providerId}
- providerId={providerId}
- provider={provider}
- stats={stats}
- authType={displayAuthType}
- onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
- />
- )
- )}
+ {videoProviderEntries.length > 0 && (
+ <div className="flex flex-col gap-3">
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
+ {t("videoProviders")}
+ </h3>
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {videoProviderEntries.map(
+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) =>
+ handleToggleProvider(providerId, toggleAuthType, active)
+ }
+ />
+ )
+ )}
+ </div>
</div>
- </div>
- )}
+ )}
- {embeddingRerankProviderEntries.length > 0 && (
- <div className="flex flex-col gap-3">
- <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
- {t("embeddingRerankProviders")}
- </h3>
- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
- {embeddingRerankProviderEntries.map(
- ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
- <ProviderCard
- key={providerId}
- providerId={providerId}
- provider={provider}
- stats={stats}
- authType={displayAuthType}
- onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}
- />
- )
- )}
+ {embeddingRerankProviderEntries.length > 0 && (
+ <div className="flex flex-col gap-3">
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-text-muted">
+ {t("embeddingRerankProviders")}
+ </h3>
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">
+ {embeddingRerankProviderEntries.map(
+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (
+ <ProviderCard
+ key={providerId}
+ providerId={providerId}
+ provider={provider}
+ stats={stats}
+ authType={displayAuthType}
+ onToggle={(active) =>
+ handleToggleProvider(providerId, toggleAuthType, active)
+ }
+ />
+ )
+ )}
+ </div>
</div>
- </div>
- )}
- </div>
+ )}
+ </div>
+ )}
{/* Web / Cookie Providers */}
- {webCookieProviderEntries.length > 0 && (
+ {showSection("webcookie") && webCookieProviderEntries.length > 0 && (
<div className="flex flex-col gap-4">
<div className="flex flex-wrap items-center gap-2">
<h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
@@ -1231,7 +1302,7 @@ export default function ProvidersPage() {
)}
{/* Search Providers */}
- {searchProviderEntries.length > 0 && (
+ {showSection("search") && searchProviderEntries.length > 0 && (
<div className="flex flex-col gap-4">
<div className="flex flex-wrap items-center gap-2">
<h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
@@ -1274,7 +1345,7 @@ export default function ProvidersPage() {
)}
{/* Audio Only Providers */}
- {audioProviderEntries.length > 0 && (
+ {showSection("audio") && audioProviderEntries.length > 0 && (
<div className="flex flex-col gap-4">
<div className="flex flex-wrap items-center gap-2">
<h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
@@ -1317,7 +1388,7 @@ export default function ProvidersPage() {
)}
{/* Cloud Agent Providers */}
- {cloudAgentProviderEntries.length > 0 && (
+ {showSection("cloudagent") && cloudAgentProviderEntries.length > 0 && (
<div className="flex flex-col gap-4">
<div className="flex flex-wrap items-center gap-2">
<h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
@@ -1360,7 +1431,7 @@ export default function ProvidersPage() {
)}
{/* Local / Self-Hosted Providers */}
- {localProviderEntries.length > 0 && (
+ {showSection("local") && localProviderEntries.length > 0 && (
<div className="flex flex-col gap-4">
<div className="flex flex-wrap items-center gap-2">
<h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">
diff --git a/src/app/(dashboard)/dashboard/quota/page.tsx b/src/app/(dashboard)/dashboard/quota/page.tsx
new file mode 100644
index 0000000000..81d195a677
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/quota/page.tsx
@@ -0,0 +1,15 @@
+"use client";
+
+import { Suspense } from "react";
+import { CardSkeleton } from "@/shared/components";
+import ProviderLimits from "../usage/components/ProviderLimits";
+
+export default function QuotaPage() {
+ return (
+ <div className="flex flex-col gap-6">
+ <Suspense fallback={<CardSkeleton />}>
+ <ProviderLimits />
+ </Suspense>
+ </div>
+ );
+}
diff --git a/src/app/(dashboard)/dashboard/runtime/RuntimePageClient.tsx b/src/app/(dashboard)/dashboard/runtime/RuntimePageClient.tsx
new file mode 100644
index 0000000000..40363a244d
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/runtime/RuntimePageClient.tsx
@@ -0,0 +1,1118 @@
+"use client";
+
+import { useCallback, useEffect, useMemo, useRef, useState } from "react";
+import Link from "next/link";
+import Card from "@/shared/components/Card";
+import ProviderIcon from "@/shared/components/ProviderIcon";
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Types
+// ─────────────────────────────────────────────────────────────────────────────
+
+type BreakerState = "CLOSED" | "OPEN" | "HALF_OPEN";
+
+type ProviderBreaker = {
+ provider: string;
+ state: BreakerState;
+ failureCount: number;
+ lastFailure: string | null;
+ retryAfterMs: number;
+};
+
+type LockoutEntry = {
+ reason?: string;
+ until?: number | string | null;
+ remainingMs?: number;
+ model?: string;
+ accountId?: string;
+};
+
+type SessionTop = {
+ sessionId: string;
+ requestCount: number;
+ connectionId?: string | null;
+ ageMs: number;
+ idleMs: number;
+ createdAt?: string;
+ lastActiveAt?: string;
+};
+
+type QuotaMonitor = {
+ sessionId?: string;
+ accountId?: string;
+ provider?: string;
+ window?: string;
+ status?: "ok" | "alerting" | "exhausted" | "error" | string;
+ remainingPercent?: number;
+};
+
+type HealthPayload = {
+ timestamp?: string;
+ providerBreakers?: ProviderBreaker[];
+ lockouts?: Record<string, LockoutEntry>;
+ quotaMonitor?: {
+ active?: number;
+ alerting?: number;
+ exhausted?: number;
+ errors?: number;
+ monitors?: QuotaMonitor[];
+ };
+ sessions?: {
+ activeCount?: number;
+ stickyBoundCount?: number;
+ byApiKey?: Record<string, number>;
+ top?: SessionTop[];
+ };
+};
+
+type Connection = {
+ id: string;
+ provider: string;
+ name?: string;
+ displayName?: string;
+ email?: string;
+ authType?: string;
+ rateLimitedUntil?: string | null;
+ testStatus?: string;
+ lastError?: string;
+ lastErrorType?: string;
+ errorCode?: string | number;
+ backoffLevel?: number;
+};
+
+type FeedEventKind =
+ | "circuit-opened"
+ | "circuit-recovered"
+ | "circuit-closed"
+ | "cooldown-added"
+ | "cooldown-cleared"
+ | "lockout-added"
+ | "lockout-cleared"
+ | "session-new"
+ | "quota-alert"
+ | "quota-exhausted"
+ | "quota-recovered";
+
+type FeedEvent = {
+ id: string;
+ ts: number;
+ kind: FeedEventKind;
+ title: string;
+ detail: string;
+};
+
+type FeedFilter = "all" | "circuits" | "cooldowns" | "lockouts" | "sessions" | "quotas";
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Constants & helpers
+// ─────────────────────────────────────────────────────────────────────────────
+
+const REFRESH_INTERVAL_MS = 5000;
+const FEED_MAX_EVENTS = 50;
+
+const BREAKER_TONE: Record<
+ BreakerState,
+ { dot: string; bg: string; ring: string; label: string; icon: string }
+> = {
+ CLOSED: {
+ dot: "#22c55e",
+ bg: "rgba(34,197,94,0.10)",
+ ring: "rgba(34,197,94,0.30)",
+ label: "OK",
+ icon: "check_circle",
+ },
+ HALF_OPEN: {
+ dot: "#eab308",
+ bg: "rgba(234,179,8,0.10)",
+ ring: "rgba(234,179,8,0.30)",
+ label: "RECOV",
+ icon: "sync",
+ },
+ OPEN: {
+ dot: "#ef4444",
+ bg: "rgba(239,68,68,0.10)",
+ ring: "rgba(239,68,68,0.30)",
+ label: "OPEN",
+ icon: "block",
+ },
+};
+
+const FEED_KIND_META: Record<FeedEventKind, { icon: string; color: string; group: FeedFilter }> = {
+ "circuit-opened": { icon: "block", color: "#ef4444", group: "circuits" },
+ "circuit-recovered": { icon: "sync", color: "#eab308", group: "circuits" },
+ "circuit-closed": { icon: "check_circle", color: "#22c55e", group: "circuits" },
+ "cooldown-added": { icon: "ac_unit", color: "#3b82f6", group: "cooldowns" },
+ "cooldown-cleared": { icon: "lock_open", color: "#22c55e", group: "cooldowns" },
+ "lockout-added": { icon: "lock", color: "#f97316", group: "lockouts" },
+ "lockout-cleared": { icon: "lock_open", color: "#22c55e", group: "lockouts" },
+ "session-new": { icon: "fingerprint", color: "#06b6d4", group: "sessions" },
+ "quota-alert": { icon: "warning", color: "#eab308", group: "quotas" },
+ "quota-exhausted": { icon: "error", color: "#ef4444", group: "quotas" },
+ "quota-recovered": { icon: "check_circle", color: "#22c55e", group: "quotas" },
+};
+
+function fmtMs(ms: number | undefined | null): string {
+ if (!ms || ms <= 0) return "0s";
+ if (ms < 1000) return `${ms}ms`;
+ const s = Math.ceil(ms / 1000);
+ if (s < 60) return `${s}s`;
+ const m = Math.floor(s / 60);
+ const rs = s % 60;
+ if (m < 60) return rs > 0 ? `${m}m ${rs}s` : `${m}m`;
+ const h = Math.floor(m / 60);
+ const rm = m % 60;
+ return `${h}h ${rm}m`;
+}
+
+function fmtClock(ts: number): string {
+ return new Date(ts).toLocaleTimeString([], {
+ hour: "2-digit",
+ minute: "2-digit",
+ second: "2-digit",
+ hour12: false,
+ });
+}
+
+function shortId(value: string | null | undefined, max = 12): string {
+ if (!value) return "—";
+ return value.length > max ? `${value.slice(0, max)}…` : value;
+}
+
+function untilMs(value: number | string | null | undefined): number {
+ if (typeof value === "number") return value - Date.now();
+ if (typeof value === "string") {
+ const ts = new Date(value).getTime();
+ if (Number.isFinite(ts)) return ts - Date.now();
+ }
+ return 0;
+}
+
+function pushFeed(prev: FeedEvent[], events: FeedEvent[]): FeedEvent[] {
+ if (events.length === 0) return prev;
+ const merged = [...events, ...prev];
+ return merged.slice(0, FEED_MAX_EVENTS);
+}
+
+// Compute new feed events by diffing previous vs next snapshot.
+// Conservative: only emit transitions (added/cleared/state-change), never
+// emit for items that simply persist between polls.
+function diffSnapshots(
+ prev: { health: HealthPayload | null; conns: Connection[] },
+ next: { health: HealthPayload | null; conns: Connection[] },
+ nowTs: number
+): FeedEvent[] {
+ const out: FeedEvent[] = [];
+
+ // Circuit breakers
+ const prevBreakers = new Map((prev.health?.providerBreakers ?? []).map((b) => [b.provider, b]));
+ const nextBreakers = new Map((next.health?.providerBreakers ?? []).map((b) => [b.provider, b]));
+ for (const [provider, nextB] of nextBreakers) {
+ const prevB = prevBreakers.get(provider);
+ if (!prevB) continue;
+ if (prevB.state === nextB.state) continue;
+ if (nextB.state === "OPEN") {
+ out.push({
+ id: `cb-open-${provider}-${nowTs}`,
+ ts: nowTs,
+ kind: "circuit-opened",
+ title: `${provider} circuit OPEN`,
+ detail: `threshold hit · retry in ${fmtMs(nextB.retryAfterMs)}`,
+ });
+ } else if (nextB.state === "HALF_OPEN") {
+ out.push({
+ id: `cb-half-${provider}-${nowTs}`,
+ ts: nowTs,
+ kind: "circuit-recovered",
+ title: `${provider} HALF_OPEN`,
+ detail: `probing recovery`,
+ });
+ } else if (nextB.state === "CLOSED" && prevB.state !== "CLOSED") {
+ out.push({
+ id: `cb-close-${provider}-${nowTs}`,
+ ts: nowTs,
+ kind: "circuit-closed",
+ title: `${provider} circuit CLOSED`,
+ detail: `recovered to healthy`,
+ });
+ }
+ }
+
+ // Cooldowns (per-connection rateLimitedUntil)
+ const prevCooldowns = new Map(
+ prev.conns
+ .filter((c) => c.rateLimitedUntil && untilMs(c.rateLimitedUntil) > 0)
+ .map((c) => [c.id, c])
+ );
+ const nextCooldowns = new Map(
+ next.conns
+ .filter((c) => c.rateLimitedUntil && untilMs(c.rateLimitedUntil) > 0)
+ .map((c) => [c.id, c])
+ );
+ for (const [id, conn] of nextCooldowns) {
+ if (!prevCooldowns.has(id)) {
+ const label = conn.name || conn.email || conn.displayName || shortId(id);
+ out.push({
+ id: `cd-add-${id}-${nowTs}`,
+ ts: nowTs,
+ kind: "cooldown-added",
+ title: `${conn.provider}/${label} cooling`,
+ detail: `${fmtMs(untilMs(conn.rateLimitedUntil))} · ${conn.lastError || "unavailable"}`,
+ });
+ }
+ }
+ for (const [id, conn] of prevCooldowns) {
+ if (!nextCooldowns.has(id)) {
+ const label = conn.name || conn.email || conn.displayName || shortId(id);
+ out.push({
+ id: `cd-clr-${id}-${nowTs}`,
+ ts: nowTs,
+ kind: "cooldown-cleared",
+ title: `${conn.provider}/${label} resumed`,
+ detail: `cooldown cleared`,
+ });
+ }
+ }
+
+ // Lockouts
+ const prevLockKeys = new Set(Object.keys(prev.health?.lockouts ?? {}));
+ const nextLockKeys = new Set(Object.keys(next.health?.lockouts ?? {}));
+ for (const key of nextLockKeys) {
+ if (!prevLockKeys.has(key)) {
+ const entry = next.health?.lockouts?.[key];
+ out.push({
+ id: `lk-add-${key}-${nowTs}`,
+ ts: nowTs,
+ kind: "lockout-added",
+ title: `${key} locked`,
+ detail: entry?.reason ? `reason: ${entry.reason}` : "rate-limit lockout",
+ });
+ }
+ }
+ for (const key of prevLockKeys) {
+ if (!nextLockKeys.has(key)) {
+ out.push({
+ id: `lk-clr-${key}-${nowTs}`,
+ ts: nowTs,
+ kind: "lockout-cleared",
+ title: `${key} unlocked`,
+ detail: `lockout expired`,
+ });
+ }
+ }
+
+ // Sessions (additions only — sessions are short-lived, deletions are noise)
+ const prevSessions = new Set((prev.health?.sessions?.top ?? []).map((s) => s.sessionId));
+ for (const s of next.health?.sessions?.top ?? []) {
+ if (prevSessions.has(s.sessionId)) continue;
+ out.push({
+ id: `ss-new-${s.sessionId}-${nowTs}`,
+ ts: nowTs,
+ kind: "session-new",
+ title: `new session ${shortId(s.sessionId, 8)}`,
+ detail: s.connectionId ? `bound to ${shortId(s.connectionId, 10)}` : "no binding yet",
+ });
+ }
+
+ // Quota monitors (alerting / exhausted transitions)
+ const prevQuota = new Map(
+ (prev.health?.quotaMonitor?.monitors ?? []).map((m) => [
+ `${m.accountId ?? ""}:${m.provider ?? ""}:${m.window ?? ""}`,
+ m,
+ ])
+ );
+ for (const m of next.health?.quotaMonitor?.monitors ?? []) {
+ const key = `${m.accountId ?? ""}:${m.provider ?? ""}:${m.window ?? ""}`;
+ const prevM = prevQuota.get(key);
+ const prevStatus = prevM?.status;
+ if (m.status === prevStatus) continue;
+ if (m.status === "exhausted") {
+ out.push({
+ id: `qe-${key}-${nowTs}`,
+ ts: nowTs,
+ kind: "quota-exhausted",
+ title: `${m.accountId ?? "?"} EXHAUSTED`,
+ detail: `${m.window ?? ""}${m.provider ? ` · ${m.provider}` : ""}`,
+ });
+ } else if (m.status === "alerting") {
+ out.push({
+ id: `qa-${key}-${nowTs}`,
+ ts: nowTs,
+ kind: "quota-alert",
+ title: `${m.accountId ?? "?"} ALERTING`,
+ detail: `${m.window ?? ""}${
+ typeof m.remainingPercent === "number" ? ` · ${Math.round(m.remainingPercent)}% left` : ""
+ }`,
+ });
+ } else if (prevStatus === "exhausted" || prevStatus === "alerting") {
+ out.push({
+ id: `qr-${key}-${nowTs}`,
+ ts: nowTs,
+ kind: "quota-recovered",
+ title: `${m.accountId ?? "?"} recovered`,
+ detail: `${m.window ?? ""} back to OK`,
+ });
+ }
+ }
+
+ return out;
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Component
+// ─────────────────────────────────────────────────────────────────────────────
+
+export default function RuntimePageClient() {
+ const [health, setHealth] = useState<HealthPayload | null>(null);
+ const [connections, setConnections] = useState<Connection[]>([]);
+ const [loading, setLoading] = useState(true);
+ const [paused, setPaused] = useState(false);
+ const [lastUpdated, setLastUpdated] = useState<number | null>(null);
+ const [feed, setFeed] = useState<FeedEvent[]>([]);
+ const [feedFilter, setFeedFilter] = useState<FeedFilter>("all");
+ const prevSnapshotRef = useRef<{ health: HealthPayload | null; conns: Connection[] }>({
+ health: null,
+ conns: [],
+ });
+ const initialLoadRef = useRef(true);
+
+ const fetchAll = useCallback(async () => {
+ try {
+ const [healthRes, connsRes] = await Promise.all([
+ fetch("/api/monitoring/health"),
+ fetch("/api/providers/client"),
+ ]);
+ const healthData: HealthPayload | null = healthRes.ok ? await healthRes.json() : null;
+ const connsData = connsRes.ok ? await connsRes.json() : null;
+ const conns: Connection[] = Array.isArray(connsData?.connections)
+ ? connsData.connections
+ : [];
+
+ const nowTs = Date.now();
+ const prev = prevSnapshotRef.current;
+ // Skip diff on first load — everything is "new" but we don't want a
+ // burst of fake events on mount.
+ if (!initialLoadRef.current) {
+ const events = diffSnapshots(prev, { health: healthData, conns }, nowTs);
+ if (events.length > 0) setFeed((cur) => pushFeed(cur, events));
+ }
+ initialLoadRef.current = false;
+ prevSnapshotRef.current = { health: healthData, conns };
+
+ setHealth(healthData);
+ setConnections(conns);
+ setLastUpdated(nowTs);
+ } catch (err) {
+ console.error("[Runtime] fetch failed", err);
+ } finally {
+ setLoading(false);
+ }
+ }, []);
+
+ useEffect(() => {
+ fetchAll();
+ if (paused) return;
+ const id = setInterval(fetchAll, REFRESH_INTERVAL_MS);
+ return () => clearInterval(id);
+ }, [fetchAll, paused]);
+
+ // ── Derived data ────────────────────────────────────────────────────────────
+
+ const cooldowns = useMemo(() => {
+ return connections.filter((c) => c.rateLimitedUntil && untilMs(c.rateLimitedUntil) > 0);
+ }, [connections]);
+
+ const breakers = health?.providerBreakers ?? [];
+ const lockoutEntries = useMemo<Array<[string, LockoutEntry]>>(
+ () => Object.entries(health?.lockouts ?? {}),
+ [health]
+ );
+
+ const counts = useMemo(() => {
+ const openCircuits = breakers.filter((b) => b.state === "OPEN").length;
+ const halfCircuits = breakers.filter((b) => b.state === "HALF_OPEN").length;
+ const totalBreakers = breakers.length;
+ const sessions = health?.sessions?.activeCount ?? 0;
+ const lockouts = lockoutEntries.length;
+ const quota = health?.quotaMonitor;
+ const quotaAlertingTotal =
+ (quota?.alerting ?? 0) + (quota?.exhausted ?? 0) + (quota?.errors ?? 0);
+ return {
+ sessions,
+ stickyBound: health?.sessions?.stickyBoundCount ?? 0,
+ openCircuits,
+ halfCircuits,
+ totalBreakers,
+ cooldowns: cooldowns.length,
+ lockouts,
+ quotaAlerting: quotaAlertingTotal,
+ quotaExhausted: quota?.exhausted ?? 0,
+ };
+ }, [breakers, cooldowns, health, lockoutEntries]);
+
+ const filteredFeed = useMemo(() => {
+ if (feedFilter === "all") return feed;
+ return feed.filter((ev) => FEED_KIND_META[ev.kind].group === feedFilter);
+ }, [feed, feedFilter]);
+
+ const overallHealthy = counts.totalBreakers - counts.openCircuits - counts.halfCircuits;
+ const overallPercent =
+ counts.totalBreakers > 0 ? Math.round((overallHealthy / counts.totalBreakers) * 100) : 100;
+
+ // ── Render ──────────────────────────────────────────────────────────────────
+
+ return (
+ <div className="flex flex-col gap-4">
+ {/* Header */}
+ <div className="flex items-start justify-between flex-wrap gap-3">
+ <div>
+ <h1 className="text-xl font-bold text-text-main flex items-center gap-2">
+ <span className="material-symbols-outlined text-[24px] text-primary">bolt</span>
+ Runtime
+ </h1>
+ <p className="text-sm text-text-muted mt-0.5">
+ Realtime observability · 3-layer resilience + sessions + quota alerts
+ </p>
+ </div>
+ <div className="flex items-center gap-2">
+ <span className="text-[11px] text-text-muted tabular-nums">
+ {lastUpdated ? `↻ ${fmtClock(lastUpdated)}` : "—"}
+ </span>
+ <button
+ type="button"
+ onClick={() => setPaused((p) => !p)}
+ className="flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-bg-subtle border border-border text-text-main text-[12px] cursor-pointer hover:bg-black/[0.04] dark:hover:bg-white/[0.04]"
+ >
+ <span className="material-symbols-outlined text-[16px]">
+ {paused ? "play_arrow" : "pause"}
+ </span>
+ {paused ? "Resume" : "Pause"}
+ </button>
+ <button
+ type="button"
+ onClick={() => fetchAll()}
+ disabled={loading}
+ className="flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-bg-subtle border border-border text-text-main text-[12px] cursor-pointer hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:opacity-50"
+ title="Refresh now"
+ >
+ <span
+ className={`material-symbols-outlined text-[16px] ${loading ? "animate-spin" : ""}`}
+ >
+ refresh
+ </span>
+ </button>
+ </div>
+ </div>
+
+ {/* Row 1 — KPIs */}
+ <div className="grid grid-cols-2 lg:grid-cols-4 gap-3">
+ <KpiCard
+ icon="fingerprint"
+ label="Sessions"
+ value={counts.sessions}
+ hint={`${counts.stickyBound} sticky-bound`}
+ tone="#06b6d4"
+ onClick={() => setFeedFilter("sessions")}
+ active={feedFilter === "sessions"}
+ />
+ <KpiCard
+ icon="bolt"
+ label="Circuits"
+ value={`${counts.openCircuits} / ${counts.totalBreakers}`}
+ hint={
+ counts.halfCircuits > 0
+ ? `${counts.halfCircuits} recovering`
+ : counts.openCircuits === 0
+ ? "all healthy"
+ : "open"
+ }
+ tone={
+ counts.openCircuits > 0 ? "#ef4444" : counts.halfCircuits > 0 ? "#eab308" : "#22c55e"
+ }
+ onClick={() => setFeedFilter("circuits")}
+ active={feedFilter === "circuits"}
+ />
+ <KpiCard
+ icon="ac_unit"
+ label="Cooldowns"
+ value={counts.cooldowns}
+ hint="connections cooling"
+ tone={counts.cooldowns > 0 ? "#3b82f6" : "#22c55e"}
+ onClick={() => setFeedFilter("cooldowns")}
+ active={feedFilter === "cooldowns"}
+ />
+ <KpiCard
+ icon="lock"
+ label="Lockouts"
+ value={counts.lockouts}
+ hint="models blocked"
+ tone={counts.lockouts > 0 ? "#f97316" : "#22c55e"}
+ onClick={() => setFeedFilter("lockouts")}
+ active={feedFilter === "lockouts"}
+ />
+ </div>
+
+ {/* Row 2 — Resilience layers (left, 2/3) + Live Feed (right, 1/3) */}
+ <div className="grid grid-cols-1 xl:grid-cols-[2fr_1fr] gap-3">
+ <Card padding="md">
+ <SectionHeader
+ icon="shield"
+ title="3-Layer Resilience"
+ subtitle="Mirrors the documented resilience model (CLAUDE.md)"
+ trailing={
+ <div className="flex items-center gap-3 text-[11px]">
+ <span className="text-green-500">✓ {overallHealthy}</span>
+ <span className="text-amber-500">⚠ {counts.halfCircuits}</span>
+ <span className="text-red-500">⛔ {counts.openCircuits}</span>
+ </div>
+ }
+ />
+
+ <div className="mb-4 mt-2">
+ <div className="h-2 rounded-sm bg-black/[0.06] dark:bg-white/[0.06] overflow-hidden">
+ <div
+ className="h-full rounded-sm bg-gradient-to-r from-green-500 via-amber-500 to-red-500/40"
+ style={{ width: `${overallPercent}%` }}
+ />
+ </div>
+ <div className="mt-1 text-[11px] text-text-muted tabular-nums">
+ {overallPercent}% providers healthy
+ </div>
+ </div>
+
+ {/* Layer 1 */}
+ <LayerSection
+ id={1}
+ title="Provider Circuit Breakers"
+ description="Stop traffic to providers failing at the upstream level"
+ badge={`${counts.openCircuits + counts.halfCircuits} of ${counts.totalBreakers} affected`}
+ badgeTone={
+ counts.openCircuits > 0 ? "red" : counts.halfCircuits > 0 ? "amber" : "green"
+ }
+ >
+ {breakers.length === 0 ? (
+ <EmptyHint text="No circuit breakers active yet" />
+ ) : (
+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2">
+ {breakers.map((b) => {
+ const tone = BREAKER_TONE[b.state];
+ return (
+ <div
+ key={b.provider}
+ className="rounded-md border px-2.5 py-2 flex flex-col gap-0.5"
+ style={{ borderColor: tone.ring, background: tone.bg }}
+ title={`${b.provider} · ${b.state} · failures ${b.failureCount}`}
+ >
+ <div className="flex items-center gap-1.5 text-[11px] font-semibold text-text-main">
+ <ProviderIcon providerId={b.provider} size={14} />
+ <span className="truncate flex-1">{b.provider}</span>
+ <span style={{ color: tone.dot }} className="text-[10px] font-bold">
+ {tone.label}
+ </span>
+ </div>
+ <div className="text-[10px] text-text-muted tabular-nums">
+ {b.state === "OPEN"
+ ? `retry ${fmtMs(b.retryAfterMs)}`
+ : `${b.failureCount} failures`}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ )}
+ </LayerSection>
+
+ {/* Layer 2 */}
+ <LayerSection
+ id={2}
+ title="Connection Cooldowns"
+ description="Skip one bad account/key; other connections keep serving"
+ badge={`${counts.cooldowns} cooling`}
+ badgeTone={counts.cooldowns > 0 ? "blue" : "green"}
+ >
+ {cooldowns.length === 0 ? (
+ <EmptyHint text="No connection cooldowns active" />
+ ) : (
+ <div className="flex flex-col divide-y divide-border/60">
+ {cooldowns.slice(0, 8).map((c) => {
+ const remaining = untilMs(c.rateLimitedUntil);
+ const label = c.name || c.email || c.displayName || shortId(c.id);
+ return (
+ <div
+ key={c.id}
+ className="py-2 grid items-center gap-2"
+ style={{
+ gridTemplateColumns: "minmax(0,1.5fr) 70px minmax(0,1fr) 60px 60px",
+ }}
+ >
+ <div className="flex items-center gap-2 min-w-0">
+ <ProviderIcon providerId={c.provider} size={18} />
+ <div className="min-w-0">
+ <div className="text-[12px] text-text-main truncate font-medium">
+ {c.provider}/{label}
+ </div>
+ {c.lastErrorType && (
+ <div className="text-[10px] text-text-muted truncate">
+ {c.lastErrorType}
+ </div>
+ )}
+ </div>
+ </div>
+ <div className="text-[11px] tabular-nums text-blue-400">
+ {fmtMs(remaining)}
+ </div>
+ <div className="text-[10px] text-text-muted truncate">
+ {c.lastError || "—"}
+ </div>
+ <div className="text-[10px] text-text-muted tabular-nums">
+ L{c.backoffLevel ?? 0}
+ </div>
+ <div className="text-[10px] text-text-muted tabular-nums text-right">
+ {c.errorCode ?? ""}
+ </div>
+ </div>
+ );
+ })}
+ {cooldowns.length > 8 && (
+ <div className="pt-2 text-[10px] text-text-muted">
+ +{cooldowns.length - 8} more cooldowns
+ </div>
+ )}
+ </div>
+ )}
+ </LayerSection>
+
+ {/* Layer 3 */}
+ <LayerSection
+ id={3}
+ title="Model Lockouts"
+ description="Per-model rate-limit locks; same connection still serves other models"
+ badge={`${lockoutEntries.length} locked`}
+ badgeTone={lockoutEntries.length > 0 ? "orange" : "green"}
+ >
+ {lockoutEntries.length === 0 ? (
+ <EmptyHint text="No model lockouts" />
+ ) : (
+ <div className="flex flex-col divide-y divide-border/60">
+ {lockoutEntries.slice(0, 8).map(([key, lk]) => {
+ const remaining =
+ typeof lk.remainingMs === "number" ? lk.remainingMs : untilMs(lk.until);
+ return (
+ <div
+ key={key}
+ className="py-2 grid items-center gap-2"
+ style={{ gridTemplateColumns: "minmax(0,1.5fr) minmax(0,1fr) 70px" }}
+ >
+ <div className="flex items-center gap-2 min-w-0">
+ <span className="material-symbols-outlined text-[14px] text-orange-400 shrink-0">
+ lock
+ </span>
+ <span className="text-[12px] text-text-main truncate font-medium">
+ {key}
+ </span>
+ </div>
+ <div className="text-[10px] text-text-muted truncate">
+ {lk.reason || "rate limit"}
+ </div>
+ <div className="text-[11px] tabular-nums text-orange-400 text-right">
+ {remaining > 0 ? fmtMs(remaining) : "—"}
+ </div>
+ </div>
+ );
+ })}
+ {lockoutEntries.length > 8 && (
+ <div className="pt-2 text-[10px] text-text-muted">
+ +{lockoutEntries.length - 8} more lockouts
+ </div>
+ )}
+ </div>
+ )}
+ </LayerSection>
+ </Card>
+
+ {/* Live Feed */}
+ <Card padding="md">
+ <SectionHeader
+ icon="rss_feed"
+ title="Live Feed"
+ subtitle={`Last ${filteredFeed.length} events`}
+ trailing={
+ <div className="flex items-center gap-1.5">
+ <select
+ value={feedFilter}
+ onChange={(e) => setFeedFilter(e.target.value as FeedFilter)}
+ className="text-[10px] bg-bg-subtle border border-border rounded px-1.5 py-1 cursor-pointer text-text-main"
+ >
+ <option value="all">All</option>
+ <option value="circuits">Circuits</option>
+ <option value="cooldowns">Cooldowns</option>
+ <option value="lockouts">Lockouts</option>
+ <option value="sessions">Sessions</option>
+ <option value="quotas">Quotas</option>
+ </select>
+ <button
+ type="button"
+ onClick={() => setFeed([])}
+ className="text-[10px] px-1.5 py-1 rounded border border-border text-text-muted hover:text-text-main hover:bg-black/[0.04] dark:hover:bg-white/[0.04] cursor-pointer"
+ title="Clear feed"
+ >
+ Clear
+ </button>
+ </div>
+ }
+ />
+
+ <div className="mt-2 flex flex-col gap-1.5 max-h-[640px] overflow-auto pr-1">
+ {filteredFeed.length === 0 ? (
+ <div className="text-center py-12 text-text-muted">
+ <span className="material-symbols-outlined text-[40px] opacity-30 block mb-2">
+ hourglass_empty
+ </span>
+ <p className="text-xs">
+ {feed.length === 0
+ ? "Waiting for events... (polled every 5s)"
+ : "No events match this filter"}
+ </p>
+ </div>
+ ) : (
+ filteredFeed.map((ev) => {
+ const meta = FEED_KIND_META[ev.kind];
+ return (
+ <div
+ key={ev.id}
+ className="flex items-start gap-2 px-2 py-1.5 rounded hover:bg-black/[0.03] dark:hover:bg-white/[0.03]"
+ >
+ <span
+ className="material-symbols-outlined text-[14px] mt-0.5"
+ style={{ color: meta.color }}
+ >
+ {meta.icon}
+ </span>
+ <div className="flex-1 min-w-0">
+ <div className="flex items-center justify-between gap-2">
+ <div className="text-[11px] font-medium text-text-main truncate">
+ {ev.title}
+ </div>
+ <span className="text-[9px] text-text-muted tabular-nums shrink-0">
+ {fmtClock(ev.ts)}
+ </span>
+ </div>
+ <div className="text-[10px] text-text-muted truncate">{ev.detail}</div>
+ </div>
+ </div>
+ );
+ })
+ )}
+ </div>
+ </Card>
+ </div>
+
+ {/* Row 3 — Sessions table + Quota Monitors */}
+ <div className="grid grid-cols-1 xl:grid-cols-[3fr_2fr] gap-3">
+ <Card padding="md">
+ <SectionHeader
+ icon="fingerprint"
+ title="Active Sessions"
+ subtitle="Sticky-bound request fingerprints (live)"
+ trailing={<span className="text-[11px] text-text-muted">{counts.sessions} active</span>}
+ />
+
+ {(health?.sessions?.top ?? []).length === 0 ? (
+ <div className="text-center py-8 text-text-muted">
+ <span className="material-symbols-outlined text-[40px] opacity-30 block mb-2">
+ fingerprint
+ </span>
+ <p className="text-sm">No active sessions</p>
+ <p className="text-xs mt-1">Sessions appear as requests flow through the proxy</p>
+ </div>
+ ) : (
+ <div className="overflow-x-auto mt-2">
+ <table className="w-full text-sm">
+ <thead>
+ <tr className="border-b border-border/40">
+ <th className="text-left py-2 px-2 text-[10px] font-semibold text-text-muted uppercase tracking-wider">
+ Session
+ </th>
+ <th className="text-right py-2 px-2 text-[10px] font-semibold text-text-muted uppercase tracking-wider">
+ Age
+ </th>
+ <th className="text-right py-2 px-2 text-[10px] font-semibold text-text-muted uppercase tracking-wider">
+ Idle
+ </th>
+ <th className="text-right py-2 px-2 text-[10px] font-semibold text-text-muted uppercase tracking-wider">
+ Reqs
+ </th>
+ <th className="text-left py-2 px-2 text-[10px] font-semibold text-text-muted uppercase tracking-wider">
+ Bound to
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ {(health?.sessions?.top ?? []).map((s) => (
+ <tr key={s.sessionId} className="border-b border-border/10 hover:bg-surface/20">
+ <td className="py-2 px-2">
+ <span className="font-mono text-[11px] text-text-muted">
+ {shortId(s.sessionId, 14)}
+ </span>
+ </td>
+ <td className="py-2 px-2 text-right text-[11px] text-text-muted tabular-nums">
+ {fmtMs(s.ageMs)}
+ </td>
+ <td className="py-2 px-2 text-right text-[11px] text-text-muted tabular-nums">
+ {fmtMs(s.idleMs)}
+ </td>
+ <td className="py-2 px-2 text-right">
+ <span className="text-[11px] font-semibold tabular-nums">
+ {s.requestCount}
+ </span>
+ </td>
+ <td className="py-2 px-2">
+ {s.connectionId ? (
+ <span className="font-mono text-[10px] text-cyan-400">
+ {shortId(s.connectionId, 12)}
+ </span>
+ ) : (
+ <span className="text-text-muted/40">—</span>
+ )}
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ {Object.keys(health?.sessions?.byApiKey ?? {}).length > 0 && (
+ <div className="mt-2 pt-2 border-t border-border/40 text-[10px] text-text-muted">
+ Top API keys:{" "}
+ {Object.entries(health?.sessions?.byApiKey ?? {})
+ .sort((a, b) => b[1] - a[1])
+ .slice(0, 3)
+ .map(([k, n]) => `${shortId(k, 8)}(${n})`)
+ .join(" · ")}
+ </div>
+ )}
+ </div>
+ )}
+ </Card>
+
+ <Card padding="md">
+ <SectionHeader
+ icon="radar"
+ title="Quota Monitors"
+ subtitle="Live quota state per account window"
+ trailing={
+ <Link href="/dashboard/quota" className="text-[11px] text-primary hover:underline">
+ Open Quota →
+ </Link>
+ }
+ />
+
+ {(() => {
+ const monitors = health?.quotaMonitor?.monitors ?? [];
+ const exhausted = monitors.filter((m) => m.status === "exhausted");
+ const alerting = monitors.filter((m) => m.status === "alerting");
+ const errors = monitors.filter((m) => m.status === "error");
+ const total = exhausted.length + alerting.length + errors.length;
+ if (total === 0) {
+ return (
+ <div className="text-center py-8 text-text-muted">
+ <span className="material-symbols-outlined text-[40px] opacity-30 block mb-2">
+ radar
+ </span>
+ <p className="text-sm">All quotas healthy</p>
+ </div>
+ );
+ }
+ return (
+ <div className="mt-2 flex flex-col gap-3">
+ {exhausted.length > 0 && (
+ <QuotaGroup tone="red" label="EXHAUSTED" items={exhausted} />
+ )}
+ {alerting.length > 0 && (
+ <QuotaGroup tone="amber" label="ALERTING" items={alerting} />
+ )}
+ {errors.length > 0 && <QuotaGroup tone="orange" label="ERROR" items={errors} />}
+ </div>
+ );
+ })()}
+ </Card>
+ </div>
+ </div>
+ );
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Sub-components
+// ─────────────────────────────────────────────────────────────────────────────
+
+function KpiCard({
+ icon,
+ label,
+ value,
+ hint,
+ tone,
+ onClick,
+ active,
+}: {
+ icon: string;
+ label: string;
+ value: string | number;
+ hint: string;
+ tone: string;
+ onClick: () => void;
+ active: boolean;
+}) {
+ return (
+ <button
+ type="button"
+ onClick={onClick}
+ className="text-left rounded-xl border px-4 py-3 transition-colors cursor-pointer bg-surface"
+ style={{
+ borderColor: active ? tone : "var(--color-border)",
+ boxShadow: active ? `0 0 0 2px ${tone}22` : undefined,
+ }}
+ >
+ <div className="flex items-center justify-between">
+ <span className="text-[11px] uppercase tracking-wider font-semibold text-text-muted">
+ {label}
+ </span>
+ <span className="material-symbols-outlined text-[16px]" style={{ color: tone }}>
+ {icon}
+ </span>
+ </div>
+ <div className="mt-1 text-2xl font-bold tabular-nums" style={{ color: tone }}>
+ {value}
+ </div>
+ <div className="text-[10px] text-text-muted truncate">{hint}</div>
+ </button>
+ );
+}
+
+function SectionHeader({
+ icon,
+ title,
+ subtitle,
+ trailing,
+}: {
+ icon: string;
+ title: string;
+ subtitle?: string;
+ trailing?: React.ReactNode;
+}) {
+ return (
+ <div className="flex items-start justify-between gap-3">
+ <div className="flex items-start gap-2">
+ <span className="material-symbols-outlined text-[20px] text-primary mt-0.5">{icon}</span>
+ <div>
+ <h2 className="text-base font-semibold text-text-main leading-tight">{title}</h2>
+ {subtitle && <p className="text-[11px] text-text-muted mt-0.5">{subtitle}</p>}
+ </div>
+ </div>
+ {trailing && <div className="shrink-0">{trailing}</div>}
+ </div>
+ );
+}
+
+function LayerSection({
+ id,
+ title,
+ description,
+ badge,
+ badgeTone,
+ children,
+}: {
+ id: 1 | 2 | 3;
+ title: string;
+ description: string;
+ badge: string;
+ badgeTone: "red" | "amber" | "green" | "blue" | "orange";
+ children: React.ReactNode;
+}) {
+ const toneMap = {
+ red: { bg: "rgba(239,68,68,0.10)", text: "#ef4444" },
+ amber: { bg: "rgba(234,179,8,0.10)", text: "#eab308" },
+ green: { bg: "rgba(34,197,94,0.10)", text: "#22c55e" },
+ blue: { bg: "rgba(59,130,246,0.10)", text: "#3b82f6" },
+ orange: { bg: "rgba(249,115,22,0.10)", text: "#f97316" },
+ } as const;
+ const tone = toneMap[badgeTone];
+ return (
+ <div className="mt-4 border-t border-border/40 pt-3 first-of-type:border-t-0 first-of-type:pt-0">
+ <div className="flex items-center justify-between gap-2 mb-2">
+ <div className="flex items-center gap-2">
+ <span className="text-[10px] uppercase tracking-wider font-bold text-text-muted">
+ Layer {id}
+ </span>
+ <h3 className="text-[13px] font-semibold text-text-main">{title}</h3>
+ </div>
+ <span
+ className="text-[10px] font-semibold px-2 py-0.5 rounded-full tabular-nums"
+ style={{ background: tone.bg, color: tone.text }}
+ >
+ {badge}
+ </span>
+ </div>
+ <p className="text-[11px] text-text-muted mb-2">{description}</p>
+ {children}
+ </div>
+ );
+}
+
+function EmptyHint({ text }: { text: string }) {
+ return (
+ <div className="text-[11px] text-text-muted italic py-3 text-center bg-bg-subtle/40 rounded-md">
+ {text}
+ </div>
+ );
+}
+
+function QuotaGroup({
+ tone,
+ label,
+ items,
+}: {
+ tone: "red" | "amber" | "orange";
+ label: string;
+ items: QuotaMonitor[];
+}) {
+ const toneMap = {
+ red: { text: "#ef4444", bg: "rgba(239,68,68,0.08)", border: "rgba(239,68,68,0.20)" },
+ amber: { text: "#eab308", bg: "rgba(234,179,8,0.08)", border: "rgba(234,179,8,0.20)" },
+ orange: { text: "#f97316", bg: "rgba(249,115,22,0.08)", border: "rgba(249,115,22,0.20)" },
+ } as const;
+ const t = toneMap[tone];
+ return (
+ <div>
+ <div
+ className="text-[10px] font-bold uppercase tracking-wider mb-1.5"
+ style={{ color: t.text }}
+ >
+ {label}
+ </div>
+ <div className="flex flex-col gap-1">
+ {items.slice(0, 6).map((m, i) => (
+ <div
+ key={`${m.accountId ?? ""}:${m.window ?? ""}:${i}`}
+ className="rounded-md border px-2.5 py-1.5 flex items-center justify-between gap-2"
+ style={{ background: t.bg, borderColor: t.border }}
+ >
+ <div className="min-w-0">
+ <div className="text-[11px] font-medium text-text-main truncate">
+ {m.accountId ?? "—"}
+ {m.provider ? ` / ${m.provider}` : ""}
+ </div>
+ <div className="text-[10px] text-text-muted">{m.window ?? ""}</div>
+ </div>
+ {typeof m.remainingPercent === "number" && (
+ <span className="text-[11px] font-bold tabular-nums" style={{ color: t.text }}>
+ {Math.round(m.remainingPercent)}%
+ </span>
+ )}
+ </div>
+ ))}
+ {items.length > 6 && (
+ <div className="text-[10px] text-text-muted text-center pt-1">
+ +{items.length - 6} more
+ </div>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/src/app/(dashboard)/dashboard/runtime/page.tsx b/src/app/(dashboard)/dashboard/runtime/page.tsx
new file mode 100644
index 0000000000..afc5c7aa89
--- /dev/null
+++ b/src/app/(dashboard)/dashboard/runtime/page.tsx
@@ -0,0 +1,7 @@
+import RuntimePageClient from "./RuntimePageClient";
+
+export const dynamic = "force-dynamic";
+
+export default function RuntimePage() {
+ return <RuntimePageClient />;
+}
diff --git a/src/app/(dashboard)/dashboard/search-tools/components/ResultsPanel.tsx b/src/app/(dashboard)/dashboard/search-tools/components/ResultsPanel.tsx
index a55b31baf9..18d358298f 100644
--- a/src/app/(dashboard)/dashboard/search-tools/components/ResultsPanel.tsx
+++ b/src/app/(dashboard)/dashboard/search-tools/components/ResultsPanel.tsx
@@ -2,10 +2,8 @@
import { useState } from "react";
import { useTranslations } from "next-intl";
-import dynamic from "next/dynamic";
import { Badge } from "@/shared/components";
-
-const Editor = dynamic(() => import("@monaco-editor/react"), { ssr: false });
+import Editor from "@/shared/components/MonacoEditor";
interface SearchResult {
title: string;
diff --git a/src/app/(dashboard)/dashboard/settings/components/PricingTab.tsx b/src/app/(dashboard)/dashboard/settings/components/PricingTab.tsx
index 2122b64995..c4c90d9979 100644
--- a/src/app/(dashboard)/dashboard/settings/components/PricingTab.tsx
+++ b/src/app/(dashboard)/dashboard/settings/components/PricingTab.tsx
@@ -2,8 +2,17 @@
import { useState, useEffect, useCallback, useMemo } from "react";
import { Card, Button } from "@/shared/components";
+import ProviderIcon from "@/shared/components/ProviderIcon";
+import InfoTooltip from "@/shared/components/InfoTooltip";
import { useTranslations } from "next-intl";
+type CoverageFilter = "all" | "lt50" | "gte50lt100" | "full";
+type AuthFilter = "all" | "oauth" | "apikey" | "unknown";
+type SortKey = "modelsDesc" | "coverageDesc" | "coverageAsc" | "nameAsc";
+
+const INITIAL_VISIBLE = 20;
+const VISIBLE_INCREMENT = 30;
+
const PRICING_FIELDS = ["input", "output", "cached", "reasoning", "cache_creation"] as const;
const FIELD_LABEL_KEYS: Record<(typeof PRICING_FIELDS)[number], string> = {
input: "input",
@@ -68,6 +77,10 @@ export default function PricingTab() {
const [selectedProvider, setSelectedProvider] = useState<string | null>(null);
const [expandedProviders, setExpandedProviders] = useState<Set<string>>(new Set());
const [searchQuery, setSearchQuery] = useState("");
+ const [coverageFilter, setCoverageFilter] = useState<CoverageFilter>("all");
+ const [authFilter, setAuthFilter] = useState<AuthFilter>("all");
+ const [sortKey, setSortKey] = useState<SortKey>("modelsDesc");
+ const [visibleCount, setVisibleCount] = useState(INITIAL_VISIBLE);
const [editedProviders, setEditedProviders] = useState<Set<string>>(new Set());
const [statusMessage, setStatusMessage] = useState<{
tone: "success" | "error" | "info";
@@ -128,19 +141,78 @@ export default function PricingTab() {
}, [catalog, pricingData]);
const filteredProviders = useMemo(() => {
- if (!searchQuery.trim()) return allProviders;
-
- const query = searchQuery.toLowerCase();
- return allProviders.filter(
- (provider) =>
+ const query = searchQuery.trim().toLowerCase();
+ const matchesSearch = (provider: (typeof allProviders)[number]) => {
+ if (!query) return true;
+ return (
provider.alias.toLowerCase().includes(query) ||
provider.id.toLowerCase().includes(query) ||
provider.models.some(
(model) =>
model.id.toLowerCase().includes(query) || model.name.toLowerCase().includes(query)
)
+ );
+ };
+ const coveragePct = (p: (typeof allProviders)[number]) =>
+ p.modelCount > 0 ? (p.pricedModels / p.modelCount) * 100 : 0;
+ const matchesCoverage = (p: (typeof allProviders)[number]) => {
+ if (coverageFilter === "all") return true;
+ const pct = coveragePct(p);
+ if (coverageFilter === "lt50") return pct < 50;
+ if (coverageFilter === "gte50lt100") return pct >= 50 && pct < 100;
+ return pct >= 100;
+ };
+ const matchesAuth = (p: (typeof allProviders)[number]) => {
+ if (authFilter === "all") return true;
+ const auth = (p.authType || "unknown").toLowerCase();
+ return (
+ auth === authFilter || (authFilter === "unknown" && !["oauth", "apikey"].includes(auth))
+ );
+ };
+
+ const filtered = allProviders.filter(
+ (p) => matchesSearch(p) && matchesCoverage(p) && matchesAuth(p)
);
- }, [allProviders, searchQuery]);
+
+ // Sort
+ const sorted = [...filtered];
+ switch (sortKey) {
+ case "modelsDesc":
+ sorted.sort((a, b) => b.modelCount - a.modelCount);
+ break;
+ case "coverageDesc":
+ sorted.sort((a, b) => coveragePct(b) - coveragePct(a));
+ break;
+ case "coverageAsc":
+ sorted.sort((a, b) => coveragePct(a) - coveragePct(b));
+ break;
+ case "nameAsc":
+ sorted.sort((a, b) => a.alias.localeCompare(b.alias));
+ break;
+ }
+ return sorted;
+ }, [allProviders, searchQuery, coverageFilter, authFilter, sortKey]);
+
+ const authCounts = useMemo(() => {
+ const counts = { oauth: 0, apikey: 0, unknown: 0 };
+ for (const p of allProviders) {
+ const auth = (p.authType || "unknown").toLowerCase();
+ if (auth === "oauth") counts.oauth += 1;
+ else if (auth === "apikey") counts.apikey += 1;
+ else counts.unknown += 1;
+ }
+ return counts;
+ }, [allProviders]);
+
+ const coverageGapCount = useMemo(
+ () => allProviders.filter((p) => p.modelCount > 0 && p.pricedModels / p.modelCount < 1).length,
+ [allProviders]
+ );
+
+ // Reset visible count when filters change
+ useEffect(() => {
+ setVisibleCount(INITIAL_VISIBLE);
+ }, [searchQuery, coverageFilter, authFilter, sortKey]);
const stats = useMemo(() => {
const totalModels = allProviders.reduce((sum, provider) => sum + provider.modelCount, 0);
@@ -161,9 +233,15 @@ export default function PricingTab() {
}, [allProviders, pricingData, pricingSources]);
const displayProviders = useMemo(() => {
- if (!selectedProvider) return filteredProviders;
- return filteredProviders.filter((provider) => provider.alias === selectedProvider);
- }, [filteredProviders, selectedProvider]);
+ const base = selectedProvider
+ ? filteredProviders.filter((provider) => provider.alias === selectedProvider)
+ : filteredProviders;
+ return base.slice(0, visibleCount);
+ }, [filteredProviders, selectedProvider, visibleCount]);
+
+ const totalFiltered = selectedProvider
+ ? filteredProviders.filter((provider) => provider.alias === selectedProvider).length
+ : filteredProviders.length;
const formatSyncDate = useCallback(
(value: string | null) => {
@@ -372,54 +450,115 @@ export default function PricingTab() {
);
}
+ const coveragePct =
+ stats.totalModels > 0 ? Math.round((stats.pricedCount / stats.totalModels) * 100) : 0;
+
return (
<div className="flex flex-col gap-4">
- <div className="flex items-start justify-between flex-wrap gap-4">
- <div>
- <h2 className="text-xl font-bold">{t("modelPricing")}</h2>
- <p className="text-text-muted text-sm mt-1">{t("modelPricingDesc")}</p>
- </div>
- <div className="flex gap-3 text-sm">
- <StatPill label={t("providers")} value={stats.providers} />
- <StatPill label={t("registry")} value={stats.totalModels} />
- <StatPill label={t("priced")} value={stats.pricedCount} accent="text-success" />
- <StatPill
- label={t("pricingSourceUser")}
- value={stats.overriddenCount}
- accent="text-amber-400"
- />
- </div>
- </div>
-
+ {/* Hero — combined header (stats + sync + how-it-works tooltip) */}
<Card className="p-5">
- <div className="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
- <div>
- <h3 className="text-sm font-semibold uppercase tracking-wide text-text-muted">
- {t("pricingSyncTitle")}
- </h3>
- <p className="text-sm text-text-muted mt-1">{t("pricingSyncDescription")}</p>
- </div>
+ <div className="flex items-start justify-between gap-3 mb-4">
<div className="flex items-center gap-2">
- <Button variant="secondary" onClick={() => void clearSyncedPricing()} loading={syncing}>
- {t("clearSyncedPricing")}
- </Button>
- <Button variant="primary" onClick={() => void triggerSync()} loading={syncing}>
- {syncing ? t("syncing") : t("syncNow")}
- </Button>
+ <h2 className="text-xl font-bold flex items-center gap-2">
+ <span className="material-symbols-outlined text-[22px] text-primary">payments</span>
+ {t("modelPricing")}
+ </h2>
+ <InfoTooltip
+ text={`${t("pricingDescInput")} · ${t("pricingDescOutput")} · ${t("pricingDescCached")} · ${t("pricingDescReasoning")} · ${t("pricingDescCacheWrite")} · ${t("pricingDescFormula")}`}
+ />
</div>
+ <p className="text-text-muted text-xs hidden sm:block self-center">
+ {t("modelPricingDesc")}
+ </p>
</div>
- <div className="grid grid-cols-2 xl:grid-cols-4 gap-3 mt-4">
- <SyncMetric
- label={t("pricingSyncStatus")}
- value={syncStatus?.enabled ? t("syncEnabled") : t("syncDisabled")}
- />
- <SyncMetric label={t("lastSync")} value={formatSyncDate(syncStatus?.lastSync || null)} />
- <SyncMetric
- label={t("syncedModels")}
- value={String(syncStatus?.lastSyncModelCount || 0)}
- />
- <SyncMetric label={t("nextSync")} value={formatSyncDate(syncStatus?.nextSync || null)} />
+ <div className="grid grid-cols-1 lg:grid-cols-[1.2fr_1fr] gap-4">
+ {/* Stats panel with coverage bar */}
+ <div className="rounded-lg border border-border/40 bg-bg-subtle/30 p-4">
+ <div className="grid grid-cols-4 gap-3 mb-3">
+ <HeroStat label={t("providers")} value={stats.providers} />
+ <HeroStat label={t("registry")} value={stats.totalModels} />
+ <HeroStat label={t("priced")} value={stats.pricedCount} accent="text-emerald-400" />
+ <HeroStat
+ label={t("pricingSourceUser")}
+ value={stats.overriddenCount}
+ accent="text-amber-400"
+ />
+ </div>
+ <div>
+ <div className="flex items-center justify-between text-[11px] text-text-muted mb-1">
+ <span className="uppercase tracking-wide font-semibold">
+ {t("priced")} / {t("registry")}
+ </span>
+ <span className="tabular-nums font-semibold">{coveragePct}%</span>
+ </div>
+ <div className="h-2 rounded-sm bg-black/[0.08] dark:bg-white/[0.06] overflow-hidden">
+ <div
+ className={`h-full transition-[width] duration-300 ${
+ coveragePct >= 90
+ ? "bg-emerald-500"
+ : coveragePct >= 60
+ ? "bg-amber-500"
+ : "bg-red-500"
+ }`}
+ style={{ width: `${Math.min(coveragePct, 100)}%` }}
+ />
+ </div>
+ </div>
+ </div>
+
+ {/* Sync panel */}
+ <div className="rounded-lg border border-border/40 bg-bg-subtle/30 p-4 flex flex-col gap-3">
+ <div className="flex items-start justify-between gap-2">
+ <div>
+ <h3 className="text-xs font-bold uppercase tracking-wide text-text-muted">
+ {t("pricingSyncTitle")}
+ </h3>
+ <div className="flex items-center gap-1.5 mt-1">
+ <span
+ className={`w-1.5 h-1.5 rounded-full ${
+ syncStatus?.enabled ? "bg-emerald-500 animate-pulse" : "bg-text-muted"
+ }`}
+ />
+ <span className="text-xs text-text-main font-medium">
+ {syncStatus?.enabled ? t("syncEnabled") : t("syncDisabled")}
+ </span>
+ </div>
+ </div>
+ <div className="flex items-center gap-2">
+ <Button
+ variant="secondary"
+ size="sm"
+ onClick={() => void clearSyncedPricing()}
+ loading={syncing}
+ >
+ {t("clearSyncedPricing")}
+ </Button>
+ <Button
+ variant="primary"
+ size="sm"
+ onClick={() => void triggerSync()}
+ loading={syncing}
+ >
+ {syncing ? t("syncing") : t("syncNow")}
+ </Button>
+ </div>
+ </div>
+ <div className="grid grid-cols-3 gap-2 text-[11px]">
+ <SyncMini
+ label={t("lastSync")}
+ value={formatSyncDate(syncStatus?.lastSync || null)}
+ />
+ <SyncMini
+ label={t("syncedModels")}
+ value={String(syncStatus?.lastSyncModelCount || 0)}
+ />
+ <SyncMini
+ label={t("nextSync")}
+ value={formatSyncDate(syncStatus?.nextSync || null)}
+ />
+ </div>
+ </div>
</div>
</Card>
@@ -437,49 +576,101 @@ export default function PricingTab() {
</div>
)}
- <div className="flex gap-3 items-center flex-wrap">
- <div className="relative flex-1 min-w-[200px]">
- <span className="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-text-muted text-lg">
- search
- </span>
- <input
- type="text"
- placeholder={t("searchProvidersModels")}
- value={searchQuery}
- onChange={(event) => setSearchQuery(event.target.value)}
- className="w-full pl-10 pr-3 py-2 bg-bg-base border border-border rounded-lg focus:outline-none focus:border-primary text-sm"
+ {/* Search + Filters */}
+ <div className="flex flex-col gap-2">
+ <div className="flex gap-2 items-center flex-wrap">
+ <div className="relative flex-1 min-w-[260px]">
+ <span className="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-text-muted text-lg">
+ search
+ </span>
+ <input
+ type="text"
+ placeholder={t("searchProvidersModels")}
+ value={searchQuery}
+ onChange={(event) => setSearchQuery(event.target.value)}
+ className="w-full pl-10 pr-3 py-2 bg-bg-base border border-border rounded-lg focus:outline-none focus:border-primary text-sm"
+ />
+ </div>
+
+ <FilterSelect
+ label="Coverage"
+ value={coverageFilter}
+ onChange={(v) => setCoverageFilter(v as CoverageFilter)}
+ options={[
+ { value: "all", label: `All (${allProviders.length})` },
+ { value: "lt50", label: "<50%" },
+ { value: "gte50lt100", label: "50–99%" },
+ { value: "full", label: "100%" },
+ ]}
+ />
+
+ <FilterSelect
+ label="Auth"
+ value={authFilter}
+ onChange={(v) => setAuthFilter(v as AuthFilter)}
+ options={[
+ { value: "all", label: "All" },
+ { value: "oauth", label: `OAuth (${authCounts.oauth})` },
+ { value: "apikey", label: `API Key (${authCounts.apikey})` },
+ { value: "unknown", label: `Unknown (${authCounts.unknown})` },
+ ]}
+ />
+
+ <FilterSelect
+ label="Sort"
+ value={sortKey}
+ onChange={(v) => setSortKey(v as SortKey)}
+ options={[
+ { value: "modelsDesc", label: "Most models" },
+ { value: "coverageDesc", label: "Highest coverage" },
+ { value: "coverageAsc", label: "Lowest coverage" },
+ { value: "nameAsc", label: "Name (A–Z)" },
+ ]}
/>
</div>
- {selectedProvider && (
- <button
- onClick={() => setSelectedProvider(null)}
- className="px-3 py-2 text-xs bg-primary/10 text-primary border border-primary/20 rounded-lg hover:bg-primary/20 transition-colors flex items-center gap-1"
- >
- <span className="material-symbols-outlined text-sm">close</span>
- {selectedProvider.toUpperCase()} - {t("showAll")}
- </button>
- )}
- </div>
- <div className="flex flex-wrap gap-1.5">
- {allProviders.map((provider) => (
+ {/* Quick shortcuts */}
+ <div className="flex items-center gap-2 flex-wrap text-[11px]">
<button
- key={provider.alias}
- onClick={() => selectProviderFilter(provider.alias)}
- className={`px-2.5 py-1 rounded-md text-xs font-medium transition-all ${
- selectedProvider === provider.alias
- ? "bg-primary text-white shadow-sm"
- : editedProviders.has(provider.alias)
- ? "bg-yellow-500/15 text-yellow-400 border border-yellow-500/30"
- : "bg-bg-subtle text-text-muted hover:bg-bg-hover border border-transparent"
+ type="button"
+ onClick={() => setCoverageFilter(coverageFilter === "lt50" ? "all" : "lt50")}
+ className={`inline-flex items-center gap-1 px-2 py-1 rounded-md border text-xs transition-colors cursor-pointer ${
+ coverageFilter === "lt50"
+ ? "bg-amber-500/15 border-amber-500/30 text-amber-400"
+ : "bg-bg-subtle border-border text-text-muted hover:text-text-main"
}`}
>
- {provider.alias.toUpperCase()}{" "}
- <span className="opacity-60">({provider.modelCount})</span>
+ <span className="material-symbols-outlined text-[14px]">warning</span>
+ Coverage gaps ({coverageGapCount})
</button>
- ))}
+ {(searchQuery ||
+ coverageFilter !== "all" ||
+ authFilter !== "all" ||
+ sortKey !== "modelsDesc" ||
+ selectedProvider) && (
+ <button
+ type="button"
+ onClick={() => {
+ setSearchQuery("");
+ setCoverageFilter("all");
+ setAuthFilter("all");
+ setSortKey("modelsDesc");
+ setSelectedProvider(null);
+ }}
+ className="inline-flex items-center gap-1 px-2 py-1 rounded-md border border-border bg-bg-subtle text-xs text-text-muted hover:text-text-main cursor-pointer"
+ >
+ <span className="material-symbols-outlined text-[14px]">close</span>
+ Clear filters
+ </button>
+ )}
+ <span className="text-text-muted ml-auto">
+ Showing {displayProviders.length} of {totalFiltered}
+ {totalFiltered !== allProviders.length && ` (filtered from ${allProviders.length})`}
+ </span>
+ </div>
</div>
+ {/* Provider list */}
<div className="flex flex-col gap-2">
{displayProviders.map((provider) => (
<ProviderSection
@@ -503,43 +694,80 @@ export default function PricingTab() {
{displayProviders.length === 0 && (
<div className="text-center py-12 text-text-muted">{t("noProvidersMatch")}</div>
)}
- </div>
- <Card className="p-4 mt-2">
- <h3 className="text-sm font-semibold mb-2">
- <span className="material-symbols-outlined text-sm align-middle mr-1">info</span>
- {t("howPricingWorks")}
- </h3>
- <div className="text-xs text-text-muted space-y-1">
- <p>
- {t("pricingDescInput")} • {t("pricingDescOutput")} • {t("pricingDescCached")} •{" "}
- {t("pricingDescReasoning")} • {t("pricingDescCacheWrite")}
- </p>
- <p>{t("pricingDescFormula")}</p>
- </div>
- </Card>
+ {visibleCount < totalFiltered && (
+ <button
+ type="button"
+ onClick={() => setVisibleCount((c) => c + VISIBLE_INCREMENT)}
+ className="mt-2 mx-auto px-4 py-2 rounded-md border border-border bg-bg-subtle hover:bg-black/[0.04] dark:hover:bg-white/[0.04] text-sm text-text-main cursor-pointer flex items-center gap-1.5"
+ >
+ <span className="material-symbols-outlined text-[16px]">expand_more</span>
+ Show {Math.min(VISIBLE_INCREMENT, totalFiltered - visibleCount)} more (
+ {totalFiltered - visibleCount} remaining)
+ </button>
+ )}
+ </div>
</div>
);
}
-function StatPill({ label, value, accent }: { label: string; value: number; accent?: string }) {
+function HeroStat({ label, value, accent }: { label: string; value: number; accent?: string }) {
return (
- <div className="bg-bg-subtle rounded-lg px-3 py-2 text-center">
- <div className="text-text-muted text-xs font-semibold">{label}</div>
- <div className={`text-lg font-bold ${accent || ""}`}>{value}</div>
+ <div className="text-center">
+ <div className="text-[10px] uppercase tracking-wide text-text-muted font-semibold truncate">
+ {label}
+ </div>
+ <div
+ className={`text-2xl font-bold tabular-nums leading-tight ${accent || "text-text-main"}`}
+ >
+ {value}
+ </div>
</div>
);
}
-function SyncMetric({ label, value }: { label: string; value: string }) {
+function SyncMini({ label, value }: { label: string; value: string }) {
return (
- <div className="rounded-lg border border-border/20 bg-surface/20 px-4 py-3">
- <p className="text-xs uppercase tracking-wide text-text-muted font-semibold">{label}</p>
- <p className="text-sm font-medium text-text-main mt-1">{value}</p>
+ <div className="rounded-md border border-border/30 bg-bg-base/40 px-2 py-1.5">
+ <p className="text-[9px] uppercase tracking-wide text-text-muted font-semibold truncate">
+ {label}
+ </p>
+ <p className="text-[11px] font-medium text-text-main mt-0.5 truncate" title={value}>
+ {value}
+ </p>
</div>
);
}
+function FilterSelect({
+ label,
+ value,
+ onChange,
+ options,
+}: {
+ label: string;
+ value: string;
+ onChange: (v: string) => void;
+ options: Array<{ value: string; label: string }>;
+}) {
+ return (
+ <label className="flex items-center gap-1.5 text-xs text-text-muted">
+ <span className="font-semibold uppercase tracking-wide">{label}:</span>
+ <select
+ value={value}
+ onChange={(e) => onChange(e.target.value)}
+ className="bg-bg-base border border-border rounded-md px-2 py-1.5 text-xs text-text-main cursor-pointer focus:outline-none focus:border-primary"
+ >
+ {options.map((opt) => (
+ <option key={opt.value} value={opt.value}>
+ {opt.label}
+ </option>
+ ))}
+ </select>
+ </label>
+ );
+}
+
function ProviderSection({
provider,
pricingData,
@@ -590,63 +818,82 @@ function ProviderSection({
>
<button
onClick={onToggle}
- className="w-full flex items-center justify-between px-4 py-3 hover:bg-bg-hover/50 transition-colors text-left"
+ className="w-full flex items-center justify-between gap-3 px-4 py-3 hover:bg-bg-hover/50 transition-colors text-left"
>
- <div className="flex items-center gap-3 min-w-0">
+ <div className="flex items-center gap-3 min-w-0 flex-1">
<span
- className={`material-symbols-outlined text-lg transition-transform ${
+ className={`material-symbols-outlined text-lg text-text-muted transition-transform shrink-0 ${
isExpanded ? "rotate-90" : ""
}`}
>
chevron_right
</span>
- <div className="min-w-0">
- <span className="font-semibold text-sm">
+ <div className="w-7 h-7 rounded-md flex items-center justify-center overflow-hidden shrink-0 bg-bg-subtle">
+ <ProviderIcon providerId={provider.id} size={28} type="color" />
+ </div>
+ <div className="min-w-0 flex items-center gap-2">
+ <span className="font-semibold text-sm truncate">
{provider.id.charAt(0).toUpperCase() + provider.id.slice(1)}
</span>
- <span className="text-text-muted text-xs ml-2">({provider.alias.toUpperCase()})</span>
+ <span className="text-text-muted text-[11px] truncate">
+ ({provider.alias.toUpperCase()})
+ </span>
</div>
- <span className="px-1.5 py-0.5 bg-bg-subtle text-text-muted text-[10px] rounded uppercase font-semibold">
+ <span
+ className={`px-1.5 py-0.5 text-[9px] rounded uppercase font-semibold shrink-0 ${
+ provider.authType === "oauth"
+ ? "bg-sky-500/15 text-sky-400 border border-sky-500/25"
+ : provider.authType === "apikey"
+ ? "bg-violet-500/15 text-violet-400 border border-violet-500/25"
+ : "bg-bg-subtle text-text-muted border border-border/40"
+ }`}
+ >
{authBadge}
</span>
- <span className="px-1.5 py-0.5 bg-bg-subtle text-text-muted text-[10px] rounded uppercase font-semibold">
+ <span className="px-1.5 py-0.5 bg-bg-subtle text-text-muted text-[9px] rounded uppercase font-semibold shrink-0">
{provider.format}
</span>
</div>
- <div className="flex items-center gap-3">
- <div className="hidden xl:flex items-center gap-1.5">
- {sourceCounts.user > 0 && (
- <span className={`px-1.5 py-0.5 rounded text-[10px] ${getSourceTone("user")}`}>
- {sourceCounts.user} {getSourceLabel("user")}
- </span>
- )}
- {sourceCounts.modelsDev > 0 && (
- <span className={`px-1.5 py-0.5 rounded text-[10px] ${getSourceTone("modelsDev")}`}>
- {sourceCounts.modelsDev} {getSourceLabel("modelsDev")}
- </span>
- )}
- {sourceCounts.litellm > 0 && (
- <span className={`px-1.5 py-0.5 rounded text-[10px] ${getSourceTone("litellm")}`}>
- {sourceCounts.litellm} {getSourceLabel("litellm")}
- </span>
- )}
- </div>
- {isEdited && <span className="text-yellow-500 text-xs font-medium">{t("unsaved")}</span>}
- <span className="text-text-muted text-xs">
- {pricedCount}/{provider.modelCount} {t("withPricing")}
+ <div className="flex items-center gap-3 shrink-0">
+ {sourceCounts.user > 0 && (
+ <span
+ className="inline-flex items-center gap-1 text-[10px] font-semibold text-amber-400"
+ title={`${sourceCounts.user} ${getSourceLabel("user")}`}
+ >
+ 💎 {sourceCounts.user}
+ </span>
+ )}
+ {isEdited && (
+ <span className="text-yellow-500 text-[11px] font-semibold">{t("unsaved")}</span>
+ )}
+ <span className="text-text-muted text-[11px] tabular-nums hidden sm:inline">
+ {pricedCount}/{provider.modelCount}
</span>
- <div className="w-16 h-1.5 bg-bg-subtle rounded-full overflow-hidden">
- <div
- className="h-full bg-primary rounded-full transition-all"
- style={{
- width: `${
- provider.modelCount > 0
- ? Math.round((pricedCount / provider.modelCount) * 100)
- : 0
- }%`,
- }}
- />
- </div>
+ {(() => {
+ const pct =
+ provider.modelCount > 0 ? Math.round((pricedCount / provider.modelCount) * 100) : 0;
+ const barColor =
+ pct >= 100 ? "bg-emerald-500" : pct >= 50 ? "bg-amber-500" : "bg-red-500";
+ const textColor =
+ pct >= 100 ? "text-emerald-400" : pct >= 50 ? "text-amber-400" : "text-red-400";
+ const icon = pct >= 100 ? "✓" : pct >= 50 ? "◐" : "⚠";
+ return (
+ <>
+ <div className="w-20 h-1.5 bg-bg-subtle rounded-full overflow-hidden">
+ <div
+ className={`h-full ${barColor} rounded-full transition-all`}
+ style={{ width: `${pct}%` }}
+ />
+ </div>
+ <span
+ className={`text-[11px] font-bold tabular-nums w-10 text-right ${textColor}`}
+ title={`${pricedCount}/${provider.modelCount} ${t("withPricing")}`}
+ >
+ {pct}% {icon}
+ </span>
+ </>
+ );
+ })()}
</div>
</button>
diff --git a/src/app/(dashboard)/dashboard/translator/components/ChatTesterMode.tsx b/src/app/(dashboard)/dashboard/translator/components/ChatTesterMode.tsx
index 3d1e29a0a3..205783b0af 100644
--- a/src/app/(dashboard)/dashboard/translator/components/ChatTesterMode.tsx
+++ b/src/app/(dashboard)/dashboard/translator/components/ChatTesterMode.tsx
@@ -7,9 +7,7 @@ import { Card, Button, Select, Badge } from "@/shared/components";
import { FORMAT_META, FORMAT_OPTIONS } from "../exampleTemplates";
import { useProviderOptions } from "../hooks/useProviderOptions";
import { useAvailableModels } from "../hooks/useAvailableModels";
-import dynamic from "next/dynamic";
-
-const Editor = dynamic(() => import("@monaco-editor/react"), { ssr: false });
+import Editor from "@/shared/components/MonacoEditor";
/**
* Chat Tester Mode:
diff --git a/src/app/(dashboard)/dashboard/translator/components/PlaygroundMode.tsx b/src/app/(dashboard)/dashboard/translator/components/PlaygroundMode.tsx
index b99c176ea1..018859360a 100644
--- a/src/app/(dashboard)/dashboard/translator/components/PlaygroundMode.tsx
+++ b/src/app/(dashboard)/dashboard/translator/components/PlaygroundMode.tsx
@@ -5,9 +5,7 @@ import { useTranslations } from "next-intl";
import { useState, useCallback, useEffect, useMemo } from "react";
import { Card, Button, Select, Badge } from "@/shared/components";
import { getExampleTemplates, FORMAT_META, FORMAT_OPTIONS } from "../exampleTemplates";
-import dynamic from "next/dynamic";
-
-const Editor = dynamic(() => import("@monaco-editor/react"), { ssr: false });
+import Editor from "@/shared/components/MonacoEditor";
interface CompressionPreviewResult {
originalTokens: number;
diff --git a/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx b/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx
index c5d424aa20..80a5337b3e 100644
--- a/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx
@@ -1,178 +1,425 @@
"use client";
+import { useCallback, useEffect, useMemo, useState } from "react";
import { useLocale, useTranslations } from "next-intl";
-
-/**
- * BudgetTab — Batch C
- *
- * Budget management for API keys — set daily/monthly limits,
- * view current spend, and monitor warning thresholds.
- * API: /api/usage/budget
- */
-
-import { useState, useEffect, useCallback } from "react";
import { Card, Button, Input, EmptyState } from "@/shared/components";
import { useNotificationStore } from "@/store/notificationStore";
-function ProgressBar({ value, max, warningAt = 0.8, formatCurrency }) {
- const pct = max > 0 ? Math.min((value / max) * 100, 100) : 0;
- const ratio = max > 0 ? value / max : 0;
- const color = ratio >= 1 ? "#ef4444" : ratio >= warningAt ? "#f59e0b" : "#22c55e";
+// ────────────────────────────────────────────────────────────────────────────
+// Types
+// ────────────────────────────────────────────────────────────────────────────
- return (
- <div className="w-full">
- <div className="flex justify-between text-xs mb-1">
- <span className="text-text-muted">{formatCurrency(value)}</span>
- <span className="text-text-muted">{formatCurrency(max)}</span>
- </div>
- <div className="w-full h-2 rounded-full bg-surface/50 overflow-hidden">
- <div
- className="h-full rounded-full transition-all duration-500"
- style={{ width: `${pct}%`, backgroundColor: color }}
- />
- </div>
- </div>
- );
+type ApiKey = {
+ id: string;
+ name?: string;
+ provider?: string;
+};
+
+type BudgetSummary = {
+ dailyLimitUsd?: number;
+ weeklyLimitUsd?: number;
+ monthlyLimitUsd?: number;
+ warningThreshold?: number | null;
+ resetInterval?: "daily" | "weekly" | "monthly" | null;
+ resetTime?: string | null;
+ totalCostToday?: number;
+ totalCostMonth?: number;
+ totalCostPeriod?: number;
+ activeLimitUsd?: number;
+ budgetResetAt?: number | null;
+ nextResetAt?: number | null;
+ periodStartAt?: number | null;
+ budgetCheck?: { allowed: boolean; remaining?: number };
+};
+
+type KeyRow = ApiKey & { budget: BudgetSummary | null };
+
+type StatusKey = "all" | "blocked" | "alerting" | "warning" | "safe" | "no-limit";
+
+type Template = {
+ id: string;
+ name: string;
+ emoji: string;
+ dailyLimitUsd?: number;
+ weeklyLimitUsd?: number;
+ monthlyLimitUsd?: number;
+ warningThreshold: number;
+ resetInterval: "daily" | "weekly" | "monthly";
+ resetTime: string;
+};
+
+type ProviderBreakdown = { provider: string; cost: number; pct: number };
+
+const LS_TEMPLATES = "omniroute:budget:templates";
+
+const DEFAULT_TEMPLATES: Template[] = [
+ {
+ id: "tpl-prod",
+ name: "Production",
+ emoji: "💎",
+ dailyLimitUsd: 50,
+ monthlyLimitUsd: 1000,
+ warningThreshold: 80,
+ resetInterval: "monthly",
+ resetTime: "00:00",
+ },
+ {
+ id: "tpl-dev",
+ name: "Dev",
+ emoji: "🛠",
+ dailyLimitUsd: 10,
+ monthlyLimitUsd: 200,
+ warningThreshold: 75,
+ resetInterval: "monthly",
+ resetTime: "00:00",
+ },
+ {
+ id: "tpl-ci",
+ name: "CI",
+ emoji: "📊",
+ monthlyLimitUsd: 500,
+ warningThreshold: 90,
+ resetInterval: "monthly",
+ resetTime: "00:00",
+ },
+];
+
+// ────────────────────────────────────────────────────────────────────────────
+// Helpers
+// ────────────────────────────────────────────────────────────────────────────
+
+function statusOf(row: KeyRow): StatusKey {
+ const b = row.budget;
+ if (!b) return "no-limit";
+ const limit = b.activeLimitUsd || b.dailyLimitUsd || b.monthlyLimitUsd || 0;
+ if (limit <= 0) return "no-limit";
+ const used = b.totalCostPeriod ?? b.totalCostToday ?? 0;
+ const pct = limit > 0 ? (used / limit) * 100 : 0;
+ const warnPct = (b.warningThreshold ?? 0.8) * 100;
+ if (pct >= 100) return "blocked";
+ if (pct >= warnPct) return "alerting";
+ if (pct >= 50) return "warning";
+ return "safe";
+}
+
+function pctUsed(row: KeyRow): number {
+ const b = row.budget;
+ if (!b) return 0;
+ const limit = b.activeLimitUsd || b.dailyLimitUsd || b.monthlyLimitUsd || 0;
+ if (limit <= 0) return 0;
+ const used = b.totalCostPeriod ?? b.totalCostToday ?? 0;
+ return (used / limit) * 100;
}
+// Project end-of-month spend based on current burn rate. Simple linear
+// extrapolation: (monthly cost so far) / (days elapsed) * (days in month).
+function projectEndOfMonth(monthlyCost: number, now = new Date()): number {
+ const dayOfMonth = now.getDate();
+ const daysInMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0).getDate();
+ if (dayOfMonth <= 0) return monthlyCost;
+ const burnRate = monthlyCost / dayOfMonth;
+ return burnRate * daysInMonth;
+}
+
+const STATUS_META: Record<StatusKey, { label: string; tone: string; bg: string; dot: string }> = {
+ all: { label: "All", tone: "text-text-main", bg: "bg-bg-subtle", dot: "var(--color-text-muted)" },
+ blocked: {
+ label: "Blocked",
+ tone: "text-red-400",
+ bg: "bg-red-500/10 border-red-500/30",
+ dot: "#ef4444",
+ },
+ alerting: {
+ label: "Alerting",
+ tone: "text-amber-400",
+ bg: "bg-amber-500/10 border-amber-500/30",
+ dot: "#f59e0b",
+ },
+ warning: {
+ label: "Warning",
+ tone: "text-yellow-400",
+ bg: "bg-yellow-500/10 border-yellow-500/30",
+ dot: "#eab308",
+ },
+ safe: {
+ label: "Safe",
+ tone: "text-emerald-400",
+ bg: "bg-emerald-500/10 border-emerald-500/30",
+ dot: "#22c55e",
+ },
+ "no-limit": {
+ label: "No limit",
+ tone: "text-text-muted",
+ bg: "bg-bg-subtle border-border",
+ dot: "var(--color-text-muted)",
+ },
+};
+
+// ────────────────────────────────────────────────────────────────────────────
+// Component
+// ────────────────────────────────────────────────────────────────────────────
+
export default function BudgetTab() {
const t = useTranslations("usage");
const locale = useLocale();
- const [keys, setKeys] = useState([]);
- const [selectedKey, setSelectedKey] = useState(null);
- const [budget, setBudget] = useState(null);
+ const notify = useNotificationStore();
+
+ const [rows, setRows] = useState<KeyRow[]>([]);
const [loading, setLoading] = useState(true);
const [saving, setSaving] = useState(false);
- const [form, setForm] = useState({
- dailyLimitUsd: "",
- weeklyLimitUsd: "",
- monthlyLimitUsd: "",
- warningThreshold: "80",
- resetInterval: "daily",
- resetTime: "00:00",
- });
- const notify = useNotificationStore();
- const formatCurrency = (value) =>
- new Intl.NumberFormat(locale, {
- style: "currency",
- currency: "USD",
- minimumFractionDigits: 2,
- maximumFractionDigits: 2,
- }).format(Number(value || 0));
- const formatDateTime = (value) =>
- value
- ? new Intl.DateTimeFormat(locale, {
- dateStyle: "medium",
- timeStyle: "short",
- timeZone: "UTC",
- }).format(new Date(value))
- : "—";
-
- const getActiveLimitFromForm = () => {
- const daily = parseFloat(form.dailyLimitUsd) || 0;
- const weekly = parseFloat(form.weeklyLimitUsd) || 0;
- const monthly = parseFloat(form.monthlyLimitUsd) || 0;
-
- if (form.resetInterval === "monthly") {
- return monthly || daily;
+ const [searchQuery, setSearchQuery] = useState("");
+ const [statusFilter, setStatusFilter] = useState<StatusKey>("all");
+ const [sortKey, setSortKey] = useState<"usedDesc" | "todayDesc" | "monthDesc" | "name">(
+ "usedDesc"
+ );
+ const [expandedKeyId, setExpandedKeyId] = useState<string | null>(null);
+ const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set());
+ const [templates] = useState<Template[]>(() => {
+ if (typeof window === "undefined") return DEFAULT_TEMPLATES;
+ try {
+ const saved = localStorage.getItem(LS_TEMPLATES);
+ if (saved) return JSON.parse(saved);
+ } catch {
+ /* ignore */
}
- if (form.resetInterval === "weekly") {
- return weekly || daily;
+ return DEFAULT_TEMPLATES;
+ });
+ const [breakdownCache, setBreakdownCache] = useState<Record<string, ProviderBreakdown[]>>({});
+
+ const formatCurrency = useCallback(
+ (value: number | undefined | null) =>
+ new Intl.NumberFormat(locale, {
+ style: "currency",
+ currency: "USD",
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2,
+ }).format(Number(value || 0)),
+ [locale]
+ );
+
+ const formatDateTime = useCallback(
+ (value: number | string | null | undefined) =>
+ value
+ ? new Intl.DateTimeFormat(locale, {
+ dateStyle: "medium",
+ timeStyle: "short",
+ timeZone: "UTC",
+ }).format(new Date(value))
+ : "—",
+ [locale]
+ );
+
+ // ── Data fetching ────────────────────────────────────────────────────────
+
+ const loadAll = useCallback(async () => {
+ setLoading(true);
+ try {
+ const keysRes = await fetch("/api/keys");
+ const keysData = keysRes.ok ? await keysRes.json() : null;
+ const keys: ApiKey[] = Array.isArray(keysData) ? keysData : keysData?.keys || [];
+
+ const budgets = await Promise.all(
+ keys.map(async (k) => {
+ try {
+ const r = await fetch(`/api/usage/budget?apiKeyId=${k.id}`);
+ if (!r.ok) return null;
+ return (await r.json()) as BudgetSummary;
+ } catch {
+ return null;
+ }
+ })
+ );
+
+ setRows(keys.map((k, i) => ({ ...k, budget: budgets[i] })));
+ } catch (err) {
+ console.error("[Budget] load failed", err);
+ } finally {
+ setLoading(false);
}
- return daily;
- };
+ }, []);
- // Load API keys
useEffect(() => {
- fetch("/api/keys")
- .then((r) => r.json())
- .then((data) => {
- const keyList = Array.isArray(data) ? data : data.keys || [];
- setKeys(keyList);
- if (keyList.length > 0) setSelectedKey(keyList[0].id);
- setLoading(false);
- })
- .catch(() => setLoading(false));
- }, []);
+ void loadAll();
+ }, [loadAll]);
- // Load budget for selected key
- const fetchBudget = useCallback(async () => {
- if (!selectedKey) return;
+ const fetchBreakdown = useCallback(async (apiKeyId: string) => {
try {
- const res = await fetch(`/api/usage/budget?apiKeyId=${selectedKey}`);
- if (res.ok) {
- const data = await res.json();
- setBudget(data);
- if (data.dailyLimitUsd)
- setForm((f) => ({ ...f, dailyLimitUsd: String(data.dailyLimitUsd) }));
- if (data.weeklyLimitUsd)
- setForm((f) => ({ ...f, weeklyLimitUsd: String(data.weeklyLimitUsd) }));
- if (data.monthlyLimitUsd)
- setForm((f) => ({ ...f, monthlyLimitUsd: String(data.monthlyLimitUsd) }));
- if (data.warningThreshold)
- // stored as fraction (0–1), display as percentage (0–100)
- setForm((f) => ({
- ...f,
- warningThreshold: String(Math.round(data.warningThreshold * 100)),
- }));
- if (data.resetInterval) {
- setForm((f) => ({ ...f, resetInterval: data.resetInterval }));
- }
- if (data.resetTime) {
- setForm((f) => ({ ...f, resetTime: data.resetTime }));
- }
- }
+ const r = await fetch(`/api/usage/analytics?range=30d&apiKeyIds=${apiKeyId}`);
+ if (!r.ok) return;
+ const data = await r.json();
+ const arr = Array.isArray(data?.byProvider) ? data.byProvider : [];
+ const total =
+ arr.reduce((s: number, p: any) => s + Number(p?.totalCost ?? p?.cost ?? 0), 0) || 0;
+ const breakdown: ProviderBreakdown[] = arr
+ .map((p: any) => {
+ const cost = Number(p?.totalCost ?? p?.cost ?? 0);
+ return {
+ provider: String(p?.provider ?? "unknown"),
+ cost,
+ pct: total > 0 ? (cost / total) * 100 : 0,
+ };
+ })
+ .filter((p: ProviderBreakdown) => p.cost > 0)
+ .sort((a: ProviderBreakdown, b: ProviderBreakdown) => b.cost - a.cost);
+ setBreakdownCache((prev) => ({ ...prev, [apiKeyId]: breakdown }));
} catch {
- // silent
+ /* breakdown is best-effort */
}
- }, [selectedKey]);
+ }, []);
- useEffect(() => {
- fetchBudget();
- }, [fetchBudget]);
+ // ── Derived data ─────────────────────────────────────────────────────────
- const handleSave = async () => {
- setSaving(true);
- try {
- const res = await fetch("/api/usage/budget", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({
- apiKeyId: selectedKey,
- dailyLimitUsd: form.dailyLimitUsd ? parseFloat(form.dailyLimitUsd) : undefined,
- weeklyLimitUsd: form.weeklyLimitUsd ? parseFloat(form.weeklyLimitUsd) : undefined,
- monthlyLimitUsd: form.monthlyLimitUsd ? parseFloat(form.monthlyLimitUsd) : undefined,
- // schema expects a fraction (0–1); UI shows percentage (0–100)
- warningThreshold: (parseInt(form.warningThreshold) || 80) / 100,
- resetInterval: form.resetInterval,
- resetTime: form.resetTime || "00:00",
- }),
- });
- if (res.ok) {
+ const visibleRows = useMemo(() => {
+ const query = searchQuery.trim().toLowerCase();
+ const matchesQuery = (r: KeyRow) =>
+ !query ||
+ (r.name || "").toLowerCase().includes(query) ||
+ r.id.toLowerCase().includes(query) ||
+ (r.provider || "").toLowerCase().includes(query);
+ const matchesStatus = (r: KeyRow) => statusFilter === "all" || statusOf(r) === statusFilter;
+ const filtered = rows.filter((r) => matchesQuery(r) && matchesStatus(r));
+
+ return [...filtered].sort((a, b) => {
+ if (sortKey === "name") return (a.name || a.id).localeCompare(b.name || b.id);
+ if (sortKey === "todayDesc")
+ return (b.budget?.totalCostToday || 0) - (a.budget?.totalCostToday || 0);
+ if (sortKey === "monthDesc")
+ return (b.budget?.totalCostMonth || 0) - (a.budget?.totalCostMonth || 0);
+ // usedDesc
+ return pctUsed(b) - pctUsed(a);
+ });
+ }, [rows, searchQuery, statusFilter, sortKey]);
+
+ const stats = useMemo(() => {
+ let today = 0;
+ let month = 0;
+ const counts = { blocked: 0, alerting: 0, warning: 0, safe: 0, noLimit: 0, active: 0 };
+ for (const r of rows) {
+ today += r.budget?.totalCostToday || 0;
+ month += r.budget?.totalCostMonth || 0;
+ const st = statusOf(r);
+ if (st === "blocked") counts.blocked += 1;
+ else if (st === "alerting") counts.alerting += 1;
+ else if (st === "warning") counts.warning += 1;
+ else if (st === "safe") counts.safe += 1;
+ else counts.noLimit += 1;
+ if ((r.budget?.totalCostMonth || 0) > 0) counts.active += 1;
+ }
+ return { today, month, projectionEom: projectEndOfMonth(month), counts };
+ }, [rows]);
+
+ const statusCounts = useMemo(() => {
+ const counts: Record<StatusKey, number> = {
+ all: rows.length,
+ blocked: 0,
+ alerting: 0,
+ warning: 0,
+ safe: 0,
+ "no-limit": 0,
+ };
+ for (const r of rows) counts[statusOf(r)] += 1;
+ return counts;
+ }, [rows]);
+
+ // ── Mutations ────────────────────────────────────────────────────────────
+
+ const saveBudgetForKey = useCallback(
+ async (
+ apiKeyId: string,
+ payload: Partial<BudgetSummary> & { warningThresholdPct?: number }
+ ) => {
+ setSaving(true);
+ try {
+ const body: Record<string, unknown> = {
+ apiKeyId,
+ dailyLimitUsd: payload.dailyLimitUsd,
+ weeklyLimitUsd: payload.weeklyLimitUsd,
+ monthlyLimitUsd: payload.monthlyLimitUsd,
+ warningThreshold:
+ payload.warningThresholdPct !== undefined
+ ? payload.warningThresholdPct / 100
+ : payload.warningThreshold,
+ resetInterval: payload.resetInterval,
+ resetTime: payload.resetTime,
+ };
+ // Strip undefined keys
+ Object.keys(body).forEach((k) => body[k] === undefined && delete body[k]);
+
+ const res = await fetch("/api/usage/budget", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(body),
+ });
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
notify.success(t("budgetSaved"));
- await fetchBudget();
- } else {
+ await loadAll();
+ } catch (err) {
+ console.error("[Budget] save failed", err);
notify.error(t("budgetSaveFailed"));
+ } finally {
+ setSaving(false);
}
- } catch {
- notify.error(t("budgetSaveFailed"));
- } finally {
- setSaving(false);
+ },
+ [loadAll, notify, t]
+ );
+
+ const applyTemplateToSelected = useCallback(
+ async (template: Template) => {
+ if (selectedIds.size === 0) {
+ notify.error("No keys selected");
+ return;
+ }
+ setSaving(true);
+ try {
+ await Promise.all(
+ Array.from(selectedIds).map((id) =>
+ fetch("/api/usage/budget", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ apiKeyId: id,
+ dailyLimitUsd: template.dailyLimitUsd,
+ weeklyLimitUsd: template.weeklyLimitUsd,
+ monthlyLimitUsd: template.monthlyLimitUsd,
+ warningThreshold: template.warningThreshold / 100,
+ resetInterval: template.resetInterval,
+ resetTime: template.resetTime,
+ }),
+ })
+ )
+ );
+ notify.success(`Applied "${template.name}" to ${selectedIds.size} keys`);
+ setSelectedIds(new Set());
+ await loadAll();
+ } catch {
+ notify.error("Failed to apply template");
+ } finally {
+ setSaving(false);
+ }
+ },
+ [loadAll, notify, selectedIds]
+ );
+
+ // ── Effects ──────────────────────────────────────────────────────────────
+
+ useEffect(() => {
+ if (expandedKeyId && !breakdownCache[expandedKeyId]) {
+ fetchBreakdown(expandedKeyId);
}
- };
+ }, [expandedKeyId, breakdownCache, fetchBreakdown]);
+
+ // ── Render ───────────────────────────────────────────────────────────────
if (loading) {
return (
<div className="flex items-center gap-2 text-text-muted p-8 animate-pulse">
- <span className="material-symbols-outlined text-[20px]" aria-hidden="true">
- account_balance_wallet
- </span>
+ <span className="material-symbols-outlined text-[20px]">account_balance_wallet</span>
{t("loadingBudgetData")}
</div>
);
}
- if (keys.length === 0) {
+ if (rows.length === 0) {
return (
<EmptyState
icon="vpn_key"
@@ -182,184 +429,577 @@ export default function BudgetTab() {
);
}
- const dailyLimit = budget?.dailyLimitUsd || parseFloat(form.dailyLimitUsd) || 0;
- const weeklyLimit = budget?.weeklyLimitUsd || parseFloat(form.weeklyLimitUsd) || 0;
- const monthlyLimit = budget?.monthlyLimitUsd || parseFloat(form.monthlyLimitUsd) || 0;
- const dailyCost = budget?.totalCostToday || 0;
- const monthlyCost = budget?.totalCostMonth || 0;
- const activeLimit = budget?.activeLimitUsd || getActiveLimitFromForm();
- const activeCost = budget?.totalCostPeriod || 0;
- const warnPct = (parseInt(form.warningThreshold) || 80) / 100;
+ const projectionOverBudget =
+ stats.projectionEom > 0 &&
+ rows.some((r) => {
+ const m = r.budget?.monthlyLimitUsd || 0;
+ return m > 0 && stats.projectionEom > m;
+ });
return (
- <div className="flex flex-col gap-6">
- {/* Key Selector */}
- <Card className="p-6">
- <div className="flex items-center gap-3 mb-4">
- <div className="p-2 rounded-lg bg-emerald-500/10 text-emerald-500">
- <span className="material-symbols-outlined text-[20px]" aria-hidden="true">
- account_balance_wallet
- </span>
+ <div className="flex flex-col gap-4">
+ {/* Hero KPIs */}
+ <Card className="p-5">
+ <div className="flex items-start justify-between gap-3 mb-4">
+ <div>
+ <h2 className="text-xl font-bold flex items-center gap-2">
+ <span className="material-symbols-outlined text-[22px] text-primary">
+ account_balance_wallet
+ </span>
+ Budget
+ </h2>
+ <p className="text-text-muted text-xs mt-0.5">
+ Set daily/weekly/monthly spend limits per API key
+ </p>
</div>
- <h3 className="text-lg font-semibold">{t("budgetManagement")}</h3>
+ <span className="text-[11px] text-text-muted">
+ {templates.length} templates · edit via localStorage:{" "}
+ <code className="text-text-main">{LS_TEMPLATES}</code>
+ </span>
</div>
- <div className="mb-4">
- <label className="text-sm text-text-muted mb-1 block">{t("apiKey")}</label>
+ <div className="grid grid-cols-2 lg:grid-cols-6 gap-2">
+ <KpiBlock label="Today" value={formatCurrency(stats.today)} />
+ <KpiBlock label="This month" value={formatCurrency(stats.month)} />
+ <KpiBlock
+ label="Proj EOM"
+ value={formatCurrency(stats.projectionEom)}
+ tone={projectionOverBudget ? "amber" : undefined}
+ hint={projectionOverBudget ? "above limit ⚠" : "on track"}
+ />
+ <KpiBlock
+ label="Blocked"
+ value={String(stats.counts.blocked)}
+ tone={stats.counts.blocked > 0 ? "red" : undefined}
+ />
+ <KpiBlock
+ label="At risk"
+ value={String(stats.counts.alerting)}
+ tone={stats.counts.alerting > 0 ? "amber" : undefined}
+ hint="≥ warning"
+ />
+ <KpiBlock label="Active keys" value={`${stats.counts.active} / ${rows.length}`} />
+ </div>
+ </Card>
+
+ {/* Filters + Templates */}
+ <div className="flex flex-col gap-2">
+ <div className="flex flex-wrap gap-2 items-center">
+ <div className="relative flex-1 min-w-[260px]">
+ <span className="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-text-muted text-lg">
+ search
+ </span>
+ <input
+ type="text"
+ placeholder="Search keys..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ className="w-full pl-10 pr-3 py-2 bg-bg-base border border-border rounded-lg focus:outline-none focus:border-primary text-sm"
+ />
+ </div>
<select
- value={selectedKey || ""}
- onChange={(e) => setSelectedKey(e.target.value)}
- className="w-full md:w-auto px-3 py-2 rounded-lg border border-border/50 bg-surface/30 text-text-main text-sm focus:outline-none focus:ring-1 focus:ring-primary"
+ value={sortKey}
+ onChange={(e) => setSortKey(e.target.value as typeof sortKey)}
+ className="bg-bg-base border border-border rounded-md px-2 py-1.5 text-xs text-text-main cursor-pointer"
>
- {keys.map((k) => (
- <option key={k.id} value={k.id}>
- {k.name || k.id} {k.provider ? `(${k.provider})` : ""}
- </option>
- ))}
+ <option value="usedDesc">Sort: % Used ↓</option>
+ <option value="todayDesc">Sort: Today $ ↓</option>
+ <option value="monthDesc">Sort: Month $ ↓</option>
+ <option value="name">Sort: Name (A–Z)</option>
</select>
</div>
- {/* Current Spend */}
- <div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
- <div className="p-4 rounded-lg border border-border/30 bg-surface/20">
- <p className="text-sm text-text-muted mb-2">{t("todaysSpend")}</p>
- <p className="text-2xl font-bold text-text-main">{formatCurrency(dailyCost)}</p>
- {dailyLimit > 0 && (
- <ProgressBar
- value={dailyCost}
- max={dailyLimit}
- warningAt={warnPct}
- formatCurrency={formatCurrency}
- />
- )}
- </div>
- <div className="p-4 rounded-lg border border-border/30 bg-surface/20">
- <p className="text-sm text-text-muted mb-2">{t("thisMonth")}</p>
- <p className="text-2xl font-bold text-text-main">{formatCurrency(monthlyCost)}</p>
- {monthlyLimit > 0 && (
- <ProgressBar
- value={monthlyCost}
- max={monthlyLimit}
- warningAt={warnPct}
- formatCurrency={formatCurrency}
- />
+ <div className="flex items-center gap-1.5 flex-wrap">
+ {(["all", "blocked", "alerting", "warning", "safe", "no-limit"] as StatusKey[]).map(
+ (key) => {
+ const meta = STATUS_META[key];
+ const active = statusFilter === key;
+ const count = statusCounts[key] || 0;
+ if (key !== "all" && count === 0) return null;
+ return (
+ <button
+ key={key}
+ type="button"
+ onClick={() => setStatusFilter(key)}
+ className={`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold border transition-colors cursor-pointer ${
+ active
+ ? meta.bg + " " + meta.tone
+ : "border-border text-text-muted bg-bg-subtle hover:text-text-main"
+ }`}
+ >
+ {key !== "all" && (
+ <span className="w-1.5 h-1.5 rounded-full" style={{ background: meta.dot }} />
+ )}
+ <span>{meta.label}</span>
+ <span className="opacity-70">{count}</span>
+ </button>
+ );
+ }
+ )}
+ </div>
+
+ {templates.length > 0 && (
+ <div className="flex items-center gap-1.5 flex-wrap text-[11px]">
+ <span className="text-text-muted font-semibold uppercase tracking-wide mr-1">
+ Templates:
+ </span>
+ {templates.map((tpl) => (
+ <button
+ key={tpl.id}
+ type="button"
+ onClick={() => applyTemplateToSelected(tpl)}
+ disabled={selectedIds.size === 0 || saving}
+ title={
+ selectedIds.size === 0
+ ? "Select keys first to apply"
+ : `Apply to ${selectedIds.size} selected key(s)`
+ }
+ className="inline-flex items-center gap-1 px-2.5 py-1 rounded-md border border-border bg-bg-subtle text-text-main hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer"
+ >
+ <span>{tpl.emoji}</span>
+ <span>{tpl.name}</span>
+ <span className="text-text-muted">
+ {tpl.monthlyLimitUsd ? `$${tpl.monthlyLimitUsd}/mo` : `$${tpl.dailyLimitUsd}/d`}
+ </span>
+ </button>
+ ))}
+ {selectedIds.size > 0 && (
+ <span className="text-text-muted ml-2">
+ {selectedIds.size} selected · click a template to apply
+ </span>
)}
</div>
- <div className="p-4 rounded-lg border border-border/30 bg-surface/20">
- <p className="text-sm text-text-muted mb-2">{t("activePeriodSpend")}</p>
- <p className="text-2xl font-bold text-text-main">{formatCurrency(activeCost)}</p>
- {activeLimit > 0 && (
- <ProgressBar
- value={activeCost}
- max={activeLimit}
- warningAt={warnPct}
- formatCurrency={formatCurrency}
- />
- )}
- <div className="mt-3 space-y-1 text-xs text-text-muted">
- <p>
- {t("intervalLabel")}:{" "}
- {t((budget?.resetInterval || form.resetInterval || "daily").toLowerCase())}
- </p>
- <p>{t("nextResetUtc", { value: formatDateTime(budget?.budgetResetAt) })}</p>
- </div>
+ )}
+ </div>
+
+ {/* Multi-key table */}
+ <div className="rounded-xl border border-border overflow-hidden bg-surface">
+ <div
+ className="items-center px-3 py-2 border-b border-border bg-bg-subtle/40 text-[10px] font-semibold uppercase tracking-wider text-text-muted"
+ style={{
+ display: "grid",
+ gridTemplateColumns: "24px 28px minmax(180px,1.6fr) 90px 100px 90px 100px 80px 100px",
+ gap: "8px",
+ }}
+ >
+ <div>
+ <input
+ type="checkbox"
+ checked={selectedIds.size > 0 && selectedIds.size === visibleRows.length}
+ ref={(el) => {
+ if (el)
+ el.indeterminate = selectedIds.size > 0 && selectedIds.size < visibleRows.length;
+ }}
+ onChange={(e) =>
+ setSelectedIds(e.target.checked ? new Set(visibleRows.map((r) => r.id)) : new Set())
+ }
+ />
</div>
+ <div></div>
+ <div>Key</div>
+ <div className="text-right">Today</div>
+ <div className="text-right">Month</div>
+ <div className="text-right">Daily lim</div>
+ <div className="text-right">Monthly lim</div>
+ <div className="text-right">Used %</div>
+ <div className="text-center">Status</div>
</div>
- {/* Budget Form */}
- <div className="border-t border-border/30 pt-4">
- <p className="text-sm font-medium mb-3">{t("setLimits")}</p>
- <div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
- <Input
- label={t("dailyLimitUsd")}
- type="number"
- step="0.01"
- min="0"
- placeholder={t("dailyLimitPlaceholder")}
- value={form.dailyLimitUsd}
- onChange={(e) => setForm({ ...form, dailyLimitUsd: e.target.value })}
- />
- <Input
- label={t("weeklyLimitUsd")}
- type="number"
- step="0.01"
- min="0"
- placeholder={t("weeklyLimitPlaceholder")}
- value={form.weeklyLimitUsd}
- onChange={(e) => setForm({ ...form, weeklyLimitUsd: e.target.value })}
- />
- <Input
- label={t("monthlyLimitUsd")}
- type="number"
- step="0.01"
- min="0"
- placeholder={t("monthlyLimitPlaceholder")}
- value={form.monthlyLimitUsd}
- onChange={(e) => setForm({ ...form, monthlyLimitUsd: e.target.value })}
- />
- <Input
- label={t("warningThresholdPercent")}
- type="number"
- min="1"
- max="100"
- placeholder={t("warningThresholdPlaceholder")}
- value={form.warningThreshold}
- onChange={(e) => setForm({ ...form, warningThreshold: e.target.value })}
+ {visibleRows.length === 0 ? (
+ <div className="py-10 text-center text-text-muted text-sm">No keys match filters</div>
+ ) : (
+ visibleRows.map((row, idx) => (
+ <BudgetRow
+ key={row.id}
+ row={row}
+ isLast={idx === visibleRows.length - 1}
+ isExpanded={expandedKeyId === row.id}
+ isSelected={selectedIds.has(row.id)}
+ onToggleExpand={() => setExpandedKeyId(expandedKeyId === row.id ? null : row.id)}
+ onToggleSelect={() =>
+ setSelectedIds((prev) => {
+ const next = new Set(prev);
+ next.has(row.id) ? next.delete(row.id) : next.add(row.id);
+ return next;
+ })
+ }
+ formatCurrency={formatCurrency}
+ formatDateTime={formatDateTime}
+ breakdown={breakdownCache[row.id]}
+ onSave={(payload) => saveBudgetForKey(row.id, payload)}
+ saving={saving}
/>
+ ))
+ )}
+ </div>
+ </div>
+ );
+}
+
+// ────────────────────────────────────────────────────────────────────────────
+// Sub-components
+// ────────────────────────────────────────────────────────────────────────────
+
+function KpiBlock({
+ label,
+ value,
+ hint,
+ tone,
+}: {
+ label: string;
+ value: string;
+ hint?: string;
+ tone?: "amber" | "red";
+}) {
+ const color =
+ tone === "red" ? "text-red-400" : tone === "amber" ? "text-amber-400" : "text-text-main";
+ return (
+ <div className="rounded-lg border border-border/40 bg-bg-subtle/30 px-3 py-2">
+ <div className="text-[10px] uppercase tracking-wide text-text-muted font-semibold truncate">
+ {label}
+ </div>
+ <div className={`text-xl font-bold tabular-nums leading-tight ${color}`}>{value}</div>
+ {hint && <div className="text-[10px] text-text-muted truncate">{hint}</div>}
+ </div>
+ );
+}
+
+function ProgressBarTinyColored({ value, max }: { value: number; max: number }) {
+ const pct = max > 0 ? Math.min((value / max) * 100, 100) : 0;
+ const color = pct >= 100 ? "#ef4444" : pct >= 80 ? "#f59e0b" : pct >= 50 ? "#eab308" : "#22c55e";
+ return (
+ <div className="w-full h-1 rounded-sm bg-black/[0.06] dark:bg-white/[0.06] overflow-hidden">
+ <div className="h-full" style={{ width: `${pct}%`, background: color }} />
+ </div>
+ );
+}
+
+function BudgetRow({
+ row,
+ isLast,
+ isExpanded,
+ isSelected,
+ onToggleExpand,
+ onToggleSelect,
+ formatCurrency,
+ formatDateTime,
+ breakdown,
+ onSave,
+ saving,
+}: {
+ row: KeyRow;
+ isLast: boolean;
+ isExpanded: boolean;
+ isSelected: boolean;
+ onToggleExpand: () => void;
+ onToggleSelect: () => void;
+ formatCurrency: (v: number | undefined) => string;
+ formatDateTime: (v: number | string | null | undefined) => string;
+ breakdown?: ProviderBreakdown[];
+ onSave: (payload: any) => void;
+ saving: boolean;
+}) {
+ const status = statusOf(row);
+ const meta = STATUS_META[status];
+ const today = row.budget?.totalCostToday || 0;
+ const month = row.budget?.totalCostMonth || 0;
+ const daily = row.budget?.dailyLimitUsd || 0;
+ const monthly = row.budget?.monthlyLimitUsd || 0;
+ const usedPct = pctUsed(row);
+
+ return (
+ <div style={{ borderBottom: !isLast || isExpanded ? "1px solid var(--color-border)" : "none" }}>
+ <div
+ className="items-center px-3 py-2.5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors"
+ style={{
+ display: "grid",
+ gridTemplateColumns: "24px 28px minmax(180px,1.6fr) 90px 100px 90px 100px 80px 100px",
+ gap: "8px",
+ borderLeft: `3px solid ${status === "all" ? "transparent" : meta.dot}`,
+ }}
+ >
+ {/* Checkbox */}
+ <div onClick={(e) => e.stopPropagation()}>
+ <input type="checkbox" checked={isSelected} onChange={onToggleSelect} />
+ </div>
+
+ {/* Expand chevron (clickable trigger) */}
+ <button
+ type="button"
+ onClick={onToggleExpand}
+ className="border-none bg-transparent p-0 flex items-center justify-center cursor-pointer"
+ aria-expanded={isExpanded}
+ >
+ <span className="material-symbols-outlined text-[18px] text-text-muted">
+ {isExpanded ? "expand_more" : "chevron_right"}
+ </span>
+ </button>
+
+ {/* Key info */}
+ <button
+ type="button"
+ onClick={onToggleExpand}
+ className="text-left border-none bg-transparent p-0 cursor-pointer min-w-0"
+ >
+ <div className="text-[13px] font-semibold text-text-main truncate">
+ {row.name || row.id}
</div>
- <div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
- <div className="space-y-1">
- <label className="text-sm text-text-muted block">{t("resetInterval")}</label>
- <select
- value={form.resetInterval}
- onChange={(e) => setForm({ ...form, resetInterval: e.target.value })}
- className="w-full px-3 py-2 rounded-lg border border-border/50 bg-surface/30 text-text-main text-sm focus:outline-none focus:ring-1 focus:ring-primary"
+ <div className="text-[10px] text-text-muted truncate">
+ {row.provider ? `${row.provider} · ` : ""}
+ {row.id}
+ </div>
+ </button>
+
+ <div className="text-right text-[12px] tabular-nums">{formatCurrency(today)}</div>
+ <div className="text-right text-[12px] tabular-nums">{formatCurrency(month)}</div>
+ <div className="text-right text-[11px] text-text-muted tabular-nums">
+ {daily > 0 ? `$${daily}/d` : "—"}
+ </div>
+ <div className="text-right text-[11px] text-text-muted tabular-nums">
+ {monthly > 0 ? `$${monthly}/m` : "—"}
+ </div>
+ <div className="text-right flex flex-col items-end gap-0.5">
+ <span className={`text-[11px] font-semibold tabular-nums ${meta.tone}`}>
+ {daily > 0 || monthly > 0 ? `${Math.round(usedPct)}%` : "—"}
+ </span>
+ {(daily > 0 || monthly > 0) && (
+ <div className="w-14">
+ <ProgressBarTinyColored value={usedPct} max={100} />
+ </div>
+ )}
+ </div>
+ <div className="text-center">
+ <span
+ className={`inline-block px-1.5 py-0.5 rounded text-[9px] font-bold border ${meta.bg} ${meta.tone}`}
+ >
+ {meta.label.toUpperCase()}
+ </span>
+ </div>
+ </div>
+
+ {isExpanded && (
+ <BudgetRowExpanded
+ // Remount the panel (resetting form state) whenever the budget
+ // snapshot changes — e.g. after a save round-trip. Avoids syncing
+ // state via useEffect (a known antipattern under react-hooks/purity).
+ key={budgetSnapshotKey(row.budget)}
+ row={row}
+ month={month}
+ monthly={monthly}
+ breakdown={breakdown}
+ formatCurrency={formatCurrency}
+ formatDateTime={formatDateTime}
+ onSave={onSave}
+ saving={saving}
+ />
+ )}
+ </div>
+ );
+}
+
+function budgetSnapshotKey(b: BudgetSummary | null | undefined): string {
+ if (!b) return "empty";
+ return [
+ b.dailyLimitUsd ?? "",
+ b.weeklyLimitUsd ?? "",
+ b.monthlyLimitUsd ?? "",
+ b.warningThreshold ?? "",
+ b.resetInterval ?? "",
+ b.resetTime ?? "",
+ ].join("|");
+}
+
+function BudgetRowExpanded({
+ row,
+ month,
+ monthly,
+ breakdown,
+ formatCurrency,
+ formatDateTime,
+ onSave,
+ saving,
+}: {
+ row: KeyRow;
+ month: number;
+ monthly: number;
+ breakdown?: ProviderBreakdown[];
+ formatCurrency: (v: number | undefined) => string;
+ formatDateTime: (v: number | string | null | undefined) => string;
+ onSave: (payload: any) => void;
+ saving: boolean;
+}) {
+ const t = useTranslations("usage");
+ const projection = projectEndOfMonth(month);
+ const projectionOver = monthly > 0 && projection > monthly;
+
+ const [form, setForm] = useState({
+ dailyLimitUsd: row.budget?.dailyLimitUsd ? String(row.budget.dailyLimitUsd) : "",
+ weeklyLimitUsd: row.budget?.weeklyLimitUsd ? String(row.budget.weeklyLimitUsd) : "",
+ monthlyLimitUsd: row.budget?.monthlyLimitUsd ? String(row.budget.monthlyLimitUsd) : "",
+ warningThreshold: row.budget?.warningThreshold
+ ? String(Math.round(row.budget.warningThreshold * 100))
+ : "80",
+ resetInterval: row.budget?.resetInterval || "daily",
+ resetTime: row.budget?.resetTime || "00:00",
+ });
+
+ return (
+ <div className="px-12 py-4 bg-bg-subtle/30 border-t border-border space-y-4">
+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
+ <div className="rounded-md border border-border/40 bg-bg-base/30 p-3">
+ <div className="flex items-center justify-between mb-2">
+ <h4 className="text-[11px] uppercase tracking-wide font-bold text-text-muted">
+ Projection
+ </h4>
+ <span className="text-[10px] text-text-muted">linear extrapolation</span>
+ </div>
+ <div className="flex items-baseline gap-3">
+ <div>
+ <div className="text-[10px] text-text-muted">This month so far</div>
+ <div className="text-lg font-bold tabular-nums">{formatCurrency(month)}</div>
+ </div>
+ <span className="text-text-muted">→</span>
+ <div>
+ <div className="text-[10px] text-text-muted">Projected end of month</div>
+ <div
+ className={`text-lg font-bold tabular-nums ${
+ projectionOver ? "text-amber-400" : "text-emerald-400"
+ }`}
>
- <option value="daily">{t("daily")}</option>
- <option value="weekly">{t("weekly")}</option>
- <option value="monthly">{t("monthly")}</option>
- </select>
+ {formatCurrency(projection)}
+ {projectionOver && (
+ <span className="text-[11px] ml-1.5">⚠ above ${monthly}/mo</span>
+ )}
+ </div>
</div>
- <Input
- label={t("resetTimeUtc")}
- type="time"
- value={form.resetTime}
- onChange={(e) => setForm({ ...form, resetTime: e.target.value })}
- />
</div>
- <div className="mb-4 rounded-lg border border-border/30 bg-surface/20 px-4 py-3 text-sm text-text-muted">
- <p>
- {t("weeklyLimitSummary", {
- value: weeklyLimit > 0 ? formatCurrency(weeklyLimit) : t("notConfigured"),
- })}
- </p>
- <p>{t("nextResetUtc", { value: formatDateTime(budget?.budgetResetAt) })}</p>
+ </div>
+
+ <div className="rounded-md border border-border/40 bg-bg-base/30 p-3">
+ <div className="flex items-center justify-between mb-2">
+ <h4 className="text-[11px] uppercase tracking-wide font-bold text-text-muted">
+ Cost breakdown (30d)
+ </h4>
+ <span className="text-[10px] text-text-muted">by provider</span>
</div>
- <Button variant="primary" onClick={handleSave} loading={saving}>
- {t("saveLimits")}
- </Button>
+ {breakdown === undefined ? (
+ <div className="text-[11px] text-text-muted py-2 animate-pulse">Loading…</div>
+ ) : breakdown.length === 0 ? (
+ <div className="text-[11px] text-text-muted py-2">No spend in last 30 days</div>
+ ) : (
+ <div className="space-y-1.5">
+ {breakdown.slice(0, 5).map((b) => (
+ <div key={b.provider} className="flex items-center gap-2 text-[11px]">
+ <span className="font-medium text-text-main w-24 truncate">{b.provider}</span>
+ <div className="flex-1 h-1.5 rounded-sm bg-black/[0.08] dark:bg-white/[0.06] overflow-hidden">
+ <div
+ className="h-full bg-primary rounded-sm"
+ style={{ width: `${Math.min(b.pct, 100)}%` }}
+ />
+ </div>
+ <span className="text-text-muted tabular-nums w-16 text-right">
+ {formatCurrency(b.cost)}
+ </span>
+ <span className="text-text-muted tabular-nums w-10 text-right">
+ {Math.round(b.pct)}%
+ </span>
+ </div>
+ ))}
+ </div>
+ )}
</div>
- </Card>
+ </div>
- {/* Budget Check Status */}
- {budget?.budgetCheck && (
- <Card className="p-4">
- <div className="flex items-center gap-2">
- <span
- className="material-symbols-outlined text-[20px]"
- aria-hidden="true"
- style={{ color: budget.budgetCheck.allowed ? "#22c55e" : "#ef4444" }}
+ <div className="rounded-md border border-border/40 bg-bg-base/30 p-3">
+ <h4 className="text-[11px] uppercase tracking-wide font-bold text-text-muted mb-3">
+ Limits
+ </h4>
+ <div className="grid grid-cols-1 md:grid-cols-4 gap-3 mb-3">
+ <Input
+ label="Daily $"
+ type="number"
+ step="0.01"
+ min="0"
+ placeholder="—"
+ value={form.dailyLimitUsd}
+ onChange={(e) => setForm({ ...form, dailyLimitUsd: e.target.value })}
+ />
+ <Input
+ label="Weekly $"
+ type="number"
+ step="0.01"
+ min="0"
+ placeholder="—"
+ value={form.weeklyLimitUsd}
+ onChange={(e) => setForm({ ...form, weeklyLimitUsd: e.target.value })}
+ />
+ <Input
+ label="Monthly $"
+ type="number"
+ step="0.01"
+ min="0"
+ placeholder="—"
+ value={form.monthlyLimitUsd}
+ onChange={(e) => setForm({ ...form, monthlyLimitUsd: e.target.value })}
+ />
+ <Input
+ label="Warn at %"
+ type="number"
+ min="1"
+ max="100"
+ value={form.warningThreshold}
+ onChange={(e) => setForm({ ...form, warningThreshold: e.target.value })}
+ />
+ </div>
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-3 items-end">
+ <div>
+ <label className="text-[11px] text-text-muted block mb-1">Reset interval</label>
+ <select
+ value={form.resetInterval}
+ onChange={(e) =>
+ setForm({ ...form, resetInterval: e.target.value as typeof form.resetInterval })
+ }
+ className="w-full px-2 py-1.5 rounded border border-border bg-bg-base text-sm"
>
- {budget.budgetCheck.allowed ? "check_circle" : "block"}
- </span>
- <span className="text-sm">
- {budget.budgetCheck.allowed
- ? t("budgetOk", { remaining: formatCurrency(budget.budgetCheck.remaining || 0) })
- : t("budgetExceeded")}
- </span>
+ <option value="daily">Daily</option>
+ <option value="weekly">Weekly</option>
+ <option value="monthly">Monthly</option>
+ </select>
</div>
- </Card>
- )}
+ <Input
+ label="Reset time (UTC)"
+ type="time"
+ value={form.resetTime}
+ onChange={(e) => setForm({ ...form, resetTime: e.target.value })}
+ />
+ <div className="text-[10px] text-text-muted">
+ Next reset:{" "}
+ <span className="font-mono">{formatDateTime(row.budget?.budgetResetAt)}</span>
+ </div>
+ </div>
+ <div className="flex items-center gap-2 mt-3">
+ <Button
+ variant="primary"
+ size="sm"
+ loading={saving}
+ onClick={() =>
+ onSave({
+ dailyLimitUsd: form.dailyLimitUsd ? parseFloat(form.dailyLimitUsd) : 0,
+ weeklyLimitUsd: form.weeklyLimitUsd ? parseFloat(form.weeklyLimitUsd) : 0,
+ monthlyLimitUsd: form.monthlyLimitUsd ? parseFloat(form.monthlyLimitUsd) : 0,
+ warningThresholdPct: parseInt(form.warningThreshold) || 80,
+ resetInterval: form.resetInterval,
+ resetTime: form.resetTime,
+ })
+ }
+ >
+ {t("saveLimits")}
+ </Button>
+ <span className="text-[10px] text-text-muted">
+ 💡 Hard-cap policy and email alerts coming soon
+ </span>
+ </div>
+ </div>
</div>
);
}
diff --git a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx
index be10d68fc0..6e02e40093 100644
--- a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx
@@ -23,6 +23,9 @@ import { translateUsageOrFallback, type UsageTranslationValues } from "./i18nFal
const LS_GROUP_BY = "omniroute:limits:groupBy";
const LS_EXPANDED_GROUPS = "omniroute:limits:expandedGroups";
+const LS_EXPANDED_ROWS = "omniroute:limits:expandedRows";
+const LS_PURCHASE_FILTER = "omniroute:limits:purchaseFilter";
+const LS_STATUS_FILTER = "omniroute:limits:statusFilter";
const MIN_FETCH_INTERVAL_MS = 30000; // Debounce per-connection fetches
const QUOTA_BAR_GREEN_THRESHOLD = 50;
@@ -72,6 +75,96 @@ const TIER_FILTERS = [
{ key: "unknown", labelKey: "tierUnknown" },
];
+type PurchaseTypeKey = "all" | "oauth-free" | "oauth-sub" | "apikey";
+type StatusKey = "all" | "critical" | "alert" | "ok" | "empty";
+
+const PURCHASE_TYPES: Array<{ key: PurchaseTypeKey; labelKey: string; fallback: string }> = [
+ { key: "all", labelKey: "purchaseAll", fallback: "All" },
+ { key: "oauth-sub", labelKey: "purchaseOauthSub", fallback: "Subscription" },
+ { key: "oauth-free", labelKey: "purchaseOauthFree", fallback: "OAuth Free" },
+ { key: "apikey", labelKey: "purchaseApiKey", fallback: "API Key" },
+];
+
+// Classify a connection into a purchase-type bucket. Free/unknown tiers on
+// OAuth are treated as "oauth-free"; all other OAuth as "oauth-sub".
+function getPurchaseType(authType: string | undefined, tierKey: string): PurchaseTypeKey {
+ if (authType === "apikey") return "apikey";
+ if (authType === "oauth") {
+ if (tierKey === "free" || tierKey === "unknown") return "oauth-free";
+ return "oauth-sub";
+ }
+ return "oauth-free";
+}
+
+// Worst-case status across a connection's quotas. "empty" only when there are
+// no quota windows at all (covers credit-only providers via the isCredits
+// branch separately).
+function getWorstStatus(quotas: any[] | undefined): StatusKey {
+ if (!quotas || quotas.length === 0) return "empty";
+ let worst: "ok" | "alert" = "ok";
+ for (const q of quotas) {
+ const pct = q.unlimited ? 100 : (q.remainingPercentage ?? calculatePercentage(q.used, q.total));
+ if (pct <= QUOTA_BAR_YELLOW_THRESHOLD) return "critical";
+ if (pct <= QUOTA_BAR_GREEN_THRESHOLD && worst === "ok") worst = "alert";
+ }
+ return worst;
+}
+
+// Soonest upcoming reset timestamp across a connection's quotas. Used to
+// sort "expiring first". Returns Infinity when nothing is scheduled.
+function getSoonestResetMs(quotas: any[] | undefined): number {
+ if (!quotas || quotas.length === 0) return Number.POSITIVE_INFINITY;
+ const now = Date.now();
+ let soonest = Number.POSITIVE_INFINITY;
+ for (const q of quotas) {
+ if (!q?.resetAt) continue;
+ const ts = new Date(q.resetAt).getTime();
+ if (Number.isFinite(ts) && ts > now && ts < soonest) soonest = ts;
+ }
+ return soonest;
+}
+
+const STATUS_TONE: Record<
+ StatusKey,
+ { bar: string; text: string; bg: string; ring: string; dot: string }
+> = {
+ all: {
+ bar: "var(--color-text-muted)",
+ text: "var(--color-text-main)",
+ bg: "var(--color-bg-subtle)",
+ ring: "var(--color-border)",
+ dot: "var(--color-text-muted)",
+ },
+ critical: {
+ bar: "#ef4444",
+ text: "#ef4444",
+ bg: "rgba(239,68,68,0.10)",
+ ring: "rgba(239,68,68,0.40)",
+ dot: "#ef4444",
+ },
+ alert: {
+ bar: "#eab308",
+ text: "#eab308",
+ bg: "rgba(234,179,8,0.10)",
+ ring: "rgba(234,179,8,0.40)",
+ dot: "#eab308",
+ },
+ ok: {
+ bar: "#22c55e",
+ text: "#22c55e",
+ bg: "rgba(34,197,94,0.10)",
+ ring: "rgba(34,197,94,0.40)",
+ dot: "#22c55e",
+ },
+ empty: {
+ bar: "var(--color-text-muted)",
+ text: "var(--color-text-muted)",
+ bg: "var(--color-bg-subtle)",
+ ring: "var(--color-border)",
+ dot: "var(--color-text-muted)",
+ },
+};
+
// Get bar color based on remaining percentage
function getBarColor(remainingPercentage) {
if (remainingPercentage > QUOTA_BAR_GREEN_THRESHOLD) {
@@ -144,6 +237,27 @@ export default function ProviderLimits() {
return new Set();
}
});
+ const [expandedRows, setExpandedRows] = useState<Set<string>>(() => {
+ if (typeof window === "undefined") return new Set();
+ try {
+ const saved = localStorage.getItem(LS_EXPANDED_ROWS);
+ return saved ? new Set(JSON.parse(saved)) : new Set();
+ } catch {
+ return new Set();
+ }
+ });
+ const [purchaseTypeFilter, setPurchaseTypeFilter] = useState<PurchaseTypeKey>(() => {
+ if (typeof window === "undefined") return "all";
+ const saved = localStorage.getItem(LS_PURCHASE_FILTER) as PurchaseTypeKey | null;
+ return saved && PURCHASE_TYPES.some((p) => p.key === saved) ? saved : "all";
+ });
+ const [statusFilter, setStatusFilter] = useState<StatusKey>(() => {
+ if (typeof window === "undefined") return "all";
+ const saved = localStorage.getItem(LS_STATUS_FILTER) as StatusKey | null;
+ if (saved === "all" || saved === "critical" || saved === "alert" || saved === "ok")
+ return saved;
+ return "all";
+ });
const lastFetchTimeRef = useRef({});
const staleProbeRef = useRef({});
@@ -431,12 +545,91 @@ export default function ProviderLimits() {
return counts;
}, [sortedConnections, tierByConnection]);
+ const purchaseTypeByConnection = useMemo(() => {
+ const out: Record<string, PurchaseTypeKey> = {};
+ for (const conn of sortedConnections) {
+ const tierKey = tierByConnection[conn.id]?.key || "unknown";
+ out[conn.id] = getPurchaseType(conn.authType, tierKey);
+ }
+ return out;
+ }, [sortedConnections, tierByConnection]);
+
+ const statusByConnection = useMemo(() => {
+ const out: Record<string, StatusKey> = {};
+ for (const conn of sortedConnections) {
+ out[conn.id] = getWorstStatus(quotaData[conn.id]?.quotas);
+ }
+ return out;
+ }, [sortedConnections, quotaData]);
+
+ const purchaseTypeCounts = useMemo(() => {
+ const counts: Record<PurchaseTypeKey, number> = {
+ all: sortedConnections.length,
+ "oauth-sub": 0,
+ "oauth-free": 0,
+ apikey: 0,
+ };
+ for (const conn of sortedConnections) {
+ const key = purchaseTypeByConnection[conn.id];
+ if (key && key !== "all") counts[key] = (counts[key] || 0) + 1;
+ }
+ return counts;
+ }, [sortedConnections, purchaseTypeByConnection]);
+
+ const statusCounts = useMemo(() => {
+ const counts: Record<StatusKey, number> = {
+ all: sortedConnections.length,
+ critical: 0,
+ alert: 0,
+ ok: 0,
+ empty: 0,
+ };
+ for (const conn of sortedConnections) {
+ const key = statusByConnection[conn.id] || "empty";
+ counts[key] = (counts[key] || 0) + 1;
+ }
+ return counts;
+ }, [sortedConnections, statusByConnection]);
+
+ // Apply tier + purchase-type + status filters together, then sort with
+ // "expiring first" so critical accounts surface at the top regardless of
+ // alphabetical/priority ordering.
const visibleConnections = useMemo(() => {
- if (tierFilter === "all") return sortedConnections;
- return sortedConnections.filter(
- (conn) => (tierByConnection[conn.id]?.key || "unknown") === tierFilter
- );
- }, [sortedConnections, tierByConnection, tierFilter]);
+ const filtered = sortedConnections.filter((conn) => {
+ const tierKey = tierByConnection[conn.id]?.key || "unknown";
+ if (tierFilter !== "all" && tierKey !== tierFilter) return false;
+ if (purchaseTypeFilter !== "all" && purchaseTypeByConnection[conn.id] !== purchaseTypeFilter)
+ return false;
+ if (statusFilter !== "all" && statusByConnection[conn.id] !== statusFilter) return false;
+ return true;
+ });
+
+ // Sort: critical → alert → ok → empty; within tier, soonest reset first.
+ const statusRank: Record<StatusKey, number> = {
+ critical: 0,
+ alert: 1,
+ ok: 2,
+ empty: 3,
+ all: 4,
+ };
+ return [...filtered].sort((a, b) => {
+ const sa = statusRank[statusByConnection[a.id] || "empty"];
+ const sb = statusRank[statusByConnection[b.id] || "empty"];
+ if (sa !== sb) return sa - sb;
+ const ra = getSoonestResetMs(quotaData[a.id]?.quotas);
+ const rb = getSoonestResetMs(quotaData[b.id]?.quotas);
+ return ra - rb;
+ });
+ }, [
+ sortedConnections,
+ tierByConnection,
+ tierFilter,
+ purchaseTypeFilter,
+ purchaseTypeByConnection,
+ statusFilter,
+ statusByConnection,
+ quotaData,
+ ]);
const groupedConnections = useMemo(() => {
if (groupBy !== "environment") return null;
@@ -473,6 +666,37 @@ export default function ProviderLimits() {
});
};
+ const toggleRow = useCallback((connectionId: string) => {
+ setExpandedRows((prev) => {
+ const next = new Set(prev);
+ next.has(connectionId) ? next.delete(connectionId) : next.add(connectionId);
+ try {
+ localStorage.setItem(LS_EXPANDED_ROWS, JSON.stringify([...next]));
+ } catch {
+ /* localStorage may be unavailable; persistence is best-effort */
+ }
+ return next;
+ });
+ }, []);
+
+ const handleSetPurchaseFilter = useCallback((value: PurchaseTypeKey) => {
+ setPurchaseTypeFilter(value);
+ try {
+ localStorage.setItem(LS_PURCHASE_FILTER, value);
+ } catch {
+ /* ignore */
+ }
+ }, []);
+
+ const handleSetStatusFilter = useCallback((value: StatusKey) => {
+ setStatusFilter(value);
+ try {
+ localStorage.setItem(LS_STATUS_FILTER, value);
+ } catch {
+ /* ignore */
+ }
+ }, []);
+
// Default inteligente: se não há preferência salva e há connections com grupo, abre em Por Ambiente
useEffect(() => {
if (typeof window === "undefined") return;
@@ -574,8 +798,86 @@ export default function ProviderLimits() {
</div>
</div>
+ {/* Summary Stats — clickable filters by status */}
+ <div className="grid grid-cols-2 sm:grid-cols-4 gap-2">
+ {(["all", "critical", "alert", "ok"] as StatusKey[]).map((key) => {
+ const tone = STATUS_TONE[key];
+ const labelMap: Record<string, string> = {
+ all: tr("statTotal", "Total"),
+ critical: tr("statCritical", "Crítico"),
+ alert: tr("statAlert", "Alerta"),
+ ok: tr("statHealthy", "Saudável"),
+ };
+ const active = statusFilter === key;
+ const count = statusCounts[key] || 0;
+ return (
+ <button
+ key={key}
+ type="button"
+ onClick={() => handleSetStatusFilter(key)}
+ className="text-left rounded-lg px-3 py-2.5 border transition-colors cursor-pointer"
+ style={{
+ background: active ? tone.bg : "var(--color-surface)",
+ borderColor: active ? tone.ring : "var(--color-border)",
+ }}
+ >
+ <div className="flex items-center justify-between">
+ <span className="text-[11px] uppercase tracking-wider font-semibold text-text-muted">
+ {labelMap[key]}
+ </span>
+ {key !== "all" && (
+ <span
+ className="w-1.5 h-1.5 rounded-full"
+ style={{ background: tone.dot }}
+ aria-hidden
+ />
+ )}
+ </div>
+ <div
+ className="mt-0.5 text-2xl font-bold tabular-nums"
+ style={{ color: key === "all" ? "var(--color-text-main)" : tone.text }}
+ >
+ {count}
+ </div>
+ </button>
+ );
+ })}
+ </div>
+
+ {/* Purchase Type Filter */}
+ <div className="flex items-center gap-2 flex-wrap">
+ <span className="text-[11px] uppercase tracking-wider text-text-muted font-semibold mr-1">
+ {tr("filterPurchaseTypeLabel", "Tipo")}
+ </span>
+ {PURCHASE_TYPES.map((type) => {
+ const count = purchaseTypeCounts[type.key] || 0;
+ if (type.key !== "all" && count === 0) return null;
+ const active = purchaseTypeFilter === type.key;
+ return (
+ <button
+ key={type.key}
+ onClick={() => handleSetPurchaseFilter(type.key)}
+ className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold cursor-pointer"
+ style={{
+ border: active
+ ? "1px solid var(--color-primary, #E54D5E)"
+ : "1px solid var(--color-border)",
+ background: active ? "rgba(229,77,94,0.1)" : "transparent",
+ color: active ? "var(--color-primary, #E54D5E)" : "var(--color-text-muted)",
+ }}
+ >
+ <span>{tr(type.labelKey, type.fallback)}</span>
+ <span className="opacity-85">{count}</span>
+ </button>
+ );
+ })}
+ </div>
+
{/* Tier Filters */}
<div className="flex items-center gap-2 flex-wrap">
+ <span className="text-[11px] uppercase tracking-wider text-text-muted font-semibold mr-1">
+ {tr("filterTierLabel", "Tier")}
+ </span>
{TIER_FILTERS.map((tier) => {
if (tier.key !== "all" && !tierCounts[tier.key]) return null;
const active = tierFilter === tier.key;
@@ -599,29 +901,165 @@ export default function ProviderLimits() {
})}
</div>
- {/* Account rows */}
+ {/* Account rows — expandable */}
<div className="rounded-xl border border-border overflow-hidden bg-surface">
- {/* Table header */}
- <div
- className="items-center px-4 py-2.5 border-b border-border text-[11px] font-semibold uppercase tracking-wider text-text-muted"
- style={{ display: "grid", gridTemplateColumns: LIMITS_GRID_TEMPLATE_COLUMNS }}
- >
- <div>{t("account")}</div>
- <div>{t("modelQuotas")}</div>
- <div className="text-center">{t("lastUsed")}</div>
- <div
- className="text-center truncate"
- title={tr(
- "quotaCutoffsColumnHelp",
- "Stop requests when remaining quota falls to this percentage or below."
- )}
- >
- {tr("quotaThresholdLabel", "Min left")}
- </div>
- <div className="text-center">{t("actions")}</div>
- </div>
-
{(() => {
+ // Compact "chip" representation of a quota for the collapsed row.
+ // Keeps the row visually predictable regardless of how many quotas
+ // a provider exposes (DeepSeek 1 chip vs Antigravity 3 chips).
+ const renderQuotaChips = (quotas: any[]) => {
+ const MAX = 5;
+ const visible = quotas.slice(0, MAX);
+ const extras = quotas.length - visible.length;
+ return (
+ <div className="flex items-center gap-1.5 flex-wrap min-w-0">
+ {visible.map((q, i) => {
+ if (q.isCredits) {
+ const colors = getBarColor(q.remainingPercentage ?? 0);
+ const sym = CURRENCY_SYMBOLS[q.currency] ?? q.currency ?? "";
+ const amount = (q.creditCount ?? q.remaining ?? 0).toLocaleString(undefined, {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2,
+ });
+ return (
+ <span
+ key={i}
+ className="inline-flex items-center gap-1 text-[11px] font-semibold py-0.5 px-2 rounded tabular-nums"
+ style={{ background: colors.bg, color: colors.text }}
+ title={`${formatQuotaLabel(q.name)} balance`}
+ >
+ 🪙 {sym}
+ {amount}
+ </span>
+ );
+ }
+ const pctRaw = q.unlimited
+ ? 100
+ : (q.remainingPercentage ?? calculatePercentage(q.used, q.total));
+ const pct = Math.round(pctRaw);
+ const colors = getBarColor(pct);
+ const shortName = q.displayName || formatQuotaLabel(q.name);
+ return (
+ <span
+ key={i}
+ className="inline-flex items-center gap-1 text-[11px] font-semibold py-0.5 px-2 rounded tabular-nums"
+ style={{ background: colors.bg, color: colors.text }}
+ title={`${shortName} — ${pct}% remaining`}
+ >
+ <span className="opacity-80 font-medium">{shortName}</span>
+ <span>{pct}%</span>
+ </span>
+ );
+ })}
+ {extras > 0 && (
+ <span className="text-[11px] text-text-muted font-medium">+{extras}</span>
+ )}
+ </div>
+ );
+ };
+
+ // Full quota bar for the expanded panel: large, with countdown and
+ // a status badge. Reused for credits via a branch on isCredits.
+ const renderQuotaDetail = (q: any, i: number) => {
+ if (q.isCredits) {
+ const colors = getBarColor(q.remainingPercentage ?? 0);
+ const sym = CURRENCY_SYMBOLS[q.currency] ?? q.currency ?? "";
+ const amount = (q.creditCount ?? q.remaining ?? 0).toLocaleString(undefined, {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2,
+ });
+ return (
+ <div
+ key={i}
+ className="rounded-md border border-border bg-bg/40 px-3 py-2.5 flex items-center justify-between gap-3"
+ >
+ <div className="flex items-center gap-2 min-w-0">
+ <span
+ className="material-symbols-outlined text-[18px]"
+ style={{ color: colors.text }}
+ >
+ paid
+ </span>
+ <div className="min-w-0">
+ <div className="text-[12px] font-semibold text-text-main">
+ {formatQuotaLabel(q.name) || tr("creditsLabel", "Credits")}
+ </div>
+ <div className="text-[10px] text-text-muted">
+ {tr("creditBalanceHint", "Saldo restante")}
+ </div>
+ </div>
+ </div>
+ <div
+ className="text-[16px] font-bold tabular-nums"
+ style={{ color: colors.text }}
+ >
+ {sym}
+ {amount}
+ </div>
+ </div>
+ );
+ }
+ const pctRaw = q.unlimited
+ ? 100
+ : (q.remainingPercentage ?? calculatePercentage(q.used, q.total));
+ const pct = Math.round(pctRaw);
+ const colors = getBarColor(pct);
+ const cd = formatCountdown(q.resetAt);
+ const shortName = q.displayName || formatQuotaLabel(q.name);
+ const staleAfterReset = q.staleAfterReset === true;
+ const usedNum = Number(q.used || 0);
+ const totalNum = Number(q.total || 0);
+ const showUsage = totalNum > 0 && !q.unlimited;
+ return (
+ <div key={i} className="rounded-md border border-border bg-bg/40 px-3 py-2.5">
+ <div className="flex items-center justify-between gap-3 mb-1.5">
+ <div className="flex items-center gap-2 min-w-0">
+ <span
+ className="text-[12px] font-semibold py-0.5 px-2 rounded"
+ style={{ background: colors.bg, color: colors.text }}
+ title={q.modelKey || q.name}
+ >
+ {shortName}
+ </span>
+ {q.unlimited && (
+ <span className="text-[10px] text-text-muted">
+ {tr("unlimitedLabel", "Unlimited")}
+ </span>
+ )}
+ {showUsage && (
+ <span className="text-[10px] text-text-muted tabular-nums">
+ {usedNum.toLocaleString()} / {totalNum.toLocaleString()}
+ </span>
+ )}
+ </div>
+ <div className="flex items-center gap-2 shrink-0">
+ {staleAfterReset ? (
+ <span className="text-[10px] text-text-muted">
+ ⟳ {tr("refreshing", "Refreshing")}
+ </span>
+ ) : cd ? (
+ <span className="text-[10px] text-text-muted">
+ ⏱ {tr("resetsIn", "reset em")} {cd}
+ </span>
+ ) : null}
+ <span
+ className="text-[13px] font-bold tabular-nums min-w-[40px] text-right"
+ style={{ color: colors.text }}
+ >
+ {pct}%
+ </span>
+ </div>
+ </div>
+ <div className="h-2 rounded-sm bg-black/[0.06] dark:bg-white/[0.06] overflow-hidden">
+ <div
+ className="h-full rounded-sm transition-[width] duration-300 ease-out"
+ style={{ width: `${Math.min(pct, 100)}%`, background: colors.bar }}
+ />
+ </div>
+ </div>
+ );
+ };
+
const renderRow = (conn, isLast) => {
const quota = quotaData[conn.id];
const isLoading = loading[conn.id];
@@ -633,279 +1071,277 @@ export default function ProviderLimits() {
const tierMeta = tierByConnection[conn.id] || normalizePlanTier(null);
const resolvedPlan = resolvedPlanByConnection[conn.id];
const refreshedAt = lastRefreshedAt[conn.id];
+ const isExpanded = expandedRows.has(conn.id);
+ const status = statusByConnection[conn.id] || "empty";
+ const statusTone = STATUS_TONE[status];
+
+ const overrides = (conn.quotaWindowThresholds || null) as Record<string, number> | null;
+ const hasOverrides = overrides && Object.keys(overrides).length > 0;
+ const connectionWindows = (quota?.quotas || []).filter(
+ (q: any) => q && typeof q.name === "string" && !q.isCredits
+ );
+ const connectionHasWindows = connectionWindows.length > 0;
+ let cutoffLabel: string = tr("quotaCutoffsButtonDefault", "Default");
+ if (hasOverrides && overrides) {
+ const entries = Object.entries(overrides);
+ const visible = entries
+ .slice(0, 2)
+ .map(([k, v]) => `${shortWindowLabel(k)}:${v}%`)
+ .join(" · ");
+ cutoffLabel = entries.length > 2 ? `${visible} +${entries.length - 2}` : visible;
+ }
return (
<div
key={conn.id}
- className="items-center px-4 py-3.5 transition-[background] duration-150 hover:bg-black/[0.03] dark:hover:bg-white/[0.02]"
style={{
- display: "grid",
- gridTemplateColumns: LIMITS_GRID_TEMPLATE_COLUMNS,
- borderBottom: !isLast ? "1px solid var(--color-border)" : "none",
+ borderBottom: !isLast || isExpanded ? "1px solid var(--color-border)" : "none",
}}
>
- {/* Account Info */}
- <div className="flex items-center gap-2.5 min-w-0">
- <div className="w-8 h-8 rounded-lg flex items-center justify-center overflow-hidden shrink-0">
- <ProviderIcon
- providerId={conn.provider}
- size={32}
- type="color"
- className="object-contain"
- />
+ {/* Collapsed row — clickable to expand */}
+ <button
+ type="button"
+ onClick={() => toggleRow(conn.id)}
+ className="w-full text-left items-center px-3 py-3 transition-[background] duration-150 hover:bg-black/[0.03] dark:hover:bg-white/[0.02] border-none bg-transparent cursor-pointer"
+ style={{
+ display: "grid",
+ gridTemplateColumns:
+ "28px minmax(220px,280px) minmax(160px,1fr) 96px 110px 36px",
+ gap: "8px",
+ borderLeft: `3px solid ${status === "all" || status === "empty" ? "transparent" : statusTone.dot}`,
+ }}
+ aria-expanded={isExpanded}
+ >
+ {/* Chevron + status dot */}
+ <div className="flex justify-center">
+ <span className="material-symbols-outlined text-[18px] text-text-muted">
+ {isExpanded ? "expand_less" : "expand_more"}
+ </span>
</div>
- <div className="min-w-0">
- <div className="text-[13px] font-semibold text-text-main truncate">
- {pickDisplayValue(
- [conn.name, conn.displayName, conn.email],
- emailsVisible,
- config.label
- )}
+
+ {/* Account Info */}
+ <div className="flex items-center gap-2.5 min-w-0">
+ <div className="w-8 h-8 rounded-lg flex items-center justify-center overflow-hidden shrink-0">
+ <ProviderIcon
+ providerId={conn.provider}
+ size={32}
+ type="color"
+ className="object-contain"
+ />
</div>
- <div className="flex items-center gap-1.5 mt-1 min-h-5">
- <span
- title={
- resolvedPlan
- ? t("rawPlanWithValue", { plan: resolvedPlan })
- : t("noPlanFromProvider")
- }
- className="inline-flex items-center shrink-0"
- >
- <Badge
- variant={tierMeta.variant}
- size="sm"
- dot
- className="h-5 leading-none"
+ <div className="min-w-0">
+ <div className="text-[13px] font-semibold text-text-main truncate">
+ {pickDisplayValue(
+ [conn.name, conn.displayName, conn.email],
+ emailsVisible,
+ config.label
+ )}
+ </div>
+ <div className="flex items-center gap-1.5 mt-0.5 min-h-5">
+ <span
+ title={
+ resolvedPlan
+ ? t("rawPlanWithValue", { plan: resolvedPlan })
+ : t("noPlanFromProvider")
+ }
+ className="inline-flex items-center shrink-0"
>
- {tierMeta.label}
- </Badge>
- </span>
- <span className="text-[11px] leading-none text-text-muted">
- {config.label}
- </span>
+ <Badge
+ variant={tierMeta.variant}
+ size="sm"
+ dot
+ className="h-5 leading-none"
+ >
+ {tierMeta.label}
+ </Badge>
+ </span>
+ <span className="text-[11px] leading-none text-text-muted">
+ {config.label}
+ </span>
+ </div>
</div>
</div>
- </div>
- {/* Quota Bars */}
- <div className="flex flex-wrap gap-x-3 gap-y-1.5 pr-3">
- {isLoading ? (
- <div className="flex items-center gap-1.5 text-text-muted text-xs">
- <span className="material-symbols-outlined animate-spin text-[14px]">
- progress_activity
- </span>
- {t("loadingQuotas")}
- </div>
- ) : error ? (
- <div className="flex items-center gap-1.5 text-xs text-red-500">
- <span className="material-symbols-outlined text-[14px]">error</span>
- <span className="overflow-hidden text-ellipsis whitespace-nowrap max-w-[300px]">
- {error}
- </span>
- </div>
- ) : quota?.message && (!quota.quotas || quota.quotas.length === 0) ? (
- <div className="text-xs text-text-muted italic">{quota.message}</div>
- ) : quota?.quotas?.length > 0 ? (
- quota.quotas.map((q, i) => {
- const remainingPercentageRaw = q.unlimited
- ? 100
- : (q.remainingPercentage ?? calculatePercentage(q.used, q.total));
- const remainingPercentage = Math.round(remainingPercentageRaw);
- const colors = getBarColor(remainingPercentage);
- const cd = formatCountdown(q.resetAt);
- const shortName = q.displayName || formatQuotaLabel(q.name);
- const staleAfterReset = q.staleAfterReset === true;
- const details = Array.isArray(q.details)
- ? q.details.filter((detail) => detail && detail.used > 0)
- : [];
-
- return (
- <div
- key={i}
- className={`flex items-center gap-1.5 shrink-0 ${
- i > 0 ? "border-l border-border/80 pl-3 ml-1" : ""
- }`}
- >
- {q.isCredits ? (
- /* ── AI Credits / Balance counter ── */
- <>
- <span
- className="text-[11px] font-semibold py-0.5 px-2 rounded whitespace-nowrap"
- style={{ background: colors.bg, color: colors.text }}
- >
- 🪙 {formatQuotaLabel(q.name)}
- </span>
- <span
- className="text-[12px] font-bold tabular-nums"
- style={{ color: colors.text }}
- >
- {CURRENCY_SYMBOLS[q.currency] ?? q.currency ?? ""}
- {(q.creditCount ?? q.remaining).toLocaleString(undefined, {
- minimumFractionDigits: 2,
- maximumFractionDigits: 2,
- })}
- </span>
- </>
- ) : (
- /* ── Standard quota bar ── */
- <>
- {/* Model label */}
- <span
- title={q.modelKey || q.name}
- className="text-[11px] font-semibold py-0.5 px-2 rounded whitespace-nowrap min-w-[60px] text-center"
- style={{ background: colors.bg, color: colors.text }}
- >
- {shortName}
- </span>
-
- {details.length > 0 ? (
- <span className="text-[10px] text-text-muted whitespace-nowrap">
- {details
- .map(
- (detail) => `${formatQuotaLabel(detail.name)} ${detail.used}`
- )
- .join(" · ")}
- </span>
- ) : null}
-
- {/* Countdown */}
- {staleAfterReset ? (
- <span className="text-[10px] text-text-muted whitespace-nowrap">
- ⟳ Refreshing...
- </span>
- ) : cd ? (
- <span className="text-[10px] text-text-muted whitespace-nowrap">
- ⏱ {cd}
- </span>
- ) : null}
-
- {/* Progress bar */}
- <div className="flex-1 h-1.5 rounded-sm bg-black/[0.06] dark:bg-white/[0.06] min-w-[60px] overflow-hidden">
- <div
- className="h-full rounded-sm transition-[width] duration-300 ease-out"
- style={{
- width: `${Math.min(remainingPercentage, 100)}%`,
- background: colors.bar,
- }}
- />
- </div>
-
- {/* Percentage */}
- <span
- className="text-[11px] font-semibold min-w-[32px] text-right"
- style={{ color: colors.text }}
- >
- {remainingPercentage}%
- </span>
- </>
- )}
- </div>
- );
- })
- ) : (
- <div className="text-xs text-text-muted italic">{t("noQuotaData")}</div>
- )}
- </div>
-
- {/* Last Refreshed */}
- <div className="text-center text-[11px]">
- {(() => {
- const stale = quota?.stale;
- const displayTime = stale?.since || refreshedAt;
- if (!displayTime) return <span className="text-text-muted">-</span>;
- const formatted = new Date(displayTime).toLocaleTimeString([], {
- hour: "2-digit",
- minute: "2-digit",
- second: "2-digit",
- hour12: false,
- });
- if (stale) {
- return (
- <span
- className="text-amber-500 cursor-help"
- title={t("staleQuotaTooltip")}
- aria-label={t("staleQuotaTooltip")}
- >
- {formatted}
+ {/* Compact quota chips */}
+ <div className="min-w-0 pr-2">
+ {isLoading ? (
+ <div className="flex items-center gap-1.5 text-text-muted text-xs">
+ <span className="material-symbols-outlined animate-spin text-[14px]">
+ progress_activity
</span>
- );
- }
- return <span className="text-text-muted">{formatted}</span>;
- })()}
- </div>
+ {t("loadingQuotas")}
+ </div>
+ ) : error ? (
+ <div className="flex items-center gap-1.5 text-xs text-red-500">
+ <span className="material-symbols-outlined text-[14px]">error</span>
+ <span className="overflow-hidden text-ellipsis whitespace-nowrap max-w-[300px]">
+ {error}
+ </span>
+ </div>
+ ) : quota?.message && (!quota.quotas || quota.quotas.length === 0) ? (
+ <div className="text-xs text-text-muted italic">{quota.message}</div>
+ ) : quota?.quotas?.length > 0 ? (
+ renderQuotaChips(quota.quotas)
+ ) : (
+ <div className="text-xs text-text-muted italic">{t("noQuotaData")}</div>
+ )}
+ </div>
- {/* Quota Threshold Cutoff — button opens modal */}
- <div className="flex justify-center items-center">
- {(() => {
- const overrides = (conn.quotaWindowThresholds || null) as Record<
- string,
- number
- > | null;
- const hasOverrides = overrides && Object.keys(overrides).length > 0;
- // Window list comes from the connection's own quota cache
- // (the same data that drives the Model Quotas bars), so the
- // button works for every provider with usage data — not
- // just providers that registered with quotaPreflight.
- const connectionWindows = (quota?.quotas || []).filter(
- (q: any) => q && typeof q.name === "string" && !q.isCredits
- );
- const connectionHasWindows = connectionWindows.length > 0;
- // Summary: up to 2 entries with short labels; "+N" for the rest.
- let label: string = tr("quotaCutoffsButtonDefault", "Default");
- if (hasOverrides && overrides) {
- const entries = Object.entries(overrides);
- const visible = entries
- .slice(0, 2)
- .map(([k, v]) => `${shortWindowLabel(k)}:${v}%`)
- .join(" · ");
- label = entries.length > 2 ? `${visible} +${entries.length - 2}` : visible;
- }
- return (
- <button
- type="button"
- onClick={() => {
+ {/* Last Refreshed */}
+ <div className="text-center text-[11px]">
+ {(() => {
+ const stale = quota?.stale;
+ const displayTime = stale?.since || refreshedAt;
+ if (!displayTime) return <span className="text-text-muted">-</span>;
+ const formatted = new Date(displayTime).toLocaleTimeString([], {
+ hour: "2-digit",
+ minute: "2-digit",
+ second: "2-digit",
+ hour12: false,
+ });
+ if (stale) {
+ return (
+ <span
+ className="text-amber-500"
+ title={t("staleQuotaTooltip")}
+ aria-label={t("staleQuotaTooltip")}
+ >
+ {formatted}
+ </span>
+ );
+ }
+ return <span className="text-text-muted">{formatted}</span>;
+ })()}
+ </div>
+
+ {/* Cutoff button — opens modal; stop propagation so row doesn't toggle */}
+ <div className="flex justify-center items-center">
+ <span
+ onClick={(e) => {
+ e.stopPropagation();
+ if (!connectionHasWindows) return;
+ setCutoffModalWindows(connectionWindows);
+ setCutoffModalConn(conn);
+ }}
+ role="button"
+ tabIndex={connectionHasWindows ? 0 : -1}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ e.stopPropagation();
+ if (!connectionHasWindows) return;
setCutoffModalWindows(connectionWindows);
setCutoffModalConn(conn);
- }}
- disabled={!connectionHasWindows}
- title={
- connectionHasWindows
- ? tr(
- "quotaCutoffsButtonHelp",
- "Edit minimum remaining quota cutoffs for this account."
- )
- : tr(
- "quotaCutoffsButtonDisabled",
- "No quota windows are available for this account yet."
- )
}
- className={`block w-full max-w-[70px] truncate px-1.5 py-1 rounded-md border text-[11px] font-medium tabular-nums transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${
- hasOverrides
- ? "border-primary/40 text-primary bg-primary/5"
- : "border-border text-text-muted hover:bg-black/[0.04] dark:hover:bg-white/[0.04]"
- }`}
- >
- {label}
- </button>
- );
- })()}
- </div>
+ }}
+ title={
+ connectionHasWindows
+ ? tr(
+ "quotaCutoffsButtonHelp",
+ "Edit minimum remaining quota cutoffs for this account."
+ )
+ : tr(
+ "quotaCutoffsButtonDisabled",
+ "No quota windows are available for this account yet."
+ )
+ }
+ className={`block w-full max-w-[100px] truncate text-center px-2 py-1 rounded-md border text-[11px] font-medium tabular-nums transition-colors ${
+ !connectionHasWindows ? "opacity-40 cursor-not-allowed" : "cursor-pointer"
+ } ${
+ hasOverrides
+ ? "border-primary/40 text-primary bg-primary/5"
+ : "border-border text-text-muted hover:bg-black/[0.04] dark:hover:bg-white/[0.04]"
+ }`}
+ >
+ {cutoffLabel}
+ </span>
+ </div>
- {/* Actions */}
- <div className="flex justify-center gap-0.5">
- <button
- onClick={() => refreshProvider(conn.id, conn.provider)}
- disabled={isLoading}
- title={t("refreshQuota")}
- className="p-1 rounded-md border-none bg-transparent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 opacity-60 hover:opacity-100 flex items-center justify-center transition-opacity duration-150"
- >
+ {/* Refresh — stop propagation */}
+ <div className="flex justify-center gap-0.5">
<span
- className={`material-symbols-outlined text-[16px] text-text-muted ${isLoading ? "animate-spin" : ""}`}
+ onClick={(e) => {
+ e.stopPropagation();
+ if (isLoading) return;
+ refreshProvider(conn.id, conn.provider);
+ }}
+ role="button"
+ tabIndex={isLoading ? -1 : 0}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ e.stopPropagation();
+ if (isLoading) return;
+ refreshProvider(conn.id, conn.provider);
+ }
+ }}
+ title={t("refreshQuota")}
+ className={`p-1 rounded-md flex items-center justify-center transition-opacity duration-150 ${
+ isLoading
+ ? "cursor-not-allowed opacity-30"
+ : "cursor-pointer opacity-60 hover:opacity-100"
+ }`}
>
- refresh
+ <span
+ className={`material-symbols-outlined text-[16px] text-text-muted ${isLoading ? "animate-spin" : ""}`}
+ >
+ refresh
+ </span>
</span>
- </button>
- </div>
+ </div>
+ </button>
+
+ {/* Expanded panel */}
+ {isExpanded && (
+ <div className="px-12 py-3 bg-bg-subtle/30 border-t border-border space-y-2">
+ {isLoading ? (
+ <div className="text-xs text-text-muted flex items-center gap-1.5">
+ <span className="material-symbols-outlined animate-spin text-[14px]">
+ progress_activity
+ </span>
+ {t("loadingQuotas")}
+ </div>
+ ) : error ? (
+ <div className="text-xs text-red-500 flex items-start gap-1.5">
+ <span className="material-symbols-outlined text-[14px]">error</span>
+ <span>{error}</span>
+ </div>
+ ) : quota?.quotas?.length > 0 ? (
+ <>
+ {quota.quotas.map((q: any, i: number) => renderQuotaDetail(q, i))}
+ <div className="flex items-center justify-end gap-2 pt-1">
+ <button
+ type="button"
+ disabled={!connectionHasWindows}
+ onClick={() => {
+ setCutoffModalWindows(connectionWindows);
+ setCutoffModalConn(conn);
+ }}
+ className="inline-flex items-center gap-1.5 text-[12px] font-medium px-3 py-1.5 rounded-md border border-border bg-bg-subtle hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer"
+ >
+ <span className="material-symbols-outlined text-[14px]">tune</span>
+ {tr("editCutoffs", "Editar Cutoffs")}
+ </button>
+ <button
+ type="button"
+ disabled={isLoading}
+ onClick={() => refreshProvider(conn.id, conn.provider)}
+ className="inline-flex items-center gap-1.5 text-[12px] font-medium px-3 py-1.5 rounded-md border border-border bg-bg-subtle hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer"
+ >
+ <span
+ className={`material-symbols-outlined text-[14px] ${isLoading ? "animate-spin" : ""}`}
+ >
+ refresh
+ </span>
+ {tr("forceRefresh", "Refresh agora")}
+ </button>
+ </div>
+ </>
+ ) : (
+ <div className="text-xs text-text-muted italic">{t("noQuotaData")}</div>
+ )}
+ </div>
+ )}
</div>
);
};
diff --git a/src/app/(dashboard)/home/page.tsx b/src/app/(dashboard)/home/page.tsx
index b6c0796ad3..0e27614634 100644
--- a/src/app/(dashboard)/home/page.tsx
+++ b/src/app/(dashboard)/home/page.tsx
@@ -3,6 +3,7 @@ import { getMachineId } from "@/shared/utils/machine";
import { getSettings } from "@/lib/localDb";
import HomePageClient from "../dashboard/HomePageClient";
import BootstrapBanner from "../dashboard/BootstrapBanner";
+import AutoRoutingBanner from "@/shared/components/AutoRoutingBanner";
export const dynamic = "force-dynamic";
@@ -16,6 +17,7 @@ export default async function HomePage() {
return (
<>
{isBootstrapped && <BootstrapBanner />}
+ <AutoRoutingBanner />
<HomePageClient machineId={machineId} />
</>
);
diff --git a/src/app/api/providers/test-batch/route.ts b/src/app/api/providers/test-batch/route.ts
index 0df170161f..a893875260 100644
--- a/src/app/api/providers/test-batch/route.ts
+++ b/src/app/api/providers/test-batch/route.ts
@@ -10,6 +10,7 @@ import {
SEARCH_PROVIDERS,
AUDIO_ONLY_PROVIDERS,
CLOUD_AGENT_PROVIDERS,
+ IDE_PROVIDER_IDS,
OPENAI_COMPATIBLE_PREFIX,
ANTHROPIC_COMPATIBLE_PREFIX,
} from "@/shared/constants/providers";
@@ -103,6 +104,8 @@ export async function POST(request) {
);
} else if (mode === "cloud-agent") {
connectionsToTest = allConnections.filter((c) => getAuthGroup(c.provider) === "cloud-agent");
+ } else if (mode === "ide") {
+ connectionsToTest = allConnections.filter((c) => IDE_PROVIDER_IDS.has(c.provider));
} else if (mode === "compatible") {
connectionsToTest = allConnections.filter((c) => isCompatibleProvider(c.provider));
} else if (mode === "all") {
@@ -111,7 +114,7 @@ export async function POST(request) {
return NextResponse.json(
{
error:
- "Invalid mode. Use: provider, oauth, free, apikey, compatible, all, web-cookie, search, audio, local, upstream-proxy, cloud-agent",
+ "Invalid mode. Use: provider, oauth, free, apikey, compatible, all, web-cookie, search, audio, local, upstream-proxy, cloud-agent, ide",
},
{ status: 400 }
);
diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.json
index 5b4dd222d4..33556a2d33 100644
--- a/src/i18n/messages/ar.json
+++ b/src/i18n/messages/ar.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/az.json b/src/i18n/messages/az.json
index 33abde2e32..215a010de2 100644
--- a/src/i18n/messages/az.json
+++ b/src/i18n/messages/az.json
@@ -743,7 +743,59 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos"
+ "contextCombos": "Engine Combos",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "Webhooks",
diff --git a/src/i18n/messages/bg.json b/src/i18n/messages/bg.json
index 2ec24e6e00..e65c01c7ca 100644
--- a/src/i18n/messages/bg.json
+++ b/src/i18n/messages/bg.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/bn.json b/src/i18n/messages/bn.json
index 9ae52e6eb1..98da7e899c 100644
--- a/src/i18n/messages/bn.json
+++ b/src/i18n/messages/bn.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/cs.json b/src/i18n/messages/cs.json
index ae0a21908d..37ad1d9114 100644
--- a/src/i18n/messages/cs.json
+++ b/src/i18n/messages/cs.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/da.json b/src/i18n/messages/da.json
index f45585ebd3..6cb6059080 100644
--- a/src/i18n/messages/da.json
+++ b/src/i18n/messages/da.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.json
index 12ac670764..6a50a0714d 100644
--- a/src/i18n/messages/de.json
+++ b/src/i18n/messages/de.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json
index 7b6311b558..42b691b4b6 100644
--- a/src/i18n/messages/en.json
+++ b/src/i18n/messages/en.json
@@ -759,7 +759,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -781,6 +781,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -795,7 +796,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -808,7 +811,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "Webhooks",
@@ -965,6 +1021,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
@@ -2930,7 +2987,7 @@
"noModelsFound": "No models found",
"importFailed": "Import failed",
"noNewModelsAdded": "No new models were added.",
- "adding": "Adding...",
+ "adding": "Adding…",
"close": "Close",
"importingModelsTitle": "Importing Models",
"copyModel": "Copy model",
@@ -2958,7 +3015,6 @@
"bulkAddAllKeys": "Add All Keys",
"bulkAddedCount": "{count, plural, one {# key added} other {# keys added}}",
"bulkFailedCount": "{count, plural, one {# failed} other {# failed}}",
- "adding": "Adding…",
"optional": "Optional",
"anthropicCompatibleName": "Anthropic Compatible",
"openaiCompatibleName": "OpenAI Compatible",
@@ -3408,7 +3464,10 @@
"freeTierProviders": "Free Tier Providers",
"freeTierLabel": "Free tier available",
"freeTierProvidersDesc": "Providers with free tiers — some require an API key signup, others need no credentials at all.",
- "providerSummaryAll": "Total"
+ "providerSummaryAll": "Total",
+ "ideProviders": "IDE Providers",
+ "ideProvidersDesc": "Editors with built-in AI subscription. Use the provider page to import credentials directly from the IDE keychain.",
+ "noIdeProviders": "No IDE providers match the current filters."
},
"settings": {
"title": "Settings",
@@ -4149,8 +4208,6 @@
"avgSavings": "Avg savings",
"simpleMode": "Simple",
"advancedMode": "Advanced",
- "filterCatalog": "Filter Catalog",
- "filterCatalogDesc": "Available output filters by category",
"searchFilters": "Search filters...",
"tooltipDedup": "How aggressively to remove repeated lines.",
"tooltipMaxChars": "Maximum characters per output block.",
diff --git a/src/i18n/messages/es.json b/src/i18n/messages/es.json
index fd5f209a79..d367835d40 100644
--- a/src/i18n/messages/es.json
+++ b/src/i18n/messages/es.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/fa.json b/src/i18n/messages/fa.json
index c29821d49d..b41fdd366a 100644
--- a/src/i18n/messages/fa.json
+++ b/src/i18n/messages/fa.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/fi.json b/src/i18n/messages/fi.json
index 3135e89dcc..21723fae47 100644
--- a/src/i18n/messages/fi.json
+++ b/src/i18n/messages/fi.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.json
index 0279828c52..a785280e43 100644
--- a/src/i18n/messages/fr.json
+++ b/src/i18n/messages/fr.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/gu.json b/src/i18n/messages/gu.json
index 716a2e756b..45223e7876 100644
--- a/src/i18n/messages/gu.json
+++ b/src/i18n/messages/gu.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/he.json b/src/i18n/messages/he.json
index acb2c4747b..c0b5fbb671 100644
--- a/src/i18n/messages/he.json
+++ b/src/i18n/messages/he.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.json
index 92f11ce3a2..66a1d57ff5 100644
--- a/src/i18n/messages/hi.json
+++ b/src/i18n/messages/hi.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/hu.json b/src/i18n/messages/hu.json
index 65254ca15d..ac024f027c 100644
--- a/src/i18n/messages/hu.json
+++ b/src/i18n/messages/hu.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/id.json b/src/i18n/messages/id.json
index 37aceb9a6c..8823468742 100644
--- a/src/i18n/messages/id.json
+++ b/src/i18n/messages/id.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/in.json b/src/i18n/messages/in.json
index 38973a1aa6..e3b3a79162 100644
--- a/src/i18n/messages/in.json
+++ b/src/i18n/messages/in.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.json
index e6ea12b695..db49b677fd 100644
--- a/src/i18n/messages/it.json
+++ b/src/i18n/messages/it.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/ja.json b/src/i18n/messages/ja.json
index 3c88d69a00..f396eea91a 100644
--- a/src/i18n/messages/ja.json
+++ b/src/i18n/messages/ja.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/ko.json b/src/i18n/messages/ko.json
index a23b6d1d00..55177490b1 100644
--- a/src/i18n/messages/ko.json
+++ b/src/i18n/messages/ko.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/mr.json b/src/i18n/messages/mr.json
index 895eec2418..81d936aed2 100644
--- a/src/i18n/messages/mr.json
+++ b/src/i18n/messages/mr.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/ms.json b/src/i18n/messages/ms.json
index 23ced84744..8c9c13253b 100644
--- a/src/i18n/messages/ms.json
+++ b/src/i18n/messages/ms.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/nl.json b/src/i18n/messages/nl.json
index ab26706573..ede87018b8 100644
--- a/src/i18n/messages/nl.json
+++ b/src/i18n/messages/nl.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/no.json b/src/i18n/messages/no.json
index 8951a39b9e..8ea46b812b 100644
--- a/src/i18n/messages/no.json
+++ b/src/i18n/messages/no.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/phi.json b/src/i18n/messages/phi.json
index b3be68eefc..6ad66e4527 100644
--- a/src/i18n/messages/phi.json
+++ b/src/i18n/messages/phi.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/pl.json b/src/i18n/messages/pl.json
index cd246547f6..5e87bd5c6d 100644
--- a/src/i18n/messages/pl.json
+++ b/src/i18n/messages/pl.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/pt-BR.json b/src/i18n/messages/pt-BR.json
index f5bbc2d365..17ec99e7ac 100644
--- a/src/i18n/messages/pt-BR.json
+++ b/src/i18n/messages/pt-BR.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Combos de Engines",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Compartilhamento de Cota",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,59 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Visão geral do painel",
+ "providersSubtitle": "Gerenciar provedores de IA",
+ "quotaTrackerSubtitle": "Acompanhar limites de uso",
+ "providerQuotaSubtitle": "Acompanhar limites de uso por provedor",
+ "runtimeSubtitle": "Resiliência e sessões em tempo real",
+ "contextCombosSubtitle": "Combinar engines de compressão",
+ "cliToolsSubtitle": "Configurar runtimes CLI",
+ "agentsSubtitle": "Gerenciar agentes locais",
+ "cloudAgentsSubtitle": "Gerenciar agentes na nuvem",
+ "apiEndpointsSubtitle": "Expor endpoints customizados",
+ "proxySubtitle": "Configurações do proxy HTTP",
+ "mitmProxySubtitle": "Interceptação MITM",
+ "oneProxySubtitle": "Gateway proxy público",
+ "usageSubtitle": "Estatísticas de tráfego e uso",
+ "analyticsComboHealthSubtitle": "Confiabilidade dos targets do combo",
+ "analyticsUtilizationSubtitle": "Utilização de provedores",
+ "costsSubtitle": "Detalhamento de gastos",
+ "cacheSubtitle": "Taxa de acertos do cache",
+ "analyticsCompressionSubtitle": "Estatísticas de economia de tokens",
+ "analyticsSearchSubtitle": "Analytics das ferramentas de busca",
+ "analyticsEvalsSubtitle": "Resultados das suites de avaliação",
+ "logsSubtitle": "Logs da aplicação",
+ "logsProxySubtitle": "Logs de tráfego do proxy",
+ "consoleLogsSubtitle": "Saída do console",
+ "logsActivitySubtitle": "Log de atividade do usuário",
+ "healthSubtitle": "Verificação de saúde do sistema",
+ "costsPricingSubtitle": "Regras de preço por modelo",
+ "costsBudgetSubtitle": "Limites de orçamento",
+ "auditLogSubtitle": "Auditoria de autorização",
+ "auditMcpSubtitle": "Auditoria do servidor MCP",
+ "auditA2aSubtitle": "Auditoria do protocolo A2A",
+ "translatorSubtitle": "Conversão de formatos",
+ "playgroundSubtitle": "Testar prompts ao vivo",
+ "searchToolsSubtitle": "Registro de ferramentas de busca",
+ "memorySubtitle": "Memória persistente do agente",
+ "omniSkillsSubtitle": "Registro de skills sandbox",
+ "agentSkillsSubtitle": "Registro de skills A2A",
+ "mcpSubtitle": "Controles do servidor MCP",
+ "a2aSubtitle": "Servidor do protocolo A2A",
+ "mediaSubtitle": "Arquivos de mídia em cache",
+ "batchFilesSubtitle": "Arquivos de entrada/saída de batch",
+ "settingsSubtitle": "Todas as configurações",
+ "settingsGeneralSubtitle": "Básicos do app",
+ "settingsAppearanceSubtitle": "Tema e layout",
+ "settingsAiSubtitle": "Padrões de comportamento da IA",
+ "globalRoutingSubtitle": "Regras de roteamento global",
+ "settingsResilienceSubtitle": "Retries e circuit breakers",
+ "settingsAdvancedSubtitle": "Opções avançadas",
+ "settingsSecuritySubtitle": "Auth e criptografia",
+ "docsSubtitle": "Documentação",
+ "issuesSubtitle": "Reportar um bug",
+ "changelogSubtitle": "Notas de versão"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +986,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Observabilidade de runtime — circuit breakers, cooldowns, lockouts de modelo, sessões e alertas de quota",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
@@ -3216,7 +3272,10 @@
"zedImportNetworkError": "Erro de rede ao tentar importar do Zed.",
"zedImportNone": "Nenhuma credencial OAuth suportada encontrada no Zed IDE.",
"zedImportSuccess": "Importadas {count} credencial(is) do Zed IDE ({providers}).",
- "zedImporting": "Importando..."
+ "zedImporting": "Importando...",
+ "ideProviders": "Provedores IDE",
+ "ideProvidersDesc": "Editores com assinatura de IA integrada. Use a página do provedor para importar credenciais diretamente do keychain da IDE.",
+ "noIdeProviders": "Nenhum provedor IDE corresponde aos filtros atuais."
},
"settings": {
"title": "Configurações",
diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.json
index 9312804176..745642c520 100644
--- a/src/i18n/messages/pt.json
+++ b/src/i18n/messages/pt.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Combos de Engines",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,57 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Visão geral do painel",
+ "providersSubtitle": "Gerenciar provedores de IA",
+ "quotaTrackerSubtitle": "Acompanhar limites de uso",
+ "contextCombosSubtitle": "Combinar engines de compressão",
+ "cliToolsSubtitle": "Configurar runtimes CLI",
+ "agentsSubtitle": "Gerenciar agentes locais",
+ "cloudAgentsSubtitle": "Gerenciar agentes na nuvem",
+ "apiEndpointsSubtitle": "Expor endpoints customizados",
+ "proxySubtitle": "Configurações do proxy HTTP",
+ "mitmProxySubtitle": "Interceptação MITM",
+ "oneProxySubtitle": "Gateway proxy público",
+ "usageSubtitle": "Estatísticas de tráfego e uso",
+ "analyticsComboHealthSubtitle": "Confiabilidade dos targets do combo",
+ "analyticsUtilizationSubtitle": "Utilização de provedores",
+ "costsSubtitle": "Detalhamento de gastos",
+ "cacheSubtitle": "Taxa de acertos do cache",
+ "analyticsCompressionSubtitle": "Estatísticas de economia de tokens",
+ "analyticsSearchSubtitle": "Analytics das ferramentas de busca",
+ "analyticsEvalsSubtitle": "Resultados das suites de avaliação",
+ "logsSubtitle": "Logs da aplicação",
+ "logsProxySubtitle": "Logs de tráfego do proxy",
+ "consoleLogsSubtitle": "Saída do console",
+ "logsActivitySubtitle": "Log de atividade do usuário",
+ "healthSubtitle": "Verificação de saúde do sistema",
+ "costsPricingSubtitle": "Regras de preço por modelo",
+ "costsBudgetSubtitle": "Limites de orçamento",
+ "auditLogSubtitle": "Auditoria de autorização",
+ "auditMcpSubtitle": "Auditoria do servidor MCP",
+ "auditA2aSubtitle": "Auditoria do protocolo A2A",
+ "translatorSubtitle": "Conversão de formatos",
+ "playgroundSubtitle": "Testar prompts ao vivo",
+ "searchToolsSubtitle": "Registro de ferramentas de busca",
+ "memorySubtitle": "Memória persistente do agente",
+ "omniSkillsSubtitle": "Registro de skills sandbox",
+ "agentSkillsSubtitle": "Registro de skills A2A",
+ "mcpSubtitle": "Controles do servidor MCP",
+ "a2aSubtitle": "Servidor do protocolo A2A",
+ "mediaSubtitle": "Arquivos de mídia em cache",
+ "batchFilesSubtitle": "Arquivos de entrada/saída de batch",
+ "settingsSubtitle": "Todas as configurações",
+ "settingsGeneralSubtitle": "Básicos do app",
+ "settingsAppearanceSubtitle": "Tema e layout",
+ "settingsAiSubtitle": "Padrões de comportamento da IA",
+ "globalRoutingSubtitle": "Regras de roteamento global",
+ "settingsResilienceSubtitle": "Retries e circuit breakers",
+ "settingsAdvancedSubtitle": "Opções avançadas",
+ "settingsSecuritySubtitle": "Auth e criptografia",
+ "docsSubtitle": "Documentação",
+ "issuesSubtitle": "Reportar um bug",
+ "changelogSubtitle": "Notas de versão"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +984,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/ro.json b/src/i18n/messages/ro.json
index efe08c300e..c132b88804 100644
--- a/src/i18n/messages/ro.json
+++ b/src/i18n/messages/ro.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json
index 7db03f0882..4052246b54 100644
--- a/src/i18n/messages/ru.json
+++ b/src/i18n/messages/ru.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/sk.json b/src/i18n/messages/sk.json
index 4d1be335c8..55ed33698c 100644
--- a/src/i18n/messages/sk.json
+++ b/src/i18n/messages/sk.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/sv.json b/src/i18n/messages/sv.json
index 49afdd170e..8e3b7a5fec 100644
--- a/src/i18n/messages/sv.json
+++ b/src/i18n/messages/sv.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/sw.json b/src/i18n/messages/sw.json
index 38973a1aa6..e3b3a79162 100644
--- a/src/i18n/messages/sw.json
+++ b/src/i18n/messages/sw.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/ta.json b/src/i18n/messages/ta.json
index fdf14cfdbc..381f5ec643 100644
--- a/src/i18n/messages/ta.json
+++ b/src/i18n/messages/ta.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/te.json b/src/i18n/messages/te.json
index a7bf7ae0d9..f7665f2a86 100644
--- a/src/i18n/messages/te.json
+++ b/src/i18n/messages/te.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/th.json b/src/i18n/messages/th.json
index ed3dbdf275..422faba905 100644
--- a/src/i18n/messages/th.json
+++ b/src/i18n/messages/th.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/tr.json b/src/i18n/messages/tr.json
index c511eb0aa6..41552c2499 100644
--- a/src/i18n/messages/tr.json
+++ b/src/i18n/messages/tr.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/uk-UA.json b/src/i18n/messages/uk-UA.json
index c239eb5691..becaac0bf2 100644
--- a/src/i18n/messages/uk-UA.json
+++ b/src/i18n/messages/uk-UA.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/ur.json b/src/i18n/messages/ur.json
index 05eddb1b7b..cf8bdeada4 100644
--- a/src/i18n/messages/ur.json
+++ b/src/i18n/messages/ur.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/vi.json b/src/i18n/messages/vi.json
index 7b3e6f0ae1..2ebec5e3ee 100644
--- a/src/i18n/messages/vi.json
+++ b/src/i18n/messages/vi.json
@@ -743,7 +743,7 @@
"contextSection": "Context & Cache",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "Compression Combos",
+ "contextCombos": "Engine Combos",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "__MISSING__:Webhooks",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/i18n/messages/zh-CN.json b/src/i18n/messages/zh-CN.json
index ec3a236b0a..dadb9306b9 100644
--- a/src/i18n/messages/zh-CN.json
+++ b/src/i18n/messages/zh-CN.json
@@ -743,7 +743,7 @@
"contextSection": "上下文与缓存",
"contextCaveman": "Caveman",
"contextRtk": "RTK",
- "contextCombos": "压缩组合",
+ "contextCombos": "引擎组合",
"routingSection": "Routing",
"protocolsSection": "Protocols",
"agentsAiSection": "Agents & AI",
@@ -765,6 +765,7 @@
"analyticsComboHealth": "Combo Health",
"analyticsCompression": "Compression",
"costsBudget": "Budget",
+ "costsQuotaShare": "Quota Sharing",
"costsPricing": "Pricing",
"logsProxy": "Proxy Logs",
"logsConsole": "Console",
@@ -778,7 +779,9 @@
"settingsResilience": "Resilience",
"settingsAdvanced": "Advanced",
"omniProxySection": "OmniProxy",
- "quotaTracker": "Quota Tracker",
+ "quotaTracker": "Provider Quota",
+ "providerQuota": "Provider Quota",
+ "runtime": "Runtime",
"consoleLogs": "Console Logs",
"globalRouting": "Global Routing",
"mitmProxy": "MITM Proxy",
@@ -791,7 +794,60 @@
"proxyGroup": "Proxy",
"costsParametersGroup": "Costs Parameters",
"auditGroup": "Audit",
- "batchGroup": "Batch"
+ "batchGroup": "Batch",
+ "homeSubtitle": "Dashboard overview",
+ "providersSubtitle": "Manage AI providers",
+ "quotaTrackerSubtitle": "Track usage limits",
+ "providerQuotaSubtitle": "Track provider usage limits",
+ "runtimeSubtitle": "Realtime resilience & sessions",
+ "contextCombosSubtitle": "Combine compression engines",
+ "cliToolsSubtitle": "Configure CLI runtimes",
+ "agentsSubtitle": "Manage local agents",
+ "cloudAgentsSubtitle": "Manage cloud-based agents",
+ "apiEndpointsSubtitle": "Expose custom endpoints",
+ "proxySubtitle": "HTTP proxy settings",
+ "mitmProxySubtitle": "MITM interception",
+ "oneProxySubtitle": "Public proxy gateway",
+ "usageSubtitle": "Traffic and usage stats",
+ "analyticsComboHealthSubtitle": "Combo target reliability",
+ "analyticsUtilizationSubtitle": "Provider utilization",
+ "costsSubtitle": "Spend breakdown",
+ "cacheSubtitle": "Cache hit rates",
+ "analyticsCompressionSubtitle": "Token savings stats",
+ "analyticsSearchSubtitle": "Search tool analytics",
+ "analyticsEvalsSubtitle": "Eval suite results",
+ "logsSubtitle": "Application logs",
+ "logsProxySubtitle": "Proxy traffic logs",
+ "consoleLogsSubtitle": "Console output",
+ "logsActivitySubtitle": "User activity log",
+ "healthSubtitle": "System health check",
+ "costsPricingSubtitle": "Per-model pricing rules",
+ "costsBudgetSubtitle": "Budget limits",
+ "costsQuotaShareSubtitle": "Share provider quotas across keys",
+ "auditLogSubtitle": "Authorization audit",
+ "auditMcpSubtitle": "MCP server audit",
+ "auditA2aSubtitle": "A2A protocol audit",
+ "translatorSubtitle": "Format conversion",
+ "playgroundSubtitle": "Test prompts live",
+ "searchToolsSubtitle": "Search tool registry",
+ "memorySubtitle": "Persistent agent memory",
+ "omniSkillsSubtitle": "Sandbox skill registry",
+ "agentSkillsSubtitle": "A2A skill registry",
+ "mcpSubtitle": "MCP server controls",
+ "a2aSubtitle": "A2A protocol server",
+ "mediaSubtitle": "Cached media files",
+ "batchFilesSubtitle": "Batch input/output files",
+ "settingsSubtitle": "All settings",
+ "settingsGeneralSubtitle": "App basics",
+ "settingsAppearanceSubtitle": "Theme and layout",
+ "settingsAiSubtitle": "AI behavior defaults",
+ "globalRoutingSubtitle": "Global routing rules",
+ "settingsResilienceSubtitle": "Retries and breakers",
+ "settingsAdvancedSubtitle": "Power user options",
+ "settingsSecuritySubtitle": "Auth and encryption",
+ "docsSubtitle": "Documentation",
+ "issuesSubtitle": "Report a bug",
+ "changelogSubtitle": "Release notes"
},
"webhooks": {
"title": "Webhook",
@@ -931,6 +987,7 @@
"costsDescription": "Track spending, analyze trends, and manage your AI budget across all providers",
"cacheDescription": "Monitor provider prompt cache efficiency and local semantic response reuse.",
"limitsDescription": "Configure rate limits and quotas per API key and provider",
+ "runtimeDescription": "Live runtime observability — circuit breakers, cooldowns, model lockouts, sessions and quota alerts",
"apiManagerDescription": "Manage API keys and access control for your OmniRoute instance",
"batchDescription": "Process large volumes of requests asynchronously with batched API calls",
"contextCavemanDescription": "Rule-based message compression, language packs, analytics and output mode controls.",
diff --git a/src/lib/db/settings.ts b/src/lib/db/settings.ts
index d61c840f9f..4135f4dd29 100644
--- a/src/lib/db/settings.ts
+++ b/src/lib/db/settings.ts
@@ -82,7 +82,7 @@ export async function getSettings() {
const db = getDbInstance();
const rows = db.prepare("SELECT key, value FROM key_value WHERE namespace = 'settings'").all();
const settings: Record<string, unknown> = {
- cloudEnabled: false,
+ cloudEnabled: true,
tailscaleEnabled: false,
tailscaleUrl: "",
stickyRoundRobinLimit: 3,
diff --git a/src/shared/components/Header.tsx b/src/shared/components/Header.tsx
index 0f73e0aa11..bc188f32a3 100644
--- a/src/shared/components/Header.tsx
+++ b/src/shared/components/Header.tsx
@@ -36,7 +36,8 @@ const HEADER_DESCRIPTIONS: Partial<Record<HideableSidebarItemId, string>> = {
costs: "costsDescription",
analytics: "analyticsDescription",
cache: "cacheDescription",
- limits: "limitsDescription",
+ quota: "limitsDescription",
+ runtime: "runtimeDescription",
media: "mediaDescription",
agents: "agentsDescription",
"cloud-agents": "cloudAgentsDescription",
@@ -90,10 +91,6 @@ const HEADER_DESCRIPTIONS: Partial<Record<HideableSidebarItemId, string>> = {
"1proxy": "oneProxyDescription",
// OmniProxy items
"cli-tools": "cliToolsDescription",
- agents: "agentsDescription",
- "cloud-agents": "cloudAgentsDescription",
- "api-endpoints": "apiEndpointsDescription",
- webhooks: "webhooksDescription",
};
// Build href → sidebar item lookup (non-external items only)
diff --git a/src/shared/components/MonacoEditor.tsx b/src/shared/components/MonacoEditor.tsx
new file mode 100644
index 0000000000..e2026f35e3
--- /dev/null
+++ b/src/shared/components/MonacoEditor.tsx
@@ -0,0 +1,23 @@
+"use client";
+
+import dynamic from "next/dynamic";
+import type { EditorProps } from "@monaco-editor/react";
+
+// Self-hosted Monaco. Configures @monaco-editor/react to use the bundled
+// `monaco-editor` package instead of the default jsdelivr CDN, which is
+// blocked by our CSP (script-src 'self'). Keep all Editor imports going
+// through this wrapper so the loader is configured exactly once.
+const MonacoEditor = dynamic<EditorProps>(
+ async () => {
+ const [{ default: Editor, loader }, monaco] = await Promise.all([
+ import("@monaco-editor/react"),
+ import("monaco-editor"),
+ ]);
+ loader.config({ monaco });
+ return Editor;
+ },
+ { ssr: false }
+);
+
+export type { EditorProps };
+export default MonacoEditor;
diff --git a/src/shared/components/layouts/DashboardLayout.tsx b/src/shared/components/layouts/DashboardLayout.tsx
index 62ba2e244b..4a389878d4 100644
--- a/src/shared/components/layouts/DashboardLayout.tsx
+++ b/src/shared/components/layouts/DashboardLayout.tsx
@@ -6,7 +6,6 @@ import Header from "../Header";
import NotificationToast from "../NotificationToast";
import MaintenanceBanner from "../MaintenanceBanner";
import { useIsElectron } from "@/shared/hooks/useElectron";
-import AutoRoutingBanner from "../AutoRoutingBanner";
const SIDEBAR_COLLAPSED_KEY = "sidebar-collapsed";
const isE2EMode = process.env.NEXT_PUBLIC_OMNIROUTE_E2E_MODE === "1";
@@ -77,7 +76,6 @@ export default function DashboardLayout({ children }) {
>
<Header onMenuClick={() => setSidebarOpen(true)} />
{!isE2EMode && <MaintenanceBanner />}
- <AutoRoutingBanner />
<div className="flex-1 min-h-0 overflow-y-auto overflow-x-hidden custom-scrollbar p-4 sm:p-6 lg:p-10">
<div className="max-w-7xl mx-auto w-full">{children}</div>
</div>
diff --git a/src/shared/constants/providers.ts b/src/shared/constants/providers.ts
index bafa0fe222..e6270fa5fb 100644
--- a/src/shared/constants/providers.ts
+++ b/src/shared/constants/providers.ts
@@ -82,6 +82,28 @@ export const OAUTH_PROVIDERS = {
"OAuth application with ai_features + read_user scopes. Configure GITLAB_DUO_OAUTH_CLIENT_ID and optionally GITLAB_DUO_OAUTH_CLIENT_SECRET on this OmniRoute instance.",
},
cursor: { id: "cursor", alias: "cu", name: "Cursor IDE", icon: "edit_note", color: "#00D4AA" },
+ zed: {
+ id: "zed",
+ alias: "zd",
+ name: "Zed IDE",
+ icon: "code",
+ color: "#084CCF",
+ textIcon: "ZD",
+ website: "https://zed.dev",
+ authHint:
+ "Zed stores LLM provider credentials (OpenAI, Anthropic, Google, Mistral, xAI) in the OS keychain. Use the Import button below to discover and import them automatically.",
+ },
+ trae: {
+ id: "trae",
+ alias: "tr",
+ name: "Trae",
+ icon: "edit_square",
+ color: "#FF7849",
+ textIcon: "TR",
+ website: "https://trae.ai",
+ authHint:
+ "Trae is an AI-native IDE by ByteDance. Sign in inside Trae and paste your API token or use OAuth device flow here.",
+ },
"kimi-coding": {
id: "kimi-coding",
alias: "kmc",
@@ -1721,6 +1743,11 @@ export const VIDEO_PROVIDER_IDS = new Set([
"leonardo",
]);
+// IDE Providers: editors with built-in AI subscription (separate section in UI).
+// These providers live in OAUTH_PROVIDERS but render under "IDE Providers"
+// instead of "OAuth Providers" to avoid visual duplication.
+export const IDE_PROVIDER_IDS = new Set(["cursor", "zed", "trae"]);
+
export const EMBEDDING_RERANK_PROVIDER_IDS = new Set(["voyage-ai", "jina-ai"]);
// Local / Self-Hosted Providers
diff --git a/src/shared/constants/sidebarVisibility.ts b/src/shared/constants/sidebarVisibility.ts
index 6a8db5a503..082b04f5a1 100644
--- a/src/shared/constants/sidebarVisibility.ts
+++ b/src/shared/constants/sidebarVisibility.ts
@@ -6,7 +6,7 @@ export const HIDEABLE_SIDEBAR_ITEM_IDS = [
"endpoints",
"providers",
"combos",
- "limits",
+ "quota",
// OmniProxy > Compression Context
"context-caveman",
"context-rtk",
@@ -37,9 +37,11 @@ export const HIDEABLE_SIDEBAR_ITEM_IDS = [
"logs-console",
"logs-activity",
"health",
+ "runtime",
// Monitoring > Costs Parameters
"costs-pricing",
"costs-budget",
+ "costs-quota-share",
// Monitoring > Audit
"audit",
"audit-mcp",
@@ -128,7 +130,14 @@ export function getSectionItems(
// ─── Item arrays ────────────────────────────────────────────────────────────
const HOME_ITEMS: readonly SidebarItemDefinition[] = [
- { id: "home", href: "/home", i18nKey: "home", icon: "home", exact: true },
+ {
+ id: "home",
+ href: "/home",
+ i18nKey: "home",
+ subtitleKey: "homeSubtitle",
+ icon: "home",
+ exact: true,
+ },
];
const OMNI_PROXY_ITEMS: readonly SidebarItemDefinition[] = [
@@ -146,7 +155,13 @@ const OMNI_PROXY_ITEMS: readonly SidebarItemDefinition[] = [
subtitleKey: "apiManagerSubtitle",
icon: "vpn_key",
},
- { id: "providers", href: "/dashboard/providers", i18nKey: "providers", icon: "dns" },
+ {
+ id: "providers",
+ href: "/dashboard/providers",
+ i18nKey: "providers",
+ subtitleKey: "providersSubtitle",
+ icon: "dns",
+ },
{
id: "combos",
href: "/dashboard/combos",
@@ -154,7 +169,13 @@ const OMNI_PROXY_ITEMS: readonly SidebarItemDefinition[] = [
subtitleKey: "combosSubtitle",
icon: "layers",
},
- { id: "limits", href: "/dashboard/limits", i18nKey: "quotaTracker", icon: "tune" },
+ {
+ id: "quota",
+ href: "/dashboard/quota",
+ i18nKey: "providerQuota",
+ subtitleKey: "providerQuotaSubtitle",
+ icon: "tune",
+ },
];
const COMPRESSION_CONTEXT_GROUP: SidebarItemGroup = {
@@ -181,6 +202,7 @@ const COMPRESSION_CONTEXT_GROUP: SidebarItemGroup = {
id: "context-combos",
href: "/dashboard/context/combos",
i18nKey: "contextCombos",
+ subtitleKey: "contextCombosSubtitle",
icon: "hub",
},
],
@@ -192,9 +214,27 @@ const TOOLS_GROUP: SidebarItemGroup = {
titleKey: "toolsGroup",
titleFallback: "Tools",
items: [
- { id: "cli-tools", href: "/dashboard/cli-tools", i18nKey: "cliTools", icon: "terminal" },
- { id: "agents", href: "/dashboard/agents", i18nKey: "agents", icon: "smart_toy" },
- { id: "cloud-agents", href: "/dashboard/cloud-agents", i18nKey: "cloudAgents", icon: "cloud" },
+ {
+ id: "cli-tools",
+ href: "/dashboard/cli-tools",
+ i18nKey: "cliTools",
+ subtitleKey: "cliToolsSubtitle",
+ icon: "terminal",
+ },
+ {
+ id: "agents",
+ href: "/dashboard/agents",
+ i18nKey: "agents",
+ subtitleKey: "agentsSubtitle",
+ icon: "smart_toy",
+ },
+ {
+ id: "cloud-agents",
+ href: "/dashboard/cloud-agents",
+ i18nKey: "cloudAgents",
+ subtitleKey: "cloudAgentsSubtitle",
+ icon: "cloud",
+ },
],
};
@@ -204,7 +244,13 @@ const INTEGRATIONS_GROUP: SidebarItemGroup = {
titleKey: "integrationsGroup",
titleFallback: "Integrations",
items: [
- { id: "api-endpoints", href: "/dashboard/api-endpoints", i18nKey: "apiEndpoints", icon: "api" },
+ {
+ id: "api-endpoints",
+ href: "/dashboard/api-endpoints",
+ i18nKey: "apiEndpoints",
+ subtitleKey: "apiEndpointsSubtitle",
+ icon: "api",
+ },
{
id: "webhooks",
href: "/dashboard/webhooks",
@@ -221,59 +267,132 @@ const PROXY_GROUP: SidebarItemGroup = {
titleKey: "proxyGroup",
titleFallback: "Proxy",
items: [
- { id: "proxy", href: "/dashboard/system/proxy", i18nKey: "proxy", icon: "dns" },
- { id: "mitm-proxy", href: "/dashboard/system/mitm-proxy", i18nKey: "mitmProxy", icon: "lan" },
- { id: "1proxy", href: "/dashboard/system/1proxy", i18nKey: "oneProxy", icon: "public" },
+ {
+ id: "proxy",
+ href: "/dashboard/system/proxy",
+ i18nKey: "proxy",
+ subtitleKey: "proxySubtitle",
+ icon: "dns",
+ },
+ {
+ id: "mitm-proxy",
+ href: "/dashboard/system/mitm-proxy",
+ i18nKey: "mitmProxy",
+ subtitleKey: "mitmProxySubtitle",
+ icon: "lan",
+ },
+ {
+ id: "1proxy",
+ href: "/dashboard/system/1proxy",
+ i18nKey: "oneProxy",
+ subtitleKey: "oneProxySubtitle",
+ icon: "public",
+ },
],
};
const ANALYTICS_ITEMS: readonly SidebarItemDefinition[] = [
- { id: "analytics", href: "/dashboard/analytics", i18nKey: "usage", icon: "analytics" },
+ {
+ id: "analytics",
+ href: "/dashboard/analytics",
+ i18nKey: "usage",
+ subtitleKey: "usageSubtitle",
+ icon: "analytics",
+ },
{
id: "analytics-combo-health",
href: "/dashboard/analytics/combo-health",
i18nKey: "analyticsComboHealth",
+ subtitleKey: "analyticsComboHealthSubtitle",
icon: "monitor_heart",
},
{
id: "analytics-utilization",
href: "/dashboard/analytics/utilization",
i18nKey: "analyticsUtilization",
+ subtitleKey: "analyticsUtilizationSubtitle",
icon: "bar_chart",
},
- { id: "costs", href: "/dashboard/costs", i18nKey: "costs", icon: "account_balance_wallet" },
- { id: "cache", href: "/dashboard/cache", i18nKey: "cache", icon: "cached" },
+ {
+ id: "costs",
+ href: "/dashboard/costs",
+ i18nKey: "costs",
+ subtitleKey: "costsSubtitle",
+ icon: "account_balance_wallet",
+ },
+ {
+ id: "cache",
+ href: "/dashboard/cache",
+ i18nKey: "cache",
+ subtitleKey: "cacheSubtitle",
+ icon: "cached",
+ },
{
id: "analytics-compression",
href: "/dashboard/analytics/compression",
i18nKey: "analyticsCompression",
- icon: "data_compression",
+ subtitleKey: "analyticsCompressionSubtitle",
+ icon: "compress",
},
{
id: "analytics-search",
href: "/dashboard/analytics/search",
i18nKey: "analyticsSearch",
+ subtitleKey: "analyticsSearchSubtitle",
icon: "manage_search",
},
{
id: "analytics-evals",
href: "/dashboard/analytics/evals",
i18nKey: "analyticsEvals",
+ subtitleKey: "analyticsEvalsSubtitle",
icon: "labs",
},
];
const MONITORING_ITEMS: readonly SidebarItemDefinition[] = [
- { id: "logs", href: "/dashboard/logs", i18nKey: "logs", icon: "description" },
- { id: "logs-proxy", href: "/dashboard/logs/proxy", i18nKey: "logsProxy", icon: "lan" },
- { id: "logs-console", href: "/dashboard/logs/console", i18nKey: "consoleLogs", icon: "terminal" },
+ {
+ id: "logs",
+ href: "/dashboard/logs",
+ i18nKey: "logs",
+ subtitleKey: "logsSubtitle",
+ icon: "description",
+ },
+ {
+ id: "logs-proxy",
+ href: "/dashboard/logs/proxy",
+ i18nKey: "logsProxy",
+ subtitleKey: "logsProxySubtitle",
+ icon: "lan",
+ },
+ {
+ id: "logs-console",
+ href: "/dashboard/logs/console",
+ i18nKey: "consoleLogs",
+ subtitleKey: "consoleLogsSubtitle",
+ icon: "terminal",
+ },
{
id: "logs-activity",
href: "/dashboard/logs/activity",
i18nKey: "logsActivity",
+ subtitleKey: "logsActivitySubtitle",
icon: "history",
},
- { id: "health", href: "/dashboard/health", i18nKey: "health", icon: "health_and_safety" },
+ {
+ id: "health",
+ href: "/dashboard/health",
+ i18nKey: "health",
+ subtitleKey: "healthSubtitle",
+ icon: "health_and_safety",
+ },
+ {
+ id: "runtime",
+ href: "/dashboard/runtime",
+ i18nKey: "runtime",
+ subtitleKey: "runtimeSubtitle",
+ icon: "bolt",
+ },
];
const COSTS_PARAMS_GROUP: SidebarItemGroup = {
@@ -286,14 +405,23 @@ const COSTS_PARAMS_GROUP: SidebarItemGroup = {
id: "costs-pricing",
href: "/dashboard/costs/pricing",
i18nKey: "costsPricing",
+ subtitleKey: "costsPricingSubtitle",
icon: "price_change",
},
{
id: "costs-budget",
href: "/dashboard/costs/budget",
i18nKey: "costsBudget",
+ subtitleKey: "costsBudgetSubtitle",
icon: "savings",
},
+ {
+ id: "costs-quota-share",
+ href: "/dashboard/costs/quota-share",
+ i18nKey: "costsQuotaShare",
+ subtitleKey: "costsQuotaShareSubtitle",
+ icon: "pie_chart",
+ },
],
};
@@ -303,19 +431,50 @@ const AUDIT_GROUP: SidebarItemGroup = {
titleKey: "auditGroup",
titleFallback: "Audit",
items: [
- { id: "audit", href: "/dashboard/audit", i18nKey: "auditLog", icon: "policy" },
- { id: "audit-mcp", href: "/dashboard/audit/mcp", i18nKey: "auditMcp", icon: "security" },
- { id: "audit-a2a", href: "/dashboard/audit/a2a", i18nKey: "auditA2a", icon: "device_hub" },
+ {
+ id: "audit",
+ href: "/dashboard/audit",
+ i18nKey: "auditLog",
+ subtitleKey: "auditLogSubtitle",
+ icon: "policy",
+ },
+ {
+ id: "audit-mcp",
+ href: "/dashboard/audit/mcp",
+ i18nKey: "auditMcp",
+ subtitleKey: "auditMcpSubtitle",
+ icon: "security",
+ },
+ {
+ id: "audit-a2a",
+ href: "/dashboard/audit/a2a",
+ i18nKey: "auditA2a",
+ subtitleKey: "auditA2aSubtitle",
+ icon: "device_hub",
+ },
],
};
const DEVTOOLS_ITEMS: readonly SidebarItemDefinition[] = [
- { id: "translator", href: "/dashboard/translator", i18nKey: "translator", icon: "translate" },
- { id: "playground", href: "/dashboard/playground", i18nKey: "playground", icon: "science" },
+ {
+ id: "translator",
+ href: "/dashboard/translator",
+ i18nKey: "translator",
+ subtitleKey: "translatorSubtitle",
+ icon: "translate",
+ },
+ {
+ id: "playground",
+ href: "/dashboard/playground",
+ i18nKey: "playground",
+ subtitleKey: "playgroundSubtitle",
+ icon: "science",
+ },
{
id: "search-tools",
href: "/dashboard/search-tools",
i18nKey: "searchTools",
+ subtitleKey: "searchToolsSubtitle",
icon: "manage_search",
},
];
@@ -325,19 +484,57 @@ const MCP_GROUP: SidebarItemGroup = {
id: "mcp",
titleKey: "mcp",
titleFallback: "MCP Server",
- items: [{ id: "mcp", href: "/dashboard/mcp", i18nKey: "mcp", icon: "hub" }],
+ items: [
+ {
+ id: "mcp",
+ href: "/dashboard/mcp",
+ i18nKey: "mcp",
+ subtitleKey: "mcpSubtitle",
+ icon: "hub",
+ },
+ ],
};
const AGENTIC_FEATURES_ITEMS: readonly SidebarSectionChild[] = [
- { id: "memory", href: "/dashboard/memory", i18nKey: "memory", icon: "psychology" },
- { id: "skills", href: "/dashboard/skills", i18nKey: "omniSkills", icon: "auto_fix_high" },
- { id: "agent-skills", href: "/dashboard/agent-skills", i18nKey: "agentSkills", icon: "share" },
+ {
+ id: "memory",
+ href: "/dashboard/memory",
+ i18nKey: "memory",
+ subtitleKey: "memorySubtitle",
+ icon: "psychology",
+ },
+ {
+ id: "skills",
+ href: "/dashboard/skills",
+ i18nKey: "omniSkills",
+ subtitleKey: "omniSkillsSubtitle",
+ icon: "auto_fix_high",
+ },
+ {
+ id: "agent-skills",
+ href: "/dashboard/agent-skills",
+ i18nKey: "agentSkills",
+ subtitleKey: "agentSkillsSubtitle",
+ icon: "share",
+ },
MCP_GROUP,
- { id: "a2a", href: "/dashboard/a2a", i18nKey: "a2a", icon: "device_hub" },
+ {
+ id: "a2a",
+ href: "/dashboard/a2a",
+ i18nKey: "a2a",
+ subtitleKey: "a2aSubtitle",
+ icon: "device_hub",
+ },
];
const OTHER_FEATURES_ITEMS: readonly SidebarItemDefinition[] = [
- { id: "media", href: "/dashboard/cache/media", i18nKey: "media", icon: "perm_media" },
+ {
+ id: "media",
+ href: "/dashboard/cache/media",
+ i18nKey: "media",
+ subtitleKey: "mediaSubtitle",
+ icon: "perm_media",
+ },
];
const BATCH_GROUP: SidebarItemGroup = {
@@ -353,66 +550,99 @@ const BATCH_GROUP: SidebarItemGroup = {
subtitleKey: "batchSubtitle",
icon: "view_list",
},
- { id: "batch-files", href: "/dashboard/batch/files", i18nKey: "batchFiles", icon: "folder" },
+ {
+ id: "batch-files",
+ href: "/dashboard/batch/files",
+ i18nKey: "batchFiles",
+ subtitleKey: "batchFilesSubtitle",
+ icon: "folder",
+ },
],
};
const CONFIGURATION_ITEMS: readonly SidebarItemDefinition[] = [
- { id: "settings", href: "/dashboard/settings", i18nKey: "settings", icon: "settings" },
+ {
+ id: "settings",
+ href: "/dashboard/settings",
+ i18nKey: "settings",
+ subtitleKey: "settingsSubtitle",
+ icon: "settings",
+ },
{
id: "settings-general",
href: "/dashboard/settings/general",
i18nKey: "settingsGeneral",
+ subtitleKey: "settingsGeneralSubtitle",
icon: "tune",
},
{
id: "settings-appearance",
href: "/dashboard/settings/appearance",
i18nKey: "settingsAppearance",
+ subtitleKey: "settingsAppearanceSubtitle",
icon: "palette",
},
{
id: "settings-ai",
href: "/dashboard/settings/ai",
i18nKey: "settingsAi",
+ subtitleKey: "settingsAiSubtitle",
icon: "auto_awesome",
},
{
id: "settings-routing",
href: "/dashboard/settings/routing",
i18nKey: "globalRouting",
+ subtitleKey: "globalRoutingSubtitle",
icon: "route",
},
{
id: "settings-resilience",
href: "/dashboard/settings/resilience",
i18nKey: "settingsResilience",
+ subtitleKey: "settingsResilienceSubtitle",
icon: "health_and_safety",
},
{
id: "settings-advanced",
href: "/dashboard/settings/advanced",
i18nKey: "settingsAdvanced",
+ subtitleKey: "settingsAdvancedSubtitle",
icon: "engineering",
},
{
id: "settings-security",
href: "/dashboard/settings/security",
i18nKey: "settingsSecurity",
+ subtitleKey: "settingsSecuritySubtitle",
icon: "shield",
},
];
const HELP_ITEMS: readonly SidebarItemDefinition[] = [
- { id: "docs", href: "/docs", i18nKey: "docs", icon: "menu_book", external: true },
+ {
+ id: "docs",
+ href: "/docs",
+ i18nKey: "docs",
+ subtitleKey: "docsSubtitle",
+ icon: "menu_book",
+ external: true,
+ },
{
id: "issues",
href: "https://github.com/diegosouzapw/OmniRoute/issues",
i18nKey: "issues",
+ subtitleKey: "issuesSubtitle",
icon: "bug_report",
external: true,
},
- { id: "changelog", href: "/dashboard/changelog", i18nKey: "changelog", icon: "campaign" },
+ {
+ id: "changelog",
+ href: "/dashboard/changelog",
+ i18nKey: "changelog",
+ subtitleKey: "changelogSubtitle",
+ icon: "campaign",
+ },
];
// ─── Sections ────────────────────────────────────────────────────────────────
diff --git a/src/shared/validation/schemas.ts b/src/shared/validation/schemas.ts
index a0f26982de..78581b55a1 100644
--- a/src/shared/validation/schemas.ts
+++ b/src/shared/validation/schemas.ts
@@ -1772,6 +1772,7 @@ export const providersBatchTestSchema = z
"local",
"upstream-proxy",
"cloud-agent",
+ "ide",
]),
// Frontend may send null when mode != 'provider' — accept and treat as missing
providerId: z.string().trim().min(1).nullable().optional(),