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
+5 -4
View File
@@ -68,7 +68,7 @@ apps/web/ # SvelteKit + TypeScript + @sveltejs/adapter-verc
```txt
apps/eval/
src/*.ts # run, runner, report, review, report-html (из .mjs)
src/*.ts # run, runner, report, review (из .mjs)
lib/mcpClient.ts # (из lib/mcpClient.mjs)
lib/ollama.ts # (из lib/ollama.mjs)
tsconfig.json
@@ -100,7 +100,6 @@ apps/eval/
```bash
node src/run.mjs
node src/review.mjs
node src/report-html.mjs
```
Стало (TS): компиляция не требуется для dev — запуск через `tsx`:
@@ -109,9 +108,11 @@ node src/report-html.mjs
# apps/eval
tsx src/run.ts
tsx src/review.ts
tsx src/report-html.ts
```
> Локальная генерация статического `report.html` (`report-html`) **убрана**: `/reports` на
> сайте рендерит те же данные из `report.json` через Svelte-компоненты на общих типах.
Скрипты в `apps/eval/package.json` и корневом `package.json` (`eval:*`) обновляются на `tsx`.
Добавляется:
@@ -154,7 +155,7 @@ tsx src/report-html.ts
- `/` — заглушка «скоро» (дизайн позже);
- `/mcp` — описание + FAQ + README (перенести текст из старой `page.tsx`);
- `/reports``load` из `static/report.json` через `lib/reports.ts` на общих типах;
рендер карточек/таблиц переиспользует логику и стили из `report-html.mjs`.
рендер карточек/таблиц — Svelte-компоненты (визуальный стиль перенесён из прежнего `report-html.mjs`).
### Шаг 6 — Данные