feat: TS 构建管线、Spine 抓取器与 wallpapers/ 唯一真相来源

把项目从「手写 dist/」改成「wallpapers/ 是唯一真相来源,dist/ 由 pnpm build 生成」,
并补上配套的类型、门禁与抓取器。一次提交落地整条管线,因为拆开会留下不能构建的中间态。

- src/:运行时与模拟器源码(TS,strict),编译到 build/ 再拷进各分发
- tools/:build / dev / check-{syntax,paths,dist},以及抓取器与回归门禁 tools/checks/
  (.scratch/ 下那批一次性脚本移入 tools/checks/ 并入库为长期门禁)
- wallpapers/:七档壁纸的源数据 + README.md(id/音频/预设的完整规范)
- docs/adr/0005-0008:构建管线与分发拓扑、模拟器契约、自包含 sim、每骨架资源布局
- .gitignore:排除 .scratch/ 的参考资料副本(上游 spine 整仓克隆 ~1.2 GB、
  抓取侦查数据 ~680 MB)与调试转储;这些是本地调查材料,补偿会让仓库无法克隆
- 归一化 .gitignore/CONTEXT.md 行尾(工作区 CRLF、索引 LF 造成的整文件假 diff)

同时修掉三档卡住构建的未完工壁纸:
- kv45 的 meta.json 里 id 还是抓取期场景名 scene_main,经 downloader promote 正名为 kv45
- shajin / zhigengniao_juheye 的 meta.json 误用了骨架描述文件(name/spine/animations/pages)、
  且都缺 preset.template.json;现按规范重建:骨架沉到 spines/<名>/(spine-ts 按 atlas 所在
  目录解析贴图页)、补上元数据与单骨架预设,并清掉 zhigengniao 骨架里指向作者机的绝对路径
- 顺带 promote 已在 sources.yml 里的 kv46(月升之前,与兽共舞)

pnpm check 五道门全绿:10 个分发 / 7 档壁纸 / 141 处引用自包含。
This commit is contained in:
Shuery committed 2026-10-02 01:27:02 +08:00
1 parent b8eee05d78
commit 3f11426964
297 files changed
+216627 -1926

No files matched your search

@@ -0,0 +1,19 @@
main_beizi_e.png
size:631,136
filter:Linear,Linear
方糖盘子
bounds:0,35,253,101
offsets:10,10,273,121
茶杯_a
bounds:259,8,172,128
offsets:10,10,192,148
茶杯_b
bounds:0,11,62,18
offsets:10,10,82,38
茶杯_c
bounds:586,34,102,45
offsets:10,10,122,65
rotate:90
茶杯_d
bounds:437,0,143,136
offsets:10,10,163,156
@@ -0,0 +1 @@
{"skeleton":{"hash":"OS0a6gSQbEs","spine":"4.2.43","x":-136.5,"y":-118.5,"width":273,"height":237,"images":""},"bones":[{"name":"root"},{"name":"茶杯_d","parent":"root","length":53.81,"rotation":-96.09,"x":8.65,"y":38.34},{"name":"茶杯_b","parent":"茶杯_d","length":23.17,"x":-25.01,"y":-0.51},{"name":"茶杯_b2","parent":"茶杯_b","x":-1.44,"y":3.72}],"slots":[{"name":"方糖盘子","bone":"root","attachment":"方糖盘子"},{"name":"茶杯_d","bone":"茶杯_d","attachment":"茶杯_d"},{"name":"茶杯_c","bone":"茶杯_b","attachment":"茶杯_c"},{"name":"茶杯_b","bone":"茶杯_b2","attachment":"茶杯_b"},{"name":"茶杯_a","bone":"茶杯_d","attachment":"茶杯_a"}],"physics":[{"name":"茶杯_b","bone":"茶杯_b","x":0.3522,"y":0.3559,"rotate":1,"inertia":0.5,"strength":75.2,"damping":0.85}],"skins":[{"name":"default","attachments":{"方糖盘子":{"方糖盘子":{"y":-58,"width":273,"height":121}},"茶杯_a":{"茶杯_a":{"x":-0.38,"y":20.92,"rotation":96.09,"width":192,"height":148}},"茶杯_b":{"茶杯_b":{"x":-0.29,"y":0.83,"rotation":96.09,"width":82,"height":38}},"茶杯_c":{"茶杯_c":{"x":2.74,"y":5.02,"rotation":96.09,"width":122,"height":65}},"茶杯_d":{"茶杯_d":{"x":-2.82,"y":6.08,"rotation":96.09,"width":163,"height":156}}}}],"animations":{"animation":{}},"extra":{"茶杯_d":{"rootBoneName":"茶杯_d","animation":{"default":{"name":"","mode":0},"animation":{"name":"default","mode":3,"moveYFreq":4,"moveYAmp":10,"moveYOctaves":0,"moveYDelay":0,"moveYCenter":0,"rotateFreq":4,"rotateAmp":5,"rotateOctaves":0,"rotateDelay":1.8}}},"茶杯_b2":{"rootBoneName":"茶杯_b2","animation":{"default":{"name":"","mode":0},"animation":{"name":"default","mode":3,"scaleXFreq":3,"scaleXAmp":0.2,"scaleXOctaves":0,"scaleXDelay":0,"scaleXCenter":0}}}},"extraSlot":{},"extraConfig":{"timeScale":1}}
Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

@@ -0,0 +1,16 @@
{
"name": "main_beizi_e",
"spine": "4.2.43",
"animations": [
"animation"
],
"skins": [
"default"
],
"pages": [
"main_beizi_e.png"
],
"source": "https://act.mihoyo.com/ys/event/e20260520invite-19ccy4/index.html?game_biz=hk4e_cn&mhy_presentation_style=fullscreen&mhy_auth_required=true&mhy_landscape=true&mhy_hide_status_bar=true",
"originalImages": null,
"fetchedAt": "2026-09-21T11:49:29+00:00"
}