Peach: Local-first video metadata scraper and media manager.
test(web): 按 ADR-0031 接入设计系统 lint、BoardUI 哈希门槛与设计决定断言
longmeidaoe4b37533856a
diff --git a/.claude/skills/peach-web-ui/SKILL.md b/.claude/skills/peach-web-ui/SKILL.mdindex 6baa057ca..bc4d33a64 100644--- a/.claude/skills/peach-web-ui/SKILL.md+++ b/.claude/skills/peach-web-ui/SKILL.md@@ -84,7 +84,7 @@ description: 在新增、修改或复核 Peach 页面、控件、提示、错误1. 为语义、DOM、ARIA、复用模块和响应式规则补页面源测试;数据语义变更另补 API/数据层测试。2. Windows 从隔离 worktree 根运行 `& .\scripts\test.ps1`,默认 `auto`;按影响域补测,规则见 `peach-worktree`。-3. 桌面与 390×844 的通用不变量(无横向溢出、无越出视口的元素、等待态会结束、控制台无错误、无失败请求)由 `web` 域的 `tests/test_web_e2e.py` 执行,不再逐页手测;新路由加进 `frontend/e2e/smoke.test.ts` 的 `ROUTES`,分区 tab 由用例逐格切过去再测。用例靠 `aria-busy` 与 `data-skeleton` 判断页面稳定,React 子树也要写:BoardUI 组件不带加载态,由 Peach 包装件补上。浏览器里发现的可判定问题(几何、computed style、状态切换),先在 `frontend/e2e/` 写出失败用例再修。+3. 桌面与 390×844 的通用不变量(无横向溢出、无越出视口的元素、等待态会结束、控制台无错误、无失败请求)由 `web` 域的 `tests/test_web_e2e.py` 执行,不再逐页手测;新路由加进 `frontend/e2e/smoke.test.ts` 的 `ROUTES`,分区 tab 由用例逐格切过去再测。用例靠 `aria-busy` 与 `data-skeleton` 判断页面稳定,React 子树也要写:BoardUI 组件不带加载态,由 Peach 包装件补上。浏览器里发现的可判定问题(几何、computed style、状态切换),先在 `frontend/e2e/` 写出失败用例再修。页面迁到 React 时,旧源码断言按 ADR-0031 分三类再删:设计决定进 `frontend/e2e/design.test.ts` 或 lint,行为进 vitest,布局与运行期进冒烟。4. Browser 面板只留给用例表达不了的:新布局首次成形、对齐外部参考、hover/focus 与观感判断。托盘服务发的是主检出的 `web/`:从 worktree 根另起实例,`python -m peach serve --host 127.0.0.1 --port 8099 --no-mdns --no-ledger-sync`(`PYTHONPATH=<worktree>/src`),验完停掉。点第一下之前先把 `peach.settings.v1` 的 `detailAutoplay` 置 false:用户就在这台机器旁,点进详情会出声。5. 接口字段、sidecar 取值和锚点算术走 Python 严格 HTTPS(项目 CA 加 `ProxyHandler({})`)核对,不进浏览器。浏览器只留给布局后才成立的事实:`getComputedStyle`、真实裁切几何、hover/focus 态和实际像素;用读源码顶替这几样是降精度。6. 一轮验收要读的页面状态先列全,再合成一次 `javascript_tool` 调用取回。私有网络主机(`.local` 与 `10.`/`172.16-31.`/`192.168.` 段的局域网 IP 归同一类)在桌面应用里只能逐次授权,站点级放行只给只读工具,点击与执行 JS 拿不到常驻许可,每多发一次调用就多一次弹窗。diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 09949dab2..97ef411fa 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -139,6 +139,7 @@ jobs:cache-dependency-path: frontend/package-lock.json- run: npm --prefix frontend ci- run: npm --prefix frontend run typecheck+ - run: npm --prefix frontend run lint- run: npm --prefix frontend test- run: npm --prefix frontend run build# 产物提交进 Git,因为运行时和打包都没有 Node(ADR-0022)。一旦源码改了却忘了diff --git a/AGENTS.md b/AGENTS.mdindex 670f42721..54d18af61 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -57,7 +57,7 @@- 保留真实媒体、ledger 行、行为历史、凭据、网络与防火墙状态及无关长跑任务。- 编辑前核对 `git status`;涉及服务、端口或重启时核对监听与进程归属。生产结论须有实际切换与核验证据。- Peach 是单人自托管应用;替代实现验证通过后移除无用代码和兼容层,历史由 Git 保存。-- 架构边界:模块化单体与磁盘分界(ADR-0017)、Stash 适配器关闭(0021)、前端迁入 `frontend/`(0022)、分发阶段(0023);改变决策须新增 ADR。+- 架构边界:模块化单体与磁盘分界(ADR-0017)、Stash 适配器关闭(0021)、前端迁往 React + BoardUI(0031)、分发阶段(0023);改变决策须新增 ADR。- 用户确认馆藏仅含自愿参与的成年人;`萝莉`、`学生`、`洛丽塔`、`制服`、`泄露`、`流出` 等标签是角色、类型或营销用语,不能单凭标签推断年龄或同意状况而跳过编目。若直接文件证据矛盾,停止并报告证据。- 同次改动按需更新:运行事实进 `docs/STATUS.md`,待办进 `docs/PRODUCT_BACKLOG.md`,长期知识进 `docs/HANDOFF.md` / `docs/REUSE.md`,流程进技能,决策进 ADR。不建带日期的交接文档,不让用户转述智能体间的实现细节。- 复用优先:新增、恢复或重写实现按 `peach-reuse-first` 依次查当前树、`docs/REUSE.md`、Git 历史与成熟外部实现,旧文件名不存在不等于能力缺失;对齐外部产品先按 `peach-reference-evidence` 取到可复现证据,取不到写 `未取得`,不拿猜测冒充复现。diff --git a/README.en.md b/README.en.mdindex e514266ef..5e50c72f5 100644--- a/README.en.md+++ b/README.en.md@@ -121,13 +121,13 @@ The repository distributes no media, covers, thumbnails, metadata or site datase## Development and contributions-The backend is a FastAPI modular monolith with SQLite as the truth store. The frontend migrates page by page to Vite, TypeScript and Preact islands.+The backend is a FastAPI modular monolith with SQLite as the truth store. The frontend migrates page by page to React, Tailwind v4 and BoardUI source; the existing Preact islands are a transitional layer.Python serves existing pages and committed build output from `web/`; runtime requires neither Node nor a CDN.| Path | Contents || --- | --- || `src/peach/` | API, media, ledger and source adapters |-| `frontend/` | TypeScript, Preact islands and Vite build |+| `frontend/` | TypeScript, React with BoardUI source, transitional Preact islands, Vite build || `web/` | Pages, styles, self-hosted dependencies and `web/dist/` output || `migrations/` | Versioned SQLite migrations || `scripts/`, `tests/` | Development entry points, maintenance scripts and isolated tests |diff --git a/README.md b/README.mdindex 64e9d3fb0..23f00d28a 100644--- a/README.md+++ b/README.md@@ -120,13 +120,13 @@ uv sync --locked --python 3.14 --extra macos## 开发与贡献-后端是 FastAPI 模块化单体,SQLite ledger 是真相源。前端以 Vite + TypeScript + Preact island 逐页迁移;+后端是 FastAPI 模块化单体,SQLite ledger 是真相源。前端以 React + Tailwind v4 + BoardUI 源码逐页迁移,现有 Preact island 是过渡层;`web/` 提供现有页面与已提交的构建产物,运行时由 Python 直接服务,不依赖 Node 或 CDN。| 路径 | 内容 || --- | --- || `src/peach/` | API、媒体、ledger 与来源适配器 |-| `frontend/` | TypeScript、Preact island 与 Vite 构建 |+| `frontend/` | TypeScript、React 与 BoardUI 源码、过渡期的 Preact island、Vite 构建 || `web/` | 页面、样式、自托管依赖与 `web/dist/` 产物 || `migrations/` | SQLite 版本迁移 || `scripts/`、`tests/` | 开发入口、维护脚本与隔离测试 |diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 2492a8c1d..9b17b9859 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -7,10 +7,10 @@ Peach 是逻辑前后端分离、部署仍为一个进程的 FastAPI 模块化## 核心边界1. **Ledger**:资产、行为、来源和知识的唯一真相源。SQLite 适合当前单用户规模。硬盘上的那份是权威副本,两台机器各持本地工作副本,由 `peach.sync` 做单写者复制:拉取、回写、冲突转只读,**不做多主合并**。-2. **API / 应用层**:FastAPI 承载页面、JSON、媒体响应和写入边界。`api.py` 只是组装根,路由按 `routes_auth`、`routes_pages`、`routes_media`、`routes_api` 四个 APIRouter 挂载,`/api/{route}` 由 `web_router` 的 handler 表分派到 `web_catalog`、`web_entity`、`web_stats`、`web_batch`、`web_follow` 等域模块;前端新页面按 ADR-0022 以 Preact island 形式在 `frontend/` 实现,产物经 `/dist/` 提供。+2. **API / 应用层**:FastAPI 承载页面、JSON、媒体响应和写入边界。`api.py` 只是组装根,路由按 `routes_auth`、`routes_pages`、`routes_media`、`routes_api` 四个 APIRouter 挂载,`/api/{route}` 由 `web_router` 的 handler 表分派到 `web_catalog`、`web_entity`、`web_stats`、`web_batch`、`web_follow` 等域模块;前端新页面按 ADR-0031 以 React 子树在 `frontend/src/react/` 实现,产物经 `/dist/` 提供。3. **平台层**:`peach.platform` 是账本路径与本机挂载点之间唯一的翻译层。账本只用 Windows 盘符记录路径,读取时按「来源的声明根 → 本机挂载点」翻译(来源即 `asset.location`,两侧由设置文件的 `[media.locations]` 与 `[media.mounts]` 给出,`PEACH_MEDIA_MOUNTS` 可临时覆盖);没有挂载点的来源落到不可达根,整体按脱盘处理。CloudDrive 在 Windows 是盘符、在 macOS 是 macFUSE 挂载点,差异全部收敛在这里。4. **Media Engine**:FastAPI 只持有一个 `MediaEngine`,本地文件与挂载网盘都是原生后端;Stash 适配层已删除(ADR-0021)。远端 MP4 默认走标准 Range,`stream-plan` 只在显式开启时给出按时间生成的 HLS 片段(ADR-0016:HEVC-in-TS 会静默黑屏,所以 HLS 是例外而不是默认)。-5. **Web**:单页、移动端优先。按 ADR-0022 从无构建步骤的 `web/` 逐岛迁往 `frontend/` 的 Vite + TypeScript + Preact,构建产物提交进 `web/dist/`;strangler 是唯一路径,不做整站重写。+5. **Web**:单页、移动端优先。按 ADR-0031 从无构建步骤的 `web/` 逐页迁往 `frontend/` 的 React + Tailwind v4 + BoardUI 源码,构建产物提交进 `web/dist/`;strangler 是唯一路径,不做整站重写。6. **AI Provider**:`InferenceProvider` 与 `AgentProvider` 分离。AI 只产出带来源和置信度的候选。7. **Profile**:默认单用户,数据模型预留 user/profile,不引入完整账号体系。8. **追更来源**:RSS/Atom 等成熟协议先归一化为只读候选;原始证据、复核和 ledger 写入分层。diff --git a/docs/FRONTEND.md b/docs/FRONTEND.mdindex cd985db2d..6f43d1f54 100644--- a/docs/FRONTEND.md+++ b/docs/FRONTEND.md@@ -1,9 +1,9 @@# 前端 island 层Peach 的界面正在从 `web/app.js`(无构建、6.7k 行的原生 ES module)逐页迁到-Vite + TypeScript + Preact。迁移方式是 strangler:**遗留路由继续拥有外壳和每一个页面**,-一页被重写成 island 之后,遗留入口只负责铺骨架、把容器和自己独有的助手交出去。-为什么这么做、以及不做整体重写的理由见 `docs/adr/0022-frontend-vite-preact-strangler.md`。+React + Tailwind v4 + BoardUI 源码,已迁出的 Preact island 是过渡层。迁移方式是 strangler:+**遗留路由继续拥有外壳和每一个页面**,一页被重写之后,遗留入口只负责铺骨架、把容器和自己独有的助手交出去。+为什么这么做、以及不做整体重写的理由见 `docs/adr/0031-frontend-react-boardui-tailwind.md`。只有一条不可变的约束:**运行时没有 Node**。Python 服务、PyInstaller 包和 macOS 上的检出都直接读 `web/`,所以构建产物提交进 Git,不用任何 CDN。@@ -119,6 +119,14 @@ vitest 转译时只剥掉类型、不做检查,所以 `web` 域另跑一遍 `n`playwright-core`、ffmpeg 或 Chrome 时显式跳过。声明根是 Windows 形态,目前只在 Windows 上执行。界面验收里发现的同类问题,先在这里补一条用例再修。+设计决定另有 `frontend/e2e/design.test.ts`,读 `getComputedStyle` 断言用户定过的外观:React 输入框不带旧焦点环、+React 子树读到 BoardUI 的 token 原值、持久警示是状态色块。页面迁到 React 时,旧的源码字符串断言按 ADR-0031+分三类再删:设计决定进这里或 lint,行为进 vitest,布局与运行期进冒烟。++`npm --prefix frontend run lint` 检查 `src/react/` 的设计系统规则,`web` 域与 CI 都跑。`no-restyle` 报在+BoardUI 组件上的间距或外观,处理办法是在组件外面套一层普通元素,不给规则加例外。+`src/react/boardui/` 只加不改,`UPSTREAM.sha256` 记着复制时每个文件的哈希,由 `tests/test_frontend_build.py` 比对。+## 挂载契约```js@@ -236,6 +244,7 @@ vendor 到 `web/vendor/` 的四个包(video.js、swiper、lucide-static、heal| `vitest` | 前端测试运行器。与 Vite 共用同一份配置解析,不必再维护第二套转译 || `happy-dom` | vitest 的 DOM 环境。断言的是真实 DOM 结构,比 jsdom 轻且启动快 || `playwright-core` | `frontend/e2e/` 的浏览器驱动,只驱动本机 Chrome、不下载浏览器。happy-dom 没有布局,横向溢出、等待态卡住这类事实只有真浏览器测得出;不用 `@playwright/test`,用例跑在 `node:test` 上,与 docu.md(`markdown-viewer/markdown-viewer-extension` 的 `test/helpers/browser-render-harness.ts`)同一做法 |+| `oxlint`、`@shadcn/lint` | `npm run lint`:Oxlint 加载 `@shadcn/lint` 的六条规则,只查 `src/react/`、排除 `boardui/`。不用 ESLint,因为 `@typescript-eslint/parser` 的 peer 只到 TypeScript 6.0;`eslint` 作为 `@shadcn/lint` 的 peer 会装进来,不调用 || `react`、`react-dom` | React 子树的渲染层。BoardUI 源码是 React 组件,交互建在 React Aria 上,Preact 的兼容层不在 React Aria 的支持范围内 || `react-aria-components` | BoardUI 输入框与勾选框的交互和无障碍语义:标签关联、键盘操作、`aria-invalid` || `tailwind-merge` | BoardUI 的 `cx()` 合并类名时去掉互相冲突的工具类 |diff --git a/docs/HANDOFF.md b/docs/HANDOFF.mdindex 44526c6e9..47e2532d7 100644--- a/docs/HANDOFF.md+++ b/docs/HANDOFF.md@@ -155,7 +155,7 @@ CloudDrive 见 `docs/CLOUDDRIVE.md`,部署见 `docs/OPERATIONS.md`。- Ledger 拥有真相和行为;服务运行期媒体解析只有文件系统一条路径,ADR-0021 已删 Stash 适配层,Stash 客户端与两个离线导入脚本也已退役,Stash 只剩账本里的溯源数据。- 规范女优、厂牌、标签、创作者进入 `entity`、`entity_external_ref`、`asset_entity`;扁平 `asset_tag` 和 creator/studio 字段只是兼容投影。- FastAPI 与前端保持单体部署,在线来源和 AI 只通过显式适配器进入;AI runtime 与推理 API 的协议边界见 ADR-0003。-- 前端按 ADR-0022 走 strangler 迁移:新逻辑进 `frontend/` 的 Vite + TypeScript + Preact 岛,按岛替换现有页面,不做整站重写;面向陌生人分发的阶段划分见 ADR-0023。+- 前端按 ADR-0031 走 strangler 迁移:新页面进 `frontend/src/react/`(React + Tailwind + BoardUI 源码),逐页替换,不做整站重写;分发阶段见 ADR-0023。- 当前页面、路由、交互与性能实现只写 `docs/STATUS.md`,由 API 和 `tests/test_web_ui.py` 守住;本文件不复制易过期的版本号、像素值和控件清单。- `/taste` 只读合并 Peach 行为与本机私有浏览历史,明确以浏览器记录为主要画像、Peach 内部为辅助证据,两者分别排序,不把「不合口味」自动归因或降权到 Tag。- 查询词里的负号项整体排除,下划线是组合词边界的一部分,不得把 `-ai_generated` 拆成正向 `generated`;模糊时长旧 Tag 只作兼容识别,不进入口味、索引、详情和筛选状态。diff --git a/docs/STATUS.md b/docs/STATUS.mdindex 37670746c..4f04956de 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -24,7 +24,7 @@- 两端各用本机 CA,私钥与凭据不跨机同步;代码走 Git、账本走单写者复制、图片产物走 Syncthing,三条链路互不兜底。本机坐标在 `<数据根>/config.toml`;ADR-0023 第 1~3 阶段已合入并在 Windows 生效。- Windows 真实 ledger 为 `peach-data/database/ledger.db`,2026-09-13 已应用到 `0031`;`asset_subtitle` 195 行(孤立 19),175 部带字幕轨。09-12 修掉 `local` 路径大小写重复,`asset` 80,761 行。- Mac ledger 已授权从共享副本显式拉取并恢复 `in-sync`;`sources` 已迁到内置盘,`archive`、`tools` 仍可指向外置盘。-- 前端按 ADR-0022 以 Preact island 逐岛迁往 `frontend/`(Vite + TypeScript),产物 `web/dist/peach-ui.js` 进 Git、经 `/dist/{name}` 提供,`/quality-goals` 已迁;改前端需 Node 24+,见 `docs/FRONTEND.md`。+- 前端按 ADR-0031 逐页迁往 `frontend/` 的 React + Tailwind + BoardUI 源码,Preact island 是过渡层;产物进 Git、经 `/dist/{name}` 提供;改前端需 Node 24+,见 `docs/FRONTEND.md`。- 本机运行 Python 3.14;`requires-python` 下限 3.12,GitHub Actions 同时测 3.12 与 3.14;Windows FFmpeg/ffprobe 位于 `peach-data/tools/ffmpeg`,macOS 走 PATH。- 发行名 `peach`,目录名 `peach-app`。macOS 落后 master 一组有顺序的操作(待办「待执行的操作」第 30 条),做完之前别重启菜单栏:没有口令的 `peach serve --host 0.0.0.0` 会拒绝启动。- 扫描与采集显示当前项目、动作与等待时长;无进展 120 秒页面预警,单项外部动作(资料 90 秒、封面 240 秒)超预算只跳过该项并计入可重试;「重试未完成项」按原任务失败集合重试。完整问题写入 `state/library-processing-<job_id>.issues.jsonl`,每条带标题与路径,接口按 `job_id` 分页读取;页面把前 20 条与日志地址收在错误提示的折叠里。已部署核对。diff --git a/docs/adr/0022-frontend-vite-preact-strangler.md b/docs/adr/0022-frontend-vite-preact-strangler.mdindex d7deb191a..0895cedbb 100644--- a/docs/adr/0022-frontend-vite-preact-strangler.md+++ b/docs/adr/0022-frontend-vite-preact-strangler.md@@ -1,6 +1,6 @@# ADR-0022:前端改用 Vite + TypeScript + Preact,按页面绞杀式迁移-- 状态:Accepted+- 状态:Superseded by ADR-0031(绞杀式迁移、产物入库、`/dist/` 路由与单一测试入口仍有效)- 日期:2026-09-02- 关系:细化 ADR-0001 的「独立 web 表面」;替代 AGENTS.md 中「不做 React 重写」的字面约束(结论不变:不整体重写);ADR-0014 的 Video.js 保留。diff --git a/docs/adr/0031-frontend-react-boardui-tailwind.md b/docs/adr/0031-frontend-react-boardui-tailwind.mdnew file mode 100644index 000000000..15f094375--- /dev/null+++ b/docs/adr/0031-frontend-react-boardui-tailwind.md@@ -0,0 +1,57 @@+# ADR-0031:前端改用 React + Tailwind v4 + BoardUI 原版源码,继续按页面绞杀式迁移++- 状态:Accepted+- 日期:2026-09-15+- 关系:替代 ADR-0022 的框架与样式选择;沿用它的绞杀式迁移、构建产物入库、`/dist/` 路由与单一测试入口;ADR-0014 的 Video.js 保留。++## 背景++ADR-0022 选了 Preact 加手写 CSS,BoardUI 的外观靠把样式规则抄进 `web/css/` 与 `web/board.css`。抄写没有单一真相:同一个 token 在 BoardUI 与 `board.css` 各有一份定值,浅色中性灰、焦点蓝和跟随系统深色的三档文字色都对不上,界面反复「没对齐」。++BoardUI 通过 shadcn 注册表发布 React + Tailwind v4 源码,交互建在 React Aria 上。React Aria 不在 Preact 兼容层的支持范围内,留在 Preact 里就只能继续抄样式。++2026-09-14 在配置页「访问密码」分区做了试点:BoardUI 源码逐字复制,React 子树由 Preact 岛经 `ReactSlot` 挂载,与旧样式表同页共存。量到的代价与约束:++- `peach-react.js` gzip 110.6 kB,只在挂 React 子树的页面动态加载;`peach-react.css` gzip 11.8 kB,每页加载;+- Tailwind Preflight 必须限定在 `.peach-react` 容器内,工具类不能进层叠层;+- `board.css` 的同名 token 排在后面,React 容器上要按 `theme.css` 原文重新声明;+- 旧的全局 `:focus-visible` 会给 React 输入框多画一圈,必须排除 React 子树。++测试也要换写法。`tests/test_web_ui.py` 639 个用例里有 597 个只读旧前端源码的字符串;页面迁走后,这批断言如果改绑新源码的字符串,等于把「没对齐」从 CSS 挪进测试。++曾评估但不采用的方案:++- 继续 Preact + 手写 CSS:正是反复没对齐的来源。+- Preact + `preact/compat` 跑 BoardUI:React Aria 不支持兼容层。+- 只引入 Tailwind、组件自己写:样式仍是抄的,只是换成类名。+- 整站 React 重写:没有可验收的中间态,违反「替代实现测试通过后才删旧代码」。+- Next.js 等服务端渲染框架:单人自托管没有收益,还让运行时依赖 Node。+- 用 ESLint 承载 `@shadcn/lint`:`@typescript-eslint/parser` 的 peer 只到 TypeScript 6.0,项目用的是 7.0.2。++## 决策++- 新页面与迁移页面用 **React 19 + TypeScript(strict)+ Tailwind v4**,源码在 `frontend/src/react/`,单测用 vitest。+- **BoardUI 源码只加不改**:从注册表逐字复制到 `frontend/src/react/boardui/`,来源与条目哈希记在 `ORIGIN.md`,逐文件 SHA-256 记在 `UPSTREAM.sha256`。Peach 需要不同组合或外观时,在 `src/react/` 下 Peach 自己的目录里组合,差异写进 `ORIGIN.md`。+- **迁移节奏不变**:Preact 岛通过 `ReactSlot` 挂 React 子树,逐页替换,每次一到两个页面、独立分支集成;旧渲染函数、旧 CSS 与旧断言随页面删除,不保留双实现。最后一个 Preact 岛迁完移除 Preact;壳与路由迁完删除 `web/app.js`,`board.css` 里与 BoardUI 同名的 token 一并删除。+- **沿用 ADR-0022**:`npm run build` 的产物提交进 `web/dist/`,运行时不需要 Node;`/dist/{path}` 路由不变;测试入口仍是 `scripts/test.ps1` / `scripts/test.sh` 的 `web` 域;依赖精确锁定,在 `docs/FRONTEND.md` 登记用途。+- **旧断言先分类再删**。页面迁走时,它在 `tests/test_web_ui.py` 等处的源码字符串断言逐条归入三类,去向写进提交说明:+ - 设计决定(用户定过的颜色、状态色块、焦点样式)写成 `frontend/e2e/design.test.ts` 里读 `getComputedStyle` 的断言,或由 lint 规则覆盖;+ - 行为(提交什么、错误写回哪个字段、控件何时可用)写成 vitest;+ - 布局与运行期问题(溢出、等待态、控制台报错)归 `frontend/e2e/smoke.test.ts`。+- **门槛**:+ - `npm run lint` 用 Oxlint 跑 `@shadcn/lint` 的六条规则,只查 `src/react/`、排除 `boardui/`;`web` 域与 CI 都执行。+ - `tests/test_frontend_build.py` 按 `UPSTREAM.sha256` 逐文件比对 `boardui/`。+ - React 子树在请求期间写 `aria-busy`,首屏骨架写 `data-skeleton`,冒烟靠这两个标记判断页面稳定;BoardUI 组件不带加载态,由 Peach 的组合件补上。++## 后果++- 迁移期同一页会有两种外观:未迁移的分区仍是旧写法。+- 每个页面多加载 11.8 kB gzip 的 `peach-react.css`。+- Oxlint 的 JS 插件 API 仍是 alpha,`@shadcn/lint` 只有 0.1.0:两者精确钉版本,升级前先跑 `web` 域。`eslint` 作为 `@shadcn/lint` 的 peer 会装进 `node_modules`,不调用。+- 设计决定的浏览器断言和冒烟一样依赖本机 Chrome,缺 Chrome 时整组显式跳过。+- `tests/test_frontend_build.py` 的 `ReactBundleTests`(Preflight 作用域、样式表顺序、焦点环排除)只在新旧并存期成立,最后一个旧页面迁完时删除。++## 验收门槛++- 每个迁移分支:目标页面在桌面与 390×844 下功能等价;`web` 域与 `full` 全绿(含 tsc、vitest、lint、冒烟与设计决定断言);`web/dist/` 与源码一致;旧断言的去向写进提交说明。+- 迁移完成的定义:`web/app.js` 删除,Preact 移除,`ReactBundleTests` 删除,`tests/test_web_ui.py` 删空,AGENTS.md 与 README 的前端章节只描述 React。diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.jsonnew file mode 100644index 000000000..f8ac57b36--- /dev/null+++ b/frontend/.oxlintrc.json@@ -0,0 +1,24 @@+{+ "$schema": "./node_modules/oxlint/configuration_schema.json",+ "categories": {+ "correctness": "off"+ },+ "jsPlugins": ["@shadcn/lint"],+ "ignorePatterns": ["src/react/boardui/**"],+ "settings": {+ "shadcn": {+ "ui": "@/components",+ "note": "BoardUI 源码在 src/react/boardui/,只加不改;设计规则与例外见 docs/FRONTEND.md。"+ }+ },+ "rules": {+ "shadcn/no-restyle": ["error", { "allow": ["layout"] }],+ "shadcn/no-raw-colors": ["error", {+ "allow": ["text-body-*", "text-caption-*", "text-display-*", "text-headline-*", "text-large-title-*", "text-title-*"]+ }],+ "shadcn/no-arbitrary-values": "error",+ "shadcn/no-inline-styles": "error",+ "shadcn/no-unknown-classes": "error",+ "shadcn/require-static-classes": "error"+ }+}diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.tsnew file mode 100644index 000000000..6db35e0df--- /dev/null+++ b/frontend/e2e/design.test.ts@@ -0,0 +1,97 @@+/* 设计决定按浏览器里的计算值断言,不绑定 CSS 源码的写法。+ *+ * 页面迁到 React 时,旧的源码字符串断言按 ADR-0031 分三类:设计决定落在这里或 lint 规则,+ * 行为落在 vitest,布局与运行期问题归 `smoke.test.ts`。每条用例守一个决定,读的是+ * `getComputedStyle`,类名或样式写法换了照样成立。 */+import assert from 'node:assert/strict';+import { after, before, describe, it } from 'node:test';++import type { Browser, Locator, Page } from 'playwright-core';++import { launch, settle, visit, VIEWPORTS, type Visit } from './harness.ts';++const DESKTOP = VIEWPORTS.find((viewport) => !viewport.mobile)!;++/** 在 `scope` 里解析一个颜色 token:临时挂一个元素读背景色,读完就移除。 */+async function tokenColor(page: Page, scope: string, token: string): Promise<string> {+ return page.evaluate(([selector, name]) => {+ const probe = document.createElement('div');+ probe.style.backgroundColor = `var(${name})`;+ document.querySelector(selector)!.append(probe);+ const value = getComputedStyle(probe).backgroundColor;+ probe.remove();+ return value;+ }, [scope, token] as const);+}++/** 配置页「网络与访问」下的访问密码分区。演示库没有 access.json,分区处于系统口令状态。 */+async function openAccess(browser: Browser): Promise<Visit & { form: Locator }> {+ const opened = await visit(browser, '/configuration', DESKTOP);+ await opened.page.getByRole('tab', { name: '网络与访问' }).click({ timeout: 5_000 });+ await settle(opened.page);+ const form = opened.page.locator('form[aria-label="访问密码"]');+ await form.waitFor({ timeout: 10_000 });+ return { ...opened, form };+}++describe('设计决定', () => {+ let browser: Browser;++ before(async () => {+ browser = await launch();+ });++ after(async () => {+ await browser.close();+ });++ it('聚焦 React 输入框只画 BoardUI 外框,旧样式表的焦点环不进来', { timeout: 60_000 }, async () => {+ const opened = await openAccess(browser);+ try {+ const input = opened.form.locator('#access-password');+ await input.focus();+ const style = await input.evaluate((element) => ({+ outline: getComputedStyle(element).outlineStyle,+ // TextField 经 GroupContext 把外框的 role 设成 presentation。+ ring: getComputedStyle(element.closest('[role="presentation"]')!).boxShadow,+ }));+ assert.equal(style.outline, 'none', '输入框自己画了 outline:旧的全局 :focus-visible 进了 React 子树');+ assert.notEqual(style.ring, 'none', '外框没有聚焦描边');+ assert.deepEqual(opened.problems, []);+ } finally {+ await opened.close();+ }+ });++ it('React 子树读 BoardUI 的 token 原值,不被 board.css 的同名定值盖掉', { timeout: 60_000 }, async () => {+ const opened = await openAccess(browser);+ try {+ const shell = await opened.form.locator('#access-password').evaluate(+ (element) => getComputedStyle(element.closest('[role="presentation"]')!).backgroundColor);+ // BoardUI theme.css 浅色 neutral-200 是 #ebebeb;board.css 在 :root 上给的是 #e5e5e5。+ assert.equal(shell, 'rgb(235, 235, 235)');+ assert.equal(await tokenColor(opened.page, ':root', '--color-background-tertiary-default'), 'rgb(229, 229, 229)');+ assert.deepEqual(opened.problems, []);+ } finally {+ await opened.close();+ }+ });++ it('持久警示是状态色块,不和字段说明共用灰色小字', { timeout: 60_000 }, async () => {+ const opened = await openAccess(browser);+ try {+ await opened.form.getByText('关闭访问密码,允许能连接到 Peach 的设备直接访问').click({ timeout: 5_000 });+ const note = opened.form.locator('[role="note"]');+ await note.waitFor({ timeout: 5_000 });+ const surface = await note.evaluate((element) => getComputedStyle(element).backgroundColor);+ assert.notEqual(surface, 'rgba(0, 0, 0, 0)', '警示没有底色');+ assert.equal(surface, await tokenColor(opened.page, '.peach-react', '--color-status-yellow-background'));+ const ink = await note.evaluate((element) => getComputedStyle(element).color);+ const hint = await opened.form.getByText('保存后立即生效。').evaluate((element) => getComputedStyle(element).color);+ assert.notEqual(ink, hint, '警示文字和字段说明同色');+ assert.deepEqual(opened.problems, []);+ } finally {+ await opened.close();+ }+ });+});diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex 5a799f7ac..f2ecb836b 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -16,11 +16,13 @@"tailwind-merge": "3.7.0"},"devDependencies": {+ "@shadcn/lint": "0.1.0","@tailwindcss/vite": "4.3.3","@types/d3-sankey": "0.12.5","@types/react": "19.3.0","@types/react-dom": "19.3.0","happy-dom": "20.14.0",+ "oxlint": "1.83.0","playwright-core": "1.63.0","tailwindcss": "4.3.3","typescript": "7.0.2",@@ -31,6 +33,245 @@"node": ">=24"}},+ "node_modules/@cacheable/memory": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz",+ "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@cacheable/utils": "^2.5.0",+ "@keyv/bigmap": "^1.3.1",+ "hookified": "^1.15.1",+ "keyv": "^5.6.0"+ }+ },+ "node_modules/@cacheable/utils": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz",+ "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "hashery": "^1.5.1",+ "keyv": "^5.6.0"+ }+ },+ "node_modules/@eslint-community/eslint-utils": {+ "version": "4.10.1",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",+ "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "eslint-visitor-keys": "^3.4.3"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"+ }+ },+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/@eslint-community/regexpp": {+ "version": "4.12.2",+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"+ }+ },+ "node_modules/@eslint/config-array": {+ "version": "0.23.5",+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",+ "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@eslint/object-schema": "^3.0.5",+ "debug": "^4.3.1",+ "minimatch": "^10.2.4"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ }+ },+ "node_modules/@eslint/config-helpers": {+ "version": "0.7.0",+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",+ "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@eslint/core": "^1.2.1"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ }+ },+ "node_modules/@eslint/config-helpers/node_modules/@eslint/core": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",+ "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ }+ },+ "node_modules/@eslint/core": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/object-schema": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",+ "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ }+ },+ "node_modules/@eslint/plugin-kit": {+ "version": "0.7.3",+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz",+ "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@eslint/core": "^1.2.1",+ "levn": "^0.4.1"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ }+ },+ "node_modules/@eslint/plugin-kit/node_modules/@eslint/core": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",+ "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ }+ },+ "node_modules/@humanfs/core": {+ "version": "0.19.2",+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",+ "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@humanfs/types": "^0.15.0"+ },+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "node_modules/@humanfs/node": {+ "version": "0.16.8",+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",+ "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@humanfs/core": "^0.19.2",+ "@humanfs/types": "^0.15.0",+ "@humanwhocodes/retry": "^0.4.0"+ },+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "node_modules/@humanfs/types": {+ "version": "0.15.0",+ "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",+ "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "engines": {+ "node": ">=12.22"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/retry": {+ "version": "0.4.3",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "engines": {+ "node": ">=18.18"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },"node_modules/@internationalized/date": {"version": "3.12.4","resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.12.4.tgz",@@ -40,82 +281,802 @@"@swc/helpers": "^0.5.0"}},- "node_modules/@internationalized/number": {- "version": "3.6.8",- "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.8.tgz",- "integrity": "sha512-8UmMFia46DUt+k97zKd9fKWXcWHR+k8ae3eYzILETuT2KbIvLyOfac7zesw+sJdRAAZ7Q9pM1Mk22aXp2LD0Ig==",- "license": "Apache-2.0",- "dependencies": {- "@swc/helpers": "^0.5.0"+ "node_modules/@internationalized/number": {+ "version": "3.6.8",+ "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.8.tgz",+ "integrity": "sha512-8UmMFia46DUt+k97zKd9fKWXcWHR+k8ae3eYzILETuT2KbIvLyOfac7zesw+sJdRAAZ7Q9pM1Mk22aXp2LD0Ig==",+ "license": "Apache-2.0",+ "dependencies": {+ "@swc/helpers": "^0.5.0"+ }+ },+ "node_modules/@internationalized/string": {+ "version": "3.2.10",+ "resolved": "https://registry.npmjs.org/@internationalized/string/-/string-3.2.10.tgz",+ "integrity": "sha512-PDx6//vHSpRnHfxqMqto11zQvhsaU74O3mKv2F/0eicGZcl9NLjQmGlbHz/LsJh5tLKp4A4L7ZVTzN1/MmMTvA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@swc/helpers": "^0.5.0"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@keyv/bigmap": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz",+ "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "hashery": "^1.4.0",+ "hookified": "^1.15.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "peerDependencies": {+ "keyv": "^5.6.0"+ }+ },+ "node_modules/@keyv/serialize": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz",+ "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/@oxc-parser/binding-android-arm-eabi": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm-eabi/-/binding-android-arm-eabi-0.148.0.tgz",+ "integrity": "sha512-pHASv9g5pASxb7akHERZNSkrEqPhFaUix98o7d9hbTpolnnFWl7UiRrcMhCsV1+iVO4/cJwKsbKRJTFNs2tdBQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-android-arm64": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm64/-/binding-android-arm64-0.148.0.tgz",+ "integrity": "sha512-sg/6Ez0KdAygsu0POELux9wN1Po2CP93WY8eNl4DBKIGprsd4QSHBXOb471Pu9i2OCD5sLkISSb2agZEhVn2Zw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-darwin-arm64": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-arm64/-/binding-darwin-arm64-0.148.0.tgz",+ "integrity": "sha512-yiSJmzGUvCUaJT8X3j40gVcX+ckuHQMuiOtF8DvzTs5+JtB/7XuHFPp4M+vv5u+HlBtDUd4Ks5pyHpWz8mfnkg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-darwin-x64": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-x64/-/binding-darwin-x64-0.148.0.tgz",+ "integrity": "sha512-6ZeklaamrMy4H2JmhvcJg6iip59tYILtuLaILxyAHT3l5FDxnI5ihVievAft5ZmAbqtlWHErOi1OpJK8gy1wcA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-freebsd-x64": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-freebsd-x64/-/binding-freebsd-x64-0.148.0.tgz",+ "integrity": "sha512-vFsPx+a/qFECPnz/H8nC6x6MDvnWscLTCo/5muojEF54ERUq1kdgbvnWo95YnkhjF9sTIcG/uDxQBh1gffaufQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-arm-gnueabihf": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.148.0.tgz",+ "integrity": "sha512-eOr3M+6iGbbxNL4PSS0VtsyQ2eOUxSBh00BqO22SbolDimPSYsBuLr/LCrZBkiqW2BoabhR6V4R8jrRAay7hjg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-arm-musleabihf": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.148.0.tgz",+ "integrity": "sha512-58ZKDw0mQRbCNfrd2IDyV4o8T7enzGERJn41BH2tjrZVGyiKiFzcfDicuB7Zcpb/1xIOrObovr8Dja6lZi8dLw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-arm64-gnu": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.148.0.tgz",+ "integrity": "sha512-Fnu95O4eZ5i++GPvIzBEZ8y4ddTLR+D9paYa8JRaRk6ZK7nHQiWP5xtrhcPQsXqgat1d7sU/d5rbbI0p1FTHSQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-arm64-musl": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.148.0.tgz",+ "integrity": "sha512-3CQy/BMdx7N7H3qrcPxUL+a2CwUZodUcf6oq8iJuNZ9C6Ol1aq3mcWzsgySJ7CHFLvpX21ZDPp1r1X0QLbu/AQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-ppc64-gnu": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.148.0.tgz",+ "integrity": "sha512-9LkaYvfiF8hMOw900csAvkf1oxE8XlmMeGowu5BcastSSwV8mKvKRMNU7HsV+ycyj1dQD8pX5qgOw8ja6SJacg==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-riscv64-gnu": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.148.0.tgz",+ "integrity": "sha512-2GBiM9h26dR4WJfhoMvnFMnFLf7m/kYs4UMqjvrOfQG4BV1nuTJDH22Zc2MQr3INZF7nSKYQ6xlhD3hQ7A6gug==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-riscv64-musl": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.148.0.tgz",+ "integrity": "sha512-uPqZexvKJmEgq4mAu36qe2xTfXZE7oyik1R7KtZ5tl8qKlq1U1fIqTFRUEBZqRGvforoTrGIpatRzcoPKO66RA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-s390x-gnu": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.148.0.tgz",+ "integrity": "sha512-9oUHvnTbp7ZraFsTC8PN6XhdhPSSxZumYvixWl7Smi353gEULvK6yV0sXNVrdFMHQeaDKFCi8TgDhNK7/A+Y+Q==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-x64-gnu": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.148.0.tgz",+ "integrity": "sha512-2qhDSJwKzbSZzF7lDqqk8sr/yXsmwr3PeUa4/nazIF+zFAYz1gVPEfC34GQtGxzJUUmklaYAL63368LEfrMeyw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-linux-x64-musl": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-musl/-/binding-linux-x64-musl-0.148.0.tgz",+ "integrity": "sha512-qQoPDZUFV0bh9xA09XydmkjMBpgc1ukJuhMvzQ9QeVmFaHTS9W5TE5CoLmSl3QQyUP9OuHO3x/WPZTIIZPWR3Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-openharmony-arm64": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-openharmony-arm64/-/binding-openharmony-arm64-0.148.0.tgz",+ "integrity": "sha512-1UGbaQWEXUCLqAmaR5kwRDjx/R4S5LQKZkM9CHmaHkuKhriOF32aRLfS0jCRNE2yGQJLMEA1z9UucbBVqjXnDw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-win32-arm64-msvc": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.148.0.tgz",+ "integrity": "sha512-pWKdzRDNG2+NK4h/V6U/CYERcfYD6u28h5IB/VJVsrZaD3muvE58tUj22lieL5vLZ+XFi1GPv9YXckZbJZ9BLA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-win32-ia32-msvc": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.148.0.tgz",+ "integrity": "sha512-i3p4x+mvwtjcE1J5HM6V7ggsbXiznExN/4MkNyOy3dfXrVV3bnkSfmZxvo6/84qCVX4ShkpNE1SKt9biIF31GQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-parser/binding-win32-x64-msvc": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.148.0.tgz",+ "integrity": "sha512-Ye6vB7VQulghWYkYkECOBYFRVEizz4XyRTUAv+t8BuyurhKU7uD0P9eowL+mKG5Mf8MSYx+DI3Cm8SKZvYG7bQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxc-project/types": {+ "version": "0.147.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.147.0.tgz",+ "integrity": "sha512-IJ3s6ltHLp45S0bh7phkX+gJO7A1Wuz2EaqpAhb8WjqDwbzMiWKHhyyT42tskaWjEYXtHtVCPpnBJVT9+dcRLg==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/Boshen"+ }+ },+ "node_modules/@oxlint/binding-android-arm-eabi": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.83.0.tgz",+ "integrity": "sha512-0yGY24EwsLk5YDe6F+VkmZyRHSwJDALa3nIrPpq7FXmp2lV2d0TzvBCGeZk+wgiULRGr5blhyr4QMp5KCXJUqA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-android-arm64": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm64/-/binding-android-arm64-1.83.0.tgz",+ "integrity": "sha512-hHfJ0vc17A4iUjH5p9BsTUPYbYRNxGpvD2lbu1aBRk54bzNIx9o5TtYF39QPZcV95DagZd+4DEAw2RH3G2ZsMg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-darwin-arm64": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.83.0.tgz",+ "integrity": "sha512-hsOjYjszLb/3zym/TkzUMPAoQlTJcuzSyEPOAyA+skXJIX9M0o+4JfOtqopX/Vf4hSLrJ98j0nvFo23gzk8auQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-darwin-x64": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.83.0.tgz",+ "integrity": "sha512-mjh5oH2EA+wl5yRJYT9K9G61O2zFlpuv+yf2JwZOi0+dq2FnTUtm1h8i+5Ik0fXPWIu/k84I1psZR9aQsLAnyA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-freebsd-x64": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.83.0.tgz",+ "integrity": "sha512-fNHr64/YaO8YssuoDVC8+F4Uk5enR86q5uxfHkQrjAPs1dbAILOrD2uaud+J7MO8Fx774g44ERLD0IGIvZE48w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-linux-arm-gnueabihf": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.83.0.tgz",+ "integrity": "sha512-Qpwy3zzAwMj+8/lyYItHmkSMwbkprFNWTK7jPYDOxSyxEhaSLOWYUTCMkjF334J8/WD0nznCCsoBbIH6hpsuIw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-linux-arm-musleabihf": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.83.0.tgz",+ "integrity": "sha512-s+BirYLFq7JL2k9sP0XI3ZXJ9dYvJ8sX3jLCLoag7tt+zrSHpZxP0jqznfL+Gdgwu7ay0dYgGYJXrQvq3iWloA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-linux-arm64-gnu": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.83.0.tgz",+ "integrity": "sha512-7lihXt3vKr+GIyapNbHrnFHm/biiW30le6Zv/DExbAFPF6YwCQXVFlONPFehxs0CpGO4CBfYPM9rdDT+XMoIlg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-linux-arm64-musl": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.83.0.tgz",+ "integrity": "sha512-q63JalLYVkZiZvls1z3PPUnpmQluOMXp0khqQMznCeAPLGydfNY8JhvuA4WlK57JfrvikU8wB5lPVveqpIXvew==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"}},- "node_modules/@internationalized/string": {- "version": "3.2.10",- "resolved": "https://registry.npmjs.org/@internationalized/string/-/string-3.2.10.tgz",- "integrity": "sha512-PDx6//vHSpRnHfxqMqto11zQvhsaU74O3mKv2F/0eicGZcl9NLjQmGlbHz/LsJh5tLKp4A4L7ZVTzN1/MmMTvA==",- "license": "Apache-2.0",- "dependencies": {- "@swc/helpers": "^0.5.0"+ "node_modules/@oxlint/binding-linux-ppc64-gnu": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.83.0.tgz",+ "integrity": "sha512-krQmDF+dRbxvdqVPV88ZuOoPPu8X5BuqDA8Hd+qcS4YMRQCb+nexA57DazgGsc/rGdKBe3QmV0mnv0bdpW/p5g==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"}},- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.13",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "node_modules/@oxlint/binding-linux-riscv64-gnu": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.83.0.tgz",+ "integrity": "sha512-MmOl8Y6txEAXZU1RG8Rr264jQ6D7VPmqFsU/45x/FeWsGe32hklTqGrLE6UxHzp5Rjt0wP+20tY8YXKgSFB3mw==",+ "cpu": [+ "riscv64"+ ],"dev": true,+ "libc": [+ "glibc"+ ],"license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"}},- "node_modules/@jridgewell/remapping": {- "version": "2.3.5",- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "node_modules/@oxlint/binding-linux-riscv64-musl": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.83.0.tgz",+ "integrity": "sha512-u1rMymh0W3JZkq370kzQsYPULGWqhE09pZRqnZvUSoYaI9pVO5yVX+iYIslmWuEgwuzH9YAaOsScJiobWCHoOw==",+ "cpu": [+ "riscv64"+ ],"dev": true,+ "libc": [+ "musl"+ ],"license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"}},- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "node_modules/@oxlint/binding-linux-s390x-gnu": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.83.0.tgz",+ "integrity": "sha512-y0zK3HNwGysu7rqtE+BQG/d0bx5gh/KwlOtghN8oWeK1KcWzeaLqtZrbm8owqdma1lFyrce/hTO5ismuNu+INQ==",+ "cpu": [+ "s390x"+ ],"dev": true,+ "libc": [+ "glibc"+ ],"license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.0.0"+ "node": "^20.19.0 || >=22.12.0"}},- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",- "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",+ "node_modules/@oxlint/binding-linux-x64-gnu": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.83.0.tgz",+ "integrity": "sha512-rS5gM0NgD7ngmuJmbIehsidtrOwKkLFwCQbKEeb9KuyQrrWNq5Zkn0uV6AYdXOMJ0grrWEiLwBuvMxt8w5vsNw==",+ "cpu": [+ "x64"+ ],"dev": true,- "license": "MIT"+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }},- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.31",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "node_modules/@oxlint/binding-linux-x64-musl": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.83.0.tgz",+ "integrity": "sha512-W2IH4EtpcPaWcvNGCA95YoDg4vxqE/ZiPCi3arrxEEpsK7+JQN9WYwrlYFx9pcdP6KPXqRqkv3zdQPHcx7b6YQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-openharmony-arm64": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.83.0.tgz",+ "integrity": "sha512-6LyKkUyoajssTPLlZmDbZIbu4IZ5B4bGuRUnBgCGpEvHP3FQMaYITncHA/unPUo7q+Z+pIu2HhdkQ+8d1SG7iA==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"}},- "node_modules/@oxc-project/types": {- "version": "0.147.0",- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.147.0.tgz",- "integrity": "sha512-IJ3s6ltHLp45S0bh7phkX+gJO7A1Wuz2EaqpAhb8WjqDwbzMiWKHhyyT42tskaWjEYXtHtVCPpnBJVT9+dcRLg==",+ "node_modules/@oxlint/binding-win32-arm64-msvc": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.83.0.tgz",+ "integrity": "sha512-Uz/fObEtF0jmNJQJ8CGRBKfefYstS0/wjD3s6IGzP8nUwsJykHQJBiN3npHwKiGRGn/vvBEgNr4B3cCzmmatvg==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "funding": {- "url": "https://github.com/sponsors/Boshen"+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-win32-ia32-msvc": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.83.0.tgz",+ "integrity": "sha512-u7XcvPW6Bk58tY5iWs2ESb0vJjoE/kuSpHxopbwp/p3ZtWVQXZ6wor5w3ssVTHOqd/v8b+QdhSFWQ4grEUNWpA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@oxlint/binding-win32-x64-msvc": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.83.0.tgz",+ "integrity": "sha512-LZRubd7ph13QmAg4fFecTYVZkiYbROR2Htaxh/ufWRkDhPOm2wrwaEYR89e0YpPFD3dqBrPoxS7myBw5hmYA7Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"}},"node_modules/@preact/signals": {@@ -415,32 +1376,165 @@"win32"],"engines": {- "node": "^20.19.0 || >=22.12.0"+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-win32-x64-msvc": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.6.tgz",+ "integrity": "sha512-np8iZSLfXlAD4kWhiyq/u0Yt8oZDtRQ8lGhQaCXo2rl37KNjeU0GjJuwr4P3oeZ++ROfofsKNBqR5LTO8aXyWQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz",+ "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@shadcn/lint": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/@shadcn/lint/-/lint-0.1.0.tgz",+ "integrity": "sha512-UDSxO4eQa8UAclN1tChum+L336CL2uB2ZLGYiJ7r/GDrYUBOKPWWNUVoAfh2dZs4LhcwJRCn62+fKG12eAy1FQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint/core": "^0.17.0",+ "@typescript-eslint/parser": "^8.40.0",+ "cn": "0.2.6"+ },+ "engines": {+ "node": ">=20.19"+ },+ "optionalDependencies": {+ "oxc-parser": "^0.148.0"+ },+ "peerDependencies": {+ "eslint": ">=9.30.0"+ },+ "peerDependenciesMeta": {+ "eslint": {+ "optional": true+ }+ }+ },+ "node_modules/@shadcn/lint/node_modules/@typescript-eslint/parser": {+ "version": "8.70.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.70.0.tgz",+ "integrity": "sha512-zYvrmj9Yxd63UGaXw+kdt6A0F0s0qveJyuatIM77bYC2DE4pgmg7a50u8LR7PRtXd0x+h+Tl3eXabGm06SWd3Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/scope-manager": "8.70.0",+ "@typescript-eslint/types": "8.70.0",+ "@typescript-eslint/typescript-estree": "8.70.0",+ "@typescript-eslint/visitor-keys": "8.70.0",+ "debug": "^4.4.3"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "node_modules/@shadcn/lint/node_modules/@typescript-eslint/project-service": {+ "version": "8.70.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.70.0.tgz",+ "integrity": "sha512-hFHbTNqhU9G+2eKFXCBVb1tjFT/LceiJ4+HfLO4pTpDI0KHi6iajpcFFkaSQ9gXmCh7n82A0PthaayEdN6mspQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/tsconfig-utils": "^8.70.0",+ "@typescript-eslint/types": "^8.70.0",+ "debug": "^4.4.3"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "node_modules/@shadcn/lint/node_modules/@typescript-eslint/tsconfig-utils": {+ "version": "8.70.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.70.0.tgz",+ "integrity": "sha512-adnkeeNq9Sq1sUf4+FRVc0KdgYghzsgFpZSQVZVvY0LCuUuN0FnQgyGzCJeC4fW1cdXseBAjU2EOqUIjbNcZUw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.1.0"}},- "node_modules/@rolldown/binding-win32-x64-msvc": {- "version": "1.2.6",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.6.tgz",- "integrity": "sha512-np8iZSLfXlAD4kWhiyq/u0Yt8oZDtRQ8lGhQaCXo2rl37KNjeU0GjJuwr4P3oeZ++ROfofsKNBqR5LTO8aXyWQ==",- "cpu": [- "x64"- ],+ "node_modules/@shadcn/lint/node_modules/@typescript-eslint/typescript-estree": {+ "version": "8.70.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.70.0.tgz",+ "integrity": "sha512-d9NmHMPEKQ7QCLLm1jI3zmoQBwT5KwFYjXBJ9ymZfKCUU+5rmTRykKAFvH5Qn/ZCds3CEAFS9OC9M/jkl0X2bA==","dev": true,"license": "MIT",- "optional": true,- "os": [- "win32"- ],+ "dependencies": {+ "@typescript-eslint/project-service": "8.70.0",+ "@typescript-eslint/tsconfig-utils": "8.70.0",+ "@typescript-eslint/types": "8.70.0",+ "@typescript-eslint/visitor-keys": "8.70.0",+ "debug": "^4.4.3",+ "minimatch": "^10.2.2",+ "semver": "^7.7.3",+ "tinyglobby": "^0.2.15",+ "ts-api-utils": "^2.5.0"+ },"engines": {- "node": "^20.19.0 || >=22.12.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.1.0"}},- "node_modules/@rolldown/pluginutils": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz",- "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==",+ "node_modules/@shadcn/lint/node_modules/typescript": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",+ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==","dev": true,- "license": "MIT"+ "license": "Apache-2.0",+ "peer": true,+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }},"node_modules/@swc/helpers": {"version": "0.5.23",@@ -1063,6 +2157,14 @@"dev": true,"license": "MIT"},+ "node_modules/@types/esrecurse": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",+ "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/@types/estree": {"version": "1.0.9","resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",@@ -1070,6 +2172,13 @@"dev": true,"license": "MIT"},+ "node_modules/@types/json-schema": {+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/node": {"version": "26.4.1","resolved": "https://registry.npmjs.org/@types/node/-/node-26.4.1.tgz",@@ -1117,6 +2226,56 @@"@types/node": "*"}},+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "8.70.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.70.0.tgz",+ "integrity": "sha512-8nP3Kwh5hlgZ4FicGvmznAmJe8UL4sdU8tLukrPaMuQmDuk4Y8xYfzu/aYZW4xT2JCgc7H/TpDI5cGlxcWJSqQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.70.0",+ "@typescript-eslint/visitor-keys": "8.70.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/types": {+ "version": "8.70.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.70.0.tgz",+ "integrity": "sha512-asTOIYhDg4zdzOScCyaytrsV3cR6B4ecPQlXw/dJIm7J/MZTtCtfVII9JD8Geh4jTCrK/Xe6cg5UevoleMcoJQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "8.70.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.70.0.tgz",+ "integrity": "sha512-BoC8PiO4Hkdo0TVJh9Ntxr5MxPDI7/oFsrygN5ADelFSeXG/qgNuucIGA+L5Z6JpPTE/uRfcTWtscjbUaufepQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.70.0",+ "eslint-visitor-keys": "^5.0.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },"node_modules/@typescript/typescript-aix-ppc64": {"version": "7.0.2","resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",@@ -1495,6 +2654,49 @@"url": "https://opencollective.com/vitest"}},+ "node_modules/acorn": {+ "version": "8.18.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",+ "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/ajv": {+ "version": "6.15.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },"node_modules/aria-hidden": {"version": "1.2.6","resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",@@ -1517,6 +2719,29 @@"node": ">=12"}},+ "node_modules/balanced-match": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/brace-expansion": {+ "version": "5.0.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^4.0.2"+ },+ "engines": {+ "node": "20 || >=22"+ }+ },"node_modules/buffer-image-size": {"version": "0.6.4","resolved": "https://registry.npmjs.org/buffer-image-size/-/buffer-image-size-0.6.4.tgz",@@ -1530,6 +2755,21 @@"node": ">=4.0"}},+ "node_modules/cacheable": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz",+ "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@cacheable/memory": "^2.2.0",+ "@cacheable/utils": "^2.5.0",+ "hookified": "^1.15.0",+ "keyv": "^5.6.0",+ "qified": "^0.10.1"+ }+ },"node_modules/chai": {"version": "6.2.2","resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",@@ -1555,6 +2795,35 @@"node": ">=6"}},+ "node_modules/cn": {+ "version": "0.2.6",+ "resolved": "https://registry.npmjs.org/cn/-/cn-0.2.6.tgz",+ "integrity": "sha512-+i4L0zUGgRcEnhsxueVrP7iBGxBx5iD0WOTYg1MwFEu2ZyCmH5Ov2V1cul2Ht5UchRQQgftCf4be/RxspuW6QQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cn": "bin/cn.mjs"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },"node_modules/csstype": {"version": "3.2.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",@@ -1596,6 +2865,32 @@"d3-path": "1"}},+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/deep-is": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/detect-libc": {"version": "2.1.2","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",@@ -1640,6 +2935,185 @@"dev": true,"license": "MIT"},+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/eslint": {+ "version": "10.10.0",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.10.0.tgz",+ "integrity": "sha512-NPXn6r5zl4uET1DAVPaOwzX3rut4c0wcmw3dWJAfOsTM5+TogXo0DDjz8pwm/hL8cyVNpHqeK4JpN0NjnyFFNw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "workspaces": [+ "packages/*"+ ],+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.8.0",+ "@eslint-community/regexpp": "^4.12.2",+ "@eslint/config-array": "^0.23.5",+ "@eslint/config-helpers": "^0.7.0",+ "@eslint/core": "^1.2.1",+ "@eslint/plugin-kit": "^0.7.3",+ "@humanfs/node": "^0.16.6",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@humanwhocodes/retry": "^0.4.2",+ "@types/estree": "^1.0.6",+ "ajv": "^6.14.0",+ "cross-spawn": "^7.0.6",+ "debug": "^4.3.2",+ "escape-string-regexp": "^4.0.0",+ "eslint-scope": "^9.1.2",+ "eslint-visitor-keys": "^5.0.1",+ "espree": "^11.2.0",+ "esquery": "^1.7.0",+ "esutils": "^2.0.2",+ "fast-deep-equal": "^3.1.3",+ "file-entry-cache": "11.1.5 || >11.1.6 <12",+ "find-up": "^5.0.0",+ "glob-parent": "^6.0.2",+ "ignore": "^5.2.0",+ "imurmurhash": "^0.1.4",+ "is-glob": "^4.0.0",+ "json-stable-stringify-without-jsonify": "^1.0.1",+ "minimatch": "^10.2.5",+ "natural-compare": "^1.4.0",+ "optionator": "^0.9.3"+ },+ "bin": {+ "eslint": "bin/eslint.js"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ },+ "funding": {+ "url": "https://eslint.org/donate"+ },+ "peerDependencies": {+ "jiti": "*"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-scope": {+ "version": "9.1.2",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",+ "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "dependencies": {+ "@types/esrecurse": "^4.3.1",+ "@types/estree": "^1.0.8",+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-visitor-keys": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint/node_modules/@eslint/core": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",+ "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ }+ },+ "node_modules/espree": {+ "version": "11.2.0",+ "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",+ "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "dependencies": {+ "acorn": "^8.16.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^5.0.1"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/esquery": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "peer": true,+ "dependencies": {+ "estraverse": "^5.1.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "engines": {+ "node": ">=4.0"+ }+ },"node_modules/estree-walker": {"version": "3.0.3","resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",@@ -1650,6 +3124,17 @@"@types/estree": "^1.0.0"}},+ "node_modules/esutils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/expect-type": {"version": "1.4.0","resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",@@ -1660,6 +3145,30 @@"node": ">=12.0.0"}},+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/fdir": {"version": "6.5.0","resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",@@ -1678,6 +3187,56 @@}}},+ "node_modules/file-entry-cache": {+ "version": "11.1.5",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz",+ "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "flat-cache": "^6.1.23"+ }+ },+ "node_modules/find-up": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/flat-cache": {+ "version": "6.1.23",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz",+ "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "cacheable": "^2.5.0",+ "flatted": "^3.4.2",+ "hookified": "^1.15.0"+ }+ },+ "node_modules/flatted": {+ "version": "3.4.4",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",+ "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",+ "dev": true,+ "license": "ISC",+ "peer": true+ },"node_modules/fsevents": {"version": "2.3.3","resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",@@ -1693,6 +3252,20 @@"node": "^8.16.0 || ^10.6.0 || >=11.0.0"}},+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "license": "ISC",+ "peer": true,+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },"node_modules/graceful-fs": {"version": "4.2.11","resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",@@ -1719,12 +3292,89 @@"node": ">=20.0.0"}},+ "node_modules/hashery": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz",+ "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "hookified": "^1.15.0"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/hookified": {+ "version": "1.15.1",+ "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz",+ "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/ignore": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.8.19"+ }+ },"node_modules/internmap": {"version": "1.0.1","resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz","integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==","license": "ISC"},+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC",+ "peer": true+ },"node_modules/jiti": {"version": "2.7.0","resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",@@ -1735,6 +3385,48 @@"jiti": "lib/jiti-cli.mjs"}},+ "node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/keyv": {+ "version": "5.6.0",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz",+ "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@keyv/serialize": "^1.1.1"+ }+ },+ "node_modules/levn": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },"node_modules/lightningcss": {"version": "1.33.0","resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",@@ -2008,6 +3700,23 @@"url": "https://opencollective.com/parcel"}},+ "node_modules/locate-path": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/magic-string": {"version": "1.2.3","resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz",@@ -2018,6 +3727,29 @@"@jridgewell/sourcemap-codec": "^1.5.5"}},+ "node_modules/minimatch": {+ "version": "10.2.6",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "brace-expansion": "^5.0.8"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/nanoid": {"version": "3.3.18","resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",@@ -2037,6 +3769,14 @@"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"}},+ "node_modules/natural-compare": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/obug": {"version": "2.1.4","resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz",@@ -2051,6 +3791,179 @@"node": ">=12.20.0"}},+ "node_modules/optionator": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "deep-is": "^0.1.3",+ "fast-levenshtein": "^2.0.6",+ "levn": "^0.4.1",+ "prelude-ls": "^1.2.1",+ "type-check": "^0.4.0",+ "word-wrap": "^1.2.5"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/oxc-parser": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.148.0.tgz",+ "integrity": "sha512-syxUKHeUll89RIABQADcI7sikYrwyssvA6gj4phSSIPezKVM8yMaLAiLLSc7fmzVvrwybfFGFbW5zme9sX87rg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@oxc-project/types": "^0.148.0"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/oxc-project"+ },+ "optionalDependencies": {+ "@oxc-parser/binding-android-arm-eabi": "0.148.0",+ "@oxc-parser/binding-android-arm64": "0.148.0",+ "@oxc-parser/binding-darwin-arm64": "0.148.0",+ "@oxc-parser/binding-darwin-x64": "0.148.0",+ "@oxc-parser/binding-freebsd-x64": "0.148.0",+ "@oxc-parser/binding-linux-arm-gnueabihf": "0.148.0",+ "@oxc-parser/binding-linux-arm-musleabihf": "0.148.0",+ "@oxc-parser/binding-linux-arm64-gnu": "0.148.0",+ "@oxc-parser/binding-linux-arm64-musl": "0.148.0",+ "@oxc-parser/binding-linux-ppc64-gnu": "0.148.0",+ "@oxc-parser/binding-linux-riscv64-gnu": "0.148.0",+ "@oxc-parser/binding-linux-riscv64-musl": "0.148.0",+ "@oxc-parser/binding-linux-s390x-gnu": "0.148.0",+ "@oxc-parser/binding-linux-x64-gnu": "0.148.0",+ "@oxc-parser/binding-linux-x64-musl": "0.148.0",+ "@oxc-parser/binding-openharmony-arm64": "0.148.0",+ "@oxc-parser/binding-win32-arm64-msvc": "0.148.0",+ "@oxc-parser/binding-win32-ia32-msvc": "0.148.0",+ "@oxc-parser/binding-win32-x64-msvc": "0.148.0"+ }+ },+ "node_modules/oxc-parser/node_modules/@oxc-project/types": {+ "version": "0.148.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz",+ "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "funding": {+ "url": "https://github.com/sponsors/oxc-project"+ }+ },+ "node_modules/oxlint": {+ "version": "1.83.0",+ "resolved": "https://registry.npmjs.org/oxlint/-/oxlint-1.83.0.tgz",+ "integrity": "sha512-cyDzSzaw3uzP0TeCeq3lLRPPoaUxkbB4ZOXj+kn+5r+BX9V+4bNVGk9lxer+WrgcpebH4JxLlJ3KQjveVztOLQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "oxlint": "bin/oxlint"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/oxc-project"+ },+ "optionalDependencies": {+ "@oxlint/binding-android-arm-eabi": "1.83.0",+ "@oxlint/binding-android-arm64": "1.83.0",+ "@oxlint/binding-darwin-arm64": "1.83.0",+ "@oxlint/binding-darwin-x64": "1.83.0",+ "@oxlint/binding-freebsd-x64": "1.83.0",+ "@oxlint/binding-linux-arm-gnueabihf": "1.83.0",+ "@oxlint/binding-linux-arm-musleabihf": "1.83.0",+ "@oxlint/binding-linux-arm64-gnu": "1.83.0",+ "@oxlint/binding-linux-arm64-musl": "1.83.0",+ "@oxlint/binding-linux-ppc64-gnu": "1.83.0",+ "@oxlint/binding-linux-riscv64-gnu": "1.83.0",+ "@oxlint/binding-linux-riscv64-musl": "1.83.0",+ "@oxlint/binding-linux-s390x-gnu": "1.83.0",+ "@oxlint/binding-linux-x64-gnu": "1.83.0",+ "@oxlint/binding-linux-x64-musl": "1.83.0",+ "@oxlint/binding-openharmony-arm64": "1.83.0",+ "@oxlint/binding-win32-arm64-msvc": "1.83.0",+ "@oxlint/binding-win32-ia32-msvc": "1.83.0",+ "@oxlint/binding-win32-x64-msvc": "1.83.0"+ },+ "peerDependencies": {+ "oxlint-tsgolint": ">=7.0.2001",+ "vite-plus": "*"+ },+ "peerDependenciesMeta": {+ "oxlint-tsgolint": {+ "optional": true+ },+ "vite-plus": {+ "optional": true+ }+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-locate": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "p-limit": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },"node_modules/picocolors": {"version": "1.1.1","resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",@@ -2131,6 +4044,50 @@}}},+ "node_modules/prelude-ls": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/qified": {+ "version": "0.10.1",+ "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz",+ "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "hookified": "^2.1.1"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/qified/node_modules/hookified": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz",+ "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/react": {"version": "19.3.0","resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz",@@ -2249,6 +4206,44 @@"integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==","license": "MIT"},+ "node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },"node_modules/siginfo": {"version": "2.0.0","resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",@@ -2348,12 +4343,39 @@"url": "https://github.com/sponsors/SuperchupuDev"}},+ "node_modules/ts-api-utils": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",+ "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18.12"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4"+ }+ },"node_modules/tslib": {"version": "2.8.1","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz","integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==","license": "0BSD"},+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },"node_modules/typescript": {"version": "7.0.2","resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",@@ -2396,6 +4418,17 @@"dev": true,"license": "MIT"},+ "node_modules/uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },"node_modules/use-sync-external-store": {"version": "1.7.0","resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz",@@ -2576,6 +4609,23 @@"node": ">=12"}},+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "peer": true,+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },"node_modules/why-is-node-running": {"version": "2.3.0","resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",@@ -2593,6 +4643,17 @@"node": ">=8"}},+ "node_modules/word-wrap": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/ws": {"version": "8.21.3","resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",@@ -2614,6 +4675,20 @@"optional": true}}+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }}}}diff --git a/frontend/package.json b/frontend/package.jsonindex 6f6c48a66..66dc86776 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -10,6 +10,7 @@"dev:react": "vite build -c vite.react.config.ts --watch","build": "vite build && vite build -c vite.react.config.ts","typecheck": "tsc --noEmit && tsc --noEmit -p src/react",+ "lint": "oxlint -c .oxlintrc.json src/react","test": "vitest run","test:watch": "vitest","e2e": "node --test --test-reporter=tap \"e2e/**/*.test.ts\""@@ -25,11 +26,13 @@"tailwind-merge": "3.7.0"},"devDependencies": {+ "@shadcn/lint": "0.1.0","@tailwindcss/vite": "4.3.3","@types/d3-sankey": "0.12.5","@types/react": "19.3.0","@types/react-dom": "19.3.0","happy-dom": "20.14.0",+ "oxlint": "1.83.0","playwright-core": "1.63.0","tailwindcss": "4.3.3","typescript": "7.0.2",diff --git a/frontend/src/react/boardui/ORIGIN.md b/frontend/src/react/boardui/ORIGIN.mdindex cc08918f4..cb88d773d 100644--- a/frontend/src/react/boardui/ORIGIN.md+++ b/frontend/src/react/boardui/ORIGIN.md@@ -7,6 +7,9 @@`@/utils/cx` 因此不用改写。这里的文件不做修改:Peach 需要不同的组合或外观时,在 `../settings/` 这类 Peach 自己的目录里组合,差异写进下表。+`UPSTREAM.sha256` 记着复制时每个文件的 SHA-256,`tests/test_frontend_build.py` 逐文件比对:+改了副本、多出没登记的文件都会红。升级上游时重新复制、重算对应行,并更新下表的条目哈希。+| 条目 | 注册表 JSON 的 SHA-256 | 复制的文件 || --- | --- | --- || `theme` | `ee1cb0e973b108b90fd4999796a595fff6a1e5e453e115a6966c43b6e53ed428` | `styles/theme.css` |diff --git a/frontend/src/react/boardui/UPSTREAM.sha256 b/frontend/src/react/boardui/UPSTREAM.sha256new file mode 100644index 000000000..8e1061b7b--- /dev/null+++ b/frontend/src/react/boardui/UPSTREAM.sha256@@ -0,0 +1,10 @@+80ab66fcbaca762d75032deca7279043742b3f8637b4b1b8008993e3dfda6744 components/application/settings/settings-rows.tsx+a49800d5cc58a9f8a98c07a7251e5923904b483b2f3e6e63e4fa0797acff101d components/base/buttons/button.tsx+e71bdc6f0dd28e792be233950df90f7f8ee68252a63e3f2da46d19f84bdf7584 components/base/checkbox/checkbox-glyph.tsx+592651a10aaf0e186a08862391fa99fa7d45ee75e8bfd0bc134408bb1c076f5e components/base/checkbox/checkbox.tsx+0426d70de74274486166cf3fd2279b8c70ce184012d613f87c44dbaa484ba8c3 components/base/input/hint-text.tsx+7f42e9bbd54ef8db46b280d6fa2f0936ba064f222b7e4c9084a5cfd6cf219920 components/base/input/input.tsx+a053bec8ad9f79f15ad8d7f031eac740588781d4e1b34d1cb1b3c5d44a4b2199 components/base/input/label.tsx+7d9cb4b3a3434d6f67777a80b2c1daf8620d816ea3b8404ff23d07ed9db249da styles/theme.css+dfd4e9b446998d063efe96a47fc31fd2492639bf641d0da1b60645fe4dcc32a1 styles/typography.css+db35ea5afa8b2e0fd51319bc49288c4df7c98ec53440b43903636a32e3319d9d utils/cx.tsdiff --git a/frontend/src/react/settings/access-settings.tsx b/frontend/src/react/settings/access-settings.tsxindex 8b5ede81e..945ddcc71 100644--- a/frontend/src/react/settings/access-settings.tsx+++ b/frontend/src/react/settings/access-settings.tsx@@ -86,37 +86,40 @@ export function AccessSettings({ initial, receipt }: AccessSettingsProps) {return (<form ref={form} aria-label="访问密码" noValidate onSubmit={submit} className="flex w-full flex-col gap-2"><SettingsSectionLabel>访问密码</SettingsSectionLabel>- <SettingsCard className="gap-4 py-4 pr-3">- {help ? <p className="text-body-2-regular text-text-secondary">{help}</p> : null}- {state.mode === 'open'- ? <Warning label="未设置访问密码">能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。</Warning>- : null}- {state.mode === 'password' || state.mode === 'legacy'- ? <Checkbox isSelected={disable} onChange={setDisable}>关闭访问密码,允许能连接到 Peach 的设备直接访问</Checkbox>- : null}- {state.mode === 'password'- ? <Input id="access-current" type="password" label="当前访问密码" autoComplete="current-password" maxLength={256}- value={current} onChange={setCurrent} isRequired validationBehavior="aria"- isInvalid={Boolean(fields.current_password)} hint={fields.current_password} />- : null}- {editable ? <>- <Input id="access-password" type="password" label={state.mode === 'password' ? '新访问密码' : '设置访问密码'}- autoComplete="new-password" maxLength={256} value={password} onChange={setPassword}- isDisabled={disable} isRequired={!disable} validationBehavior="aria"- isInvalid={!disable && Boolean(fields.password)}- hint={disable ? '关闭访问密码时无需填写。' : fields.password || '至少 8 个字符。保存后其他设备需要重新登录。'} />- <Input id="access-confirm" type="password" label="确认访问密码" autoComplete="new-password" maxLength={256}- value={confirmation} onChange={setConfirmation} isDisabled={disable} isRequired={!disable} validationBehavior="aria"- isInvalid={!disable && Boolean(fields.confirmation)} hint={disable ? undefined : fields.confirmation} />- </> : null}- {disable ? <Warning label="访问范围">保存后,能连接到 Peach 的设备将直接访问馆藏。</Warning> : null}- {error ? <p role="alert" className="text-body-2-regular text-text-error-primary">{error}</p> : null}- {editable- ? <div className="flex items-center justify-between gap-4 border-t border-separator-border pt-3">- <p className="text-body-2-regular text-text-secondary">保存后立即生效。</p>- <Button type="submit" aria-busy={busy || undefined} aria-disabled={busy || undefined}>保存配置</Button>- </div>- : null}+ <SettingsCard>+ {/* 卡片只管左内边距和底色;这里放的不是 SettingsRow,行距和上下内边距由这一层给。 */}+ <div className="flex flex-col gap-4 py-4 pr-3">+ {help ? <p className="text-body-2-regular text-text-secondary">{help}</p> : null}+ {state.mode === 'open'+ ? <Warning label="未设置访问密码">能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。</Warning>+ : null}+ {state.mode === 'password' || state.mode === 'legacy'+ ? <Checkbox isSelected={disable} onChange={setDisable}>关闭访问密码,允许能连接到 Peach 的设备直接访问</Checkbox>+ : null}+ {state.mode === 'password'+ ? <Input id="access-current" type="password" label="当前访问密码" autoComplete="current-password" maxLength={256}+ value={current} onChange={setCurrent} isRequired validationBehavior="aria"+ isInvalid={Boolean(fields.current_password)} hint={fields.current_password} />+ : null}+ {editable ? <>+ <Input id="access-password" type="password" label={state.mode === 'password' ? '新访问密码' : '设置访问密码'}+ autoComplete="new-password" maxLength={256} value={password} onChange={setPassword}+ isDisabled={disable} isRequired={!disable} validationBehavior="aria"+ isInvalid={!disable && Boolean(fields.password)}+ hint={disable ? '关闭访问密码时无需填写。' : fields.password || '至少 8 个字符。保存后其他设备需要重新登录。'} />+ <Input id="access-confirm" type="password" label="确认访问密码" autoComplete="new-password" maxLength={256}+ value={confirmation} onChange={setConfirmation} isDisabled={disable} isRequired={!disable} validationBehavior="aria"+ isInvalid={!disable && Boolean(fields.confirmation)} hint={disable ? undefined : fields.confirmation} />+ </> : null}+ {disable ? <Warning label="访问范围">保存后,能连接到 Peach 的设备将直接访问馆藏。</Warning> : null}+ {error ? <p role="alert" className="text-body-2-regular text-text-error-primary">{error}</p> : null}+ {editable+ ? <div className="flex items-center justify-between gap-4 border-t border-separator-border pt-3">+ <p className="text-body-2-regular text-text-secondary">保存后立即生效。</p>+ <Button type="submit" aria-busy={busy || undefined} aria-disabled={busy || undefined}>保存配置</Button>+ </div>+ : null}+ </div></SettingsCard></form>);diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.pyindex af5ceb634..8e126416c 100644--- a/tests/test_frontend_build.py+++ b/tests/test_frontend_build.py@@ -15,6 +15,7 @@ ADR-0022 的取舍是「构建产物进 Git」:运行时的 Python 服务、Py"""from __future__ import annotations+import hashlibimport jsonfrom pathlib import Pathimport re@@ -191,6 +192,31 @@ class ReactBundleTests(unittest.TestCase):self.assertIn("root.classList.toggle('dark',dark)", app_js)+class BoardUiUpstreamTests(unittest.TestCase):+ """`frontend/src/react/boardui/` 是 BoardUI 注册表源码的逐字副本,只加不改(ADR-0031)。++ `UPSTREAM.sha256` 记下复制时每个文件的 SHA-256。改了副本、多出没登记的文件、登记了却+ 删掉,都在这里红。比的是登记的快照而不是线上注册表:上游随时会改,测试不能联网。+ 升级上游时重新复制文件、重算对应行,并更新 `ORIGIN.md` 的条目哈希。+ """++ BOARDUI = FRONTEND / "src" / "react" / "boardui"+ RECORDS = ("ORIGIN.md", "UPSTREAM.sha256")++ def test_the_copied_sources_match_their_recorded_upstream_hashes(self):+ recorded = {}+ for line in (self.BOARDUI / "UPSTREAM.sha256").read_text(encoding="utf-8").splitlines():+ digest, path = line.split(" ", 1)+ recorded[path] = digest+ present = {file.relative_to(self.BOARDUI).as_posix(): file for file in self.BOARDUI.rglob("*")+ if file.is_file() and file.name not in self.RECORDS}+ self.assertEqual(sorted(present), sorted(recorded),+ "boardui/ 的文件要与 UPSTREAM.sha256 一一对应;Peach 自己的组合放在 boardui/ 外面")+ for path, file in present.items():+ self.assertEqual(hashlib.sha256(file.read_bytes()).hexdigest(), recorded[path],+ f"boardui/{path} 与复制时的上游内容不同;外观差异在 boardui/ 外面组合")++class FrontendManifestTests(unittest.TestCase):"""依赖清单和根 `package.json` 是两份,各自的口径都要精确。"""@@ -231,7 +257,8 @@ class FrontendManifestTests(unittest.TestCase):"""workflow = (ROOT / ".github" / "workflows" / "test.yml").read_text(encoding="utf-8")for step in ("actions/setup-node", "npm --prefix frontend ci",- "npm --prefix frontend run typecheck", "npm --prefix frontend test",+ "npm --prefix frontend run typecheck", "npm --prefix frontend run lint",+ "npm --prefix frontend test","npm --prefix frontend run build","git add --intent-to-add -- web/dist","git diff --exit-code -- web/dist"):@@ -366,9 +393,10 @@ class SharedStateContractTests(unittest.TestCase):class VitestTests(unittest.TestCase):- """vitest 与 tsc 走同一个测试入口,但缺 Node 时跳过而不是红。+ """vitest、tsc 与 lint 走同一个测试入口,但缺 Node 时跳过而不是红。- 两者互不覆盖:vitest 经 Vite 转译时只剥掉类型、不做检查,类型错误照样跑绿。+ 三者互不覆盖:vitest 经 Vite 转译时只剥掉类型、不做检查,类型错误照样跑绿;+ 裸色值、任意值和在 BoardUI 组件上改样式,类型和行为测试都看不见。"""def _npm(self, tool: str, package: str) -> str:@@ -387,6 +415,20 @@ class VitestTests(unittest.TestCase):cwd=str(FRONTEND), check=False)self.assertEqual(completed.returncode, 0, f"{completed.stdout}\n{completed.stderr}")+ def test_the_react_sources_follow_the_design_system_lint(self):+ """`@shadcn/lint` 挡住裸色值、任意值、内联样式和在 BoardUI 组件上改样式(ADR-0031)。"""+ npm = self._npm("lint", "oxlint")+ completed = subprocess.run(+ [npm, "--prefix", str(FRONTEND), "run", "lint", "--silent", "--", "--format=json"],+ capture_output=True, text=True, encoding="utf-8", errors="replace",+ cwd=str(FRONTEND), check=False)+ output = f"{completed.stdout}\n{completed.stderr}"+ self.assertEqual(completed.returncode, 0, output)+ report = json.loads(completed.stdout)+ self.assertEqual(report["diagnostics"], [], output)+ # 没有问题时 Oxlint 什么都不打印,路径写错查了 0 个文件也照样退出 0。+ self.assertGreater(report["number_of_files"], 0, output)+def test_the_island_suite_passes(self):npm = self._npm("vitest", "vitest")completed = subprocess.run(diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 1ec8fac46..a23aa9453 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -1394,20 +1394,6 @@ class WebUiSourceTests(unittest.TestCase):self.assertEqual(labels, heads, "堆叠时的列名要和表头写的是同一串字")self.assertIn(".cloudguide-table tbody td::before{content:attr(data-label)", self.css)- def test_having_no_access_password_is_stated_as_a_warning(self):- """没设访问密码画成警示 Note,不是一行灰色小字。-- 这说的是这台机器当前的状态:同一个网里任何一台设备打开地址就进了馆藏。- 灰色小字和旁边「至少 8 个字符」那种填表提示长得一模一样,扫一眼就滑过去。- """- access = (Path(__file__).resolve().parents[1]- / "frontend/src/react/settings/access-settings.tsx").read_text(encoding="utf-8")- note = access[access.index("state.mode === 'open'\n"):][:200]- self.assertIn('<Warning label="未设置访问密码">', note)- warning = access[access.index("function Warning("):access.index("export function AccessSettings(")]- self.assertIn('role="note"', warning)- self.assertIn("bg-status-yellow-background", warning)-def test_a_spinner_announces_the_work_and_not_the_button_it_sits_in(self):"""`spinnerHtml()` 的名字说正在做什么,不复读按钮自己的名字。diff --git a/web/dist/peach-react.js b/web/dist/peach-react.jsindex 89eda0a87..abe1c7a42 100644--- a/web/dist/peach-react.js+++ b/web/dist/peach-react.js@@ -13447,8 +13447,8 @@ function Ja({ initial: e, receipt: t }) {noValidate: !0,onSubmit: x,className: "flex w-full flex-col gap-2",- children: [/* @__PURE__ */ (0, P.jsx)(Et, { children: "访问密码" }), /* @__PURE__ */ (0, P.jsxs)(Tt, {- className: "gap-4 py-4 pr-3",+ children: [/* @__PURE__ */ (0, P.jsx)(Et, { children: "访问密码" }), /* @__PURE__ */ (0, P.jsx)(Tt, { children: /* @__PURE__ */ (0, P.jsxs)("div", {+ className: "flex flex-col gap-4 py-4 pr-3",children: [S ? /* @__PURE__ */ (0, P.jsx)("p", {className: "text-body-2-regular text-text-secondary",@@ -13525,7 +13525,7 @@ function Ja({ initial: e, receipt: t }) {})]}) : null]- })]+ }) })]});}//#endregion