7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
Server log viewer in the dashboard, under an Analytics nav menu (#993)
Tashfeen74df9858a2a8
diff --git a/.env.example b/.env.exampleindex ffb510fd..0bd44133 100644--- a/.env.example+++ b/.env.example@@ -220,6 +220,13 @@ PORT=3001REQUEST_ANALYTICS_RETENTION_DAYS=90REQUEST_ANALYTICS_MAX_ROWS=100000+# Persisted server logs behind the dashboard's log viewer. Only warn/error+# lines are written to the database (the live view is an in-memory ring), so+# these bounds are far tighter than the analytics ones above. Either value at 0+# disables that limit.+# SERVER_LOGS_RETENTION_DAYS=7+# SERVER_LOGS_MAX_ROWS=50000+# Per-request caller identity (client IP + User-Agent) recorded into request# analytics and shown in the dashboard's "Recent calls" table. Set to false# to store nulls instead (aggregate analytics are unaffected).diff --git a/client/src/App.tsx b/client/src/App.tsxindex bce2efaa..7ccbd3de 100644--- a/client/src/App.tsx+++ b/client/src/App.tsx@@ -37,6 +37,7 @@ import AudioPage from '@/pages/AudioPage'import MediaDetailPage from '@/pages/MediaDetailPage'import EmbeddingDetailPage from '@/pages/EmbeddingDetailPage'import AnalyticsPage from '@/pages/AnalyticsPage'+import LogsPage from '@/pages/LogsPage'import PremiumPage from '@/pages/PremiumPage'import NotFoundPage from '@/pages/NotFoundPage'import AgentsPage from '@/pages/AgentsPage'@@ -73,6 +74,33 @@ const modelItems = [{ to: '/models/fusion', labelKey: 'models.fusionTab' },]+// The pages that hang off "Analytics". Logs is reachable only from here — it is+// deliberately kept out of navItems so the top bar does not grow a seventh entry.+const analyticsItems = [+ { to: '/analytics', labelKey: 'nav.analytics' },+ { to: '/logs', labelKey: 'nav.logs' },+]++// Nav entries rendered as a split control: the label still navigates, and a+// chevron (desktop) / submenu (mobile) reveals the pages behind it. Keyed by the+// nav entry's `to` so both branches below stay one lookup, not two hardcoded+// special cases.+const navMenus: Record<+ string,+ { ariaKey: string; items: { to: string; labelKey: string }[]; isActive: (pathname: string) => boolean }+> = {+ '/models': {+ ariaKey: 'nav.modelsMenu',+ items: modelItems,+ isActive: (pathname) => pathname.startsWith('/models'),+ },+ '/analytics': {+ ariaKey: 'nav.analyticsMenu',+ items: analyticsItems,+ isActive: (pathname) => pathname.startsWith('/analytics') || pathname.startsWith('/logs'),+ },+}+const isMac = typeof navigator !== 'undefined' && /mac/i.test(navigator.platform)function NavItem({ to, children }: { to: string; children: React.ReactNode }) {@@ -202,23 +230,24 @@ function Navbar() {className="ms-10 hidden items-center gap-6 md:flex"style={isDesktopApp ? ({ WebkitAppRegion: 'no-drag' } as React.CSSProperties) : undefined}>- {navItems.map((item) =>- item.to === '/models' ? (+ {navItems.map((item) => {+ const menu = navMenus[item.to]+ return menu ? (// Split control: the label navigates, the chevron reveals the- // five modality pages hiding behind "Models".+ // pages hiding behind it.<div key={item.to} className="flex items-center gap-0.5"><NavItem to={item.to}>{t(item.labelKey)}</NavItem><DropdownMenu><DropdownMenuTrigger- aria-label={t('nav.modelsMenu')}+ aria-label={t(menu.ariaKey)}className="rounded-md p-1 text-muted-foreground transition-colors hover:text-foreground"><ChevronDown className="size-3.5" /></DropdownMenuTrigger><DropdownMenuContent align="start" className="w-44">- {modelItems.map((model) => (- <DropdownMenuItem key={model.to} onClick={() => navigate(model.to)}>- {t(model.labelKey)}+ {menu.items.map((entry) => (+ <DropdownMenuItem key={entry.to} onClick={() => navigate(entry.to)}>+ {t(entry.labelKey)}</DropdownMenuItem>))}</DropdownMenuContent>@@ -228,8 +257,8 @@ function Navbar() {<NavItem key={item.to} to={item.to}>{t(item.labelKey)}</NavItem>- ),- )}+ )+ })}</nav><divclassName="ms-auto hidden items-center gap-1 md:flex"@@ -277,18 +306,19 @@ function Navbar() {</DropdownMenuTrigger><DropdownMenuContent align="end" className="w-52"><DropdownMenuGroup>- {navItems.map((item) =>- item.to === '/models' ? (+ {navItems.map((item) => {+ const menu = navMenus[item.to]+ return menu ? (<DropdownMenuSub key={item.to}><DropdownMenuSubTrigger- className={location.pathname.startsWith('/models') ? 'bg-accent text-accent-foreground font-medium' : undefined}+ className={menu.isActive(location.pathname) ? 'bg-accent text-accent-foreground font-medium' : undefined}>{t(item.labelKey)}</DropdownMenuSubTrigger><DropdownMenuSubContent>- {modelItems.map((model) => (- <DropdownMenuItem key={model.to} onClick={() => navigate(model.to)}>- {t(model.labelKey)}+ {menu.items.map((entry) => (+ <DropdownMenuItem key={entry.to} onClick={() => navigate(entry.to)}>+ {t(entry.labelKey)}</DropdownMenuItem>))}</DropdownMenuSubContent>@@ -301,8 +331,8 @@ function Navbar() {>{t(item.labelKey)}</DropdownMenuItem>- ),- )}+ )+ })}</DropdownMenuGroup><DropdownMenuSeparator /><AccountMenuItems@@ -388,6 +418,7 @@ function App() {<Route path="/agents" element={<AgentsPage />} /><Route path="/fallback" element={<Navigate to="/models/chat" replace />} /><Route path="/analytics" element={<AnalyticsPage />} />+ <Route path="/logs" element={<LogsPage />} /><Route path="/premium" element={<PremiumPage />} /><Route path="/test" element={<Navigate to="/playground" replace />} /><Route path="/health" element={<Navigate to="/keys" replace />} />diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex a5dcc1d2..9237b172 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -14,7 +14,9 @@"switchToChinese": "ወደ ቻይንኛ ቀይር","switchToEnglish": "ወደ እንግሊዝኛ ቀይር","modelsMenu": "የሞዴል አይነቶችን ያስሱ",- "agents": "ወኪሎች"+ "agents": "ወኪሎች",+ "logs": "መዝገቦች",+ "analyticsMenu": "የአፈጻጸም ገጾች"},"auth": {"createYourAccount": "መለያዎን ይፍጠሩ",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "ጥያቄዎች በወኪል"},+ "logs": {+ "title": "መዝገቦች",+ "description": "የቀጥታ የአገልጋይ መዝገብ። ገጹ ክፍት ሆኖ ሳለ አዲስ ግቤቶች እየገቡ ይሄዳሉ።",+ "pause": "አቁም",+ "resume": "ቀጥል",+ "clear": "መዝገቦችን አጽዳ",+ "cleared": "የአገልጋይ መዝገብ ጸድቷል",+ "levelFilter": "የመዝገብ ደረጃዎች",+ "levels": {+ "debug": "ማረሚያ",+ "info": "መረጃ",+ "warn": "ማስጠንቀቂያ",+ "error": "ስህተት"+ },+ "countsHint": "ቁጥሮቹ በአገልጋዩ ላይ ላለው ሙሉ የመዝገብ ማጠራቀሚያ ጠቅላላ ናቸው፣ ከእነዚህ ማጣሪያዎች ጋር የሚዛመዱ ግቤቶች ብቻ አይደሉም።",+ "searchPlaceholder": "የመዝገብ መልዕክቶችን ይፈልጉ...",+ "jumpToLatest": "ወደ የቅርብ ጊዜው ዝለል",+ "showMore": "ተጨማሪ አሳይ",+ "showLess": "ያነሰ አሳይ",+ "buffered": "ከተከማቹ እስከ {max} ግቤቶች ውስጥ {count} በማሳየት ላይ",+ "emptyTitle": "እስካሁን ምንም የመዝገብ ግቤቶች የሉም",+ "emptyDescription": "አገልጋዩ ሲጽፋቸው ግቤቶች እዚህ ይታያሉ። ውጤት የጠበቁ ከሆነ የደረጃ፣ የአቅራቢ ወይም የፍለጋ ማጣሪያዎችን ያስፉ።",+ "noLevelsTitle": "ምንም ደረጃ አልተመረጠም",+ "noLevelsDescription": "የመዝገብ ውጤትን ለማየት ቢያንስ አንድ ደረጃ ያብሩ።",+ "loadFailed": "የአገልጋዩን መዝገብ መጫን አልተቻለም።"+ },"playground": {"title": "የመጫወቻ ሜዳ","description": "የውይይት ማጠናቀቅን በራውተር በኩል ይላኩ እና የትኛው አቅራቢ እንደሚያገለግለው ይመልከቱ።",diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex a5e29243..8a72450a 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -14,7 +14,9 @@"switchToChinese": "التبديل إلى الصينية","switchToEnglish": "التبديل إلى اللغة الإنجليزية","modelsMenu": "تصفح أنواع النماذج",- "agents": "الوكلاء"+ "agents": "الوكلاء",+ "logs": "السجلات",+ "analyticsMenu": "صفحات التحليلات"},"auth": {"createYourAccount": "أنشئ حسابك",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "الطلبات حسب الوكيل"},+ "logs": {+ "title": "السجلات",+ "description": "سجل الخادم المباشر. تصل الإدخالات الجديدة تباعًا ما دامت الصفحة مفتوحة.",+ "pause": "إيقاف مؤقت",+ "resume": "استئناف",+ "clear": "مسح السجل",+ "cleared": "تم مسح سجل الخادم",+ "levelFilter": "مستويات السجل",+ "levels": {+ "debug": "تصحيح",+ "info": "معلومات",+ "warn": "تحذير",+ "error": "خطأ"+ },+ "countsHint": "الأعداد إجمالية لكامل مخزن السجل على الخادم، وليست للإدخالات المطابقة لهذه المرشّحات فقط.",+ "searchPlaceholder": "ابحث في رسائل السجل…",+ "jumpToLatest": "الانتقال إلى الأحدث",+ "showMore": "عرض المزيد",+ "showLess": "عرض أقل",+ "buffered": "عرض {count} من أصل {max} إدخال مخزَّن كحد أقصى",+ "emptyTitle": "لا توجد إدخالات في السجل بعد",+ "emptyDescription": "تظهر الإدخالات هنا فور كتابتها من الخادم. إذا كنت تتوقع مخرجات، فوسّع مرشّحات المستوى أو المزوّد أو البحث.",+ "noLevelsTitle": "لم يتم تحديد أي مستوى",+ "noLevelsDescription": "فعّل مستوى واحدًا على الأقل لعرض مخرجات السجل.",+ "loadFailed": "تعذّر تحميل سجل الخادم."+ },"playground": {"title": "ملعب","description": "أرسل استكمال الدردشة عبر جهاز التوجيه واعرف الموفر الذي يخدمها.",diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex dcc06d68..7b3db263 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -14,7 +14,9 @@"switchToChinese": "Çin dilinə keçid","switchToEnglish": "İngiliscəyə keçid","modelsMenu": "Model tiplərinə baxın",- "agents": "Agentlər"+ "agents": "Agentlər",+ "logs": "Loglar",+ "analyticsMenu": "Analitika səhifələri"},"auth": {"createYourAccount": "Hesabınızı yaradın",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Agent üzrə sorğular"},+ "logs": {+ "title": "Loglar",+ "description": "Serverin canlı logu. Səhifə açıq olduqca yeni qeydlər gəlməkdə davam edir.",+ "pause": "Dayandır",+ "resume": "Davam et",+ "clear": "Logları təmizlə",+ "cleared": "Server logu təmizləndi",+ "levelFilter": "Log səviyyələri",+ "levels": {+ "debug": "Debug",+ "info": "İnfo",+ "warn": "Xəbərdarlıq",+ "error": "Xəta"+ },+ "countsHint": "Saylar bu filtrlərə uyğun qeydlərə deyil, serverdəki bütün log buferinə aid ümumi göstəricilərdir.",+ "searchPlaceholder": "Log mesajlarında axtar…",+ "jumpToLatest": "Ən sonunculara keç",+ "showMore": "Daha çox göstər",+ "showLess": "Daha az göstər",+ "buffered": "Buferdəki ən çoxu {max} qeyddən {count} göstərilir",+ "emptyTitle": "Hələ log qeydi yoxdur",+ "emptyDescription": "Server qeydləri yazdıqca onlar burada görünəcək. Nəticə gözləyirdinizsə, səviyyə, təchizatçı və ya axtarış filtrlərini genişləndirin.",+ "noLevelsTitle": "Səviyyə seçilməyib",+ "noLevelsDescription": "Log çıxışını görmək üçün ən azı bir səviyyəni aktivləşdirin.",+ "loadFailed": "Server logu yüklənə bilmədi."+ },"playground": {"title": "Uşaq meydançası","description": "Router vasitəsilə çat tamamlama mesajı göndərin və hansı provayderin xidmət etdiyini görün.",diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 3026c8d5..67dfc1f2 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -14,7 +14,9 @@"switchToChinese": "Преход към китайски","switchToEnglish": "Преход към английски","modelsMenu": "Видове модели за разглеждане",- "agents": "Агенти"+ "agents": "Агенти",+ "logs": "Логове",+ "analyticsMenu": "Страници с аналитика"},"auth": {"createYourAccount": "Създайте свой акаунт",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Заявки по агент"},+ "logs": {+ "title": "Логове",+ "description": "Лог на сървъра на живо. Новите записи пристигат, докато страницата е отворена.",+ "pause": "Пауза",+ "resume": "Продължи",+ "clear": "Изчисти лога",+ "cleared": "Логът на сървъра е изчистен",+ "levelFilter": "Нива на лога",+ "levels": {+ "debug": "Дебъг",+ "info": "Инфо",+ "warn": "Предупр.",+ "error": "Грешка"+ },+ "countsHint": "Броячите отчитат целия лог буфер на сървъра, а не само записите, отговарящи на тези филтри.",+ "searchPlaceholder": "Търсене в съобщенията от лога…",+ "jumpToLatest": "Към най-новите",+ "showMore": "Покажи повече",+ "showLess": "Покажи по-малко",+ "buffered": "Показани са {count} от най-много {max} записа в буфера",+ "emptyTitle": "Все още няма записи в лога",+ "emptyDescription": "Записите се появяват тук, докато сървърът ги записва. Разширете филтрите по ниво, доставчик или търсене, ако очаквате изход.",+ "noLevelsTitle": "Няма избрани нива",+ "noLevelsDescription": "Включете поне едно ниво, за да видите изхода от лога.",+ "loadFailed": "Логът на сървъра не можа да бъде зареден."+ },"playground": {"title": "Детска площадка","description": "Изпратете завършване на чата през рутера и вижте кой доставчик го обслужва.",diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex f6370550..0e094df8 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -14,7 +14,9 @@"switchToChinese": "চাইনিজ এ স্যুইচ করুন","switchToEnglish": "ইংরেজিতে স্যুইচ করুন","modelsMenu": "মডেলের ধরন ব্রাউজ করুন",- "agents": "এজেন্ট"+ "agents": "এজেন্ট",+ "logs": "লগ",+ "analyticsMenu": "বিশ্লেষণ পৃষ্ঠা"},"auth": {"createYourAccount": "আপনার অ্যাকাউন্ট তৈরি করুন",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "এজেন্ট অনুযায়ী অনুরোধ"},+ "logs": {+ "title": "লগ",+ "description": "লাইভ সার্ভার লগ। পৃষ্ঠাটি খোলা থাকা অবস্থায় নতুন এন্ট্রি আসতে থাকে।",+ "pause": "থামান",+ "resume": "চালু করুন",+ "clear": "লগ সাফ করুন",+ "cleared": "সার্ভার লগ সাফ করা হয়েছে",+ "levelFilter": "লগ লেভেল",+ "levels": {+ "debug": "ডিবাগ",+ "info": "ইনফো",+ "warn": "সতর্কতা",+ "error": "ত্রুটি"+ },+ "countsHint": "গণনাগুলি সার্ভারের পুরো লগ বাফারের মোট, শুধু এই ফিল্টারের সাথে মেলা এন্ট্রিগুলির নয়।",+ "searchPlaceholder": "লগ বার্তা অনুসন্ধান করুন...",+ "jumpToLatest": "সর্বশেষে যান",+ "showMore": "আরও দেখান",+ "showLess": "কম দেখান",+ "buffered": "সর্বোচ্চ {max} বাফার করা এন্ট্রির মধ্যে {count}টি দেখানো হচ্ছে",+ "emptyTitle": "এখনো কোনো লগ এন্ট্রি নেই",+ "emptyDescription": "সার্ভার যেমন লেখে, এন্ট্রিগুলি এখানে দেখা যাবে। আউটপুট আশা করে থাকলে লেভেল, প্রদানকারী বা অনুসন্ধান ফিল্টারের পরিসর বাড়ান।",+ "noLevelsTitle": "কোনো লেভেল নির্বাচিত নয়",+ "noLevelsDescription": "লগ আউটপুট দেখতে অন্তত একটি লেভেল চালু করুন।",+ "loadFailed": "সার্ভার লগ লোড করা গেল না।"+ },"playground": {"title": "খেলার মাঠ","description": "রাউটারের মাধ্যমে একটি চ্যাট সমাপ্তি পাঠান এবং দেখুন কোন প্রদানকারী এটি পরিবেশন করে।",diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex b95519f3..b4619224 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -14,7 +14,9 @@"switchToChinese": "Přechod na čínštinu","switchToEnglish": "Přechod na angličtinu","modelsMenu": "Procházet typy modelů",- "agents": "Agenti"+ "agents": "Agenti",+ "logs": "Logy",+ "analyticsMenu": "Stránky analytiky"},"auth": {"createYourAccount": "Vytvořte si účet",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Požadavky podle agenta"},+ "logs": {+ "title": "Logy",+ "description": "Živý log serveru. Nové záznamy přibývají, dokud je stránka otevřená.",+ "pause": "Pozastavit",+ "resume": "Pokračovat",+ "clear": "Vymazat logy",+ "cleared": "Log serveru vymazán",+ "levelFilter": "Úrovně logování",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Varování",+ "error": "Chyba"+ },+ "countsHint": "Počty se vztahují k celé vyrovnávací paměti logu na serveru, ne jen k záznamům odpovídajícím těmto filtrům.",+ "searchPlaceholder": "Hledat ve zprávách logu…",+ "jumpToLatest": "Přejít na nejnovější",+ "showMore": "Zobrazit více",+ "showLess": "Zobrazit méně",+ "buffered": "Zobrazeno {count} z maximálně {max} uložených záznamů",+ "emptyTitle": "Zatím žádné záznamy v logu",+ "emptyDescription": "Záznamy se zde objeví, jakmile je server zapíše. Pokud jste čekali výstup, rozšiřte filtry úrovně, poskytovatele nebo hledání.",+ "noLevelsTitle": "Není vybrána žádná úroveň",+ "noLevelsDescription": "Zapněte alespoň jednu úroveň, abyste viděli výstup logu.",+ "loadFailed": "Log serveru se nepodařilo načíst."+ },"playground": {"title": "Hřiště","description": "Pošlete dokončení chatu přes router a zjistěte, který poskytovatel ho obsluhuje.",diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 14e7e816..2d5a6685 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -14,7 +14,9 @@"switchToChinese": "Skift til kinesisk","switchToEnglish": "Skift til engelsk","modelsMenu": "Gennemse modeltyper",- "agents": "Agenter"+ "agents": "Agenter",+ "logs": "Log",+ "analyticsMenu": "Analysesider"},"auth": {"createYourAccount": "Opret din konto",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Anmodninger pr. agent"},+ "logs": {+ "title": "Log",+ "description": "Live serverlog. Nye poster strømmer ind, mens siden er åben.",+ "pause": "Sæt på pause",+ "resume": "Fortsæt",+ "clear": "Ryd loggen",+ "cleared": "Serverloggen er ryddet",+ "levelFilter": "Logniveauer",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Advarsel",+ "error": "Fejl"+ },+ "countsHint": "Tallene dækker hele logbufferen på serveren, ikke kun de poster, der matcher disse filtre.",+ "searchPlaceholder": "Søg i logbeskeder…",+ "jumpToLatest": "Gå til nyeste",+ "showMore": "Vis mere",+ "showLess": "Vis mindre",+ "buffered": "Viser {count} af op til {max} poster i bufferen",+ "emptyTitle": "Ingen logposter endnu",+ "emptyDescription": "Poster vises her, efterhånden som serveren skriver dem. Udvid filtrene for niveau, udbyder eller søgning, hvis du forventede output.",+ "noLevelsTitle": "Ingen niveauer valgt",+ "noLevelsDescription": "Slå mindst ét niveau til for at se logoutput.",+ "loadFailed": "Kunne ikke indlæse serverloggen."+ },"playground": {"title": "Legeplads","description": "Send en chat-fuldførelse gennem routeren og se, hvilken udbyder der servicerer den.",diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex 10c1cac7..96ce45db 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -14,7 +14,9 @@"switchToChinese": "Wechseln Sie zu Chinesisch","switchToEnglish": "Wechseln Sie zu Englisch","modelsMenu": "Durchsuchen Sie Modelltypen",- "agents": "Agenten"+ "agents": "Agenten",+ "logs": "Protokoll",+ "analyticsMenu": "Analytik-Seiten"},"auth": {"createYourAccount": "Erstellen Sie Ihr Konto",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Anfragen nach Agent"},+ "logs": {+ "title": "Protokoll",+ "description": "Live-Serverprotokoll. Neue Einträge kommen laufend hinzu, solange die Seite geöffnet ist.",+ "pause": "Pausieren",+ "resume": "Fortsetzen",+ "clear": "Protokoll leeren",+ "cleared": "Serverprotokoll geleert",+ "levelFilter": "Protokollebenen",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Warnung",+ "error": "Fehler"+ },+ "countsHint": "Die Zahlen beziehen sich auf den gesamten Protokollpuffer auf dem Server, nicht nur auf die Einträge, die diesen Filtern entsprechen.",+ "searchPlaceholder": "Protokollmeldungen durchsuchen…",+ "jumpToLatest": "Zu den neuesten springen",+ "showMore": "Mehr anzeigen",+ "showLess": "Weniger anzeigen",+ "buffered": "{count} von bis zu {max} gepufferten Einträgen werden angezeigt",+ "emptyTitle": "Noch keine Protokolleinträge",+ "emptyDescription": "Einträge erscheinen hier, sobald der Server sie schreibt. Erweitern Sie die Filter für Ebene, Anbieter oder Suche, wenn Sie eine Ausgabe erwartet haben.",+ "noLevelsTitle": "Keine Ebene ausgewählt",+ "noLevelsDescription": "Schalten Sie mindestens eine Ebene ein, um die Protokollausgabe zu sehen.",+ "loadFailed": "Das Serverprotokoll konnte nicht geladen werden."+ },"playground": {"title": "Spielplatz","description": "Senden Sie einen Chat-Abschluss über den Router und sehen Sie, welcher Anbieter ihn bereitstellt.",diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex 3366b703..8906810f 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -14,7 +14,9 @@"switchToChinese": "Μετάβαση στα Κινέζικα","switchToEnglish": "Μετάβαση στα Αγγλικά","modelsMenu": "Αναζήτηση τύπων μοντέλων",- "agents": "Πράκτορες"+ "agents": "Πράκτορες",+ "logs": "Καταγραφές",+ "analyticsMenu": "Σελίδες ανάλυσης"},"auth": {"createYourAccount": "Δημιουργήστε τον λογαριασμό σας",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Αιτήματα ανά πράκτορα"},+ "logs": {+ "title": "Καταγραφές",+ "description": "Ζωντανό αρχείο καταγραφής του διακομιστή. Οι νέες εγγραφές εμφανίζονται όσο η σελίδα είναι ανοιχτή.",+ "pause": "Παύση",+ "resume": "Συνέχιση",+ "clear": "Εκκαθάριση καταγραφών",+ "cleared": "Το αρχείο καταγραφής του διακομιστή εκκαθαρίστηκε",+ "levelFilter": "Επίπεδα καταγραφής",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Προειδοποίηση",+ "error": "Σφάλμα"+ },+ "countsHint": "Τα πλήθη αφορούν ολόκληρη την προσωρινή μνήμη καταγραφής στον διακομιστή, όχι μόνο τις εγγραφές που ταιριάζουν με αυτά τα φίλτρα.",+ "searchPlaceholder": "Αναζήτηση στα μηνύματα καταγραφής…",+ "jumpToLatest": "Μετάβαση στα πιο πρόσφατα",+ "showMore": "Εμφάνιση περισσότερων",+ "showLess": "Εμφάνιση λιγότερων",+ "buffered": "Εμφανίζονται {count} από έως και {max} προσωρινά αποθηκευμένες εγγραφές",+ "emptyTitle": "Δεν υπάρχουν ακόμη εγγραφές καταγραφής",+ "emptyDescription": "Οι εγγραφές εμφανίζονται εδώ καθώς τις γράφει ο διακομιστής. Διευρύνετε τα φίλτρα επιπέδου, παρόχου ή αναζήτησης αν περιμένατε αποτελέσματα.",+ "noLevelsTitle": "Δεν έχει επιλεγεί επίπεδο",+ "noLevelsDescription": "Ενεργοποιήστε τουλάχιστον ένα επίπεδο για να δείτε τις καταγραφές.",+ "loadFailed": "Δεν ήταν δυνατή η φόρτωση του αρχείου καταγραφής του διακομιστή."+ },"playground": {"title": "Παιδική χαρά","description": "Στείλτε μια ολοκλήρωση συνομιλίας μέσω του δρομολογητή και δείτε ποιος πάροχος την εξυπηρετεί.",diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 34eff24a..42edcaa4 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -14,7 +14,9 @@"switchDark": "Switch to dark theme","switchToChinese": "Switch to Chinese","switchToEnglish": "Switch to English",- "modelsMenu": "Browse model types"+ "modelsMenu": "Browse model types",+ "logs": "Logs",+ "analyticsMenu": "Analytics pages"},"auth": {"createYourAccount": "Create your account",@@ -652,6 +654,32 @@"requestedModel": "Requested model","ttft": "TTFT"},+ "logs": {+ "title": "Logs",+ "description": "Live server log. New entries stream in while the page is open.",+ "pause": "Pause",+ "resume": "Resume",+ "clear": "Clear logs",+ "cleared": "Server log cleared",+ "levelFilter": "Log levels",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Warn",+ "error": "Error"+ },+ "countsHint": "Counts are totals for the whole log buffer on the server, not just the entries matching these filters.",+ "searchPlaceholder": "Search log messages…",+ "jumpToLatest": "Jump to latest",+ "showMore": "Show more",+ "showLess": "Show less",+ "buffered": "Showing {count} of up to {max} buffered entries",+ "emptyTitle": "No log entries yet",+ "emptyDescription": "Entries appear here as the server writes them. Widen the level, provider or search filters if you expected output.",+ "noLevelsTitle": "No levels selected",+ "noLevelsDescription": "Turn on at least one level to see log output.",+ "loadFailed": "Couldn't load the server log."+ },"playground": {"title": "Playground","description": "Send a chat completion through the router and see which provider serves it.",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex 7e106d96..29446061 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -14,7 +14,9 @@"switchToChinese": "Cambiar a chino","switchToEnglish": "Cambiar a inglés","modelsMenu": "Explorar tipos de modelos",- "agents": "Agentes"+ "agents": "Agentes",+ "logs": "Registros",+ "analyticsMenu": "Páginas de analíticas"},"auth": {"createYourAccount": "Crea tu cuenta",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Solicitudes por agente"},+ "logs": {+ "title": "Registros",+ "description": "Registro del servidor en vivo. Las entradas nuevas van llegando mientras la página está abierta.",+ "pause": "Pausar",+ "resume": "Reanudar",+ "clear": "Borrar registros",+ "cleared": "Registro del servidor borrado",+ "levelFilter": "Niveles de registro",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Aviso",+ "error": "Error"+ },+ "countsHint": "Los recuentos corresponden a todo el búfer de registro del servidor, no solo a las entradas que coinciden con estos filtros.",+ "searchPlaceholder": "Buscar en los mensajes del registro…",+ "jumpToLatest": "Ir a lo más reciente",+ "showMore": "Mostrar más",+ "showLess": "Mostrar menos",+ "buffered": "Mostrando {count} de hasta {max} entradas en el búfer",+ "emptyTitle": "Aún no hay entradas de registro",+ "emptyDescription": "Las entradas aparecen aquí a medida que el servidor las escribe. Amplía los filtros de nivel, proveedor o búsqueda si esperabas ver algo.",+ "noLevelsTitle": "Ningún nivel seleccionado",+ "noLevelsDescription": "Activa al menos un nivel para ver el registro.",+ "loadFailed": "No se pudo cargar el registro del servidor."+ },"playground": {"title": "Entorno de pruebas","description": "Envía una finalización de chat a través del enrutador y observa qué proveedor la atiende.",diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex c7f8dd17..977bd78f 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -14,7 +14,9 @@"switchToChinese": "به چینی تغییر دهید","switchToEnglish": "به انگلیسی تغییر دهید","modelsMenu": "انواع مدل ها را مرور کنید",- "agents": "عامل ها"+ "agents": "عامل ها",+ "logs": "لاگها",+ "analyticsMenu": "صفحههای تجزیه و تحلیل"},"auth": {"createYourAccount": "حساب کاربری خود را ایجاد کنید",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "درخواستها بر اساس عامل"},+ "logs": {+ "title": "لاگها",+ "description": "لاگ زندهٔ سرور. تا وقتی صفحه باز است، ورودیهای تازه پیوسته اضافه میشوند.",+ "pause": "توقف موقت",+ "resume": "ادامه",+ "clear": "پاک کردن لاگها",+ "cleared": "لاگ سرور پاک شد",+ "levelFilter": "سطوح لاگ",+ "levels": {+ "debug": "اشکالزدایی",+ "info": "اطلاعات",+ "warn": "هشدار",+ "error": "خطا"+ },+ "countsHint": "شمارشها مربوط به کل بافر لاگ روی سرور است، نه فقط ورودیهایی که با این فیلترها مطابقت دارند.",+ "searchPlaceholder": "جستجو در پیامهای لاگ…",+ "jumpToLatest": "رفتن به تازهترینها",+ "showMore": "نمایش بیشتر",+ "showLess": "نمایش کمتر",+ "buffered": "نمایش {count} از حداکثر {max} ورودی بافرشده",+ "emptyTitle": "هنوز هیچ ورودی لاگی نیست",+ "emptyDescription": "ورودیها همزمان با نوشتهشدن توسط سرور اینجا ظاهر میشوند. اگر انتظار خروجی داشتید، فیلترهای سطح، ارائهدهنده یا جستجو را گستردهتر کنید.",+ "noLevelsTitle": "هیچ سطحی انتخاب نشده است",+ "noLevelsDescription": "برای دیدن خروجی لاگ، دستکم یک سطح را فعال کنید.",+ "loadFailed": "بارگیری لاگ سرور انجام نشد."+ },"playground": {"title": "زمین بازی","description": "تکمیل چت را از طریق روتر ارسال کنید و ببینید کدام ارائه دهنده آن را ارائه می دهد.",diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex 51b5a503..e511d2ba 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -14,7 +14,9 @@"switchToChinese": "Siirtyminen kiinaan","switchToEnglish": "Siirtyminen englanniksi","modelsMenu": "Selaa mallityyppejä",- "agents": "Agentit"+ "agents": "Agentit",+ "logs": "Lokit",+ "analyticsMenu": "Analytiikkasivut"},"auth": {"createYourAccount": "Luo tilisi",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Pyynnöt agenteittain"},+ "logs": {+ "title": "Lokit",+ "description": "Palvelimen reaaliaikainen loki. Uudet merkinnät ilmestyvät näkyviin sivun ollessa auki.",+ "pause": "Keskeytä",+ "resume": "Jatka",+ "clear": "Tyhjennä loki",+ "cleared": "Palvelimen loki tyhjennetty",+ "levelFilter": "Lokitasot",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Varoitus",+ "error": "Virhe"+ },+ "countsHint": "Lukumäärät koskevat palvelimen koko lokipuskuria, eivät vain näitä suodattimia vastaavia merkintöjä.",+ "searchPlaceholder": "Hae lokiviesteistä…",+ "jumpToLatest": "Siirry uusimpaan",+ "showMore": "Näytä lisää",+ "showLess": "Näytä vähemmän",+ "buffered": "Näytetään {count} / enintään {max} puskuroitua merkintää",+ "emptyTitle": "Ei vielä lokimerkintöjä",+ "emptyDescription": "Merkinnät ilmestyvät tähän sitä mukaa kun palvelin kirjoittaa niitä. Laajenna taso-, palveluntarjoaja- tai hakusuodattimia, jos odotit tulostetta.",+ "noLevelsTitle": "Ei valittuja tasoja",+ "noLevelsDescription": "Valitse vähintään yksi taso nähdäksesi lokitulosteen.",+ "loadFailed": "Palvelimen lokia ei voitu ladata."+ },"playground": {"title": "Leikkipaikka","description": "Lähetä chatin täydennysviesti reitittimen kautta ja katso, mikä operaattori palvelee sitä.",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex 16afd37e..6fc7a39f 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -14,7 +14,9 @@"switchToChinese": "Passer au chinois","switchToEnglish": "Passer à l'anglais","modelsMenu": "Parcourir les types de modèles",- "agents": "Agents"+ "agents": "Agents",+ "logs": "Journaux",+ "analyticsMenu": "Pages d'analytique"},"auth": {"createYourAccount": "Créez votre compte",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Requêtes par agent"},+ "logs": {+ "title": "Journaux",+ "description": "Journal du serveur en direct. Les nouvelles entrées arrivent tant que la page est ouverte.",+ "pause": "Suspendre",+ "resume": "Reprendre",+ "clear": "Effacer les journaux",+ "cleared": "Journal du serveur effacé",+ "levelFilter": "Niveaux de journalisation",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Avertissement",+ "error": "Erreur"+ },+ "countsHint": "Les compteurs portent sur l'ensemble du tampon de journal du serveur, pas uniquement sur les entrées correspondant à ces filtres.",+ "searchPlaceholder": "Rechercher dans les messages du journal…",+ "jumpToLatest": "Aller aux plus récentes",+ "showMore": "Afficher plus",+ "showLess": "Afficher moins",+ "buffered": "Affichage de {count} entrées sur un maximum de {max} en mémoire tampon",+ "emptyTitle": "Aucune entrée de journal pour l'instant",+ "emptyDescription": "Les entrées apparaissent ici au fur et à mesure que le serveur les écrit. Élargissez les filtres de niveau, de fournisseur ou de recherche si vous attendiez des résultats.",+ "noLevelsTitle": "Aucun niveau sélectionné",+ "noLevelsDescription": "Activez au moins un niveau pour voir le journal.",+ "loadFailed": "Impossible de charger le journal du serveur."+ },"playground": {"title": "Bac à sable","description": "Envoyez une complétion de chat via le routeur et voyez quel fournisseur la traite.",diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 568a7f2f..3b265a86 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -14,7 +14,9 @@"switchToChinese": "ચાઇનીઝ પર સ્વિચ કરો","switchToEnglish": "અંગ્રેજી પર સ્વિચ કરો","modelsMenu": "મોડેલ પ્રકારો બ્રાઉઝ કરો",- "agents": "એજન્ટ્સ"+ "agents": "એજન્ટ્સ",+ "logs": "લોગ",+ "analyticsMenu": "એનાલિટિક્સ પેજ"},"auth": {"createYourAccount": "તમારું એકાઉન્ટ બનાવો",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "એજન્ટ પ્રમાણે વિનંતીઓ"},+ "logs": {+ "title": "લોગ",+ "description": "લાઇવ સર્વર લોગ. પેજ ખુલ્લું હોય ત્યાં સુધી નવી એન્ટ્રીઓ આવતી રહે છે.",+ "pause": "થોભાવો",+ "resume": "ફરી શરૂ કરો",+ "clear": "લોગ સાફ કરો",+ "cleared": "સર્વર લોગ સાફ કર્યો",+ "levelFilter": "લોગ સ્તર",+ "levels": {+ "debug": "ડીબગ",+ "info": "ઇન્ફો",+ "warn": "ચેતવણી",+ "error": "ભૂલ"+ },+ "countsHint": "ગણતરીઓ સર્વર પરના આખા લોગ બફરની કુલ છે, ફક્ત આ ફિલ્ટર સાથે મેળ ખાતી એન્ટ્રીઓની નહીં.",+ "searchPlaceholder": "લોગ સંદેશા શોધો...",+ "jumpToLatest": "તાજેતરના પર જાઓ",+ "showMore": "વધુ બતાવો",+ "showLess": "ઓછું બતાવો",+ "buffered": "વધુમાં વધુ {max} બફર થયેલી એન્ટ્રીઓમાંથી {count} બતાવી રહ્યા છીએ",+ "emptyTitle": "હજુ સુધી કોઈ લોગ એન્ટ્રી નથી",+ "emptyDescription": "સર્વર લખે તેમ એન્ટ્રીઓ અહીં દેખાશે. જો તમને આઉટપુટની અપેક્ષા હોય તો સ્તર, પ્રદાતા કે શોધ ફિલ્ટરનો વ્યાપ વધારો.",+ "noLevelsTitle": "કોઈ સ્તર પસંદ કર્યું નથી",+ "noLevelsDescription": "લોગ આઉટપુટ જોવા માટે ઓછામાં ઓછું એક સ્તર ચાલુ કરો.",+ "loadFailed": "સર્વર લોગ લોડ થઈ શક્યો નહીં."+ },"playground": {"title": "રમતનું મેદાન","description": "રાઉટર દ્વારા ચેટ પૂર્ણતા મોકલો અને જુઓ કે કયા પ્રદાતા તેને સેવા આપે છે.",diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex da146c4f..a5bfdfe8 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -14,7 +14,9 @@"switchToChinese": "Canja zuwa Sinanci","switchToEnglish": "Canja zuwa Turanci","modelsMenu": "Bincika nau'ikan samfuri",- "agents": "Wakilai"+ "agents": "Wakilai",+ "logs": "Logs",+ "analyticsMenu": "Shafukan bincike"},"auth": {"createYourAccount": "Ƙirƙiri asusun ku",@@ -636,6 +638,32 @@"ttft": "Saukewa: TTFT","requestsByAgent": "Bukatu ta kowane wakili"},+ "logs": {+ "title": "Logs",+ "description": "Log ɗin uwar garke kai tsaye. Sabbin shigarwa suna zuwa yayin da shafin yake a buɗe.",+ "pause": "Dakatar",+ "resume": "Ci gaba",+ "clear": "Share logs",+ "cleared": "An share log ɗin uwar garke",+ "levelFilter": "Matakan log",+ "levels": {+ "debug": "Debug",+ "info": "Bayani",+ "warn": "Gargaɗi",+ "error": "Kuskure"+ },+ "countsHint": "Ƙidayar ita ce jimillar duk ma'ajin log ɗin da ke kan uwar garke, ba kawai shigarwar da ta dace da waɗannan matatun ba.",+ "searchPlaceholder": "Bincika saƙonnin log…",+ "jumpToLatest": "Tsallaka zuwa na baya-bayan nan",+ "showMore": "Nuna ƙari",+ "showLess": "Nuna ƙasa",+ "buffered": "Ana nuna {count} daga cikin shigarwa {max} da aka ajiye a ma'aji",+ "emptyTitle": "Babu shigarwar log tukuna",+ "emptyDescription": "Shigarwa na bayyana nan yayin da uwar garken ke rubuta su. Faɗaɗa matatun mataki, mai samarwa ko bincike idan kana tsammanin fitarwa.",+ "noLevelsTitle": "Ba a zaɓi kowane mataki ba",+ "noLevelsDescription": "Kunna aƙalla mataki ɗaya don ganin fitarwar log.",+ "loadFailed": "An kasa loda log ɗin uwar garke."+ },"playground": {"title": "filin wasa","description": "Aika kammala taɗi ta hanyar na'ura mai ba da hanya tsakanin hanyoyin sadarwa kuma duba mai bada sabis ɗin.",diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex 0e5ab481..8847f694 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -14,7 +14,9 @@"switchToChinese": "מעבר לסינית","switchToEnglish": "מעבר לאנגלית","modelsMenu": "דפדוף בסוגי דגמים",- "agents": "סוכנים"+ "agents": "סוכנים",+ "logs": "יומן",+ "analyticsMenu": "דפי אנליטיקה"},"auth": {"createYourAccount": "צור את החשבון שלך",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "בקשות לפי סוכן"},+ "logs": {+ "title": "יומן",+ "description": "יומן השרת בזמן אמת. רשומות חדשות מגיעות כל עוד הדף פתוח.",+ "pause": "השהה",+ "resume": "המשך",+ "clear": "נקה יומן",+ "cleared": "יומן השרת נוקה",+ "levelFilter": "רמות יומן",+ "levels": {+ "debug": "ניפוי באגים",+ "info": "מידע",+ "warn": "אזהרה",+ "error": "שגיאה"+ },+ "countsHint": "הספירות מתייחסות לכל מאגר היומן שבשרת, ולא רק לרשומות שתואמות למסננים האלה.",+ "searchPlaceholder": "חיפוש בהודעות היומן...",+ "jumpToLatest": "מעבר לאחרונות",+ "showMore": "הצג עוד",+ "showLess": "הצג פחות",+ "buffered": "מוצגות {count} מתוך עד {max} רשומות במאגר",+ "emptyTitle": "אין עדיין רשומות ביומן",+ "emptyDescription": "רשומות יופיעו כאן ככל שהשרת יכתוב אותן. אם ציפית לפלט, הרחב את מסנני הרמה, הספק או החיפוש.",+ "noLevelsTitle": "לא נבחרו רמות",+ "noLevelsDescription": "הפעל לפחות רמה אחת כדי לראות את פלט היומן.",+ "loadFailed": "לא ניתן לטעון את יומן השרת."+ },"playground": {"title": "מגרש משחקים","description": "שלח השלמת צ'אט דרך הנתב וראה איזה ספק מספק אותו.",diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex 0591860b..071af1f4 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -14,7 +14,9 @@"switchToChinese": "चीनी पर स्विच करें","switchToEnglish": "अंग्रेजी पर स्विच करें","modelsMenu": "मॉडल प्रकार ब्राउज़ करें",- "agents": "एजेंट"+ "agents": "एजेंट",+ "logs": "लॉग",+ "analyticsMenu": "विश्लेषिकी पेज"},"auth": {"createYourAccount": "अपना खाता बनाएं",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "एजेंट के अनुसार अनुरोध"},+ "logs": {+ "title": "लॉग",+ "description": "लाइव सर्वर लॉग। पेज खुला रहने तक नई प्रविष्टियाँ आती रहती हैं।",+ "pause": "रोकें",+ "resume": "जारी रखें",+ "clear": "लॉग साफ़ करें",+ "cleared": "सर्वर लॉग साफ़ कर दिया गया",+ "levelFilter": "लॉग स्तर",+ "levels": {+ "debug": "डीबग",+ "info": "इन्फ़ो",+ "warn": "चेतावनी",+ "error": "त्रुटि"+ },+ "countsHint": "गिनती सर्वर पर मौजूद पूरे लॉग बफ़र की है, सिर्फ़ इन फ़िल्टरों से मेल खाने वाली प्रविष्टियों की नहीं।",+ "searchPlaceholder": "लॉग संदेश खोजें…",+ "jumpToLatest": "नवीनतम पर जाएँ",+ "showMore": "और दिखाएँ",+ "showLess": "कम दिखाएँ",+ "buffered": "अधिकतम {max} बफ़र प्रविष्टियों में से {count} दिखाई जा रही हैं",+ "emptyTitle": "अभी तक कोई लॉग प्रविष्टि नहीं",+ "emptyDescription": "सर्वर जैसे-जैसे लिखता है, प्रविष्टियाँ यहाँ दिखती जाएँगी। यदि आपको आउटपुट की उम्मीद थी तो स्तर, प्रदाता या खोज फ़िल्टर का दायरा बढ़ाएँ।",+ "noLevelsTitle": "कोई स्तर चयनित नहीं",+ "noLevelsDescription": "लॉग आउटपुट देखने के लिए कम से कम एक स्तर चालू करें।",+ "loadFailed": "सर्वर लॉग लोड नहीं हो सका।"+ },"playground": {"title": "खेल का मैदान","description": "राउटर के माध्यम से चैट पूर्णता भेजें और देखें कि कौन सा प्रदाता इसे परोसता है।",diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex c071f7b8..4c4be1f2 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -14,7 +14,9 @@"switchToChinese": "Prijelaz na kineski","switchToEnglish": "Prijelaz na engleski","modelsMenu": "Pregledajte vrste modela",- "agents": "Agenti"+ "agents": "Agenti",+ "logs": "Logovi",+ "analyticsMenu": "Stranice analitike"},"auth": {"createYourAccount": "Kreirajte svoj račun",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Zahtjevi po agentu"},+ "logs": {+ "title": "Logovi",+ "description": "Log servera uživo. Novi unosi pristižu dok je stranica otvorena.",+ "pause": "Pauziraj",+ "resume": "Nastavi",+ "clear": "Očisti logove",+ "cleared": "Log servera očišćen",+ "levelFilter": "Razine logiranja",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Upozorenje",+ "error": "Pogreška"+ },+ "countsHint": "Brojevi se odnose na cijeli međuspremnik loga na serveru, a ne samo na unose koji odgovaraju ovim filtrima.",+ "searchPlaceholder": "Pretraži poruke loga…",+ "jumpToLatest": "Skoči na najnovije",+ "showMore": "Prikaži više",+ "showLess": "Prikaži manje",+ "buffered": "Prikazano {count} od najviše {max} spremljenih unosa",+ "emptyTitle": "Još nema unosa u logu",+ "emptyDescription": "Unosi se pojavljuju ovdje čim ih server zapiše. Proširite filtre razine, pružatelja ili pretrage ako ste očekivali izlaz.",+ "noLevelsTitle": "Nije odabrana nijedna razina",+ "noLevelsDescription": "Uključite barem jednu razinu da biste vidjeli sadržaj loga.",+ "loadFailed": "Nije moguće učitati log servera."+ },"playground": {"title": "Igralište","description": "Pošalji poruku o završetku chata preko rutera i vidi koji pružatelj to servisira.",diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex a31e0398..a3f21c4f 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -14,7 +14,9 @@"switchToChinese": "Átállás kínaira","switchToEnglish": "Átállás angolra","modelsMenu": "Böngészés modelltípusok",- "agents": "Ügynökök"+ "agents": "Ügynökök",+ "logs": "Napló",+ "analyticsMenu": "Elemzési oldalak"},"auth": {"createYourAccount": "Hozza létre a fiókot",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Kérések ügynökönként"},+ "logs": {+ "title": "Napló",+ "description": "A szerver élő naplója. Az új bejegyzések folyamatosan érkeznek, amíg az oldal nyitva van.",+ "pause": "Szünet",+ "resume": "Folytatás",+ "clear": "Napló törlése",+ "cleared": "A szerver naplója törölve",+ "levelFilter": "Naplószintek",+ "levels": {+ "debug": "Debug",+ "info": "Infó",+ "warn": "Figyelmeztetés",+ "error": "Hiba"+ },+ "countsHint": "A számok a szerver teljes naplópufferére vonatkoznak, nem csak a szűrőknek megfelelő bejegyzésekre.",+ "searchPlaceholder": "Keresés a naplóüzenetekben…",+ "jumpToLatest": "Ugrás a legújabbra",+ "showMore": "Több megjelenítése",+ "showLess": "Kevesebb megjelenítése",+ "buffered": "{count} bejegyzés látható a legfeljebb {max} pufferelt bejegyzésből",+ "emptyTitle": "Még nincs naplóbejegyzés",+ "emptyDescription": "A bejegyzések itt jelennek meg, ahogy a szerver írja őket. Ha kimenetre számított, bővítse a szint-, szolgáltató- vagy keresési szűrőket.",+ "noLevelsTitle": "Nincs kiválasztott szint",+ "noLevelsDescription": "A naplókimenet megtekintéséhez kapcsoljon be legalább egy szintet.",+ "loadFailed": "Nem sikerült betölteni a szerver naplóját."+ },"playground": {"title": "Játszótér","description": "Küldj egy beszélgetés befejezést a routeren keresztül, és nézd meg, melyik szolgáltató szolgálja ki.",diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex f1bb865b..81e10c4b 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -14,7 +14,9 @@"switchToChinese": "Beralih ke bahasa Cina","switchToEnglish": "Beralih ke bahasa Inggris","modelsMenu": "Telusuri jenis model",- "agents": "Agen"+ "agents": "Agen",+ "logs": "Log",+ "analyticsMenu": "Halaman analisis"},"auth": {"createYourAccount": "Buat akun Anda",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Permintaan per agen"},+ "logs": {+ "title": "Log",+ "description": "Log server langsung. Entri baru terus masuk selama halaman ini terbuka.",+ "pause": "Jeda",+ "resume": "Lanjutkan",+ "clear": "Bersihkan log",+ "cleared": "Log server dibersihkan",+ "levelFilter": "Level log",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Peringatan",+ "error": "Kesalahan"+ },+ "countsHint": "Jumlah ini adalah total untuk seluruh buffer log di server, bukan hanya entri yang cocok dengan filter ini.",+ "searchPlaceholder": "Cari pesan log…",+ "jumpToLatest": "Ke entri terbaru",+ "showMore": "Tampilkan lebih banyak",+ "showLess": "Tampilkan lebih sedikit",+ "buffered": "Menampilkan {count} dari maksimal {max} entri di buffer",+ "emptyTitle": "Belum ada entri log",+ "emptyDescription": "Entri muncul di sini saat server menuliskannya. Perlebar filter level, penyedia, atau pencarian jika Anda mengharapkan ada keluaran.",+ "noLevelsTitle": "Tidak ada level yang dipilih",+ "noLevelsDescription": "Aktifkan setidaknya satu level untuk melihat keluaran log.",+ "loadFailed": "Tidak dapat memuat log server."+ },"playground": {"title": "Taman bermain","description": "Kirim penyelesaian obrolan melalui router dan lihat penyedia mana yang melayaninya.",diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex 82a84d51..954ef5af 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -14,7 +14,9 @@"switchToChinese": "Banye na Chinese","switchToEnglish": "Banye na bekee","modelsMenu": "Chọgharịa ụdị nlereanya",- "agents": "Ndị ejenti"+ "agents": "Ndị ejenti",+ "logs": "Ndekọ",+ "analyticsMenu": "Ibe nchịkọta"},"auth": {"createYourAccount": "Mepụta akaụntụ gị",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Arịrịọ site na ejenti"},+ "logs": {+ "title": "Ndekọ",+ "description": "Ndekọ sava dị ndụ. Ihe ndekọ ọhụrụ na-abata mgbe ibe a mepere emepe.",+ "pause": "Kwụsịtụ",+ "resume": "Gaa n'ihu",+ "clear": "Kpochapụ ndekọ",+ "cleared": "Ekpochapụla ndekọ sava",+ "levelFilter": "Ọkwa ndekọ",+ "levels": {+ "debug": "Debug",+ "info": "Ozi",+ "warn": "Ịdọ aka ntị",+ "error": "Njehie"+ },+ "countsHint": "Ọnụọgụgụ ndị a bụ ngụkọta nke ebe nchekwa ndekọ dum dị na sava, ọ bụghị naanị ihe ndekọ dabara na nzacha ndị a.",+ "searchPlaceholder": "Chọọ ozi ndekọ…",+ "jumpToLatest": "Wụga na nke ọhụrụ",+ "showMore": "Gosi ihe ọzọ",+ "showLess": "Gosi obere",+ "buffered": "Na-egosi {count} n'ime ihe ndekọ {max} echekwara",+ "emptyTitle": "Enweghị ihe ndekọ ruo ugbu a",+ "emptyDescription": "Ihe ndekọ na-apụta ebe a ka sava na-ede ha. Gbasaa nzacha ọkwa, onye na-eweta ma ọ bụ ọchụchọ ma ọ bụrụ na ị tụrụ anya nsonaazụ.",+ "noLevelsTitle": "Ahọrọghị ọkwa ọ bụla",+ "noLevelsDescription": "Gbanye ma ọ dịkarịa ala otu ọkwa ka ị hụ ihe ndekọ.",+ "loadFailed": "Enweghị ike ibugo ndekọ sava."+ },"playground": {"title": "Ebe egwuregwu","description": "Zipụ nkata mmecha site na rawụta wee hụ onye na-eweta ya.",diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 3f65f9ce..9c1034f0 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -14,7 +14,9 @@"switchToChinese": "Passa al cinese","switchToEnglish": "Passa all'inglese","modelsMenu": "Sfoglia i tipi di modello",- "agents": "Agenti"+ "agents": "Agenti",+ "logs": "Log",+ "analyticsMenu": "Pagine di analisi"},"auth": {"createYourAccount": "Crea il tuo account",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Richieste per agente"},+ "logs": {+ "title": "Log",+ "description": "Log del server in tempo reale. Le nuove voci arrivano mentre la pagina è aperta.",+ "pause": "Sospendi",+ "resume": "Riprendi",+ "clear": "Cancella i log",+ "cleared": "Log del server cancellato",+ "levelFilter": "Livelli di log",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Avviso",+ "error": "Errore"+ },+ "countsHint": "I conteggi si riferiscono all'intero buffer di log sul server, non solo alle voci che corrispondono a questi filtri.",+ "searchPlaceholder": "Cerca nei messaggi di log…",+ "jumpToLatest": "Vai alle più recenti",+ "showMore": "Mostra di più",+ "showLess": "Mostra meno",+ "buffered": "Visualizzate {count} voci su un massimo di {max} nel buffer",+ "emptyTitle": "Ancora nessuna voce di log",+ "emptyDescription": "Le voci compaiono qui man mano che il server le scrive. Allarga i filtri di livello, fornitore o ricerca se ti aspettavi dei risultati.",+ "noLevelsTitle": "Nessun livello selezionato",+ "noLevelsDescription": "Attiva almeno un livello per vedere l'output del log.",+ "loadFailed": "Impossibile caricare il log del server."+ },"playground": {"title": "Playground","description": "Invia una richiesta di chat attraverso il router e scopri quale fornitore la serve.",diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex f86f4a15..686edafd 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -14,7 +14,9 @@"switchToChinese": "中国語に切り替える","switchToEnglish": "英語に切り替える","modelsMenu": "モデルタイプを参照する",- "agents": "エージェント"+ "agents": "エージェント",+ "logs": "ログ",+ "analyticsMenu": "分析ページ"},"auth": {"createYourAccount": "アカウントを作成する",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "エージェント別リクエスト"},+ "logs": {+ "title": "ログ",+ "description": "サーバーのライブログです。ページを開いている間、新しいエントリが順次流れてきます。",+ "pause": "一時停止",+ "resume": "再開",+ "clear": "ログを消去",+ "cleared": "サーバーログを消去しました",+ "levelFilter": "ログレベル",+ "levels": {+ "debug": "デバッグ",+ "info": "情報",+ "warn": "警告",+ "error": "エラー"+ },+ "countsHint": "件数はサーバー上のログバッファ全体の合計であり、これらのフィルターに一致するエントリだけの数ではありません。",+ "searchPlaceholder": "ログメッセージを検索…",+ "jumpToLatest": "最新へ移動",+ "showMore": "さらに表示",+ "showLess": "表示を少なくする",+ "buffered": "バッファ内の最大 {max} 件のうち {count} 件を表示中",+ "emptyTitle": "ログエントリはまだありません",+ "emptyDescription": "サーバーが書き込むと、ここにエントリが表示されます。出力があるはずの場合は、レベル・プロバイダー・検索のフィルターを広げてください。",+ "noLevelsTitle": "レベルが選択されていません",+ "noLevelsDescription": "ログ出力を表示するには、レベルを 1 つ以上オンにしてください。",+ "loadFailed": "サーバーログを読み込めませんでした。"+ },"playground": {"title": "遊び場","description": "ルーター経由でチャット完了を送信し、どのプロバイダーがサービスを提供しているかを確認します。",diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex c91ff7c3..ee520df2 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -14,7 +14,9 @@"switchToChinese": "ჩინურზე გადართვა","switchToEnglish": "ინგლისურზე გადართვა","modelsMenu": "მოდელის ტიპების დათვალიერება",- "agents": "აგენტები"+ "agents": "აგენტები",+ "logs": "ჟურნალი",+ "analyticsMenu": "ანალიტიკის გვერდები"},"auth": {"createYourAccount": "შექმენით თქვენი ანგარიში",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "მოთხოვნები აგენტების მიხედვით"},+ "logs": {+ "title": "ჟურნალი",+ "description": "სერვერის ცოცხალი ჟურნალი. ახალი ჩანაწერები ემატება, სანამ გვერდი ღიაა.",+ "pause": "პაუზა",+ "resume": "გაგრძელება",+ "clear": "ჟურნალის გასუფთავება",+ "cleared": "სერვერის ჟურნალი გასუფთავდა",+ "levelFilter": "ჟურნალის დონეები",+ "levels": {+ "debug": "გამართვა",+ "info": "ინფო",+ "warn": "გაფრთხილება",+ "error": "შეცდომა"+ },+ "countsHint": "რაოდენობები ეხება სერვერზე ჟურნალის მთელ ბუფერს და არა მხოლოდ ამ ფილტრებს დამთხვევ ჩანაწერებს.",+ "searchPlaceholder": "ძებნა ჟურნალის შეტყობინებებში…",+ "jumpToLatest": "უახლესებზე გადასვლა",+ "showMore": "მეტის ჩვენება",+ "showLess": "ნაკლების ჩვენება",+ "buffered": "ნაჩვენებია {count} ბუფერის მაქსიმუმ {max} ჩანაწერიდან",+ "emptyTitle": "ჟურნალის ჩანაწერები ჯერ არ არის",+ "emptyDescription": "ჩანაწერები აქ გამოჩნდება, როგორც კი სერვერი ჩაწერს მათ. თუ გამოტანას ელოდით, გააფართოვეთ დონის, პროვაიდერის ან ძებნის ფილტრები.",+ "noLevelsTitle": "დონეები არჩეული არ არის",+ "noLevelsDescription": "ჩართეთ ერთი დონე მაინც, რომ ჟურნალის გამოტანა ნახოთ.",+ "loadFailed": "სერვერის ჟურნალის ჩატვირთვა ვერ მოხერხდა."+ },"playground": {"title": "სათამაშო მოედანი","description": "გაგზავნეთ ჩეთის დასრულება როუტერის საშუალებით და ნახეთ, რომელი პროვაიდერი ემსახურება მას.",diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 1c07a59c..f67ce26a 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -14,7 +14,9 @@"switchToChinese": "ប្ដូរទៅភាសាចិន","switchToEnglish": "ប្ដូរទៅភាសាអង់គ្លេស","modelsMenu": "រុករកប្រភេទម៉ូដែល",- "agents": "ភ្នាក់ងារ"+ "agents": "ភ្នាក់ងារ",+ "logs": "កំណត់ហេតុ",+ "analyticsMenu": "ទំព័រវិភាគ"},"auth": {"createYourAccount": "បង្កើតគណនីរបស់អ្នក",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "សំណើតាមភ្នាក់ងារ"},+ "logs": {+ "title": "កំណត់ហេតុ",+ "description": "កំណត់ហេតុម៉ាស៊ីនមេផ្ទាល់។ ធាតុថ្មីនឹងបង្ហាញបន្តបន្ទាប់ ខណៈទំព័រនេះនៅបើក។",+ "pause": "ផ្អាក",+ "resume": "បន្ត",+ "clear": "សម្អាតកំណត់ហេតុ",+ "cleared": "បានសម្អាតកំណត់ហេតុម៉ាស៊ីនមេ",+ "levelFilter": "កម្រិតកំណត់ហេតុ",+ "levels": {+ "debug": "ដេប៊ុក",+ "info": "ព័ត៌មាន",+ "warn": "ព្រមាន",+ "error": "កំហុស"+ },+ "countsHint": "ចំនួនទាំងនេះជាសរុបនៃឃ្លាំងសតិកំណត់ហេតុទាំងមូលនៅលើម៉ាស៊ីនមេ មិនមែនត្រឹមតែធាតុដែលត្រូវនឹងតម្រងទាំងនេះទេ។",+ "searchPlaceholder": "ស្វែងរកសាររបស់កំណត់ហេតុ…",+ "jumpToLatest": "ទៅធាតុថ្មីបំផុត",+ "showMore": "បង្ហាញបន្ថែម",+ "showLess": "បង្ហាញតិច",+ "buffered": "កំពុងបង្ហាញ {count} ក្នុងចំណោមធាតុដែលរក្សាទុកអតិបរមា {max}",+ "emptyTitle": "មិនទាន់មានធាតុកំណត់ហេតុទេ",+ "emptyDescription": "ធាតុនឹងបង្ហាញនៅទីនេះនៅពេលម៉ាស៊ីនមេសរសេរវា។ សូមពង្រីកតម្រងកម្រិត អ្នកផ្តល់សេវា ឬការស្វែងរក ប្រសិនបើអ្នករំពឹងថាមានលទ្ធផល។",+ "noLevelsTitle": "មិនបានជ្រើសរើសកម្រិតណាមួយ",+ "noLevelsDescription": "សូមបើកកម្រិតយ៉ាងហោចណាស់មួយ ដើម្បីមើលលទ្ធផលកំណត់ហេតុ។",+ "loadFailed": "មិនអាចផ្ទុកកំណត់ហេតុម៉ាស៊ីនមេបានទេ។"+ },"playground": {"title": "កន្លែងលេងក្មេង","description": "ផ្ញើការបញ្ចប់ការជជែកតាមរយៈរ៉ោទ័រ ហើយមើលថាតើអ្នកផ្គត់ផ្គង់ណាដែលបម្រើវា។",diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 92cf9e46..d121a4c6 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -14,7 +14,9 @@"switchToChinese": "ಚೈನೀಸ್ಗೆ ಬದಲಿಸಿ","switchToEnglish": "ಇಂಗ್ಲಿಷ್ಗೆ ಬದಲಿಸಿ","modelsMenu": "ಮಾದರಿ ಪ್ರಕಾರಗಳನ್ನು ಬ್ರೌಸ್ ಮಾಡಿ",- "agents": "ಏಜೆಂಟ್ಗಳು"+ "agents": "ಏಜೆಂಟ್ಗಳು",+ "logs": "ಲಾಗ್ಗಳು",+ "analyticsMenu": "ಅನಾಲಿಟಿಕ್ಸ್ ಪುಟಗಳು"},"auth": {"createYourAccount": "ನಿಮ್ಮ ಖಾತೆಯನ್ನು ರಚಿಸಿ",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "ಏಜೆಂಟ್ ಪ್ರಕಾರ ವಿನಂತಿಗಳು"},+ "logs": {+ "title": "ಲಾಗ್ಗಳು",+ "description": "ಲೈವ್ ಸರ್ವರ್ ಲಾಗ್. ಪುಟ ತೆರೆದಿರುವಾಗ ಹೊಸ ನಮೂದುಗಳು ಬರುತ್ತಲೇ ಇರುತ್ತವೆ.",+ "pause": "ವಿರಾಮಗೊಳಿಸಿ",+ "resume": "ಮುಂದುವರಿಸಿ",+ "clear": "ಲಾಗ್ಗಳನ್ನು ತೆರವುಗೊಳಿಸಿ",+ "cleared": "ಸರ್ವರ್ ಲಾಗ್ ತೆರವುಗೊಳಿಸಲಾಗಿದೆ",+ "levelFilter": "ಲಾಗ್ ಮಟ್ಟಗಳು",+ "levels": {+ "debug": "ಡೀಬಗ್",+ "info": "ಮಾಹಿತಿ",+ "warn": "ಎಚ್ಚರಿಕೆ",+ "error": "ದೋಷ"+ },+ "countsHint": "ಈ ಎಣಿಕೆಗಳು ಸರ್ವರ್ನಲ್ಲಿರುವ ಸಂಪೂರ್ಣ ಲಾಗ್ ಬಫರ್ನ ಒಟ್ಟು ಮೊತ್ತವಾಗಿವೆ, ಈ ಫಿಲ್ಟರ್ಗಳಿಗೆ ಹೊಂದಿಕೆಯಾಗುವ ನಮೂದುಗಳದ್ದು ಮಾತ್ರವಲ್ಲ.",+ "searchPlaceholder": "ಲಾಗ್ ಸಂದೇಶಗಳನ್ನು ಹುಡುಕಿ...",+ "jumpToLatest": "ಇತ್ತೀಚಿನದಕ್ಕೆ ಹೋಗಿ",+ "showMore": "ಹೆಚ್ಚು ತೋರಿಸು",+ "showLess": "ಕಡಿಮೆ ತೋರಿಸು",+ "buffered": "ಬಫರ್ ಮಾಡಿದ ಗರಿಷ್ಠ {max} ನಮೂದುಗಳಲ್ಲಿ {count} ತೋರಿಸಲಾಗುತ್ತಿದೆ",+ "emptyTitle": "ಇನ್ನೂ ಯಾವುದೇ ಲಾಗ್ ನಮೂದುಗಳಿಲ್ಲ",+ "emptyDescription": "ಸರ್ವರ್ ಬರೆಯುತ್ತಿದ್ದಂತೆ ನಮೂದುಗಳು ಇಲ್ಲಿ ಕಾಣಿಸಿಕೊಳ್ಳುತ್ತವೆ. ಔಟ್ಪುಟ್ ನಿರೀಕ್ಷಿಸಿದ್ದರೆ ಮಟ್ಟ, ಪೂರೈಕೆದಾರ ಅಥವಾ ಹುಡುಕಾಟ ಫಿಲ್ಟರ್ಗಳನ್ನು ವಿಸ್ತರಿಸಿ.",+ "noLevelsTitle": "ಯಾವುದೇ ಮಟ್ಟ ಆಯ್ಕೆಯಾಗಿಲ್ಲ",+ "noLevelsDescription": "ಲಾಗ್ ಔಟ್ಪುಟ್ ನೋಡಲು ಕನಿಷ್ಠ ಒಂದು ಮಟ್ಟವನ್ನು ಆನ್ ಮಾಡಿ.",+ "loadFailed": "ಸರ್ವರ್ ಲಾಗ್ ಅನ್ನು ಲೋಡ್ ಮಾಡಲಾಗಲಿಲ್ಲ."+ },"playground": {"title": "ಆಟದ ಮೈದಾನ","description": "ರೂಟರ್ ಮೂಲಕ ಚಾಟ್ ಪೂರ್ಣಗೊಳಿಸುವಿಕೆಯನ್ನು ಕಳುಹಿಸಿ ಮತ್ತು ಯಾವ ಪೂರೈಕೆದಾರರು ಅದನ್ನು ಪೂರೈಸುತ್ತಾರೆ ಎಂಬುದನ್ನು ನೋಡಿ.",diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex 1877f071..ac36bc62 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -14,7 +14,9 @@"switchToChinese": "중국어로 전환","switchToEnglish": "영어로 전환","modelsMenu": "모델 유형 찾아보기",- "agents": "에이전트"+ "agents": "에이전트",+ "logs": "로그",+ "analyticsMenu": "분석 페이지"},"auth": {"createYourAccount": "계정 만들기",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "에이전트별 요청"},+ "logs": {+ "title": "로그",+ "description": "실시간 서버 로그입니다. 페이지가 열려 있는 동안 새 항목이 계속 들어옵니다.",+ "pause": "일시정지",+ "resume": "다시 시작",+ "clear": "로그 지우기",+ "cleared": "서버 로그를 지웠습니다",+ "levelFilter": "로그 수준",+ "levels": {+ "debug": "디버그",+ "info": "정보",+ "warn": "경고",+ "error": "오류"+ },+ "countsHint": "개수는 서버의 전체 로그 버퍼 기준 총계이며, 현재 필터에 해당하는 항목만 센 것이 아닙니다.",+ "searchPlaceholder": "로그 메시지 검색…",+ "jumpToLatest": "최신으로 이동",+ "showMore": "더 보기",+ "showLess": "간략히 보기",+ "buffered": "버퍼에 저장된 최대 {max}개 중 {count}개 표시 중",+ "emptyTitle": "아직 로그 항목이 없습니다",+ "emptyDescription": "서버가 기록하는 대로 항목이 여기에 표시됩니다. 출력이 있어야 한다면 수준, 제공업체 또는 검색 필터를 넓혀 보세요.",+ "noLevelsTitle": "선택된 수준이 없습니다",+ "noLevelsDescription": "로그 출력을 보려면 수준을 하나 이상 켜세요.",+ "loadFailed": "서버 로그를 불러오지 못했습니다."+ },"playground": {"title": "놀이터","description": "라우터를 통해 채팅 완료를 보내고 어떤 공급자가 이를 제공하는지 확인하세요.",diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex afedcf32..60691c0e 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -14,7 +14,9 @@"switchToChinese": "Perėjimas prie kinų kalbos","switchToEnglish": "Perėjimas prie anglų kalbos","modelsMenu": "Naršyti modelių tipus",- "agents": "Agentai"+ "agents": "Agentai",+ "logs": "Žurnalas",+ "analyticsMenu": "Analizės puslapiai"},"auth": {"createYourAccount": "Sukurkite savo paskyrą",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Užklausos pagal agentą"},+ "logs": {+ "title": "Žurnalas",+ "description": "Tiesioginis serverio žurnalas. Nauji įrašai atsiranda tol, kol puslapis atidarytas.",+ "pause": "Pristabdyti",+ "resume": "Tęsti",+ "clear": "Išvalyti žurnalą",+ "cleared": "Serverio žurnalas išvalytas",+ "levelFilter": "Žurnalo lygiai",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Įspėjimas",+ "error": "Klaida"+ },+ "countsHint": "Skaičiai rodo viso serverio žurnalo buferio sumas, o ne tik šiuos filtrus atitinkančius įrašus.",+ "searchPlaceholder": "Ieškoti žurnalo pranešimuose…",+ "jumpToLatest": "Pereiti prie naujausių",+ "showMore": "Rodyti daugiau",+ "showLess": "Rodyti mažiau",+ "buffered": "Rodoma: {count} iš daugiausiai {max} buferyje laikomų įrašų",+ "emptyTitle": "Žurnale dar nėra įrašų",+ "emptyDescription": "Įrašai atsiras čia, kai serveris juos užrašys. Jei tikėjotės rezultatų, išplėskite lygio, tiekėjo ar paieškos filtrus.",+ "noLevelsTitle": "Nepasirinktas nė vienas lygis",+ "noLevelsDescription": "Įjunkite bent vieną lygį, kad matytumėte žurnalo įrašus.",+ "loadFailed": "Nepavyko įkelti serverio žurnalo."+ },"playground": {"title": "Žaidimų aikštelė","description": "Išsiųskite pokalbio užbaigimą per maršrutizatorių ir pažiūrėkite, kuris tiekėjas jį aptarnauja.",diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex dffd7564..fbba09b8 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -14,7 +14,9 @@"switchToChinese": "ചൈനീസ് ഭാഷയിലേക്ക് മാറുക","switchToEnglish": "ഇംഗ്ലീഷിലേക്ക് മാറുക","modelsMenu": "മോഡൽ തരങ്ങൾ ബ്രൗസ് ചെയ്യുക",- "agents": "ഏജൻ്റുകൾ"+ "agents": "ഏജൻ്റുകൾ",+ "logs": "ലോഗുകൾ",+ "analyticsMenu": "അനലിറ്റിക്സ് പേജുകൾ"},"auth": {"createYourAccount": "നിങ്ങളുടെ അക്കൗണ്ട് സൃഷ്ടിക്കുക",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "ഏജൻ്റ് അനുസരിച്ചുള്ള അഭ്യർത്ഥനകൾ"},+ "logs": {+ "title": "ലോഗുകൾ",+ "description": "തത്സമയ സെർവർ ലോഗ്. പേജ് തുറന്നിരിക്കുമ്പോൾ പുതിയ എൻട്രികൾ വന്നുകൊണ്ടിരിക്കും.",+ "pause": "താൽക്കാലികമായി നിർത്തുക",+ "resume": "തുടരുക",+ "clear": "ലോഗുകൾ മായ്ക്കുക",+ "cleared": "സെർവർ ലോഗ് മായ്ച്ചു",+ "levelFilter": "ലോഗ് ലെവലുകൾ",+ "levels": {+ "debug": "ഡീബഗ്",+ "info": "വിവരം",+ "warn": "മുന്നറിയിപ്പ്",+ "error": "പിശക്"+ },+ "countsHint": "ഈ എണ്ണങ്ങൾ സെർവറിലെ മുഴുവൻ ലോഗ് ബഫറിന്റെയും ആകെത്തുകയാണ്, ഈ ഫിൽട്ടറുകളുമായി പൊരുത്തപ്പെടുന്ന എൻട്രികളുടേത് മാത്രമല്ല.",+ "searchPlaceholder": "ലോഗ് സന്ദേശങ്ങൾ തിരയുക...",+ "jumpToLatest": "ഏറ്റവും പുതിയതിലേക്ക് പോകുക",+ "showMore": "കൂടുതൽ കാണിക്കുക",+ "showLess": "കുറവ് കാണിക്കുക",+ "buffered": "ബഫർ ചെയ്ത പരമാവധി {max} എൻട്രികളിൽ {count} എണ്ണം കാണിക്കുന്നു",+ "emptyTitle": "ഇതുവരെ ലോഗ് എൻട്രികളൊന്നുമില്ല",+ "emptyDescription": "സെർവർ എഴുതുന്നതിനനുസരിച്ച് എൻട്രികൾ ഇവിടെ ദൃശ്യമാകും. ഔട്ട്പുട്ട് പ്രതീക്ഷിച്ചിരുന്നെങ്കിൽ ലെവൽ, ദാതാവ് അല്ലെങ്കിൽ തിരയൽ ഫിൽട്ടറുകൾ വിശാലമാക്കുക.",+ "noLevelsTitle": "ലെവലുകളൊന്നും തിരഞ്ഞെടുത്തിട്ടില്ല",+ "noLevelsDescription": "ലോഗ് ഔട്ട്പുട്ട് കാണാൻ ചുരുങ്ങിയത് ഒരു ലെവലെങ്കിലും ഓണാക്കുക.",+ "loadFailed": "സെർവർ ലോഗ് ലോഡ് ചെയ്യാനായില്ല."+ },"playground": {"title": "കളിസ്ഥലം","description": "റൂട്ടറിലൂടെ ഒരു ചാറ്റ് പൂർത്തീകരണം അയച്ച് ഏത് ദാതാവാണ് ഇത് നൽകുന്നതെന്ന് കാണുക.",diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex 4dca0698..a1e1881c 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -14,7 +14,9 @@"switchToChinese": "चीनी वर स्विच करा","switchToEnglish": "इंग्रजीवर स्विच करा","modelsMenu": "मॉडेल प्रकार ब्राउझ करा",- "agents": "एजंट"+ "agents": "एजंट",+ "logs": "लॉग",+ "analyticsMenu": "विश्लेषण पृष्ठे"},"auth": {"createYourAccount": "तुमचे खाते तयार करा",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "एजंटनुसार विनंत्या"},+ "logs": {+ "title": "लॉग",+ "description": "लाइव्ह सर्व्हर लॉग. पृष्ठ उघडे असेपर्यंत नवीन नोंदी येत राहतात.",+ "pause": "थांबवा",+ "resume": "पुन्हा सुरू करा",+ "clear": "लॉग साफ करा",+ "cleared": "सर्व्हर लॉग साफ केला",+ "levelFilter": "लॉग स्तर",+ "levels": {+ "debug": "डीबग",+ "info": "इन्फो",+ "warn": "इशारा",+ "error": "त्रुटी"+ },+ "countsHint": "मोजणी सर्व्हरवरील संपूर्ण लॉग बफरची एकूण आहे, फक्त या फिल्टरशी जुळणाऱ्या नोंदींची नाही.",+ "searchPlaceholder": "लॉग संदेश शोधा…",+ "jumpToLatest": "नवीनतमवर जा",+ "showMore": "अधिक दाखवा",+ "showLess": "कमी दाखवा",+ "buffered": "जास्तीत जास्त {max} बफर केलेल्या नोंदींपैकी {count} दाखवत आहे",+ "emptyTitle": "अद्याप कोणत्याही लॉग नोंदी नाहीत",+ "emptyDescription": "सर्व्हर लिहीत जाईल तशा नोंदी येथे दिसतील. आउटपुटची अपेक्षा असल्यास स्तर, प्रदाता किंवा शोध फिल्टरची व्याप्ती वाढवा.",+ "noLevelsTitle": "कोणताही स्तर निवडलेला नाही",+ "noLevelsDescription": "लॉग आउटपुट पाहण्यासाठी किमान एक स्तर चालू करा.",+ "loadFailed": "सर्व्हर लॉग लोड करता आला नाही."+ },"playground": {"title": "खेळाचे मैदान","description": "राउटरद्वारे चॅट पूर्णता पाठवा आणि कोणता प्रदाता तो सर्व्ह करतो ते पहा.",diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex 12abd391..ce8ccc72 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -14,7 +14,9 @@"switchToChinese": "Beralih ke Bahasa Cina","switchToEnglish": "Beralih ke Bahasa Inggeris","modelsMenu": "Semak jenis model",- "agents": "Ejen"+ "agents": "Ejen",+ "logs": "Log",+ "analyticsMenu": "Halaman analitik"},"auth": {"createYourAccount": "Cipta akaun anda",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Permintaan mengikut ejen"},+ "logs": {+ "title": "Log",+ "description": "Log pelayan secara langsung. Entri baharu masuk selagi halaman ini dibuka.",+ "pause": "Jeda",+ "resume": "Sambung semula",+ "clear": "Kosongkan log",+ "cleared": "Log pelayan dikosongkan",+ "levelFilter": "Aras log",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Amaran",+ "error": "Ralat"+ },+ "countsHint": "Kiraan ini ialah jumlah keseluruhan penimbal log pada pelayan, bukan hanya entri yang sepadan dengan penapis ini.",+ "searchPlaceholder": "Cari mesej log…",+ "jumpToLatest": "Ke entri terkini",+ "showMore": "Tunjukkan lagi",+ "showLess": "Tunjukkan kurang",+ "buffered": "Menunjukkan {count} daripada sehingga {max} entri dalam penimbal",+ "emptyTitle": "Tiada entri log lagi",+ "emptyDescription": "Entri akan muncul di sini apabila pelayan menulisnya. Luaskan penapis aras, penyedia atau carian jika anda menjangkakan ada output.",+ "noLevelsTitle": "Tiada aras dipilih",+ "noLevelsDescription": "Hidupkan sekurang-kurangnya satu aras untuk melihat output log.",+ "loadFailed": "Tidak dapat memuatkan log pelayan."+ },"playground": {"title": "Taman Permainan","description": "Hantar penyempurnaan sembang melalui router dan lihat penyedia mana yang melayaninya.",diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex d2fecad4..f047356c 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -14,7 +14,9 @@"switchToChinese": "တရုတ်ဘာသာသို့ ပြောင်းရန်","switchToEnglish": "အင်္ဂလိပ်သို့ ပြောင်းပါ","modelsMenu": "မော်ဒယ်အမျိုးအစားများကို ကြည့်ရှုပါ",- "agents": "အေးဂျင့်များ"+ "agents": "အေးဂျင့်များ",+ "logs": "မှတ်တမ်းများ",+ "analyticsMenu": "သုံးသပ်ချက် စာမျက်နှာများ"},"auth": {"createYourAccount": "သင့်အကောင့်ကို ဖန်တီးပါ",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "အေးဂျင့်အလိုက် တောင်းဆိုမှုများ"},+ "logs": {+ "title": "မှတ်တမ်းများ",+ "description": "တိုက်ရိုက် ဆာဗာမှတ်တမ်း။ ဤစာမျက်နှာ ဖွင့်ထားစဉ် အချက်အလက်အသစ်များ ဆက်တိုက် ဝင်လာပါမည်။",+ "pause": "ခဏရပ်ရန်",+ "resume": "ပြန်စရန်",+ "clear": "မှတ်တမ်းများ ရှင်းလင်းရန်",+ "cleared": "ဆာဗာမှတ်တမ်းကို ရှင်းလင်းပြီးပါပြီ",+ "levelFilter": "မှတ်တမ်း အဆင့်များ",+ "levels": {+ "debug": "Debug",+ "info": "အချက်အလက်",+ "warn": "သတိပေးချက်",+ "error": "အမှား"+ },+ "countsHint": "အရေအတွက်များသည် ဆာဗာပေါ်ရှိ မှတ်တမ်းဘတ်ဖာတစ်ခုလုံး၏ စုစုပေါင်းဖြစ်ပြီး ဤစစ်ထုတ်ချက်များနှင့် ကိုက်ညီသည့် အချက်အလက်များသာ မဟုတ်ပါ။",+ "searchPlaceholder": "မှတ်တမ်းစာသားများကို ရှာဖွေပါ…",+ "jumpToLatest": "နောက်ဆုံးသို့ သွားရန်",+ "showMore": "ပိုမိုပြပါ",+ "showLess": "နည်းနည်းပြပါ",+ "buffered": "သိမ်းဆည်းထားသည့် အများဆုံး {max} ခုအနက် {count} ခုကို ပြသနေသည်",+ "emptyTitle": "မှတ်တမ်း အချက်အလက် မရှိသေးပါ",+ "emptyDescription": "ဆာဗာက ရေးသားသည်နှင့်အမျှ အချက်အလက်များ ဤနေရာတွင် ပေါ်လာပါမည်။ ရလဒ်ရှိမည်ဟု မျှော်လင့်ပါက အဆင့်၊ ဝန်ဆောင်မှုပေးသူ သို့မဟုတ် ရှာဖွေမှု စစ်ထုတ်ချက်များကို ကျယ်ပြန့်အောင် ပြင်ပါ။",+ "noLevelsTitle": "အဆင့် တစ်ခုမျှ မရွေးထားပါ",+ "noLevelsDescription": "မှတ်တမ်းများ မြင်ရရန် အနည်းဆုံး အဆင့်တစ်ခု ဖွင့်ပါ။",+ "loadFailed": "ဆာဗာမှတ်တမ်းကို တင်၍မရပါ။"+ },"playground": {"title": "ကစားကွင်း","description": "Router မှတစ်ဆင့် chat ပြီးဆုံးမှုကို ပို့ပြီး ဘယ်ဝန်ဆောင်မှုပေးသလဲဆိုတာ ကြည့်ပါ။",diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex 8d512271..ec06085f 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -14,7 +14,9 @@"switchToChinese": "चिनियाँमा स्विच गर्नुहोस्","switchToEnglish": "अङ्ग्रेजीमा स्विच गर्नुहोस्","modelsMenu": "नमूना प्रकार ब्राउज गर्नुहोस्",- "agents": "एजेन्टहरू"+ "agents": "एजेन्टहरू",+ "logs": "लग",+ "analyticsMenu": "एनालिटिक्स पृष्ठहरू"},"auth": {"createYourAccount": "तपाईँको खाता सिर्जना गर्नुहोस्",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "एजेन्टद्वारा अनुरोधहरू"},+ "logs": {+ "title": "लग",+ "description": "लाइभ सर्भर लग। पृष्ठ खुला रहेसम्म नयाँ प्रविष्टिहरू आइरहन्छन्।",+ "pause": "रोक्नुहोस्",+ "resume": "पुनः सुरु गर्नुहोस्",+ "clear": "लग खाली गर्नुहोस्",+ "cleared": "सर्भर लग खाली गरियो",+ "levelFilter": "लग स्तरहरू",+ "levels": {+ "debug": "डिबग",+ "info": "इन्फो",+ "warn": "चेतावनी",+ "error": "त्रुटि"+ },+ "countsHint": "गणनाहरू सर्भरमा रहेको सम्पूर्ण लग बफरको जम्मा हो, केवल यी फिल्टरसँग मेल खाने प्रविष्टिहरूको होइन।",+ "searchPlaceholder": "लग सन्देशहरू खोज्नुहोस्...",+ "jumpToLatest": "पछिल्लोमा जानुहोस्",+ "showMore": "थप देखाउनुहोस्",+ "showLess": "कम देखाउनुहोस्",+ "buffered": "बढीमा {max} बफर गरिएका प्रविष्टिहरूमध्ये {count} देखाइँदै छ",+ "emptyTitle": "अहिलेसम्म कुनै लग प्रविष्टि छैन",+ "emptyDescription": "सर्भरले लेख्दै जाँदा प्रविष्टिहरू यहाँ देखिनेछन्। आउटपुटको अपेक्षा गर्नुभएको थियो भने स्तर, प्रदायक वा खोज फिल्टरको दायरा बढाउनुहोस्।",+ "noLevelsTitle": "कुनै स्तर चयन गरिएको छैन",+ "noLevelsDescription": "लग आउटपुट हेर्न कम्तीमा एउटा स्तर चालु गर्नुहोस्।",+ "loadFailed": "सर्भर लग लोड गर्न सकिएन।"+ },"playground": {"title": "खेल मैदान[सम्पादन गर्ने]","description": "राउटर मार्फत एक च्याट पूरा पठाउनुहोस् र जो प्रदायक यो सेवा हेर्नुहोस्.",diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex 643da885..e21a9809 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -14,7 +14,9 @@"switchToChinese": "Overstappen naar Chinees","switchToEnglish": "Overstap naar Engels","modelsMenu": "Blader door modeltypes",- "agents": "Agenten"+ "agents": "Agenten",+ "logs": "Logs",+ "analyticsMenu": "Analytics-pagina's"},"auth": {"createYourAccount": "Maak je account aan",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Verzoeken per agent"},+ "logs": {+ "title": "Logs",+ "description": "Live serverlog. Nieuwe regels komen binnen zolang de pagina open staat.",+ "pause": "Pauzeren",+ "resume": "Hervatten",+ "clear": "Logs wissen",+ "cleared": "Serverlog gewist",+ "levelFilter": "Logniveaus",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Waarschuwing",+ "error": "Fout"+ },+ "countsHint": "De aantallen gelden voor de volledige logbuffer op de server, niet alleen voor de regels die aan deze filters voldoen.",+ "searchPlaceholder": "Zoek in logberichten…",+ "jumpToLatest": "Naar de nieuwste",+ "showMore": "Meer tonen",+ "showLess": "Minder tonen",+ "buffered": "{count} van maximaal {max} gebufferde regels getoond",+ "emptyTitle": "Nog geen logregels",+ "emptyDescription": "Regels verschijnen hier zodra de server ze schrijft. Verruim de filters voor niveau, aanbieder of zoekopdracht als je uitvoer verwachtte.",+ "noLevelsTitle": "Geen niveaus geselecteerd",+ "noLevelsDescription": "Zet minstens één niveau aan om loguitvoer te zien.",+ "loadFailed": "Kan het serverlog niet laden."+ },"playground": {"title": "Speeltuin","description": "Stuur een chatvoltooiing via de router en kijk welke provider het bedient.",diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex 1806ff0b..69dbc6ba 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -14,7 +14,9 @@"switchToChinese": "Overgang til kinesisk","switchToEnglish": "Bytte til engelsk","modelsMenu": "Bla gjennom modelltyper",- "agents": "Agenter"+ "agents": "Agenter",+ "logs": "Logg",+ "analyticsMenu": "Analysesider"},"auth": {"createYourAccount": "Opprett kontoen din",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Forespørsler per agent"},+ "logs": {+ "title": "Logg",+ "description": "Live serverlogg. Nye oppføringer kommer inn mens siden er åpen.",+ "pause": "Sett på pause",+ "resume": "Fortsett",+ "clear": "Tøm loggen",+ "cleared": "Serverloggen er tømt",+ "levelFilter": "Loggnivåer",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Advarsel",+ "error": "Feil"+ },+ "countsHint": "Tallene gjelder hele loggbufferen på serveren, ikke bare oppføringene som treffer disse filtrene.",+ "searchPlaceholder": "Søk i loggmeldinger…",+ "jumpToLatest": "Gå til nyeste",+ "showMore": "Vis mer",+ "showLess": "Vis mindre",+ "buffered": "Viser {count} av opptil {max} bufrede oppføringer",+ "emptyTitle": "Ingen loggoppføringer ennå",+ "emptyDescription": "Oppføringer vises her etter hvert som serveren skriver dem. Utvid filtrene for nivå, leverandør eller søk hvis du ventet utdata.",+ "noLevelsTitle": "Ingen nivåer valgt",+ "noLevelsDescription": "Slå på minst ett nivå for å se loggutdata.",+ "loadFailed": "Kunne ikke laste inn serverloggen."+ },"playground": {"title": "Lekeplass","description": "Send en chat-fullføring via ruteren og se hvilken leverandør som betjener den.",diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex a9e05c9a..cf5a2cd5 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -14,7 +14,9 @@"switchToChinese": "ଚାଇନିଜ୍ କୁ ସ୍ଵିଚ୍ କରନ୍ତୁ","switchToEnglish": "ଇଂରାଜୀକୁ ସୁଇଚ୍ କରନ୍ତୁ","modelsMenu": "ମଡେଲ୍ ପ୍ରକାରଗୁଡିକ ବ୍ରାଉଜ୍ କରନ୍ତୁ",- "agents": "ଏଜେଣ୍ଟଗୁଡ଼ିକ"+ "agents": "ଏଜେଣ୍ଟଗୁଡ଼ିକ",+ "logs": "ଲଗ",+ "analyticsMenu": "ଆନାଲିଟିକ୍ସ ପୃଷ୍ଠାଗୁଡିକ"},"auth": {"createYourAccount": "ଆପଣଙ୍କ ଆକାଉଣ୍ଟ ସୃଷ୍ଟି କରନ୍ତୁ",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "ଏଜେଣ୍ଟ ଦ୍ୱାରା ଅନୁରୋଧଗୁଡିକ"},+ "logs": {+ "title": "ଲଗ",+ "description": "ଲାଇଭ ସର୍ଭର ଲଗ। ପୃଷ୍ଠା ଖୋଲା ଥିବା ସମୟରେ ନୂଆ ଏଣ୍ଟ୍ରିଗୁଡିକ ଆସୁଥାଏ।",+ "pause": "ବିରାମ କରନ୍ତୁ",+ "resume": "ପୁଣି ଆରମ୍ଭ କରନ୍ତୁ",+ "clear": "ଲଗ ଖାଲି କରନ୍ତୁ",+ "cleared": "ସର୍ଭର ଲଗ ଖାଲି କରାଗଲା",+ "levelFilter": "ଲଗ ସ୍ତରଗୁଡିକ",+ "levels": {+ "debug": "ଡିବଗ୍",+ "info": "ଇନଫୋ",+ "warn": "ଚେତାବନୀ",+ "error": "ତ୍ରୁଟି"+ },+ "countsHint": "ଗଣନା ସର୍ଭରରେ ଥିବା ସମ୍ପୂର୍ଣ୍ଣ ଲଗ ବଫରର ମୋଟ ଅଟେ, କେବଳ ଏହି ଫିଲ୍ଟରଗୁଡିକ ସହ ମେଳ ଖାଉଥିବା ଏଣ୍ଟ୍ରିଗୁଡିକର ନୁହେଁ।",+ "searchPlaceholder": "ଲଗ ବାର୍ତ୍ତା ସନ୍ଧାନ କରନ୍ତୁ...",+ "jumpToLatest": "ସର୍ବଶେଷକୁ ଯାଆନ୍ତୁ",+ "showMore": "ଅଧିକ ଦେଖାନ୍ତୁ",+ "showLess": "କମ୍ ଦେଖାନ୍ତୁ",+ "buffered": "ସର୍ବାଧିକ {max} ବଫର ହୋଇଥିବା ଏଣ୍ଟ୍ରି ମଧ୍ୟରୁ {count} ଦେଖାଯାଉଛି",+ "emptyTitle": "ଏପର୍ଯ୍ୟନ୍ତ କୌଣସି ଲଗ ଏଣ୍ଟ୍ରି ନାହିଁ",+ "emptyDescription": "ସର୍ଭର ଲେଖିବା ସହିତ ଏଣ୍ଟ୍ରିଗୁଡିକ ଏଠାରେ ଦେଖାଯିବ। ଆଉଟପୁଟ ଆଶା କରିଥିଲେ ସ୍ତର, ପ୍ରଦାନକାରୀ କିମ୍ୱା ସନ୍ଧାନ ଫିଲ୍ଟରର ପରିସର ବଢ଼ାନ୍ତୁ।",+ "noLevelsTitle": "କୌଣସି ସ୍ତର ବଛାଯାଇନାହିଁ",+ "noLevelsDescription": "ଲଗ ଆଉଟପୁଟ ଦେଖିବାକୁ ଅନ୍ତତଃ ଗୋଟିଏ ସ୍ତର ଚାଲୁ କରନ୍ତୁ।",+ "loadFailed": "ସର୍ଭର ଲଗ ଲୋଡ କରାଯାଇପାରିଲା ନାହିଁ।"+ },"playground": {"title": "ଖେଳ ପଡିଆ","description": "ରାଉଟର୍ ମାଧ୍ୟମରେ ଏକ ଚାଟ୍ ସମ୍ପୁର୍ଣ୍ଣତା ପ୍ରେରଣ କରନ୍ତୁ ଏବଂ ଦେଖନ୍ତୁ କେଉଁ ପ୍ରଦାନକାରୀ ଏହାକୁ ସେବା କରନ୍ତି।",diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex 0356203d..b3ea9af5 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -14,7 +14,9 @@"switchToChinese": "ਚੀਨੀ ਵਿੱਚ ਬਦਲੋ","switchToEnglish": "ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਬਦਲੋ","modelsMenu": "ਮਾਡਲ ਕਿਸਮਾਂ ਨੂੰ ਬ੍ਰਾਊਜ਼ ਕਰੋ",- "agents": "ਏਜੰਟ"+ "agents": "ਏਜੰਟ",+ "logs": "ਲੌਗ",+ "analyticsMenu": "ਵਿਸ਼ਲੇਸ਼ਣ ਪੰਨੇ"},"auth": {"createYourAccount": "ਆਪਣਾ ਖਾਤਾ ਬਣਾਓ",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "ਏਜੰਟ ਦੁਆਰਾ ਬੇਨਤੀਆਂ"},+ "logs": {+ "title": "ਲੌਗ",+ "description": "ਲਾਈਵ ਸਰਵਰ ਲੌਗ। ਪੰਨਾ ਖੁੱਲ੍ਹਾ ਰਹਿਣ ਤੱਕ ਨਵੀਆਂ ਐਂਟਰੀਆਂ ਆਉਂਦੀਆਂ ਰਹਿੰਦੀਆਂ ਹਨ।",+ "pause": "ਰੋਕੋ",+ "resume": "ਜਾਰੀ ਰੱਖੋ",+ "clear": "ਲੌਗ ਸਾਫ਼ ਕਰੋ",+ "cleared": "ਸਰਵਰ ਲੌਗ ਸਾਫ਼ ਕਰ ਦਿੱਤਾ ਗਿਆ",+ "levelFilter": "ਲੌਗ ਪੱਧਰ",+ "levels": {+ "debug": "ਡੀਬੱਗ",+ "info": "ਇਨਫੋ",+ "warn": "ਚੇਤਾਵਨੀ",+ "error": "ਗਲਤੀ"+ },+ "countsHint": "ਗਿਣਤੀਆਂ ਸਰਵਰ ਉੱਤੇ ਪਏ ਪੂਰੇ ਲੌਗ ਬਫ਼ਰ ਦੀਆਂ ਹਨ, ਸਿਰਫ਼ ਇਹਨਾਂ ਫਿਲਟਰਾਂ ਨਾਲ ਮੇਲ ਖਾਂਦੀਆਂ ਐਂਟਰੀਆਂ ਦੀਆਂ ਨਹੀਂ।",+ "searchPlaceholder": "ਲੌਗ ਸੁਨੇਹੇ ਖੋਜੋ…",+ "jumpToLatest": "ਸਭ ਤੋਂ ਨਵੇਂ ਉੱਤੇ ਜਾਓ",+ "showMore": "ਹੋਰ ਦਿਖਾਓ",+ "showLess": "ਘੱਟ ਦਿਖਾਓ",+ "buffered": "ਵੱਧ ਤੋਂ ਵੱਧ {max} ਬਫ਼ਰ ਕੀਤੀਆਂ ਐਂਟਰੀਆਂ ਵਿੱਚੋਂ {count} ਦਿਖਾਈਆਂ ਜਾ ਰਹੀਆਂ ਹਨ",+ "emptyTitle": "ਅਜੇ ਕੋਈ ਲੌਗ ਐਂਟਰੀ ਨਹੀਂ",+ "emptyDescription": "ਜਿਵੇਂ-ਜਿਵੇਂ ਸਰਵਰ ਲਿਖਦਾ ਹੈ, ਐਂਟਰੀਆਂ ਇੱਥੇ ਦਿਖਾਈ ਦੇਣਗੀਆਂ। ਜੇ ਤੁਹਾਨੂੰ ਆਉਟਪੁੱਟ ਦੀ ਉਮੀਦ ਸੀ ਤਾਂ ਪੱਧਰ, ਪ੍ਰਦਾਤਾ ਜਾਂ ਖੋਜ ਫਿਲਟਰਾਂ ਦਾ ਘੇਰਾ ਵਧਾਓ।",+ "noLevelsTitle": "ਕੋਈ ਪੱਧਰ ਨਹੀਂ ਚੁਣਿਆ",+ "noLevelsDescription": "ਲੌਗ ਆਉਟਪੁੱਟ ਵੇਖਣ ਲਈ ਘੱਟੋ-ਘੱਟ ਇੱਕ ਪੱਧਰ ਚਾਲੂ ਕਰੋ।",+ "loadFailed": "ਸਰਵਰ ਲੌਗ ਲੋਡ ਨਹੀਂ ਹੋ ਸਕਿਆ।"+ },"playground": {"title": "ਖੇਡ ਦਾ ਮੈਦਾਨ","description": "ਰਾਊਟਰ ਰਾਹੀਂ ਇੱਕ ਚੈਟ ਸੰਪੂਰਨਤਾ ਭੇਜੋ ਅਤੇ ਦੇਖੋ ਕਿ ਕਿਹੜਾ ਪ੍ਰਦਾਤਾ ਇਸਦੀ ਸੇਵਾ ਕਰਦਾ ਹੈ।",diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex edf793de..755031ef 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -14,7 +14,9 @@"switchToChinese": "Przełącz na język chiński","switchToEnglish": "Przełącz na angielski","modelsMenu": "Przeglądaj typy modeli",- "agents": "Agenci"+ "agents": "Agenci",+ "logs": "Logi",+ "analyticsMenu": "Strony analityki"},"auth": {"createYourAccount": "Utwórz swoje konto",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Żądania według agenta"},+ "logs": {+ "title": "Logi",+ "description": "Log serwera na żywo. Nowe wpisy pojawiają się na bieżąco, gdy strona jest otwarta.",+ "pause": "Wstrzymaj",+ "resume": "Wznów",+ "clear": "Wyczyść logi",+ "cleared": "Log serwera wyczyszczony",+ "levelFilter": "Poziomy logowania",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Ostrzeżenie",+ "error": "Błąd"+ },+ "countsHint": "Liczby dotyczą całego bufora logów na serwerze, a nie tylko wpisów pasujących do tych filtrów.",+ "searchPlaceholder": "Szukaj w komunikatach logu…",+ "jumpToLatest": "Przejdź do najnowszych",+ "showMore": "Pokaż więcej",+ "showLess": "Pokaż mniej",+ "buffered": "Wyświetlanie {count} z maksymalnie {max} buforowanych wpisów",+ "emptyTitle": "Brak wpisów w logu",+ "emptyDescription": "Wpisy pojawią się tutaj, gdy serwer zacznie je zapisywać. Poszerz filtry poziomu, dostawcy lub wyszukiwania, jeśli spodziewasz się wyników.",+ "noLevelsTitle": "Nie wybrano poziomów",+ "noLevelsDescription": "Włącz co najmniej jeden poziom, aby zobaczyć zawartość logu.",+ "loadFailed": "Nie udało się wczytać logu serwera."+ },"playground": {"title": "Plac zabaw","description": "Wyślij zakończenie czatu przez router i zobacz, który dostawca je obsługuje.",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex 4888998b..24a4a9a3 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -14,7 +14,9 @@"switchToChinese": "Mudar para chinês","switchToEnglish": "Mudar para inglês","modelsMenu": "Explorar tipos de modelo",- "agents": "Agentes"+ "agents": "Agentes",+ "logs": "Logs",+ "analyticsMenu": "Páginas de análises"},"auth": {"createYourAccount": "Crie sua conta",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Solicitações por agente"},+ "logs": {+ "title": "Logs",+ "description": "Log do servidor ao vivo. Novas entradas chegam enquanto a página está aberta.",+ "pause": "Pausar",+ "resume": "Retomar",+ "clear": "Limpar logs",+ "cleared": "Log do servidor limpo",+ "levelFilter": "Níveis de log",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Aviso",+ "error": "Erro"+ },+ "countsHint": "As contagens são totais de todo o buffer de log no servidor, não apenas das entradas que correspondem a estes filtros.",+ "searchPlaceholder": "Buscar mensagens do log…",+ "jumpToLatest": "Ir para as mais recentes",+ "showMore": "Mostrar mais",+ "showLess": "Mostrar menos",+ "buffered": "Mostrando {count} de até {max} entradas no buffer",+ "emptyTitle": "Ainda sem entradas de log",+ "emptyDescription": "As entradas aparecem aqui conforme o servidor as grava. Amplie os filtros de nível, provedor ou busca se você esperava alguma saída.",+ "noLevelsTitle": "Nenhum nível selecionado",+ "noLevelsDescription": "Ative pelo menos um nível para ver a saída do log.",+ "loadFailed": "Não foi possível carregar o log do servidor."+ },"playground": {"title": "Playground","description": "Envie uma conclusão de chat pelo roteador e veja qual provedor a atende.",diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 3c37cc26..0f0f2691 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -14,7 +14,9 @@"switchToChinese": "Mudança para o chinês","switchToEnglish": "Mudança para inglês","modelsMenu": "Navegar pelos tipos de modelos",- "agents": "Agentes"+ "agents": "Agentes",+ "logs": "Registos",+ "analyticsMenu": "Páginas de análise"},"auth": {"createYourAccount": "Crie a sua conta",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Pedidos por agente"},+ "logs": {+ "title": "Registos",+ "description": "Registo do servidor em direto. As novas entradas vão surgindo enquanto a página estiver aberta.",+ "pause": "Pausar",+ "resume": "Retomar",+ "clear": "Limpar registos",+ "cleared": "Registo do servidor limpo",+ "levelFilter": "Níveis de registo",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Aviso",+ "error": "Erro"+ },+ "countsHint": "As contagens referem-se a todo o buffer de registo no servidor, não apenas às entradas que correspondem a estes filtros.",+ "searchPlaceholder": "Pesquisar mensagens do registo…",+ "jumpToLatest": "Ir para as mais recentes",+ "showMore": "Mostrar mais",+ "showLess": "Mostrar menos",+ "buffered": "A mostrar {count} de até {max} entradas em buffer",+ "emptyTitle": "Ainda sem entradas de registo",+ "emptyDescription": "As entradas aparecem aqui à medida que o servidor as escreve. Alargue os filtros de nível, fornecedor ou pesquisa se esperava ver resultados.",+ "noLevelsTitle": "Nenhum nível selecionado",+ "noLevelsDescription": "Ative pelo menos um nível para ver o registo.",+ "loadFailed": "Não foi possível carregar o registo do servidor."+ },"playground": {"title": "Parque infantil","description": "Envia um chat completo através do router e vê qual o fornecedor que o atende.",diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex c89b69b3..f14500b3 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -14,7 +14,9 @@"switchToChinese": "Trecerea la chineză","switchToEnglish": "Trecerea la engleză","modelsMenu": "Explorează tipurile de modele",- "agents": "Agenți"+ "agents": "Agenți",+ "logs": "Jurnale",+ "analyticsMenu": "Pagini de analiză"},"auth": {"createYourAccount": "Creează-ți contul",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Cereri per agent"},+ "logs": {+ "title": "Jurnale",+ "description": "Jurnalul serverului în timp real. Intrările noi apar cât timp pagina este deschisă.",+ "pause": "Pauză",+ "resume": "Reia",+ "clear": "Golește jurnalele",+ "cleared": "Jurnalul serverului a fost golit",+ "levelFilter": "Niveluri de jurnal",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Avertisment",+ "error": "Eroare"+ },+ "countsHint": "Numărătorile se referă la întregul buffer de jurnal de pe server, nu doar la intrările care corespund acestor filtre.",+ "searchPlaceholder": "Caută în mesajele din jurnal…",+ "jumpToLatest": "Sari la cele mai recente",+ "showMore": "Afișează mai mult",+ "showLess": "Afișează mai puțin",+ "buffered": "Se afișează {count} din cel mult {max} intrări din buffer",+ "emptyTitle": "Încă nu există intrări în jurnal",+ "emptyDescription": "Intrările apar aici pe măsură ce serverul le scrie. Lărgește filtrele de nivel, furnizor sau căutare dacă te așteptai la rezultate.",+ "noLevelsTitle": "Niciun nivel selectat",+ "noLevelsDescription": "Activează cel puțin un nivel pentru a vedea jurnalul.",+ "loadFailed": "Nu s-a putut încărca jurnalul serverului."+ },"playground": {"title": "Locul de joacă","description": "Trimite un chat de finalizare prin router și vezi ce furnizor îl deservește.",diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex 676a2629..7d1efda6 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -14,7 +14,9 @@"switchToChinese": "Переключиться на китайский","switchToEnglish": "Переключиться на английский","modelsMenu": "Просмотр типов моделей",- "agents": "Агенты"+ "agents": "Агенты",+ "logs": "Журнал",+ "analyticsMenu": "Страницы аналитики"},"auth": {"createYourAccount": "Создайте свою учетную запись",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Запросы по агентам"},+ "logs": {+ "title": "Журнал",+ "description": "Журнал сервера в реальном времени. Новые записи появляются, пока страница открыта.",+ "pause": "Пауза",+ "resume": "Продолжить",+ "clear": "Очистить журнал",+ "cleared": "Журнал сервера очищен",+ "levelFilter": "Уровни журнала",+ "levels": {+ "debug": "Отладка",+ "info": "Инфо",+ "warn": "Предупр.",+ "error": "Ошибка"+ },+ "countsHint": "Счётчики показывают итоги по всему буферу журнала на сервере, а не только по записям, подходящим под эти фильтры.",+ "searchPlaceholder": "Поиск по сообщениям журнала…",+ "jumpToLatest": "К последним записям",+ "showMore": "Показать больше",+ "showLess": "Показать меньше",+ "buffered": "Показано {count} из максимум {max} записей в буфере",+ "emptyTitle": "Записей в журнале пока нет",+ "emptyDescription": "Записи появятся здесь, как только сервер их запишет. Если вы ожидали вывод, расширьте фильтры по уровню, поставщику или поиску.",+ "noLevelsTitle": "Уровни не выбраны",+ "noLevelsDescription": "Включите хотя бы один уровень, чтобы видеть вывод журнала.",+ "loadFailed": "Не удалось загрузить журнал сервера."+ },"playground": {"title": "Детская площадка","description": "Отправьте завершение чата через роутер и посмотрите, какой провайдер его обслуживает.",diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 9651d057..6e4f92cb 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -14,7 +14,9 @@"switchToChinese": "චීන භාෂාවට මාරු වන්න","switchToEnglish": "ඉංග්රීසි වලට මාරු වෙන්න","modelsMenu": "ආකෘති වර්ග පිරික්සන්න",- "agents": "නියෝජිතයන්"+ "agents": "නියෝජිතයන්",+ "logs": "ලොග",+ "analyticsMenu": "විශ්ලේෂණ පිටු"},"auth": {"createYourAccount": "ඔබගේ ගිණුම සාදන්න",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "නියෝජිතයා අනුව ඉල්ලීම්"},+ "logs": {+ "title": "ලොග",+ "description": "සජීවී සේවාදායක ලොගය. පිටුව විවෘතව ඇති අතරතුර නව ඇතුළත් කිරීම් පැමිණේ.",+ "pause": "විරාම කරන්න",+ "resume": "නැවත ආරම්භ කරන්න",+ "clear": "ලොග හිස් කරන්න",+ "cleared": "සේවාදායක ලොගය හිස් කරන ලදී",+ "levelFilter": "ලොග මට්ටම්",+ "levels": {+ "debug": "ඩීබග්",+ "info": "තොරතුරු",+ "warn": "අනතුරු ඇඟවීම",+ "error": "දෝෂ"+ },+ "countsHint": "ගණන් සේවාදායකයේ ඇති මුළු ලොග බෆරයේ එකතුව මිස, මෙම පෙරහන්වලට ගැලපෙන ඇතුළත් කිරීම් පමණක් නොවේ.",+ "searchPlaceholder": "ලොග පණිවිඩ සොයන්න...",+ "jumpToLatest": "නවතම වෙත යන්න",+ "showMore": "වැඩිපුර පෙන්වන්න",+ "showLess": "අඩුවෙන් පෙන්වන්න",+ "buffered": "උපරිම බෆර කළ ඇතුළත් කිරීම් {max} කින් {count} ක් පෙන්වයි",+ "emptyTitle": "තවම ලොග ඇතුළත් කිරීම් නැත",+ "emptyDescription": "සේවාදායකය ලියන පරිදි ඇතුළත් කිරීම් මෙහි දිස්වේ. ප්රතිදානයක් අපේක්ෂා කළේ නම් මට්ටම, සපයන්නා හෝ සෙවුම් පෙරහන් පුළුල් කරන්න.",+ "noLevelsTitle": "මට්ටම් තෝරා නැත",+ "noLevelsDescription": "ලොග ප්රතිදානය බැලීමට අවම වශයෙන් එක් මට්ටමක් සක්රීය කරන්න.",+ "loadFailed": "සේවාදායක ලොගය පූරණය කළ නොහැකි විය."+ },"playground": {"title": "ක්රීඩා පිටිය","description": "රවුටරය හරහා කතාබස් සම්පූර්ණ කිරීමක් යවා එය සේවය කරන්නේ කුමන සැපයුම්කරුදැයි බලන්න.",diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex a7fecc11..d157c6f9 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -14,7 +14,9 @@"switchToChinese": "Prechod na čínštinu","switchToEnglish": "Prechod na angličtinu","modelsMenu": "Prehliadať typy modelov",- "agents": "Agenti"+ "agents": "Agenti",+ "logs": "Logy",+ "analyticsMenu": "Stránky analytiky"},"auth": {"createYourAccount": "Vytvorte si účet",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Požiadavky podľa agenta"},+ "logs": {+ "title": "Logy",+ "description": "Živý log servera. Nové záznamy pribúdajú, kým je stránka otvorená.",+ "pause": "Pozastaviť",+ "resume": "Pokračovať",+ "clear": "Vymazať logy",+ "cleared": "Log servera vymazaný",+ "levelFilter": "Úrovne logovania",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Varovanie",+ "error": "Chyba"+ },+ "countsHint": "Počty sa vzťahujú na celú vyrovnávaciu pamäť logu na serveri, nie len na záznamy zodpovedajúce týmto filtrom.",+ "searchPlaceholder": "Hľadať v správach logu…",+ "jumpToLatest": "Prejsť na najnovšie",+ "showMore": "Zobraziť viac",+ "showLess": "Zobraziť menej",+ "buffered": "Zobrazených {count} z maximálne {max} uložených záznamov",+ "emptyTitle": "Zatiaľ žiadne záznamy v logu",+ "emptyDescription": "Záznamy sa tu objavia, hneď ako ich server zapíše. Ak ste čakali výstup, rozšírte filtre úrovne, poskytovateľa alebo hľadania.",+ "noLevelsTitle": "Nie je vybraná žiadna úroveň",+ "noLevelsDescription": "Zapnite aspoň jednu úroveň, aby ste videli výstup logu.",+ "loadFailed": "Log servera sa nepodarilo načítať."+ },"playground": {"title": "Ihrisko","description": "Pošlite chat completion cez router a zistite, ktorý poskytovateľ ho obsluhuje.",diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex 88d48510..8552f375 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -14,7 +14,9 @@"switchToChinese": "Пребаци на кинески","switchToEnglish": "Пребаците се на енглески","modelsMenu": "Прегледајте типове модела",- "agents": "Агенти"+ "agents": "Агенти",+ "logs": "Логови",+ "analyticsMenu": "Странице аналитике"},"auth": {"createYourAccount": "Креирајте свој налог",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Захтеви по агенту"},+ "logs": {+ "title": "Логови",+ "description": "Лог сервера уживо. Нови уноси стижу док је страница отворена.",+ "pause": "Паузирај",+ "resume": "Настави",+ "clear": "Обриши логове",+ "cleared": "Лог сервера обрисан",+ "levelFilter": "Нивои логовања",+ "levels": {+ "debug": "Дебаг",+ "info": "Инфо",+ "warn": "Упозорење",+ "error": "Грешка"+ },+ "countsHint": "Бројеви се односе на цео бафер лога на серверу, а не само на уносе који одговарају овим филтерима.",+ "searchPlaceholder": "Претражите поруке лога…",+ "jumpToLatest": "Скочи на најновије",+ "showMore": "Прикажи више",+ "showLess": "Прикажи мање",+ "buffered": "Приказано {count} од највише {max} сачуваних уноса",+ "emptyTitle": "Још нема уноса у логу",+ "emptyDescription": "Уноси се појављују овде чим их сервер упише. Проширите филтере нивоа, провајдера или претраге ако сте очекивали излаз.",+ "noLevelsTitle": "Није изабран ниједан ниво",+ "noLevelsDescription": "Укључите бар један ниво да бисте видели садржај лога.",+ "loadFailed": "Није могуће учитати лог сервера."+ },"playground": {"title": "Игралиште","description": "Пошаљите завршетак ћаскања преко рутера и погледајте који провајдер га опслужује.",diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex a2e7c487..c7d18809 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -14,7 +14,9 @@"switchToChinese": "Byt till kinesiska","switchToEnglish": "Byta till engelska","modelsMenu": "Bläddra bland modelltyper",- "agents": "Agenter"+ "agents": "Agenter",+ "logs": "Loggar",+ "analyticsMenu": "Analyssidor"},"auth": {"createYourAccount": "Skapa ditt konto",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Begäranden per agent"},+ "logs": {+ "title": "Loggar",+ "description": "Serverns logg i realtid. Nya poster strömmar in medan sidan är öppen.",+ "pause": "Pausa",+ "resume": "Återuppta",+ "clear": "Rensa loggen",+ "cleared": "Serverloggen rensad",+ "levelFilter": "Loggnivåer",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Varning",+ "error": "Fel"+ },+ "countsHint": "Antalen gäller hela loggbufferten på servern, inte bara posterna som matchar de här filtren.",+ "searchPlaceholder": "Sök i loggmeddelanden…",+ "jumpToLatest": "Hoppa till senaste",+ "showMore": "Visa mer",+ "showLess": "Visa mindre",+ "buffered": "Visar {count} av upp till {max} buffrade poster",+ "emptyTitle": "Inga loggposter än",+ "emptyDescription": "Poster visas här allteftersom servern skriver dem. Bredda filtren för nivå, leverantör eller sökning om du väntade dig utdata.",+ "noLevelsTitle": "Inga nivåer valda",+ "noLevelsDescription": "Slå på minst en nivå för att se loggutdata.",+ "loadFailed": "Det gick inte att läsa in serverloggen."+ },"playground": {"title": "Lekplats","description": "Skicka en chattfullbordan via routern och se vilken leverantör som hanterar den.",diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 46afccf2..95042cfd 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -14,7 +14,9 @@"switchToChinese": "Badili hadi Kichina","switchToEnglish": "Badili hadi Kiingereza","modelsMenu": "Vinjari aina za mifano",- "agents": "Mawakala"+ "agents": "Mawakala",+ "logs": "Kumbukumbu",+ "analyticsMenu": "Kurasa za uchanganuzi"},"auth": {"createYourAccount": "Fungua akaunti yako",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Maombi kwa kila wakala"},+ "logs": {+ "title": "Kumbukumbu",+ "description": "Kumbukumbu ya seva ya moja kwa moja. Maingizo mapya huingia wakati ukurasa umefunguliwa.",+ "pause": "Sitisha",+ "resume": "Endelea",+ "clear": "Futa kumbukumbu",+ "cleared": "Kumbukumbu ya seva imefutwa",+ "levelFilter": "Viwango vya kumbukumbu",+ "levels": {+ "debug": "Utatuzi",+ "info": "Taarifa",+ "warn": "Onyo",+ "error": "Hitilafu"+ },+ "countsHint": "Idadi ni jumla ya bafa nzima ya kumbukumbu kwenye seva, si maingizo yanayolingana na vichujio hivi pekee.",+ "searchPlaceholder": "Tafuta ujumbe wa kumbukumbu...",+ "jumpToLatest": "Nenda kwenye za hivi punde",+ "showMore": "Onyesha zaidi",+ "showLess": "Onyesha kidogo",+ "buffered": "Inaonyesha {count} kati ya maingizo {max} yaliyohifadhiwa kwenye bafa",+ "emptyTitle": "Bado hakuna maingizo ya kumbukumbu",+ "emptyDescription": "Maingizo huonekana hapa seva inapoyaandika. Panua vichujio vya kiwango, mtoa huduma au utafutaji ikiwa ulitarajia matokeo.",+ "noLevelsTitle": "Hakuna kiwango kilichochaguliwa",+ "noLevelsDescription": "Washa angalau kiwango kimoja ili kuona matokeo ya kumbukumbu.",+ "loadFailed": "Imeshindwa kupakia kumbukumbu ya seva."+ },"playground": {"title": "Uwanja wa michezo","description": "Tuma kukamilika kwa mazungumzo kupitia kipanga njia na uone ni mtoa huduma gani anayeihudumia.",diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex 6661ae29..3c92e591 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -14,7 +14,9 @@"switchToChinese": "சீன மொழிக்கு மாறவும்","switchToEnglish": "ஆங்கிலத்திற்கு மாறவும்","modelsMenu": "மாதிரி வகைகளை உலாவவும்",- "agents": "முகவர்கள்"+ "agents": "முகவர்கள்",+ "logs": "பதிவுகள்",+ "analyticsMenu": "பகுப்பாய்வு பக்கங்கள்"},"auth": {"createYourAccount": "உங்கள் கணக்கை உருவாக்கவும்",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "முகவர் வாரியாக கோரிக்கைகள்"},+ "logs": {+ "title": "பதிவுகள்",+ "description": "நேரலை சேவையகப் பதிவு. பக்கம் திறந்திருக்கும் வரை புதிய பதிவுகள் வந்துகொண்டே இருக்கும்.",+ "pause": "இடைநிறுத்து",+ "resume": "தொடர்",+ "clear": "பதிவுகளை அழி",+ "cleared": "சேவையகப் பதிவு அழிக்கப்பட்டது",+ "levelFilter": "பதிவு நிலைகள்",+ "levels": {+ "debug": "பிழைத்திருத்தம்",+ "info": "தகவல்",+ "warn": "எச்சரிக்கை",+ "error": "பிழை"+ },+ "countsHint": "எண்ணிக்கைகள் சேவையகத்தில் உள்ள முழு பதிவு இடையகத்தின் மொத்தம், இந்த வடிப்பான்களுக்குப் பொருந்தும் பதிவுகள் மட்டுமல்ல.",+ "searchPlaceholder": "பதிவுச் செய்திகளைத் தேடுங்கள்…",+ "jumpToLatest": "சமீபத்தியதற்குச் செல்",+ "showMore": "மேலும் காட்டு",+ "showLess": "குறைவாகக் காட்டு",+ "buffered": "அதிகபட்சம் {max} இடையகப் பதிவுகளில் {count} காட்டப்படுகிறது",+ "emptyTitle": "இதுவரை பதிவுகள் எதுவும் இல்லை",+ "emptyDescription": "சேவையகம் எழுதும்போது பதிவுகள் இங்கே தோன்றும். வெளியீட்டை எதிர்பார்த்திருந்தால் நிலை, வழங்குபவர் அல்லது தேடல் வடிப்பான்களை விரிவுபடுத்தவும்.",+ "noLevelsTitle": "நிலை எதுவும் தேர்ந்தெடுக்கப்படவில்லை",+ "noLevelsDescription": "பதிவு வெளியீட்டைப் பார்க்க குறைந்தது ஒரு நிலையையாவது இயக்கவும்.",+ "loadFailed": "சேவையகப் பதிவை ஏற்ற முடியவில்லை."+ },"playground": {"title": "விளையாட்டு மைதானம்","description": "ரூட்டர் மூலம் அரட்டையை நிறைவு செய்து, எந்த வழங்குநர் அதைச் செய்கிறார் என்பதைப் பார்க்கவும்.",diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex 89ba56a6..ae5c1519 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -14,7 +14,9 @@"switchToChinese": "చైనీస్కి మారండి","switchToEnglish": "ఆంగ్లానికి మారండి","modelsMenu": "మోడల్ రకాలను బ్రౌజ్ చేయండి",- "agents": "ఏజెంట్లు"+ "agents": "ఏజెంట్లు",+ "logs": "లాగ్లు",+ "analyticsMenu": "విశ్లేషణల పేజీలు"},"auth": {"createYourAccount": "మీ ఖాతాను సృష్టించండి",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "ఏజెంట్ వారీగా అభ్యర్థనలు"},+ "logs": {+ "title": "లాగ్లు",+ "description": "ప్రత్యక్ష సర్వర్ లాగ్. పేజీ తెరిచి ఉన్నంత సేపు కొత్త ఎంట్రీలు వస్తూనే ఉంటాయి.",+ "pause": "పాజ్ చేయండి",+ "resume": "కొనసాగించండి",+ "clear": "లాగ్లను క్లియర్ చేయండి",+ "cleared": "సర్వర్ లాగ్ క్లియర్ చేయబడింది",+ "levelFilter": "లాగ్ స్థాయిలు",+ "levels": {+ "debug": "డీబగ్",+ "info": "సమాచారం",+ "warn": "హెచ్చరిక",+ "error": "లోపం"+ },+ "countsHint": "ఈ సంఖ్యలు సర్వర్లోని మొత్తం లాగ్ బఫర్కు సంబంధించినవి, ఈ ఫిల్టర్లకు సరిపోలే ఎంట్రీలకు మాత్రమే కాదు.",+ "searchPlaceholder": "లాగ్ సందేశాలను శోధించండి...",+ "jumpToLatest": "తాజా వాటికి వెళ్లండి",+ "showMore": "మరిన్ని చూపించు",+ "showLess": "తక్కువ చూపించు",+ "buffered": "బఫర్ చేసిన గరిష్ఠంగా {max} ఎంట్రీలలో {count} చూపిస్తోంది",+ "emptyTitle": "ఇంకా లాగ్ ఎంట్రీలు లేవు",+ "emptyDescription": "సర్వర్ రాస్తున్న కొద్దీ ఎంట్రీలు ఇక్కడ కనిపిస్తాయి. అవుట్పుట్ ఆశించినట్లయితే స్థాయి, ప్రొవైడర్ లేదా శోధన ఫిల్టర్లను విస్తృతం చేయండి.",+ "noLevelsTitle": "ఏ స్థాయీ ఎంచుకోలేదు",+ "noLevelsDescription": "లాగ్ అవుట్పుట్ చూడటానికి కనీసం ఒక స్థాయిని ఆన్ చేయండి.",+ "loadFailed": "సర్వర్ లాగ్ను లోడ్ చేయడం సాధ్యం కాలేదు."+ },"playground": {"title": "ప్లేగ్రౌండ్","description": "రూటర్ ద్వారా చాట్ పూర్తిని పంపండి మరియు దానిని ఏ ప్రొవైడర్ అందిస్తారో చూడండి.",diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex b1b5c9b2..de9a9172 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -14,7 +14,9 @@"switchToChinese": "เปลี่ยนไปใช้ภาษาจีน","switchToEnglish": "เปลี่ยนเป็นภาษาอังกฤษ","modelsMenu": "เรียกดูประเภทโมเดล",- "agents": "เอเจนต์"+ "agents": "เอเจนต์",+ "logs": "บันทึก",+ "analyticsMenu": "หน้าการวิเคราะห์"},"auth": {"createYourAccount": "สร้างบัญชีของคุณ",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "คำขอตามเอเจนต์"},+ "logs": {+ "title": "บันทึก",+ "description": "บันทึกเซิร์ฟเวอร์แบบเรียลไทม์ รายการใหม่จะทยอยเข้ามาขณะเปิดหน้านี้",+ "pause": "หยุดชั่วคราว",+ "resume": "ทำต่อ",+ "clear": "ล้างบันทึก",+ "cleared": "ล้างบันทึกเซิร์ฟเวอร์แล้ว",+ "levelFilter": "ระดับบันทึก",+ "levels": {+ "debug": "ดีบัก",+ "info": "ข้อมูล",+ "warn": "คำเตือน",+ "error": "ข้อผิดพลาด"+ },+ "countsHint": "จำนวนที่แสดงเป็นยอดรวมของบัฟเฟอร์บันทึกทั้งหมดบนเซิร์ฟเวอร์ ไม่ใช่เฉพาะรายการที่ตรงกับตัวกรองเหล่านี้",+ "searchPlaceholder": "ค้นหาข้อความในบันทึก…",+ "jumpToLatest": "ไปที่รายการล่าสุด",+ "showMore": "แสดงเพิ่มเติม",+ "showLess": "แสดงน้อยลง",+ "buffered": "กำลังแสดง {count} จากบัฟเฟอร์สูงสุด {max} รายการ",+ "emptyTitle": "ยังไม่มีรายการบันทึก",+ "emptyDescription": "รายการจะปรากฏที่นี่เมื่อเซิร์ฟเวอร์เขียนบันทึก หากคาดว่าควรมีผลลัพธ์ ให้ขยายตัวกรองระดับ ผู้ให้บริการ หรือคำค้นหา",+ "noLevelsTitle": "ยังไม่ได้เลือกระดับ",+ "noLevelsDescription": "เปิดอย่างน้อยหนึ่งระดับเพื่อดูผลลัพธ์ในบันทึก",+ "loadFailed": "ไม่สามารถโหลดบันทึกเซิร์ฟเวอร์ได้"+ },"playground": {"title": "สนามเด็กเล่น","description": "ส่งการแชทให้เสร็จสิ้นผ่านเราเตอร์และดูว่าผู้ให้บริการรายใดให้บริการ",diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex d22d9dbd..46bb61c7 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -14,7 +14,9 @@"switchToChinese": "Lumipat sa Chinese","switchToEnglish": "Lumipat sa Ingles","modelsMenu": "Mag-browse ng mga uri ng modelo",- "agents": "Mga Agent"+ "agents": "Mga Agent",+ "logs": "Mga Log",+ "analyticsMenu": "Mga pahina ng analitika"},"auth": {"createYourAccount": "Gumawa ng iyong account",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Mga kahilingan ayon sa agent"},+ "logs": {+ "title": "Mga Log",+ "description": "Live na server log. Dumarating ang mga bagong entry habang bukas ang pahina.",+ "pause": "I-pause",+ "resume": "Ipagpatuloy",+ "clear": "I-clear ang mga log",+ "cleared": "Na-clear ang server log",+ "levelFilter": "Mga antas ng log",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Warn",+ "error": "Error"+ },+ "countsHint": "Ang mga bilang ay kabuuan para sa buong log buffer sa server, hindi lang sa mga entry na tumutugma sa mga filter na ito.",+ "searchPlaceholder": "Maghanap ng mga mensahe sa log...",+ "jumpToLatest": "Pumunta sa pinakabago",+ "showMore": "Ipakita ang higit pa",+ "showLess": "Ipakita ang mas kaunti",+ "buffered": "Ipinapakita ang {count} sa hanggang {max} na naka-buffer na entry",+ "emptyTitle": "Wala pang log entry",+ "emptyDescription": "Lumilitaw dito ang mga entry habang isinusulat ang mga ito ng server. Palawakin ang mga filter ng antas, provider o paghahanap kung umaasa ka ng output.",+ "noLevelsTitle": "Walang napiling antas",+ "noLevelsDescription": "Mag-on ng kahit isang antas para makita ang output ng log.",+ "loadFailed": "Hindi ma-load ang server log."+ },"playground": {"title": "Palaruan","description": "Magpadala ng chat completion sa router at tingnan kung aling provider ang nagseserbisyo nito.",diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex 33e8cd8e..fa879e1d 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -14,7 +14,9 @@"switchToChinese": "Çinceye geç","switchToEnglish": "İngilizceye geç","modelsMenu": "Model türlerine göz atın",- "agents": "Ajanlar"+ "agents": "Ajanlar",+ "logs": "Günlükler",+ "analyticsMenu": "Analitik sayfaları"},"auth": {"createYourAccount": "Hesabınızı oluşturun",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Ajan başına istekler"},+ "logs": {+ "title": "Günlükler",+ "description": "Canlı sunucu günlüğü. Sayfa açıkken yeni kayıtlar akmaya devam eder.",+ "pause": "Duraklat",+ "resume": "Sürdür",+ "clear": "Günlükleri temizle",+ "cleared": "Sunucu günlüğü temizlendi",+ "levelFilter": "Günlük düzeyleri",+ "levels": {+ "debug": "Hata ayıklama",+ "info": "Bilgi",+ "warn": "Uyarı",+ "error": "Hata"+ },+ "countsHint": "Sayılar yalnızca bu filtrelere uyan kayıtları değil, sunucudaki günlük arabelleğinin tamamını kapsar.",+ "searchPlaceholder": "Günlük mesajlarında ara…",+ "jumpToLatest": "En sona git",+ "showMore": "Daha fazla göster",+ "showLess": "Daha az göster",+ "buffered": "Arabellekteki en fazla {max} kayıttan {count} tanesi gösteriliyor",+ "emptyTitle": "Henüz günlük kaydı yok",+ "emptyDescription": "Sunucu kayıtları yazdıkça burada görünür. Çıktı bekliyorsanız düzey, sağlayıcı veya arama filtrelerini genişletin.",+ "noLevelsTitle": "Düzey seçilmedi",+ "noLevelsDescription": "Günlük çıktısını görmek için en az bir düzeyi açın.",+ "loadFailed": "Sunucu günlüğü yüklenemedi."+ },"playground": {"title": "Bahçesi","description": "Yönlendirici aracılığıyla bir sohbet tamamlama gönderin ve bunu hangi sağlayıcının sunduğunu görün.",diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex 50a6f61c..22c92a94 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -14,7 +14,9 @@"switchToChinese": "Перейти на китайську","switchToEnglish": "Переключитися на англійську","modelsMenu": "Перегляньте типи моделей",- "agents": "Агенти"+ "agents": "Агенти",+ "logs": "Журнал",+ "analyticsMenu": "Сторінки аналітики"},"auth": {"createYourAccount": "Створіть свій акаунт",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Запити за агентами"},+ "logs": {+ "title": "Журнал",+ "description": "Журнал сервера в реальному часі. Нові записи надходять, доки сторінку відкрито.",+ "pause": "Пауза",+ "resume": "Продовжити",+ "clear": "Очистити журнал",+ "cleared": "Журнал сервера очищено",+ "levelFilter": "Рівні журналу",+ "levels": {+ "debug": "Налагодження",+ "info": "Інфо",+ "warn": "Попередж.",+ "error": "Помилка"+ },+ "countsHint": "Лічильники показують підсумки за всім буфером журналу на сервері, а не лише за записами, що відповідають цим фільтрам.",+ "searchPlaceholder": "Пошук у повідомленнях журналу…",+ "jumpToLatest": "До останніх записів",+ "showMore": "Показувати більше",+ "showLess": "Показувати менше",+ "buffered": "Показано {count} із щонайбільше {max} записів у буфері",+ "emptyTitle": "Записів у журналі ще немає",+ "emptyDescription": "Записи з’являтимуться тут, щойно сервер їх запише. Якщо ви очікували вивід, розширте фільтри за рівнем, постачальником або пошуком.",+ "noLevelsTitle": "Рівні не вибрано",+ "noLevelsDescription": "Увімкніть щонайменше один рівень, щоб бачити вивід журналу.",+ "loadFailed": "Не вдалося завантажити журнал сервера."+ },"playground": {"title": "Дитячий майданчик","description": "Надішліть завершення чату через маршрутизатор і подивіться, який провайдер його обслуговує.",diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex ce59a08a..809a6f1c 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -14,7 +14,9 @@"switchToChinese": "چینی پر سوئچ کریں۔","switchToEnglish": "انگریزی پر سوئچ کریں۔","modelsMenu": "ماڈل کی اقسام کو براؤز کریں۔",- "agents": "ایجنٹس"+ "agents": "ایجنٹس",+ "logs": "لاگز",+ "analyticsMenu": "تجزیات کے صفحات"},"auth": {"createYourAccount": "اپنا اکاؤنٹ بنائیں",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "فی ایجنٹ درخواستیں"},+ "logs": {+ "title": "لاگز",+ "description": "لائیو سرور لاگ۔ صفحہ کھلا رہنے تک نئے اندراجات آتے رہتے ہیں۔",+ "pause": "روکیں",+ "resume": "جاری رکھیں",+ "clear": "لاگز صاف کریں",+ "cleared": "سرور لاگ صاف کر دیا گیا",+ "levelFilter": "لاگ لیولز",+ "levels": {+ "debug": "ڈیبگ",+ "info": "انفو",+ "warn": "انتباہ",+ "error": "خرابی"+ },+ "countsHint": "گنتی سرور پر موجود پورے لاگ بفر کی ہے، صرف ان فلٹرز سے مماثل اندراجات کی نہیں۔",+ "searchPlaceholder": "لاگ پیغامات تلاش کریں…",+ "jumpToLatest": "تازہ ترین پر جائیں",+ "showMore": "مزید دکھائیں",+ "showLess": "کم دکھائیں",+ "buffered": "زیادہ سے زیادہ {max} بفر شدہ اندراجات میں سے {count} دکھائے جا رہے ہیں",+ "emptyTitle": "ابھی تک کوئی لاگ اندراج نہیں",+ "emptyDescription": "سرور جیسے جیسے لکھتا ہے، اندراجات یہاں ظاہر ہوتے جائیں گے۔ اگر آپ کو آؤٹ پٹ کی توقع تھی تو لیول، فراہم کنندہ یا تلاش کے فلٹرز کا دائرہ بڑھائیں۔",+ "noLevelsTitle": "کوئی لیول منتخب نہیں",+ "noLevelsDescription": "لاگ آؤٹ پٹ دیکھنے کے لیے کم از کم ایک لیول آن کریں۔",+ "loadFailed": "سرور لاگ لوڈ نہیں ہو سکا۔"+ },"playground": {"title": "کھیل کا میدان","description": "روٹر کے ذریعے چیٹ کی تکمیل بھیجیں اور دیکھیں کہ کون سا فراہم کنندہ اسے پیش کرتا ہے۔",diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex be8f5ef7..69e66c5a 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -14,7 +14,9 @@"switchToChinese": "Xitoy tiliga o'tish","switchToEnglish": "Ingliz tiliga o'tish","modelsMenu": "Model turlarini ko'rib chiqing",- "agents": "Agentlar"+ "agents": "Agentlar",+ "logs": "Jurnal",+ "analyticsMenu": "Analitika sahifalari"},"auth": {"createYourAccount": "Hisob qaydnomangizni yarating",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Agent bo'yicha so'rovlar"},+ "logs": {+ "title": "Jurnal",+ "description": "Serverning jonli jurnali. Sahifa ochiq turganda yangi yozuvlar kelib turadi.",+ "pause": "Pauza",+ "resume": "Davom ettirish",+ "clear": "Jurnalni tozalash",+ "cleared": "Server jurnali tozalandi",+ "levelFilter": "Jurnal darajalari",+ "levels": {+ "debug": "Debug",+ "info": "Info",+ "warn": "Ogohlantirish",+ "error": "Xato"+ },+ "countsHint": "Sanoqlar serverdagi butun jurnal buferi boʻyicha umumiy hisoblanadi, faqat ushbu filtrlarga mos yozuvlar boʻyicha emas.",+ "searchPlaceholder": "Jurnal xabarlarini qidirish…",+ "jumpToLatest": "Eng soʻnggilariga oʻtish",+ "showMore": "Koʻproq koʻrsatish",+ "showLess": "Kamroq koʻrsatish",+ "buffered": "Buferdagi koʻpi bilan {max} yozuvdan {count} tasi koʻrsatilmoqda",+ "emptyTitle": "Hozircha jurnal yozuvlari yoʻq",+ "emptyDescription": "Server yozuvlarni yozgani sari ular shu yerda paydo boʻladi. Natija kutgan boʻlsangiz, daraja, provayder yoki qidiruv filtrlarini kengaytiring.",+ "noLevelsTitle": "Daraja tanlanmagan",+ "noLevelsDescription": "Jurnal chiqishini koʻrish uchun kamida bitta darajani yoqing.",+ "loadFailed": "Server jurnalini yuklab boʻlmadi."+ },"playground": {"title": "O'yin maydonchasi","description": "Router orqali suhbatni yakunlang va qaysi provayder unga xizmat ko'rsatishini ko'ring.",diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex a12987d9..6efd3726 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -14,7 +14,9 @@"switchToChinese": "Chuyển sang tiếng Trung","switchToEnglish": "Chuyển sang tiếng Anh","modelsMenu": "Duyệt các loại mô hình",- "agents": "Tác nhân"+ "agents": "Tác nhân",+ "logs": "Nhật ký",+ "analyticsMenu": "Trang phân tích"},"auth": {"createYourAccount": "Tạo tài khoản của bạn",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Yêu cầu theo tác nhân"},+ "logs": {+ "title": "Nhật ký",+ "description": "Nhật ký máy chủ trực tiếp. Mục mới sẽ hiện dần khi trang đang mở.",+ "pause": "Tạm dừng",+ "resume": "Tiếp tục",+ "clear": "Xóa nhật ký",+ "cleared": "Đã xóa nhật ký máy chủ",+ "levelFilter": "Mức nhật ký",+ "levels": {+ "debug": "Gỡ lỗi",+ "info": "Thông tin",+ "warn": "Cảnh báo",+ "error": "Lỗi"+ },+ "countsHint": "Số đếm là tổng của toàn bộ vùng đệm nhật ký trên máy chủ, không chỉ các mục khớp với những bộ lọc này.",+ "searchPlaceholder": "Tìm trong nội dung nhật ký…",+ "jumpToLatest": "Đến mục mới nhất",+ "showMore": "Xem thêm",+ "showLess": "Thu gọn",+ "buffered": "Đang hiển thị {count} trong tối đa {max} mục được lưu đệm",+ "emptyTitle": "Chưa có mục nhật ký nào",+ "emptyDescription": "Các mục sẽ xuất hiện ở đây khi máy chủ ghi nhật ký. Hãy nới rộng bộ lọc mức, nhà cung cấp hoặc tìm kiếm nếu bạn mong có kết quả.",+ "noLevelsTitle": "Chưa chọn mức nào",+ "noLevelsDescription": "Bật ít nhất một mức để xem nội dung nhật ký.",+ "loadFailed": "Không thể tải nhật ký máy chủ."+ },"playground": {"title": "Sân chơi","description": "Gửi thông báo hoàn thành trò chuyện qua bộ định tuyến và xem nhà cung cấp nào phục vụ nó.",diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex a6cc8d8e..1911399d 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -14,7 +14,9 @@"switchToChinese": "Yipada si Kannada","switchToEnglish": "Yipada si English","modelsMenu": "Kiri awoṣe orisi",- "agents": "Awọn aṣoju"+ "agents": "Awọn aṣoju",+ "logs": "Àkọọlẹ",+ "analyticsMenu": "Awọn oju-iwe atupale"},"auth": {"createYourAccount": "Ṣẹda akọọlẹ rẹ",@@ -636,6 +638,32 @@"ttft": "TTFT","requestsByAgent": "Awọn ibeere nipasẹ aṣoju"},+ "logs": {+ "title": "Àkọọlẹ",+ "description": "Àkọọlẹ olupin laaye. Awọn akọsilẹ tuntun yoo maa wọle nigba ti oju-iwe naa ba ṣi silẹ.",+ "pause": "Dá dúró",+ "resume": "Tẹsiwaju",+ "clear": "Ko àkọọlẹ kuro",+ "cleared": "A ti ko àkọọlẹ olupin kuro",+ "levelFilter": "Awọn ipele àkọọlẹ",+ "levels": {+ "debug": "Debug",+ "info": "Alaye",+ "warn": "Ikilọ",+ "error": "Aṣiṣe"+ },+ "countsHint": "Awọn nọmba naa jẹ apapọ gbogbo ibi ipamọ àkọọlẹ lori olupin, kii ṣe awọn akọsilẹ ti o baamu awọn asẹ wọnyi nikan.",+ "searchPlaceholder": "Ṣewadii awọn ifiranṣẹ àkọọlẹ…",+ "jumpToLatest": "Fo si tuntun",+ "showMore": "Ṣe afihan diẹ sii",+ "showLess": "Ṣe afihan kere si",+ "buffered": "Fifi {count} ninu {max} akọsilẹ ti a fipamọ han",+ "emptyTitle": "Ko si akọsilẹ àkọọlẹ sibẹsibẹ",+ "emptyDescription": "Awọn akọsilẹ yoo han nibi bi olupin ṣe n kọ wọn. Fẹ awọn asẹ ipele, olupese tabi wiwa siwaju sii ti o ba nireti abajade.",+ "noLevelsTitle": "Ko si ipele ti a yan",+ "noLevelsDescription": "Tan o kere ju ipele kan lati ri abajade àkọọlẹ.",+ "loadFailed": "A kò lè gbé àkọọlẹ olupin wọlé."+ },"playground": {"title": "Ibi isereile","description": "Firanṣẹ ipari iwiregbe nipasẹ olulana ki o wo olupese wo ni o nṣe iranṣẹ rẹ.",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 6d5e7e98..e66220f7 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -14,7 +14,9 @@"switchToChinese": "切换到中文","switchToEnglish": "切换到英文","modelsMenu": "浏览模型类型",- "agents": "智能体"+ "agents": "智能体",+ "logs": "日志",+ "analyticsMenu": "分析页面"},"auth": {"createYourAccount": "创建账号",@@ -636,6 +638,32 @@"ttft": "首个词元用时","requestsByAgent": "按智能体统计的请求"},+ "logs": {+ "title": "日志",+ "description": "实时服务器日志。页面打开期间会持续接收新条目。",+ "pause": "暂停",+ "resume": "继续",+ "clear": "清空日志",+ "cleared": "服务器日志已清空",+ "levelFilter": "日志级别",+ "levels": {+ "debug": "调试",+ "info": "信息",+ "warn": "警告",+ "error": "错误"+ },+ "countsHint": "计数为服务器上整个日志缓冲区的总数,并非仅统计符合当前筛选条件的条目。",+ "searchPlaceholder": "搜索日志内容…",+ "jumpToLatest": "跳到最新",+ "showMore": "展开",+ "showLess": "收起",+ "buffered": "已显示 {count} 条,缓冲区最多 {max} 条",+ "emptyTitle": "暂无日志条目",+ "emptyDescription": "服务器写入日志时,条目会显示在这里。如果预期会有输出,请放宽级别、提供方或搜索筛选条件。",+ "noLevelsTitle": "未选择级别",+ "noLevelsDescription": "至少启用一个级别才能查看日志输出。",+ "loadFailed": "无法加载服务器日志。"+ },"playground": {"title": "试验场","description": "通过路由器发送一次对话请求,看看哪个提供方提供服务。",diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 91af4518..8cc96450 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -14,7 +14,9 @@"switchToChinese": "切換為中文","switchToEnglish": "切換為英文","modelsMenu": "瀏覽模型類型",- "agents": "代理程式"+ "agents": "代理程式",+ "logs": "日誌",+ "analyticsMenu": "分析頁面"},"auth": {"createYourAccount": "建立您的帳號",@@ -636,6 +638,32 @@"ttft": "首字延遲","requestsByAgent": "按代理程式統計的請求"},+ "logs": {+ "title": "日誌",+ "description": "即時伺服器日誌。頁面開啟期間會持續接收新項目。",+ "pause": "暫停",+ "resume": "繼續",+ "clear": "清空日誌",+ "cleared": "伺服器日誌已清空",+ "levelFilter": "日誌等級",+ "levels": {+ "debug": "偵錯",+ "info": "資訊",+ "warn": "警告",+ "error": "錯誤"+ },+ "countsHint": "計數為伺服器上整個日誌緩衝區的總數,並非僅統計符合目前篩選條件的項目。",+ "searchPlaceholder": "搜尋日誌內容…",+ "jumpToLatest": "跳至最新",+ "showMore": "展開",+ "showLess": "收起",+ "buffered": "已顯示 {count} 筆,緩衝區最多 {max} 筆",+ "emptyTitle": "尚無日誌項目",+ "emptyDescription": "伺服器寫入日誌時,項目會顯示在這裡。若預期會有輸出,請放寬等級、提供者或搜尋篩選條件。",+ "noLevelsTitle": "未選擇等級",+ "noLevelsDescription": "至少開啟一個等級才能看到日誌輸出。",+ "loadFailed": "無法載入伺服器日誌。"+ },"playground": {"title": "遊樂場","description": "透過路由器傳送一次對話請求,看看哪個提供者提供服務。",diff --git a/client/src/lib/logs.test.ts b/client/src/lib/logs.test.tsnew file mode 100644index 00000000..ddf636a3--- /dev/null+++ b/client/src/lib/logs.test.ts@@ -0,0 +1,178 @@+import { describe, expect, it } from 'vitest'+import {+ advanceCursor,+ buildLogsQuery,+ clampMessage,+ collectProviders,+ formatLogTime,+ isLongMessage,+ levelsCsv,+ mergeEntries,+ toggleLevel,+ type LogEntry,+ type LogLevel,+} from './logs'++function entry(id: number, extra: Partial<LogEntry> = {}): LogEntry {+ return {+ id,+ ts: '2024-01-02T03:04:05.678Z',+ level: 'info',+ message: `message ${id}`,+ ...extra,+ }+}++describe('buildLogsQuery', () => {+ it('always sends the selected levels as a canonically ordered CSV', () => {+ expect(buildLogsQuery({ levels: ['error', 'debug', 'warn'] }))+ .toBe('/api/logs?levels=debug%2Cwarn%2Cerror&limit=200')+ })++ it('omits blank search and the "all" provider sentinel', () => {+ expect(buildLogsQuery({ levels: ['warn'], q: ' ', provider: 'all' }))+ .toBe('/api/logs?levels=warn&limit=200')+ })++ it('sends trimmed search, provider and cursor when present', () => {+ const url = buildLogsQuery({+ levels: ['warn', 'error'],+ q: ' rate limit ',+ provider: 'groq',+ sinceId: 123,+ limit: 200,+ })+ expect(url).toBe('/api/logs?levels=warn%2Cerror&q=rate+limit&provider=groq&sinceId=123&limit=200')+ })++ it('treats sinceId 0 as a real cursor but null as the first fetch', () => {+ expect(buildLogsQuery({ levels: ['info'], sinceId: 0 })).toContain('sinceId=0')+ expect(buildLogsQuery({ levels: ['info'], sinceId: null })).not.toContain('sinceId')+ })++ it('collapses duplicate levels', () => {+ expect(levelsCsv(['warn', 'warn', 'debug'])).toBe('debug,warn')+ })+})++describe('mergeEntries', () => {+ it('appends new entries in arrival order', () => {+ const merged = mergeEntries([entry(1), entry(2)], [entry(3), entry(4)])+ expect(merged.map(e => e.id)).toEqual([1, 2, 3, 4])+ })++ it('never duplicates an id already in the buffer', () => {+ const merged = mergeEntries([entry(1), entry(2)], [entry(2), entry(3)])+ expect(merged.map(e => e.id)).toEqual([1, 2, 3])+ })++ it('de-duplicates within a single incoming page', () => {+ const merged = mergeEntries([], [entry(1), entry(1), entry(2)])+ expect(merged.map(e => e.id)).toEqual([1, 2])+ })++ it('returns the same array when nothing new arrived', () => {+ const buffer = [entry(1), entry(2)]+ expect(mergeEntries(buffer, [])).toBe(buffer)+ expect(mergeEntries(buffer, [entry(2)])).toBe(buffer)+ })++ it('evicts the oldest entries once the cap is passed', () => {+ const buffer = [entry(1), entry(2), entry(3)]+ const merged = mergeEntries(buffer, [entry(4), entry(5)], 3)+ expect(merged.map(e => e.id)).toEqual([3, 4, 5])+ })++ it('caps a single oversized page too', () => {+ const page = Array.from({ length: 10 }, (_, i) => entry(i + 1))+ expect(mergeEntries([], page, 4).map(e => e.id)).toEqual([7, 8, 9, 10])+ })+})++describe('advanceCursor', () => {+ it('takes the server nextId when entries arrived', () => {+ expect(advanceCursor(10, { entries: [entry(11), entry(12)], nextId: 12 })).toBe(12)+ })++ it('still advances when the page came back empty', () => {+ // Entries the query filtered out still bumped the ring's highest id; not+ // taking nextId here would re-ask for them on every poll, forever.+ expect(advanceCursor(10, { entries: [], nextId: 42 })).toBe(42)+ })++ it('accepts nextId 0 on an empty ring', () => {+ expect(advanceCursor(null, { entries: [], nextId: 0 })).toBe(0)+ })++ it('falls back to the highest seen id when nextId is unusable', () => {+ const broken = { entries: [entry(7), entry(9)], nextId: undefined as unknown as number }+ expect(advanceCursor(3, broken)).toBe(9)+ expect(advanceCursor(20, { entries: [], nextId: NaN })).toBe(20)+ })+})++describe('toggleLevel', () => {+ it('adds a level back in canonical order, not at the end', () => {+ expect(toggleLevel(['warn', 'error'], 'debug')).toEqual(['debug', 'warn', 'error'])+ })++ it('removes a selected level', () => {+ expect(toggleLevel(['info', 'warn', 'error'], 'warn')).toEqual(['info', 'error'])+ })++ it('can empty the selection', () => {+ expect(toggleLevel(['error'], 'error')).toEqual([])+ })++ it('round-trips', () => {+ const start: LogLevel[] = ['info', 'warn', 'error']+ expect(toggleLevel(toggleLevel(start, 'debug'), 'debug')).toEqual(start)+ })+})++describe('collectProviders', () => {+ it('accumulates and sorts, ignoring entries without a provider', () => {+ const providers = collectProviders(['groq'], [+ entry(1, { provider: 'cerebras' }),+ entry(2),+ entry(3, { provider: 'groq' }),+ ])+ expect(providers).toEqual(['cerebras', 'groq'])+ })++ it('returns the same array when no new provider showed up', () => {+ const known = ['groq']+ expect(collectProviders(known, [entry(1, { provider: 'groq' })])).toBe(known)+ expect(collectProviders(known, [])).toBe(known)+ })+})++describe('formatLogTime', () => {+ it('formats local wall-clock time as HH:MM:SS.mmm', () => {+ // Built in local time, so the expectation holds in any timezone.+ const ts = new Date(2024, 0, 2, 3, 4, 5, 678).toISOString()+ expect(formatLogTime(ts)).toBe('03:04:05.678')+ })++ it('zero-pads the milliseconds', () => {+ const ts = new Date(2024, 0, 2, 23, 59, 59, 7).toISOString()+ expect(formatLogTime(ts)).toBe('23:59:59.007')+ })++ it('degrades to a placeholder of the same width on a bad timestamp', () => {+ expect(formatLogTime('not a date')).toBe('--:--:--.---')+ })+})++describe('message clamping', () => {+ it('leaves short messages alone', () => {+ expect(isLongMessage('short', 10)).toBe(false)+ expect(clampMessage('short', 10)).toBe('short')+ })++ it('clamps long messages with an ellipsis', () => {+ const long = 'x'.repeat(50)+ expect(isLongMessage(long, 10)).toBe(true)+ expect(clampMessage(long, 10)).toBe('xxxxxxxxxx…')+ })+})diff --git a/client/src/lib/logs.ts b/client/src/lib/logs.tsnew file mode 100644index 00000000..1c422e3f--- /dev/null+++ b/client/src/lib/logs.ts@@ -0,0 +1,188 @@+// Pure helpers behind the Logs page (the live server-log viewer). Everything+// here is deliberately free of React and of `fetch` so the merging/cursor rules+// — the parts that are easy to get subtly wrong and impossible to eyeball in a+// scrolling tail — can be unit-tested without a running server.++export type LogLevel = 'debug' | 'info' | 'warn' | 'error'++/** Canonical order: quietest first. Pills, CSVs and counts all follow it. */+export const LOG_LEVELS: readonly LogLevel[] = ['debug', 'info', 'warn', 'error'] as const++/** Debug is off by default — it is the firehose, and nobody opens the page for it. */+export const DEFAULT_LOG_LEVELS: readonly LogLevel[] = ['info', 'warn', 'error'] as const++/** Newest-N the first (cursorless) fetch asks for. */+export const LOG_PAGE_LIMIT = 200++/** How many entries the client keeps; older ones are evicted as new ones land. */+export const LOG_BUFFER_LIMIT = 2000++/** Poll cadence for the incremental (`sinceId`) fetches. */+export const LOG_POLL_MS = 3000++/** Messages longer than this render clamped behind a click-to-expand. */+export const LOG_MESSAGE_CLAMP = 400++/** One row as served by GET /api/logs. */+export interface LogEntry {+ id: number+ /** ISO-8601 timestamp. */+ ts: string+ level: LogLevel+ source?: string+ provider?: string+ model?: string+ event?: string+ requestId?: string+ message: string+}++/** Ring-wide totals per level — NOT filtered by the current query. */+export interface LogCounts {+ debug: number+ info: number+ warn: number+ error: number+}++export const EMPTY_LOG_COUNTS: LogCounts = { debug: 0, info: 0, warn: 0, error: 0 }++export interface LogsResponse {+ entries: LogEntry[]+ /** Highest id the ring holds — the cursor for the next poll, even when `entries` is empty. */+ nextId: number+ counts: LogCounts+}++export interface LogQuery {+ levels: readonly LogLevel[]+ /** Free-text search; blank means "no q param". */+ q?: string+ /** Provider slug, or 'all'/blank for no provider param. */+ provider?: string+ /** Cursor from the previous response; null/undefined on the first fetch. */+ sinceId?: number | null+ limit?: number+}++/**+ * Assemble the GET /api/logs URL. Levels are always sent (server-side+ * filtering, not client-side), in canonical order so the same selection always+ * produces the same string — which is what makes it usable as a query key.+ */+export function buildLogsQuery(query: LogQuery): string {+ const params = new URLSearchParams()+ params.set('levels', levelsCsv(query.levels))+ const q = query.q?.trim()+ if (q) params.set('q', q)+ const provider = query.provider?.trim()+ if (provider && provider !== 'all') params.set('provider', provider)+ if (query.sinceId != null) params.set('sinceId', String(query.sinceId))+ params.set('limit', String(query.limit ?? LOG_PAGE_LIMIT))+ return `/api/logs?${params.toString()}`+}++/** Selected levels as a canonically ordered, de-duplicated CSV. */+export function levelsCsv(levels: readonly LogLevel[]): string {+ const selected = new Set(levels)+ return LOG_LEVELS.filter(level => selected.has(level)).join(',')+}++/**+ * Append the newly polled entries to the buffer, dropping ids already held (a+ * retried poll can re-deliver the tail) and evicting from the front once the+ * cap is passed. Returns the ORIGINAL array when nothing new arrived, so React+ * bails out of the re-render and the live-tail effect does not mistake an empty+ * poll for new output.+ */+export function mergeEntries(+ buffer: readonly LogEntry[],+ incoming: readonly LogEntry[],+ cap: number = LOG_BUFFER_LIMIT,+): LogEntry[] {+ if (!incoming.length) return buffer as LogEntry[]+ const seen = new Set(buffer.map(entry => entry.id))+ const fresh: LogEntry[] = []+ for (const entry of incoming) {+ if (seen.has(entry.id)) continue+ seen.add(entry.id)+ fresh.push(entry)+ }+ if (!fresh.length) return buffer as LogEntry[]+ const merged = [...buffer, ...fresh]+ return merged.length > cap ? merged.slice(merged.length - cap) : merged+}++/**+ * Next poll's `sinceId`. The server's `nextId` is authoritative and is sent even+ * when the page was empty, so an idle ring still advances past entries filtered+ * out by the query instead of re-asking for them forever.+ */+export function advanceCursor(+ current: number | null,+ response: Pick<LogsResponse, 'entries' | 'nextId'>,+): number | null {+ if (typeof response.nextId === 'number' && Number.isFinite(response.nextId)) {+ return response.nextId+ }+ // Defensive: a response without a usable nextId still must not rewind.+ let highest = current ?? null+ for (const entry of response.entries) {+ if (highest == null || entry.id > highest) highest = entry.id+ }+ return highest+}++/** Flip one level pill; the result stays in canonical order. */+export function toggleLevel(levels: readonly LogLevel[], level: LogLevel): LogLevel[] {+ const selected = new Set(levels)+ if (selected.has(level)) selected.delete(level)+ else selected.add(level)+ return LOG_LEVELS.filter(candidate => selected.has(candidate))+}++/**+ * Providers offered by the filter select. The server has no "list providers"+ * endpoint, so the options accumulate from whatever this session has seen and+ * never shrink — losing an option the moment its last entry is evicted would+ * make the select flicker under load.+ */+export function collectProviders(+ known: readonly string[],+ entries: readonly LogEntry[],+): string[] {+ const all = new Set(known)+ let added = false+ for (const entry of entries) {+ const provider = entry.provider?.trim()+ if (!provider || all.has(provider)) continue+ all.add(provider)+ added = true+ }+ if (!added) return known as string[]+ return [...all].sort((a, b) => a.localeCompare(b))+}++function pad(value: number, width: number): string {+ return String(value).padStart(width, '0')+}++/**+ * Wall-clock time of an entry as HH:MM:SS.mmm in the viewer's zone. Fixed-width+ * on purpose: the tail is monospace and the column must not jitter.+ */+export function formatLogTime(ts: string): string {+ const date = new Date(ts)+ if (Number.isNaN(date.getTime())) return '--:--:--.---'+ return `${pad(date.getHours(), 2)}:${pad(date.getMinutes(), 2)}:${pad(date.getSeconds(), 2)}.${pad(date.getMilliseconds(), 3)}`+}++/** True when a message is long enough to earn a click-to-expand. */+export function isLongMessage(message: string, clamp: number = LOG_MESSAGE_CLAMP): boolean {+ return message.length > clamp+}++/** The clamped form of a long message (ellipsis included). */+export function clampMessage(message: string, clamp: number = LOG_MESSAGE_CLAMP): string {+ return isLongMessage(message, clamp) ? `${message.slice(0, clamp)}…` : message+}diff --git a/client/src/pages/LogsPage.tsx b/client/src/pages/LogsPage.tsxnew file mode 100644index 00000000..dc7b1d1d--- /dev/null+++ b/client/src/pages/LogsPage.tsx@@ -0,0 +1,432 @@+import { useCallback, useEffect, useRef, useState } from 'react'+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'+import { ArrowDownToLine, Pause, Play, ScrollText, Trash2 } from 'lucide-react'+import { PageHeader } from '@/components/page-header'+import { EmptyState } from '@/components/empty-state'+import { ConfirmButton } from '@/components/confirm-button'+import { Badge } from '@/components/ui/badge'+import { Button } from '@/components/ui/button'+import { Input } from '@/components/ui/input'+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'+import { Skeleton } from '@/components/ui/skeleton'+import { apiFetch } from '@/lib/api'+import { toast } from '@/lib/toast'+import { cn } from '@/lib/utils'+import { useI18n } from '@/i18n'+import {+ advanceCursor,+ buildLogsQuery,+ clampMessage,+ collectProviders,+ DEFAULT_LOG_LEVELS,+ EMPTY_LOG_COUNTS,+ formatLogTime,+ isLongMessage,+ levelsCsv,+ LOG_BUFFER_LIMIT,+ LOG_LEVELS,+ LOG_PAGE_LIMIT,+ LOG_POLL_MS,+ mergeEntries,+ toggleLevel,+ type LogCounts,+ type LogEntry,+ type LogLevel,+ type LogsResponse,+} from '@/lib/logs'++// Typing in the search box must not fire a request per keystroke; the server+// re-runs the whole query from scratch for every filter change.+const SEARCH_DEBOUNCE_MS = 300++// How close to the bottom still counts as "watching the tail", in pixels. Same+// slack (and the same direction-aware detach below) as the Playground+// transcript: an exact comparison never matches on sub-pixel scroll positions,+// and a couple of lines' worth keeps a stray trackpad nudge from detaching.+const SCROLL_FOLLOW_SLACK = 40++// Level colors follow the dashboard's existing severity ramp (see the penalty+// inspector): red for error, amber for warn, a calm blue for info, and plain+// muted for debug — which is noise you opted into.+const LEVEL_CLASS: Record<LogLevel, string> = {+ debug: 'bg-muted text-muted-foreground',+ info: 'bg-sky-600/15 text-sky-700 dark:text-sky-400',+ warn: 'bg-amber-600/15 text-amber-700 dark:text-amber-400',+ error: 'bg-destructive/10 text-destructive',+}++function Chip({ children }: { children: React.ReactNode }) {+ return (+ <span className="rounded bg-muted px-1 py-px text-[10px] text-muted-foreground">+ {children}+ </span>+ )+}++function LogRow({+ entry,+ expanded,+ onToggleExpand,+ expandLabel,+ collapseLabel,+}: {+ entry: LogEntry+ expanded: boolean+ onToggleExpand: () => void+ expandLabel: string+ collapseLabel: string+}) {+ const long = isLongMessage(entry.message)+ return (+ <div+ data-log-level={entry.level}+ className="flex items-start gap-2 rounded-lg px-2 py-1 font-mono text-[11px] leading-relaxed hover:bg-muted/40"+ >+ <span className="shrink-0 tabular-nums text-muted-foreground">{formatLogTime(entry.ts)}</span>+ <Badge+ variant="secondary"+ className={cn('h-4 shrink-0 rounded px-1 font-mono text-[10px] uppercase', LEVEL_CLASS[entry.level])}+ >+ {entry.level}+ </Badge>+ <div className="min-w-0 flex-1">+ {(entry.source || entry.provider || entry.model || entry.event || entry.requestId) && (+ <span className="me-1.5 inline-flex flex-wrap items-center gap-1 align-top">+ {entry.source && <Chip>{entry.source}</Chip>}+ {entry.provider && <Chip>{entry.provider}</Chip>}+ {entry.model && <Chip>{entry.model}</Chip>}+ {entry.event && <Chip>{entry.event}</Chip>}+ {entry.requestId && <Chip>#{entry.requestId}</Chip>}+ </span>+ )}+ <span className="whitespace-pre-wrap wrap-break-word">+ {long && !expanded ? clampMessage(entry.message) : entry.message}+ </span>+ {long && (+ <button+ type="button"+ onClick={onToggleExpand}+ className="ms-1.5 align-baseline text-[10px] text-muted-foreground underline underline-offset-2 hover:text-foreground"+ >+ {expanded ? collapseLabel : expandLabel}+ </button>+ )}+ </div>+ </div>+ )+}++export default function LogsPage() {+ const { t } = useI18n()+ const queryClient = useQueryClient()++ const [levels, setLevels] = useState<LogLevel[]>(() => [...DEFAULT_LOG_LEVELS])+ const [provider, setProvider] = useState('all')+ const [searchInput, setSearchInput] = useState('')+ const [search, setSearch] = useState('')+ const [paused, setPaused] = useState(false)++ // The tail itself lives in component state, not in the query cache: each poll+ // returns only what is NEWER than the cursor, so the buffer is the sum of+ // every response since the last filter change (capped, oldest evicted).+ const [entries, setEntries] = useState<LogEntry[]>([])+ const [counts, setCounts] = useState<LogCounts>(EMPTY_LOG_COUNTS)+ const [providers, setProviders] = useState<string[]>([])+ const [expanded, setExpanded] = useState<ReadonlySet<number>>(() => new Set())+ // Live-tail state for RENDER: whether the reader is parked at the bottom, and+ // (when they are not) the newest id they had already seen when they detached.+ // Anything newer than that is what the "Jump to latest" pill is offering.+ const [follow, setFollow] = useState<{ following: boolean; seenId: number | null }>({+ following: true,+ seenId: null,+ })++ const cursorRef = useRef<number | null>(null)+ // Bumped on every filter change. A response tagged with an older stream is+ // dropped rather than pollute the tail the user is now watching.+ const streamRef = useRef(0)+ const listRef = useRef<HTMLDivElement>(null)+ const endRef = useRef<HTMLDivElement>(null)+ const followRef = useRef(true)+ const lastScrollTopRef = useRef(0)++ // Every filter is applied server-side, so changing one invalidates both the+ // buffer and the cursor: the next fetch is a fresh newest-N page. Each filter+ // control calls this as part of its own change handler.+ const resetStream = useCallback(() => {+ streamRef.current += 1+ cursorRef.current = null+ followRef.current = true+ lastScrollTopRef.current = 0+ setEntries([])+ setExpanded(new Set())+ setFollow({ following: true, seenId: null })+ }, [])++ // Typing must not fire a request per keystroke: the committed `search` (and+ // with it the query key) only moves once the box has been quiet for a beat.+ useEffect(() => {+ const trimmed = searchInput.trim()+ if (trimmed === search) return+ const timer = window.setTimeout(() => {+ setSearch(trimmed)+ resetStream()+ }, SEARCH_DEBOUNCE_MS)+ return () => window.clearTimeout(timer)+ }, [searchInput, search, resetStream])++ const filterKey = `${levelsCsv(levels)}|${search}|${provider}`++ const query = useQuery({+ queryKey: ['logs', filterKey],+ // Nothing selected means nothing to ask for; the page says so instead.+ enabled: levels.length > 0,+ // First call has no cursor (newest 200); every later call is incremental.+ // The merge happens here rather than in an effect on `data` because+ // react-query's structural sharing can hand back an identical object for+ // an unchanged response — and an empty poll still has to advance the cursor.+ queryFn: async () => {+ const stream = streamRef.current+ const response = await apiFetch<LogsResponse>(+ buildLogsQuery({ levels, q: search, provider, sinceId: cursorRef.current, limit: LOG_PAGE_LIMIT }),+ )+ // Filters changed while this was in flight: its rows belong to a query+ // the user has already left, and its cursor to a different stream.+ if (streamRef.current !== stream) return response+ const incoming = response.entries ?? []+ cursorRef.current = advanceCursor(cursorRef.current, { entries: incoming, nextId: response.nextId })+ setCounts(response.counts ?? EMPTY_LOG_COUNTS)+ setProviders(prev => collectProviders(prev, incoming))+ setEntries(prev => mergeEntries(prev, incoming))+ return response+ },+ refetchInterval: paused ? false : LOG_POLL_MS,+ // A backgrounded tab burns no requests; polling resumes on focus.+ refetchIntervalInBackground: false,+ // Pause has to mean paused — otherwise coming back to the tab would sneak+ // a fetch past it.+ refetchOnWindowFocus: !paused,+ refetchOnReconnect: !paused,+ })++ const clearLogs = useMutation({+ mutationFn: () => apiFetch<{ ok: true }>('/api/logs/clear', { method: 'POST' }),+ onSuccess: () => {+ resetStream()+ setCounts(EMPTY_LOG_COUNTS)+ setProviders([])+ toast.success(t('logs.cleared'))+ // The cursor is back to null, so the invalidated query refetches from scratch.+ void queryClient.invalidateQueries({ queryKey: ['logs'] })+ },+ })++ const newestId = entries.length ? entries[entries.length - 1].id : null++ // Follow the tail only while the reader is parked at the bottom. Judging by+ // direction (not position alone) keeps our own smooth scroll — which always+ // travels downwards — from being mistaken for the user taking over, whatever+ // they scrolled with: wheel, keys, or the bar.+ const handleScroll = (event: React.UIEvent<HTMLDivElement>) => {+ const el = event.currentTarget+ const top = el.scrollTop+ const movedUp = top < lastScrollTopRef.current - 1+ lastScrollTopRef.current = top+ if (el.scrollHeight - top - el.clientHeight <= SCROLL_FOLLOW_SLACK) {+ followRef.current = true+ setFollow(current => (current.following ? current : { following: true, seenId: null }))+ } else if (movedUp) {+ followRef.current = false+ setFollow(current => (current.following ? { following: false, seenId: newestId } : current))+ }+ }++ // mergeEntries returns the SAME array when a poll brought nothing, so this+ // only runs on real output — an idle server never yanks the viewport.+ useEffect(() => {+ if (!entries.length) return+ if (followRef.current) endRef.current?.scrollIntoView({ behavior: 'smooth' })+ }, [entries])++ const jumpToLatest = () => {+ followRef.current = true+ setFollow({ following: true, seenId: null })+ endRef.current?.scrollIntoView({ behavior: 'smooth' })+ }++ const toggleExpanded = (id: number) => {+ setExpanded(prev => {+ const next = new Set(prev)+ if (next.has(id)) next.delete(id)+ else next.add(id)+ return next+ })+ }++ // Only the FIRST page shows skeletons; a poll that comes back empty must not+ // flash them over a quiet-but-working tail every three seconds.+ const loading = query.isPending && !query.isError+ // Offer the jump only when there is something below the fold to jump TO.+ const showJump = !follow.following && newestId != null && (follow.seenId == null || newestId > follow.seenId)++ return (+ <div>+ <PageHeader+ title={t('logs.title')}+ description={t('logs.description')}+ actions={+ <>+ <Button+ type="button"+ variant="outline"+ size="sm"+ aria-pressed={paused}+ onClick={() => setPaused(current => !current)}+ >+ {paused ? <Play /> : <Pause />}+ {paused ? t('logs.resume') : t('logs.pause')}+ </Button>+ <ConfirmButton+ variant="outline"+ size="sm"+ disabled={clearLogs.isPending}+ onConfirm={() => clearLogs.mutate()}+ >+ <Trash2 />+ {t('logs.clear')}+ </ConfirmButton>+ </>+ }+ />++ <div className="mb-4 flex flex-wrap items-center gap-2">+ <div className="flex flex-wrap items-center gap-1" role="group" aria-label={t('logs.levelFilter')}>+ {LOG_LEVELS.map(level => {+ const active = levels.includes(level)+ return (+ <button+ key={level}+ type="button"+ aria-pressed={active}+ data-level={level}+ onClick={() => {+ setLevels(current => toggleLevel(current, level))+ resetStream()+ }}+ className={cn(+ 'inline-flex h-7 items-center gap-1.5 rounded-4xl border border-transparent px-2.5 text-xs font-medium transition-colors',+ active ? LEVEL_CLASS[level] : 'bg-muted/40 text-muted-foreground hover:text-foreground',+ )}+ >+ {t(`logs.levels.${level}`)}+ <span className="tabular-nums opacity-70">{counts[level]}</span>+ </button>+ )+ })}+ </div>++ <Select+ value={provider}+ onValueChange={(value) => {+ setProvider(value ?? 'all')+ resetStream()+ }}+ >+ <SelectTrigger size="sm" aria-label={t('common.provider')}>+ <SelectValue>+ {(value: string) => (!value || value === 'all' ? t('analytics.allProviders') : value)}+ </SelectValue>+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="all">{t('analytics.allProviders')}</SelectItem>+ {providers.map(name => (+ <SelectItem key={name} value={name}>{name}</SelectItem>+ ))}+ </SelectContent>+ </Select>++ <Input+ value={searchInput}+ onChange={(event) => setSearchInput(event.target.value)}+ placeholder={t('logs.searchPlaceholder')}+ aria-label={t('logs.searchPlaceholder')}+ className="h-7 w-full sm:w-64"+ />+ </div>++ <p className="mb-2 text-xs text-muted-foreground">{t('logs.countsHint')}</p>++ {query.isError && (+ <div className="mb-3 rounded-lg border border-destructive/40 bg-destructive/10 px-3 py-2.5 text-xs text-destructive">+ {t('logs.loadFailed')}{' '}+ {query.error instanceof Error ? query.error.message : String(query.error ?? '')}+ </div>+ )}++ <div className="relative rounded-3xl border bg-card">+ <div+ ref={listRef}+ onScroll={handleScroll}+ className="max-h-[65vh] min-h-[240px] overflow-y-auto p-3"+ >+ {levels.length === 0 ? (+ <EmptyState+ className="border-0"+ icon={ScrollText}+ title={t('logs.noLevelsTitle')}+ description={t('logs.noLevelsDescription')}+ />+ ) : loading ? (+ <div className="space-y-1.5">+ {Array.from({ length: 8 }).map((_, index) => (+ <Skeleton key={index} className="h-4 rounded" />+ ))}+ </div>+ ) : entries.length === 0 ? (+ // On a failed load the banner above already says what happened;+ // pairing it with "nothing here yet" would just muddy the message.+ query.isError ? null : (+ <EmptyState+ className="border-0"+ icon={ScrollText}+ title={t('logs.emptyTitle')}+ description={t('logs.emptyDescription')}+ />+ )+ ) : (+ entries.map(entry => (+ <LogRow+ key={entry.id}+ entry={entry}+ expanded={expanded.has(entry.id)}+ onToggleExpand={() => toggleExpanded(entry.id)}+ expandLabel={t('logs.showMore')}+ collapseLabel={t('logs.showLess')}+ />+ ))+ )}+ <div ref={endRef} />+ </div>++ {showJump && (+ <Button+ type="button"+ size="sm"+ variant="secondary"+ onClick={jumpToLatest}+ className="absolute inset-x-0 bottom-3 mx-auto w-fit shadow-sm"+ >+ <ArrowDownToLine />+ {t('logs.jumpToLatest')}+ </Button>+ )}+ </div>++ {entries.length > 0 && (+ <p className="mt-2 text-xs text-muted-foreground">+ {t('logs.buffered', { count: entries.length, max: LOG_BUFFER_LIMIT })}+ </p>+ )}+ </div>+ )+}diff --git a/server/src/__tests__/db/migrate/roundtrip.test.ts b/server/src/__tests__/db/migrate/roundtrip.test.tsindex 1534d539..e2acf9e1 100644--- a/server/src/__tests__/db/migrate/roundtrip.test.ts+++ b/server/src/__tests__/db/migrate/roundtrip.test.ts@@ -28,6 +28,7 @@ const CLIENT_PROFILES_FILENAME = '20260805_000002_client_profiles.ts';const API_KEY_PROXY_FILENAME = '20260810_000001_api_key_proxy.ts';const PLAYGROUND_CONVERSATIONS_FILENAME = '20260820_000001_playground_conversations.ts';const CUSTOM_MODEL_TOMBSTONES_FILENAME = '20260819_000001_custom_model_tombstones.ts';+const SERVER_LOGS_FILENAME = '20260823_000001_server_logs.ts';interface SchemaRow {type: string;@@ -102,6 +103,7 @@ describe('migration round trip', () => {API_KEY_PROXY_FILENAME,CUSTOM_MODEL_TOMBSTONES_FILENAME,PLAYGROUND_CONVERSATIONS_FILENAME,+ SERVER_LOGS_FILENAME,]);} finally {db.close();diff --git a/server/src/__tests__/lib/log-redaction.test.ts b/server/src/__tests__/lib/log-redaction.test.tsindex a43266cf..9346bb56 100644--- a/server/src/__tests__/lib/log-redaction.test.ts+++ b/server/src/__tests__/lib/log-redaction.test.ts@@ -109,6 +109,26 @@ describe('redactSecrets', () => {expect(out.match(/\[redacted/g)).toHaveLength(1);});+ it('leaves a long run of one repeated character alone', () => {+ // The 32+ char catch-all is an entropy heuristic, and a run of a single+ // character has none: separator rules, padding and progress output are not+ // credentials, and redacting them made real output unreadable while+ // protecting nothing.+ const line = `divider ${'a'.repeat(36)} end`;+ expect(redactSecrets(line)).toBe(line);+ expect(redactSecrets(`${'='.repeat(40)}`)).toBe('='.repeat(40));+ });++ it('still redacts a genuine high-entropy 32-char token', () => {+ // The guard above must not have opened a hole: two distinct characters in+ // the first 32 is all it takes to be caught, which every real key is.+ const secret = filler(32);+ const out = redactSecrets(`token ${secret} rejected`);+ expect(out).not.toContain(secret);+ expect(out).toContain('[redacted-token]');+ expect(out).toContain('rejected');+ });+it('is idempotent — redacting twice changes nothing', () => {const once = redactSecrets('Authorization: Bearer abc123def456ghi789jkl012');expect(redactSecrets(once)).toBe(once);diff --git a/server/src/__tests__/routes/logs.test.ts b/server/src/__tests__/routes/logs.test.tsnew file mode 100644index 00000000..0e41e4c8--- /dev/null+++ b/server/src/__tests__/routes/logs.test.ts@@ -0,0 +1,448 @@+import { describe, it, expect, beforeAll, beforeEach, afterEach } from 'vitest';+import type { Express } from 'express';+import { createApp } from '../../app.js';+import { initDb, getDb, getUnifiedApiKey } from '../../db/index.js';+import { mintDashboardToken } from '../helpers/auth.js';+import {+ RING_CAPACITY,+ clearLogs,+ currentMaxId,+ initServerLogs,+ providerLog,+ recordLogEntry,+ resetServerLogsForTest,+ ringSnapshot,+} from '../../lib/server-logs.js';+import { installLogRedaction } from '../../lib/log-redaction.js';+import { getServerLogRetentionConfig, pruneServerLogs } from '../../services/request-retention.js';++// The dashboard's server-log viewer: capture, storage, the query surface and+// the auth gate. Same in-memory DB + minted dashboard session as the other+// admin route suites.++async function request(+ app: Express,+ method: string,+ path: string,+ opts: { body?: unknown; token?: string; key?: string } = {},+) {+ const server = app.listen(0, '127.0.0.1');+ if (!server.listening) await new Promise<void>(resolve => server.once('listening', () => resolve()));+ const addr = server.address() as any;+ const token = opts.key ?? opts.token;+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, {+ method,+ headers: {+ ...(opts.body !== undefined ? { 'Content-Type': 'application/json' } : {}),+ ...(token ? { Authorization: `Bearer ${token}` } : {}),+ },+ body: opts.body !== undefined ? JSON.stringify(opts.body) : undefined,+ });+ const body = await res.json().catch(() => null);+ server.close();+ return { status: res.status, body };+}++/** A 32-char token built at runtime, never as a literal — a source file holding+ * one is indistinguishable from a real leak to push protection (see the note+ * in lib/log-redaction.test.ts). The stride keeps it high-entropy-looking. */+const ALNUM = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';+function filler(length: number): string {+ let out = '';+ for (let i = 0; i < length; i++) out += ALNUM[(i * 7 + 3) % ALNUM.length];+ return out;+}++interface LogsResponse {+ entries: Array<Record<string, unknown>>;+ nextId: number;+ counts: { debug: number; info: number; warn: number; error: number };+}++describe('server log viewer', () => {+ let app: Express;+ let dashToken: string;+ let unifiedKey: string;++ beforeAll(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ app = createApp();+ unifiedKey = getUnifiedApiKey();+ dashToken = mintDashboardToken('[email protected]');+ });++ beforeEach(() => {+ getDb().prepare('DELETE FROM server_logs').run();+ resetServerLogsForTest();+ initServerLogs();+ });++ async function fetchLogs(query = ''): Promise<{ status: number; body: LogsResponse }> {+ const res = await request(app, 'GET', `/api/logs${query}`, { token: dashToken });+ return res as { status: number; body: LogsResponse };+ }++ // ── Capture ────────────────────────────────────────────────────────────────++ describe('capture through the redaction wrapper', () => {+ let restore: (() => void) | null = null;++ afterEach(() => {+ restore?.();+ restore = null;+ });++ it('records console output redacted, at the mapped level', () => {+ const seen: unknown[][] = [];+ const origError = console.error;+ const origLog = console.log;+ const origDebug = console.debug;+ console.error = (...args: unknown[]) => { seen.push(args); };+ console.log = (...args: unknown[]) => { seen.push(args); };+ console.debug = (...args: unknown[]) => { seen.push(args); };++ restore = installLogRedaction();+ const secret = filler(48);+ console.error(`upstream rejected Authorization: Bearer ${secret}`);+ console.log('[Router] routed groq/llama-3.3-70b in 412ms');+ console.debug('cache lookup miss');++ restore();+ console.error = origError;+ console.log = origLog;+ console.debug = origDebug;+ restore = null;++ const entries = ringSnapshot();+ expect(entries).toHaveLength(3);++ // The credential must be gone from the buffer, not merely from stdout.+ expect(entries[0]!.level).toBe('error');+ expect(entries[0]!.message).not.toContain(secret);+ expect(entries[0]!.message).toContain('Bearer [redacted]');++ // console.log is the informational writer; debug keeps its own level.+ expect(entries[1]!.level).toBe('info');+ expect(entries[1]!.source).toBe('Router');+ expect(entries[2]!.level).toBe('debug');+ });++ it('drops the viewer\'s own polling lines at ingest', () => {+ const origLog = console.log;+ console.log = () => undefined;+ restore = installLogRedaction();++ console.log('GET /api/logs?sinceId=12 200 3ms');+ console.log('GET /api/ping 200 1ms');+ console.log('GET /api/models 200 8ms');++ restore();+ console.log = origLog;+ restore = null;++ const messages = ringSnapshot().map(e => e.message);+ expect(messages).toEqual(['GET /api/models 200 8ms']);+ });++ it('caps a very long line instead of dropping it', () => {+ recordLogEntry({ level: 'info', message: 'x'.repeat(20_000) });+ const entry = ringSnapshot().at(-1)!;+ expect(entry.message.length).toBeLessThanOrEqual(6000);+ expect(entry.message.endsWith('[truncated]')).toBe(true);+ });+ });++ // ── Structured events ──────────────────────────────────────────────────────++ it('providerLog round-trips its metadata and mirrors to stdout exactly once', () => {+ const seen: unknown[][] = [];+ const origWarn = console.warn;+ console.warn = (...args: unknown[]) => { seen.push(args); };+ const restore = installLogRedaction();++ providerLog('warn', '[Health] Key 7 (groq) invalid: unauthorized', {+ provider: 'groq',+ model: 'llama-3.3-70b',+ event: 'key_invalid',+ requestId: 'req-42',+ });++ restore();+ console.warn = origWarn;++ // Mirrored — the operator watching the terminal still sees it...+ expect(seen).toHaveLength(1);+ expect(String(seen[0]![0])).toContain('[Health] Key 7');++ // ...and stored exactly once, despite the mirror going through the wrapped+ // console that taps back into the store.+ const entries = ringSnapshot();+ expect(entries).toHaveLength(1);+ expect(entries[0]).toMatchObject({+ level: 'warn',+ provider: 'groq',+ model: 'llama-3.3-70b',+ event: 'key_invalid',+ requestId: 'req-42',+ source: 'Health',+ });+ });++ it('redacts a providerLog message even though it bypasses the console wrapper', () => {+ const secret = filler(40);+ providerLog('error', `[Health] key rejected: sk-${secret}`, { provider: 'openrouter' });+ expect(ringSnapshot().at(-1)!.message).not.toContain(secret);+ });++ // ── Storage ────────────────────────────────────────────────────────────────++ it('persists warn and error only, and preloads them on a cold start', () => {+ recordLogEntry({ level: 'info', message: 'routine' });+ recordLogEntry({ level: 'warn', message: '[Health] key benched', provider: 'groq' });+ recordLogEntry({ level: 'error', message: '[Router] no key available', provider: 'cerebras' });+ recordLogEntry({ level: 'debug', message: 'cache probe' });++ const rows = getDb()+ .prepare('SELECT level, provider, message FROM server_logs ORDER BY id')+ .all() as Array<{ level: string; provider: string | null; message: string }>;+ expect(rows.map(r => r.level)).toEqual(['warn', 'error']);+ expect(rows[0]!.provider).toBe('groq');++ // Cold start: the ring is empty in memory but the durable rows come back.+ resetServerLogsForTest();+ initServerLogs();+ const reloaded = ringSnapshot();+ expect(reloaded.map(e => e.message)).toEqual([+ '[Health] key benched',+ '[Router] no key available',+ ]);+ expect(reloaded.map(e => e.level)).toEqual(['warn', 'error']);+ });++ it('keeps ids strictly increasing across a simulated restart', () => {+ recordLogEntry({ level: 'warn', message: 'before the restart' });+ const beforeMax = currentMaxId();+ expect(beforeMax).toBeGreaterThan(0);++ resetServerLogsForTest();+ initServerLogs();+ // Seeded from MAX(id), so nothing is handed out twice.+ expect(currentMaxId()).toBe(beforeMax);++ const next = recordLogEntry({ level: 'info', message: 'after the restart' })!;+ expect(next.id).toBe(beforeMax + 1);+ expect(ringSnapshot().map(e => e.id)).toEqual([beforeMax, beforeMax + 1]);+ });++ it('bounds the ring at its capacity while ids keep climbing', () => {+ for (let i = 0; i < RING_CAPACITY + 25; i++) {+ recordLogEntry({ level: 'info', message: `line ${i}` });+ }+ const entries = ringSnapshot();+ expect(entries).toHaveLength(RING_CAPACITY);+ expect(entries[0]!.message).toBe('line 25');+ expect(currentMaxId()).toBe(RING_CAPACITY + 25);+ });++ // ── API ────────────────────────────────────────────────────────────────────++ describe('GET /api/logs', () => {+ beforeEach(() => {+ recordLogEntry({ level: 'debug', message: 'cache probe', provider: 'groq' });+ recordLogEntry({ level: 'info', message: '[Router] routed to cerebras', provider: 'cerebras' });+ recordLogEntry({ level: 'warn', message: '[Health] key benched', provider: 'groq', event: 'key_invalid' });+ recordLogEntry({ level: 'error', message: '[Router] all keys exhausted', provider: 'groq' });+ });++ it('returns entries oldest→newest with an ISO ms timestamp and level counts', async () => {+ const { status, body } = await fetchLogs();+ expect(status).toBe(200);+ expect(body.entries.map(e => e.message)).toEqual([+ 'cache probe',+ '[Router] routed to cerebras',+ '[Health] key benched',+ '[Router] all keys exhausted',+ ]);+ expect(body.entries[0]!.ts).toMatch(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/);+ expect(body.nextId).toBe(currentMaxId());+ expect(body.counts).toEqual({ debug: 1, info: 1, warn: 1, error: 1 });+ // Absent metadata is omitted rather than sent as null.+ expect(body.entries[0]).not.toHaveProperty('model');+ });++ it('filters by level', async () => {+ const { body } = await fetchLogs('?levels=warn,error');+ expect(body.entries.map(e => e.level)).toEqual(['warn', 'error']);+ // counts stay unfiltered so the level badges do not change as you filter.+ expect(body.counts).toEqual({ debug: 1, info: 1, warn: 1, error: 1 });+ });++ it('rejects an unknown level with 400', async () => {+ const { status, body } = await fetchLogs('?levels=warn,shout');+ expect(status).toBe(400);+ expect(String((body as any).error.message)).toContain('shout');+ });++ it('searches message, provider, source and event case-insensitively', async () => {+ expect((await fetchLogs('?q=EXHAUSTED')).body.entries).toHaveLength(1);+ // matched via provider…+ expect((await fetchLogs('?q=cerebras')).body.entries).toHaveLength(1);+ // …via source…+ expect((await fetchLogs('?q=health')).body.entries).toHaveLength(1);+ // …and via event.+ expect((await fetchLogs('?q=key_invalid')).body.entries).toHaveLength(1);+ });++ it('filters by exact provider', async () => {+ const { body } = await fetchLogs('?provider=groq');+ expect(body.entries).toHaveLength(3);+ expect((await fetchLogs('?provider=gro')).body.entries).toHaveLength(0);+ });++ it('returns only entries newer than sinceId', async () => {+ const first = await fetchLogs();+ const cursor = first.body.nextId;++ recordLogEntry({ level: 'info', message: 'brand new' });+ const second = await fetchLogs(`?sinceId=${cursor}`);+ expect(second.body.entries.map(e => e.message)).toEqual(['brand new']);+ expect(second.body.nextId).toBe(cursor + 1);+ });++ it('returns nothing cheaply when the caller is already caught up', async () => {+ const { body } = await fetchLogs(`?sinceId=${currentMaxId()}`);+ expect(body.entries).toEqual([]);+ // The cursor still advances-in-place and the badges still render.+ expect(body.nextId).toBe(currentMaxId());+ expect(body.counts.error).toBe(1);+ });++ it('advances nextId past entries the filter removed', async () => {+ const before = currentMaxId();+ recordLogEntry({ level: 'info', message: 'noise nobody asked for' });+ const { body } = await fetchLogs(`?levels=error&sinceId=${before}`);+ expect(body.entries).toEqual([]);+ expect(body.nextId).toBe(before + 1);+ });++ it('rejects a malformed sinceId', async () => {+ expect((await fetchLogs('?sinceId=abc')).status).toBe(400);+ expect((await fetchLogs('?sinceId=-1')).status).toBe(400);+ expect((await fetchLogs('?sinceId=1.5')).status).toBe(400);+ });++ it('returns the newest N for a limit, clamped to 1..500', async () => {+ const { body } = await fetchLogs('?limit=2');+ expect(body.entries.map(e => e.message)).toEqual([+ '[Health] key benched',+ '[Router] all keys exhausted',+ ]);++ for (let i = 0; i < 600; i++) recordLogEntry({ level: 'info', message: `bulk ${i}` });+ expect((await fetchLogs('?limit=9999')).body.entries).toHaveLength(500);+ expect((await fetchLogs('?limit=0')).body.entries).toHaveLength(1);+ // A non-numeric limit falls back to the default rather than 400ing.+ expect((await fetchLogs('?limit=lots')).body.entries).toHaveLength(200);+ });+ });++ it('POST /api/logs/clear empties both tiers without rewinding the cursor', async () => {+ recordLogEntry({ level: 'error', message: '[Router] boom' });+ const maxBefore = currentMaxId();++ const res = await request(app, 'POST', '/api/logs/clear', { token: dashToken });+ expect(res.status).toBe(200);+ expect(res.body).toEqual({ ok: true });++ expect(ringSnapshot()).toEqual([]);+ const remaining = getDb().prepare('SELECT COUNT(*) AS n FROM server_logs').get() as { n: number };+ expect(remaining.n).toBe(0);+ // Ids must not be reused: an open tab is still holding the old cursor.+ expect(currentMaxId()).toBe(maxBefore);+ });++ // ── Auth ───────────────────────────────────────────────────────────────────++ it('requires a dashboard session, and the unified /v1 key does not open it', async () => {+ for (const path of ['/api/logs', '/api/logs/clear']) {+ const method = path.endsWith('clear') ? 'POST' : 'GET';+ expect((await request(app, method, path)).status).toBe(401);+ expect((await request(app, method, path, { key: unifiedKey })).status).toBe(401);+ }+ expect((await request(app, 'GET', '/api/logs', { token: dashToken })).status).toBe(200);+ });++ // ── Retention ──────────────────────────────────────────────────────────────++ describe('retention', () => {+ const ORIGINAL_DAYS = process.env.SERVER_LOGS_RETENTION_DAYS;+ const ORIGINAL_ROWS = process.env.SERVER_LOGS_MAX_ROWS;++ afterEach(() => {+ if (ORIGINAL_DAYS === undefined) delete process.env.SERVER_LOGS_RETENTION_DAYS;+ else process.env.SERVER_LOGS_RETENTION_DAYS = ORIGINAL_DAYS;+ if (ORIGINAL_ROWS === undefined) delete process.env.SERVER_LOGS_MAX_ROWS;+ else process.env.SERVER_LOGS_MAX_ROWS = ORIGINAL_ROWS;+ });++ function seedRow(id: number, ageMs: number, now: number): void {+ getDb().prepare(`+ INSERT INTO server_logs (id, level, message, created_at_ms)+ VALUES (?, 'warn', ?, ?)+ `).run(id, `row ${id}`, now - ageMs);+ }++ function rowIds(): number[] {+ return (getDb().prepare('SELECT id FROM server_logs ORDER BY id').all() as { id: number }[])+ .map(r => r.id);+ }++ it('defaults to 7 days and 50k rows', () => {+ expect(getServerLogRetentionConfig()).toEqual({ retentionDays: 7, maxRows: 50_000 });+ });++ it('deletes rows past the retention window', () => {+ const now = Date.now();+ const day = 24 * 60 * 60 * 1000;+ seedRow(1, 9 * day, now);+ seedRow(2, 8 * day, now);+ seedRow(3, 1 * day, now);++ process.env.SERVER_LOGS_RETENTION_DAYS = '7';+ process.env.SERVER_LOGS_MAX_ROWS = '0';+ expect(pruneServerLogs(getDb(), now)).toBe(2);+ expect(rowIds()).toEqual([3]);+ });++ it('trims the oldest rows past the row ceiling', () => {+ const now = Date.now();+ for (let i = 1; i <= 5; i++) seedRow(i, (5 - i) * 1000, now);++ process.env.SERVER_LOGS_RETENTION_DAYS = '0';+ process.env.SERVER_LOGS_MAX_ROWS = '2';+ expect(pruneServerLogs(getDb(), now)).toBe(3);+ expect(rowIds()).toEqual([4, 5]);+ });++ it('treats 0 as "no limit" on both knobs', () => {+ const now = Date.now();+ seedRow(1, 400 * 24 * 60 * 60 * 1000, now);++ process.env.SERVER_LOGS_RETENTION_DAYS = '0';+ process.env.SERVER_LOGS_MAX_ROWS = '0';+ expect(pruneServerLogs(getDb(), now)).toBe(0);+ expect(rowIds()).toEqual([1]);+ });++ it('is a no-op when the table has not been migrated in', () => {+ const bare = { prepare: () => ({ get: () => undefined, all: () => [], run: () => ({ changes: 0 }) }) };+ expect(pruneServerLogs(bare as any, Date.now())).toBe(0);+ });+ });++ it('clearLogs is safe with no rows to clear', () => {+ clearLogs();+ expect(ringSnapshot()).toEqual([]);+ });+});diff --git a/server/src/app.ts b/server/src/app.tsindex bb1ea75e..b9dad2ef 100644--- a/server/src/app.ts+++ b/server/src/app.ts@@ -7,6 +7,7 @@ import { fileURLToPath } from 'url';import { keysRouter } from './routes/keys.js';import { clientProfilesRouter } from './routes/client-profiles.js';import { conversationsRouter } from './routes/conversations.js';+import { logsRouter } from './routes/logs.js';import { modelsRouter } from './routes/models.js';import { proxyRouter } from './routes/proxy.js';import { responsesRouter } from './routes/responses.js';@@ -232,6 +233,10 @@ export function createApp(config?: Config) {// Saved Playground transcripts (the chat sidebar). Dashboard-session gated// like every other admin route; the unified /v1 key does not open it.app.use('/api/conversations', requireAuth, conversationsRouter);+ // Server logs for the dashboard viewer. Dashboard-session gated like the rest+ // of /api — these lines name providers, models and key ids, so the unified+ // /v1 key must not open them.+ app.use('/api/logs', requireAuth, logsRouter);app.use('/api/models', requireAuth, modelsRouter);app.use('/api/profiles', requireAuth, profilesRouter);app.use('/api/fallback', requireAuth, fallbackRouter);diff --git a/server/src/db/migrate/defaults.ts b/server/src/db/migrate/defaults.tsindex 3c05fae1..6958df1f 100644--- a/server/src/db/migrate/defaults.ts+++ b/server/src/db/migrate/defaults.ts@@ -23,6 +23,7 @@ import * as clientProfiles from '../migrations/20260805_000002_client_profiles.jimport * as apiKeyProxy from '../migrations/20260810_000001_api_key_proxy.js';import * as playgroundConversations from '../migrations/20260820_000001_playground_conversations.js';import * as customModelTombstones from '../migrations/20260819_000001_custom_model_tombstones.js';+import * as serverLogs from '../migrations/20260823_000001_server_logs.js';export interface MigrationModule {up(db: Db): void;@@ -58,6 +59,7 @@ export const CLIENT_PROFILES_FILENAME = '20260805_000002_client_profiles.ts';export const API_KEY_PROXY_FILENAME = '20260810_000001_api_key_proxy.ts';export const PLAYGROUND_CONVERSATIONS_FILENAME = '20260820_000001_playground_conversations.ts';export const CUSTOM_MODEL_TOMBSTONES_FILENAME = '20260819_000001_custom_model_tombstones.ts';+export const SERVER_LOGS_FILENAME = '20260823_000001_server_logs.ts';export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: LEGACY_BASELINE_FILENAME, module: legacyBaseline },@@ -84,4 +86,5 @@ export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: API_KEY_PROXY_FILENAME, module: apiKeyProxy },{ filename: CUSTOM_MODEL_TOMBSTONES_FILENAME, module: customModelTombstones },{ filename: PLAYGROUND_CONVERSATIONS_FILENAME, module: playgroundConversations },+ { filename: SERVER_LOGS_FILENAME, module: serverLogs },];diff --git a/server/src/db/migrations/20260823_000001_server_logs.ts b/server/src/db/migrations/20260823_000001_server_logs.tsnew file mode 100644index 00000000..8a88209b--- /dev/null+++ b/server/src/db/migrations/20260823_000001_server_logs.ts@@ -0,0 +1,56 @@+// Migration: durable server_logs for the dashboard log viewer+// Created: 2026-08-23+//+// DOWN: reversible+//+// The log viewer reads a 1000-entry in-memory ring, which is the right store+// for a live tail and the wrong one for the question operators actually ask:+// "what went wrong while I was asleep / before this restart?". A ring answers+// that with an empty panel.+//+// So warn and error — and only those — are ALSO written here. Info and debug+// are the volume (a busy gateway prints several lines per request) and the part+// nobody goes looking for after the fact; persisting them would turn a+// diagnostic aid into the database's largest table. The CHECK constraint states+// that policy in the schema rather than leaving it to the writer.+//+// `id` is assigned by the application, NOT by AUTOINCREMENT, because the ring+// and this table share one id space: the client polls with a `sinceId` cursor+// and that cursor has to mean the same thing for a line that only ever lived in+// memory and for one preloaded from here. lib/server-logs.ts seeds its counter+// from MAX(id) at init, which is what keeps ids increasing across restarts.+//+// created_at_ms is epoch milliseconds (like playground_conversations and+// sessions.expires_at_ms): the viewer renders relative times in the browser's+// clock, and sub-second ordering matters when a failure prints five lines at+// once. The index is (created_at_ms, id) — the retention prune's cutoff scan+// and the boot preload's "most recent N" both read exactly that order, with id+// as the tiebreak for lines sharing a millisecond.++import type { Db } from '../types.js';++export function up(db: Db): void {+ db.exec(`+ CREATE TABLE IF NOT EXISTS server_logs (+ id INTEGER PRIMARY KEY,+ level TEXT CHECK(level IN ('warn','error')),+ source TEXT,+ provider TEXT,+ model TEXT,+ event TEXT,+ request_id TEXT,+ message TEXT NOT NULL,+ created_at_ms INTEGER NOT NULL+ );++ CREATE INDEX IF NOT EXISTS idx_server_logs_created+ ON server_logs(created_at_ms, id);+ `);+}++export function down(db: Db): void {+ db.exec(`+ DROP INDEX IF EXISTS idx_server_logs_created;+ DROP TABLE IF EXISTS server_logs;+ `);+}diff --git a/server/src/lib/log-redaction.ts b/server/src/lib/log-redaction.tsindex 92155623..59c9f54d 100644--- a/server/src/lib/log-redaction.ts+++ b/server/src/lib/log-redaction.ts@@ -11,8 +11,16 @@* string for API responses: that one also strips every URL and truncates to 240* chars, which would make server logs unreadable. This module removes* credentials and nothing else.+ *+ * This is also the capture point for the dashboard's server-log viewer+ * (lib/server-logs.ts). The tap lives inside the one wrapper installed below+ * rather than in a second one, so a line is redacted before anything else can+ * see it and the two consumers cannot drift apart.*/+import { recordConsoleLine } from './server-logs.js';+import type { ServerLogLevel } from './server-logs.js';+const REDACTED = '[redacted-key]';// Ordered most-specific first: prefixed provider keys, then bearer tokens, then@@ -59,7 +67,16 @@ const PATTERNS: Array<[RegExp, string]> = [// Last resort: an unbroken 32+ char alphanumeric run. Long enough to exclude// request ids, git SHAs (40 hex would match, which is an acceptable trade) and// model names, and it catches bare keys with no recognisable prefix.- [/\b[A-Za-z0-9]{32,}\b/g, '[redacted-token]'],+ //+ // The (?!([A-Za-z0-9])\1{31}) guard excludes a run of ONE repeated character.+ // A credential of 32 identical characters does not exist; padding, separator+ // rules ('='*40), progress bars and truncation markers made of them do, and+ // replacing those with [redacted-token] destroyed readable output while+ // protecting nothing. The exemption is narrow: it only fires when the run's+ // first 32 characters are all the same one, so anything with two distinct+ // characters that early — every real key, the more so the higher its entropy —+ // fails the lookahead and is redacted exactly as before.+ [/\b(?!([A-Za-z0-9])\1{31})[A-Za-z0-9]{32,}\b/g, '[redacted-token]'],];/** Strip credentials from a string. Safe to call on anything; non-strings are@@ -110,6 +127,18 @@ function redactArg(arg: unknown): unknown {type ConsoleMethod = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'trace';const METHODS: ConsoleMethod[] = ['log', 'info', 'warn', 'error', 'debug', 'trace'];+// console.log is the codebase's ordinary informational writer, so it shares+// 'info'; debug and trace keep their own level so the dashboard can filter them+// out on their own.+const LEVEL_FOR_METHOD: Record<ConsoleMethod, ServerLogLevel> = {+ log: 'info',+ info: 'info',+ warn: 'warn',+ error: 'error',+ debug: 'debug',+ trace: 'trace',+};+let installed = false;/**@@ -126,9 +155,16 @@ export function installLogRedaction(): () => void {const original = console[method] as (...args: unknown[]) => void;if (typeof original !== 'function') continue;originals.set(method, original);+ const level = LEVEL_FOR_METHOD[method];console[method] = (...args: unknown[]) => {try {- original(...args.map(redactArg));+ const redacted = args.map(redactArg);+ // The dashboard's log viewer taps in HERE, on the redacted args and+ // before the write, so there is still exactly one console patch in the+ // process and the buffer can never hold a credential the terminal did+ // not. recordConsoleLine never throws.+ recordConsoleLine(level, redacted);+ original(...redacted);} catch {// Never let redaction swallow a log line.original(...args);diff --git a/server/src/lib/server-logs.ts b/server/src/lib/server-logs.tsnew file mode 100644index 00000000..e5f7736d--- /dev/null+++ b/server/src/lib/server-logs.ts@@ -0,0 +1,501 @@+/**+ * The dashboard's server-log store.+ *+ * Operators debugging a routing decision, a benched key or a retired model have+ * had exactly one place to look: the terminal the process was started from. On+ * a desktop install, a container, or a systemd unit that is either awkward or+ * gone entirely. This module keeps the same lines the server already prints and+ * makes them readable from the dashboard.+ *+ * Two tiers, ONE id space:+ * - a ring buffer (RING_CAPACITY entries, every level) backs the live view+ * and is the only thing the polling endpoint reads;+ * - warn/error rows are ALSO written to the `server_logs` table, so the+ * lines that matter survive a restart.+ *+ * Ids are assigned here, not by SQLite, because the client polls with a+ * `sinceId` cursor and that cursor has to mean the same thing for a line that+ * only ever lived in memory and for one that came back from the table. The+ * counter is seeded from MAX(id) at init, so ids keep increasing across+ * restarts and a cursor held by an open dashboard tab never goes backwards.+ *+ * Capture is a TAP inside lib/log-redaction.ts rather than a second console+ * wrapper: there is exactly one console patch in this process, it redacts+ * first, and this store only ever sees the redacted form.+ */++import { inspect } from 'node:util';+import { getDb } from '../db/index.js';+import { redactSecrets } from './log-redaction.js';+import type { Db } from '../db/types.js';++/** Levels the store understands. console.log maps to 'info'; debug and trace+ * keep their own identity so a noisy trace can be filtered out on its own. */+export const LOG_LEVELS = ['trace', 'debug', 'info', 'warn', 'error'] as const;+export type ServerLogLevel = (typeof LOG_LEVELS)[number];++/** Levels durable enough to be worth a row. Mirrors the migration's CHECK. */+const PERSISTED_LEVELS = new Set<ServerLogLevel>(['warn', 'error']);++/** Live-view depth. A thousand lines is a few minutes of a busy gateway and+ * costs well under a megabyte at the message cap below. */+export const RING_CAPACITY = 1000;++/** How much persisted history is pulled back into the ring at init, so the+ * dashboard shows the warnings that preceded the restart instead of an empty+ * panel that fills up only if something goes wrong again. */+export const PRELOAD_LIMIT = 200;++/** A single log line is a diagnostic, not a document. Long provider bodies and+ * multi-frame stacks are truncated rather than dropped — the head is where the+ * information is. */+export const MAX_MESSAGE_LENGTH = 6000;++const TRUNCATION_SUFFIX = '… [truncated]';++/**+ * The viewer polls GET /api/logs every couple of seconds. If the deployment in+ * front of us emits access-log lines, those polls would be the loudest thing in+ * the buffer and every poll would manufacture the content of the next one.+ *+ * NOTE (verified in this tree): this server installs NO access-log middleware —+ * there is no morgan/pino/winston dependency and no request-logging middleware+ * in app.ts or src/middleware/. So today nothing matches this filter. It stays+ * because the cost is one regex test at ingest and the failure mode it prevents+ * (a self-feeding buffer) is one an operator cannot work around; a reverse+ * proxy, a future middleware, or a debug line added during triage all produce+ * exactly these lines.+ */+const NOISE_RE = /\b(?:GET|HEAD)\s+\/api\/(?:logs|ping)\b/i;++export interface ServerLogMeta {+ provider?: string;+ model?: string;+ event?: string;+ requestId?: string;+}++export interface ServerLogEntry extends ServerLogMeta {+ id: number;+ tsMs: number;+ level: ServerLogLevel;+ /** The `[Tag]` a line opens with, when it has one ('Health', 'CooldownProbe'…). */+ source?: string;+ message: string;+}++// ── State ────────────────────────────────────────────────────────────────────++let ring: ServerLogEntry[] = [];+let lastId = 0;+let seeded = false;++/**+ * Set while providerLog() mirrors its message to stdout. The console it calls+ * is the WRAPPED one (that is the point — the redaction wrapper must still see+ * it), and the wrapper taps back into this module, so without this flag every+ * structured event would land in the ring twice.+ */+let mirroring = false;++/**+ * Set while a persist is in flight. The DB layer can log — a busy-timeout+ * warning, a permissions warning from db/index.ts — and that log would come+ * straight back here and try to insert again. The ring still accepts the line;+ * only the write is skipped.+ */+let persisting = false;++/** Reentrancy guard for the boot seed, for the same reason as `persisting`. */+let seeding = false;++// ── Formatting ───────────────────────────────────────────────────────────────++/** One console argument, rendered the way it reaches stdout: strings verbatim,+ * Errors with their stack, everything else inspected at bounded depth. */+function formatArg(arg: unknown): string {+ if (typeof arg === 'string') return arg;+ if (arg instanceof Error) return arg.stack ?? `${arg.name}: ${arg.message}`;+ if (arg === null) return 'null';+ if (arg === undefined) return 'undefined';+ if (typeof arg === 'object') {+ try {+ return inspect(arg, { depth: 2, breakLength: Infinity, maxStringLength: 1000 });+ } catch {+ return String(arg);+ }+ }+ return String(arg);+}++export function formatLogArgs(args: readonly unknown[]): string {+ return args.map(formatArg).join(' ');+}++function truncate(message: string): string {+ if (message.length <= MAX_MESSAGE_LENGTH) return message;+ return message.slice(0, MAX_MESSAGE_LENGTH - TRUNCATION_SUFFIX.length) + TRUNCATION_SUFFIX;+}++/** The subsystem tag the codebase already prefixes its lines with. Deriving it+ * instead of asking every call site for one is what makes the `source` column+ * useful for lines nobody edited. */+const SOURCE_RE = /^\s*\[([A-Za-z][\w .:/-]{0,39})\]/;++function deriveSource(message: string): string | undefined {+ return SOURCE_RE.exec(message)?.[1];+}++// ── Ingest ───────────────────────────────────────────────────────────────────++function trimField(value: string | undefined): string | undefined {+ if (typeof value !== 'string') return undefined;+ const trimmed = value.trim();+ return trimmed === '' ? undefined : trimmed.slice(0, 200);+}++export interface RecordLogOptions extends ServerLogMeta {+ level: ServerLogLevel;+ message: string;+ source?: string;+ tsMs?: number;+}++/**+ * The single ingest point. Everything — the console tap, providerLog, the boot+ * preload's live siblings — arrives here, which is what makes the noise filter,+ * the length cap and the id counter impossible to bypass.+ *+ * Returns the stored entry, or null when the line was filtered out.+ */+export function recordLogEntry(options: RecordLogOptions): ServerLogEntry | null {+ const message = truncate(options.message);+ if (message.trim() === '') return null;+ if (NOISE_RE.test(message)) return null;++ ensureSeeded();++ const entry: ServerLogEntry = {+ id: ++lastId,+ tsMs: options.tsMs ?? Date.now(),+ level: options.level,+ message,+ };+ const source = trimField(options.source) ?? deriveSource(message);+ if (source) entry.source = source;+ const provider = trimField(options.provider);+ if (provider) entry.provider = provider;+ const model = trimField(options.model);+ if (model) entry.model = model;+ const event = trimField(options.event);+ if (event) entry.event = event;+ const requestId = trimField(options.requestId);+ if (requestId) entry.requestId = requestId;++ push(entry);+ if (PERSISTED_LEVELS.has(entry.level)) persist(entry);+ return entry;+}++function push(entry: ServerLogEntry): void {+ ring.push(entry);+ if (ring.length > RING_CAPACITY) ring.splice(0, ring.length - RING_CAPACITY);+}++/**+ * Called by the console wrapper in lib/log-redaction.ts, AFTER redaction. Never+ * throws: a log line must not be able to fail the call that emitted it.+ */+export function recordConsoleLine(level: ServerLogLevel, args: readonly unknown[]): void {+ if (mirroring) return;+ try {+ recordLogEntry({ level, message: formatLogArgs(args) });+ } catch {+ // Swallowed on purpose — see above.+ }+}++/**+ * Emit a structured operational event: recorded with its provider/model/event+ * metadata for the dashboard AND mirrored to stdout, so nothing an operator+ * needs exists only behind a login.+ *+ * The message is passed through redactSecrets() here because the recording+ * bypasses the console wrapper; the stdout mirror goes through the wrapped+ * console (already-redacted text is idempotent under a second pass) so that a+ * restored console — tests, an embedder — still sees the line.+ */+export function providerLog(+ level: ServerLogLevel,+ message: string,+ meta: ServerLogMeta = {},+): void {+ const redacted = redactSecrets(message);+ try {+ recordLogEntry({ level, message: redacted, ...meta });+ } catch {+ // Never let the store break the caller's control flow.+ }++ mirroring = true;+ try {+ const write =+ level === 'error' ? console.error+ : level === 'warn' ? console.warn+ : level === 'debug' ? console.debug+ : level === 'trace' ? console.trace+ : console.log;+ write(redacted);+ } catch {+ // A console that throws is not this module's problem to solve.+ } finally {+ mirroring = false;+ }+}++// ── Persistence ──────────────────────────────────────────────────────────────++interface ServerLogRow {+ id: number;+ level: string;+ source: string | null;+ provider: string | null;+ model: string | null;+ event: string | null;+ request_id: string | null;+ message: string;+ created_at_ms: number;+}++function tryDb(): Db | null {+ try {+ return getDb();+ } catch {+ // Pre-initDb boot lines, and tests that never open a database.+ return null;+ }+}++function hasTable(db: Db): boolean {+ try {+ return !!db+ .prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='server_logs'")+ .get();+ } catch {+ return false;+ }+}++function persist(entry: ServerLogEntry): void {+ if (persisting) return;+ persisting = true;+ try {+ const db = tryDb();+ if (!db) return;+ db.prepare(`+ INSERT INTO server_logs (id, level, source, provider, model, event, request_id, message, created_at_ms)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)+ `).run(+ entry.id,+ entry.level,+ entry.source ?? null,+ entry.provider ?? null,+ entry.model ?? null,+ entry.event ?? null,+ entry.requestId ?? null,+ entry.message,+ entry.tsMs,+ );+ } catch {+ // Best effort by design: the table may not exist yet (a boot line racing+ // the migration), the DB may be locked, the disk may be full. None of that+ // is worth losing the live line — or crashing the caller — over.+ } finally {+ persisting = false;+ }+}++function rowToEntry(row: ServerLogRow): ServerLogEntry {+ const entry: ServerLogEntry = {+ id: row.id,+ tsMs: row.created_at_ms,+ level: (LOG_LEVELS as readonly string[]).includes(row.level)+ ? (row.level as ServerLogLevel)+ : 'error',+ message: row.message,+ };+ if (row.source) entry.source = row.source;+ if (row.provider) entry.provider = row.provider;+ if (row.model) entry.model = row.model;+ if (row.event) entry.event = row.event;+ if (row.request_id) entry.requestId = row.request_id;+ return entry;+}++/**+ * Seed the id counter and preload recent history. Idempotent, and safe to call+ * before the database exists — it simply stays unseeded and tries again on the+ * next line, which is what covers the handful of boot logs emitted between+ * installLogRedaction() and initDb().+ *+ * Lines already buffered when the database appears keep their order but are+ * re-stamped ABOVE the persisted maximum, because ids have to be unique across+ * both tiers and a pre-DB line was numbered from a counter that started at zero.+ */+function ensureSeeded(): void {+ if (seeded || seeding) return;+ // Same reasoning as `persisting`: the two probes below touch the DB layer,+ // which can log, and that log comes straight back into recordLogEntry.+ seeding = true;+ try {+ seedNow();+ } finally {+ seeding = false;+ }+}++function seedNow(): void {+ const db = tryDb();+ if (!db || !hasTable(db)) return;+ seeded = true;++ try {+ const pending = ring.splice(0, ring.length);+ const max = db.prepare('SELECT MAX(id) AS maxId FROM server_logs').get() as+ | { maxId: number | null }+ | undefined;+ lastId = Math.max(lastId, max?.maxId ?? 0);++ const rows = db.prepare(`+ SELECT id, level, source, provider, model, event, request_id, message, created_at_ms+ FROM server_logs+ ORDER BY created_at_ms DESC, id DESC+ LIMIT ?+ `).all(PRELOAD_LIMIT) as ServerLogRow[];+ // Read newest-first so LIMIT keeps the recent end; the ring is oldest-first.+ for (const row of rows.reverse()) push(rowToEntry(row));++ for (const entry of pending) {+ entry.id = ++lastId;+ push(entry);+ if (PERSISTED_LEVELS.has(entry.level)) persist(entry);+ }+ } catch {+ // A seed that fails leaves the counter where it was; ids stay increasing+ // within this process, which is the guarantee the cursor actually needs.+ }+}++/** Force the seed/preload now (the route calls this so an idle server still+ * shows persisted history on the first poll). */+export function initServerLogs(): void {+ ensureSeeded();+}++// ── Read side ────────────────────────────────────────────────────────────────++/** Counts over the CURRENT ring, unfiltered, so the UI can render level badges+ * without fetching every entry. Trace is folded into debug: it is a debug-tier+ * detail and the dashboard shows four badges. */+export interface LogLevelCounts {+ debug: number;+ info: number;+ warn: number;+ error: number;+}++export interface LogQuery {+ levels?: ServerLogLevel[];+ q?: string;+ provider?: string;+ sinceId?: number;+ limit?: number;+}++export const DEFAULT_LIMIT = 200;+export const MAX_LIMIT = 500;+export const MIN_LIMIT = 1;++export function clampLimit(raw: number | undefined): number {+ if (raw === undefined || !Number.isFinite(raw)) return DEFAULT_LIMIT;+ return Math.min(MAX_LIMIT, Math.max(MIN_LIMIT, Math.trunc(raw)));+}++/** Highest id handed out so far — what the client sends back as sinceId, even+ * when every entry it would have matched was filtered away. */+export function currentMaxId(): number {+ ensureSeeded();+ return lastId;+}++export function levelCounts(): LogLevelCounts {+ ensureSeeded();+ const counts: LogLevelCounts = { debug: 0, info: 0, warn: 0, error: 0 };+ for (const entry of ring) {+ if (entry.level === 'trace' || entry.level === 'debug') counts.debug++;+ else counts[entry.level]++;+ }+ return counts;+}++function matches(entry: ServerLogEntry, levels: Set<ServerLogLevel> | null, needle: string | null, provider: string | null): boolean {+ if (levels && !levels.has(entry.level)) return false;+ if (provider !== null && entry.provider !== provider) return false;+ if (needle !== null) {+ const haystack = `${entry.message} ${entry.provider ?? ''} ${entry.source ?? ''} ${entry.event ?? ''}`.toLowerCase();+ if (!haystack.includes(needle)) return false;+ }+ return true;+}++/** The newest `limit` entries of the filtered set, oldest→newest. */+export function queryLogs(query: LogQuery = {}): ServerLogEntry[] {+ ensureSeeded();+ const sinceId = query.sinceId;+ // A caller already caught up costs one comparison, not a scan.+ if (sinceId !== undefined && sinceId >= lastId) return [];++ const levels = query.levels && query.levels.length > 0 ? new Set(query.levels) : null;+ const needle = query.q && query.q.trim() !== '' ? query.q.trim().toLowerCase() : null;+ const provider = query.provider && query.provider.trim() !== '' ? query.provider.trim() : null;+ const limit = clampLimit(query.limit);++ const out: ServerLogEntry[] = [];+ // Walk backwards so `limit` bounds the work, not just the result.+ for (let i = ring.length - 1; i >= 0 && out.length < limit; i--) {+ const entry = ring[i]!;+ if (sinceId !== undefined && entry.id <= sinceId) break;+ if (matches(entry, levels, needle, provider)) out.push(entry);+ }+ return out.reverse();+}++/** Empty both tiers. The id counter is deliberately NOT reset: a dashboard tab+ * holding a cursor would otherwise be handed ids it has already seen. */+export function clearLogs(): void {+ ensureSeeded();+ ring = [];+ const db = tryDb();+ if (!db) return;+ try {+ db.prepare('DELETE FROM server_logs').run();+ } catch {+ // Same best-effort contract as persist().+ }+}++/** Test seam: drop every entry AND the counter/seed state, so a suite can+ * simulate a cold start against a database that still holds rows. */+export function resetServerLogsForTest(): void {+ ring = [];+ lastId = 0;+ seeded = false;+ seeding = false;+ mirroring = false;+ persisting = false;+}++/** Test/introspection seam: the ring exactly as stored. */+export function ringSnapshot(): readonly ServerLogEntry[] {+ return ring;+}diff --git a/server/src/routes/logs.ts b/server/src/routes/logs.tsnew file mode 100644index 00000000..8aebcfd9--- /dev/null+++ b/server/src/routes/logs.ts@@ -0,0 +1,106 @@+import { Router } from 'express';+import type { Request, Response } from 'express';+import {+ LOG_LEVELS,+ clearLogs,+ currentMaxId,+ levelCounts,+ queryLogs,+ type ServerLogEntry,+ type ServerLogLevel,+} from '../lib/server-logs.js';++// The dashboard's server-log viewer. Mounted under /api/logs behind the+// dashboard session gate like every other admin route — the unified /v1 key+// opens the inference surface, never this one: these lines name providers,+// models, key ids and failure reasons.+//+// The endpoint is polled, so its contract is built around a cursor rather than+// pagination: the client keeps the `nextId` it was last handed and sends it+// back as `sinceId`, and a caller that is already caught up gets an empty+// `entries` for the cost of one comparison. `nextId` is the store's highest id+// rather than the highest id RETURNED, so a poll whose matches were all+// filtered out still advances the cursor instead of re-scanning the same tail+// forever.++export const logsRouter = Router();++const KNOWN_LEVELS = new Set<string>(LOG_LEVELS);++function badRequest(res: Response, message: string): void {+ res.status(400).json({ error: { message } });+}++/** First value only — Express hands back an array for a repeated param, and a+ * repeated cursor is a client bug, not two cursors. */+function firstParam(value: unknown): string | undefined {+ if (typeof value === 'string') return value;+ if (Array.isArray(value) && typeof value[0] === 'string') return value[0];+ return undefined;+}++function toJson(entry: ServerLogEntry) {+ return {+ id: entry.id,+ ts: new Date(entry.tsMs).toISOString(),+ level: entry.level,+ ...(entry.source ? { source: entry.source } : {}),+ ...(entry.provider ? { provider: entry.provider } : {}),+ ...(entry.model ? { model: entry.model } : {}),+ ...(entry.event ? { event: entry.event } : {}),+ ...(entry.requestId ? { requestId: entry.requestId } : {}),+ message: entry.message,+ };+}++logsRouter.get('/', (req: Request, res: Response) => {+ const rawLevels = firstParam(req.query.levels);+ let levels: ServerLogLevel[] | undefined;+ if (rawLevels !== undefined && rawLevels.trim() !== '') {+ const parts = rawLevels.split(',').map(part => part.trim()).filter(part => part !== '');+ // An unknown level is rejected rather than ignored: silently dropping it+ // would show the user a filtered view that does not match the filter they+ // asked for, which is worse than an error.+ const unknown = parts.find(part => !KNOWN_LEVELS.has(part));+ if (unknown !== undefined) {+ badRequest(res, `Unknown log level '${unknown}'. Known levels: ${LOG_LEVELS.join(', ')}`);+ return;+ }+ levels = parts as ServerLogLevel[];+ }++ const rawSinceId = firstParam(req.query.sinceId);+ let sinceId: number | undefined;+ if (rawSinceId !== undefined && rawSinceId.trim() !== '') {+ const parsed = Number(rawSinceId);+ if (!Number.isInteger(parsed) || parsed < 0) {+ badRequest(res, 'sinceId must be a non-negative integer');+ return;+ }+ sinceId = parsed;+ }++ // Deliberately lenient, unlike the two above: a limit is a preference, and+ // clamping an out-of-range one to the ceiling is what the caller wanted.+ const rawLimit = firstParam(req.query.limit);+ const limit = rawLimit !== undefined && rawLimit.trim() !== '' ? Number(rawLimit) : undefined;++ const entries = queryLogs({+ levels,+ q: firstParam(req.query.q),+ provider: firstParam(req.query.provider),+ sinceId,+ limit,+ });++ res.json({+ entries: entries.map(toJson),+ nextId: currentMaxId(),+ counts: levelCounts(),+ });+});++logsRouter.post('/clear', (_req: Request, res: Response) => {+ clearLogs();+ res.json({ ok: true });+});diff --git a/server/src/services/cooldown-probe.ts b/server/src/services/cooldown-probe.tsindex 868c908e..a9a15091 100644--- a/server/src/services/cooldown-probe.ts+++ b/server/src/services/cooldown-probe.ts@@ -35,6 +35,7 @@ import {type ProbeableCooldown,} from './ratelimit.js';import { probeKeyValidity, type KeyProbeOutcome } from './health.js';+import { providerLog } from '../lib/server-logs.js';// How often the scanner wakes up to look at the cooldown table. Scanning is one// cheap indexed SELECT; actual probes are gated far harder below.@@ -162,9 +163,13 @@ export async function runCooldownProbePass(opts: ProbePassOptions = {}): PromiseclearedCooldowns++;}keyState.delete(keyId);- console.log(+ // Structured so the dashboard log viewer can filter recoveries by+ // provider; providerLog still writes the same line to stdout.+ providerLog(+ 'info',`[CooldownProbe] key ${keyId} validated — cleared ${cooldownsForKey.length} cooldown(s) early ` +`(${cooldownsForKey.map(c => `${c.platform}/${c.modelId}`).join(', ')})`,+ { provider: cooldownsForKey[0]?.platform, event: 'cooldown_recovered' },);} else {// Failed or inconclusive: the bench stays EXACTLY as it was — a probediff --git a/server/src/services/health.ts b/server/src/services/health.tsindex 6a171dfb..64fdec06 100644--- a/server/src/services/health.ts+++ b/server/src/services/health.ts@@ -8,6 +8,7 @@ import { inferQuotaPoolKey } from './provider-quota.js';import { updateDegradationState } from './degradation.js';import type { Scheduler } from '../lib/scheduler.js';import { sanitizeProviderErrorMessage } from '../lib/error-redaction.js';+import { providerLog } from '../lib/server-logs.js';const CHECK_INTERVAL_MS = 5 * 60 * 1000; // 5 minutesconst CONSECUTIVE_FAILURES_TO_DISABLE = 3;@@ -60,13 +61,22 @@ function positiveIntEnv(raw: string | undefined, fallback: number): number {// Track consecutive failures per keyconst failureCount = new Map<number, number>();-function recordInvalidFailure(keyId: number): void {+function recordInvalidFailure(keyId: number, platform?: string): void {const count = (failureCount.get(keyId) ?? 0) + 1;failureCount.set(keyId, count);if (count >= CONSECUTIVE_FAILURES_TO_DISABLE) {getDb().prepare('UPDATE api_keys SET enabled = 0 WHERE id = ?').run(keyId);- console.log(`[Health] Auto-disabled key ${keyId} after ${count} consecutive failures`);+ // providerLog, not console.log: losing a key is the event an operator is+ // most likely to be looking for after the fact, so it goes to the dashboard+ // log viewer (where warn/error survive a restart) as well as to stdout —+ // which providerLog still writes, so nothing here is only visible behind a+ // login. Raised to warn for the same reason.+ providerLog(+ 'warn',+ `[Health] Auto-disabled key ${keyId} after ${count} consecutive failures`,+ { provider: platform, event: 'key_auto_disabled' },+ );}}@@ -108,10 +118,12 @@ export async function checkKeyHealth(keyId: number): Promise<KeyStatus> {if (isValid) {failureCount.delete(keyId);} else {- console.warn(+ providerLog(+ 'warn',`[Health] Key ${keyId} (${row.platform}, base=${row.base_url ?? 'default'}) invalid: ${lastError}`,+ { provider: row.platform, event: 'key_invalid' },);- recordInvalidFailure(keyId);+ recordInvalidFailure(keyId, row.platform);}return status;diff --git a/server/src/services/model-retirement.ts b/server/src/services/model-retirement.tsindex 434f9ce4..f9b34f29 100644--- a/server/src/services/model-retirement.ts+++ b/server/src/services/model-retirement.ts@@ -18,6 +18,7 @@ import { modelRetirementSignal } from '../lib/error-classify.js';import { summarizeAttemptError } from '../lib/error-redaction.js';import { isCatalogManagedModel, retireCatalogModelUpstream } from './model-state.js';import { modelStatsKey } from '../lib/endpoint-scope.js';+import { providerLog } from '../lib/server-logs.js';/** How many DISTINCT requests must report a 'probable' signal before acting. */export const RETIREMENT_CONFIRMATIONS_REQUIRED = 2;@@ -86,8 +87,13 @@ export function noteModelRetirementSignal(if (!row || !isCatalogManagedModel(row)) return false;if (!retireCatalogModelUpstream(db, row.id, row.platform, row.model_id, reason)) return false;observations.delete(key);- console.log(+ // Retiring a model changes routing permanently, so it is a warn (which the+ // dashboard viewer persists across restarts) carrying the platform/model it+ // acted on. Still printed to stdout by providerLog.+ providerLog(+ 'warn',`[ModelRetirement] ${row.platform}/${row.model_id} disabled — upstream reports it retired: ${reason}`,+ { provider: row.platform, model: row.model_id, event: 'model_retired' },);return true;} catch (dbErr: any) {diff --git a/server/src/services/request-retention.ts b/server/src/services/request-retention.tsindex 1b7c8d84..114f3d51 100644--- a/server/src/services/request-retention.ts+++ b/server/src/services/request-retention.ts@@ -8,6 +8,12 @@ const PRUNE_INTERVAL_MS = 60_000;// ~720 rows for a 30d max UI range. See db/migrations/.../request_aggregates.ts.const HOURLY_RETENTION_DAYS = 30;const HOURLY_PRUNE_INTERVAL_MS = 24 * 60 * 60 * 1000;+// Persisted server_logs (warn/error only — see the migration). Much shorter+// than the 90d analytics window: a week is well past the point where anyone is+// still debugging last Tuesday's provider outage, and unlike `requests` these+// rows carry no aggregate that would silently change if they were pruned.+const DEFAULT_SERVER_LOGS_RETENTION_DAYS = 7;+const DEFAULT_SERVER_LOGS_MAX_ROWS = 50_000;type RetentionDb = ReturnType<typeof getDb>;@@ -39,6 +45,62 @@ export function getRequestAnalyticsRetentionConfig(): RequestAnalyticsRetentionC};}+export interface ServerLogRetentionConfig {+ retentionDays: number;+ maxRows: number;+}++/** Both knobs env-tunable, 0 on either disables that half. Same convention and+ * same parser as the analytics pair above. */+export function getServerLogRetentionConfig(): ServerLogRetentionConfig {+ return {+ retentionDays: readNonNegativeInt('SERVER_LOGS_RETENTION_DAYS', DEFAULT_SERVER_LOGS_RETENTION_DAYS),+ maxRows: readNonNegativeInt('SERVER_LOGS_MAX_ROWS', DEFAULT_SERVER_LOGS_MAX_ROWS),+ };+}++/**+ * Age- and count-bound the persisted warn/error log rows.+ *+ * Folded into the existing prune pass rather than given a timer of its own: a+ * second interval would be a second thing to start, stop, test and leak in+ * embedders, for a table that grows far slower than `requests` does.+ *+ * Guarded against the table being absent, exactly like the hourly aggregate+ * below — tests that open a DB before migrations run must not crash the prune+ * loop. Rows are deleted by created_at_ms, never by id: the id space is shared+ * with the in-memory ring and is not a timestamp.+ */+export function pruneServerLogs(db: RetentionDb, nowMs: number): number {+ const hasTable = !!db+ .prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='server_logs'")+ .get();+ if (!hasTable) return 0;++ const { retentionDays, maxRows } = getServerLogRetentionConfig();+ let deleted = 0;++ if (retentionDays > 0) {+ deleted += db+ .prepare('DELETE FROM server_logs WHERE created_at_ms < ?')+ .run(nowMs - retentionDays * DAY_MS).changes;+ }++ if (maxRows > 0) {+ deleted += db.prepare(`+ DELETE FROM server_logs+ WHERE id IN (+ SELECT id+ FROM server_logs+ ORDER BY created_at_ms DESC, id DESC+ LIMIT -1 OFFSET ?+ )+ `).run(maxRows).changes;+ }++ return deleted;+}+export function pruneRequestAnalytics(options: {db?: RetentionDb;force?: boolean;@@ -73,6 +135,9 @@ export function pruneRequestAnalytics(options: {`).run(maxRows).changes;}+ // Persisted server logs, on the same 60s gate as the requests prune above.+ deleted += pruneServerLogs(db, nowMs);+// Hourly aggregate prune (gated once per day). The UI's widest window is// 30d, so we keep at most 30 days of hourly buckets (~720 rows). The table// is the source of truth for analytics totals — never prune more aggressively