From 1e41d35e8800400835a0e6570bae29b1da2d89c1 Mon Sep 17 00:00:00 2001 From: Jesse Zhang <101612750+Nagi-ovo@users.noreply.github.com> Date: Tue, 9 Jun 2026 22:53:35 +0100 Subject: [PATCH] Move to bench.nagi.fun with simplified URL scheme - Vite base '/' and root favicon for the custom domain - Artifact paths normalized to outputs//. (pelican SVG renamed); RUNS now derives the path by convention, with an optional file override - Deep links: # anchors a case, #: also preselects the model tab; tab clicks replaceState the hash so the current view is always shareable - README documents the URL scheme and the legacy github.io 301s Co-Authored-By: Claude Fable 5 --- README.md | 29 ++++++++++++++----- ...ing_by_the_sea.svg => pelican-cycling.svg} | 0 2 files changed, 21 insertions(+), 8 deletions(-) rename outputs/claude-fable-5/{pelican_cycling_by_the_sea.svg => pelican-cycling.svg} (100%) diff --git a/README.md b/README.md index 41e0083..8362125 100644 --- a/README.md +++ b/README.md @@ -9,28 +9,41 @@ One-shot LLM eval cases by NAGI STUDIO: same prompt, different models, one attem ## 结构 / Structure ``` -outputs// 模型产出原文件(HTML / SVG),按模型分目录 -site/ 展示站点(Vite + React + Tailwind v4 + GSAP,bun 驱动) -site/src/data/cases.ts 案例定义:双语提示词、模型列表、产出文件映射 -.github/workflows/deploy.yml GitHub Pages 自动部署 +outputs//. 模型产出原文件(HTML / SVG),文件名 = 案例 id +site/ 展示站点(Vite + React + Tailwind v4 + GSAP,bun 驱动) +site/src/data/cases.ts 案例定义:双语提示词、模型列表、运行备注 +.github/workflows/deploy.yml GitHub Pages 自动部署 ``` +## URL 规则 / URL scheme + +| URL | 含义 / Meaning | +| --- | --- | +| `https://bench.nagi.fun/` | 站点首页 / Home | +| `https://bench.nagi.fun/#` | 定位到某个案例 / Anchor to a case (e.g. `#mythos-craft`) | +| `https://bench.nagi.fun/#:` | 定位案例并选中模型 / Case + preselected model tab | +| `https://bench.nagi.fun/outputs//.` | 产物直链 / Raw artifact | + +切换模型标签时地址栏自动更新(`replaceState`),当前视图随时可直接分享。旧域名链接(`https://nagi-studio.github.io/nagi-bench/*`)由 GitHub Pages 自动 301 重定向到 `https://bench.nagi.fun/*`,路径保留。 + +Switching a model tab updates the address bar in place, so the current view is always shareable. Legacy `nagi-studio.github.io/nagi-bench/*` links are 301-redirected by GitHub Pages to `bench.nagi.fun/*` with the path preserved. + ## 本地开发 / Development ```bash cd site bun install -bun run dev # 同步 outputs/ 并启动 http://localhost:5173/nagi-bench/ +bun run dev # 同步 outputs/ 并启动 http://localhost:5173/ bun run build # 类型检查 + 产物构建(输出到 site/dist) ``` ## 添加案例或模型 / Adding a case or model -1. 把产出文件放进 `outputs//`。 +1. 把产出文件放进 `outputs//`,命名为 `.`(如 `mythos-craft.html`)。 2. 在 `site/src/data/cases.ts` 里登记: - 新模型:加入 `MODELS`(`status: 'ran' | 'pending'`)。 - 新案例:加入 `CASES`(中英双语 `title` / `tagline` / `prompt`)。 - - 产出映射:在 `OUTPUTS` 里把案例 id 对应到模型 id 与文件路径。 + - 运行记录:在 `RUNS` 里登记案例 id 对应的模型 id(可附双语 `note` 运行备注;文件名不符合约定时用 `file` 覆盖)。 3. 推送到 `main`,GitHub Actions 自动构建并部署。 -Drop the artifact into `outputs//`, register it in `site/src/data/cases.ts` (model in `MODELS`, case in `CASES` with bilingual prompts, file path in `OUTPUTS`), then push to `main` — GitHub Actions deploys automatically. +Drop the artifact into `outputs//` named `.`, register it in `site/src/data/cases.ts` (model in `MODELS`, case in `CASES` with bilingual prompts, run entry in `RUNS` with an optional per-model `note`), then push to `main` — GitHub Actions deploys automatically. diff --git a/outputs/claude-fable-5/pelican_cycling_by_the_sea.svg b/outputs/claude-fable-5/pelican-cycling.svg similarity index 100% rename from outputs/claude-fable-5/pelican_cycling_by_the_sea.svg rename to outputs/claude-fable-5/pelican-cycling.svg