Peach: Local-first video metadata scraper and media manager.
fix(metadata): 固定 amane 0.20.0 并复核参考来源
longmeidaob6bbe00238ba
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.mdindex 2288c779d..56656f924 100644--- a/docs/HANDOFF.md+++ b/docs/HANDOFF.md@@ -70,6 +70,7 @@## 参考产品证据登记+- 依赖与参考来源的本轮判断见 [上游复核](reference-snapshots/upstream-review.md):原文快照按哈希与 revision 接受,人工取证笔记保留;amane 桥只消费站点与网络层。- BoardUI:[创作者别名表格与关注分页](BOARD_UI.md#创作者别名与扫描操作)、[Board、Link Button 与搜索动效](BOARD_UI.md)、[复核与配置灰色 Pills](reference-snapshots/board-review-layout.md#次级分类组件);React 源码 `frontend/src/react/boardui/ORIGIN.md`。- [Geist 控件](reference-snapshots/vercel-geist-controls-measured.md);[复核操作](reference-snapshots/vercel-review-actions.md);[README 维护](README_MAINTENANCE.md);设置:`reference-snapshots/geist-settings.md`。diff --git a/docs/REUSE.md b/docs/REUSE.mdindex 287704fd5..88898f6e5 100644--- a/docs/REUSE.md+++ b/docs/REUSE.md@@ -85,7 +85,7 @@ OneJAV、Free JAV Torrent 只给种子链接。这类条目经索引器同源的- 外链按钮复用 BoardUI `ButtonLink`,调用处加 `data-button-link`,全站文字外链规则用 `:where` 排除它,保持实体页控件的样式优先级。浏览器验收使用一个渲染进程、进程内音频服务和合成音频输出,给演示服务与媒体进程保留资源预算;入口仍为 `scripts/test.ps1` / `scripts/test.sh`。-- 功能性动效由 `frontend/src/react/components/use-moving-surface.ts`、`modal-frame.tsx`、`selection-dock.tsx` 承担,用现有 Motion 12.43.0(MIT)与 React Aria Components 1.21.1(Apache-2.0)。Fluid Functionalism 只作行为与短程参数参考([取证](reference-snapshots/fluid-functionalism.md)),不装其 Registry(额外的 Radix、字体与上下文不合 BoardUI 组合);Peach 保留单一选中底板、键盘即时反馈与原有主题。+- 功能性动效由 `frontend/src/react/components/use-moving-surface.ts`、`modal-frame.tsx`、`selection-dock.tsx` 承担,用现有 Motion 14.0.0(MIT)与 React Aria Components 1.22.0(Apache-2.0)。Fluid Functionalism 只作行为与短程参数参考([取证](reference-snapshots/fluid-functionalism.md)),不装其 Registry(额外的 Radix、字体与上下文不合 BoardUI 组合);Peach 保留单一选中底板、键盘即时反馈与原有主题。- 首页新作与实体资料页共用 `/api/entity/shapes` 和 `feedNewSkeletonHtml`;`home.feed` 按新作列表同一套未入库、未忽略与合集条件判定,有内容才留位;同步设置先于最终横条和网格,同形骨架复用节点。- 首页、人物页和 JAV「发现」的新作头像共用 `feedIdentity`、`web_catalog.entity_ref` 与 `avatarInner`,携带实体图片版本和人脸取景,多人最多叠三枚,图片缺失时显示首字。已建档人物的头像通往规范资料页,不新增实体、头像采集或运行依赖。- 作者别名管理用逐字复制进 `frontend/src/react/boardui/` 的 BoardUI `Table`、关注列表共用的 `DataTableFrame`、`AuthorAvatar` 与既有别名 API。两张表只有几行,不接 `@tanstack/react-table`;合并范围是这一屏自己的勾选,勾写 `slot={null}`,不走 React Aria Table 的行选择。扫描与采集三种方式收在一颗 BoardUI `Button` 加 React Aria `Popover` 下拉里,行外观取注册表 `select` 条目带来的 `menu-styles.ts`(见 `frontend/src/react/boardui/ORIGIN.md`)。@@ -188,7 +188,7 @@ JAV 默认封面(官方封面/预览图)与视频默认大小(大图/- JAV 入库资源查询复用 `sources.javdb` 的身份核对、`SourceTransport` 的 Cookie 与冷却、`HostLimitedTransport` 的 3 秒间隔、`beautifulsoup4==4.15.0` 和 `downloads.parse_magnet`。JavPack 的 `JavDB.magnet.user.js` 0.0.2(GPL-3.0,仓库 revision `b546e1881147e15796c697e8e086db9d3ac0c5be`)只作页面字段参考;它依赖浏览器用户脚本 API,不能直接作为 Python 服务端依赖。Peach 负责评论链接、协议分流、去重、60 秒缓存和最多三页评论的预算,不新增依赖。2026-10-02 单作品只读实测取得 4 条磁链和含 ed2k 的评论页;评论入口从 `.review-tab[data-url]` 读取,受限评论保留来源限制提示。磁链可交现有云下载服务,ed2k 与其他网页链接提供复制。- 磁力优先链复用同一套 `SourceTransport`、`HostLimitedTransport`、`downloads.parse_magnet` 与 Torznab 后备,不引入新的抓取运行时。manko.fun 的页面请求实际落到 `healertanker.com/swx`,响应 `data` 是 basE91 包装的 JSON;实现只移植该公开响应形态与编号精确匹配,不复用会话脚本。Sukebei 直接读搜索表格;JavBus、16mag、OneJAV、Free JAV Torrent 由现有自配 Prowlarr/Jackett 索引器续接。Akiba Online 与 Reddit 只作线索,不自动取磁力。候选按分辨率、做种、推广附件数量与正片体积排序;总文件数不再是一票否决,manko.fun 候选绕过水印门槛,其他来源只能标为待到盘检查。- 云下载后处理复用 `task_run` 后继串行、`process_library(retry_ids=...)`、垃圾复核的 `AUTO_TRASH_SCORE`、`organize.build_plan(asset_ids=...)`、SQLite backup 与整理批次日志。没有另造第二套刮削、垃圾词库或移动器。-- 抓取入口的复用缺口见 [抓取复用审计](SCRAPING_AUDIT.md) 与 [逐脚本 CSV](scraping-audit.csv);跨用户安装、来源网络、Cookie GUI、最高可得画质与图像清单按 [ADR-0024](adr/0024-mark-manifest-not-bundled-bytes.md)。私有后缀判断用 tldextract 5.3.2(BSD-3-Clause),随包 PSL、`suffix_list_urls=()`、`cache_dir=None`、`include_psl_private_domains=True`;Instaloader 4.15.3 与 browser_cookie3 不进正式依赖。HTTPX(BSD-3-Clause)、curl_cffi(MIT)、Pillow、amane 桥与现有候选缓存是正式基础,请求节拍用 `scripting.RateLimiter`/`HostLimiter`。+- 抓取入口的复用缺口见 [抓取复用审计](SCRAPING_AUDIT.md) 与 [逐脚本 CSV](scraping-audit.csv);跨用户安装、来源网络、Cookie GUI、最高可得画质与图像清单按 [ADR-0024](adr/0024-mark-manifest-not-bundled-bytes.md)。私有后缀判断用 tldextract 5.4.0(BSD-3-Clause),随包 PSL、`suffix_list_urls=()`、`cache_dir=None`、`include_psl_private_domains=True`;Instaloader 4.15.3 与 browser_cookie3 不进正式依赖。HTTPX(BSD-3-Clause)、curl_cffi(MIT)、Pillow、amane 桥与现有候选缓存是正式基础,请求节拍用 `scripting.RateLimiter`/`HostLimiter`。- 采集 GUI 用 React island、CredentialStore、HTTPX、Pillow 与 BackgroundJob,`jav_cover_fetch` 同时服务界面与 CLI;Peach 保留域内凭据、来源路由、预算、冷却、番号身份与高清替换策略。Cookie 文本用标准库 SimpleCookie/MozillaCookieJar 解析,不导入 pickle。- 删除失效链接与资源同步的执行阶段用 `BackgroundJob.start_result` 存终态回执;刷新只查状态,写入不自动重放,确认与检查结果过期门槛照旧有效。- 关注进度用 Fieldset 与 Progress;完成时保留内容取数,按作者检查用 `sources` 范围参数,报错作者用现有身份解析。@@ -372,7 +372,7 @@ A 盘垃圾隔离使用短名称 `peach-purge-<32 位 UUID>.peach-quarantine`,| 厂牌字标名录 | 发行商与平台自己的厂牌名录,入口在 `harvest_maker_directories.DIRECTORIES`:MGStage `/ppv/makers.php`、Prestige `/api/maker`、KMP `/label`(大半是 SVG)与 jae.tokyo 展会名录 | slug↔账本对账(四路判据,空罗马字形不可比)、按形状分三张指定表(方标装大位、字标烤方两位共用、方标只管小位)、改地址后靠 provenance 边车重新收人、复核 CSV 与安装闸门。存入口不存图片地址(KMP 文件名带时间戳),不推导 URL、不猜名字 || JAV 元数据查询 | 每个站只有一个归属(ADR-0048):自写解析器持有 r18.dev、DMM/FANZA、一本道、FC2、fc2cmadb、FC2PPV-DB、JAVten、JavArchive、AVBase、JavBus、javdb,片商官网与转载站经 amane 桥(ADR-0043、ADR-0044);MetaTube SDK `6a5e6128c725187aeaf921d48ed7d9cd9f30671b`(Apache-2.0)只作来源身份与丰富字段模型参考;DMM 的 GraphQL 接口地址、`ppvContent` 与 `legacySearchPPV` 两条查询的取法参照 OpenAver(MIT)`core/scrapers/dmm.py`,cid 匹配与身份核对是 Peach 自己的(ADR-0059) | 只发规范番号;Peach 管来源链(`metadata_routes`)、`provider_id`/`content_id`、逐字段优先级、原始与目录证据、健康统计、候选复核与 ledger 投影。amane 的 POC 判据与字段缺口见 [取证](reference-snapshots/amane-crawlers-poc.md) || Javinizer-Go 历史快照 | `sources/metadata/javinizer-go/<番号>/<来源>.json`,由 Javinizer-Go v1.5.x(MIT,`dd56998328d078c9baf68ff4fde2e6fcaa2a691a`)在 2026-09 之前取回;二进制与快照留在磁盘,没有调用路径(ADR-0044) | 只作离线证据:封面层读它的 `cover_url` 与 `content_id`,别名解析读企划名义,账本里 `javinizer:<站>:<字段>` 的 provenance 按 `metadata_policy.HISTORICAL_SOURCES` 认级别。`scrape_codes` 写进同一目录的新快照 `provider` 记解析器名、`provider_version` 记 Peach 版本 |-| amane 刮削站点(官方档 makers、prestige、faleno、dahlia、mgstage;转载站 fc2club、freejavbt、airav、avsox) | amane `7a980aff9c503f7a5815864d62a6ef309a27808a`(v0.18.0,GPL-3.0),经 `tools/amane-bridge/` 薄桥子进程接入(ADR-0043、ADR-0048;`makers` 是 amane 的 `official` 模块):独立 `pyproject.toml`/`uv.lock` 钉 sha,venv 建在 `<数据根>/tools/amane-bridge/.venv`,桥只用 `amane.crawlers.sites.<站>` 与 `amane.net.*`,不碰 `aggregate` | GPL-3.0 与 Peach 的 AGPL-3.0-or-later 以进程边界相接,仓库与分发件只含清单、锁与桥脚本,amane 源码由 uv 按锁下载。升级核对清单、锁、字段语义与失败分档(`api_error` 归服务端失败;Prestige 横向封套投影到封面、竖版正封到海报;发行日按 MGS 配信规则结算);设置页显示实际安装版本。上游 `WebClient` 以 `verify=False` 发公开请求、不带凭据,每次子进程 import 约 0.6~1 秒。Peach 管来源链位置、身份核对、冷却、候选与结算 |+| amane 刮削站点(官方档 makers、prestige、faleno、dahlia、mgstage;转载站 fc2club、freejavbt、airav、avsox) | amane `cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd`(v0.20.0,GPL-3.0),经 `tools/amane-bridge/` 薄桥子进程接入(ADR-0043、ADR-0048;`makers` 是 amane 的 `official` 模块):独立 `pyproject.toml`/`uv.lock` 钉 sha,venv 建在 `<数据根>/tools/amane-bridge/.venv`,桥只用 `amane.crawlers.sites.<站>` 与 `amane.net.*`,不碰 `aggregate` | GPL-3.0 与 Peach 的 AGPL-3.0-or-later 以进程边界相接,仓库与分发件只含清单、锁与桥脚本,amane 源码由 uv 按锁下载。字段、失败分档与无写入 POC 见 [上游复核](reference-snapshots/upstream-review.md)。Prestige 封套与正封分别投影封面和海报,配信日不作发行日;AIRAV 不解析试看时长。上游 `WebClient` 以 `verify=False` 发公开请求、不带凭据;403/406 可另轮换三次指纹,Peach 保持 60 秒子进程总时限。Peach 管来源链位置、身份核对、冷却、候选与结算 || 已确认厂牌的目录归位 | Javinizer-Go v1.5.2 organizer(MIT)只作冲突预检、模板化目录和回滚边界的协议参考,不调用它,不让它持有 Peach ledger | `rehome_unknown_jav.py` 只消费人工确认映射;先出逐文件 CSV,拒绝扁平化重名与厂牌冲突,SQLite 备份后移动文件并同步 Peach 路径/实体 provenance || FC2 目录元数据与跨号证据 | 已缓存的 fc2cmadb Inertia `article`/评论;Javinizer-Go v1.5.2 的 FC2 解析器(MIT)只作商品页字段边界参考 | 旧文章仍有标题、原始标签、日期、时长、卖家、FC2 CDN 封面与 `comments`(2026-08-31 登录态实测);无歧义标签译成现有词表,标题/标签进 `/review`,`w1200` 封面过尺寸与解码门槛落生成产物;pair、合集/分片保护、hash/时长/尺寸佐证、库外 evidence、健康统计与复核归 Peach,不依赖 FC2-Leak-Detector/JavSP,镜像候选不直写 ledger || 缺索引 MP4 重建 | untrunc(anthwlock,GPL-2.0,用户自行解压到 `<数据根>/tools/untrunc/`,也认 `PEACH_UNTRUNC` 与 PATH),`-n -s -dst` 借一部同编码器的完整片子当参照切 `mdat`;不随 Peach 分发,「运行信息」给下载入口 | `src/peach/mp4recover.py` 挑参照(同目录文件名最近的先试,最多 4 部)、验收(解码错误 ≤3 行、音视频时长差 ≤5%)、换回原路径并把坏原件改名成同目录的 `.文件名.peach-original`;缺整个 `moov` 的片子哪里都打不开,所以结果替换原文件,不像缺 `ctts` 那样另存头。实测见 [取证](SOURCING.md#媒体与关注实测) |diff --git a/docs/reference-snapshots/upstream-review.md b/docs/reference-snapshots/upstream-review.mdnew file mode 100644index 000000000..ef6097491--- /dev/null+++ b/docs/reference-snapshots/upstream-review.md@@ -0,0 +1,50 @@+# 上游依赖与参考来源复核++复核日期:2026-10-13(Asia/Taipei)。本文件是人工复核笔记,不登记为可覆盖的上游快照;原文字节、哈希与 revision 见 [来源登记](../reference-sources.json)。++## amane 桥++采用 [amane 0.20.0](https://github.com/sqzw-x/amane/releases/tag/v0.20.0),固定 revision `cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd`,GPL-3.0。Python 下限仍为 3.14,桥以独立 venv 和子进程消费;不引入其数据库、整理、任务中心或界面。++[源码差异](https://github.com/sqzw-x/amane/compare/7a980aff9c503f7a5815864d62a6ef309a27808a...cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd)共 29 个提交。适用于 Peach 的变化是 FreeJavBT、AIRAV 精确检索,AIRAV 详情解析及网络层指纹轮换。演员、kin8、giga、字幕、整理与超分的变化不扩展 Peach 来源链;每站唯一归属、身份核对、候选与结算仍由 Peach 管理。++实测:所有 20 个桥声明的爬虫类可导入,`SearchQuery`、`FetchOptions`、`MediaMetadata` 与 17 档失败原因兼容。真实解析器配合合成页面确认 AIRAV、FreeJavBT 精确命中 `ABW-032`,查 `ABW-03` 时不取相近条目;AIRAV 的标题、演员、厂牌、发行日、标签、剧情与封面可解析,片长为空,不采用固定试看时长。++只读在线查询 `ABW-032`:Prestige 2.48 秒、AIRAV 2.54 秒取得同一番号,FreeJavBT 5.32 秒明确未命中。Prestige 返回片长 190 分钟,AIRAV 不给片长;Prestige 配信日与发行日的分离仍按 Peach 既有规则处理。上游测试数据仓库请求为 HTTP 404,真实 fixture 未取得,合成页面不能作为该站所有作品均可抓取的证据。++`max_retries=1` 限普通失败重试;403/406 另可轮换三次 TLS 指纹,单个地址最多五次请求。Peach 保持整次查询 60 秒子进程总时限,超时终止并报可重试失败,不按尝试次数推导完成时长;桥不启用浏览器或 solver。公开请求的 TLS 行为沿用上游,未用于证明 Peach 生产 HTTPS 验收。++桥锁文件同时覆盖 PR #40、#42 的传递依赖要求:Mako 1.4.3、pydantic-ai-slim / pydantic-graph 2.55.0。没有新增直接依赖;传递更新包括 anthropic、openai、genai-prices,桥不调用它们的模型服务。++## Dependabot PR++PR #41、#43、#44、#45、#46、#47、#48 在隔离工作树按项目接管入口处理,保持一 PR 一提交。PR #43 的锁冲突保留主线 `pyahocorasick` 并采用 Pydantic 2.14.0,`uv lock --check` 通过。npm vendor、主界面与独立页面包按清单重建。++Motion 14.0.0 的大版本删除内部兼容 API。Peach 只通过 `motion` 公共入口使用,没有直接引用 `framer-motion`、`motion-dom`、`motion-utils` 或被移除的 timeline 内部 API;版本由其内部精确依赖保持一致,类型检查、组件与浏览器回归由项目完整测试入口核验。++## 参考来源判断++运行项目 `check_reference_updates.py check --diff`,覆盖 weekly、monthly、quarterly;manual 不在本轮范围。47 个来源中 28 个未变化,19 个报告漂移,另有 amane 运行依赖前移。14 份原文按完整 SHA-256 与 Git revision 接受;5 份人工笔记保留。++| 来源 | 实测变化 | Peach 判断 |+| --- | --- | --- |+| Fluid springs、tabs | 名称与 import 从 Framer Motion 改为 Motion;弹簧参数未变 | 接受原文,Peach 已用 `motion` |+| Vercel report-design | 增加 Vercel 官方 Logo 下载说明 | 上游品牌专属,不采用其 Logo |+| Vercel web-interface-guidelines | 增加细指针设备页面 overscroll 建议与混合输入限制 | 保留现有滚动行为,本轮不扩展为界面改动 |+| Bruno README | 增加 Hindi 翻译链接 | 接受原文,无运行影响 |+| amane 路由与 README | kin8 欧美归类、giga 会话与 Referer、欧美日期号年份形态及称呼 | 锁定证据,Peach 仅使用已接入来源 |+| OpenAver README | 女优排行 Top 25 | 原文接受,不改 Peach 排行数量 |+| SakuraMediaBE README | 新增番号解析开源项目致谢 | 仅参考出处,不新增依赖 |+| SakuraMedia README | VR 外部播放与插件市场说明 | 同类产品信息,不导入其播放协议 |+| JavBoss README | v2.1.2 下载与设置路径说明 | 同类产品信息,不改变 Peach 部署 |+| MDCz README | 平台、安装包、便携数据与自动更新说明 | 保留 Peach 既有分发和运行边界 |+| Cuelume README | press/release、unlock、卸载绑定与关闭声音语义 | 候选参考,无直接消费者,不安装 |+| Atlas README | 女优资料来源改用 JavBus,注明 minnano-av 反爬 | Peach 有自己的传输与来源冷却,不以 README 声明推断本机站点故障 |++PixivUtil2 从 `fc0f9adf44e590dde9242b3755b53528f159720a` 前移到 `22b5fdc9fc83a976d8f4f6f6acbb4d2d3d542f21`,三个提交处理 FFmpeg 8+ 动图转换、`x-userid` 登录身份和独立错误日志。`PixivBrowserFactory.py` 只增登录 ID 赋值,Peach 采用的公开 FANBOX 传输边界不变;保留既有取证 revision,不复制登录逻辑。++OpenAver 从 `8cc17e50453d9f69a81f5fee1a072df80f7aab73` 前移到 `502278a3e09c7520838ffb00b2ff080323a4cdcb`,共 318 个提交;相关推荐源码未变化。DMM 改代理 session、连通探测与失败分类,GraphQL 查询取法不变;自订来源、桌面路径翻译和图片公网守卫属于上游功能,Peach 不迁移。本轮保留相关推荐人工证据及其固定 revision。++`fiu758-studio-logo-discovery`、`rule34-follow-tags-and-collections` 的漂移是人工笔记与动态 HTML 的比较;`f95-masked-gofile-media` 返回的脚本哈希与笔记记录相同,协议未变化。这三份和 FANBOX、OpenAver 的人工笔记均不执行 `accept`,避免被网页或脚本字节覆盖。++数据层、API 和页面结构未改;真实 ledger、媒体与凭据未写入。静态、组件、桌面及手机浏览器和生产运行的验收结果以项目验证记录及 [运行状态](../STATUS.md) 为准。diff --git a/docs/reference-snapshots/upstream/amane-content-routes.md b/docs/reference-snapshots/upstream/amane-content-routes.mdindex 0d30a4b74..89a18985e 100644--- a/docs/reference-snapshots/upstream/amane-content-routes.md+++ b/docs/reference-snapshots/upstream/amane-content-routes.md@@ -1,6 +1,6 @@# 类型路由与站点特性-> 默认 `content_routes` 的取舍、各源覆盖与站点特例. 资格真值 / `field_priority` / `field_blacklist` 编译见 [config.md](config.md), 建图见 [task-system.md](task-system.md). 成员与顺序以 `config/manager.py` 的默认表为准, 本文不列出默认表.+> 默认 `content_routes` 的取舍、各源覆盖与站点特例. 资格真值 / `field_priority` / `field_blacklist` 编译见 [config.md](config.md), 建图见 [task-system.md](task-system.md). 成员与顺序以 `config/manager.py` 的默认表为准, 本文不列出.站点可被搜索命中, 不构成纳入默认路由的条件.@@ -13,10 +13,12 @@## 类型取舍+类型表示路由归属, 無修正由马赛克标记判定.+| 类型 | 意图 | 不纳入默认表 ||------|------|----------|| censored | 中文索引 → FANZA 权威图文 → 稳定镜像 → 可空返回的官网 / r18 | 单厂牌 API (Prestige 等对每个候选 SKU 都请求); iqqtv (每部有碼片都会请求中文站; 需要时加入本路由再把 `field_priority.title` 提前) |-| uncensored | 有独立无碼区的索引 + 无碼专站 | kin8 (从任意番号抽数字拼详情, 会误匹配) |+| uncensored | 有独立无碼区的索引 + 无碼专站 | — || fc2 | javdb 分类 + 专用索引 + 官方电子市场 + BT 排在链尾 | fc2club (跳转镜像不稳定) || chinese | 有國產区的中文站第一, 综合 / BT 兜底 | javdb 当第一源 || amateur | MGS 第一; FANZA 有素人频道; javbus 首页能见到 `300MIUM-*` | MGS 不纳入有碼默认, 否则 MIDV 会请求 MGS |@@ -25,19 +27,19 @@## 综合索引-**javdb.com** — 导航分有碼 / 無碼 / 歐美 / FC2 / 動漫, **没有国产分区** (个别国产厂当日本片商收录, 热搜有「麻豆」, 不是独立目录). 搜索带 `locale=zh`; 几乎所有类型的默认成员; 默认 `use_proxy=True`, 部分网络会命中版权地域拦截页. 它是独立层而非 FANZA 的镜像: 中文 `current-title`, 隐藏 `origin-title` 来自零售目录 (爬虫不取); 社区评分非 FANZA 店评; 封面在 `jdbstatic.com` (通常重编码); 片商名跟官网英文商标. **不解析 plot.**+**javdb.com** — 导航分有碼 / 無碼 / 歐美 / FC2 / 動漫, **没有国产分区** (个别国产厂当日本片商收录, 热搜有「麻豆」, 不是独立目录). 搜索带 `locale=zh`; 几乎所有类型的默认成员; 默认 `use_proxy=True`, 部分网络会命中版权地域拦截页. 它是独立层而非 FANZA 的镜像: 中文 `current-title`, 隐藏 `origin-title` 来自零售目录 (爬虫不取); 社区评分非 FANZA 店评; 封面在 `jdbstatic.com` (通常重编码); 片商名跟官网英文商标. **不解析 plot.** 欧美条目年份有 2 位与 4 位两套写法, 同一检索词只命中其中一套.-**javbus.com** — 有碼首页、無碼 `/uncensored` (日期番号风格); 有碼首页会混素人号. 搜索回退带 `parent=ce`, 无碼主要靠 `/{number}` 直达. 有碼详情 `extrafanart` 热链 `pics.dmm.co.jp`, 发行日与 DMM 配信日相同, 片商用 DMM 日文名. 图片 (`/pics/`) 校验同源 Referer (见 [crawlers.md](crawlers.md)). **不解析 plot**; 无碼是另一套目录. 欧美入口指向 `javbus.org`, 该域正文可以是字面 `404`, 关公告后没有影片网格, `javbus.hair` 证书无效 — **欧美目录不可用**, 不允许放入欧美默认路由.+**javbus.com** — 有碼首页、無碼 `/uncensored` (日期番号风格); 有碼首页会混素人号. 搜索回退带 `parent=ce`, 无碼主要靠 `/{number}` 直达. 有碼详情 `extrafanart` 热链 `pics.dmm.co.jp`, 发行日与 DMM 配信日相同, 片商用 DMM 日文名. 图片 (`/pics/`) 校验同源 Referer (见 [crawlers.md](crawlers.md)). **不解析 plot**; 无碼是另一套目录. 欧美入口指向 `javbus.org`: 正文可以是字面 `404`, 关公告后没有影片网格, `javbus.hair` 证书无效 — **欧美目录不可用**, 不允许放入欧美默认路由.**freejavbt.com** — 显式分有碼 / 無碼 / 歐美 / FC2, 首页还有「國產」「成人動畫」. 覆盖最宽的 BT 向索引, 元数据质量一般, 适合排在链尾.-**avsox.click** — 日本无码情报站. 同源 AVMOO = 有碼, AVHEAT = 欧美 (`avheat.shop`), 项目只接入 AVSOX. 搜索对有无短横线都能命中, `_` 与 `-` 是两部; 对不上不取第一条.+**avsox.click** — 日本无码情报站. 同源 AVMOO = 有碼, AVHEAT = 欧美 (`avheat.shop`), 项目只接入 AVSOX. 搜索对有无短横线都能命中, `_` 与 `-` 是两部; 对不上不取首条.-**jav321.com** — DMM 目录镜像; 有碼与素人排在链尾, 无无碼 / FC2 / 欧美入口.+**jav321.com** — DMM 目录镜像; 有碼与素人排链尾, 无无碼 / FC2 / 欧美入口.**javlibrary.com** — 常命中 Cloudflare 等待页, 不纳入默认表.-**avbase.net** — 名单来自用户投稿而非官方; 受 Cloudflare managed challenge 保护, 客户端指纹不过关即拦截. 不纳入默认表: 进入 `censored` 会让每次刮削多一次可能退化为浏览器 / solver 的请求.+**avbase.net** — 名单来自用户投稿而非官方; 受 Cloudflare managed challenge 保护, 指纹不过关即拦截. 不纳入默认表: 进入 `censored` 会让每次刮削多一次可能退化为浏览器 / solver 的请求.**airav.io** — 中文标题补强, 不是国产分区; 国产路由里置于 iqqtv 之后.@@ -51,21 +53,21 @@**adult.contents.fc2.com** — 官方 FC2 电子市场, 商品 ID 纯数字; 元数据偏卖家自填, 但属第一方, 置于 javdb / fc2ppvdb 之后.-**fc2ppvdb.com** — FC2 专用索引, 可能被 Cloudflare Access denied; 拦截后回退到后续源.+**fc2ppvdb.com** — FC2 专用索引, 可能被 Cloudflare Access denied; 拦截后回退后续源.**fc2club.top** — 打开后跳转镜像, 不稳定, 不纳入默认表.**getchu.com** — 美少女游戏 / 同人 / 动画周边, 商品是数字 id; 里番靠路径关键词分类, 所以是里番第一源.-**kin8tengoku.com** — 从任意番号抽数字拼详情页, 会误匹配其它番号, 不纳入默认表.+**kin8tengoku.com** — 单厂牌, 不纳入默认表. 番号 `KIN8-####` 的类型归欧美链 (第一源 theporndb, 按 4 位 `movie_id` 对齐), `release` 恒为空; 番号须带 `kin8` / `kin8tengoku` 前缀, 数字段 1–9999 补零为 4 位拼详情页, 越界或无前缀不发 HTTP. 页是 Next.js 应用, 可解析的只剩 `og:` 元标签与 CSS-module 类名.-**theporndb.net** — 未登录跳转 `/login`; GraphQL 无 token 时影片 / 演员爬虫都直接 `None`. 欧美路由第一, 与影片共用 `site_config.api_token`. 欧美条目 `code` 是 `studio:title-slug`, 与文件名番号不同构, 日期号 (`Studio.YY.MM.DD`) 按片商 + 发布日期确认.+**theporndb.net** — 未登录跳转 `/login`; 无 token 时影片 / 演员爬虫都直接 `None`. 欧美路由第一, 与影片共用 `site_config.api_token`. 欧美条目 `code` 是 `studio:title-slug`, 与文件名番号不同构, 日期号 (`Studio.YY.MM.DD`) 按片商 + 发布日期确认.**official** — Will / Outvision 官网集群; 前缀对不上不发 HTTP.**r18dev** — 未配 PG 直接 skip; dump 图片补全后是 DMM CDN, 见 [crawlers.md](crawlers.md).-**prestige / faleno / dahlia / giga** — 单厂牌, 对每个候选 SKU 都发 API 请求, 不纳入默认表; faleno / dahlia 同属一个 WordPress `works` 主题 (共用 `sites/wp_works.py`), faleno.jp 兼发 maryGOLD 与 JimmyScandal, 发行商按番号前缀判定. **xcity.jp** 与 DMM 重叠且年龄墙严格, 同样不纳入.+**prestige / faleno / dahlia / giga** — 单厂牌, 对每个候选 SKU 都发 API 请求, 不纳入默认表; faleno / dahlia 同属一个 WordPress `works` 主题 (共用 `sites/wp_works.py`), faleno.jp 兼发 maryGOLD 与 JimmyScandal, 发行商按番号前缀判定. **giga** 的检索与商品页要求年龄确认会话 (经 `/cookie_set.php` 领取) 与站内 Referer, 缺任一项都只回年龄确认页. **xcity.jp** 与 DMM 重叠且年龄墙严格, 同样不纳入.## 官网与 FANZA@@ -82,4 +84,4 @@## 覆盖缺口-**javdb 国产**: 国产路由以 iqqtv 为第一源, javdb 只当搜得到就用的兜底. **javdb 欧美**: 欧美不是主库存, 编号形态与 JAV 番号不同, 地域拦截时无法核列表; 欧美默认第一源为 theporndb, 未接入的 AVHEAT 优先级仍低于它.+**javdb 国产**: 国产路由以 iqqtv 为第一源, javdb 只当搜得到就用的兜底. **javdb 欧美**: 欧美不是主库存, 编号形态与 JAV 番号不同, 地域拦截时无法核列表; 欧美默认第一源为 theporndb, 未接入的 AVHEAT 优先级仍低于它. **giga**: 商品页没有 genre 链接, 该来源的 `tags` 恒为空.diff --git a/docs/reference-snapshots/upstream/fluid-springs.json b/docs/reference-snapshots/upstream/fluid-springs.jsonindex 5583937f4..ed03a89e1 100644--- a/docs/reference-snapshots/upstream/fluid-springs.json+++ b/docs/reference-snapshots/upstream/fluid-springs.json@@ -2,7 +2,7 @@"$schema": "https://ui.shadcn.com/schema/registry-item.json","name": "springs","title": "Spring Animations",- "description": "Spring animation token presets for Framer Motion (fast, moderate, slow).",+ "description": "Spring animation token presets for Motion (fast, moderate, slow).","files": [{"path": "registry/default/lib/springs.ts",diff --git a/docs/reference-snapshots/upstream/fluid-tabs.json b/docs/reference-snapshots/upstream/fluid-tabs.jsonindex a502e8540..6f60bc4f2 100644--- a/docs/reference-snapshots/upstream/fluid-tabs.json+++ b/docs/reference-snapshots/upstream/fluid-tabs.json@@ -4,7 +4,7 @@"title": "Tabs","description": "Segmented control tabs with sliding active indicator, fluid hover, and spring animations. Built on Radix UI Tabs.","dependencies": [- "framer-motion",+ "motion","@radix-ui/react-tabs","lucide-react"],@@ -23,7 +23,7 @@"files": [{"path": "registry/radix/tabs.tsx",- "content": "\"use client\";\n\nimport {\n useRef,\n useState,\n useCallback,\n useEffect,\n useLayoutEffect,\n createContext,\n useContext,\n forwardRef,\n Children,\n cloneElement,\n isValidElement,\n type ComponentPropsWithoutRef,\n} from \"react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nimport type { IconComponent } from \"@/lib/icon-context\";\nimport { cn } from \"@/lib/utils\";\nimport { spring } from \"@/lib/springs\";\nimport { fontWeights } from \"@/lib/font-weight\";\nimport { useShape } from \"@/lib/shape-context\";\nimport { SizeProvider, useSize, type SizeVariant } from \"@/lib/size-context\";\nimport { useSurface } from \"@/lib/surface-context\";\nimport { surfaceClasses } from \"@/lib/surface-classes\";\nimport { useFluidHover } from \"@/hooks/use-fluid-hover\";\n\n// ---------------------------------------------------------------------------\n// Tabs is a segmented control: a muted track (TabsList) holding one raised\n// pill for the selected tab, a faint hover pill that previews the next click,\n// and a focus ring for the keyboard. All three are absolutely positioned\n// layers that travel across the tab rects measured by useFluidHover; the tabs\n// themselves stay transparent. Selection moves on spring.moderate, hover and\n// focus on spring.fast, and labels change weight without shifting layout.\n// ---------------------------------------------------------------------------\n\n/* ─────────────────────── Contexts ─────────────────────── */\n\ninterface TabsValueOrderContextValue {\n valueOrder: string[];\n setValueOrder: (order: string[]) => void;\n selectedValue: string | undefined;\n}\n\nconst TabsValueOrderContext = createContext<TabsValueOrderContextValue | null>(null);\n\ninterface TabsListContextValue {\n registerTab: (index: number, value: string, el: HTMLElement | null) => void;\n hoveredIndex: number | null;\n selectedValue: string | undefined;\n /** Optimistically set selectedIdx so the indicator moves immediately on click. */\n setOptimisticIdx: (index: number) => void;\n}\n\nconst TabsListContext = createContext<TabsListContextValue | null>(null);\n\nfunction useTabsList() {\n const ctx = useContext(TabsListContext);\n if (!ctx) throw new Error(\"TabItem must be used within a TabsList\");\n return ctx;\n}\n\n/* ─────────────────────── Tabs (Root) ─────────────────────── */\n\ninterface TabsProps\n extends Omit<\n ComponentPropsWithoutRef<typeof TabsPrimitive.Root>,\n \"onValueChange\" | \"onSelect\"\n > {\n /** Controlled value (takes precedence over selectedIndex). */\n value?: string;\n /** Called when the active tab changes. */\n onValueChange?: (value: string) => void;\n /** Index-based controlled alternative. */\n selectedIndex?: number;\n /** Called with the new index when the active tab changes. */\n onSelect?: (index: number) => void;\n /** Pins the segmented control to one step of the size ladder (default 36px\n * outer, compact 28px). Omitted, it follows the\n * surrounding SizeProvider. */\n size?: SizeVariant;\n}\n\nconst Tabs = forwardRef<HTMLDivElement, TabsProps>(\n (\n {\n value,\n onValueChange,\n selectedIndex,\n onSelect,\n defaultValue,\n size,\n children,\n ...props\n },\n ref\n ) => {\n const [valueOrder, setValueOrder] = useState<string[]>([]);\n const [uncontrolledValue, setUncontrolledValue] = useState<string | undefined>(\n defaultValue\n );\n // Keep the current array when the order is unchanged: React then bails\n // out of the update, so a TabsList re-reporting the same tabs (a remount,\n // Strict Mode's double effects) doesn't re-render the whole root.\n const updateValueOrder = useCallback((order: string[]) => {\n setValueOrder((current) => {\n if (\n current.length === order.length &&\n current.every((value, index) => value === order[index])\n ) {\n return current;\n }\n return order;\n });\n }, []);\n\n // Resolve value: explicit value > selectedIndex lookup > uncontrolled state.\n // Uncontrolled with no defaultValue falls back to the first tab so the\n // FF layer's selectedValue matches what the primitive shows.\n const resolvedValue =\n value ??\n (selectedIndex != null\n ? valueOrder[selectedIndex]\n : uncontrolledValue ?? valueOrder[0]);\n\n const handleValueChange = useCallback(\n (newValue: string) => {\n // Local state only backs uncontrolled use. With value or selectedIndex\n // the parent owns selection, so this just reports the change, by value\n // and by index.\n if (value === undefined && selectedIndex == null) {\n setUncontrolledValue(newValue);\n }\n onValueChange?.(newValue);\n if (onSelect) {\n const idx = valueOrder.indexOf(newValue);\n if (idx !== -1) onSelect(idx);\n }\n },\n [onValueChange, onSelect, valueOrder, value, selectedIndex]\n );\n\n const root = (\n <TabsValueOrderContext.Provider\n value={{\n valueOrder,\n setValueOrder: updateValueOrder,\n selectedValue: resolvedValue,\n }}\n >\n {/*\n Always controlled: feeding the primitive an undefined-then-defined\n value flips it from uncontrolled to controlled, which Radix warns\n about in dev. valueOrder is empty on the first commit, so fall back\n to an empty-string sentinel — TabsList's layout effect populates\n valueOrder pre-paint, so the corrected value lands before anything\n is visible.\n */}\n <TabsPrimitive.Root\n ref={ref}\n value={resolvedValue ?? \"\"}\n onValueChange={handleValueChange}\n // Arrow keys move focus and select in one step, so the pill follows\n // the keyboard the same way it follows a click.\n activationMode=\"automatic\"\n {...props}\n >\n {children}\n </TabsPrimitive.Root>\n </TabsValueOrderContext.Provider>\n );\n\n // A size prop pins the whole compound (list + items) to one ladder step.\n return size ? <SizeProvider size={size}>{root}</SizeProvider> : root;\n }\n);\n\nTabs.displayName = \"Tabs\";\n\n/* ─────────────────────── TabsList ─────────────────────── */\n\ntype TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = forwardRef<HTMLDivElement, TabsListProps>(\n ({ children, className, ...props }, ref) => {\n const containerRef = useRef<HTMLDivElement>(null);\n // Whether the pointer is over the list: a ref for blur, which reads it at\n // the moment it runs, and the same flag as state for the render, which\n // picks the hover pill's exit from it. Both flip in the same handlers.\n const isMouseInside = useRef(false);\n const [mouseInside, setMouseInside] = useState(false);\n const shape = useShape();\n const sizeClasses = useSize();\n const substrate = useSurface();\n // Active pill lifts 3 levels above substrate (1 above the muted track + 2 for pop).\n // On the page (substrate 1) this lands on surface 4, the original design.\n // Inside a dialog (substrate 5) it lifts to surface 8 instead of staying at 4.\n const indicatorLevel = Math.min(substrate + 3, 8);\n const valueOrderCtx = useContext(TabsValueOrderContext);\n\n // Derive value order from children synchronously\n const values = Children.toArray(children)\n .filter(isValidElement)\n .map((child) => (child.props as { value?: string }).value)\n .filter((v): v is string => typeof v === \"string\");\n // `values` is a new array every render; the serialized key is what the\n // layout effect compares, so it only re-reports on a real change.\n const valueOrderKey = JSON.stringify(values);\n const setValueOrder = valueOrderCtx?.setValueOrder;\n\n // Report value order up to Tabs root\n useLayoutEffect(() => {\n setValueOrder?.(JSON.parse(valueOrderKey) as string[]);\n }, [setValueOrder, valueOrderKey]);\n\n // Fluid hover\n // axis \"x\": the tab nearest the cursor horizontally wins, so the list's\n // padding never leaves the hover pill without a target.\n const {\n activeIndex: hoveredIndex,\n setActiveIndex: setHoveredIndex,\n itemRects,\n handlers,\n registerItem,\n measureItems,\n } = useFluidHover(containerRef, { axis: \"x\" });\n\n // Register items: bridge from (index, value, el) → registerItem(index, el)\n const registerTab = useCallback(\n (index: number, _value: string, el: HTMLElement | null) => {\n registerItem(index, el);\n },\n [registerItem]\n );\n\n // Measure on children change (resizes are covered by useFluidHover's\n // own container ResizeObserver)\n useEffect(() => {\n measureItems();\n }, [measureItems, children]);\n\n // Track mouse inside\n const handleMouseMove = useCallback(\n (e: React.MouseEvent) => {\n isMouseInside.current = true;\n setMouseInside(true);\n handlers.onMouseMove(e);\n },\n [handlers]\n );\n\n // Flip the flag before clearing the hover index: the hover pill's exit is\n // chosen from it, sliding back into the selected pill or fading in place.\n const handleMouseLeave = useCallback(() => {\n isMouseInside.current = false;\n setMouseInside(false);\n handlers.onMouseLeave();\n }, [handlers]);\n\n // Focus ring\n const [focusedIndex, setFocusedIndex] = useState<number | null>(null);\n const selectedValue = valueOrderCtx?.selectedValue;\n const selectedIdx =\n selectedValue !== undefined ? values.indexOf(selectedValue) : -1;\n\n // The pills follow optimisticIdx, not selectedIdx. A click sets it at once,\n // so the pill moves before controlled state round-trips; it is then\n // resynced, during render, whenever the resolved selection changes (arrow\n // keys, a parent). The first render syncs too: syncedIdx starts unset.\n const [optimisticIdx, setOptimisticIdx] = useState<number | null>(null);\n const [syncedIdx, setSyncedIdx] = useState<number | undefined>(undefined);\n if (syncedIdx !== selectedIdx) {\n setSyncedIdx(selectedIdx);\n setOptimisticIdx(selectedIdx >= 0 ? selectedIdx : null);\n }\n\n const activeSelectedIdx = optimisticIdx;\n const selectedRect =\n activeSelectedIdx !== null ? itemRects[activeSelectedIdx] : null;\n const hoverRect = hoveredIndex !== null ? itemRects[hoveredIndex] : null;\n const focusRect = focusedIndex !== null ? itemRects[focusedIndex] : null;\n // Hovering the selected tab needs no hover pill (the active pill is already\n // there); hovering any other tab shows one and dims the active pill.\n const isHoveringSelected = hoveredIndex === activeSelectedIdx;\n const isHovering = hoveredIndex !== null && !isHoveringSelected;\n\n // Auto-assign _index to children.\n // Skip plain DOM elements: injecting _index into e.g. a <div>\n // triggers React's unknown-prop warning.\n const indexedChildren = Children.map(children, (child, i) => {\n if (isValidElement(child) && typeof child.type !== \"string\") {\n return cloneElement(child, { _index: i } as Record<string, unknown>);\n }\n return child;\n });\n\n return (\n <TabsListContext.Provider\n value={{\n registerTab,\n hoveredIndex,\n selectedValue,\n setOptimisticIdx,\n }}\n >\n <TabsPrimitive.List\n ref={(node) => {\n (\n containerRef as React.MutableRefObject<HTMLDivElement | null>\n ).current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref)\n (\n ref as React.MutableRefObject<HTMLDivElement | null>\n ).current = node;\n }}\n onMouseMove={handleMouseMove}\n onMouseLeave={handleMouseLeave}\n // Focus also sets the hover index, so keyboard and mouse share one\n // highlight state. The ring draws only when the tab matches\n // :focus-visible, so a mouse click (which focuses too) shows none.\n onFocus={(e) => {\n const trigger = (e.target as HTMLElement).closest('[role=\"tab\"]');\n if (!trigger) return;\n const indexAttr = trigger.getAttribute(\"data-fluid-hover-index\");\n if (indexAttr != null) {\n const idx = Number(indexAttr);\n setHoveredIndex(idx);\n setFocusedIndex(\n (e.target as HTMLElement).matches(\":focus-visible\") ? idx : null\n );\n }\n }}\n // Focus moving between tabs stays inside the list and is ignored.\n // Leaving the list drops the ring, but the hover highlight stays\n // while the mouse still rests on a tab.\n onBlur={(e) => {\n if (containerRef.current?.contains(e.relatedTarget as Node)) return;\n setFocusedIndex(null);\n if (isMouseInside.current) return;\n setHoveredIndex(null);\n }}\n className={cn(\n // segmentPad + segmentItem add up to the ladder's control height\n // (36px default, 28px compact) so the segmented control's outer\n // box lines up with buttons, selects, and inputs beside it.\n \"relative inline-flex items-center select-none bg-muted\",\n sizeClasses.segmentPad,\n shape.container,\n className\n )}\n {...props}\n >\n {/* Active segment indicator */}\n {selectedRect && (\n <motion.div\n className={cn(\n \"absolute pointer-events-none\",\n // A raised surface (background + shadow), not a tint, so the\n // selected tab lifts off the muted track.\n surfaceClasses(indicatorLevel),\n shape.bg\n )}\n initial={false}\n animate={{\n left: selectedRect.left,\n width: selectedRect.width,\n top: selectedRect.top,\n height: selectedRect.height,\n // Dims to 0.85 while another tab is hovered: the selection\n // reads as \"current\" and the hover pill as \"next\".\n opacity: isHovering ? 0.85 : 1,\n }}\n // The selection travels on spring.moderate and lands without\n // overshoot; the dim is a plain 80ms fade.\n transition={{\n ...spring.moderate,\n opacity: { duration: 0.08 },\n }}\n />\n )}\n\n {/* Hover indicator */}\n <AnimatePresence>\n {/* Born at the selected pill (opacity 0) and sliding out to the\n hovered tab, so the preview reads as leaving the current\n choice. Without a selected pill there is nowhere to start. */}\n {hoverRect && !isHoveringSelected && selectedRect && (\n <motion.div\n className={cn(\n \"absolute pointer-events-none bg-hover\",\n shape.bg\n )}\n initial={{\n left: selectedRect.left,\n width: selectedRect.width,\n top: selectedRect.top,\n height: selectedRect.height,\n opacity: 0,\n }}\n animate={{\n left: hoverRect.left,\n width: hoverRect.width,\n top: hoverRect.top,\n height: hoverRect.height,\n // bg-hover at 0.4 stays well below the active pill.\n opacity: 0.4,\n }}\n // With the mouse outside the list, slide back into the selected\n // pill on spring.moderate while fading over 60ms. With it still\n // inside (now over the selected tab), fade where it is.\n exit={\n !mouseInside && selectedRect\n ? {\n left: selectedRect.left,\n width: selectedRect.width,\n top: selectedRect.top,\n height: selectedRect.height,\n opacity: 0,\n transition: {\n ...spring.moderate,\n opacity: { duration: 0.06 },\n },\n }\n : { opacity: 0, transition: spring.fast.exit }\n }\n // spring.fast so the preview keeps up with the cursor.\n transition={{\n ...spring.fast,\n opacity: { duration: 0.08 },\n }}\n />\n )}\n </AnimatePresence>\n\n {/* Focus ring */}\n <AnimatePresence>\n {/* One ring for the whole list that springs between tabs, drawn\n 2px outside the focused tab's rect and above the tabs (z-20).\n The #6B97FF fallback keeps it visible without the token. */}\n {focusRect && (\n <motion.div\n className={cn(\n \"absolute pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]\",\n shape.focusRing\n )}\n initial={false}\n animate={{\n left: focusRect.left - 2,\n top: focusRect.top - 2,\n width: focusRect.width + 4,\n height: focusRect.height + 4,\n }}\n exit={{ opacity: 0, transition: spring.fast.exit }}\n transition={{\n ...spring.fast,\n opacity: { duration: 0.08 },\n }}\n />\n )}\n </AnimatePresence>\n\n {indexedChildren}\n </TabsPrimitive.List>\n </TabsListContext.Provider>\n );\n }\n);\n\nTabsList.displayName = \"TabsList\";\n\n/* ─────────────────────── TabItem ─────────────────────── */\n\ninterface TabItemProps\n extends ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {\n /** Unique value for this tab. */\n value: string;\n /** Optional leading icon. */\n icon?: IconComponent;\n /** Text label. */\n label: string;\n /** @internal Auto-assigned by TabsList. */\n _index?: number;\n}\n\nconst TabItem = forwardRef<HTMLButtonElement, TabItemProps>(\n ({ value, icon: Icon, label, _index = 0, className, onClick, ...props }, ref) => {\n const internalRef = useRef<HTMLButtonElement>(null);\n const sizeClasses = useSize();\n const { registerTab, hoveredIndex, selectedValue, setOptimisticIdx } = useTabsList();\n\n // Register the button so the list can measure its rect; the cleanup\n // unregisters it so no pill aims at a tab that has gone.\n useEffect(() => {\n registerTab(_index, value, internalRef.current);\n return () => registerTab(_index, value, null);\n }, [_index, value, registerTab]);\n\n const isSelected = selectedValue === value;\n // Hover or selection brightens color and icon stroke; only selection\n // changes weight, so hovering never thickens a label.\n const isActive = hoveredIndex === _index || isSelected;\n\n return (\n <TabsPrimitive.Trigger\n // Composed (not spread-overridable): a consumer onClick must not\n // replace the optimistic indicator jump.\n onClick={(e) => {\n setOptimisticIdx(_index);\n onClick?.(e);\n }}\n ref={(node) => {\n (\n internalRef as React.MutableRefObject<HTMLButtonElement | null>\n ).current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref)\n (\n ref as React.MutableRefObject<HTMLButtonElement | null>\n ).current = node;\n }}\n value={value}\n // Read back by the list's onFocus to map a focused tab to its index.\n data-fluid-hover-index={_index}\n className={cn(\n // outline-none: the list draws one shared focus ring instead.\n // Fixed height (not py) so the text-box trim below doesn't shrink\n // the tab — browsers without text-box support render identically.\n \"relative z-10 flex items-center px-3 cursor-pointer bg-transparent border-none outline-none\",\n sizeClasses.segmentItem,\n sizeClasses.gap,\n className\n )}\n {...props}\n >\n {/* Stroke 1.5 → 2 and muted → foreground on hover or selection, over\n the label's 80ms, so icon and text change together. */}\n {Icon && (\n <Icon\n size={sizeClasses.icon}\n strokeWidth={isActive ? 2 : 1.5}\n className={cn(\n \"transition-[color,stroke-width] duration-80\",\n isActive ? \"text-foreground\" : \"text-muted-foreground\"\n )}\n />\n )}\n {/* Both stacked spans carry the text-box trim so the invisible bold\n sizer and the visible label keep identical boxes. */}\n <span className={cn(\"inline-grid whitespace-nowrap\", sizeClasses.text)}>\n {/* Invisible semibold copy: reserves the bold width up front, so the\n tab doesn't widen when selected and the pills don't jump. */}\n <span\n className=\"col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic]\"\n style={{ fontVariationSettings: fontWeights.semibold }}\n aria-hidden=\"true\"\n >\n {label}\n </span>\n <span\n className={cn(\n \"col-start-1 row-start-1 transition-[color,font-variation-settings] duration-80 [text-box:trim-both_cap_alphabetic]\",\n isActive ? \"text-foreground\" : \"text-muted-foreground\"\n )}\n // Semibold only when selected, via wght + opsz so the width barely\n // moves; the sizer above absorbs what remains.\n style={{\n fontVariationSettings: isSelected\n ? fontWeights.semibold\n : fontWeights.normal,\n }}\n >\n {label}\n </span>\n </span>\n </TabsPrimitive.Trigger>\n );\n }\n);\n\nTabItem.displayName = \"TabItem\";\n\n/* ─────────────────────── TabPanel ─────────────────────── */\n\ninterface TabPanelProps\n extends ComponentPropsWithoutRef<typeof TabsPrimitive.Content> {\n /** Must match a TabItem value. */\n value: string;\n}\n\nconst TabPanel = forwardRef<HTMLDivElement, TabPanelProps>(\n ({ className, ...props }, ref) => {\n return (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\"outline-none\", className)}\n {...props}\n />\n );\n }\n);\n\nTabPanel.displayName = \"TabPanel\";\n\n/* ─────────────────────── Exports ─────────────────────── */\n\nexport { Tabs, TabsList, TabItem, TabPanel };\nexport type { TabsProps, TabsListProps, TabItemProps, TabPanelProps };\n",+ "content": "\"use client\";\n\nimport {\n useRef,\n useState,\n useCallback,\n useEffect,\n useLayoutEffect,\n createContext,\n useContext,\n forwardRef,\n Children,\n cloneElement,\n isValidElement,\n type ComponentPropsWithoutRef,\n} from \"react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { motion, AnimatePresence } from \"motion/react\";\nimport type { IconComponent } from \"@/lib/icon-context\";\nimport { cn } from \"@/lib/utils\";\nimport { spring } from \"@/lib/springs\";\nimport { fontWeights } from \"@/lib/font-weight\";\nimport { useShape } from \"@/lib/shape-context\";\nimport { SizeProvider, useSize, type SizeVariant } from \"@/lib/size-context\";\nimport { useSurface } from \"@/lib/surface-context\";\nimport { surfaceClasses } from \"@/lib/surface-classes\";\nimport { useFluidHover } from \"@/hooks/use-fluid-hover\";\n\n// ---------------------------------------------------------------------------\n// Tabs is a segmented control: a muted track (TabsList) holding one raised\n// pill for the selected tab, a faint hover pill that previews the next click,\n// and a focus ring for the keyboard. All three are absolutely positioned\n// layers that travel across the tab rects measured by useFluidHover; the tabs\n// themselves stay transparent. Selection moves on spring.moderate, hover and\n// focus on spring.fast, and labels change weight without shifting layout.\n// ---------------------------------------------------------------------------\n\n/* ─────────────────────── Contexts ─────────────────────── */\n\ninterface TabsValueOrderContextValue {\n valueOrder: string[];\n setValueOrder: (order: string[]) => void;\n selectedValue: string | undefined;\n}\n\nconst TabsValueOrderContext = createContext<TabsValueOrderContextValue | null>(null);\n\ninterface TabsListContextValue {\n registerTab: (index: number, value: string, el: HTMLElement | null) => void;\n hoveredIndex: number | null;\n selectedValue: string | undefined;\n /** Optimistically set selectedIdx so the indicator moves immediately on click. */\n setOptimisticIdx: (index: number) => void;\n}\n\nconst TabsListContext = createContext<TabsListContextValue | null>(null);\n\nfunction useTabsList() {\n const ctx = useContext(TabsListContext);\n if (!ctx) throw new Error(\"TabItem must be used within a TabsList\");\n return ctx;\n}\n\n/* ─────────────────────── Tabs (Root) ─────────────────────── */\n\ninterface TabsProps\n extends Omit<\n ComponentPropsWithoutRef<typeof TabsPrimitive.Root>,\n \"onValueChange\" | \"onSelect\"\n > {\n /** Controlled value (takes precedence over selectedIndex). */\n value?: string;\n /** Called when the active tab changes. */\n onValueChange?: (value: string) => void;\n /** Index-based controlled alternative. */\n selectedIndex?: number;\n /** Called with the new index when the active tab changes. */\n onSelect?: (index: number) => void;\n /** Pins the segmented control to one step of the size ladder (default 36px\n * outer, compact 28px). Omitted, it follows the\n * surrounding SizeProvider. */\n size?: SizeVariant;\n}\n\nconst Tabs = forwardRef<HTMLDivElement, TabsProps>(\n (\n {\n value,\n onValueChange,\n selectedIndex,\n onSelect,\n defaultValue,\n size,\n children,\n ...props\n },\n ref\n ) => {\n const [valueOrder, setValueOrder] = useState<string[]>([]);\n const [uncontrolledValue, setUncontrolledValue] = useState<string | undefined>(\n defaultValue\n );\n // Keep the current array when the order is unchanged: React then bails\n // out of the update, so a TabsList re-reporting the same tabs (a remount,\n // Strict Mode's double effects) doesn't re-render the whole root.\n const updateValueOrder = useCallback((order: string[]) => {\n setValueOrder((current) => {\n if (\n current.length === order.length &&\n current.every((value, index) => value === order[index])\n ) {\n return current;\n }\n return order;\n });\n }, []);\n\n // Resolve value: explicit value > selectedIndex lookup > uncontrolled state.\n // Uncontrolled with no defaultValue falls back to the first tab so the\n // FF layer's selectedValue matches what the primitive shows.\n const resolvedValue =\n value ??\n (selectedIndex != null\n ? valueOrder[selectedIndex]\n : uncontrolledValue ?? valueOrder[0]);\n\n const handleValueChange = useCallback(\n (newValue: string) => {\n // Local state only backs uncontrolled use. With value or selectedIndex\n // the parent owns selection, so this just reports the change, by value\n // and by index.\n if (value === undefined && selectedIndex == null) {\n setUncontrolledValue(newValue);\n }\n onValueChange?.(newValue);\n if (onSelect) {\n const idx = valueOrder.indexOf(newValue);\n if (idx !== -1) onSelect(idx);\n }\n },\n [onValueChange, onSelect, valueOrder, value, selectedIndex]\n );\n\n const root = (\n <TabsValueOrderContext.Provider\n value={{\n valueOrder,\n setValueOrder: updateValueOrder,\n selectedValue: resolvedValue,\n }}\n >\n {/*\n Always controlled: feeding the primitive an undefined-then-defined\n value flips it from uncontrolled to controlled, which Radix warns\n about in dev. valueOrder is empty on the first commit, so fall back\n to an empty-string sentinel — TabsList's layout effect populates\n valueOrder pre-paint, so the corrected value lands before anything\n is visible.\n */}\n <TabsPrimitive.Root\n ref={ref}\n value={resolvedValue ?? \"\"}\n onValueChange={handleValueChange}\n // Arrow keys move focus and select in one step, so the pill follows\n // the keyboard the same way it follows a click.\n activationMode=\"automatic\"\n {...props}\n >\n {children}\n </TabsPrimitive.Root>\n </TabsValueOrderContext.Provider>\n );\n\n // A size prop pins the whole compound (list + items) to one ladder step.\n return size ? <SizeProvider size={size}>{root}</SizeProvider> : root;\n }\n);\n\nTabs.displayName = \"Tabs\";\n\n/* ─────────────────────── TabsList ─────────────────────── */\n\ntype TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = forwardRef<HTMLDivElement, TabsListProps>(\n ({ children, className, ...props }, ref) => {\n const containerRef = useRef<HTMLDivElement>(null);\n // Whether the pointer is over the list: a ref for blur, which reads it at\n // the moment it runs, and the same flag as state for the render, which\n // picks the hover pill's exit from it. Both flip in the same handlers.\n const isMouseInside = useRef(false);\n const [mouseInside, setMouseInside] = useState(false);\n const shape = useShape();\n const sizeClasses = useSize();\n const substrate = useSurface();\n // Active pill lifts 3 levels above substrate (1 above the muted track + 2 for pop).\n // On the page (substrate 1) this lands on surface 4, the original design.\n // Inside a dialog (substrate 5) it lifts to surface 8 instead of staying at 4.\n const indicatorLevel = Math.min(substrate + 3, 8);\n const valueOrderCtx = useContext(TabsValueOrderContext);\n\n // Derive value order from children synchronously\n const values = Children.toArray(children)\n .filter(isValidElement)\n .map((child) => (child.props as { value?: string }).value)\n .filter((v): v is string => typeof v === \"string\");\n // `values` is a new array every render; the serialized key is what the\n // layout effect compares, so it only re-reports on a real change.\n const valueOrderKey = JSON.stringify(values);\n const setValueOrder = valueOrderCtx?.setValueOrder;\n\n // Report value order up to Tabs root\n useLayoutEffect(() => {\n setValueOrder?.(JSON.parse(valueOrderKey) as string[]);\n }, [setValueOrder, valueOrderKey]);\n\n // Fluid hover\n // axis \"x\": the tab nearest the cursor horizontally wins, so the list's\n // padding never leaves the hover pill without a target.\n const {\n activeIndex: hoveredIndex,\n setActiveIndex: setHoveredIndex,\n itemRects,\n handlers,\n registerItem,\n measureItems,\n } = useFluidHover(containerRef, { axis: \"x\" });\n\n // Register items: bridge from (index, value, el) → registerItem(index, el)\n const registerTab = useCallback(\n (index: number, _value: string, el: HTMLElement | null) => {\n registerItem(index, el);\n },\n [registerItem]\n );\n\n // Measure on children change (resizes are covered by useFluidHover's\n // own container ResizeObserver)\n useEffect(() => {\n measureItems();\n }, [measureItems, children]);\n\n // Track mouse inside\n const handleMouseMove = useCallback(\n (e: React.MouseEvent) => {\n isMouseInside.current = true;\n setMouseInside(true);\n handlers.onMouseMove(e);\n },\n [handlers]\n );\n\n // Flip the flag before clearing the hover index: the hover pill's exit is\n // chosen from it, sliding back into the selected pill or fading in place.\n const handleMouseLeave = useCallback(() => {\n isMouseInside.current = false;\n setMouseInside(false);\n handlers.onMouseLeave();\n }, [handlers]);\n\n // Focus ring\n const [focusedIndex, setFocusedIndex] = useState<number | null>(null);\n const selectedValue = valueOrderCtx?.selectedValue;\n const selectedIdx =\n selectedValue !== undefined ? values.indexOf(selectedValue) : -1;\n\n // The pills follow optimisticIdx, not selectedIdx. A click sets it at once,\n // so the pill moves before controlled state round-trips; it is then\n // resynced, during render, whenever the resolved selection changes (arrow\n // keys, a parent). The first render syncs too: syncedIdx starts unset.\n const [optimisticIdx, setOptimisticIdx] = useState<number | null>(null);\n const [syncedIdx, setSyncedIdx] = useState<number | undefined>(undefined);\n if (syncedIdx !== selectedIdx) {\n setSyncedIdx(selectedIdx);\n setOptimisticIdx(selectedIdx >= 0 ? selectedIdx : null);\n }\n\n const activeSelectedIdx = optimisticIdx;\n const selectedRect =\n activeSelectedIdx !== null ? itemRects[activeSelectedIdx] : null;\n const hoverRect = hoveredIndex !== null ? itemRects[hoveredIndex] : null;\n const focusRect = focusedIndex !== null ? itemRects[focusedIndex] : null;\n // Hovering the selected tab needs no hover pill (the active pill is already\n // there); hovering any other tab shows one and dims the active pill.\n const isHoveringSelected = hoveredIndex === activeSelectedIdx;\n const isHovering = hoveredIndex !== null && !isHoveringSelected;\n\n // Auto-assign _index to children.\n // Skip plain DOM elements: injecting _index into e.g. a <div>\n // triggers React's unknown-prop warning.\n const indexedChildren = Children.map(children, (child, i) => {\n if (isValidElement(child) && typeof child.type !== \"string\") {\n return cloneElement(child, { _index: i } as Record<string, unknown>);\n }\n return child;\n });\n\n return (\n <TabsListContext.Provider\n value={{\n registerTab,\n hoveredIndex,\n selectedValue,\n setOptimisticIdx,\n }}\n >\n <TabsPrimitive.List\n ref={(node) => {\n (\n containerRef as React.MutableRefObject<HTMLDivElement | null>\n ).current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref)\n (\n ref as React.MutableRefObject<HTMLDivElement | null>\n ).current = node;\n }}\n onMouseMove={handleMouseMove}\n onMouseLeave={handleMouseLeave}\n // Focus also sets the hover index, so keyboard and mouse share one\n // highlight state. The ring draws only when the tab matches\n // :focus-visible, so a mouse click (which focuses too) shows none.\n onFocus={(e) => {\n const trigger = (e.target as HTMLElement).closest('[role=\"tab\"]');\n if (!trigger) return;\n const indexAttr = trigger.getAttribute(\"data-fluid-hover-index\");\n if (indexAttr != null) {\n const idx = Number(indexAttr);\n setHoveredIndex(idx);\n setFocusedIndex(\n (e.target as HTMLElement).matches(\":focus-visible\") ? idx : null\n );\n }\n }}\n // Focus moving between tabs stays inside the list and is ignored.\n // Leaving the list drops the ring, but the hover highlight stays\n // while the mouse still rests on a tab.\n onBlur={(e) => {\n if (containerRef.current?.contains(e.relatedTarget as Node)) return;\n setFocusedIndex(null);\n if (isMouseInside.current) return;\n setHoveredIndex(null);\n }}\n className={cn(\n // segmentPad + segmentItem add up to the ladder's control height\n // (36px default, 28px compact) so the segmented control's outer\n // box lines up with buttons, selects, and inputs beside it.\n \"relative inline-flex items-center select-none bg-muted\",\n sizeClasses.segmentPad,\n shape.container,\n className\n )}\n {...props}\n >\n {/* Active segment indicator */}\n {selectedRect && (\n <motion.div\n className={cn(\n \"absolute pointer-events-none\",\n // A raised surface (background + shadow), not a tint, so the\n // selected tab lifts off the muted track.\n surfaceClasses(indicatorLevel),\n shape.bg\n )}\n initial={false}\n animate={{\n left: selectedRect.left,\n width: selectedRect.width,\n top: selectedRect.top,\n height: selectedRect.height,\n // Dims to 0.85 while another tab is hovered: the selection\n // reads as \"current\" and the hover pill as \"next\".\n opacity: isHovering ? 0.85 : 1,\n }}\n // The selection travels on spring.moderate and lands without\n // overshoot; the dim is a plain 80ms fade.\n transition={{\n ...spring.moderate,\n opacity: { duration: 0.08 },\n }}\n />\n )}\n\n {/* Hover indicator */}\n <AnimatePresence>\n {/* Born at the selected pill (opacity 0) and sliding out to the\n hovered tab, so the preview reads as leaving the current\n choice. Without a selected pill there is nowhere to start. */}\n {hoverRect && !isHoveringSelected && selectedRect && (\n <motion.div\n className={cn(\n \"absolute pointer-events-none bg-hover\",\n shape.bg\n )}\n initial={{\n left: selectedRect.left,\n width: selectedRect.width,\n top: selectedRect.top,\n height: selectedRect.height,\n opacity: 0,\n }}\n animate={{\n left: hoverRect.left,\n width: hoverRect.width,\n top: hoverRect.top,\n height: hoverRect.height,\n // bg-hover at 0.4 stays well below the active pill.\n opacity: 0.4,\n }}\n // With the mouse outside the list, slide back into the selected\n // pill on spring.moderate while fading over 60ms. With it still\n // inside (now over the selected tab), fade where it is.\n exit={\n !mouseInside && selectedRect\n ? {\n left: selectedRect.left,\n width: selectedRect.width,\n top: selectedRect.top,\n height: selectedRect.height,\n opacity: 0,\n transition: {\n ...spring.moderate,\n opacity: { duration: 0.06 },\n },\n }\n : { opacity: 0, transition: spring.fast.exit }\n }\n // spring.fast so the preview keeps up with the cursor.\n transition={{\n ...spring.fast,\n opacity: { duration: 0.08 },\n }}\n />\n )}\n </AnimatePresence>\n\n {/* Focus ring */}\n <AnimatePresence>\n {/* One ring for the whole list that springs between tabs, drawn\n 2px outside the focused tab's rect and above the tabs (z-20).\n The #6B97FF fallback keeps it visible without the token. */}\n {focusRect && (\n <motion.div\n className={cn(\n \"absolute pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]\",\n shape.focusRing\n )}\n initial={false}\n animate={{\n left: focusRect.left - 2,\n top: focusRect.top - 2,\n width: focusRect.width + 4,\n height: focusRect.height + 4,\n }}\n exit={{ opacity: 0, transition: spring.fast.exit }}\n transition={{\n ...spring.fast,\n opacity: { duration: 0.08 },\n }}\n />\n )}\n </AnimatePresence>\n\n {indexedChildren}\n </TabsPrimitive.List>\n </TabsListContext.Provider>\n );\n }\n);\n\nTabsList.displayName = \"TabsList\";\n\n/* ─────────────────────── TabItem ─────────────────────── */\n\ninterface TabItemProps\n extends ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {\n /** Unique value for this tab. */\n value: string;\n /** Optional leading icon. */\n icon?: IconComponent;\n /** Text label. */\n label: string;\n /** @internal Auto-assigned by TabsList. */\n _index?: number;\n}\n\nconst TabItem = forwardRef<HTMLButtonElement, TabItemProps>(\n ({ value, icon: Icon, label, _index = 0, className, onClick, ...props }, ref) => {\n const internalRef = useRef<HTMLButtonElement>(null);\n const sizeClasses = useSize();\n const { registerTab, hoveredIndex, selectedValue, setOptimisticIdx } = useTabsList();\n\n // Register the button so the list can measure its rect; the cleanup\n // unregisters it so no pill aims at a tab that has gone.\n useEffect(() => {\n registerTab(_index, value, internalRef.current);\n return () => registerTab(_index, value, null);\n }, [_index, value, registerTab]);\n\n const isSelected = selectedValue === value;\n // Hover or selection brightens color and icon stroke; only selection\n // changes weight, so hovering never thickens a label.\n const isActive = hoveredIndex === _index || isSelected;\n\n return (\n <TabsPrimitive.Trigger\n // Composed (not spread-overridable): a consumer onClick must not\n // replace the optimistic indicator jump.\n onClick={(e) => {\n setOptimisticIdx(_index);\n onClick?.(e);\n }}\n ref={(node) => {\n (\n internalRef as React.MutableRefObject<HTMLButtonElement | null>\n ).current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref)\n (\n ref as React.MutableRefObject<HTMLButtonElement | null>\n ).current = node;\n }}\n value={value}\n // Read back by the list's onFocus to map a focused tab to its index.\n data-fluid-hover-index={_index}\n className={cn(\n // outline-none: the list draws one shared focus ring instead.\n // Fixed height (not py) so the text-box trim below doesn't shrink\n // the tab — browsers without text-box support render identically.\n \"relative z-10 flex items-center px-3 cursor-pointer bg-transparent border-none outline-none\",\n sizeClasses.segmentItem,\n sizeClasses.gap,\n className\n )}\n {...props}\n >\n {/* Stroke 1.5 → 2 and muted → foreground on hover or selection, over\n the label's 80ms, so icon and text change together. */}\n {Icon && (\n <Icon\n size={sizeClasses.icon}\n strokeWidth={isActive ? 2 : 1.5}\n className={cn(\n \"transition-[color,stroke-width] duration-80\",\n isActive ? \"text-foreground\" : \"text-muted-foreground\"\n )}\n />\n )}\n {/* Both stacked spans carry the text-box trim so the invisible bold\n sizer and the visible label keep identical boxes. */}\n <span className={cn(\"inline-grid whitespace-nowrap\", sizeClasses.text)}>\n {/* Invisible semibold copy: reserves the bold width up front, so the\n tab doesn't widen when selected and the pills don't jump. */}\n <span\n className=\"col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic]\"\n style={{ fontVariationSettings: fontWeights.semibold }}\n aria-hidden=\"true\"\n >\n {label}\n </span>\n <span\n className={cn(\n \"col-start-1 row-start-1 transition-[color,font-variation-settings] duration-80 [text-box:trim-both_cap_alphabetic]\",\n isActive ? \"text-foreground\" : \"text-muted-foreground\"\n )}\n // Semibold only when selected, via wght + opsz so the width barely\n // moves; the sizer above absorbs what remains.\n style={{\n fontVariationSettings: isSelected\n ? fontWeights.semibold\n : fontWeights.normal,\n }}\n >\n {label}\n </span>\n </span>\n </TabsPrimitive.Trigger>\n );\n }\n);\n\nTabItem.displayName = \"TabItem\";\n\n/* ─────────────────────── TabPanel ─────────────────────── */\n\ninterface TabPanelProps\n extends ComponentPropsWithoutRef<typeof TabsPrimitive.Content> {\n /** Must match a TabItem value. */\n value: string;\n}\n\nconst TabPanel = forwardRef<HTMLDivElement, TabPanelProps>(\n ({ className, ...props }, ref) => {\n return (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\"outline-none\", className)}\n {...props}\n />\n );\n }\n);\n\nTabPanel.displayName = \"TabPanel\";\n\n/* ─────────────────────── Exports ─────────────────────── */\n\nexport { Tabs, TabsList, TabItem, TabPanel };\nexport type { TabsProps, TabsListProps, TabItemProps, TabPanelProps };\n","type": "registry:ui","target": "components/ui/tabs.tsx"}diff --git a/docs/reference-snapshots/upstream/readme-amane.md b/docs/reference-snapshots/upstream/readme-amane.mdindex 4b92d05a9..089575304 100644--- a/docs/reference-snapshots/upstream/readme-amane.md+++ b/docs/reference-snapshots/upstream/readme-amane.md@@ -11,7 +11,7 @@ AI 时代的私人影库- **多源择优** — 聚合多个数据源的元数据, 逐字段择优- **目录管理** — 自定义命名规则, 整理本地文件结构- **图片增强** — 内置超分工具优化低清海报图-- **AI 智能助理** — 自然语言检索片库、批量整理、发起刮削+- **智能体** — 自然语言检索片库、批量整理、发起刮削- **Web 界面** — 海报墙、任务队列、结构化日志、可视化设置## 安装diff --git a/docs/reference-snapshots/upstream/readme-atlas.md b/docs/reference-snapshots/upstream/readme-atlas.mdindex b60bc2933..bd82adb1e 100644--- a/docs/reference-snapshots/upstream/readme-atlas.md+++ b/docs/reference-snapshots/upstream/readme-atlas.md@@ -66,7 +66,7 @@ The project uses a modular documentation system, where each specialized document### Core Advantages#### 1. Open-Source Search Engine with Aggregated Content-- **JAV Search**: Aggregates metadata from DMM/FANZA and searches magnets from JavBus/JavDB, with a new actress search submode (v4.3 new, data source minnano-av.com)+- **JAV Search**: Aggregates metadata from DMM/FANZA and searches magnets from JavBus/JavDB, with a new actress search submode (v4.3 new, data source JavBus)- **Anime Search**: Aggregates data from Bangumi, Mikan, and ShowRSS, including subtitles (nyaa source disabled due to deployment environment restrictions, v4.3 adjusted)- **Movie Search**: Aggregates metadata from TMDB, YTS, EZTV, and TPB, including seeds and magnets- **Comic Search**: Aggregates metadata from MangaDex and 13 other search sources@@ -137,7 +137,7 @@ Resend → Modern email service with high deliverability and real-time tracking| Category | Data Source | Description ||----------|--------|------|-| **JAV** | DMM/FANZA / JavBus / JavDB / **minnano-av (actress profiles, v4.3 new)** | Adult film metadata + magnet aggregation + actress profile search |+| **JAV** | DMM/FANZA / JavBus / JavDB / **JavBus (actress profiles, v4.3 new)** | Adult film metadata + magnet aggregation + actress profile search || **Anime** | Bangumi / Mikan / ShowRSS | Anime metadata + subtitle groups (nyaa source disabled due to deployment environment restrictions, v4.3 adjusted) || **Movie** | TMDB / YTS / EZTV / TPB | Movie/TV series metadata and seed resources || **Comic** | MangaDex / 13 search sources | Comic metadata and resource aggregation |@@ -150,7 +150,7 @@ JAV search is refined into three submodes, with URL `sub` parameter persistence| Submode | Description ||---------|------|| **code** (code search) | Default mode, precise metadata + magnet matching by code |-| **actress** (actress search) | Data source minnano-av.com, parses actress profiles (name / kana / romaji / alias / birthday / zodiac / measurements / birthplace / agency / career period / tags / cover), and auto-supplements JavBus works list. Click a work card to jump to code search |+| **actress** (actress search) | Data source JavBus actress search (/searchstar → /star; the former minnano-av source is now behind anti-bot protection), parses actress profiles (name / birthday / age / measurements / birthplace / hobbies / avatar), and auto-supplements JavBus works list. Click a work card to jump to code search || **title** (title search) | Fuzzy match by title keyword |Actress search keywords auto-convert to Japanese (mapping table + opencc simplified-to-Japanese conversion fallback), supporting direct search with Chinese nicknames; actress cards support favorites and sharing to community.diff --git a/docs/reference-snapshots/upstream/readme-bruno.md b/docs/reference-snapshots/upstream/readme-bruno.mdindex 9d78ea58d..08263e4c0 100644--- a/docs/reference-snapshots/upstream/readme-bruno.md+++ b/docs/reference-snapshots/upstream/readme-bruno.md@@ -30,6 +30,7 @@| [ქართული](docs/readme/readme_ka.md)| [Nederlands](docs/readme/readme_nl.md)| [فارسی](docs/readme/readme_fa.md)+| [हिन्दी](docs/readme/readme_hi.md)Bruno is a new and innovative API client, aimed at revolutionizing the status quo represented by Postman and similar tools out there.diff --git a/docs/reference-snapshots/upstream/readme-cuelume.md b/docs/reference-snapshots/upstream/readme-cuelume.mdindex 42e77d4e7..19f527f8c 100644--- a/docs/reference-snapshots/upstream/readme-cuelume.md+++ b/docs/reference-snapshots/upstream/readme-cuelume.md@@ -48,6 +48,8 @@ bind();Leave the attribute value empty to use its default cue, or set it to any cue name. When marked elements nest, the innermost one decides.+A marked control sounds as it goes down and lets go as it comes up. With a mouse, the press plays on `pointerdown` and the release on the `click` that follows. Touch and pen play both on lift, so a scroll that starts on a button stays silent. Enter or Space on a focused control plays both at once. A press that never becomes a click, because the pointer slid away or was cancelled, gets no release. Only themes with a release make the let-go audible; `press` is the first.+Outcome and progress cues follow what your app is actually doing, so play them from code:```ts@@ -148,12 +150,13 @@ Never play a cue per streamed token, per tool call inside an agent run, or on ho- Holding Backspace or Delete keeps playing as it deletes, and stops once there is nothing left to delete. Deleting a word or line with Option, Cmd, or Ctrl plays too.- Modifier keys, arrows, shortcuts like Cmd+C, other held keys, and IME composition are ignored.- Fast typing plays at most one sound every 40ms, and every keystroke lands at a slightly different pitch and weight, so a sentence never sounds like one key repeated.+- A key that played lets go on `keyup`, so in `press` every keystroke lands and lifts like a real keycap.## SelectionA native `<select data-cuelume-select>` plays when its value changes, not when it opens. Marked radio and checkbox inputs work the same way.-A custom option or menu item plays on `click`. A menu item built correctly fires `click` on Enter and Space too, so keyboard selection gets the same cue.+A custom option or menu item plays like any other marked control. A menu item built correctly fires `click` on Enter and Space too, so keyboard selection gets the same cue.## Counting@@ -178,6 +181,7 @@ The same cue bends to how the interaction happened. Cuelume reads this from the| `navigate` | `direction`, from `play()` | `back` plays the whoosh falling instead of rising. || `toggle` | Which way it switched | Switching off plays its glides backwards: `default` and `mech` knock upward, `bubble`'s cork sinks. || `count` | `duration` and `direction`, from `play()` | The roll stretches to the animation; `back` falls. |+| `tap`, `open` | How quickly it repeats | In `press`, repeats less than a second apart walk the note up three steps and round again; tap goes C, E, A. A pause starts over. |Every change is small and bounded, so a cue always sounds like itself. When there's no context, as with a plain `play()` call, the cue plays as normal.@@ -210,7 +214,7 @@ Context comes from the current event and the timing of recent plays on the same## Themes-Every cue comes in four finished materials. `default` is warm: glass, wood, air, and soft mallets. `mech` is dry and precise: a shutter click, a ratchet detent, a latch, struck metal. `bubble` is playful, and every cue is its own gesture: a knock, a drip, a cork, a gulp, a kalimba, a zip. `press` is one premium switch: every interaction is a crisp click over the knock of whatever it moves, and tap lets its body ring like a trackpad under a finger. Outcomes are not touched, so they do not click: success, error, warning, ready and attention are that warm note on its own, with a chord that says what happened, and `loading` is one soft, low note that swells and fades. Whatever the theme, every cue is one sound: it strikes once. All four have the same fourteen cues, context, and emphasis, and they're level-matched, so switching changes the material, not the volume.+Every cue comes in four finished materials. `default` is warm: glass, wood, air, and soft mallets. `mech` is dry and precise: a shutter click, a ratchet detent, a latch, struck metal. `bubble` is playful, and every cue is its own gesture: a knock, a drip, a cork, a gulp, a kalimba, a zip. `press` is a premium trackpad: tap clicks over a deep C that swells in and rings for about a second, lets go with a lighter click, and quick taps walk up a chord. Keys land and lift like real keycaps. Its outcomes are not touched, so they do not click: success, error, warning, ready and attention are that deep note on its own, with a chord that says what happened. Whatever the theme, a press strikes at once, and so does its release. All four have the same fourteen cues, context, and emphasis, and they're matched by how loud they sound, not by their signal level, so switching changes the material, not the volume.```tsimport { play, setTheme } from "cuelume";@@ -229,31 +233,44 @@ play("select", { theme: "bubble" }); // one playful moment; the theme stays defa`setTheme` applies to sounds played after the call. The `theme` option and `data-cuelume-theme` (on an element or any ancestor; the innermost wins) apply to one play and leave the active theme alone. Unknown names are ignored, and like volume, the choice isn't stored.-`default` and `mech` sit in a calm register for all-day use. Reach for `bubble` when a product, or one moment in it, should feel playful, and `press` when it should feel like touching hardware: clicky, deep and precise.+`default` and `mech` sit in a calm register for all-day use. Reach for `bubble` when a product, or one moment in it, should feel playful, `press` when it should feel like touching hardware: clicky, deep and precise.++`press` is modelled on the trackpad and keycap sounds in DawoodUI's Artasaka preview.## Sound settingsCuelume starts enabled at full volume and never reads or writes storage. Your app owns the controls, labels, and persistence:```ts-import { setEnabled, setVolume } from "cuelume";+import { setEnabled, setVolume, unlock } from "cuelume";setVolume(0.7); // global multiplier, clamped to 0–1-setEnabled(false); // future play attempts become no-ops+setEnabled(false); // silent at once: ringing cues fade, later plays are no-opssetEnabled(true); // enable playback again```If your app plays sound often, or the sound is decoration rather than information, give people a visible Sound toggle and pass its value to `setEnabled()`.+Turning sound on is also the moment to start audio. Browsers let a page make sound only after someone has interacted with it, and some start audio only inside the gesture itself, so a cue played later from code can stay silent. Call `unlock()` in the click that turns sound on:++```ts+soundToggle.addEventListener("click", async () => {+ setEnabled(true);+ const ready = await unlock(); // false while the browser still blocks audio+});+```++`unlock()` cannot start audio the browser refuses; the [autoplay rules](https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Autoplay) still apply. Called before any interaction it resolves `false` and builds nothing.+Cuelume does not follow `prefers-reduced-motion`. That setting is about motion. Someone who turns off animation may still want sound, and someone who wants silence may never touch it.## API```ts-import { play, bind, setEnabled, setVolume, setTheme, sounds, themes, type SoundName, type Emphasis, type ThemeName, type PlayOptions } from "cuelume";+import { play, press, release, bind, unlock, setEnabled, setVolume, setTheme, sounds, themes, type SoundName, type Emphasis, type ThemeName, type PlayOptions } from "cuelume";```-- **`play(name?: SoundName, options?: PlayOptions)`**: play a cue immediately. Defaults to `"tap"`. Options apply to this play only:+- **`play(name?: SoundName, options?: PlayOptions)`**: play a cue immediately. Defaults to `"tap"`. A cue with a release plays it 90 ms after the press, as a quick click would. Options apply to this play only:- `volume?: number`, clamped to `0–1`.- `emphasis?: "subtle" | "normal" | "strong"`.- `direction?: "forward" | "back"`: shapes `select`; `back` plays `navigate`, `toggle`, and `count` backwards.@@ -261,8 +278,15 @@ import { play, bind, setEnabled, setVolume, setTheme, sounds, themes, type Sound- `input?: "mouse" | "touch" | "pen" | "keyboard"`: shapes `tap`.- `theme?: ThemeName`: the material for this play only.- `duration?: number`: how long a `count` runs, in milliseconds, clamped to `300–2000`.-- **`bind(root?: ParentNode)`**: delegate all `data-cuelume-*` interactions under `root` (defaults to the whole document). Idempotent, and handles elements added later.-- **`setEnabled(enabled: boolean)`**: enable or disable future playback. Does not persist the preference or stop sounds already playing.+- **`press(name?: SoundName, options?: PlayOptions)`** and **`release(name?: SoundName)`**: the two halves of `play`, for a custom control that doesn't use `bind()`. Call `press` as the gesture goes down and `release` with the same cue as it lifts; the release keeps its press's theme and emphasis. A second `release`, or one with no press waiting, plays nothing.++ ```ts+ key.addEventListener("pointerdown", () => press("tap"));+ key.addEventListener("pointerup", () => release("tap"));+ ```+- **`bind(root?: ParentNode): () => void`**: delegate all `data-cuelume-*` interactions under `root` (defaults to the whole document). Idempotent, and handles elements added later. Returns a function that unbinds; a root stays bound until every caller that bound it has called theirs.+- **`unlock(): Promise<boolean>`**: start audio now, from a user gesture, instead of on the first cue. Resolves `true` once cues can sound, `false` while the browser blocks audio or has no Web Audio. Never rejects.+- **`setEnabled(enabled: boolean)`**: turn sound on or off. Off is immediate: cues already ringing fade within a few milliseconds. Does not persist the preference.- **`setVolume(volume: number)`**: set the global volume for future playback, clamped to `0–1`. Non-finite values are ignored and preferences are not persisted.- **`setTheme(theme: ThemeName)`**: switch the material of future playback. Unknown names are ignored; the choice isn't persisted.- **`themes`**: the built-in theme names, `["default", "mech", "bubble", "press"]`.@@ -297,29 +321,29 @@ The old bindings also keep working until 1.0:## Defaults that behave-- **One cue per action.** An event plays at most one cue, even with nested marked elements or several bound roots.+- **One cue per action.** An event plays at most one cue, even with nested marked elements or several bound roots. A press and its release are one cue.- **Keyboard included.** Click bindings follow native activation, so Enter and Space on a button play the same cue as a click.-- **Audible without clipping.** One shared boosted output stage keeps sounds clear, with native compression protecting overlapping cues.+- **Audible without clipping.** One shared boosted output stage keeps sounds clear, with native compression protecting overlapping cues. Everything under 40 Hz is cut before it, so deep notes never spend its headroom on what nobody hears.- **Struck, not played back.** Tones are modelled on real bars: each overtone dies faster the higher it is, and a brief mallet contact starts the note. Every play of a frequent cue is one strike, a little harder or softer than the last, so a harder one is louder and brighter together and no two sound identical. Outcome cues play the same every time, so their meaning never blurs.- **One faint room.** Every cue rings very faintly into one shared, short stereo room (about 22 dB down), which places it in the space around the listener rather than inside their head. `success` and `ready` ring into it a little more.- **One lazy `AudioContext`.** Shared across all sounds, created on first use.-- **Autoplay-friendly.** Attempts to resume suspended audio without surfacing errors when a browser blocks it.+- **Autoplay-friendly.** Attempts to resume suspended audio without surfacing errors when a browser blocks it. `unlock()` starts it from the gesture that turns sound on and says whether it worked.- **SSR-safe.** Importing on the server is a no-op.- **Safe fallback.** Invalid runtime names and unavailable or blocked Web Audio make `play()` a silent no-op. An invalid attribute value plays that binding's default cue.-- **Dynamic, idempotent binding.** `bind()` never double-attaches listeners, and later DOM additions, removals, and clones work automatically.+- **Dynamic, idempotent binding.** `bind()` never double-attaches listeners, and later DOM additions, removals, and clones work automatically. It returns its undo for a component that unmounts.## FrameworksCuelume works anywhere HTML does: plain pages, Astro, React, Vue. Call `bind()` once after the DOM is ready. Delegated listeners keep working when components or routes replace descendants.-React:+React, where `bind()` returns its own cleanup:```tsx-useEffect(() => {- bind();-}, []);+useEffect(() => bind(), []);```+A hot-reloading module can call that same function in its dispose hook.+Astro (with view transitions):```js@@ -331,6 +355,26 @@ document.addEventListener("astro:page-load", () => play("navigate"));Browsers block audio on a fresh visit until the user interacts with the page. The navigate cue therefore plays on client-side navigations after that first interaction.+## Claude Code++Cuelume also ships as a Claude Code plugin with two cues: `ready` when a turn of ten seconds or more finishes, and `attention` when a permission prompt is waiting on you.++```+/plugin marketplace add danielwh2/cuelume+/plugin install cuelume@cuelume+```++`/cuelume bubble` switches the theme and plays it, and `/cuelume off` silences it. See [claude-code/README.md](claude-code/README.md).++## Development++`npm run check` runs the typecheck, build, and test suite. See+[examples](examples/README.md) for runnable starting points,+[CONTRIBUTING.md](CONTRIBUTING.md) for the layout and the rules that keep+the palette coherent, and [CHANGELOG.md](CHANGELOG.md) for what changed.+Tooling can read every theme's recipes through the `cuelume/themes` subpath+export.+## LicenseMITdiff --git a/docs/reference-snapshots/upstream/readme-javboss.md b/docs/reference-snapshots/upstream/readme-javboss.mdindex 483f963b7..c0e1543ee 100644--- a/docs/reference-snapshots/upstream/readme-javboss.md+++ b/docs/reference-snapshots/upstream/readme-javboss.md@@ -78,10 +78,10 @@ curl -fsSL https://raw.githubusercontent.com/Solr159/JavBoss/main/scripts/instal点击下载对应系统的最新版发布包并解压:-- [Windows](https://github.com/Solr159/JavBoss/releases/download/v2.1.0/javboss-v2.1.0-windows-x86_64.zip)-- [Linux](https://github.com/Solr159/JavBoss/releases/download/v2.1.0/javboss-v2.1.0-linux-x86_64.zip)-- [macOS-x86_64](https://github.com/Solr159/JavBoss/releases/download/v2.1.0/javboss-v2.1.0-macos-x86_64.zip)(适用于 Intel 芯片的 macOS)-- [macOS-arm64](https://github.com/Solr159/JavBoss/releases/download/v2.1.0/javboss-v2.1.0-macos-arm64.zip)(适用于 M 芯片的 macOS)+- [Windows](https://github.com/Solr159/JavBoss/releases/download/v2.1.2/javboss-v2.1.2-windows-x86_64.zip)+- [Linux](https://github.com/Solr159/JavBoss/releases/download/v2.1.2/javboss-v2.1.2-linux-x86_64.zip)+- [macOS-x86_64](https://github.com/Solr159/JavBoss/releases/download/v2.1.2/javboss-v2.1.2-macos-x86_64.zip)(适用于 Intel 芯片的 macOS)+- [macOS-arm64](https://github.com/Solr159/JavBoss/releases/download/v2.1.2/javboss-v2.1.2-macos-arm64.zip)(适用于 M 芯片的 macOS)也可以前往 [Releases](https://github.com/Solr159/JavBoss/releases) 页面查看所有版本。@@ -125,7 +125,7 @@ docker compose up -d添加目录时直接填写宿主机路径,例如 `/mnt/disk1/videos`,程序会自动映射到容器内可访问路径。-Docker 部署下默认只能使用浏览器播放器(维护力度较弱只保证基本可用性),可参考[Client 模式](#client-模式)以使用 MPV 播放器获得更好的播放体验。+Docker 部署下默认只能使用网页播放器,如需使用 MPV 可参考[Client 模式](#client-模式)。</dd>@@ -133,14 +133,13 @@ Docker 部署下默认只能使用浏览器播放器(维护力度较弱只保</br>-**浏览器访问地址:`http://localhost:8655`,非 docker 方式启动后,程序会自动打开浏览器。</br>**-**Docker 部署默认支持局域网设备访问,将 `localhost` 改为部署主机的局域网ip。</br>**-**非 docker 部署请在设置中手动开启局域网访问,然后重启软件。</br>**-**默认登录密码为 `admin`,可在全局设置中修改。**+**浏览器访问地址:`http://localhost:8655`,登录密码为 `admin`,可在`设置`->`安全`中修改。</br>**+**Docker 部署默认支持局域网设备访问,其他部署方式可在`设置`->`网络与代理`中手动开启。</br>**+**Windows 启动后程序位于右下角系统托盘中,macOS 启动后程序位于顶部菜单栏。**### 2. 添加本地目录-点击左下角“设置” -> “目录管理”,添加存放视频的本地文件夹。+点击左下角`设置` -> `目录管理`,添加存放视频的本地文件夹。视频扫描入库、封面截图生成、JAV 刮削会在后台持续运行,刷新页面或点击侧边栏视频、JAV 等选项查看当前进度。@@ -154,7 +153,7 @@ Docker 部署下默认只能使用浏览器播放器(维护力度较弱只保程序默认会自动持续对目录进行扫描,扫描过程中同步进行 JAV 刮削,相邻两次扫描间隔为1分钟。-可以在 `全局设置` -> `目录管理` -> `扫描设置` 中修改相邻扫描间隔或关闭自动扫描。也可点击 `手动扫描` 立刻触发一次目录扫描和 JAV 刮削。+可以在 `设置` -> `目录管理` -> `扫描设置` 中修改相邻扫描间隔或关闭自动扫描。也可点击 `手动扫描` 立刻触发一次目录扫描和 JAV 刮削。一旦目录内容发生任何变化(比如有新视频入库、旧视频被删除、视频移动等),需要再进行一次目录扫描和 JAV 刮削完成内容的更新同步,请根据个人的扫描设置自行把握扫描时机。@@ -177,7 +176,7 @@ Docker 部署下默认只能使用浏览器播放器(维护力度较弱只保2. 点击浏览器工具栏中的“JavBoss 助手”,在“连接设置”中填写 JavBoss 访问地址和 API 令牌,点击“测试连接”确认可用。3. 按需开启功能,设置修改后自动保存。-扩展不是必须的,有以上需要的可[点击此处](https://github.com/Solr159/JavBoss/releases/download/v2.1.0/javboss-browser-extension-v0.14.0.zip)下载。+扩展不是必须的,有以上需要的可[点击此处](https://github.com/Solr159/JavBoss/releases/download/v2.1.1/javboss-browser-extension-v0.14.1.zip)下载。## 如何升级版本diff --git a/docs/reference-snapshots/upstream/readme-mdcz.md b/docs/reference-snapshots/upstream/readme-mdcz.mdindex 6e323ed31..2ea5f7f2c 100644--- a/docs/reference-snapshots/upstream/readme-mdcz.md+++ b/docs/reference-snapshots/upstream/readme-mdcz.md@@ -47,22 +47,26 @@ MDCz 是一款现代化的本地影片元数据刮削与整理工具。----## 平台支持+## 下载与安装-| 平台 | 形式 | 运行要求 |-|---|---|---|-| Windows | 桌面客户端 (.exe) | Windows 10 及以上 |-| macOS | 桌面客户端 (.dmg) | Apple Silicon / Intel |-| Linux | 桌面客户端 (.AppImage) | 主流 Linux 发行版 |-| NAS / 服务器 | Docker / WebUI | Docker 引擎 / Node.js >= 24 |+### 桌面客户端----+前往 [Releases](https://github.com/ShotHeadman/mdcz/releases) 下载对应文件:-## 快速开始+| 文件 | 适用于 | 自动更新 | 数据目录 |+|---|---|---|---|+| `MDCz-<版本>-win-x64-setup.exe` | Windows 10 及以上,**推荐** | 应用内下载,重启后安装 | `%APPDATA%\mdcz` |+| `MDCz-<版本>-win-x64-portable.zip` | Windows 便携版,解压即用 | 提示新版本,需手动下载替换 | 程序目录下的 `data\` |+| `MDCz-<版本>-mac-arm64.dmg` | macOS Apple Silicon(不提供 Intel 版) | 提示新版本,需手动下载替换 | `~/Library/Application Support/mdcz` |+| `MDCz-<版本>-linux-x86_64.AppImage` | Linux x64 | 应用内下载,重启后安装 | `~/.config/mdcz` |-### 桌面客户端+便携版的配置、数据库和日志都在 `data\` 里,升级时保留这个文件夹,替换其余文件即可。-前往 [Releases](https://github.com/ShotHeadman/mdcz/releases) 页面下载对应系统的安装包直接运行。+> [!NOTE]+> 应用没有代码签名,首次运行时系统会拦截:+> - **Windows** 提示「Windows 已保护你的电脑」:点「更多信息」→「仍要运行」。+> - **macOS** 提示「已损坏,无法打开」:把 MDCz 拖进「应用程序」后,在终端执行 `xattr -cr /Applications/MDCz.app`。+> - **Linux**:先执行 `chmod +x MDCz-*.AppImage` 再运行。### Docker 部署(推荐 NAS / 服务器)@@ -71,13 +75,13 @@ MDCz 是一款现代化的本地影片元数据刮削与整理工具。- **快速上手**:将配置模板复制为 `.env`,填写真实版本号与媒体路径后,执行 `docker compose up -d` 即可启动。- **首次访问**:浏览器打开 `http://<服务器IP>:3838`(默认绑定 `127.0.0.1`,NAS 局域网访问请在 `.env` 中调整绑定 IP)。系统无默认密码,首次访问直接按提示设置管理员密码,随后即可在设置中添加媒体库。+### WebUI 压缩包(不使用 Docker)++Releases 中的 `mdcz-<版本>.tar.gz` 可直接在装有 Node.js >= 24 的机器上运行,安装和启动方式见包内 README。+### 源码运行-```bash-pnpm install-pnpm dev:webui # 启动 WebUI 模式-pnpm dev:desktop # 启动桌面端模式-```+环境准备与开发命令见 [CONTRIBUTING.md](CONTRIBUTING.md)。---diff --git a/docs/reference-snapshots/upstream/readme-openaver.md b/docs/reference-snapshots/upstream/readme-openaver.mdindex 10efcd760..0a49714bc 100644--- a/docs/reference-snapshots/upstream/readme-openaver.md+++ b/docs/reference-snapshots/upstream/readme-openaver.md@@ -155,7 +155,7 @@ OpenAver 有四個主要頁面:### 📊 片庫分析:整座片庫變成看得懂的圖-- **片庫全貌,還能再深一層**:片數、年份、片商雙層圓餅、女優 Top 20、標籤樹狀圖;深一層有女優發行時年齡分布、導演/系列排行、片商年表、同片搭檔排行。+- **片庫全貌,還能再深一層**:片數、年份、片商雙層圓餅、女優 Top 25、標籤樹狀圖;深一層有女優發行時年齡分布、導演/系列排行、片商年表、同片搭檔排行。- **點年份、女優或片商都能縮小範圍**:整頁圖表跟著縮到那個範圍,再點一次取消。### 📀 唯讀來源:NAS 上的片不搬、不改,也能進播放軟體diff --git a/docs/reference-snapshots/upstream/readme-sakuramedia.md b/docs/reference-snapshots/upstream/readme-sakuramedia.mdindex c6eced0e5..a364e29b1 100644--- a/docs/reference-snapshots/upstream/readme-sakuramedia.md+++ b/docs/reference-snapshots/upstream/readme-sakuramedia.md@@ -28,6 +28,7 @@- 📥 **订阅与自动入库**:订阅影片后,系统定期寻找合适资源、提交下载,并在完成后自动导入媒体库;暂无资源的影片可以先留在订阅清单里等待。- 📦 **本地导入与刮削**:直接导入 NAS 或网盘里已有的影片,自动识别番号、刮削元数据与封面;识别或获取失败的条目支持手动搜索匹配。- 🎬 **独立 APP + 缩略图辅助观影**:SakuraMedia 客户端内置缩略图时间轴,把影片画面按时间展开,点击即可跳到对应画面,快速预览场景、定位精彩片段;配合倍速、字幕与续播,也支持调用外部播放器。+- 🥽 **VR 影片播放**:支持调用外部播放器播放 VR 影片,多分段资源可合并为完整影片连续播放;实验性支持 Pico 等 VR 设备以 2D 形式使用。- 🖼️ **以图搜图**:用喜欢的画面或文字描述检索库内相似内容(可选功能)。- ❤️ **收藏与整理**:用播放列表、时刻、切片和各自的合集,留下想回看的画面与片段。- 🗂️ **媒体库管理**:查看重复文件、多版本和失效媒体,并可在支持的存储之间迁移,保留媒体记录与播放进度。@@ -54,6 +55,7 @@- 帮助撰写和改进Wiki- 开发新的插件扩展新功能,可以查看[插件开发文档](https://tinypinglite.github.io/sakuramedia/guide/plugin-development.html)+- 将自己开发的插件上架插件市场:向 [sakuramedia-plugin-market](https://github.com/tinypinglite/sakuramedia-plugin-market) 提交 Pull Request,附上插件用途与仓库地址(仓库需公开、Release 提供安装包)。- Bug修复 / 新功能 PRdiff --git a/docs/reference-snapshots/upstream/readme-sakuramediabe.md b/docs/reference-snapshots/upstream/readme-sakuramediabe.mdindex 38568f47d..71688ed31 100644--- a/docs/reference-snapshots/upstream/readme-sakuramediabe.md+++ b/docs/reference-snapshots/upstream/readme-sakuramediabe.md@@ -4,6 +4,10 @@ SakuraMediaBE 是 SakuraMedia 的服务端项目,负责提供媒体库管理项目当前基于 Python 3.10、FastAPI、Peewee、Pydantic 2 和 APScheduler 构建,代码结构按 `api -> service -> model` 分层组织,面向单账号场景运行。+## 致谢++番号解析的实现与回归测试参考了以下开源项目,在此表示感谢:[JavSP](https://github.com/Yuukiy/JavSP)、[JavBoss](https://github.com/Solr159/JavBoss)、[Emby.Plugins.JavScraper](https://github.com/JavScraper/Emby.Plugins.JavScraper)、[JAVOneStop](https://github.com/ddd354/JAVOneStop)、[metatube-sdk-go](https://github.com/metatube-community/metatube-sdk-go)、[Movie_Data_Capture](https://github.com/mvdctop/Movie_Data_Capture)、[mdcz](https://github.com/ShotHeadman/mdcz)、[javinizer-go](https://github.com/javinizer/javinizer-go)。+## 风险声明* 本项目仅用于技术交流diff --git a/docs/reference-snapshots/vercel-report-design.md b/docs/reference-snapshots/vercel-report-design.mdindex 6a6b69824..7d9292356 100644--- a/docs/reference-snapshots/vercel-report-design.md+++ b/docs/reference-snapshots/vercel-report-design.md@@ -17,6 +17,15 @@ Start with the reader's job, not the document category. Identify what the readerTreat this as a brand surface even when it contains product-like interactions such as calculators. Communicate official Vercel authorship without resembling Vercel product UI, a generic SaaS landing page, or a marketing campaign.+## Download logos++Official Vercel logotype, with transparent backgrounds:++- For light backgrounds: [Black SVG](https://vercel.com/geist/brands/assets/vercel-logotype-black.svg) · [Black PNG](https://vercel.com/geist/brands/assets/vercel-logotype-black.png).+- For dark backgrounds: [White SVG](https://vercel.com/geist/brands/assets/vercel-logotype-white.svg) · [White PNG](https://vercel.com/geist/brands/assets/vercel-logotype-white.png).++Fetch these URLs directly to save individual files. Prefer SVG for websites and scalable artwork; use PNG when an application requires a raster image. See the [complete brand asset catalog and usage requirements](https://vercel.com/geist/brands.md) for symbols, product logos, dimensions, and permitted use.+## Use this priority orderWhen requirements compete, protect them in this order:diff --git a/docs/reference-snapshots/vercel-web-interface-guidelines.md b/docs/reference-snapshots/vercel-web-interface-guidelines.mdindex e1e8e3460..3eb3a212b 100644--- a/docs/reference-snapshots/vercel-web-interface-guidelines.md+++ b/docs/reference-snapshots/vercel-web-interface-guidelines.md@@ -104,6 +104,7 @@ Read files, check against rules below. Output concise but comprehensive—sacrif- `touch-action: manipulation` (prevents double-tap zoom delay)- `-webkit-tap-highlight-color` set intentionally- `overscroll-behavior: contain` in modals/drawers/sheets+- Page rubber-band suppression: `overscroll-behavior: none` on `<html>` inside `@media (pointer: fine)`; keep coarse-pointer page defaults for pull-to-refresh. Test hybrid touch devices: `pointer` describes the primary input, and `none` also disables scroll chaining and native swipe navigation- During drag: disable text selection, `inert` on dragged elements- Drag/swipe/pinch/path gestures need tap/click and keyboard alternatives unless essential- `autoFocus` sparingly—desktop only, single primary input; avoid on mobilediff --git a/docs/reference-sources.json b/docs/reference-sources.jsonindex e2514b6cc..776fa3800 100644--- a/docs/reference-sources.json+++ b/docs/reference-sources.json@@ -18,8 +18,8 @@"name": "Fluid Functionalism 短程弹簧参数","url": "https://www.fluidfunctionalism.com/r/springs.json","snapshot": "docs/reference-snapshots/upstream/fluid-springs.json",- "checked_on": "2026-10-08",- "sha256": "e8d4e6b02a35aff9d6090439fd321866716df190b84ef9b4f1e831e1acd21416",+ "checked_on": "2026-10-13",+ "sha256": "25dba808aba95d87fe3924ae214084013b8718fc26a102db3fee9e55b201f781","role": "普通分段控件与短菜单的无回弹短程参数参考;保留 Peach 主题与无障碍行为。","consumers": ["frontend/src/react/components/use-moving-surface.ts"@@ -31,8 +31,8 @@"name": "Fluid Functionalism 分段控件行为","url": "https://www.fluidfunctionalism.com/r/tabs.json","snapshot": "docs/reference-snapshots/upstream/fluid-tabs.json",- "checked_on": "2026-10-08",- "sha256": "401b81b5ebce2e438ebda32e19af9d420edd3340ad4261e3a8b0b7a1da6ee884",+ "checked_on": "2026-10-13",+ "sha256": "db7927a4bb55bbc8b2edc48a24bf6d32364c27f1e54b938292a976aac681e33d","role": "独立选中底板与即时状态更新参考;不复制组件源码、字重变化与悬停双底板。","consumers": ["frontend/src/react/components/segmented.tsx"@@ -44,8 +44,8 @@"name": "Vercel Design Report Reference","url": "https://vercel.com/design.md","snapshot": "docs/reference-snapshots/vercel-report-design.md",- "checked_on": "2026-08-28",- "sha256": "2b40b23712e548721ecae7d0672ae9318a83188b9fcd2fb4a7a1b7c147a39903",+ "checked_on": "2026-10-13",+ "sha256": "3af49d9dcb22463f0926d006ad67bbcefa32d5a2185f81c7754c26b5bba4020d","role": "报告与证据型页面的版式、层级、语言和数据表达参考;Peach 仅复用可迁移原则。","consumers": ["web/css/",@@ -75,12 +75,12 @@"name": "Vercel Web Interface Guidelines","url": "https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md","snapshot": "docs/reference-snapshots/vercel-web-interface-guidelines.md",- "checked_on": "2026-08-26",- "sha256": "5a775e6411f790f518dbc9c1fa7c50a89e6873502d9a3530a6eb223a590bcfe8",+ "checked_on": "2026-10-13",+ "sha256": "d246b026f4f29b5823a9cc857f9edf3d2507002e055e32040cadeaf3b38e0234","git": {"repository": "https://github.com/vercel-labs/web-interface-guidelines.git","ref": "refs/heads/main",- "revision": "e3d624baaf29dc1fc645aff3e38f03e564d2d6b1"+ "revision": "434b7f91364665f2f733b310ec54809bf8f37937"},"role": "通用 Web 可访问性、交互、状态、性能和响应式评审清单。","consumers": [@@ -367,8 +367,8 @@"name": "bruno README","url": "https://raw.githubusercontent.com/usebruno/bruno/main/readme.md","snapshot": "docs/reference-snapshots/upstream/readme-bruno.md",- "checked_on": "2026-09-06",- "sha256": "9c58f675282a73a8c7f2a0a740799743b50a654d60dafc114fdd11060ed8a039",+ "checked_on": "2026-10-13",+ "sha256": "fec8af393e65aae5f85c89a2e4cc787bc7ed014b94336ab8179762386c0930b2","role": "小尺寸具象 Logo 配短介绍;Peach 使用自己的桃形 Logo,不复制上游品牌素材。","consumers": ["README.md",@@ -445,12 +445,12 @@"name": "amane 内容路由与站点特性","url": "https://raw.githubusercontent.com/sqzw-x/amane/main/docs/dev/content-routes.md","snapshot": "docs/reference-snapshots/upstream/amane-content-routes.md",- "checked_on": "2026-10-08",- "sha256": "6ce3524b553ac5b82c066eecd14e360e6144564107bf723455be93687aa032a8",+ "checked_on": "2026-10-13",+ "sha256": "bf2d5dbf4cebeb142e6571a9074768e2b16c31eabc0cffbf9a0db71a167614af","git": {"repository": "https://github.com/sqzw-x/amane.git","ref": "refs/heads/main",- "revision": "7a980aff9c503f7a5815864d62a6ef309a27808a"+ "revision": "cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd"},"role": "按内容类型给一条有序来源链的原则,以及逐站的领域判断:javdb 没有国产分区且不解析 plot、javbus 欧美目录不可用、kin8 从任意番号抽数字拼详情会误匹配、mgstage 不进有码默认表否则有码号也会去问它、单厂牌 API 对每个候选 SKU 都发请求、DMM 与厂牌官网的日期是 SKU 分层不必相等。Peach 只取可迁移的原则与站点判断,链上成员限于自己已接解析器的来源;候选与人工复核的契约、不落盘 NFO 是 Peach 自己的边界,上游没有这两条。","consumers": [@@ -487,12 +487,12 @@"name": "OpenAver 说明","url": "https://raw.githubusercontent.com/slive777/OpenAver/main/README.md","snapshot": "docs/reference-snapshots/upstream/readme-openaver.md",- "checked_on": "2026-10-01",- "sha256": "80e5994003e81daeb4f86634f50fadcbebab0a436c75e2b827e402dcadec6efc",+ "checked_on": "2026-10-13",+ "sha256": "3f119fffc60a479d6cc0905cf7f4a8da4aa4f1b8c85926821fe4f69230d211f7","git": {"repository": "https://github.com/slive777/OpenAver.git","ref": "refs/heads/main",- "revision": "8cc17e50453d9f69a81f5fee1a072df80f7aab73"+ "revision": "502278a3e09c7520838ffb00b2ff080323a4cdcb"},"role": "同类本地影片管理器的 README 信息结构:页头几条粗体承诺、规格速览表、截图表与常见问题。Peach 只借结构,不复制文案、截图、功能承诺与免责声明条款。","consumers": [@@ -506,12 +506,12 @@"name": "amane 说明","url": "https://raw.githubusercontent.com/sqzw-x/amane/main/README.md","snapshot": "docs/reference-snapshots/upstream/readme-amane.md",- "checked_on": "2026-09-26",- "sha256": "ccb5d984e258a689389df70d117b8bddd31e1eded466f98db18f4a2d9db73cd2",+ "checked_on": "2026-10-13",+ "sha256": "eeb3a4313b593d38847abab0135df7b19b60dbe983daed684ede01813d589036","git": {"repository": "https://github.com/sqzw-x/amane.git","ref": "refs/heads/main",- "revision": "56ff8b49a014832fa49a3d6345a31da16c778bda"+ "revision": "cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd"},"role": "同类项目的极简 README:一行一个功能、安装只给入口、开发说明压到最后。Peach 只借篇幅控制,不复制文案。","consumers": [@@ -604,12 +604,12 @@"name": "SakuraMedia 后端说明","url": "https://raw.githubusercontent.com/tinypinglite/sakuramediabe/main/README.md","snapshot": "docs/reference-snapshots/upstream/readme-sakuramediabe.md",- "checked_on": "2026-10-01",- "sha256": "28a7ae73a1b718e68a8e61f367dc27ba226f7c14a8724a9468a08ff5c56655cc",+ "checked_on": "2026-10-13",+ "sha256": "e90948f44e8e1ba74440500023bc377bb29c5e33aae856ccba5d0d8852142756","git": {"repository": "https://github.com/tinypinglite/sakuramediabe.git","ref": "refs/heads/main",- "revision": "9c6a31915c9a364c9d6717798575daf9445916bd"+ "revision": "154c3b2fce82f890414388c120604f8ba6a0097a"},"role": "SakuraMedia 后端(GPL-3.0)只作行为与算法边界证据,不引入代码:字幕同目录纯番号配对、封套左右分割点的对称判据(Peach 不采用对称判据,见 jav_poster_crop)、「想要」与关注分开、记录比文件重要、被并实体留指针,以及待办第 27、28、43、47、51、63、66 条引用的推荐权重、Torznab 客户端、自动下载判据、时刻合集、遥测与图片打包。","consumers": [@@ -625,12 +625,12 @@"name": "SakuraMedia 客户端说明","url": "https://raw.githubusercontent.com/tinypinglite/sakuramedia/main/README.md","snapshot": "docs/reference-snapshots/upstream/readme-sakuramedia.md",- "checked_on": "2026-10-01",- "sha256": "0b6732ee5d468e5f2ed658f606375a983f89c4ab8fa1048c78cae04aa7664159",+ "checked_on": "2026-10-13",+ "sha256": "09ddc717b3ba9e62abc0846a0cb265d02ad3bdb32b451c516e44a30b537f38fc","git": {"repository": "https://github.com/tinypinglite/sakuramedia.git","ref": "refs/heads/main",- "revision": "a10fcef89b247ce66dd2fe5e3612dcab6ab92519"+ "revision": "8cfc99b7963404694ae563ef0d1f3af58254b195"},"role": "SakuraMedia 的 Flutter 客户端只作行为证据:诊断提示的「原因、修法、跳转」三元组(待办第 26 条)、先看画面再选片(第 49 条)与多端原生客户端(第 70 条)。","consumers": [@@ -665,12 +665,12 @@"name": "JavBoss 说明","url": "https://raw.githubusercontent.com/Solr159/JavBoss/main/README.md","snapshot": "docs/reference-snapshots/upstream/readme-javboss.md",- "checked_on": "2026-10-01",- "sha256": "80ec2d2adb6b9cb395c7d1b7a0d611b4c9d172ba25427f6468d0664c59449781",+ "checked_on": "2026-10-13",+ "sha256": "0deb93f5050709caddf8a3cbb0839e744569d0fc66c159c67cd8bacfd039869a","git": {"repository": "https://github.com/Solr159/JavBoss.git","ref": "refs/heads/main",- "revision": "e45775481eb8d74ae74acf7f093a2a954b2eed88"+ "revision": "e7c5834916f1f1012d73dc901410c00d6597980b"},"role": "JavBoss(GPL-3.0)只作流程证据:CloudDrive2 gRPC 离线下载的提交、轮询与 infohash 对账(ADR-0089),NFO 里 `javboss` 类型的番号字段,以及待办第 58 条的来源缺陷台账。Peach 不复制代码,只提交到已挂载的网盘目录、不拉回本地。","consumers": [@@ -722,12 +722,12 @@"name": "mdcz 说明","url": "https://raw.githubusercontent.com/ShotHeadman/mdcz/main/README.md","snapshot": "docs/reference-snapshots/upstream/readme-mdcz.md",- "checked_on": "2026-10-01",- "sha256": "74da8d55b72b4bbe9a73fe996af91d1ae418be2cdbf2931595340964df3ff2b9",+ "checked_on": "2026-10-13",+ "sha256": "2b449cb8f20b4623b0032a284fa482ccadeddb9844dc5774836c265e80837f6a","git": {"repository": "https://github.com/ShotHeadman/mdcz.git","ref": "refs/heads/main",- "revision": "fde3d2802bc05787375a72f154bf57c2c396cf88"+ "revision": "295f828c76158c6411b52caf6fba9e7b0ee945ba"},"role": "mdcz(GPL-3.0,可并入 AGPL)的 DMM 失败分类、来源测试录制回放、无码官方站解析与字段聚合策略,对应待办第 44、45、54、55 条。","consumers": [@@ -813,12 +813,12 @@"name": "Cuelume 说明","url": "https://raw.githubusercontent.com/danielwh2/cuelume/main/README.md","snapshot": "docs/reference-snapshots/upstream/readme-cuelume.md",- "checked_on": "2026-10-01",- "sha256": "038c6dc5d02f298a627bce3728350343b5730532642cc0c7f8e1f458d628a976",+ "checked_on": "2026-10-13",+ "sha256": "50e0ef00c58113238dccef231356ea480aeffea2e1bbec26f9282e409172beb8","git": {"repository": "https://github.com/danielwh2/cuelume.git","ref": "refs/heads/main",- "revision": "caf15480081da9432a4a982446ce44c9daf3a288"+ "revision": "3ff42e3ea9e43c5b1ada736600875eea960d158f"},"role": "Cuelume(MIT,npm 0.2.4)的接口与音效清单,待办第 60 条的候选依赖;README 的迁移段写的是 0.3,引入时按 npm 实际版本精确钉住。","consumers": [@@ -885,12 +885,12 @@"name": "Atlas 说明","url": "https://raw.githubusercontent.com/Zoroaaa/Atlas/v3/README.md","snapshot": "docs/reference-snapshots/upstream/readme-atlas.md",- "checked_on": "2026-10-01",- "sha256": "44a599c2a576bf83d28920608f5a77caa13036a3954cae813af4b088eed3bcb7",+ "checked_on": "2026-10-13",+ "sha256": "2f002a235c8bd28848318bb3b55c79fe2812a504af6afc3709833ca65a7d7144","git": {"repository": "https://github.com/Zoroaaa/Atlas.git","ref": "refs/heads/v3",- "revision": "fc4b2ae5cb6636ee8bc0f1e762be78a2e090f3f3"+ "revision": "b1a3b518d87edc8052502401e747f7ec276cab22"},"role": "Atlas 的 `services/jav-utils.ts` `parseMagnets` 只解析 JavBus 一家,作待办第 43 条磁力取法的第二份证据;其余「磁力搜索」只是跳转链接。","consumers": [diff --git a/src/peach/metadata_amane.py b/src/peach/metadata_amane.pyindex 5c7649d53..708b8d962 100644--- a/src/peach/metadata_amane.py+++ b/src/peach/metadata_amane.py@@ -8,6 +8,8 @@三档,上游原样的 reason 留在 `detail` 里给冷却与快照回溯用。链上 `LibraryMetadataProvider` 拿到的形状因此与自写站一致。+0.20.0 的站点字段、失败分档与总时限复核见 `docs/reference-snapshots/upstream-review.md`。+聚合不在这里:一站一份 payload 交给 `metadata_policy` / ADR-0038 的结算,不复制 amane 的`aggregate`。升级也不在这里:钉的 sha 只在 `pyproject.toml` 一处,本模块读它,不另存一份。"""@@ -35,7 +37,8 @@ BRIDGE_ROOT = Path(__file__).resolve().parents[2] / "tools" / "amane-bridge"BRIDGE_SCRIPT = BRIDGE_ROOT / "bridge.py"#: 桥的 venv 建在数据目录的工具区,和 FFmpeg 同一层;名字与源码目录一致。BRIDGE_TOOL_NAME = "amane-bridge"-#: 一次子进程的默认超时。桥内每站并发、单请求 30 秒、每个地址最多重试一次,60 秒够一站走完。+#: 一次子进程的总时限。单请求 30 秒,普通失败最多重试一次;403/406 可额外轮换三次指纹,+#: 搜索与详情共用这 60 秒,超时终止子进程并报可重试失败。DEFAULT_TIMEOUT = 60#: 经桥开放给 Peach 来源链的站,套 `peach.sources` 同一份配置形状。每个站只有一个归属(ADR-0048):diff --git a/tools/amane-bridge/bridge.py b/tools/amane-bridge/bridge.pyindex 7694f7b13..8cc2fcff0 100644--- a/tools/amane-bridge/bridge.py+++ b/tools/amane-bridge/bridge.py@@ -117,8 +117,8 @@ def load_runtime() -> Runtime:return getattr(module, class_name)def make_client(proxy: str | None, timeout: float, rate: float):- # 上游 `max_retries` 是首次请求之外的重试次数:1 即每个地址最多发两次请求,单次 30 秒,- # 正好落在 Peach 一侧 60 秒的子进程超时里。不带 BrowserClient:撞上挑战页照样报+ # 上游 `max_retries=1` 限普通重试;403/406 另可轮换三次指纹,单个地址最多五次请求。+ # Peach 用 60 秒子进程总时限约束整次查询。不带 BrowserClient:挑战页报# `cloudflare_challenge`,不切浏览器渲染。limiters = RateLimiters(default_rate=rate)return HttpClient(WebClient(limiters=limiters, proxy=proxy, timeout=timeout, max_retries=1))diff --git a/tools/amane-bridge/pyproject.toml b/tools/amane-bridge/pyproject.tomlindex 790a8c585..f11c52fbb 100644--- a/tools/amane-bridge/pyproject.toml+++ b/tools/amane-bridge/pyproject.toml@@ -12,7 +12,7 @@ description = "Peach 调用 amane 刮削站点的薄桥子进程"requires-python = ">=3.14"license = "AGPL-3.0-or-later"dependencies = [- "amane @ git+https://github.com/sqzw-x/amane@7a980aff9c503f7a5815864d62a6ef309a27808a",+ "amane @ git+https://github.com/sqzw-x/amane@cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd",][tool.uv]diff --git a/tools/amane-bridge/uv.lock b/tools/amane-bridge/uv.lockindex 0d5567357..5ec732049 100644--- a/tools/amane-bridge/uv.lock+++ b/tools/amane-bridge/uv.lock@@ -57,8 +57,8 @@ wheels = [[[package]]name = "amane"-version = "0.18.0"-source = { git = "https://github.com/sqzw-x/amane?rev=7a980aff9c503f7a5815864d62a6ef309a27808a#7a980aff9c503f7a5815864d62a6ef309a27808a" }+version = "0.20.0"+source = { git = "https://github.com/sqzw-x/amane?rev=cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd#cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd" }dependencies = [{ name = "aiofiles" },{ name = "aiolimiter" },@@ -105,7 +105,7 @@ wheels = [[[package]]name = "anthropic"-version = "1.7.0"+version = "1.13.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "anyio" },@@ -116,9 +116,9 @@ dependencies = [{ name = "sniffio" },{ name = "typing-extensions" },]-sdist = { url = "https://files.pythonhosted.org/packages/a4/8b/4210dd090000ba35d07cee9105530794911d955788c3992b4882df49eaac/anthropic-1.7.0.tar.gz", hash = "sha256:0ab1b04668606ba1ae93f6d9e8dcc2e0c4f0debebd4eea4773a3a595f0836db1", size = 1181035, upload-time = "2026-09-18T16:13:05.262Z" }+sdist = { url = "https://files.pythonhosted.org/packages/0b/ed/e76e50601b7c476bcb9a2a7a4c4dab6f1a9b2c03e3922de8b3ec599ccbc5/anthropic-1.13.0.tar.gz", hash = "sha256:ad11d9bb9adafdfea26113943bcde9973e2a439ebeeda6c89ff3e3d85bb2f5c1", size = 1567362, upload-time = "2026-10-09T15:29:08.803Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/c0/dc/74995efda028421917f4caabd24db1373ee0742573a2363fff1a21191441/anthropic-1.7.0-py3-none-any.whl", hash = "sha256:6b681b6ee00f232bb54f50f9a0d6d30e7be368c1b6f754bfd470c8385b8b6058", size = 1255606, upload-time = "2026-09-18T16:13:03.725Z" },+ { url = "https://files.pythonhosted.org/packages/ad/9a/a835340c91bc9a233bd54c05fc438fe07cbef71ca667f24f3892a268ae20/anthropic-1.13.0-py3-none-any.whl", hash = "sha256:157bd74dbf6a595cf9e5fcac557c791fd297924dc48261f57470c2ed6f4e6671", size = 1958595, upload-time = "2026-10-09T15:29:10.689Z" },][[package]]@@ -430,15 +430,15 @@ wheels = [[[package]]name = "genai-prices"-version = "0.1.7"+version = "0.1.11"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "httpx2" },{ name = "pydantic" },]-sdist = { url = "https://files.pythonhosted.org/packages/b5/62/5f294af24a7ae407e6fa1a7ff36d310bed36b89ea6cea7eb7cfac5c305ff/genai_prices-0.1.7.tar.gz", hash = "sha256:4305395c5891796860c697cc3a49ab50b751ed62c8ff1911e291ea8da77f3a91", size = 114996, upload-time = "2026-09-15T11:24:10.852Z" }+sdist = { url = "https://files.pythonhosted.org/packages/b8/ac/59521c0e0254970d64cf01974a59e97f57e7e54bb2331e939058169d5113/genai_prices-0.1.11.tar.gz", hash = "sha256:47c6b84e38089ffee606cd0d2eaaa2f9939605c486faee792f98cb7258baf812", size = 129433, upload-time = "2026-10-12T14:14:50.812Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/d5/4a/9e04f3dca5ffe74133779ab5e9925ffb6411afbeac55d26fa0e148722599/genai_prices-0.1.7-py3-none-any.whl", hash = "sha256:090ba285549e0d2ea3187d05f091a5f0ae722e652143fa844ac809205aecd023", size = 121970, upload-time = "2026-09-15T11:24:09.54Z" },+ { url = "https://files.pythonhosted.org/packages/89/60/e3718a289e4727ed3c20cef7d52f62dd9118c53b9295663e49a2c027ece2/genai_prices-0.1.11-py3-none-any.whl", hash = "sha256:b7e652e0deb28d6c3505dc755824d6f9bbfd64a1d7757720c3473b5927478435", size = 136915, upload-time = "2026-10-12T14:14:49.254Z" },][[package]]@@ -737,14 +737,14 @@ wheels = [[[package]]name = "mako"-version = "1.4.1"+version = "1.4.3"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "markupsafe" },]-sdist = { url = "https://files.pythonhosted.org/packages/2a/12/b5fa2353e2754cd67fb9f83793fa48ff42c213a5da7e719869d2301f6ab8/mako-1.4.1.tar.gz", hash = "sha256:d7904710b662996425a21627710c4777c45053146942cf8a7aebf757c92b8c27", size = 410165, upload-time = "2026-08-05T06:10:56.611Z" }+sdist = { url = "https://files.pythonhosted.org/packages/5a/09/e07c4b5579a79f4b16f8d4f29f6c54514ac787c4ad506b8c4f28a0e6b0bf/mako-1.4.3.tar.gz", hash = "sha256:cd6537fe88d5fec315c55c2f8529bc4ce7a9a352ad7db3eeaa6a66e2dd4ec37a", size = 412799, upload-time = "2026-09-22T20:54:31.509Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/a5/54/12ed58d458474aaab5c3d180173e745a4fe131bb330370596876d19ff60f/mako-1.4.1-py3-none-any.whl", hash = "sha256:a359d9a94a541213958742b2698d0a7757bb83551767bc468a74b9905aba9617", size = 80010, upload-time = "2026-08-05T06:10:58.248Z" },+ { url = "https://files.pythonhosted.org/packages/6d/a0/053d6af3e8f871e0073b4a36732d9e65be77a72e5434c31b94f6af78a6bb/mako-1.4.3-py3-none-any.whl", hash = "sha256:723296007c870bfd6b3f0c3230dba7198096e5269297ebf5e4eff9e7ffa39d4f", size = 80164, upload-time = "2026-09-22T20:54:33.128Z" },][[package]]@@ -779,7 +779,7 @@ wheels = [[[package]]name = "openai"-version = "3.17.0"+version = "3.29.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "anyio" },@@ -789,9 +789,9 @@ dependencies = [{ name = "sniffio" },{ name = "typing-extensions" },]-sdist = { url = "https://files.pythonhosted.org/packages/f8/9d/a00f8bca3df57716771cca5b4c0ddb5c2e03e1dd2ddfbb1607371ffb8372/openai-3.17.0.tar.gz", hash = "sha256:28910914e6ffaf622f1bbf5dfe02e221cc2b929e492dd30d06b6826939dedf92", size = 1710984, upload-time = "2026-09-22T02:37:17.443Z" }+sdist = { url = "https://files.pythonhosted.org/packages/e4/99/5f6206494a87edbaa67b35c5212a2cb5e6f414bee5efb0f0672c4704315a/openai-3.29.0.tar.gz", hash = "sha256:bc70a46d97b70ba64daedfcb3227f610a395f297ec68d39f735676190a92be94", size = 1828914, upload-time = "2026-10-11T17:39:41.895Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/57/bc/5b80a0ca4069a6b5ba6c7d48ae7a4f8176b2c0bde0bebccdb867472ec6f6/openai-3.17.0-py3-none-any.whl", hash = "sha256:712bc2982a6da1af10f6948a1d2d9ff5ce3ee3604ded88002a53765a77cf5ae5", size = 2068574, upload-time = "2026-09-22T02:37:15.373Z" },+ { url = "https://files.pythonhosted.org/packages/ef/9a/91285d01a9293d0b3d86167f9c7bd13f08c960d3fa365782751ce9bcbfb1/openai-3.29.0-py3-none-any.whl", hash = "sha256:860d3bad424c5d38cd9ba0a0a2050d558b58ce027596a39f9ccbc0f51a2090b7", size = 2173181, upload-time = "2026-10-11T17:39:39.493Z" },][[package]]@@ -840,7 +840,7 @@ dependencies = [][package.metadata]-requires-dist = [{ name = "amane", git = "https://github.com/sqzw-x/amane?rev=7a980aff9c503f7a5815864d62a6ef309a27808a" }]+requires-dist = [{ name = "amane", git = "https://github.com/sqzw-x/amane?rev=cc42cee6ecf290cf05af1caa347d2dc2d5aeffcd" }][[package]]name = "pillow"@@ -918,7 +918,7 @@ wheels = [[[package]]name = "pydantic-ai-slim"-version = "2.47.0"+version = "2.55.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "anyio" },@@ -930,9 +930,9 @@ dependencies = [{ name = "pydantic-graph" },{ name = "typing-inspection" },]-sdist = { url = "https://files.pythonhosted.org/packages/47/92/585a986bd9e3a3700d6f596a11823d5594542c3410c99790b111cf59e306/pydantic_ai_slim-2.47.0.tar.gz", hash = "sha256:86cf2a3b557687a68ed45f6c4756ec15592c59efb5c83adc709edc1f4225988b", size = 1592402, upload-time = "2026-09-22T04:13:57.02Z" }+sdist = { url = "https://files.pythonhosted.org/packages/9c/d6/3526056afb236ac3c01b07ae05f1fefc97cbee59f8e824b96ffd5405bbfe/pydantic_ai_slim-2.55.0.tar.gz", hash = "sha256:50b5ee70d3a0509c1f36bec759249e69f4dc060f1a816b1bbf0730af54297376", size = 1878726, upload-time = "2026-10-09T19:40:52.951Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/eb/94/5d8a27dbe4a9e27378698c31c5848310d7a7727e22e1334f683dfbe5397d/pydantic_ai_slim-2.47.0-py3-none-any.whl", hash = "sha256:f658549d14045acc3eeafb96235a07b33e55d1ef0b0e4c8596b4f9e3c88939df", size = 1888345, upload-time = "2026-09-22T04:13:49.741Z" },+ { url = "https://files.pythonhosted.org/packages/93/cc/16c6bc21748e3705a4c1f8e7d71dfc54228dbf142f8506a36689acb1e9c9/pydantic_ai_slim-2.55.0-py3-none-any.whl", hash = "sha256:7fcea628e78c2f247af94504534f0577151496166998d74ec145505040b19c68", size = 2197589, upload-time = "2026-10-09T19:40:38.767Z" },][package.optional-dependencies]@@ -991,7 +991,7 @@ wheels = [[[package]]name = "pydantic-graph"-version = "2.47.0"+version = "2.55.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "anyio" },@@ -999,9 +999,9 @@ dependencies = [{ name = "pydantic" },{ name = "typing-inspection" },]-sdist = { url = "https://files.pythonhosted.org/packages/e5/e5/11da1f354dcf24d7e309aae704196970adebb4ffb26157f6fdac39741062/pydantic_graph-2.47.0.tar.gz", hash = "sha256:4cfe2ac91ebb7a1bd1fff2c054e7cde5adace9494157b034aa74996c61090437", size = 45186, upload-time = "2026-09-22T04:13:59.166Z" }+sdist = { url = "https://files.pythonhosted.org/packages/b2/22/4e25465059448c4322e5f53f33e7b25ceb404c2d4dda8cfb0f497f7fb54b/pydantic_graph-2.55.0.tar.gz", hash = "sha256:461de7d0c33af634c3adeb21712f527f15878edf826d216184f024795e9c80c1", size = 45824, upload-time = "2026-10-09T19:40:57.238Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/3c/b0/4630a964201fb04dba730cbe54b7941309d97d59c01537465b075c26cae7/pydantic_graph-2.47.0-py3-none-any.whl", hash = "sha256:542f3fedfb9a4340eeb1b9e8f01aaaefa5641b9981ebf0c54d11dd889e63f41e", size = 52698, upload-time = "2026-09-22T04:13:52.919Z" },+ { url = "https://files.pythonhosted.org/packages/59/b5/630fc830897cfb0e458dea8ffcac5dd58791784220255637e99817b04cdd/pydantic_graph-2.55.0-py3-none-any.whl", hash = "sha256:774a64db707e759e22a4b2d6f8849986331fac009bb3f36ba3ed0cb8eee7a150", size = 53274, upload-time = "2026-10-09T19:40:44.876Z" },][[package]]