Reorganize repository into pc web shared monorepo

Separate the local recognition, web publishing, and shared data paths while preserving direct script execution and existing site content.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
voson
2026-07-29 14:29:08 +08:00
co-authored by Cursor
parent 96a9312194
commit 9c5aa5b610
280 changed files with 1451 additions and 450 deletions
+31
View File
@@ -4,6 +4,37 @@
## [Unreleased]
### Changed
- 仓库重组为 `pc/`(局内识别)、`web/`(上分帝 Web)与 `shared/`(共享包)三层
monorepo;保留脚本直跑方式,站点内容与 `SITE_VERSION` 不变。
## [0.5.61] - 2026-07-29
### Added
- 上分帝 Web「主播」访问触发的实时在播状态:新增 Pages Function
`GET /api/live-status``web/frontend/functions/api/live-status.js`),首位访客触发
全量探测,经边缘 Cache API 合并请求(5 分钟新鲜窗口内共享结果,无需 KV);
探测逻辑与 `fetch_streamer_live.py` 一致(抖音 SSR `roomStore` + B 站
`Room/get_info`);单个探测失败沿用旧缓存值并标 `stale`,全失败回陈旧快照或空表,
永不 500。前端每页加载至多请求一次,合并 `is_live` 后就地更新「直播」角标/动效;
接口不可用时回退 `data.json` 的 daily 探测值。本地开发 `serve_relations.py`
提供空 stub 避免 404。
## [0.5.60] - 2026-07-29
### Added
- 上分帝 Web「主播」真实在播探测:`fetch_streamer_live.py`(抖音解析直播间 SSR 页
`roomStore` 状态;B 站 `Room/get_info`)回写 `data/streamers.json`
`is_live` / `live_probed_at`,探测失败保留旧值;进 `refresh_web --tier daily`
### Changed
- 主播卡片「直播」角标与脉冲动效只在 `is_live` 探测为真时显示(此前以 `live_url`
存在作代理,不准确);头像在有 `live_url` 时仍可点击进直播间,未开播也可访问。
## [0.5.59] - 2026-07-29
### Added