feat: add sveltekit pages, generate reports

This commit is contained in:
2026-09-04 18:02:28 +05:00
parent 20bd9cfe88
commit a643e6e4a3
15 changed files with 2675 additions and 411 deletions
+14 -4
View File
@@ -17,6 +17,20 @@ export const SCENARIO_NAMES: readonly ScenarioName[] = [
"mentor",
];
export const SCENARIO_LABELS: Record<ScenarioName, string> = {
control: "Без утки (контроль)",
thinking: "Думать вслух",
blind: "Слепая утка",
mentor: "Утка-помощник",
};
export const SCENARIO_DESCS: Record<ScenarioName, string> = {
control: "Модель решает задачу напрямую, без инструментов.",
thinking: "Модель выписывает рассуждения вслух, без дука.",
blind: "Модель объясняет подход коллеге, вызывает quack, не зная заранее ответ.",
mentor: "Модель работает в паре, зная, что ответ будет только «quack».",
};
// ── Per-task evaluation row ─────────────────────────────
export interface PerTaskRow {
@@ -52,13 +66,9 @@ export interface ScenarioSummary {
// ── Per-model report ────────────────────────────────────
export interface ModelReport {
generatedAt: string;
model: string;
mcpUrl: string;
scenarios: Record<ScenarioName, ScenarioSummary>;
prompts: Record<ScenarioName, string>;
perTask: PerTaskRow[];
meta: Record<string, unknown>;
}
// ── Aggregate ───────────────────────────────────────────